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
447d6aa6d8ff55ad01c8ec7b494a18d88b87f487
SQL
johnnynunez/BBDD_UB
/p5.sql
UTF-8
6,370
3.765625
4
[]
no_license
--INICIO PRACTICA 5 -- -- --Eliminar base de datos DROP DATABASE IF EXISTS dreamhouse; --crear base de datos CREATE DATABASE dreamhouse; --conectar con la base de datos \connect dreamhouse; --A) Creat tablas CREATE TABLE "branch" ( "branch_id" VARCHAR(5) NOT NULL, "street" VARCHAR(25) NOT NULL, "city" VARC...
true
0c6070b69356091a79cb14ee238b2406d1d26ff0
SQL
AbhilashSunkam/QuizApp
/target/test-classes/test.sql
UTF-8
2,317
2.8125
3
[]
no_license
insert into questions (id, answer, answer1, answer2, answer3, answer4, question_name, category_id, difficulty_id) values (11, 'a', 'delhi' ,'mumbai' ,'bangalore' ,'hyderabad','what is capital of india', 1, 1 ); insert into questions (id, answer, answer1, answer2, answer3, answer4, question_name, category_id, difficulty...
true
d0943a25ef8700edf6288a3569fa2828d7e6b7c3
SQL
smponneeswaran/taiho_dev
/cqs/common/plo/layer2/rpt_query_rate_by_ecrf.sql
UTF-8
3,440
4.28125
4
[]
no_license
/* rpt_query_rate_by_ecrf PLO Notes: Query Rate by eCRF PLO lists all the queries that reference forms for which collected data exists in the formdata USDM object. In addition, an isenrolled flag is included in the results which may or may not be used to further filter the results. Probably ...
true
83c041c850dd53afc53b331798ba510c49d8fa1f
SQL
danbockapps/orange
/sql/insert_activities.sql
UTF-8
2,426
3.109375
3
[]
no_license
insert into activities ( activityid, displayorder, pointvalue, maxperweek, shortdesc, longdesc, url, bootstrapicon, googleicon ) values (1, 1, 5, 0, "30 minutes of exercise", "Click once for each time you do 30 minutes of exercise.", null, null, "directions_run"), (2, 2, 5, 7, "5 servings of fruit/v...
true
3f57e013238d10e8de23fa746519bd2b98e6b171
SQL
dhruborajroy/rankSQL
/students.sql
UTF-8
1,696
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Aug 27, 2021 at 09:45 AM -- Server version: 10.3.30-MariaDB-cll-lve -- PHP Version: 7.3.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
true
098a66fafc6a40c9c018f81f422e8ed3891f326d
SQL
EdxOrx/GenerationBootcampSQL
/01-create-table.sql
UTF-8
260
3.1875
3
[]
no_license
/* Create table. */ CREATE TABLE user( id INT AUTO_INCREMENT NOT NULL, first_name VARCHAR(50) NOT NULL, last_name VARCHAR(50) NOT NULL, email VARCHAR(50) NOT NULL, password VARCHAR(50) NOT NULL, CONSTRAINT pk_usuarios PRIMARY KEY(id) );
true
34c1efcd36d3eca6faf1a27e63b102aaa96ab45e
SQL
Jairortega/siparweb
/public/vs/vtarifas.sql
UTF-8
2,539
3.28125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 10, 2019 at 04:11 PM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.1.17 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
true
a4c8680c3d597b5419b35d8e4762c40db7cd264b
SQL
newtonapple11feb47/dwarpal
/signup/db/us.sql
UTF-8
54,158
2.734375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Feb 21, 2018 at 09:02 PM -- Server version: 5.7.21-0ubuntu0.16.04.1 -- PHP Version: 7.0.25-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+0...
true
fecea0a171782175ddd3c15f13f132c2ef6e8b3b
SQL
pratapwarrohit13/SQL_ALEX
/Common Table Expression.sql
UTF-8
788
3.359375
3
[]
no_license
/* CTE (common table expression) */ WITH CTE_EMPLOYEE AS (SELECT FIRSTNAME, LASTNAME, GENDER, SALARY, COUNT(GENDER) OVER (PARTITION BY GENDER) AS TOTALGENDER, AVG(SALARY) OVER (PARTITION BY GENDER) AS AVGSALARY FROM SQLTutorial.dbo.EMPLOYEEDEMOGRAPHICS EMP JOIN SQLTutorial.dbo.EMPLOYEESALARY SAL ON EMP.EMP...
true
1830488912e8908309b69102bd086e3f0d29311a
SQL
JmonkeyGod/pt
/src/main/db/init.sql
UTF-8
10,378
3.421875
3
[]
no_license
/* SQLyog Ultimate v12.5.1 (64 bit) MySQL - 10.2.11-MariaDB : Database - pt ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FORE...
true
b753f3b20fb27a850292023dfc5e2035dbab2130
SQL
seosooseong/oraclesource
/다중행함수1106.sql
UHC
6,811
4.65625
5
[]
no_license
SELECT*FROM emp; --ȵ X SELECT ename, sum(sal) from emp; --ϳ ุ ϱ⶧ o SELECT sum(sal) from emp; -- SUM : հ SELECT sum(sal),sum(DISTINCT sal),sum(ALL sal) from emp; -- COUNT : SELECT count(*) FROM emp; --14 ͸ . --μȣ 30 select count(*) from emp where deptno = 30; SELECT count(sal),count(DISTINCT sal),count(ALL ...
true
912917025953b533104725c1486a2042af2bc4bf
SQL
radtek/abs3
/sql/mmfo/bars/Trigger/tu_nlkref2.sql
WINDOWS-1251
4,118
3.140625
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Trigger/TU_NLKREF2.sql =========*** Run *** PROMPT ===================================================================================== PROMPT *** Create trigger T...
true
a74af15742d177bdc54df0aff462db69b59c6b66
SQL
sagarsaini3993/CSD2204S2018
/day5LogSS.sql
UTF-8
27,048
3.28125
3
[]
no_license
MariaDB [csd2204s18]> select * from customer; +--------+-----------------+----------+------------+------------+------+ | custId | name | nickname | city | postalCode | age | +--------+-----------------+----------+------------+------------+------+ | c10 | jack sp | sparrow | new jersey ...
true
2048069e0b46d98bf1f5cffe0a87ee1967b9e54f
SQL
MasterIV/montag
/install.sql
UTF-8
10,920
2.78125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.11.8.1deb5+lenny9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Erstellungszeit: 04. Mai 2012 um 14:57 -- Server Version: 5.0.51 -- PHP-Version: 5.2.6-1+lenny16 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Datenbank: `dev_montag` -- -- --------------------------------------...
true
edf5d70fb0109e30b554c7cc56abb50df14f32de
SQL
gkabbz/bigquery-etl
/sql/glam_etl/fenix_view_clients_daily_scalar_aggregates_v1/view.sql
UTF-8
333
2.890625
3
[]
no_license
-- View to union daily scalar aggregates with date partitioning CREATE OR REPLACE VIEW `moz-fx-data-shared-prod.glam_etl.fenix_view_clients_daily_scalar_aggregates_v1` AS SELECT * EXCEPT (submission_date), DATE(_PARTITIONTIME) AS submission_date FROM `moz-fx-data-shared-prod.glam_etl.fenix_clients_daily_scalar_...
true
e2b24f9289e08a280c0efc255ae451f87c707ddc
SQL
AlayaCare/dev-automation-test
/database.sql
UTF-8
2,429
3.15625
3
[]
no_license
DROP DATABASE IF EXISTS rmtest; CREATE DATABASE rmtest; use rmtest; CREATE TABLE tenants ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, dateadded DATETIME NOT NULL DEFAULT NOW(), PRIMARY KEY (id) ) Engine=InnoDB CHARSET=utf8; INSERT IN...
true
2ef455396b5c7ffb53e3c8459919d3d75acd8877
SQL
cwsus/ansible
/buildWebsite/roles/installSqlConfig/SQLScripts/eSolutions/eSolutionsService.user_services.sql
UTF-8
3,458
3.5625
4
[ "Apache-2.0" ]
permissive
-- -- ESOLUTIONS / USER_SERVICES -- DELIMITER // DROP TABLE IF EXISTS ESOLUTIONS.USER_SERVICES // CREATE TABLE ESOLUTIONS.USER_SERVICES ( ID VARCHAR(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL UNIQUE, SVCNAME VARCHAR(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, URI VA...
true
bf6598d5b34c322c036bddad043588dce17a3678
SQL
Alefpeneash/worktests
/testmdir/db/seed.sql
UTF-8
544
3.46875
3
[]
no_license
CREATE USER docker WITH SUPERUSER PASSWORD 'docker'; CREATE SCHEMA someschema; CREATE DATABASE somedb; grant all privileges on database somedb to docker ; grant all privileges on SCHEMA someschema to docker ; CREATE TABLE someschema.something ( id uuid, created_at date, updated_at date, deleted_at date); INSERT INT...
true
85098c42402b4034286b9d76c9498184cdf66495
SQL
DavidAlphaFox/casino_server
/game_server/db/create_table_smxx_log/log_task.sql
GB18030
871
3.390625
3
[]
no_license
-- ---------------------------- -- Table structure for `log_task` -- ---------------------------- DROP TABLE IF EXISTS `log_task`; CREATE TABLE `log_task` ( `id` bigint(20) NOT NULL AUTO_INCREMENT , `uid` bigint(20) NOT NULL COMMENT 'ɫid' , `acnm` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAU...
true
4d9993b221a71192a623429f85d4cfc1501a8207
SQL
wizardcypress/sicily-recommendation-system
/sql/feeds.sql
UTF-8
372
2.546875
3
[]
no_license
DROP TABLE IF EXISTS `feeds`; CREATE TABLE IF NOT EXISTS `feeds` ( `fid` int(11) NOT NULL auto_increment, `uid` int(11) NOT NULL, `content` text NOT NULL, `reply` int(11) default 0, `comment` int(11) default 0, `reply_fid` int(11) default 0, `time` timestamp NOT NULL default CURRENT_TIMESTAMP, PRIMARY K...
true
b955448789c89d96f6231ab5b5b1101756a39564
SQL
DriftWebBrasil/comparativo-vue-jquery
/dbcreate.sql
UTF-8
416
2.546875
3
[]
no_license
create database compartilhando; use compartilhando; drop table if exists todos; create table todos( id integer PRIMARY KEY AUTO_INCREMENT, descricao varchar(100), concluida tinyint default 0 ); INSERT INTO todos(descricao, concluida) VALUES('Limpar a casa', 0); INSERT INTO todos(descricao, concluida) VA...
true
34677c26b12cecc642575dc2af510975f2708653
SQL
MaximMaes/whoami
/whoamidb.sql
UTF-8
1,854
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Machine: localhost -- Genereertijd: 04 jun 2013 om 21:27 -- Serverversie: 5.5.24-log -- PHP-versie: 5.4.3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!401...
true
604c877cbb107f365f977d1bb064dc9a727caace
SQL
databar-team/transformations
/item/item-Athena3.sql
UTF-8
6,829
2.640625
3
[]
no_license
CREATE TABLE rawdb.item WITH (format='Parquet', external_location='s3://jostens-data-dev-raw/item/test/', parquet_compression = 'SNAPPY') as with cover_size_CTE as ( SELECT d.inventory_item_id, segment_value cover_size FROM rawdb.edw_item_descriptors d inner join rawdb.edw_items i on...
true
3fc56ef52535c9e183bf8cc80fefe3eb28653b23
SQL
dassprakash/budget
/monthlyreport.sql
UTF-8
5,387
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 19, 2016 at 12:25 PM -- Server version: 5.6.12-log -- PHP Version: 5.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
1e9343cc0b540fb521d3821abc25d28b90132978
SQL
BharathPCF/upgraded-octo-waffle
/spring-boot -Insurance-security-thymeleaf/src/main/resources/db/mysql/schema.sql
UTF-8
572
2.84375
3
[]
no_license
DROP TABLE USER; DROP TABLE USER_AUTHORITY; DROP TABLE AUTHORITY; CREATE TABLE AUTHORITY ( id INT(4) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, NAME VARCHAR(30) ); CREATE TABLE USER_AUTHORITY ( USER_ID INT(4) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, AUTHORITY_ID INT(4) ); CREATE TABLE US...
true
d4cae2d2b03c4dfe2d8ce7b6e15d172a0ea6c6bf
SQL
21125721/StudentsinfoManage
/SQL/Stusql.sql
GB18030
2,150
3.703125
4
[]
no_license
drop table stu; create table stu(`stucode` int auto_increment comment 'ѧ' primary key, `name` varchar(20) not null comment '', `sex` varchar(4) not null comment 'Ա/Ů', `age` tinyint(3) not null comment '', `phoneid` varchar(11) not null comment 'ֻ' )character set utf8 collate utf8_general_ci comme...
true
1aff37b6c6dc589a4492abe10f4cf886de77d019
SQL
MaggieFan2018/SQL_Exercises
/LeetCode/Join/181. Employees Earning More Than Their Managers.sql
UTF-8
112
2.9375
3
[]
no_license
SELECT e.Name Employee FROM Employee e LEFT JOIN Employee e2 ON e.ManagerId = e2.Id WHERE e.Salary > e2.Salary;
true
03b3eb9cbb5620d59a2f65cb4203e10f3b7068bb
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day23/select0736.sql
UTF-8
178
2.65625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-22T07:36:00Z' AND timestamp<'2017-11-23T07:36:00Z' AND temperature>=34 AND temperature<=55
true
f6b79d418364e8aa84f3b31bcdc87db1e3015ca6
SQL
graemeport/activefacts-compositions
/spec/sql_surrogate/expected/Person.sql
UTF-8
705
3.5625
4
[ "MIT" ]
permissive
-- -- Relational Schema for test Information Model -- Generated by ActiveFacts Schema Generator at 2016-10-16T11:11:04+11:00. -- CREATE TABLE Person ( -- Person surrogate key PersonID BIGINT NOT NULL GENERATED ALWAYS AS IDENTITY, -- Person has family-Name FamilyName ...
true
e0c794187b893f56492e08867f554e086bbc8620
SQL
2008PegaUSF/MorseDajesProject1
/project_1_db_definition.sql
UTF-8
2,920
3.515625
4
[]
no_license
--Create DB create database trms; --Testing select current_date; INSERT INTO REQUESTS(REQUESTDATE,LOCATION,DESCRIPTION,COST,GRADINGFORMAT,EVENTTYPE,USERID,REQUESTTIME,JUSTIFICATION,EVENTTIME,EVENTDATE)values(current_date,'Jamaica','No',100.0,'Hard','Big',4,current_time,'I have big stupid','20:01:51','2020-09-10') ins...
true
8e66ad211cb8a70c489ebf7ba4ce985f7557eeec
SQL
cqframework/clinical_quality_language
/Src/java/engine-fhir/src/test/resources/org/opencds/cqf/cql/engine/fhir/data/library-wcc-aba.cql
UTF-8
2,194
3.5625
4
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
library WCCABA version '1' using FHIR // version '1.4' /* BMI Percent WCC, ABA BMI percentile measurements "BMI Percentile" ICD10CM 2 years Body Mass Index (BMI) Value ABA value identifying body mass "BMI Value" ICD10CM 2 years Height ABA, WCC Value of height plus units, ie 70 inches or 5 feet 10 inches No val...
true
91df13020c342530a078b55fe1cb0c26ca848d3e
SQL
sandy010924/ISMS
/laravel/storage/database/backup/isms_server.sql
UTF-8
55,777
3.171875
3
[ "MIT" ]
permissive
SET FOREIGN_KEY_CHECKS=0; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!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 */; /*!40101 SET NAMES utf8mb4 ...
true
93b0627140fba4702e4844adfbad2c88618de5bf
SQL
crayonsea/ReviewofBooks
/mysql/ex.sql
UTF-8
5,653
4.40625
4
[]
no_license
drop database if exists dbcourse; -- 实验一:SQL 定义功能、数据插入 1 学时 -- 创建学生数据库 create database dbcourse character set utf8 collate utf8_general_ci; -- 建表 -- S 学生 create table S ( Sno char(9) primary key, Sname char(20), Ssex char(2), Sage smallint, Sdept char(20) ); -- C 课程 create table C ( Cno char(4)...
true
f1a47845cf6830d39aa0573a700ca2297cef8edf
SQL
luisdelgado373/database-exercises
/functions_exercises.sql
UTF-8
332
3.484375
3
[]
no_license
use employees; select concat(first_name, ' ', last_name) from employees where last_name like 'E%' and last_name like '%E' order by emp_no desc; # select datediff(curdate(),hire_date) # from employees # where hire_date between '1990-01-01' and '1999-12-31' # and birth_date like '%12-25%' # order by birth_date, hir...
true
9149a8eda7eaa60999ee4c70f32650273bf3ac37
SQL
MCZbase/DDL
/TABLE/ANNOTATIONS.sql
UTF-8
973
2.9375
3
[ "Apache-2.0" ]
permissive
CREATE TABLE "ANNOTATIONS" ( "ANNOTATION_ID" NUMBER NOT NULL ENABLE, "ANNOTATE_DATE" DATE DEFAULT SYSDATE NOT NULL ENABLE, "CF_USERNAME" VARCHAR2(255 CHAR), "COLLECTION_OBJECT_ID" NUMBER, "TAXON_NAME_ID" NUMBER, "PROJECT_ID" NUMBER, "PUBLICATION_ID" NUMBER, "ANNOTATION" VARCHAR2(4000 CHAR) NOT NULL...
true
82c9ff28347c15f7cd4f4790188c9ad328a76937
SQL
a-robert/db_browser
/db/scheme.sql
UTF-8
3,095
3.578125
4
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Tue Dec 4 21:11:53 2018 -- 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
f0d8965733b2aee03a7803bdf2fdfd962b7b4693
SQL
EliaRohana/Todo-App
/TodoApp_EclipseLink/create.sql
UTF-8
303
3.59375
4
[]
no_license
CREATE TABLE TODO (ID SERIAL NOT NULL, DESCRIPTION VARCHAR(255), SUMMARY VARCHAR(255), USER_ID BIGINT NOT NULL, PRIMARY KEY (ID)) CREATE TABLE t_user (ID SERIAL NOT NULL, NAME VARCHAR(255), PRIMARY KEY (ID)) ALTER TABLE TODO ADD CONSTRAINT FK_TODO_USER_ID FOREIGN KEY (USER_ID) REFERENCES t_user (ID)
true
a85832b670dededcf83c851269f93afac5e57a0d
SQL
AnaisVandenDriessche/movie-anais
/assets/users_note.sql
UTF-8
915
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Client : localhost:3306 -- Généré le : Jeu 05 Avril 2018 à 09:46 -- Version du serveur : 5.6.35 -- Version de PHP : 7.0.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Base de données : `72hchrono` -- -- --...
true
90ce7e930843245481d0cbfece843bec37fff563
SQL
hpeterson462/career-track-lab-33-be
/sql/setup.sql
UTF-8
410
3.25
3
[]
no_license
DROP TABLE IF EXISTS users CASCADE; DROP TABLE IF EXISTS routes; CREATE TABLE users ( id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, email TEXT NOT NULL, password_hash TEXT NOT NULL ); CREATE TABLE routes ( id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, user_id BIGINT REFERENCES users(id), locat...
true
ea81b30e86350614a27ac0043913a77ecf320808
SQL
daanselmo/hc_workbase
/general/scripts_sql/steps_by_step_fluxo.sql
IBM852
4,190
3.46875
3
[]
no_license
SELECT * FROM licitacao l WHERE l.num_documento = 9410 AND l.ano_documento = 2017; /*Fornecedores ganhadores*/ SELECT pfp.* FROM preco_fornecedor_pedido PFP JOIN pedido_compra pc ON pfp.num_pedido_compra = pc.num_pedido_compra AND pfp.ano_pedido_compra = pc.ano_pedido_co...
true
5aac3990162bb50b3a83a9e1039d98a726909506
SQL
common-workflow-language/cwlviewer
/src/main/resources/db/changelog/migrations/00001_schema_ddl.sql
UTF-8
1,190
3.25
3
[ "Apache-2.0", "BSD-3-Clause", "CC-BY-4.0", "MIT", "CC-BY-SA-3.0", "LGPL-3.0-only", "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
--liquibase formatted sql --changeset kinow:create-workflow-table create table if not exists workflow ( id varchar(36) not null primary key, cwltool_version text, doc text, docker_link text, inputs jsonb, label text, last_c...
true
5a74eff739aae53526bd578af92c55c44e2461b7
SQL
Booker141/Olimpicapp
/PL_SQL_Before_Sequence/paquete.sql
UTF-8
29,267
3.203125
3
[]
no_license
/*Cabecera de Gestión de Deportes*/ CREATE OR REPLACE PACKAGE GestionDeportes AS /*Auxiliar*/ FUNCTION aux(Id IN Deporte.Id%TYPE) RETURN NUMBER; /*INSERT*/ FUNCTION insertar( Nombre IN Deporte.Nombre%TYPE, Descripcion IN Deporte.Descripcion%TYPE, Record IN Deporte.Record%TYPE, Fecha_Ini IN Deporte.Fecha_I...
true
b31d950310a53ae339c617076134b62f7d95bba1
SQL
SanjanaKoka/DoctorsNote
/Database/Initial Database Conversations.sql
UTF-8
2,429
3.5
4
[]
no_license
-- 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='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTI...
true
c1d88f2ecc97f8d7d905dc495d11d28eeb7bc5da
SQL
angel-like/angel
/XMSYGame/java2/doc/sql/7月份sql/用户表增加昵称/user_add_nick_name.sql
UTF-8
218
2.625
3
[]
no_license
ALTER TABLE `user` ADD COLUMN `nick_name` varchar(255) CHARACTER SET utf8mb4 NULL DEFAULT '' COMMENT '第三方平台昵称' AFTER `channel_code`; ALTER TABLE `user` ADD UNIQUE INDEX `phone_uk` (`phone`) USING BTREE ;
true
c0149b175b882d4e0fe366acbf07fe1461be8454
SQL
adriantan08/contoso
/database dump/contoso_db.sql
UTF-8
3,065
3.5
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
/* SQLyog Community v10.3 Beta1 MySQL - 5.5.5-10.0.17-MariaDB : Database - contoso_db ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOR...
true
5963c1f4689fca80855184b9698a63394d185adf
SQL
pillesoft/JolTudomEFelho
/JolTudomE_DB/users/Tables/Student.sql
UTF-8
241
3.609375
4
[]
no_license
CREATE TABLE [users].[Student] ( [StudentID] INT NOT NULL, CONSTRAINT [PK_Student] PRIMARY KEY CLUSTERED ([StudentID] ASC), CONSTRAINT [FK_Student_Person] FOREIGN KEY ([StudentID]) REFERENCES [users].[Person] ([PersonID]) );
true
e35016c50954489df7c1c242c892e875c1c2d6aa
SQL
daisytown/reference
/DB/Oracle/《Oracle.9i中文版基础教程.》随书光盘--整书内容PDF文档/第4秠/4.4/447.sql
UTF-8
70
2.59375
3
[]
no_license
(select deptno from scott.emp) union (select deptno from scott.dept);
true
7cab0121b45d8b53395cc2ddb897164535d3054a
SQL
danz50of/DZCommandLibrary
/SQL/Website/2019 Website/SynnexCustomerPrices.sql
UTF-8
786
3.5
4
[]
no_license
Select a.customer_no, a.sales_price_group_id, IFSAPP.SALES_PRICE_GROUP_API.GET_DESCRIPTION(a.sales_price_group_id) as Group_Description, IFSAPP.SALES_PART_API.get_catalog_desc('MP', c.catalog_no, 'en') as Catalog_Description, a.price_list_no, c.catalog_no, --c.min_quantity, --c.valid_from_date, --c.base_price, c.sales...
true
c2659f026cdaf586cfed7c795a895e912bebd8ce
SQL
gauchoaleman/alq2abmtes
/backend/abm/sql/insertarDatos.sql
UTF-8
1,968
3.078125
3
[]
no_license
-- -- Volcado de datos para la tabla `alquiler` -- INSERT INTO `alquiler` (`idAlquiler`, `idCliente`, `fechaInicio`, `fechaFin`, `observaciones`, `precioTotal`) VALUES (22, 16, '2016-11-24 19:00:00', '2016-11-25 19:00:00', 'De nuevo deptos y herramientas', 23520), (23, 16, '2016-11-27 08:00:00', '2016-11-30 08:00:00',...
true
ddfdd8ebea866e0ccb09f5fd81e11283b782ef3f
SQL
ShakirSalman/webbplats
/_testdb.sql
UTF-8
4,455
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 24, 2021 at 11:37 AM -- Server version: 8.0.18 -- 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_CHARACT...
true
6c3f661164854c00798999574c6a2aa79a71aca5
SQL
DCaphane/DCaphane.github.io
/Data/geo/scripts/sql/lsoa_centroids.sql
UTF-8
717
3.671875
4
[]
no_license
/* Returns lsoa centroids for selected lsoas (population over 50) */ with popnlsoa as ( select distinct a.lsoa from lsoa_gp_pop a join gp_practice gp on a.practice_code = gp.organisation_code::text join lsoa_national_2011 lsoa on a.lsoa = lsoa...
true
a935e7501c101e4ae1a852f79100324c2875048c
SQL
Sact3rnlang3l/Data-Modeling-Lab
/Untitled.sql
UTF-8
1,828
3.546875
4
[]
no_license
CREATE TABLE "users" ( "user_id" SERIAL PRIMARY KEY, "user_email" varchar(50), "user_pw" varchar(30), "user_name" varchar(20), "user_recipes" text ); CREATE TABLE "recipes" ( "recipe_id" SERIAL PRIMARY KEY, "ingredient" int NOT NULL, "creator" int NOT NULL, "recipe_name" int NOT NULL, "recipe_insct...
true
b7bf36b1fcf1453d3648dede7691632cecc4b315
SQL
psychicbologna/ej-alexander-petful-api
/migrations/001.do.create_tables.sql
UTF-8
557
2.78125
3
[]
no_license
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE TABLE IF NOT EXISTS cats ( id INTEGER PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, imageURL TEXT, imageDescription TEXT, name TEXT, gender TEXT, age INTEGER, breed TEXT, story TEXT, dateEntered TIMESTAMP DEFAULT now() NOT NULL ); CREATE TABLE IF NO...
true
7d2857f58b57aad2995e65c560368738ee01be38
SQL
jmangarret/triggersMysql
/scripts vtiger/sqlCampoStatusSoto.sql
UTF-8
872
2.734375
3
[]
no_license
DROP TABLE IF EXISTS `vtiger_statussoto`; CREATE TABLE `vtiger_statussoto` ( `statussotoid` int( 11 ) NOT NULL AUTO_INCREMENT , `statussoto` varchar( 200 ) NOT NULL , `presence` int( 1 ) NOT NULL DEFAULT '1', `picklist_valueid` int( 11 ) NOT NULL DEFAULT '0', `sortorderid` int( 1 ) DEFAULT NULL , PRIMARY KEY ( `statuss...
true
810ec7f26a29dd473e9c7768eed5c409759b6ada
SQL
fanyafeng9831/package-booking-backend
/src/main/resources/db/migration/V1__init_employee_table.sql
UTF-8
347
2.625
3
[]
no_license
CREATE TABLE employee ( id INTEGER PRIMARY KEY, name VARCHAR(64) NOT NULL, age int(4) NOT NULL ); CREATE TABLE storage ( id VARCHAR(100) PRIMARY KEY, orderNumber VARCHAR(100) NOT NULL, name VARCHAR(64) NOT NULL, phone VARCHAR(100) NOT NULL, weight VARCHAR(100) NOT NULL, timeOfAppointment VARCHAR(1...
true
39de60a4961b580c1b3af6a2f863e7cff1f27c83
SQL
2011JavaReact/2wPirateServer2.1
/pirate-setup.sql
UTF-8
1,219
4
4
[]
no_license
-- FIRST ITERATION, before we included the role table and refactored the pirate table DROP TABLE IF EXISTS pirate; CREATE TABLE pirate ( id SERIAL PRIMARY KEY, name VARCHAR(255) NOT NULL, role VARCHAR(255) NOT NULL ); INSERT INTO pirate (name, role) VALUES ('YellowBeard', 'Landlubber'), ('BlackBeard', 'Cook'), ('B...
true
2cea2eb41793000660e2ddfa326dd012a9f4004e
SQL
henryle-n/SQL-DB-Investigation
/Schema-Query/Query-Tool.sql
UTF-8
3,251
4.71875
5
[]
no_license
-- #1: List details of each employee: employee number, last name, first name, gender, and salary -- Using Join SELECT e.emp_no, e.lname, e.fname, e.gender, s.salaries FROM employees e FULL OUTER JOIN salaries s ON e.emp_no = s.emp_no; -- #2: List employees who were hired in 1986 SELECT emp_no, fname, lname, hire_dat...
true
4b13e78cbb6d1217403c85b07847d2c1c77446d8
SQL
a1103man/it-practical
/aman.sql
UTF-8
261
2.765625
3
[]
no_license
CREATE TABLE books ( bookid INTEGER PRIMARY KEY, title varchar(100), author varchar(100), price int); INSERT INTO books VALUES (1267, "chemistry", "j.l.baird", 2000), (7689, "Mathematics", "R.D. MISHRA", 2768); SELECT * FROM books;
true
c884f46e1795679f4e2c220f90dd9d427a6ae2bb
SQL
murari-goswami/bi
/ETL/DataVirtuality/views/tableau/tableau.ops_customs_check.sql
UTF-8
474
2.84375
3
[]
no_license
-- Name: tableau.ops_customs_check -- Created: 2015-06-25 11:49:27 -- Updated: 2015-06-29 15:33:20 CREATE VIEW tableau.ops_customs_check AS SELECT stock.article_id, i.item_description, i.pic1, i.ean, i.item_status, i.net_weight, i.season, i.tariff_no, i.tariff_no_ch, i.brand, im.material FROM raw.stock_l...
true
d0298a2e4ce36daced586346785ad42bdefd0069
SQL
Luminighty/dungeon-crawler
/build/classes/Database/createDatabase.sql
UTF-8
168
2.625
3
[]
no_license
CREATE TABLE scores( id INT NOT NULL GENERATED ALWAYS AS IDENTITY, player varchar (20) NOT NULL, map varchar (20) NOT NULL, score INT NOT NULL, PRIMARY KEY (id) );
true
24cd4f87a141c57a0b8220c2a73afcade6b100f0
SQL
gsteed1677/employee-tracker
/theSeeds.sql
UTF-8
1,370
3
3
[]
no_license
USE employee_trackerDB; INSERT INTO department (name) VALUES ("Sales"); INSERT INTO department (name) VALUES ("Software/IT"); INSERT INTO department (name) VALUES ("Finance"); INSERT INTO department (name) VALUES ("Human Resources"); INSERT INTO role (title, salary, department_id) VALUES("Sales Executive", 100000, 1...
true
c5b53809a1809e886ba2a5f7e7564326d9a70480
SQL
felipecustodio/queries
/advanced_sql_puzzles/puzzle35/puzzle35.sql
UTF-8
193
3.515625
4
[]
no_license
SELECT SalesRepID FROM ( SELECT SalesRepID, COUNT(DISTINCT SalesType) AS types FROM sales GROUP BY SalesRepID ) WHERE types == 1
true
287f4fc4bc8417bdb6cf86a395a3c564a9a3a265
SQL
doriguzman/capstone
/backend/db/feathers.sql
UTF-8
8,993
3.046875
3
[]
no_license
DROP DATABASE IF EXISTS feathers; CREATE DATABASE feathers; \c feathers; DROP TABLE IF EXISTS users, bffs, flagged, trips, attributes, threads, messages, bucketlist; CREATE TABLE users ( id SERIAL PRIMARY KEY, username VARCHAR NOT NULL UNIQUE, password_digest VARCHAR NOT NULL, email VARCHAR NOT NULL UNIQUE...
true
98aeefabca926b935ef5a3e81bb1e72bf269d7a9
SQL
cisco2040/JAVA101
/SQL-master/Exercises/SQL [3.2] Exercise.sql
UTF-8
361
3.9375
4
[ "Apache-2.0" ]
permissive
SELECT c.description AS category, u.description AS uom, COUNT(c.description) AS items FROM item as i INNER JOIN category_item as ci ON i.item_id = ci.item_id INNER JOIN category as c ON c.category_id = ci.category_id INNER JOIN uom as u ON i.uom_id = u.uom_id GROUP B...
true
225487293c7c740733564cc2e8687fca2761662e
SQL
mcarreon/CLI-Bamazon
/bamazon.sql
UTF-8
1,220
3.53125
4
[]
no_license
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'process.env.DB_PASS'; DROP DATABASE IF EXISTS bamazon_db; CREATE DATABASE bamazon_db; USE bamazon_db; CREATE TABLE products( item_id INTEGER NOT NULL AUTO_INCREMENT, product_name VARCHAR(45) NULL, department_name VARCHAR(45) NULL, ...
true
62944a3e208a3a2b8e679f1c82763f6b4c92b95b
SQL
RoseMackworth/teaching-vacancies
/bigquery/scheduled_queries/schools_joined_with_metrics.sql
UTF-8
5,905
3.8125
4
[ "MIT" ]
permissive
WITH school_user_metrics AS ( #work out current user-related metric values for all individual schools for use in the main query later SELECT CAST(school_urn AS STRING) AS urn, MIN(approval_datetime) AS dsi_signup_date, #the earliest date that a user is recorded as authorised for TV access in DSI - for s...
true
8a6892da1f510a588ef4810b849ecc9d50d8b85f
SQL
karhodes/Full_Sail
/201506_DBS/Day2/example1506-day2lab.sql
UTF-8
5,791
4.25
4
[]
no_license
-- Lab Assignment, June 4 2015 (Day 2) -- *************************************************** -- Question 2: Create a new user (as yourself or favorite movie character) by inserting into the users table. -- As the userId is a varchar, choose a random, but unique value. -- Be sure to populate ALL columns. insert i...
true
83d91b50b9185a27e85ccebcba50ca13f459ddf0
SQL
nuriakman/bulmaca_sozlugu
/bulmaca_son.sql
UTF-8
22,730
2.640625
3
[]
no_license
-- Adminer 4.7.1 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP TABLE IF EXISTS `bulmaca_son`; CREATE TABLE `bulmaca_son` ( `sira` int(11) NOT NULL AUTO_INCREMENT, `soru` varchar(255) COLLATE utf8_turkish_ci DEFAULT NULL, `cevap` var...
true
3c394c1131c41ab8f0970b830d8beb117db45f3a
SQL
niejingen/KangarooAdmin
/src/main/resources/sql/sql/sys_setting.sql
UTF-8
1,265
3.078125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 本地 Source Server Version : 50720 Source Host : 127.0.0.1:3306 Source Database : kangarooadmin Target Server Type : MYSQL Target Server Version : 50720 File Encoding : 65001 Date: 2019-10-17 10:02:51 */ SET FOREIGN_KEY_CHECKS=0; -- --...
true
a9efda0ed9c0f2ec4da0a68645ac544d70eaab46
SQL
VontineDev/repos
/Database1/ExciplitConversion.sql
UTF-8
475
3.625
4
[ "MIT" ]
permissive
-- CAST SELECT CAST (ProductID AS varchar(5)) + ':' + Name As ProductName FROM SalesLT.Product; --CONVERT SELECT CONVERT (varchar(5),ProductID) + ':' + Name As ProductName FROM SalesLT.Product; -- Convert dates select SellStartDate, CONVERT (nvarchar(30), SellStartDate) As ConvertedDate, CONVERT (nvarchar(30), Sel...
true
e574df6bea4d61c71a4b5d7ad9f09a63e22dbe52
SQL
kakarere/data-act-broker-backend
/dataactvalidator/config/sqlrules/fabs31_detached_award_financial_assistance_5.sql
UTF-8
1,720
3.640625
4
[ "CC0-1.0" ]
permissive
-- When ActionDate is after October 1, 2010 and ActionType = A, AwardeeOrRecipientUEI and AwardeeOrRecipientDUNS -- should (when provided) have an active registration in SAM as of the ActionDate. WITH detached_award_financial_assistance_fabs31_5_{0} AS (SELECT row_number, action_date, action...
true
1d187150fd006e6faef0bf8dd39179d55fccc9b1
SQL
agfac/TBDA
/Lab_1/queries/3az.sql
UTF-8
117
2.546875
3
[]
no_license
SELECT codigo FROM zucs WHERE codigo NOT IN (SELECT DISTINCT codigo FROM ztiposaula WHERE ano_letivo = '2003/2004');
true
b4ada52933c442a8c239ce922398c4c1a1012a8a
SQL
LisnyakTaras/SQLquery
/SCCM/SCCM_Join.sql
WINDOWS-1251
3,221
3.53125
4
[]
no_license
use CM_ATB select [SYSTEM].ResourceID, -- [SYSTEM].Name0 as Comp_Name, [SYSTEM].Domain0 as Domain, [SYSTEM].SystemRole0 as [Role], COMPUTER.UserName0 as Login_User, -- CurrentLogonUser, ADAPTER.IPAddress0 as Comp_IP, ADAPTER.MACAddress0 as Comp_MAC, COMPUTER.Manufacturer0 as Manufacturer, COMPUTER.Model0 ...
true
e55f3f68edc24f74a7b42359c9a59fa560a2628f
SQL
OliverFoh/online-competition
/server/server/models/db.sql
UTF-8
2,853
3.78125
4
[]
no_license
-- user用户个人信息表 CREATE TABLE user ( account varchar(10) NOT NULL, nick_name varchar(20) NOT NULL, password varchar(20) NOT NULL, tel varchar(13) DEFAULT NULL, register_time datetime DEFAULT NULL, update_time datetime default NULL , PRIMARY KEY (`account`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 -- perso...
true
9543d3aceb9b7462adf996488adad07b500b28cf
SQL
Anant0Anand/Used-Goods-Recycle-cum-Inquiry-Management-System
/dbms_project.sql
UTF-8
6,118
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 27, 2020 at 08:08 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
701789c11094fd1012bba12b28073c5a66b21e44
SQL
YasKamito/exp-mysql-to-tsv
/sql/_test.sql
UTF-8
306
2.78125
3
[]
no_license
select * from user where id=12345 select * from users where user_id in (select id from user where id=12345) select * from user_book where user_id in (select id from user where id=12345) select * from book where id in (select book_id from user_book where user_id in (select id from user where id=12345))
true
332d1dbd9543ef9805227a4afcaba647e532ee36
SQL
arlengur/gwtreact
/projects/qos-modelspace/src/main/resources/com/tecomgroup/qos/migration/common/V1_0_35__add_mcontinuousfallconditionlevels.sql
UTF-8
559
3
3
[]
no_license
CREATE TABLE IF NOT EXISTS MPolicyConditionLevels ( id bigint not null, criticallevel_ceaseduration bigint, criticallevel_ceaselevel varchar(255), criticallevel_raiseduration bigint, criticallevel_raiselevel varchar(255), thresholdtype varchar(255) not null, w...
true
85669e7e67924706331168707a7ad6d4b5275a99
SQL
aimedbouguerra/miage-gestion-stock
/gestionstock_light.sql
UTF-8
2,500
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Mar 22 Juin 2021 à 11:48 -- Version du serveur : 5.6.17 -- Version de PHP : 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
true
3c4c8ede1e8025e4874ecc272cdf6111e4e738b6
SQL
tymur-berezhnoi/user_management
/src/main/resources/db/migration/V1__INIT.sql
UTF-8
803
3.625
4
[]
no_license
-- TABLE: ROLE DROP TABLE IF EXISTS ROLE; CREATE TABLE IF NOT EXISTS ROLE ( ID INTEGER AUTO_INCREMENT PRIMARY KEY NOT NULL, ROLE_TYPE VARCHAR(40) NOT NULL UNIQUE ); INSERT INTO ROLE ( ID, ROLE_TYPE ) VALUES ( 1, 'ROLE_APPLICATION_ADMIN' ); -- TABLE: USER DROP TABLE IF EXISTS USE...
true
72c8a24d0c9be3a4324e3da83fd91d7295f07a86
SQL
OlafMd/MedCon1.0
/mm-libs/dbaccess/Level 3/CL3_Dimension/Atomic/Retrieval/SQL/cls_Get_All_Dimension_Templates_With_Values.sql
UTF-8
1,266
3.421875
3
[]
no_license
Select cmn_pro_dimensions.CMN_PRO_DimensionID, cmn_pro_dimensions.Product_RefID, cmn_pro_dimensions.Abbreviation, cmn_pro_dimensions.DimensionName_DictID, cmn_pro_dimensions.OrderSequence As Dimension_Ordersequence, cmn_pro_dimensions.IsDimensionTemplate, cmn_pro_dimensions.Creation_Timestamp As Dimensio...
true
b75046ab61ee029b3cec4634d7dc23753801645d
SQL
ilmoi/cs61a
/lab11/lab11.sql
UTF-8
3,157
4.0625
4
[]
no_license
.read sp20data.sql CREATE TABLE obedience AS SELECT "seven", "instructor" FROM "students"; CREATE TABLE smallest_int AS SELECT "time", "smallest" FROM "students" WHERE "smallest" > 2 ORDER BY "smallest" ASC LIMIT 20; CREATE TABLE matchmaker AS -- SELECT "t1.pet" AS pet, "t1.song" AS song, "t1.color", "t2.color...
true
aa1a7aa7f6ce1c140712c5e83fadac36163c188b
SQL
cysun/Fair.NET
/Fair/Scripts/CreateSchema.sql
UTF-8
10,531
3.578125
4
[]
no_license
CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" ( "MigrationId" character varying(150) NOT NULL, "ProductVersion" character varying(32) NOT NULL, CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId") ); CREATE TABLE "ApplicationTemplates" ( "Id" integer NOT NULL GENERATED BY DEFAULT AS ...
true
93f1dfeb312c2b240118b431a53e11787baca8fd
SQL
k-meissonnier/geektic2014
/database/Seed.sql
UTF-8
831
2.71875
3
[]
no_license
INSERT INTO Civilite (Id,Label) VALUES (1,'Homme'), (2,'Femme'), (3,'Martien') INSERT INTO CentreInteret (Id,Label) VALUES (1,'C#'), (2,'Java'), (3,'CSS'), (4,'Python'), (5,'C'), (6,'Javascript') INSERT INTO Utilisateur (Nom,Prenom,Email,FK_IdCivilite,DateInscription) VALUES ('Meissonnier','Kévin','kevin.meissonnie...
true
92439881418903747e3bc5d3de481e149287a08f
SQL
sandwi/springboot-pcf
/sandbox-boot-apps/boot-cassandra-app/src/test/resources/ddl.cql
UTF-8
217
2.546875
3
[]
no_license
CREATE TABLE customer (id TimeUUID PRIMARY KEY, firstName text, lastName text, customerType text); CREATE INDEX customerFistNameIndex ON customer (firstName); CREATE INDEX customerLastNameIndex ON customer (lastName);
true
3f6799b2ab56c71218bd8abc0e85b03bdad6b656
SQL
tuantruong199/Rocket-13_-VTI-Academy
/SQL/Assignment/Testing System/Testing_System_Assignment_4.sql
UTF-8
4,516
4.28125
4
[]
no_license
-- Question 1 SELECT a.AccountID,a.Email,a.Fullname,d.DepartmentNAME FROM `account` a INNER JOIN department d ON a.DepartmentID=d.DepartmentID; -- Question 2 SELECT * FROM `account` ac WHERE CreateDate > '2010-12-20'; -- Question 3 SELECT a.AccountID,a.Fullname,p.PositionName FROM `account` a INNER JOIN position p ON...
true
812d4b79c6966e09754d17e0d34507c00da1882f
SQL
plunched/plunched-bot
/database.sql
UTF-8
2,026
3.34375
3
[]
no_license
Create DATABASE plunched_bot; \c plunched_bot CREATE TABLE guilds( guildID BIGINT PRIMARY KEY, guildName VARCHAR(255) NOT NULL, prefixes VARCHAR(5) ARRAY[5] NOT NULL, totalCommands INT NOT NULL, disabledCommands TEXT[] ); create TABLE disabledModules( guildID BIGINT PRIMARY KEY, disable_T...
true
0c429f0448005a2084222b91afc0692f5a82cdfd
SQL
jdcar/burger-logger
/db/schema.sql
UTF-8
230
2.84375
3
[ "ISC" ]
permissive
-- DROP DATABASE IF EXISTS burgers_db; CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE burgers ( id INT (100) NOT NULL auto_increment, burger_name VARCHAR(200) NOT NULL, devoured BOOLEAN NOT NULL, PRIMARY KEY (id) );
true
72ed0704a4630cf5da7aaed3015247c79735aeaa
SQL
martinbertolino/ffco
/db-scripts/drop-database.sql
UTF-8
1,152
3
3
[]
no_license
-- *** WARNING: be careful when running this script *** -- connect using the commend: -- "c:\Program Files\PostgreSQL\9.6\bin\psql.exe" -U postgres -- *** WARNING: need to switch to the right database now! *** -- in psql switch to the new database using the command \connect ffco DROP TABLE public."SalesTransac...
true
ba9b03f57dc22429f565f139399d0f8d4866603a
SQL
zhilangtaosha/bak
/scripts/kpi.sql
UTF-8
606
3.0625
3
[]
no_license
select CONVERT(varchar(10),reg_time,120) as d ,case when reg_way is null then '' when reg_way like 'Android%' then 'Android%' else reg_way end as reg_way ,count(1) as C from xueshandai.dbo.member group by CONVERT(varchar(10),reg_time,120),case when reg_way is null then '' when reg_way like 'Android%' then 'Android%' el...
true
c356fb7c991ffcdabdfef168ecdd7e714565cc53
SQL
klaernie/tree-diff-by-db
/GetDuplicates.sql
UTF-8
255
3.28125
3
[]
no_license
select `id`,`basedir`,`path`,`filename`,f.`hash` from filecollector.filecollector as f, (select hash, count(id) as hashcount from filecollector.filecollector group by hash HAVING hashcount >1 ) as hashes where f.hash = hashes.hash order by f.hash;
true
a36c3ff0342837bff55b88f51bfabdb701445e9d
SQL
rockydc/soal_test_dumbWays
/4/db/indonesiadb.sql
UTF-8
2,444
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 27, 2020 at 04:46 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
a70c9ca35c76746473429137a0ea030da861412b
SQL
Gonzohub/postgres-sql
/EmployeeSQL/Output/queries.sql
UTF-8
2,467
4.375
4
[]
no_license
---1. List the following details of each employee: employee number, last name, first name, gender, and salary. select e.emp_no, e.last_name, e.first_name, s.salary, e.gender from employees as e inner join salaries as s on e.emp_no = s.emp_no; ---2. List employees who were hired in 1986. select h...
true
1bd512d6f4e229d95507b60f5e8508d364e1a10a
SQL
ValentinFadloun/sql
/TP4.sql
UTF-8
2,095
3.875
4
[]
no_license
CREATE DATABASE tp4; CREATE TABLE IF NOT EXISTS tp4.user ( id_user INT NOT NULL auto_increment, nom VARCHAR(40) NOT NULL, prenom VARCHAR(40) NOT NULL, password VARCHAR(500) NOT NULL, email VARCHAR(255) NOT NULL, PRIMARY KEY (id_user) ); CREATE TABLE IF NOT EXISTS tp4.article ( id_article INT NOT NULL au...
true
0131fe0c2bb43cb85b0d32830ce3e9e0a10cf08e
SQL
Dani-Interrante-Phl/li-metabase_For_Eclipse
/etl/queries/cases_violations/case_investigations.sql
UTF-8
2,097
3.421875
3
[]
no_license
SELECT ci.investigationprocessid, ci.investigationjobid, ci.investigationtype, ci.investigationscheduled, ci.investigationcompleted, ci.investigationstatus, ci.investigatorname, ( CASE WHEN reinv.rankcompdate IS NOT NULL THEN rein...
true
2387adf58216c407e397e7d86fb23dde2e9bf266
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/tables/HIS_PDS_CONFIG_USER.sql
UTF-8
1,561
2.640625
3
[]
no_license
-------------------------------------------------------- -- DDL for Table HIS_PDS_CONFIG_USER -------------------------------------------------------- CREATE TABLE "AXIS"."HIS_PDS_CONFIG_USER" ( "CUSER" VARCHAR2(50 BYTE), "CCONFWIZ" VARCHAR2(50 BYTE), "CCONACC" VARCHAR2(50 BYTE), "CCONFORM" VARCHAR2(50 BY...
true
8801cc9d3cd1c7b0a3de50f052bfe89a08537176
SQL
jbvhl/personalproject
/db/auth/getDoc.sql
UTF-8
90
2.71875
3
[]
no_license
select * from doctor join patient on patient.doctor_id = doctor.id where doctor.id = ${id}
true
b916e2d0075422d11ac5b1f80ee4e25772f31e6f
SQL
thenicholascoder/python-database-sqlite
/dbexam.sql
UTF-8
811
3.8125
4
[]
no_license
-- create a table CREATE TABLE Ages ( name VARCHAR(128), age INTEGER ) -- Then make sure the table is empty by deleting any rows that you previously inserted, DELETE FROM Ages; -- insert these rows and only these rows with the following commands: INSERT INTO Ages (name, age) VALUES ('Kallin', 19); INSERT INTO...
true
64b13dd2d7f93f542d307887cfff886ecc8c49b2
SQL
MrCatOnTheHouse/DA-Academy-SQL
/Excercises SQLL.sql
UTF-8
6,185
4.28125
4
[]
no_license
# 1. An alphabetical list of customers located in Mexico SELECT c.CustomerName , c.City FROM customers AS c WHERE c.City = 'México D.F.'; #2. A list of employees from youngest to oldest SELECT * FROM employees AS e ORDER BY e.BirthDate DESC; #3. A list of orders that included “Dairy Products” and “Grains/Cereals” S...
true
b3ca1d5a8689b73c4ad278d1a7aaccec2265536b
SQL
repmyblock/utilities
/Schemas/2023_08_13_RepMyBlock.sql
UTF-8
52,820
3.21875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.33, for Linux (x86_64) -- -- Host: 192.168.199.18 Database: RepMyBlock -- ------------------------------------------------------ -- Server version 8.0.33-0ubuntu0.20.04.2 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHAR...
true
620b5f2a0a61d5b3c8261d1312699ed9c4f507cd
SQL
xiaoming593261225/thinkphp-
/public/install/yesadmin.sql
UTF-8
9,540
3.390625
3
[ "Apache-2.0" ]
permissive
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50553 Source Host : localhost:3306 Source Database : yesadmin Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2018-06-09 16:44:54 */ SET FOREIGN_KEY_CHECKS=0; -- ...
true