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
004d44e1adf3134299c37d4997460ed300314d96
SQL
BarcampBangalore/schadmin
/sch_selected_sessions.sql
UTF-8
3,715
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.8 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 12, 2013 at 08:07 AM -- Server version: 5.1.70-cll -- PHP Version: 5.3.17 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
7b9a24afd6d016568725298608236cb7a3330fa8
SQL
madiandi17/isi-jtabel-dari-database-
/src/main/sql/skema-mysql.sql
UTF-8
325
2.84375
3
[]
no_license
CREATE TABLE t_kontak ( id INT AUTO_INCREMENT, nama VARCHAR(255) NOT NULL, alamat VARCHAR(255) NOT NULL, tanggal_lahir DATE, aktif BOOLEAN, PRIMARY KEY(id) )Engine= InnoDB; INSERT INTO t_kontak(nama, alamat, tanggal_lahir, aktif) VALUE ('Madi Andi', 'Jl.Madi Gosling', '1994-12-17', true), ('Dima Gosling', 'Jl.Dima Gosl...
true
14cb7bb638389be16e9cf446d0188e2c0ae8786b
SQL
Community4WCF/de.community4wcf.contentPage
/install.sql
UTF-8
698
2.828125
3
[]
no_license
DROP TABLE IF EXISTS wcf1_content_page; CREATE TABLE wcf1_content_page ( pageID INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, subject VARCHAR(255) NOT NULL DEFAULT '', message MEDIUMTEXT NOT NULL, shortDescription text NOT NULL, time INT(10) NOT NULL DEFAULT 0, icon varchar(255) NOT NULL, canSeeGroupIDs varchar(2...
true
0a4d2bb2903fb78c3550e6600c309e15878b47d9
SQL
GuilhermeLaraRusso/Trybe-MySQL
/Bloco 19/Query 6.sql
UTF-8
192
2.765625
3
[]
no_license
SELECT * FROM sakila.actor; SELECT DISTINCT last_name FROM sakila.actor; SELECT COUNT(DISTINCT last_name) FROM sakila.actor; SELECT * FROM sakila.actor ORDER BY last_name ASC, first_name DESC;
true
d0a4be24ff3e5504c5a3cd558acefacc9e8aff8c
SQL
rongandat/phanloaicanbo
/sql/update_version_26_6.sql
UTF-8
373
2.703125
3
[]
no_license
CREATE TABLE `employees_luan_chuyen_history` ( `id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, `em_id` INTEGER UNSIGNED NOT NULL, `from_date` DATETIME, `to_date` DATETIME, `chuc_vu` INTEGER UNSIGNED, `don_vi` INTEGER UNSIGNED, `ngach_cong_chuc` INTEGER UNSIGNED, `cong_viec` VARCHAR(255), `chuyen_mon` V...
true
2cda58e9efc675d6c9f7e81a8538d09f210313ab
SQL
msredhotero/despachadordeaduana
/sql/consultas/valor_puntos_por_funcion_obra.sql
UTF-8
1,515
3.734375
4
[]
no_license
select ((t.totalgral * coalesce(t.porcentajereparto,1) / 100) - (t.totalgral * coalesce(t.porcentajeretencion,1) / 100)) / op.puntos from ( select sum(r.total - (r.valorpulicidad + r.costopapelentrada + r.gastotarjeta + r.argentores)) as totalgral, r.idobra,r.porcentajereparto, r.porcentajeretencion from ( S...
true
5ce86d53ef7d7a73088002475fa74c99045e1e9a
SQL
abarkhuysen/git-web-pagechangedemo
/pagechangedemo.sql
UTF-8
1,800
2.6875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 11, 2013 at 12:45 PM -- Server version: 5.1.44 -- PHP Version: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
true
c9900c0e37f5474a85d60a6fdf8204b094330a47
SQL
gJigsaw/pyohio
/pyohio/junkdrawer/speaker_preferences.sql
UTF-8
481
3
3
[]
no_license
alter table proposals_proposalbase add column confirmed_after_first_pass timestamptz, add column confirmed_accepted timestamptz; create table speaker_available_times ( speaker_id integer not null references speakers_speaker (id) on delete cascade, available_time tstzrange not null ); create table s...
true
da3531049f4e61f088556e238ee3027713956f8d
SQL
Mrcassin/bds-db-design
/mysql_bds_db_design.sql
UTF-8
10,325
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Počítač: 127.0.0.1 -- Vytvořeno: Úte 02. lis 2021, 17:15 -- Verze serveru: 10.4.18-MariaDB -- Verze PHP: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHA...
true
63a7c9164a6ff3583646460fc2fb6ca3c51c9979
SQL
Declipe/EDB
/tables/game_event_npcflag.sql
UTF-8
866
2.65625
3
[]
no_license
-- ---------------------------- -- Table structure for `game_event_npcflag` -- ---------------------------- DROP TABLE IF EXISTS `game_event_npcflag`; CREATE TABLE `game_event_npcflag` ( `eventEntry` tinyint(3) unsigned NOT NULL COMMENT 'Entry of the game event', `guid` mediumint(8) unsigned NOT NULL DEFAULT '0', ...
true
70c4a511dfee81d8b6380fe44a4936cedbfdc2d9
SQL
toho7/EM2020_Melmer_Paulweber
/Abgabe DBI Projekt/SQL Dateien/Top10FifaAusEM.sql
UTF-8
306
2.625
3
[]
no_license
use em2020_melmer_paulweber; -- Liefert Mannschaften aus Top 10 der FifaWeltrangliste die bei der EM teilnehmen SELECT mannschaft.fifaWeltrangliste AS FifaWeltrangliste, mannschaft.land AS Mannschaft FROM mannschaft WHERE mannschaft.fifaWeltrangliste <= 10 ORDER BY mannschaft.fifaWeltrangliste
true
c09f512e08fafe202848743f0fc7a8f557242cf1
SQL
caominhchung/Ki_9
/PTTK/demo/DB/Dump20210115/dbpttk_tblmathang.sql
UTF-8
3,010
3
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64) -- -- Host: localhost Database: dbpttk -- ------------------------------------------------------ -- Server version 8.0.22 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!4...
true
919f9f1f73084788cf9677ddbdf537b510415aa7
SQL
Jgarcia4377/api-iVoto
/db/iVoto.sql
UTF-8
8,138
3.296875
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Thu Aug 1 00:55:54 2019 -- 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='ON...
true
4ea969cc80485878b072d9876184ab6003a5a28b
SQL
rinunu/hello-go
/flyway/sql/V1__Initial.sql
UTF-8
447
3.84375
4
[]
no_license
CREATE TABLE sources ( id INT AUTO_INCREMENT, title VARCHAR(300), url VARCHAR(300) CHARSET latin1, PRIMARY KEY (id), UNIQUE u1 (url) ); CREATE TABLE articles ( id INT AUTO_INCREMENT, source_id INT, title VARCHAR(300), link VARCHAR(300) CHARSET latin1, description TEXT, ...
true
580ed02271e8e82b0f788e362151d61043745b10
SQL
pengjiaobyb/PjTest
/xz.sql
UTF-8
816
2.546875
3
[]
no_license
set names utf8; drop database if exists fc; #1、创建库fc create database fc charset=utf8; #2、进入fc use fc; #3、创建表user create table user( uid int primary key auto_increment, uname varchar(20) not null default '', upwd varchar(32) not null default '', phone varchar(20) not null default '', pic varchar(100) not ...
true
bab7d24a93df5ac324caea2ccdc19235bc88a0c6
SQL
Belen1996/Project2-Team-3
/models/schema.sql
UTF-8
3,290
3.296875
3
[]
no_license
DROP DATABASE IF EXISTS user_db; CREATE DATABASE user_db; USE user_db; CREATE TABLE users -- ( -- id INT AUTO_INCREMENT NOT NULL, -- User_Name VARCHAR(30) NOT NULL, -- Pass_word VARCHAR(30) NOT NULL, -- Email VARCHAR(100) NOT NULL, -- Cell_Phone VARCHAR(10) NOT NULL, -- Verified BOOLEAN DEFAUL...
true
8dd4602630890a8286b3f43b014f3520c6868728
SQL
Adam-J-Roberts/Database-Design
/Home Work/HW1.sql
UTF-8
824
3.75
4
[]
no_license
Adam Roberts 2/13/20 Database HW1 CREATE TABLE Classes ( class TEXT, type TEXT, county TEXT, numGuns INT, bore INT, displacement INT, PRIMARY KEY (class, type) ); //I assume a class has various types, and that each country only makes certain types. CREATE TABLE Ships ( name TEXT, class TEXT, launched TEXT,...
true
150eceaabafe64e97b7673043779bc6acf300b21
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day16/select1612.sql
UTF-8
191
2.6875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-15T16:12:00Z' AND timestamp<'2017-11-16T16:12:00Z' AND SENSOR_ID='6888cd31_0273_4013_abb0_90a42c8225fb'
true
a6d6e78c744d66317e0061d50d4a385b1854b9fd
SQL
bojaxz/cs50projects
/bojaxz-cs50-problems-2020-x-movies/12.sql
UTF-8
383
3.375
3
[]
no_license
-- select movies that Helena star in select title from movies as m JOIN stars as s ON m.id = s.movie_id JOIN people as p ON s.person_id = p.id where name = "Helena Bonham Carter" -- compare the results with movies Johnny stars in and merge the similarities Intersect select title from movies as m JOIN stars as s ON m.id...
true
6fe59cf51ea87fd4bca7597b1d620b9306357c25
SQL
TheChanec/mcs.repository
/Reporting/iDatix/MCSData/dbo/Views/v_APVPRTaskNotifications.sql
UTF-8
1,064
3.59375
4
[]
no_license
create view [v_APVPRTaskNotifications] as select p.name as Process, t.name as Task, r.fullname as Username, count(*) as pending_tasks from [$(Progression)].dbo.taskqueue tq with (nolock) inner join [$(Progression)].dbo.tasks t on tq.taskid = t.id inner join [$(Progression)].dbo.processhistory ph with (nolock) on tq....
true
0eb3acba6834c838301f52a9c5ed07bb5492ca27
SQL
nherment/crow
/db/queries/user/fetchUser.query.sql
UTF-8
562
3.84375
4
[]
no_license
-- $1: email SELECT u.id, u.email, u.first_name, u.last_name, CASE WHEN (u.first_name IS NOT NULL OR u.last_name IS NOT NULL) THEN COALESCE(u.first_name, '') || ' ' || COALESCE(u.last_name, '') ELSE u.email END AS full_name, u.password_hash, u.password_salt, u.password_iterations...
true
3b26b140673873f69cf6690ec72869d080f768ca
SQL
mrigor87/voting
/src/main/resources/data.sql
UTF-8
1,168
3.734375
4
[]
no_license
/*create table dish (id integer generated by default as identity, name varchar(255), price double, primary key (id)) create table menu (id integer generated by default as identity, curr_date timestamp, restaurant_id integer, primary key (id)) create table menu_dishes (menu_id integer not null, dishes_id integer not nul...
true
56e14079665866bf4e1dbd12b8f32251758c7016
SQL
dictybase-docker/dictyuser-schema
/00006_modify-auth-permission-constraint.sql
UTF-8
426
2.578125
3
[]
no_license
-- +goose Up -- SQL in this section is executed when the migration is applied. ALTER TABLE auth_permission DROP constraint auth_permission_c1, ADD CONSTRAINT auth_permission_c1 UNIQUE(permission,resource); -- +goose Down -- SQL in this section is executed when the migration is rolled back. ALTER TABLE auth_per...
true
ba7ee14de762ec2a0d8d82f65562db5c396dd60e
SQL
magnusandy/355DatabaseSQL
/views.sql
UTF-8
5,796
3.40625
3
[]
no_license
-- VIEW CREATION FOR ALL TABLES --CLIENTS CREATE VIEW ns_v_clients AS SELECT ns_cl_clname, ns_cl_email, ns_cl_phonenum, ns_cl_buildingnum, ns_cl_buildingname, ns_cl_streetname, ns_cl_city, ns_cl_country, ns_cl_region, ns_cl_postalcode FROM ns_t_clients ; --ITEMS CREATE VIEW ns_v_items AS SELECT ns_i_in...
true
9cfd849be2cb9e4df19ca29f44cb9ec76e394af1
SQL
IanDoarn/SQLspace
/table querys/G_BIN_DATA.sql
UTF-8
654
4.0625
4
[]
no_license
SELECT p.id, p.product_number, p.edi_number, ps.serial_number, d.zone || '-' || d.position || '-' || d.shelf as bins FROM sms.stock s LEFT JOIN sms.product p ON s.product_id = p.id LEFT JOIN bins_v2 d on d.bin_id = s.container_id and s.container_type = 1 LEFT JOIN sms.product_serial ps on ps.id ...
true
5b8d9e7953d4c82c91262f46d6a06bda19979fff
SQL
malopes21/ss-orm
/scripts-pra-producao/ScriptsChange-2019-10-13/scripts-02-2019-09-30-webhook.sql
UTF-8
2,947
3.484375
3
[]
no_license
-- WebHook create table WebHook ( id bigint not null auto_increment, objectId varchar(255), objectType varchar(255), token varchar(1000), type varchar(255), url varchar(255), primary key (id) ) ENGINE=InnoDB; -- inserts para InternalPermissions insert into InternalPermission (category, ...
true
a7f0b9dbcdb3fe481d9693d65589de3d7f5eb55f
SQL
devarh/otus-mssql-2021-03-PavelGuryev
/HW4/hw_cross_apply_pivot.sql
UTF-8
6,057
4.25
4
[ "Unlicense" ]
permissive
-- --------------------------------------------------------------------------- -- Задание - написать выборки для получения указанных ниже данных. -- --------------------------------------------------------------------------- USE WideWorldImporters /* 1. Требуется написать запрос, который в результате своего выполнени...
true
ddaf17b6526c9264a8cbd7b0c946f65a4f0365da
SQL
alaaebeed/Pharmacy-System
/Pharmacy.sql
UTF-8
6,091
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Oct 20, 2018 at 01:38 AM -- Server version: 5.7.23-0ubuntu0.18.04.1 -- PHP Version: 7.2.7-0ubuntu0.18.04.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER...
true
d2cc9954ef24f4481ddf60a241550bb1073c6137
SQL
Amankr113114/Portfolio_Projects
/covid analysis 2021.sql
UTF-8
5,219
3.828125
4
[]
no_license
SELECT * FROM PortfolioProject..CovidDeaths$ WHERE continent IS not null ORDER BY 3,4 --SELECT * --FROM PortfolioProject..CovidVaccination$ --ORDER BY 3,4 SELECT location,date,total_cases,new_cases,total_deaths, population FROM PortfolioProject..CovidDeaths$ ORDER BY 1,2 --Looking at total cases vs to...
true
a071759c7f277979a044fc3eab3e8903da7cab42
SQL
allyvio/appinves
/public/db/provinces.sql
UTF-8
4,107
2.578125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 01 Nov 2019 pada 07.52 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
3857bec26657dfab0b6c57a8b1030ba75a2efd2f
SQL
Shamzic/BDD_project
/projet/fonction1.sql
UTF-8
2,457
3.546875
4
[]
no_license
/* Simon HAMERY : simon.hamery2@etu.unistra.fr Fonction qui convertit au format ​json ​les informations d’une vidéo. L'id de la vidéo est donné en paramètre. Comment appeler cette fonction : SQL> @fonction1.sql SQL> variable toto varchar2(500); SQL> call conv_video_json(X) into :toto; //X étant l'id ...
true
668cc377d3878e270b8c02b4f90278399523c94a
SQL
btownshend/pyTecan
/RobotDB/mkrobot.sql
UTF-8
5,889
3.6875
4
[]
no_license
-- Make database on gcloud mysql for robot data -- Almost identical to SQLLITE database (since it will be synced from there) -- but: doesn't include synctime columns used to drive movement from robot to master -- flags supports sync from master back to robot create database robot; use robot; -- An experi...
true
ee55002025c73b551075ae4052bab35d9bfdb869
SQL
kathleentabbada/merchant
/merchantDB.sql
UTF-8
3,204
3.390625
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.4.6-MariaDB - mariadb.org binary distribution -- Server OS: Win64 -- HeidiSQL Version: 9.5.0.5196 -- -------------------------------------------------...
true
2fa60a6657fdab2a481a6e6bf689fdbddfbc743d
SQL
chriskov/data_analytics
/hw2.sql
UTF-8
840
3.828125
4
[]
no_license
SELECT 'ФИО: Чернова Кристина Сергеевна'; -- 1.2 SELECT * FROM links WHERE imdbid LIKE '%42' AND movieid BETWEEN 100 AND 1000 LIMIT 10; -- 2.1 SELECT IMDBID FROM LINKS INNER JOIN ratings ON links.movieid=ratings.movieid WHERE ratings.rating=5 LIMIT 10; -- 3.1 SELECT COUNT(*) FROM LINKS LEFT JOIN ratings ON links.movi...
true
e60d03bfd77b20b52edb1b4014ba5a33bb7ccb44
SQL
payalprakash99/Day3
/mysqlTempTables.sql
UTF-8
1,124
4.34375
4
[]
no_license
CREATE TEMPORARY TABLE MonthlyAverageSales SELECT MONTH(orders.order_date) AS months, orders.store_id AS store_Id, stores.store_name AS store_Name, ROUND((COUNT(orders.order_id))/3) AS Average_Orders FROM orders LEFT JOIN stores ON stores.store_id=orders.store_id where YEAR(orders.order_date) IN ( 2017,2018,2019) GR...
true
7431ac70a84bd4522ce7b7eaf0ca019afb175a5c
SQL
Komaricus/applenperry-db
/migrations/00031_adds_pages_and_files_table.sql
UTF-8
324
2.90625
3
[]
no_license
-- +goose Up create table if not exists dbo.pages_and_files ( id uuid not null primary key, page_id uuid not null references dbo.pages (id), file_id uuid not null references dbo.files (id) ); alter table dbo.pages_and_files owner to appleadmin; -- +goose Down drop table if exists dbo.pages_and_fi...
true
10a17a1cab79be9905913111b43633d6c478739b
SQL
The-CJ/Phaazebot
/Utils/DBTemplates/twitch_known_bot.sql
UTF-8
815
3.453125
3
[ "MIT" ]
permissive
/* DESCRIBE `twitch_known_bot`; +--------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +--------+--------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | name | varchar(128)...
true
8df0761e289f3ec8cbfecf55c5185fe27f371fb0
SQL
Douglas-Belani/POC-Rest-API
/sqlScripts/procedure_update_expired_order.sql
UTF-8
445
3.140625
3
[]
no_license
DELIMITER $ CREATE PROCEDURE update_expired_order() BEGIN SET @orderStatusCanceledId = (SELECT orderStatusId FROM orderStatus WHERE status = 'CANCELED'); SET @orderStatusPendentId = (SELECT orderStatusId FROM orderStatus WHERE status = 'PENDENT'); UPDATE `order` SET orderStatusId = @orderStatu...
true
3ad3e96025ece9fd587015da7f212292dbae6c5f
SQL
AguilarFerrer/TrivialLeaguePHP
/SQL/Inserts_Questions_&_Topics.sql
UTF-8
14,346
2.890625
3
[]
no_license
INSERT INTO Trivial.Topics (Name, Image) VALUES ('Sports', '".\images\topics\sports.png"'); INSERT INTO Trivial.Topics (Name, Image) VALUES ('Culture', '".\images\topics\culture.png"'); INSERT INTO Trivial.Topics (Name, Image) VALUES ('Cinema', '".\images\topics\cinema.png"'); INSERT INTO Trivial.Topics (Name, Image...
true
072814a6ebdc4b8a330e7c13d28fda5a3dc9cc9d
SQL
redfin-research/schools-and-housing
/city-level/housing_cost_query.sql
UTF-8
592
4.15625
4
[]
no_license
-- Redfin housing cost by city in 2016 select pm.table_id as place_id , quantile(sale_price::numeric, 0.5) as median_sale_price , quantile((l.sale_price::numeric / nullif(l.approx_sq_ft, 0)), 0.5) as median_sale_price_per_sqft , count(distinct l.property_id) as total_sales from listings l join property_...
true
4e0f67140fcb823d9814999074a32153f0898e39
SQL
hellgrenj/super-silly-todo
/db2/migrations/000001_create_todo_list.up.sql
UTF-8
328
3.296875
3
[]
no_license
CREATE TABLE list ( id int PRIMARY KEY AUTO_INCREMENT, name VARCHAR(100) UNIQUE NOT NULL ); CREATE TABLE item ( id int PRIMARY KEY AUTO_INCREMENT, name VARCHAR(100) NOT NULL, done boolean not null default 0, list_id INT NOT NULL, FOREIGN KEY (list_id) REFERENCES list (id) ON DELETE CASCADE ...
true
776bd87c012e3653ea6aeaac3fe5e59fbdaf13bd
SQL
msw822/xjny_dev
/xjny_version/dw_hadoop/table/app/edu_app_mj_zjhd.sql
UTF-8
1,281
2.953125
3
[]
no_license
--公共业务库-5/6 use app; drop TABLE IF EXISTS edu_app_mj_zjhd; CREATE EXTERNAL TABLE edu_app_mj_zjhd( rq string comment '日期,格式:YYYY-MM-DD' ,xh string comment '学号' ,xm string comment '姓名' ,yxdm string comment '院系代码' ,yxmc string co...
true
53e3d49e231d69b3573201c1a8560c6a325145d2
SQL
MuhammadRizkiSatria/TKT311-2020-C-PrizeClass
/database/claszious.sql
UTF-8
4,732
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 27 Des 2020 pada 14.43 -- Versi server: 10.4.14-MariaDB -- Versi PHP: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
cfc417e41464a15c35a0afdd93d5b8c4ed38e20a
SQL
brynjaranalytica/SEP4
/ThermalAnalysis/WeatherConditionMargins.sql
UTF-8
2,459
3.65625
4
[ "MIT" ]
permissive
/* ThermalAnalysisWeatherConditionMargins.sql * * This script can be rerun to change the accepted margins of the different * weather parameters. * * Ideally the margins should be derived from feature analysis like anova * testing. */ drop table weather_condition_margins ; create table weather_condition_margin...
true
a9e133bcd2c5de57710911d0d215cab9777f2cf6
SQL
admfarmer/consent-form-upload
/sql/documents.sql
UTF-8
501
2.53125
3
[]
no_license
DROP TABLE IF EXISTS `documents`; CREATE TABLE `documents` ( `document_id` varchar(128) NOT NULL, `document_code` varchar(20) DEFAULT NULL, `originalname` varchar(200) DEFAULT NULL, `file_name` varchar(150) DEFAULT NULL, `file_path` varchar(200) DEFAULT NULL, `uploaded_at` varchar(20) DEFAULT NULL, `mime_...
true
47ed36aef90c2cbc6fc1e34f7f46caeaa0df9811
SQL
bilykb/BootcampX
/1_queries/4_students_with_gmail.sql
UTF-8
99
2.6875
3
[]
no_license
SELECT name, id, email, cohort_id FROM students WHERE email NOT LIKE ('%gmail%') AND phone IS NULL;
true
f924b03a85d3bd92dc413d673605dda0031d640e
SQL
A00431152/Managing-Programming-and-Databases
/Assignmnet3&4/Part 1 - Assignment 3 files/make_person_table.sql
UTF-8
364
2.625
3
[]
no_license
create table if not exists person ( _id INT not null auto_increment, lname VARCHAR(50), fname VARCHAR(50), email VARCHAR(50), city VARCHAR(50), country VARCHAR(50), postalcode VARCHAR(50), streetnum VARCHAR(50), streetname VARCHAR(50), mainjob VARCHAR(50), primary key(_id) ) engine = innodb; load data lo...
true
48970773c98fa4e599f7300b7978970824c7a168
SQL
radtek/abs3
/sql/mmfo/bars/Sequence/s_file_info.sql
UTF-8
1,161
2.609375
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Sequence/S_FILE_INFO.sql =========*** Run ** PROMPT ===================================================================================== PROMPT *** Create sequence ...
true
2c81015add3c89fb07d2b7a0c6d6b4b7468adfb2
SQL
SimeonAnunciado/BusKaro
/buskaro.sql/buskaro_table_department.sql
UTF-8
596
3.390625
3
[ "MIT" ]
permissive
-- -------------------------------------------------------- -- -- Table structure for table `department` -- DROP TABLE IF EXISTS `department`; CREATE TABLE IF NOT EXISTS `department` ( `DCode` varchar(5) NOT NULL, `DName` varchar(50) DEFAULT NULL, PRIMARY KEY (`DCode`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ...
true
98b1a7ecbe7012cc1555c3290806d9239df8aa39
SQL
alvvazort/Attica
/sql/triggers.sql
UTF-8
475
3.375
3
[]
no_license
DELIMITER // CREATE OR REPLACE TRIGGER triggerFiftyPhotos BEFORE INSERT ON Photos FOR EACH ROW BEGIN DECLARE photosUser INT; SET photosUser = (SELECT COUNT(*) FROM photos WHERE userId = new.userId); IF(photosUser > 50) THEN ...
true
9433c99c2464497bc0548b8313c1ef47185af43b
SQL
chriseagle1/sanyou
/models/mysql/product.sql
GB18030
4,027
3.4375
3
[ "BSD-3-Clause" ]
permissive
DROP TABLE IF EXISTS `product`; CREATE TABLE `product`( `id` INT(11) UNSIGNED NOT NULL auto_increment, `product_no` VARCHAR(15) NOT NULL DEFAULT '', `product_name` VARCHAR(100) NOT NULL DEFAULT '', `brand` VARCHAR(30) NOT NULL DEFAULT '', `unit` VARCHAR(50) NOT NULL DEFAULT '', `specification` VARCHAR(30)...
true
717b21822d8e447890cb3453d702af649d675f62
SQL
radtek/scripts-oracle-named
/+usados/Diversos/TB-DF-RBS.sql
UTF-8
6,210
4.0625
4
[ "MIT" ]
permissive
//Description: The script generates a report of tablesapces, data files, roll back segments, control files, log files, objects (user wise, valid and invalid) set long 132 set serveroutput on declare cursor tablespaces is select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_size from dba_tablespaces ...
true
01a726136fa6df3bed42e3d678fcefee70508e93
SQL
Amanda1102/Divide-A.I.---plataforma-de-acompanhamento-e-divis-o-de-despesas.
/Database_System/Divide_AI_SQL_script.sql
UTF-8
1,328
3.9375
4
[]
no_license
CREATE SCHEMA Divide_AI; USE Divide_AI; CREATE TABLE Usuario ( CPF BIGINT NOT NULL, Idade TINYINT, Pnome VARCHAR(30), Sobrenome VARCHAR(50), Saldo FLOAT, PRIMARY KEY (CPF) ); CREATE TABLE Grupo( Identificador VARCHAR(50) NOT NULL, Nome VARCHAR(30), Quantidade_pessoas INT, PRIM...
true
b1b8e38dfc775f4b4343703b8110022b9a2f0059
SQL
PerryHuan9/LearnSpring
/src/main/resources/sql/curd.sql
UTF-8
4,245
4.8125
5
[]
no_license
# 创建表 CREATE TABLE classes ( id BIGINT NOT NULL AUTO_INCREMENT, name VARCHAR(100) NOT NULL, PRIMARY KEY (id) ) ENGINE = InnoDB DEFAULT CHARSET = utf8; -- 创建students表: CREATE TABLE students ( id BIGINT NOT NULL AUTO_INCREMENT, class_id BIGINT NOT NULL, name VARCHA...
true
18765ce196deaa07774d3a826e57c15d9cdeee56
SQL
rijumone/url-shortening-service
/shorturl/schema.sql
UTF-8
206
2.609375
3
[]
no_license
DROP TABLE IF EXISTS urls_map; CREATE TABLE urls_map ( id INTEGER PRIMARY KEY, short_url TEXT DEFAULT NULL, original_url TEXT DEFAULT NULL, created_at DATETIME DEFAULT (datetime('now', 'utc')) );
true
a012a5f15d18347c2cab793407430c9600bf7420
SQL
miryasha/analytics
/app/db/checkTheSize.sql
UTF-8
661
3.625
4
[]
no_license
SELECT table_schema 'Database Name', SUM(data_length + index_length) 'Size in Bytes', ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) 'Size in MiB' FROM information_schema.tables GROUP BY table_schema; UNIQUE (ID) CREATE TABLE Orders ( OrderID int NOT NULL, OrderNumber int NOT NULL, ...
true
1b12b8267de018b7a9405576f2b63dd8d15d0cb2
SQL
llmhyy/clonepedia
/clonepedia/design/dbSchema/Method.SQL
UTF-8
225
2.609375
3
[]
no_license
CREATE TABLE IF NOT EXISTS Method ( methodId VARCHAR(255) NOT NULL, ownerId VARCHAR(50) NOT NULL, methodName VARCHAR(255) NOT NULL, returnType VARCHAR(255), returnTypeCategory VARCHAR(50), PRIMARY KEY (methodId) ) ;
true
323091029b98791cbbf112c5bf4f1bc6f3fd8ad7
SQL
alexanderps3393/Simple-HMVC-in-Codeigniter-3
/engg.sql
UTF-8
4,271
3.140625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.2.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 25, 2015 at 07:03 AM -- Server version: 5.6.20 -- PHP Version: 5.4.35 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
ed7b46202483ea5dc0bb0473aec5fed8eb887a97
SQL
DevartVasiliyK/MySQL_rep
/Functions/inventory_held_by_customer.sql
UTF-8
366
3.5625
4
[]
no_license
DELIMITER $$ CREATE FUNCTION `inventory_held_by_customer`(p_inventory_id INT) RETURNS INT(11) READS SQL DATA BEGIN DECLARE v_customer_id INT; DECLARE EXIT HANDLER FOR NOT FOUND RETURN NULL; SELECT customer_id INTO v_customer_id FROM rental WHERE return_date IS NULL AND inventory_id = p_inventory_id; ...
true
97e80d4e7c36bd5c9eced69d1e02ca0320932d8e
SQL
molokovskikh/af_prgdata
/migrations/468_00_user_prices_begore_insert_trigger.sql
UTF-8
692
3.28125
3
[]
no_license
DROP TRIGGER IF EXISTS Customers.UserPricesBeforeInsert; CREATE DEFINER=`RootDBMS`@`127.0.0.1` TRIGGER `Customers`.`UserPricesBeforeInsert` BEFORE INSERT ON `Customers`.`userprices` FOR EACH ROW BEGIN update Usersettings.AnalitFReplicationInfo ar join Usersettings.PricesData pd on pd.FirmCode = ar.Fi...
true
625e51d699ac380304ad93216a8d0ec333fda70f
SQL
benardkirui/digitala-attendance-system
/database/attendance.sql
UTF-8
6,081
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Sep 02, 2019 at 10:10 AM -- Server version: 5.7.26 -- PHP Version: 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
80b848ba65372dca7980886b94ef6047fbc29106
SQL
hilongjw/wazi
/Dockerfile/wazi.sql
UTF-8
3,814
3
3
[ "MIT" ]
permissive
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50540 Source Host : localhost:3306 Source Database : wazi Target Server Type : MYSQL Target Server Version : 50540 File Encoding : 65001 Date: 2015-06-22 17:55:15 */ SET FOREIGN_KEY_CHECKS=0; -- ----...
true
5f8c519178977f96cff9a673cbc8b5e5415616f9
SQL
i-MCcarri/init-api
/migrations/006.do.create_init_comments.sql
UTF-8
381
3
3
[]
no_license
CREATE TABLE init_comments ( id INTEGER PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, text TEXT NOT NULL, date_created TIMESTAMPTZ DEFAULT now() NOT NULL, post_id INTEGER REFERENCES init_posts(id) ON DELETE CASCADE NOT NULL, user_id INTEGER REFERENCES user_information(id) ON DELETE C...
true
37ff49ef86c7616bc35056098c89cac8359be940
SQL
gruter/tajo-elasticsearch
/tajo-core/src/test/resources/queries/TestJoinQuery/testInnerJoinWithThetaJoinConditionInWhere.sql
UTF-8
129
3.546875
4
[ "Apache-2.0", "PostgreSQL", "BSD-3-Clause", "MIT" ]
permissive
select a.r_regionkey, a.r_name, b.r_name from region a join region b on a.r_regionkey = b.r_regionkey where a.r_name <= b.r_name;
true
8cc91d254199fa5d5c570b6262f7a1151be01a8d
SQL
cabacdorina/SQL
/create_a_record.sql
UTF-8
565
3.40625
3
[]
no_license
declare --r_emp employees%rowtype; type t_emp is record (first_name VARCHAR2(50), last_name EMPLOYEES.LAST_NAME%type, salary employees.salary%type, hire_date date); r_emp t_emp; begin --select first_name, last_name, salary, hire_date into r_emp from employees where employee_id='101'; r_emp.first_nam...
true
4df4e22ff95c9fe1481e8fcf3f8fea05622fe97e
SQL
rojaleen91/SQL-QUERIES
/SQL DOCUMENTS.sql
UTF-8
3,736
3.859375
4
[]
no_license
CREATE DATABASE testDB; /*...create table....*/ CREATE TABLE CUSTOMERS( ID INT NOT NULL, NAME VARCHAR (20) NOT NULL, AGE INT NOT NULL, ADDRESS CHAR (25) , SALARY DECIMAL (18, 2), PRIMARY KEY (ID) ); /*...Insert query....*/ INSERT INTO CUSTOME...
true
db7e6a1bf9866a76738efa65153623a1b7e71142
SQL
PratikRaut15/speed-elixia-project
/.svn/pristine/db/db7e6a1bf9866a76738efa65153623a1b7e71142.svn-base
UTF-8
992
3.265625
3
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS `insert_vehicle`$$ CREATE PROCEDURE `insert_vehicle`( IN transporterid INT , IN vehicletypeid INT , IN vehicleno VARCHAR(20) , IN customerno INT , IN todaysdate DATETIME , IN userid INT , OUT currentvehicleid INT ) BEGIN INSERT INTO vehicle( ...
true
af6a9acae81d94bca3ced161c865e23e4a8392ea
SQL
EternalVigil/week-14-handlebars
/db/schema.sql
UTF-8
174
2.53125
3
[]
no_license
CREATE DATABASE burger_db; use burger_db; CREATE TABLE burgers( id INTEGER(10) NOT NULL AUTO_INCREMENT, burger_name VARCHAR(50), devoured BOOL, date DATE, PRIMARY KEY(id) );
true
a4d1a44e4b497deec68f9fa00dcae35c370ca71e
SQL
jlemonier/utils
/win_utils/py/vf_v4/VF_SO_DB_vs_XML.sql
UTF-8
6,675
3.15625
3
[]
no_license
-- v5 csv loaded with PoLineNumber correctly - if 'no create #vf' = 'create #vf' begin drop table #vf -- Table alias -- VF connect invoices to xml data -- select * from tt_om_vendordoc vd where vd.shippingordernum in ('5010159481') -- select * from tt_om_org_invoicestatus -- select top 50 * from tt_om_v...
true
34adb4108ffaa19c4d309290aa6cf3c1ef4c3126
SQL
BenMusch/cs3200-final-project
/db/db3.sql
UTF-8
385
3.125
3
[]
no_license
-- -- Table structure for table `debaters` -- CREATE TABLE `debaters` ( `id` int(11) NOT NULL AUTO_INCREMENT, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Test Person', PRIMARY KEY (`id`), UNIQUE KEY `NAME` (`name`) ) ENGINE=I...
true
7d09206b83cb2eaeb168ccafe73402b246e82110
SQL
ramoslm/bifrcu
/scripts/dwfrcu/dim_redprogramatica_std_redprogramatica.sql
UTF-8
2,072
3.140625
3
[]
no_license
DROP TABLE dim_redprogramatica_std_redprogramatica; CREATE TABLE dim_redprogramatica_std_redprogramatica( redprogramatica_sk SERIAL NOT NULL, redprogramatica_programa SMALLINT, redprogramatica_nombreprograma VARCHAR(60), redprogramatica_nombre VARCHAR(40), redprogramatica_subprograma SMALLINT, redprograma...
true
0171beeb47e4913a69d8ca83a76c02c62ef32bb4
SQL
xeeshansoftech/Akhpal-Kaar
/Forms/RMS/LOAN/DATABASE/Audit_RMS_Cust_Client_Loan_TRG.sql
UTF-8
926
2.875
3
[]
no_license
create or replace trigger "AU_TRG_RMS_CUST_CLIENTS_LOAN" before update or delete on RMS_CUST_CLIENTS_LOAN for each ROW declare -- local variables here nextversion_no AUDIT_RMS_CUST_CLIENTS_LOAN.version_no%TYPE; begin SELECT nvl(MAX(version_no), 0) + 1 INTO nextversion_no FROM AUDIT_RMS_CUST_CLIENTS_...
true
21783be507ba791969be558b6320845671c53278
SQL
byeveweb/php-foro-trabajo-UCAV
/sql/foro._seas.sql
UTF-8
2,596
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 29-11-2018 a las 20:57:50 -- Versión del servidor: 10.1.30-MariaDB -- Versión de PHP: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
68dfc85b8cf072c8329f2b06455e7da336daa415
SQL
lsst/qserv
/src/qmeta/schema/migrate-0-to-1.sql
UTF-8
2,745
3.84375
4
[]
no_license
-- -- Migration script from version 0 to version 1 of QMeta database: -- - QInfo table adds two new columns -- - processlist views add result location column -- - QMetadata table is added to keep schema version -- -- ----------------------------------------------------- -- Add new columns to table `QInfo` -- --...
true
b3fa1cf2aeec19d6179daf025de9e99eb74642da
SQL
menome/neo4j-spatial-experiments
/3_walkscore_neo4j/cypher_scripts/1_dykstra.cql
UTF-8
1,009
3.53125
4
[ "MIT" ]
permissive
// ------------------------------------------------------------------ // Neo4j Spatial Experiments, December 2018 // Written by Menome Technologies Inc. http://www.menome.com // // Cypher Version of the Walk Score Calculation // ------------------------------------------------------------------ // 6 compute walk scor...
true
1b3cb6c2d84c26f336184484963d9ed147d25b53
SQL
YousCode/docker
/db/db.sql
UTF-8
235
2.5625
3
[]
no_license
CREATE DATABASE Docker; USE Docker; CREATE TABLE Users ( ID int, Username VARCHAR(20), Email VARCHAR(40), password VARCHAR(100)); INSERT INTO Users VALUES ( 1, 'brasko', 'brasko_93@gmail.com', 'ici-cest-la-cite');
true
d0819f8223b0a2089542193aa4f8f8b8c6189ba6
SQL
Jackiezj/myql-jdbc
/mysql/src/dml.sql
UTF-8
605
3.4375
3
[]
no_license
-- 添加数据 insert into student (id, name, age) values (null, "zhangsan", 18); -- 除数字外所有内容都用"" 引起来 如日期 insert into student values (...); -- ... 表示所有列全部需要依次传递 -- 删除数据 delete from student where age=18; delete from student; -- 不加条件表示全部删除, 不推荐使用 truncate table student; -- 先删除表,然后再创建一张一样的表, 推荐使用 -- 修改数据 update student set...
true
a91bade5323da6ec1c83f6857e299b1112cb2a3d
SQL
VadimKNF/OOP_1
/modules/core/db/init/hsql/10.create-db.sql
UTF-8
2,556
3.21875
3
[]
no_license
-- begin OOP1_EMPLOYEE create table OOP1_EMPLOYEE ( ID varchar(36) not null, VERSION integer not null, CREATE_TS timestamp, CREATED_BY varchar(50), UPDATE_TS timestamp, UPDATED_BY varchar(50), DELETE_TS timestamp, DELETED_BY varchar(50), -- FIRST_NAME varchar(30) not null, LA...
true
c937b91bb390617b24f4457a790c9a76d4ab3704
SQL
sonikvvv/Project-for-DB
/Version 1/forDBproject~3.sql
UTF-8
162
3.421875
3
[]
no_license
select s.sales_id,s.client_id, s.sale_date, e.employee_name from sales s join employees e on e.employee_id = s.employee_id order by s.sale_date, e.employee_name;
true
286d73bd0343112a05714c98ffedfa69795900ff
SQL
QUANWEIRU/My-Work-In-OracleEBS
/FND/ValueSet_n_Lookup/Q_VS_Based_on_Independent_Type.sql
UTF-8
491
3.140625
3
[]
no_license
SELECT ffvs.flex_value_set_id , ffvs.flex_value_set_name , ffvs.description set_description , ffvs.validation_type, ffv.flex_value_id , ffv.flex_value , ffvt.flex_value_meaning , ffvt.description value_description FROM fnd_flex_value_sets ffvs , fnd_flex_values ffv , fnd_flex_values_...
true
6d796e930547170111a4e3285988bedc053792f7
SQL
souravrrp/AKG-SCIL-SQL
/QUERY/Queries/item on hand qty lot wise.sql
UTF-8
754
3.515625
4
[]
no_license
select msi.segment1||'.'||msi.segment2||'.'||msi.segment3 item_code, msi.description, ood.organization_code, moq.subinventory_code, moq.lot_number, moq.transaction_quantity from APPS.MTL_ONHAND_QUANTITIES moq, inv.mtl_system_items_b msi, apps.org_organization_definitions ood where --...
true
ea4e3f5ff6895e944340773f4ee403e13600bdf6
SQL
jmaviz/Sprint2-Bases-de-dades
/mysql-estructura/consultes_optica.sql
UTF-8
306
2.796875
3
[]
no_license
-- OPTICA SELECT * FROM venda WHERE data_venda BETWEEN "2020-01-01" AND "2020-12-30"; SELECT u.marca FROM ulleres u JOIN venda v ON u.id=v.ulleres_id WHERE data_venda BETWEEN "2020-01-01" AND "2020-12-30"; SELECT * from proveidor p JOIN ulleres u ON p.DNI=u.DNI_proveidor JOIN venda v ON u.id=v.ulleres_id;
true
edc97cbd056041d6bef323ddf713b3b19ccf2e39
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day23/select1316.sql
UTF-8
178
2.671875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-22T13:16:00Z' AND timestamp<'2017-11-23T13:16:00Z' AND temperature>=26 AND temperature<=27
true
80793fdb7fccf0dbb99a24e47461900a0562c0fa
SQL
Marcos-Barranquero/BBDDAA-UAH
/PECL2/consulta_postgres.sql
UTF-8
1,085
3.78125
4
[]
no_license
-- Consulta del ejercicio 13 para postgresql: casteando Precio a numeric. select distinct "Musicos"."Nombre", "Musicos"."Codigo_grupo_Grupo" from "Musicos" inner join "Grupo" on "Musicos"."Codigo_grupo_Grupo" = "Grupo"."Codigo_grupo" inner join "Grupos_Tocan_Conciertos" on "Grupo"."Codigo_grupo" = "Grupos_Tocan_Conci...
true
cf3bc739990ba5bc43717caafd9dab8f7dfbbe4a
SQL
essaricy/MySchool
/Database/Postgres/schemas/public/CREATE/TABLES/notification.sql
UTF-8
2,828
3.671875
4
[]
no_license
-- NOTIFICATION Module CREATE TABLE NOTIFICATION_END_POINT ( END_POINT_ID int NOT NULL, END_POINT_NAME varchar(16) NOT NULL, PRIMARY KEY (END_POINT_ID) ); ALTER TABLE NOTIFICATION_END_POINT ADD UNIQUE (END_POINT_ID); ALTER TABLE NOTIFICATION_END_POINT ADD UNIQUE (END_POINT_NAME); CREATE TABLE NOTIFICATION...
true
413f5de352bf51675e21f034c344cb0dbc628661
SQL
kenethfv/DB_Project
/Scripts.sql
UTF-8
7,230
3.578125
4
[]
no_license
/*TABLA DEPARTAMENTO*/ CREATE TABLE departamento ( id_depto NUMBER(9), departamento VARCHAR2(150), CONSTRAINT pk_departamento PRIMARY KEY ( id_depto ) ); /*TABLA CABECERA*/ CREATE TABLE cabecera ( id_cabecera NUMBER(9), cabecera VARCHAR2(150), id_depto NUMBER(9), CONSTRAINT pk_cab...
true
0f504c822614c53170f83145c670de319097857b
SQL
anshikanigam14/Hackearth-SQL-Challenges
/inventory_data.sql
UTF-8
264
3.34375
3
[]
no_license
/*Language used: MYSQL*/ select item, sum((BuyQty - SellQty)) as NetQty, concat(year(trandate),'/',month(trandate)) as MonthEnd from Inventory group by item, concat(year(trandate),'/',month(trandate)) order by item asc, year(trandate) asc, month(trandate) asc;
true
7ae80ab0f6ec7304e24f6bf146961cf1afb14863
SQL
sortidocorps/chillyset
/src/main/resources/data.sql
UTF-8
1,646
3.625
4
[]
no_license
/** CREATE TABLE `SIMPLE_OBJECT` ( `Id` BIGINT NOT NULL, `Name` NVARCHAR(45) NOT NULL, `CasualName` NVARCHAR(45), `Location` NVARCHAR(20) ); CREATE TABLE `HUGE_OBJECT` ( `Id` BIGINT NOT NULL, `Name` NVARCHAR(45) NOT NULL, `Comment` NVARCHAR(500) ); */ INSERT INTO SIMPLE_OBJECT VALUES (1, 'Apis Mellifer...
true
95ce94722b155245418d5e1d42595c5f1f61ca4e
SQL
Ensembl/ensembl
/sql/patch_74_75_e.sql
UTF-8
1,568
2.59375
3
[ "GPL-1.0-or-later", "Artistic-2.0", "Artistic-1.0", "Apache-2.0", "Artistic-1.0-Perl" ]
permissive
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- Copyright [2016-2023] EMBL-European Bioinformatics Institute -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may ob...
true
1b602b932afdd435101074026b04a46f2a9c36f3
SQL
GayatriHushe/Swabhav-Database-Mysql
/TASK/dateFunc.sql
UTF-8
155
2.6875
3
[]
no_license
DELIMITER // CREATE FUNCTION GETMYDATE() RETURNS VARCHAR(20) BEGIN RETURN DATE_FORMAT(NOW(), '%Y%m%d'); END; // DELIMITER ; SELECT GETMYDATE();
true
53a2b9903c915d04edb4acd80b7164dd82fb2591
SQL
anisimovss/Anisimov_Sergey
/Task_10/Northwind/Tasks/Task_13.2.sql
UTF-8
370
3.28125
3
[]
no_license
--select * from Northwind.Orders alter procedure Northwind.ShippedOrdersDiff @SpecifiedDelay int as begin select OrderID, OrderDate, ShippedDate, DATEDIFF(dd, OrderDate, ShippedDate) as 'ShippedDelay', @SpecifiedDelay as 'SpecifiedDelay' from Northwind.Orders where (DATEDIFF(dd, OrderDate, ShippedDate)...
true
eb1a43d5ce06036575f2cdf21875558214402ba9
SQL
dgupta-apttus/EDA
/Snowflake/C1_Product_Metrics/Research/LICENSE_DIM_RESEARCH.sql
UTF-8
2,583
3.296875
3
[]
no_license
select count(*), LICENSE_NAME, CRM_SOURCE --, LICENSE_ID FROM APTTUS_DW.PRODUCT.LMA_LIC_PRODUCTLINE_CURRENT group by LICENSE_NAME, CRM_SOURCE --LICENSE_ID having count(*) > 1 ; select count(*), SUBSTR(CRM_SOURCE, 1, 1) || '-' || LICENSE_NAME FROM APTTUS_DW.PRODUCT.LMA_LIC_PRODUCTLINE_CURRENT group by SUBSTR(CRM_SOURC...
true
702d232ed834a00424600545beefed19e2c5e189
SQL
kiirbs/AFPA_Work
/backend/Develop Datacomponant/Programmer des vues/View3.sql
UTF-8
151
2.796875
3
[]
no_license
CREATE VIEW ListeResa AS SELECT reservation.*, CONCAT (cli_nom, ' ', cli_prenom) AS NomComplet FROM reservation, clients WHERE cli_id = res_cli_id;
true
8c686278e3915e0c4187ed4fcfde6c99619fb878
SQL
dawxoje/SQL
/Con Marina/Profesores/DDL_Profesores.sql
UTF-8
700
3.546875
4
[]
no_license
DROP TABLE Profesores; DROP TABLE Asignaturas; DROP TABLE Imparte; CREATE TABLE Profesores( dni varchar(10) NOT NULL, nombre varchar(40), categoria varchar(4), ingreso date, CONSTRAINT pk_profesores PRIMARY KEY(dni) ); CREATE TABLE Asignaturas( codigo varchar(5) NOT NULL, descripcion varchar (35), creditos...
true
57429f8775bac6cb0f6504ae0dc75c46b547027d
SQL
princesslisa/Learn_and-Practice_SQL
/Udacity/Lesson 2 - Joins/Lesson 2 - Summary on types of Joins.sql
UTF-8
575
3.546875
4
[]
no_license
/* INNER JOINS these return rows that appear on both tables. this is like a cross-section between two tables. a venn diagram can be used to represent these JOINS the overlapping middle section shows the rowas for which the on clause is true. one table is selected as a left table and the other is selected as a RIGHT T...
true
e8fd735bdd380a50f456c8d8087c0917892757dd
SQL
NVSL/Appliancizer
/API Session.sql
UTF-8
2,879
3.625
4
[]
no_license
-- -- User Table -- CREATE TABLE IF NOT EXISTS users ( id SERIAL PRIMARY KEY, username VARCHAR(25) NOT NULL UNIQUE CHECK (LENGTH(username) > 0), email VARCHAR(255) NOT NULL UNIQUE CHECK (LENGTH(email) > 0), password VARCHAR(255) NOT NULL CHECK (LENGTH(password) >= 8), security_level VARCHAR(20) NOT NULL DEF...
true
a8fdd1b9c8e05801744f5184c945bd5ce26287b2
SQL
Gcarvalhu/2s2019-sprint-1-bd
/OpFlix/T_03_Gustavo_DQL.sql.sql
WINDOWS-1252
862
3.40625
3
[ "MIT" ]
permissive
select * from Categoria select * from Plataforma SELECT * FROM Lancamentos select * from Permissao update Usuarios set IdPermissao = 1 where IdUsuario = 4; select * from Usuarios update Lancamentos set DataLanc = '08-07-1994' where IdLanc = 1; update Lancamentos set Titulo = 'La Casa De Papel - 3 Temporada' wher...
true
5822b80f7a27ab1e6fd63efbf3dc244267b31071
SQL
cartershanklin/structor
/modules/benchmetrics/files/tpc/tpcds.realschema/queries/query16.sql
UTF-8
1,018
4.25
4
[]
no_license
select count(distinct cs_order_number) as `order count` ,sum(cs_ext_ship_cost) as `total shipping cost` ,sum(cs_net_profit) as `total net profit` from catalog_sales cs1 left semi join (select distinct(cs_order_number) as cs2_cs_order_number, cs_warehouse_sk as cs2_cs_warehouse_sk from catalog_sales) c...
true
4b250e8d72ef55b4cc78bf723ba6704b4dbad16e
SQL
danielrc14/tarea3grupo9
/tarea3grupo9.sql
UTF-8
2,242
3.765625
4
[ "MIT" ]
permissive
CREATE TABLE Users( `id` int NOT NULL AUTO_INCREMENT, `nombre` varchar(15) NOT NULL, `apellido` varchar(15), `avatar` varchar(20), `email` varchar(30), `username` varchar(10) NOT NULL UNIQUE, `password` varchar(20) NOT NULL, `status` int NOT NULL DEFAULT 0, `registro` date, `ultima_sesion` date, ...
true
8284530e0f36ce00ca916341e3de9c03b0f72fb8
SQL
dopos/dcape-app-powerdns
/setup.acme.sql
UTF-8
1,467
3.28125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
SET vars.domain TO :'ACME_DOMAIN'; SET vars.ns TO :'ACME_NS'; SET vars.admin TO :'NS_ADMIN'; DO $_$ DECLARE v_domain text := current_setting('vars.domain'); -- domain name v_ns text := current_setting('vars.ns'); -- master DNS host v_ns_admin text := current_setting('vars.admin'); -- master DNS ...
true