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
2681355574337a8b94b7b46b35297a18da335e5c
SQL
alicia-cordial/lbp
/utilisateur_article.sql
UTF-8
2,259
3.328125
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. 22 juil. 2021 à 13:10 -- 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_...
true
fae06833bd7f9f32497d0c93c61ca5fbc1123b96
SQL
shahrulhaniff/pdo
/crud_tutorial.sql
UTF-8
769
2.8125
3
[]
no_license
/* MySQL Data Transfer Source Host: localhost Source Database: crud_tutorial Target Host: localhost Target Database: crud_tutorial Date: 10/29/2014 12:40:03 PM */ create database crud_tutorial; use crud_tutorial; SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for customers -- -------------...
true
8c9bd0e2705d6e8b7771814f8ecf95ff50b3c136
SQL
RashmiJenamani/FCUBS143_PROD
/MAIN/TABLE/MSTM_EMS_BULK_RULE.DDL
UTF-8
1,190
2.609375
3
[]
no_license
PROMPT PROCESSING FOR MSTM_EMS_BULK_RULE CREATE TABLE MSTM_EMS_BULK_RULE ( BULK_RULE_NAME VARCHAR2(30) , FILE_NAME_PREFIX VARCHAR2(50) , COMPRESSION_REQD VARCHAR2(1) , COMPRESSION_TYPE VARCHAR2(30) , TIME_TRIGGER VARCHAR2(5) , FREQUENCY VARCHAR2(15) , START_TIME VARCHAR2(5) , END_TIME VARCHAR2(5) , REPEAT_INT...
true
6efa2acd11828614e37a3aae296c60a6fb70fe9f
SQL
kostaskougios/mapperdao
/src/test/resources/sql/UseCaseFileSystemSuite.h2.sql
UTF-8
751
2.9375
3
[]
no_license
[ddl] create table Directory ( id serial not null, uri varchar(150) not null, parent_id int, -- a directory but can be null => no parent primary key (id), foreign key (parent_id) references Directory(id) on delete cascade on update cascade ) ; create table File ( id serial not null, uri varchar(150) not null, p...
true
c0b6208f06b52a658c3513b24a14271e89259c20
SQL
Pumbik/DB--FilmIndustry
/FilmIndustry/filmindustry_tb_actors.sql
UTF-8
2,566
3
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.12, for Win32 (AMD64) -- -- Host: localhost Database: filmindustry -- ------------------------------------------------------ -- Server version 5.7.17-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS...
true
a66ca34efcb90741267245670132824f408a720b
SQL
cwinters8/mssql-linux
/get_perf_info.sql
UTF-8
1,243
4.09375
4
[]
no_license
USE master; -- get current memory utilization INSERT INTO dbo.mssql_perf_tracking select current_timestamp as timestamp, 'Memory used (MB)' as metric_name, memory_used_kb/1024 as metric_value FROM ( select (sum([Total Server Memory (KB)]) - sum([Free Memory (KB)])) AS memory_used_kb from sys.dm_os_performance_cou...
true
b812659a00f89a517e678e6972f873a2930129d8
SQL
Pratima447/College-Mangement-System
/studentmanagment.sql
UTF-8
8,112
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 27, 2019 at 07:46 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.3 -- SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; -- SET AUTOCOMMIT = 0; -- START TRANSACTION; -- SET time_zone = "+00:00"; /*!40...
true
d0348cd3781f3d336d967751dfc5792729765848
SQL
balajinsr/build-api-service
/sql/deploy-scripts.sql
UTF-8
2,426
3.765625
4
[]
no_license
DROP TABLE IF EXISTS `release_task_audit`; DROP TABLE IF EXISTS `deployment_audit`; DROP TABLE IF EXISTS `release_audit`; -- artifacts release tables - start CREATE TABLE `release_audit` ( `release_id` varchar(30) NOT NULL, `silo_id` bigint(3) NOT NULL, `cycle_id` bigint(3) NOT NULL, `create_timestamp` timest...
true
98f3d68b0f527a03242ddedb35ab28d504e031da
SQL
karthik1211/oru-source-service
/database/release/1.0/ORU_SOURCE_CFG/ddl/create/trigger/008_dim_supplier_industry_updt.sql
UTF-8
184
2.671875
3
[]
no_license
DELIMITER // CREATE TRIGGER dim_supplier_industry_updt BEFORE UPDATE ON dim_supplier_industry FOR EACH ROW BEGIN SET NEW.update_timestamp = CURRENT_TIMESTAMP(); END // DELIMITER ;
true
a6b72794af5d34716446ef9ac502baed10563eb9
SQL
Evertonnrb/trab_n2
/scriptBD/script.sql
UTF-8
362,142
2.796875
3
[]
no_license
use tads; CREATE TABLE tb_aluno ( co_aluno int auto_increment primary key, no_aluno character varying(120), cpf_aluno character(14), endereco character varying(120), co_municipio character varying(6) , dt_inclusao datetime, turma character(14) ); CREATE TABLE tb_municipio ( c...
true
0e5088e16943a0e1fd6f587b5a7a9e3922ba01d3
SQL
MPAVE/tema11
/TEMA 12/tema 12 SQL CREARE SI POPULARE.sql
UTF-8
10,422
3.453125
3
[]
no_license
CREATE TABLE Book ( BookID INT IDENTITY(1,1) PRIMARY KEY, Title VARCHAR(200) UNIQUE NOT NULL, PublisherId INT NOT NULL, YearOfPublish INT NOT NULL, Price INT ) CREATE TABLE Author ( AuthorID INT IDENTITY(1,1) PRIMARY KEY, FirstName VARCHAR(50) NOT NULL, LastName VARCHAR(50) NOT NULL, BirthDate D...
true
2c403a608fc091593423061bd05e5bd9a0bf50e5
SQL
HenriqueMarcelino/Banco_De_Dados_MySql
/Terceira_Lista_De_Exercicios/Exercicio_4.sql
UTF-8
1,884
3.609375
4
[]
no_license
CREATE DATABASE db_cidade_das_carnes; USE db_cidade_das_carnes; CREATE TABLE tb_categoria ( Id_Categoria int auto_increment not null, Marca varchar(255), Tipo_de_carne ENUM ('Aves','Bovina','Suina'), Primary key (Id_Categoria) ); INSERT INTO tb_Categoria VALUES ('1','Do frango','Aves')...
true
b590c28ee272e57949b57bc9552a0b4f338f6276
SQL
VianeyMarron/portafolio
/empleados.sql
UTF-8
1,972
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 09-01-2021 a las 05:20:45 -- Versión del servidor: 10.4.13-MariaDB -- Versión de PHP: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
79405f0da830885c70e47e8d88c715e333eb744b
SQL
CamdenCoalitionOfHealthcareProviders/database
/create_table_cap_list.sql
UTF-8
5,066
2.9375
3
[]
no_license
-- creates capitation list table CREATE TABLE cap_list ( hie_id varchar, subscriber_id varchar, unique_id varchar, practice varchar, dob varchar, medicaid_no varchar, medicare_no varchar, memb_first_name varchar, memb_last_name varchar, memb_add_1 varchar, memb_add_2 varchar, memb_city varchar, memb_st var...
true
663410a96cc2bcb49a20a756922e3938e888c507
SQL
piotrhalicki/Kotopcja
/Kotopcja.sql
UTF-8
35,976
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Czas wygenerowania: 03 Maj 2015, 16:43 -- Wersja serwera: 5.5.43-0ubuntu0.14.04.1 -- Wersja PHP: 5.5.9-1ubuntu4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
true
1da9ffb0c64d65df491236d9b9ca5fe64f441b01
SQL
xWesko/dpstreet
/tenis.sql
UTF-8
3,538
2.859375
3
[]
no_license
# Host: localhost (Version 5.7.14) # Date: 2019-07-17 18:19:31 # Generator: MySQL-Front 6.0 (Build 2.20) # # Structure for table "clientes" # DROP TABLE IF EXISTS `clientes`; CREATE TABLE `clientes` ( `id_cliente` bigint(20) NOT NULL AUTO_INCREMENT, `cliente` varchar(40) NOT NULL, `ap_cliente` ...
true
9ae544ccb1c75a2763607f3505c768d1ab0d189f
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day14/select0733.sql
UTF-8
262
2.921875
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['4029','4013','3224','2091','5202','5204','5241','6056','5032','3074'])
true
16f313147a0824c4cbbac2ea3165dfbe23fe30c9
SQL
Fomundi/PortalFomundi
/database/portalfomundi.sql
UTF-8
1,116
3.125
3
[]
no_license
-- Creando la base de datos CREATE DATABASE portalfomundi; -- Utilizando la base de datos use portalfomundi; -- Creando la tabla CREATE TABLE usuariosdb ( id INT AUTO_INCREMENT, username TEXT, id_user TEXT, nivel INTEGER, exp INT, discriminator TEXT, avatar TEXT, pais_ciudad TEXT, urlpersonalizada T...
true
4e9f6f5625847669f18f8eeec4f4fd5d85a1e192
SQL
egoprabowo/tugasdatamining
/pustakac45.sql
UTF-8
3,680
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 15 Bulan Mei 2019 pada 17.02 -- Versi server: 10.1.38-MariaDB -- Versi PHP: 7.1.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
a46a7a1d867b7b62e429482f3233c0176c82d25b
SQL
Maksim-Malov/comments
/www/comment.sql
UTF-8
2,583
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Май 27 2018 г., 22:31 -- Версия сервера: 10.1.31-MariaDB -- Версия PHP: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
d8a28ea471aad11f0c3b278aa14684605466c93f
SQL
FisheyJay/Chronic-Disability-Scoring-for-Member-Outreach
/ct_ENC_CASLTY_REQUEST_FisheyJay.sql
UTF-8
2,757
3.046875
3
[]
no_license
------------------------------------------------------------------------- -- Author: Another developer wrote this piece here. ------------------------------------------------------------------------- CREATE TABLE ENC_CASLTY_REQUEST ( MEMBER_MAID VARCHAR2(15 BYTE) NOT NULL, INCIDENT_DATE ...
true
533967ca9f2497da063fdf6897177f6792be68e5
SQL
Areanda/DB-TOOL
/development/war_world/gameobject_loots.sql
UTF-8
3,264
2.671875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.37, for Win32 (AMD64) -- -- Host: 127.0.0.1 Database: war_world -- ------------------------------------------------------ -- Server version 5.5.52 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*...
true
046a6294082e5999db898d0b0ab0a1f49b0418f8
SQL
CamiloLagos/Pasteleria-el-Sesqui
/api/esquema.sql
UTF-8
1,019
3.59375
4
[]
no_license
create table productos( id bigint unsigned not null auto_increment primary key, nombre varchar(255) not null, descripcion varchar(1024) not null, precio decimal(9,2) not null ); create table fotos_productos( id_producto bigint unsigned not null, foto varchar(255) not null, foreign key(id_producto) references producto...
true
8bdb1898c547b5097c327d9233e0c53a79a2ff76
SQL
Records2020/GWU_Personal_Repo
/07-SQL/Classwork/1/Activities/08-Stu_CRUD/Solved/query.sql
UTF-8
661
3.71875
4
[]
no_license
-- Return all rows and columns of sales table SELECT * FROM sales; -- Return all rows and columns for records with -- loan amounts less than $300,000 SELECT * FROM sales WHERE loan_amount < 300000; -- Return the average loan amount SELECT AVG(loan_amount) FROM sales; -- Update the loan amount for sales_id 33 UPDATE ...
true
4e60fe93940c3947bfba0323817a79316b2a4315
SQL
lightweightcoder/birding-express-swe1
/queries.sql
UTF-8
427
3.3125
3
[]
no_license
SELECT * FROM photos; ALTER TABLE notes ADD COLUMN species_id INTEGER; UPDATE notes SET species_id=1 WHERE id=1; SELECT notes.date, notes.behaviour, notes.flock_size, species.name AS species_name FROM notes INNER JOIN species ON notes.species_id = species.id; UPDATE notes SET behaviour_id=4 WHERE id=7; ALTER TABLE...
true
1b22a924460e94c58379fc1f834627f374cc70e7
SQL
mateusleiteaalmeida/trybe-projects
/Back-end/sd-07-mysql-vocabulary-booster/desafio7.sql
UTF-8
277
4.125
4
[]
no_license
SELECT UCASE(CONCAT(e.first_name, ' ', e.last_name)) AS 'Nome completo', jh.start_date AS 'Data de início', e.salary AS 'Salário' FROM hr.employees AS e INNER JOIN hr.job_history AS jh ON e.employee_id = jh.employee_id WHERE MONTH(jh.start_date) IN (01,02,03) ORDER BY 1, 2;
true
69f192c6dfc48546bfe7bf2f5754ec9eee23579f
SQL
Dkunk7/employee-tracker-and-database
/db/schema.sql
UTF-8
966
4.03125
4
[]
no_license
DROP DATABASE IF EXISTS employee_tracker_db; CREATE DATABASE employee_tracker_db; USE employee_tracker_db; DROP TABLE IF EXISTS department; DROP TABLE IF EXISTS employee; DROP TABLE IF EXISTS role; CREATE TABLE department ( id INTEGER AUTO_INCREMENT PRIMARY KEY, name VARCHAR(30) NOT NULL ); CREATE TABLE employe...
true
39d111a39e914bc24832785bddd65ec23b18fee2
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/procedimiento/GENERA_SEGMENTO.sql
UTF-8
4,859
3.5
4
[]
no_license
-------------------------------------------------------- -- DDL for Procedure GENERA_SEGMENTO -------------------------------------------------------- set define off; CREATE OR REPLACE EDITIONABLE PROCEDURE "AXIS"."GENERA_SEGMENTO" (mens IN VARCHAR2,segm IN VARCHAR2) IS CURSOR fmts is SELECT longitud, constant...
true
6ca4a384342616a69a6d1fba9e2c7ca2039bae07
SQL
MagnetonBora/sdadb
/databases/speaknfly/question1.sql
UTF-8
306
4.125
4
[]
no_license
SELECT Langs.name AS 'Language', COUNT(Langs.name) AS 'Total', strftime('%Y', datetime(start_date / 1000, 'unixepoch')) AS 'Year' FROM Courses INNER JOIN Languages Langs on Courses.language_id = Langs.id WHERE Year = '2020' GROUP BY language_id ORDER BY Total DESC LIMIT 1;
true
ccffb551505fa190af9e0ead8fcc24a7770499ea
SQL
Janessus/SoftBed
/Datenbank/Transferliste.sql
UTF-8
208
2.875
3
[]
no_license
use SoftBedDB; create table IF NOT EXISTS TransferListe ( PersonID int AUTO_INCREMENT, VonBett Varchar(10), NachBett varchar(10), Stempel Timestamp, PRIMARY KEY (PersonID, Stempel) ); commit;
true
2b6252611305a9008b602793ac2194925c95b517
SQL
PNNL-Comp-Mass-Spec/DBSchema_PgSQL_DMS
/dms/v_aj_batch_list_report.sql
UTF-8
634
2.78125
3
[ "Apache-2.0" ]
permissive
-- -- Name: v_aj_batch_list_report; Type: VIEW; Schema: public; Owner: d3l243 -- CREATE VIEW public.v_aj_batch_list_report AS SELECT t_analysis_job_batches.batch_id AS batch, t_analysis_job_batches.batch_description AS description, t_analysis_job_batches.batch_created AS created FROM public.t_analy...
true
44701950e1f2ad6ebdb85c7b33c78b5c5a171010
SQL
IslamHeza/ITI-Facebook-PHP
/facebook_db.sql
UTF-8
4,298
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 20, 2021 at 10:02 PM -- Server version: 10.4.19-MariaDB -- PHP Version: 8.0.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
2b2f88cde7bb5cf861dc3cfa3ba950f2c3222c77
SQL
MichalZygor/23_ex1-4_SQL
/23_ex3_SQL.sql
UTF-8
1,594
4.15625
4
[]
no_license
-- 23_ex3 SQL #3 - Operacje na datach -- 1. Do tabeli zakupy dodaj kolumnę data_zakupu z datą i czasem zakupu. -- 2. Uzupełnij dane w tabeli różnymi datami -- 3. Wyszukaj zakupy zrobione w ciągu pierwszych 15 dni miesiąca -- 4. Wyszukaj zakupy zrobione w ciągu ostatnich 30 dni od aktualnej daty -- 5. Wyszukaj zakupy z...
true
e899fbcc2ebe23220480473132c91337bdd94eac
SQL
belalabu/thinkful
/drills3.sql
UTF-8
583
4.0625
4
[]
no_license
WITH rainy as ( SELECT DATE(date) rain_date From weather WHERE events = 'Rain' GROUP BY 1 ) SELECT t.trip_id, t.duration, DATE(t.start_date) FROM trips t JOIN rainy r on DATE(t.start_date) = r.rain_date ORDER BY duration DESC LIMIT 3 SELECT status.station_id, stations.name, COUNT(CASE WHEN docks_available=0 then 1...
true
ac3ed0a14c0872aeab938d58a767c0f3970b4385
SQL
Allenyep/MyWebApplication
/stumana/tale.sql
UTF-8
1,991
3.265625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 115.159.216.56 Source Server Version : 50626 Source Host : 115.159.216.56:3306 Source Database : tale Target Server Type : MYSQL Target Server Version : 50626 File Encoding : 65001 Date: 2017-12-28 19:45:22 */ SET FOREIGN_KEY_CHECKS=0...
true
38d678981c8ba953a43573343bced180c891f31b
SQL
zanby/Mailsrv
/db/mailsrv/migrate/002_create_templates_table.sql
UTF-8
2,106
3.546875
4
[]
no_license
CREATE TABLE `mail_templates` ( `id` int(11) unsigned NOT NULL auto_increment, `uid` varchar(50) NOT NULL, `description` text, `create_date` datetime NOT NULL, `last_used` datetime default NULL, `status` enum('pending','active','blocked') NOT NULL default 'pending', PRIMARY KEY (`id`), UNIQUE K...
true
75358c89a75311ef5c9edd5ea5eccbe84b5a8170
SQL
jenli810006995/SQL
/CodewarsSQL/5Kyu/SQL Statistics: MIN, MEDIAN, MAX/min_median_max.sql
UTF-8
158
2.859375
3
[]
no_license
select min(score) as min, round(percentile_cont(0.5) within group(order by score)::numeric,2)::float as median, max(score) as max from result;
true
e3852d0bfdb6618411f2b68ea4e014af06ff8461
SQL
shoehang/ToiletFinder
/tolietdb.sql
UTF-8
1,350
3.203125
3
[]
no_license
CREATE DATABASE toiletdb; USE toiletdb; CREATE TABLE reviews ( id int NOT NULL AUTO_INCREMENT, t_id int(11) NOT NULL, t_access tinyint(1) DEFAULT NULL, t_comment varchar(200) DEFAULT NULL, t_time varchar(200) NOT NULL, PRIMARY KEY (id) ); INSERT INTO reviews (t_id, t_access, t_comment, t_time) VALUES (18804, true, "i...
true
26376d4136c7d11cab0485ea3e493a31716dd6a3
SQL
BorgesGaya/BD
/Avaliação-2019-1/Prova-1/trabalho-biblioteca1-resposta.sql
UTF-8
13,481
4.1875
4
[]
no_license
---------------------------------------------------------------------------------------------------- --1) Mostrar o nome e o curso dos alunos de cursos técnicos que locaram livros sobre PostgreSQL nos últimos 3 meses. --MINHA select usuario.nome,usuario.curso from usuario join locacao on locacao.usuario = usuario.codig...
true
d0f9ed5eece0a25ec79e1f5b8663296dd1b70140
SQL
gdsglgf/toolkit
/template/springmvcexample/src/main/resources/test.sql
UTF-8
1,002
2.734375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2016-02-28 13:46:07 -- 服务器版本: 5.6.16 -- PHP Version: 5.5.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @O...
true
da2b9105015011fb426030a13af2248ce392dc88
SQL
mhazim2/SILAWAS
/form1 DEV 2019.09.19.sql
UTF-8
4,097
2.75
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Sep 19, 2019 at 04:43 PM -- Server version: 5.7.24 -- PHP Version: 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
fecc616eb3e36d260d428327eb5248c768b779b0
SQL
n-valenzuela/wms
/libs/127_0_0_1.sql
UTF-8
10,853
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 09, 2018 at 07:37 AM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
e9be4869a7ff8a53592185a7e36ad1c0e41fa8c3
SQL
indexdata/folio-analytics
/sql/report_queries/item_count/item_count.sql
UTF-8
15,103
3.515625
4
[ "Apache-2.0" ]
permissive
/** Documentation of ITEM COUNT QUERY DERIVED TABLES folio_reporting.items_ext folio_reporting.items_stat_codes folio_reporting.holdings_ext folio_reporting.holdings_stat_codes folio_reporting.locations_libraries folio_reporting.instances_ext folio_reporting.instances_stat_codes folio_reporting.instances_nature_conte...
true
f2113b659b20ce595a4008f84572f6e2c1118977
SQL
WilsonLiu15/HackerRank-SQL
/Basic Join/Challenges.sql
UTF-8
1,194
4.6875
5
[]
no_license
SELECT h.hacker_id, h.name, COUNT(c.challenge_id) AS total FROM hackers h JOIN challenges c USING (hacker_id) -- Need to include h.name in order to not throw an error -- MYSQL can't tell that hacker_id values are unqiue -- Adding in name makes if assume a unique value GROUP BY h.hacker_id, h.name -- Split...
true
f048cd5f795b766f636ea0397158edacd830bc03
SQL
nisheeth84/prjs_sample
/reference-code/esr/esale-commons/src/main/resources/db_script/V3_9__create_push_notification_20200716.sql
UTF-8
1,150
3.109375
3
[]
no_license
-- ---------------------------- -- Sequence structure for push_notification_sequence_generator -- ---------------------------- DROP SEQUENCE IF EXISTS "push_notification_sequence_generator"; CREATE SEQUENCE "push_notification_sequence_generator" INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 1 CACHE 1; --...
true
2a5ff6a8f0281760eb049afbd8451b09bbb33bcf
SQL
varunpatnabh/my_sql_website_administration
/Course_project.sql
UTF-8
8,440
4.3125
4
[]
no_license
/* -- Part 1: to see our volume growth. can you pull overall session and order volume, trended by quarter for the life of buisness? Since the most recent quarter is incomplete, you can decide how to handle it. */ select year(website_sessions.created_at) as yr, quarter(website_sessions.created_at) as qtr, cou...
true
fa871354a319c70828c63769c21be80555943dac
SQL
Study-Together-Org/time_counter
/sql_scripts/queries.sql
UTF-8
817
3.34375
3
[]
no_license
SELECT * FROM ( SELECT * FROM ( SELECT * FROM user WHERE user.study_time >= ( SELECT study_time FROM user WHERE user.id = 1 ...
true
f0f48112cf29a837ef2564742e55c98183925f75
SQL
xllNessllx/DBMS
/SWEPL.sql
UTF-8
3,336
3.765625
4
[]
no_license
USE swepl; DROP TABLE IF EXISTS `ist bei`; DROP TABLE IF EXISTS `betreut`; DROP TABLE IF EXISTS `Student`; DROP TABLE IF EXISTS `Termin`; DROP TABLE IF EXISTS `Gruppe`; DROP TABLE IF EXISTS `Benutzer`; DROP TABLE IF EXISTS `Semester`; CREATE TABLE Benutzer( ID INT UNSIGNED NOT NULL AUTO_INCREMENT, Benutzer VARCHAR(...
true
2c32f885a4f3717ff2abfa8282b75604930cec71
SQL
marcohern/compare
/sql/tables/log.sql
UTF-8
348
2.75
3
[]
no_license
DROP TABLE IF EXISTS log; CREATE TABLE log( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, category VARCHAR(32) NOT NULL, message VARCHAR(255) NOT NULL, start DATETIME NULL, `end` DATETIME NULL, duration DECIMAL(16,8) NOT NULL, created DATETIME NOT NULL, updated ...
true
b9ff5190122dadf81509582b151093f5ddce6a89
SQL
NEONKID/StudyProtocolSandbox
/Generalizability/Study2/PROVE_IT/SQL/Queries/Indication_Only/RACE_ETH_WHITE_Indication_Only.sql
UTF-8
697
4.09375
4
[]
no_license
 SELECT 'Race Ethnicity Caucasian', COUNT(d.subject_id), Null, Null, Null, Null, Null, Null, Null FROM ( SELECT DISTINCT ON (c.subject_id) c.subject_id, c.eth_race FROM (SELECT b.subject_id, CASE WHEN b.ethnicity_concept_id = '38003564' AND b.race_concept_id = '8527' THEN 'CAU' ELSE 'OTH' END AS eth_race F...
true
8fa1bfec16d78620aaeaa6c0731e55c2f24071bb
SQL
Lukas713/database-exercise
/scripts/skripta2.sql
UTF-8
1,009
3.375
3
[]
no_license
drop database if exists 2salonzauljep; create database 2salonzauljep; use 2salonzauljep; create table djelatnik ( id int not null primary key auto_increment, ime varchar(50), prezime varchar(50), ziroracun varchar(50) ); create table korisnik ( id int not null primary key auto_increment, ime varchar(...
true
b1632d6ee639d55e3ffa621c1a335a34cf2b4de6
SQL
silfredo04/Laravel
/parcial1.sql
UTF-8
7,399
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 23-09-2021 a las 05:45:33 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.3.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
87df0aa7bfb89f7d1cfe1c09e76035022638657c
SQL
DimaLiniov/php_courses
/10 Примеры программирования на PHP/Lesson_11_5 (создание системы голосования)/mysite.sql
UTF-8
2,990
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Янв 24 2017 г., 16:39 -- Версия сервера: 5.7.16 -- Версия PHP: 7.1.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT *...
true
67a5caa58d07035ce0d6630f8916364aa7051c49
SQL
SamuelGD/GPShoes
/Web Service/bdd.sql
ISO-8859-1
5,875
3.421875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.3.9 -- http://www.phpmyadmin.net -- -- Client : sql -- Gnr le : Lun 20 Avril 2015 12:35 -- Version du serveur : 5.5.41-0+wheezy1 -- Version de PHP : 5.4.39-0+deb7u2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
true
8f9ad8ee31ec65ed47465f0b35147596da01b592
SQL
rpatricio-souza/Programacao_Avancada_de_Banco_de_Dados
/atividades/02_Procedure.sql
UTF-8
704
3.40625
3
[ "MIT" ]
permissive
/* Permite que o comando dbms_output.put_line funcione */ SET SERVEROUTPUT ON; create or replace procedure raise_salary(dno number, percentage number DEFAULT 0.5) is cursor emp_cur (dept_no number) is select SALARY from employees where DEPARTMENT_ID = dept_no for update of SALARY; empsal number(8,2);...
true
5d50d8885d37ca5fed6b5f0b9f8952da7888fbec
SQL
luudvkeulen/Animal-Shelter
/CreateScript.sql
UTF-8
348
2.578125
3
[]
no_license
DROP TABLE ANIMALS; CREATE TABLE ANIMALS ( CHIPREGISTRATIONNUMBER VARCHAR2(5) NOT NULL , DATEOFBIRTH DATE , NAME VARCHAR2(128) , RESERVED NUMBER(1) DEFAULT 0 NOT NULL , PRICE NUMBER(6,2) NOT NULL , LASTWALKDATE DATE , BADHABITS VARCHAR2(255) , CONSTRAINT ANIMALS_PK PRIMARY KEY ( CHIPREGISTRATIO...
true
14b8dfa59d63a449fe643d3dd1a57179f30062bf
SQL
146379/vertex
/admin/setup_users_schemas_grants_all.sql
UTF-8
5,938
3.90625
4
[]
no_license
-- This script is to be run by the superuser on dev and prod -- create roles create role role_admin_role; -- verticanow_admin_role create role verticanow_admin_role; grant verticanow_admin_role to role_admin_role with admin option; -- vertex_admin_role create role vertex_admin_role; grant vertex_admin_role to ver...
true
5a5adec8d595b2c78b38a5b91e2fcaa50ee82080
SQL
pedrokamodaoficial/Clinica-
/DQL clinica.sql
UTF-8
757
3.484375
3
[]
no_license
/*DQL - DATA QUERY LANGUAGE*/ USE clinica; SELECT * FROM pets; SELECT * FROM pets WHERE IdPet = 3; SELECT * FROM pets WHERE Nome LIKE '%o%'; SELECT * FROM pets WHERE IdDono > 2; SELECT * FROM pets ORDER BY Nome; SELECT * FROM pets ORDER BY Nome DESC; SELECT veterinario.Nome FROM vetclinica INNER JOIN veterin...
true
df3059876344accf60430c11a7ac3875f19a4ac0
SQL
pedrohemmel/script_BD
/script_dbZoologico_Senac.sql
UTF-8
697
2.953125
3
[]
no_license
-- Criando o banco de dados -- Acessando o banco de dados -- Criando a tabela -- Inserindo os valores -- 3. Escreva um comando que exiba todas as colunas e todas as linhas da tabela ANIMAIS. -- 4. Escreva um comando que exiba apenas as colunas TIPO e NOME da tabela ANIMAIS, -- apresentando todos os registr...
true
bd7f4f21d9da41a8295196e5688cacd2e67a7003
SQL
youyan0704/flaskr
/schema.sql
UTF-8
520
3.5625
4
[]
no_license
# -*- coding: utf-8 -*- # @Time : 18-9-30 上午11:14 # @Author : allen.you DROP TABLE IF EXISTS user; DROP TABLE IF EXISTS post; CREATE TABLE user( id INTERGER PRIMARY KEY AUTOINCREMENT, username TEXT UNIQUE NOT NULL, password text not null ); create table post( id interger primary key autoincrement...
true
bf10efcb8962920caa5599f98abc8b36b323870c
SQL
kufre/farm-in
/src/database/prisma/migrations/20210813194541_add_farming_table/migration.sql
UTF-8
338
2.71875
3
[ "MIT" ]
permissive
-- CreateTable CREATE TABLE "Farming" ( "farming_id" TEXT NOT NULL, "farming_name" TEXT NOT NULL, "farming_duration" TEXT NOT NULL, "is_deleted" BOOLEAN NOT NULL DEFAULT false, "date_created" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "date_updated" TIMESTAMP(3) NOT NULL, PRIMARY KEY ...
true
a6dafc72c6d88f42508c5fd0ee2d90d2a3ae226c
SQL
coursephd/PostgreSQL
/100_adsl_sqlpart.sql
UTF-8
6,032
3.265625
3
[]
no_license
/* 19th April 2018 */ /* SQL version with UNION of data */ /*============================================================================*/ /* Execute the code in following manner; */ /* iaim=> \i /cygdrive/d/Hospital_data/ProgresSQL/prgm/100_adsl_sqlpart.sql; */ /*=======...
true
28130bfde5174c2522bb7c9646cf6784f5109f93
SQL
nazarevitsch/LogoEat-BackEnd
/src/main/resources/initDB.sql
UTF-8
1,884
3.421875
3
[]
no_license
drop table if exists users cascade; create table users( id serial primary key, name varchar(20), email varchar(240), phone_number varchar(13), password varchar(20) ); drop table if exists restaurants cascade; ...
true
ca2be69b427fea7a6a323df323832d43f8faf20f
SQL
alyswidan/bigquery-etl
/templates/telemetry/clients_daily_v6/view.sql
UTF-8
1,985
3.234375
3
[]
no_license
-- Query generated by: templates/unnest_parquet_view.sql.py clients_daily_v6 telemetry_derived.clients_daily_v6 CREATE OR REPLACE VIEW `moz-fx-data-shared-prod.telemetry.clients_daily_v6` AS SELECT submission_date AS submission_date_s3, * REPLACE ( ARRAY(SELECT * FROM UNNEST(active_addons.list)) AS active_add...
true
7aec8784e911412ba99fc9f49673e4b24b42c84b
SQL
ahaxi/datasci_course_materials
/assignment2/hwScript/8.sql
UTF-8
290
3.90625
4
[]
no_license
select S from ( SELECT a.docid ldocid , b.docid rdocid , SUM(a.count * b.count) S FROM ( frequency a JOIN frequency b ON a.term = b.term and a.docid < b.docid ) GROUP BY a.docid, b.docid ) x where x.ldocid = '10080_txt_crude' and x.rdocid = '17035_txt_earn';
true
48de6f4d36820bfc75d50adfe3ef5767aa34407b
SQL
kuity/fullstack-nanodegree-vm
/vagrant/tournament/test_cases/addFour.sql
UTF-8
349
2.640625
3
[]
no_license
DELETE from matches *; DELETE from players *; ALTER SEQUENCE players_id_seq RESTART WITH 1; INSERT into players(name) VALUES ('John'); INSERT into players(name) VALUES ('Nancy'); INSERT into players(name) VALUES ('Jack'); INSERT into players(name) VALUES ('Anne'); INSERT into matches VALUES (1, 2, 1, 2); INSERT into ...
true
a3d2e98c9657304f8a39ef3762178315b72e8420
SQL
kris33293/first
/src/main/resources/bestsellers_event.sql
UTF-8
594
3.453125
3
[]
no_license
create table STATS ( STAT_ID INT(11) AUTO_INCREMENT PRIMARY KEY, STAT_DATE DATETIME NOT NULL, STAT VARCHAR(20) NOT NULL, VALUE INT(11) NOT NULL ); CREATE VIEW BESTSELLERS_COUNT AS SELECT COUNT(BESTSELLER) FROM BOOKS; USE KODILLA_COURSE; create definer = root@localhost event UPDATE_BESTS...
true
7fa5b0e9a265504a337629def0af6ea2ddf755a8
SQL
librus7/TI_Custom_Project
/TI_Custom_Project/src/gen/scripts/oExtData.sql
UTF-8
2,892
3.0625
3
[]
no_license
-- HEADER-START -- DESCRIPTION This is the oracle customisation data definition script generated on 2016-05-05 21:00:30 -- Note that this script has DROP dtatements that may generate errors when the script is first run - -- these can be ignored. -- PARAMETER schema -- DESCRIPTION Specify the database schema where the...
true
fb3ea7ba1f72099fb793d951a500ac97da5845b1
SQL
debugboy01/TC_CAINIAO
/sql/step5_combine_features.sql
UTF-8
16,211
3.15625
3
[]
no_license
 -- FOR TRAINING DROP TABLE TC_CN_TRAIN_DATASET; CREATE TABLE TC_CN_TRAIN_DATASET AS SELECT I.ITEM_ID, I.CATE_ID, I.CATE_LEVEL_ID, I.BRAND_ID, I.SUPPLIER_ID, --UI FEATURE UI.PV_IPV, UI.PV_UV , UI.CART_IPV, UI.CART_UV, UI.COLLECT_UV, UI.NUM_GMV, UI.AMT_GMV, UI.QTY_GMV, ...
true
176904194d8b921ffebd3f1c3ef406f00871772f
SQL
s279560027/XOServer
/game.sql
UTF-8
611
2.875
3
[]
no_license
CREATE TABLE `game` ( `id` int(11) NOT NULL, `lastping` int(11) NOT NULL, `closed` int(11) NOT NULL, `filled` int(11) NOT NULL, `human` tinyint(4) NOT NULL, `x_session` varchar(32) NOT NULL, `o_session` varchar(32) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `move` ( `id` int(11) NOT N...
true
3854428981fc983a56b4c9476599ae300a6c6284
SQL
partizanes/BarrierServerProject
/conf/BarrierServerProject/user.sql
UTF-8
1,313
2.921875
3
[]
no_license
/* SQLyog Ultimate v8.62 MySQL - 5.0.84-community-nt : Database - barrierserver2 ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN...
true
af68aa5493fc9d896e488e0dd7b6099f02233e2a
SQL
middle59/Adv-Databases
/mysql/project_schema.sql
UTF-8
1,176
2.90625
3
[]
no_license
-- create database DROP DATABASE IF EXISTS project; CREATE DATABASE project; -- select database USE project; -- create tables CREATE TABLE zomato_table ( res_id INT PRIMARY KEY AUTO_INCREMENT, res_name VARCHAR(50) NOT NULL UNIQUE, res_address VARCHAR(1...
true
ba88afa9eccf35ffa04e66bcc224e6f365e0fb57
SQL
shalomweiss/mm-database-2017
/build/classes/mm/sql/db_mentees.sql
UTF-8
2,747
3.15625
3
[ "MIT" ]
permissive
CREATE DATABASE IF NOT EXISTS `db` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `db`; -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: db -- ------------------------------------------------------ -- Server version 5.7.19-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHA...
true
756bfdc235df99365306163a9dcb3758eca62453
SQL
Betterpath/Common-Evidence-Model
/postProcessingNegativeControls/inst/sql/sql_server/optimizeEvidence.sql
UTF-8
2,352
3.46875
3
[ "Apache-2.0" ]
permissive
IF OBJECT_ID('@storeData', 'U') IS NOT NULL DROP TABLE @storeData; WITH CTE_CONCEPTS AS ( SELECT OUTCOME_OF_INTEREST_CONCEPT_ID, OUTCOME_OF_INTEREST_CONCEPT_NAME, PERSON_COUNT_RC, PERSON_COUNT_DC, USER_INCLUDED FROM @summaryData WHERE PERSON_COUNT_RC >= 1000 AND DESCENDANT_PMID_COUNT = 0 AND EXACT_PMID_COUNT = 0 ...
true
431b424899b5a656fb329b207ee046571b90f985
SQL
zetbeer/System-rozgrywek-ligowych
/03 - zapytania/01 - rollup/baza.sql
UTF-8
2,080
4.1875
4
[]
no_license
--1. Wyświetla liczbę fauli które odgwizdal dany sędzia, w danym sezonie i w danej lidze. SELECT NVL((select lp.nazwa from liga lp where l.id = lp.id), 'Wszystkie ligi') as liga, NVL((select sp.imie || ' ' || sp.nazwisko from sedzia sp where s.id = sp.id), 'Wszyscy sedziowie') as sedzia, NVL((select ...
true
6ffef5e38a91c37efec837df5de47429c377a843
SQL
sona-inc/MainSystem
/Databases/Databases Query/SQLQueryProject.sql
UTF-8
486
2.78125
3
[]
no_license
Create Table tbProject(ProjectID int identity(1,1) Primary key,CusID int,ServiceID smallint,StartDate date,EndDate date,Amount money,StaffID smallint, Constraint FKProCusID foreign key(CusID) references tbCustomer(CusID) On Delete Cascade on Update Cascade, Constraint FKProServiceID foreign key(ServiceID) references tb...
true
2aa13ceb2306032db943b2f4739996a6a9325239
SQL
pedromcborges/never-use-uuid-as-pk
/src/main/resources/db/migration/V20210614142000__create_user_tables.sql
UTF-8
498
2.734375
3
[]
no_license
create table user ( id bigint not null auto_increment, name varchar(255), primary key (id) ); create table user_hybrid ( id bigint not null auto_increment, external_id binary(16) unique not null, name varchar(255), primary key (id) ); create table user_uuid_varchar ( id varchar(36)...
true
69191a969544384e3625ca01d7a12845c9e9d60e
SQL
labinskin/Pewlett-Hackard-Analysis
/Queries/Employee_Database_challenge.sql
UTF-8
1,122
4.375
4
[]
no_license
--Challenge 1 --Create new Retirement Title Table SELECT e.emp_no, e.first_name, e.last_name, t.title, t.from_date, t.to_date INTO retirement_titles FROM employees AS e LEFT JOIN title AS t ON (e.emp_no=t.emp_no) WHERE (birth_date BETWEEN '1952-01-01' AND '1955-12-31') ORDER BY emp_no; SELECT * FROM retire...
true
b562ec72baabb63e09ba77cf8506a1e4796411c6
SQL
doerfli/feedscraper
/viewer/src/main/resources/db/migration/V0001.01.00__user.sql
UTF-8
393
3.375
3
[ "MIT" ]
permissive
create table appluser ( pkey int8 not null, password varchar(255), username varchar(255), primary key (pkey) ); create unique index idx_appluser_username ON appluser(username); create table user_roles ( user_pkey int8 not null, roles varchar(255) ); alter table user_roles add constra...
true
0a43ef993f3356a0904c065704e064be880da503
SQL
AlysterF/8week-SQL-challenge
/Case Study #2 - Pizza Runner/SQL Files/B_Runner_And_Customer_Experience.sql
UTF-8
3,488
4.5
4
[]
no_license
--B. Runner and Customer Experience --How many runners signed up for each 1 week period? (i.e. week starts 2021-01-01) --in this script, I had to extract the week using to_char function, once the extract() or date_part() with week uses ISO 8601 and sometimes, the week overlaps with the last week of the year before....
true
ea53d39ec696a5e33488b4e97897f77bea437a91
SQL
zmy/datasci_course_materials
/assignment2/P3h.sql
UTF-8
191
3.421875
3
[]
no_license
SELECT sum(A.count*B.count) FROM (SELECT * FROM frequency WHERE frequency.docid="10080_txt_crude") A JOIN (SELECT * FROM frequency WHERE frequency.docid="17035_txt_earn") B ON A.term=B.term ;
true
4367774c242440d46546ea47f2fe94fc3e2787f4
SQL
OpenConext/log-analyze
/db/create_log_logins.sql
UTF-8
986
3.046875
3
[]
no_license
CREATE TABLE `log_logins` ( `loginstamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `userid` varchar(1000) NOT NULL, `spentityid` varchar(1000) DEFAULT NULL, `idpentityid` varchar(1000) DEFAULT NULL, `spentityname` varchar(1000) DEFAULT NULL, `idpentityname` varchar(1000) DEFA...
true
c053dd999a752fb1951a00cf7831529c962d707b
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day08/select2157.sql
UTF-8
264
2.921875
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='WeMo' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['4214','3029','3100_2','2074','4008','1433','2061','6086','3100_9','6039'])
true
727640c55b61125cfe084fa6e48e20d3750ab678
SQL
shahsanket2107/EZrecruit-Campus-Recruitment-System
/crs.sql
UTF-8
8,317
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 27, 2021 at 06:55 PM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
29af85884554425e84c0f51a3b445c44924d2e07
SQL
luism3090/PhpCodeigniterPractica
/z_base_de_datos.sql
UTF-8
12,678
2.90625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 05-08-2017 a las 00:21:27 -- Versión del servidor: 5.6.20 -- Versión de PHP: 5.5.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
true
1c570a30230fb5a499de1ed18df6028307e59aad
SQL
Mohitbh11/MobileStore
/mobile.sql
UTF-8
5,865
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 10, 2019 at 07:09 PM -- 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
362568294f1bf74b61005db3bad5d4c19ff2964f
SQL
queendvc/database_groupProject
/add_constrains.sql
UTF-8
4,842
3.1875
3
[]
no_license
USE `HotelChainDB`; alter table HOTELFEATURES add CONSTRAINT `fk_HOTEL_FEATURES_HOTEL1` FOREIGN KEY (`hotelID`) REFERENCES `HotelChainDB`.`HOTEL` (`hotelID`) ON DELETE CASCADE ON UPDATE NO ACTION; alter table HOTELPHONENUMBER add CONSTRAINT `fk_HOTEL_PHONE_NUMBER_HOTEL` FOREIGN KEY (`hotelID`) ...
true
2b89c9a940dd174a1a49dda702d3eceec1240a27
SQL
JorgePablol/hackerrank_mysql
/weather_observation_station_19.sql
UTF-8
337
3.4375
3
[]
no_license
/* WEATHER OBSERVATION STATION 19 Query the Euclidean Distance between points P1 and P2 and format your answer to display 4 decimal digits. LINK = https://www.hackerrank.com/challenges/weather-observation-station-19/problem */ SELECT ROUND(SQRT(POWER(MAX(LAT_N)-MIN(LAT_N),2) + POWER(MAX(LONG_W)-MIN(LONG_W),2)),...
true
5b88a686eeb2b9cadecec8e203e95e54a2132dfd
SQL
bashtanov/argm
/argm--1.0--1.0.2.sql
UTF-8
829
2.609375
3
[ "PostgreSQL" ]
permissive
-- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "ALTER EXTENSION argm UPDATE TO '1.0.2'" to load this file. \quit drop aggregate if exists argmax(anyelement, variadic "any"); drop aggregate if exists argmin(anyelement, variadic "any"); drop aggregate if exists anyold(anyelement); ...
true
3aac6144d1906b9e61750e2e321ac2c1e09f6f61
SQL
maydeyn/bamazon
/bamazon.sql
UTF-8
1,179
2.765625
3
[]
no_license
CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products ( item_id INT (30) NOT NULL auto_increment, product_name varchar (50) NOT NULL, department_name varchar (50) NOT NULL, price decimal (11, 2) NOT NULL, stock_quantity integer (25) NOT NULL, primary key (item_id) ); INSERT INTO...
true
da7828411ca7423c5e15bca4ccdd9b76e3127128
SQL
imgergopapp/Northwind-Queries-practice
/task3.sql
UTF-8
238
3.859375
4
[]
no_license
SELECT company_name AS Company,COUNT(DISTINCT product_name) AS NumberOfProducts FROM products INNER JOIN suppliers ON products.supplier_id = suppliers.supplier_id GROUP BY company HAVING COUNT(DISTINCT product_name) = 5 ORDER BY Company;
true
17b696e2670e4574f1e16539ffc98d04532d5e9f
SQL
AlexanderKuznetsov13/sciencejournal
/dbquery.sql
UTF-8
2,644
4.0625
4
[]
no_license
CREATE SEQUENCE user_seq; CREATE TABLE users ( id INTEGER NOT NULL DEFAULT nextval('user_seq'), name VARCHAR(100) NOT NULL, surname VARCHAR(300) NOT NULL, middle_name VARCHAR(300) NULL, email VARCHAR(50) NOT NULL, password VARCHAR(50) NOT NULL, CONSTRAIN...
true
b03bd71af52eb84c18b77a95cecc32e296275390
SQL
felizju/sql_basic_study
/1.예제/20210525 검색기능.sql
WINDOWS-1252
412
3.46875
3
[]
no_license
SELECT * FROM board WHERE content LIKE '%2%'; -- ڿ SELECT board_no, writer, title, content, view_cnt FROM (SELECT /* +INDEX DESC(board pk_board) */ rownum rn, board_no, writer, title, content, view_cnt FROM board WHERE title LIKE '%20%' AND -- (title : type, '%20%' ...
true
6ce0a2ff3be7ab1b0574d5c5f816a05fc6f3456e
SQL
ArielHern/SQL.library
/test_procedures.sql
UTF-8
1,426
3.8125
4
[]
no_license
--The report procedure served as a test --report to test the add_book procedure DECLARE --local variable for testting l_isbn_10 NUMBER(10) := 1111111111; l_title VARCHAR2(200) := 'Testing the proce'; l_author VARCHAR2(200) := 'Ari'; l_published_date DATE := TO_DATE('19-SEP-2019','DD-MM-YYYY'); ...
true
09cdf350e749a69983b9718c7a7adfed2b7e734a
SQL
sedc-codecademy/sedc6-database
/sessions/functions-and-branching/empty-albums.view.sql
UTF-8
175
3.375
3
[]
no_license
--create view that will show all empty albums(without any song) create view EmptyAlbums as select a.* from Albums a left join Songs s on a.Id = s.AlbumId where s.Id is null;
true
0e08f708153ef74bfc99d1e96cfd2aeb80d3d451
SQL
Passwordx/1111
/My_SQL/课间源代码/function.sql
UTF-8
1,099
3.453125
3
[]
no_license
DELIMITER || CREATE FUNCTION myfunction() RETURNS VARCHAR(500) BEGIN RETURN 'china'; END || SELECT * FROM human; DROP FUNCTION myfunction DELIMITER || CREATE FUNCTION myfunction() RETURNS VARCHAR(500) BEGIN DECLARE hName VARCHAR(500); SELECT humanName INTO hName FROM human WHERE humanId = 1; RETURN hName; END || S...
true
7ffc2464cd9966b3b0c8f3eec0513acc82256362
SQL
JuliaTsapova/479537-yeticave-9
/queries.sql
UTF-8
2,399
4
4
[]
no_license
USE yeticave; -- Добавляем категории. INSERT INTO category (code, name) VALUES ('boards', 'Доски и лыжи'), ('attachment', 'Крепления'), ('boots', 'Ботинки'), ('clothing', 'Одежда'), ('tools', 'Инструменты'), ('other', 'Разное'); -- Добавляем объявления. INSERT INTO lot (name, description, img, start_price, finish_ti...
true
849793ab1a14b3966b3ee4092e895c695f6b7dea
SQL
GonzoJa/bamazon
/schema.sql
UTF-8
642
2.8125
3
[]
no_license
CREATE DATABASE bamazon; USE bamazon; create table products ( item_id MEDIUMINT NOT NULL AUTO_INCREMENT, product_name VARCHAR(30) NOT NULL, department_name VARCHAR(30), product_price DECIMAL(8,2) NOT NULL, qty INT, PRIMARY KEY (item_id)); INSERT INTO products (product_name, department_name, ...
true
d6da30b90b889c26e6d7c163093702e9570258be
SQL
jeydion/SQL_Project
/1520094343_sql_project.sql
UTF-8
5,015
4.65625
5
[]
no_license
/* Welcome to the SQL mini project. For this project, you will use Springboard' online SQL platform, which you can log into through the following link: https://sql.springboard.com/ Username: student Password: learn_sql@springboard The data you need is in the "country_club" database. This database contains 3 tables: ...
true
eb537012d0e1cdd5f831f17336f08a957a979e57
SQL
USBrido/bootcampx
/4_queries/26_most_confusing_assignments.sql
UTF-8
444
3.8125
4
[]
no_license
-- SELECT assignment_id AS id, assignment_name AS name, day, chapter, COUNT() -- FROM assistance_requests -- ORDER BY (SELECT avg(completed_at - started_at) as average_assistance_request_duration -- FROM assistance_requests;) SELECT assignments.id, name, day, chapter, count(assistance_requests) as total_requests FROM ...
true