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
a3aa0de2c409642076f1a3ada26e44b21c7211db
SQL
fpestunov/Symfony-vs-FlatPHP
/schema.sql
UTF-8
356
3.046875
3
[]
no_license
DROP DATABASE IF EXISTS `blog_db`; CREATE DATABASE `blog_db` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; USE `blog_db`; CREATE TABLE `post` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `created_at` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, `title` VARCHAR(100) NOT NULL, `body` TEXT...
true
ae5e7080e927089bfca7ecc8e514b867ab01c72f
SQL
MrD0079/portal
/sql/a14to_accept_photos.sql
UTF-8
1,919
3.3125
3
[]
no_license
/* Formatted on 06/01/2015 11:11:12 (QP5 v5.227.12220.39724) */ SELECT t.url, t.h_url, s.ts, s.ts_comm, s.auditor_comm, s.auditor, s.auditor_fio, TO_CHAR (s.auditor_lu, 'dd.mm.yyyy hh24:mi:ss') auditor_lu, s.tasks_mr, s.tasks_assort FROM a14to t, a14tost ...
true
cd4833ddf68d7007236b48f6c4197d3f6602e7dc
SQL
Drucia/zsbd-shop
/sql/ZSBD Shop Create With Partitions.sql
UTF-8
5,123
3.4375
3
[]
no_license
CREATE TABLE City ( CityID number(10) GENERATED AS IDENTITY, Name varchar2(255), PRIMARY KEY (CityID)); CREATE TABLE Country ( CountryID number(10) GENERATED AS IDENTITY, Name varchar2(255), PRIMARY KEY (CountryID)); CREATE TABLE District ( DistritID number(10) GENERATED AS IDENTITY, N...
true
942ca36c933cc51d60c2512569efb37b02a7a85a
SQL
nileshvishwakarma51/ChatRoom
/chatroom (1).sql
UTF-8
3,088
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 12, 2020 at 07:14 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.2.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
c1ce73d5983228b9e074d9b5f8a2c5c475f3e789
SQL
ChristopherBass/KInspector
/KInspector.Modules/Scripts/ScreenshotterModule.sql
UTF-8
148
2.546875
3
[ "MIT" ]
permissive
select NodeGUID from View_CMS_Tree_Joined where ClassName != 'cms.file' and ClassName != 'cms.folder' and Published = 1 order by DocumentNamePath
true
aac4b42c2407967184cbc34bc751d3eabbdad217
SQL
hmin0503/2019
/Programmers/Practice_for_Codingtest_SQL/GROUP_BY.sql
UTF-8
380
3.359375
3
[]
no_license
--GROUP_BY 1) SELECT animal_type, count(animal_type) as "count" from animal_ins group by animal_type --GROUP_BY 2) SELECT name, count(name) as "count" from animal_ins group by name having count(name)>=2 order by name --GROUP_BY 3) SELECT hour(datetime) as 'HOUR', count(animal_id) as 'COUNT' from animal_outs where hou...
true
a6301a167308a514f325496791b6035ddcc77588
SQL
klishinda/library
/src/main/resources/schema.sql
UTF-8
1,975
3.90625
4
[]
no_license
DROP TABLE IF EXISTS book_authors; DROP TABLE IF EXISTS genres_of_books; DROP TABLE IF EXISTS genres; DROP TABLE IF EXISTS authors; DROP TABLE IF EXISTS books; create table authors ( id serial, surname varchar(250) not null, name varchar(250) ); alt...
true
24086182bbf83739bf2fd17629a15bc01bead7c0
SQL
Benson-Kim/SQL
/Assignements and Projects/SQL for Data Science/Module 4 Coding Questions.sql
UTF-8
2,138
4.375
4
[ "Apache-2.0" ]
permissive
/* All of the questions in this quiz refer to the open source Chinook Database. Please familiarize yourself with the ER diagram in order to familiarize yourself with the table and column names in order to write accurate queries and get the appropriate answers. */ -- Question 1: Pull a list of customer i...
true
57348fc59fc0f5f1e2e7aaa3613090b26e1ba025
SQL
WYSIWYG-Fan/PrAct
/BackEnd/PostgreSQL/SQL Statement Files/TweetKeywords.sql
UTF-8
2,472
2.875
3
[]
no_license
CREATE TABLE "tweetkeywords" ( keyword_id int primary key, german character varying(31), english character varying(31), abbrev character varying(15) ) ; CREATE SEQUENCE keywords_id_seq; ALTER TABLE "tweetkeywords" ALTER "keyword_id" SET DEFAULT NEXTVAL('keywords_id_seq'); CREATE SEQUENCE keyword_id_seq...
true
52cb8ca45aed899d4a5c17af950fd0e4da9d7e43
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/disparadores/WHO_SUP_DIFERIDOSSEG_ERR.sql
UTF-8
613
2.828125
3
[]
no_license
-------------------------------------------------------- -- DDL for Trigger WHO_SUP_DIFERIDOSSEG_ERR -------------------------------------------------------- CREATE OR REPLACE EDITIONABLE TRIGGER "AXIS"."WHO_SUP_DIFERIDOSSEG_ERR" BEFORE INSERT OR UPDATE ON sup_diferidosseg_err FOR EACH ROW BEGIN IF :OL...
true
8b765d49edbf27542c7471e282bb9ff70df9e637
SQL
Taewoong1378/SQL-PROJECT
/SQL 파일/like.sql
UTF-8
1,205
3.796875
4
[]
no_license
USE employees; -- like -- 이름이 Tommaso 사원의 사원번호, 이름을 가져온다. select emp_no, first_name from employees where first_name = 'Tommaso'; -- 이름의 첫 글자가 A로 시작하는 사원의 사원번호, 이름을 가져온다. select emp_no, first_name from employees where first_name like 'A%'; -- 이름의 마지막 글자가 s로 끝나는 사원의 사원번호, 이름을 가져온다. select emp_no, first_name from emplo...
true
ba8d21f5a4f0a8a409b0cc32793fb8a373e17faf
SQL
youngSSS/DBMS-original
/project1/40.sql
UTF-8
288
3.6875
4
[]
no_license
select T.hometown, CP.nickname from Trainer as T join CatchedPokemon as CP on CP.owner_id = T.id where CP.level in ( select max(CP.level) from Trainer as T join CatchedPokemon as CP on CP.owner_id = T.id group by T.hometown ) group by T.hometown order by T.hometown;
true
8ae7594129ebb4702ae36061a06eb205f7e4a221
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day27/select0719.sql
UTF-8
498
3.609375
4
[]
no_license
SELECT obs.sensor_id, avg(counts) FROM (SELECT sensor_id, date_trunc('day', timestamp), count(*) as counts FROM WeMoObservation WHERE timestamp>'2017-11-26T07:19:00Z' AND timestamp<'2017-11-27T07:19:00Z' AND SENSOR_ID = ANY(array['831bfe0f_ae31_4fcf_a623_c8f2856c4376','3146_clwa_6122','e27243cd_7b02_46c5_a6bc_...
true
8e450a97d8c8c6d487c9bc105e1501ca001c2136
SQL
mikkoka/Tsoha-Bootstrap
/sql/add_test_data.sql
UTF-8
436
2.875
3
[]
no_license
-- Lisää INSERT INTO lauseet tähän tiedostoon -- Player-taulun testidata INSERT INTO Ohjaaja (enimi, snimi, salasana, sposti) VALUES ('Olli', 'Ohjausmestari', 'Olli123', 'olli.ohjausmestari@helsinki.fi'); INSERT INTO Tapahtumatyyppi (nimi) VALUES ('Ohjauspalaveri'); INSERT INTO Tutkimusala (nimi) VALUES ('Relaatiotieto...
true
1314c6518dc459487ad768f5a6005c810f24be23
SQL
batusan/Web-Scrape-With-Node.js
/docker_db/init.sql
UTF-8
1,549
2.890625
3
[]
no_license
-- create the users for each database CREATE USER 'dbconn'@'%' IDENTIFIED BY 'password'; GRANT CREATE, ALTER, INDEX, LOCK TABLES, REFERENCES, UPDATE, DELETE, DROP, SELECT, INSERT ON `etsy`.* TO 'dbconn'@'%'; create database etsy; use etsy; CREATE TABLE IF NOT EXISTS products ( product_id INT AUTO_INCREMENT,...
true
e2992b30e4343ec32bd717ac317632a8883ac71a
SQL
Swayam595/CMPE_226_Project_DBMS
/multicloud.sql
UTF-8
29,186
3.90625
4
[]
no_license
drop database if exists multicloud; create database multicloud; use multicloud; create table csp ( csp_id int not null auto_increment, csp_email_id varchar(255) not null, csp_name varchar(255) not null, csp_password varchar(255) not null, csp_join_date date not null, csp_bank_account_number bigint not nul...
true
2fd1322798a057a46f8a06e3c42fd1e5e5e05812
SQL
itolisto/conversa-old
/install/Store Procedures/SP_SEL_LOCATION_BY_IDS_APP.sql
UTF-8
580
3.53125
4
[ "MIT" ]
permissive
DROP PROCEDURE IF EXISTS `SP_SEL_LOCATION_BY_IDS_APP`; DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `SP_SEL_LOCATION_BY_IDS_APP`(IN `i_ids` TEXT) NOT DETERMINISTIC READS SQL DATA SQL SECURITY DEFINER BEGIN SET @sql = CONCAT('SELECT `blo_id` AS `location_id`, `blo_business_id` AS `business_id`, `blo_addres...
true
6687356202595482beb563794640519c12633b2f
SQL
nazzang49/sql-practice
/jdbc-test-dao.sql
UTF-8
202
2.765625
3
[]
no_license
select emp_no, first_name, last_name, hire_date from employees where first_name like '%a%' or last_name like '%a%'; use employees; desc employees; select first_name from employees where emp_no=10001;
true
152a82a0959dca9b664bc0a9e217ac72c85691fc
SQL
josemoreno90/phase-3-challenge-c
/part-2/load_data.sql
UTF-8
1,061
3.84375
4
[]
no_license
\c hotel_db COPY guests(name, email) FROM '/Users/josemoreno/Desktop/Projects/phase-3-challenge-c/part-2/csvfiles/guests.csv' DELIMITER ',' CSV; COPY rooms(room_number, capacity) FROM '/Users/josemoreno/Desktop/Projects/phase-3-challenge-c/part-2/csvfiles/rooms.csv' DELIMITERS ',' CSV; COPY bookings (room_id, guest...
true
7e84c3976c032d2df8a0c22ff9d903e315681b80
SQL
ws1603/news-crawler
/src/main/resources/db/migration/V1__Create_tables.sql
UTF-8
486
2.875
3
[ "Apache-2.0" ]
permissive
create table news ( id bigint primary key auto_increment, title text, content text, url varchar(500), created_at timestamp default now(), modified_at timestamp default now() )ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; create table links_to_be_processed (link varchar(500))ENGINE=InnoDB DEFAULT CH...
true
a9e5e4ca5fbf5a85af8af0e7ca5a454e18ca4f5b
SQL
stareylix/autorder
/autorder.sql
GB18030
10,138
3.328125
3
[ "MIT" ]
permissive
------------------------------------------------------ -- Export file for user AUTORDER -- -- Created by Administrator on 2017-09-27, 17:08:28 -- ------------------------------------------------------ spool autorder.log prompt prompt Creating table AU_PERMISSION prompt ====================...
true
7c7a2ba5feb4fc547dab7228cf29d3b528b96f9e
SQL
P79N6A/fast
/install/efast365/fx_goods_price_custom_grade.sql
UTF-8
802
3.453125
3
[]
no_license
DROP TABLE IF EXISTS `fx_goods_price_custom_grade`; CREATE TABLE `fx_goods_price_custom_grade` ( `price_custom_grade_id` int(11) unsigned NOT NULL AUTO_INCREMENT, `goods_line_code` varchar(128) DEFAULT '' COMMENT '产品线代码', `grade_code` varchar(128) DEFAULT '' COMMENT '分销商等级code', `grade_name` varchar(128) D...
true
742e98065f6aea837eeb41ca04425c51cd4fa22b
SQL
lmq1117/shop_v1
/lamp_shop/Document/createtable.sql
UTF-8
345
2.53125
3
[]
no_license
create table if not exists `shop_msg`( id int unsigned not null primary key auto_increment, `senderid` int unsigned not null, `receid` int unsigned not null, `title` varchar(255) not null, `content` varchar(255) not null, `status` tinyint unsigned not null comment '0:未读1:已读2:已删' )engine=innodb c...
true
2dd588201981ddf701b54d1aef093de56ce3a0eb
SQL
meetwithfriends/meetwithfriendsapp
/db/init.sql
UTF-8
5,909
3.890625
4
[]
no_license
CREATE DATABASE `meetwithfriends`; CREATE TABLE `meetwithfriends`.`users` ( `id` VARCHAR(50) NOT NULL, `email` VARCHAR(50) NOT NULL, `first_name` VARCHAR(50) NULL, `last_name` VARCHAR(50) NULL, `pass_hash` VARCHAR(128) NOT NULL, `is_admin` TINYINT NULL, `avatar` BLOB NULL, PRIMARY KEY (`id`), UNIQUE...
true
b0400c2d9a91ac9ab65e19fc4b4a0ab17b47ad2c
SQL
Nicolas2191913/420-W23-SF-TP01
/Etape01_Etudiant01_Creation_Tables.sql
UTF-8
1,585
3.359375
3
[]
no_license
/* Travail pratique 1 --> Nicolas Lavigne Tristan Hamel Date 02-07-2021 */ DROP DATABASE IF EXISTS PosteClientDFC; CREATE DATABASE IF NOT EXISTS PosteClientDFC; USE PosteClientDFC; -- ----------------------------------------------------- -- Étape 1 : Création des ta...
true
9b2d6d709269984739f243f5c74be0c55ce259d9
SQL
franciol/Projeto1_Megadados2019
/Fase1/Scripts/06_tag_bird.sql
UTF-8
224
2.578125
3
[]
no_license
USE ara_ara; DROP PROCEDURE IF EXISTS tag_bird; DELIMITER // CREATE PROCEDURE tag_bird(IN id_bird INT, IN idpost INT) BEGIN INSERT INTO menciona_passaro (id_post, id_passaro) VALUES (idpost, id_bird); END// DELIMITER ;
true
8d00143d9260927260c3d4bac425f9a8d84c029b
SQL
zdergatchev/Database-Basic
/15 Exam Preparation I (AMS-Airport Management System)/13.Last Departing Flights.sql
UTF-8
410
4.03125
4
[ "MIT" ]
permissive
SELECT * FROM (SELECT f.flight_id, f.departure_time, f.arrival_time, o.airport_name AS `origin`, d.airport_name AS `destination` FROM flights AS f INNER JOIN airports AS o ON o.airport_id = f.origin_airport_id INNER JOIN airports AS d ON d.airport_id = f.destination_airport_id WHERE f.`status` = 'Departing' ORDER B...
true
4079c4d0a2b9a0d231aeb90d1d5874963fecd2f5
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day15/select2350.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='WeMo' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['6076','3091','4038','4206','2019','4100_7','5212','2069','6024','2026'])
true
596b70a724ec825b2704745e239b9c7a901894ff
SQL
50poff/CapstoneProject
/SQL/db_populate3.sql
UTF-8
28,010
2.609375
3
[]
no_license
-- -------------------------------- -- -- db_populate.sql -- -- -------------------------------- -- -- This is a script to populate the -- -- database with testing data -- -- -------------------------------- -- /* People */ INSERT INTO People (first_name, last_name, email, created_by, p_password, p_location) VAL...
true
6a0aaef5c864ea449b8ec0f3048e0b91870bd89b
SQL
bblwq/Tutorial_Registration
/ddl.sql
UTF-8
2,222
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 13, 2018 at 03:19 AM -- Server version: 10.1.23-MariaDB-9+deb9u1 -- PHP Version: 7.0.27-0+deb9u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_...
true
4047b9b0f12a221343e33d310b0e9e031b27b924
SQL
vikasgadiya93/Wordpress
/admin/testimonial/wp_testimonial.sql
UTF-8
2,200
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 08, 2017 at 06:23 AM -- Server version: 5.6.24 -- PHP Version: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
11ff16ab8f31a75e3d3c171eb9adc7cebf74ba6e
SQL
Frank-liang/51dev
/devops-1/api/app/cmdb.sql
UTF-8
14,184
2.765625
3
[]
no_license
-- MySQL dump 10.14 Distrib 5.5.31-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: cmdbtest -- ------------------------------------------------------ -- Server version 5.5.31-MariaDB-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTE...
true
0ea398d057e7c008ea2b6d0a1c093800291b7f19
SQL
postgresqlacademy/pwaf
/pwaf-core/src/04_pwaf_app_demobox/20_tables/83_demo_structure_item.sql
UTF-8
739
3.46875
3
[ "MIT" ]
permissive
-- DO $body$ BEGIN IF NOT EXISTS ( SELECT 1 FROM pg_tables WHERE schemaname='pwaf_app_demobox' and tablename='data_item' ) THEN CREATE TABLE pwaf_app_demobox.data_item ( id pwaf.g_serial NOT NULL, name text NOT NULL, box_id integer NOT NULL, type_id integer NOT NULL, CONSTRAINT data_item_pk...
true
5b98c1d7e407ac1761f69caf140b60040867e9e1
SQL
xxk990/database_works
/1/part2.sql
UTF-8
2,107
4.5625
5
[]
no_license
--Ke Xu --This query is about to find the max. quantity for New Jersey, Min. quantity for New York and Min. quantity for Connecticut for each combination between customer and product with corresponding date. --table to store all the combination between customer and products with prodCust as( select distinct cust, prod...
true
2b8c2ffa957f405fe0c4b35cb57476440571af6b
SQL
Jana-dados/SQL
/Script/script aula 11 correcao.sql
UTF-8
1,498
4.21875
4
[]
no_license
Create database aula11; use aula11; create table Cliente ( id_cli integer primary key, nome_cli varchar (200) not null, idade_cli int, renda_cli float, data_nasc_cli date); alter table cliente change data_nasc_cli data_nasc_cli varchar (20); insert into cliente values (1, 'José da Silva', 33, 1500.50, '1987-01-30');...
true
486636686f80cecb56b90474bc69a3b1032feb49
SQL
vilchykau/datamola
/U1/L8/init_sa/init_sa_type_prod.sql
UTF-8
563
2.609375
3
[]
no_license
drop table u_f_dw_ext_references.SA_TYPE_PRODUCT cascade constraints; /*==============================================================*/ /* Table: SA_TYPE_PRODUCT */ /*==============================================================*/ create table u_f_dw_ext_references.SA_TYPE_PRODU...
true
ede5ac2550b3bb67c05f27faa13a4bd6a69d0565
SQL
AlexanderSashchenko/InternetShopv2
/src/main/resources/init.db.sql
UTF-8
4,861
3.875
4
[]
no_license
CREATE SCHEMA `internetshop` DEFAULT CHARACTER SET utf8; CREATE TABLE `internetshop`.`items` ( `item_id` INT NOT NULL AUTO_INCREMENT, `title` VARCHAR(255) NOT NULL, `price` DECIMAL(6,2) NOT NULL, PRIMARY KEY (`item_id`)) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; CREATE TABLE `internetshop`...
true
d7da5ce02337dc22f6bc7ce745b6d3db59addbd5
SQL
rfajarachmad/tutorial-spring-webapp
/src/main/resources/sql/schema.sql
UTF-8
202
2.640625
3
[]
no_license
DROP SCHEMA IF EXISTS APP; DROP TABLE IF EXISTS "USER"; CREATE SCHEMA APP AUTHORIZATION SA; CREATE TABLE "USER"( ID INT PRIMARY KEY, USER_NAME VARCHAR(50), PASSWORD VARCHAR(50), FLAG_ACTIVE INT )
true
c2a3004346b412b12cfc4e02a9a8046b23aa65b0
SQL
mlidbom/SqServerlScripts
/_OLD/Find_misordered_events_new_schema_3.sql
UTF-8
819
4.0625
4
[]
no_license
select hello.InsertedVersion, hello.EffectiveVersion, * from Event hello inner join ( select distinct e.AggregateId from Event e inner Join ( select EffectiveVersions.AggregateBasedEffectiveVersion, EffectiveVersions.EffectiveVersion, EffectiveVersions.EventId, EffectiveVersions.AggregateId from Event e inner join ...
true
a062f4a20562e731de5b0b5ce902f179fd110511
SQL
phinguyenphuoc/PHP05_php
/B5/mysql/fig18-08.sql
UTF-8
383
2.71875
3
[]
no_license
-- mac dinh tang dan SELECT productName, listPrice, discountPercent FROM products WHERE listPrice < 500 ORDER BY productName -- giam dan SELECT productName, listPrice, discountPercent FROM products WHERE listPrice < 500 ORDER BY listPrice DESC -- chi lay du lieu, khong the sap xep SELECT productName, listPrice, discoun...
true
ad54806afe1bbba70cb9fcb5a394f0c298cf09e4
SQL
QiweiWen/MacroTrack
/database/recipemker/dummyusers/davedatabase.sql
UTF-8
423,394
3.15625
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.0 -- Dumped by pg_dump version 9.6.0 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min...
true
08ff029e77dd61d3172a351485770dd3a4f5040a
SQL
1872002edw/WebSemantik_Praktikum7_Kelompok4
/latihansemantik.sql
UTF-8
2,346
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 25, 2021 at 09:22 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
bfec2d862dd2577348f4bc418602f5956c2f2448
SQL
jhuang292/sql-practice-I
/easy/613.sql
UTF-8
187
3.53125
4
[]
no_license
# Write your MySQL query statement below SELECT MIN(tb.x) AS shortest FROM ( SELECT ABS(p1.x - p2.x) AS x FROM point p1, point p2 WHERE p1.x != p2.x ) tb;
true
d3c827b70b6b44180c8a744a33aeabadf01fe67e
SQL
DonnOMalley/OMalleyLandBudget_www
/mysql/CreateTable_Categories.sql
UTF-8
214
2.6875
3
[]
no_license
CREATE TABLE `OMalleyLandBudget`.`Categories` ( `ID` INTEGER NOT NULL AUTO_INCREMENT, `Name` VARCHAR NOT NULL, PRIMARY KEY (`ID`, `Name`) ) ENGINE = MyISAM AUTO_INCREMENT = 1 COMMENT = 'Budget Categories';
true
a8d5c413811b129822866a8db872a9c3f4a8bd27
SQL
octosj/LoveDog
/Scripts/Script-4.sql
UTF-8
718
2.96875
3
[]
no_license
UPDATE O_CODE SET MAIN_OBJ = REPLACE(MAIN_OBJ,' ',''); UPDATE O_CODE SET MAIN_OBJ = TRIM(MAIN_OBJ); --select id, name, length(name) -- from test1 SELECT LENGTH(MAIN_OBJ) FROM O_CODE; SELECT * FROM O_CODE SELECT TRIM(MAIN_OBJ) FROM O_CODE DELETE FROM H_CODE_OBJ CASCADE; DELETE FROM H_CODE_ANI CASCADE...
true
74f95008d6c368ee56e4e1af70991a02378ed902
SQL
luy-0/OrderManagementSystem
/ordermanagement.sql
UTF-8
2,414
3.71875
4
[]
no_license
drop database if exists ordermanagement; create database ordermanagement; use ordermanagement; create table manager( manager_id int not null auto_increment, manager_name varchar(30) not null, manager_password varchar(20) not null, manager_address varchar(100), primary key(manager_id) ); create table employee( employee...
true
df8e7c681c7c6270d725497b0c448de27b53045d
SQL
zjw641220480/project
/tom-shiro/src/main/resources/sqlcreate/mysql/shiro_sql_table.sql
UTF-8
2,697
3.5
4
[]
no_license
/* SQLyog v10.2 MySQL - 5.1.72-community : Database - shiro ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN...
true
5e78639345c0c3a4b98d5688d9db857823139d0a
SQL
kuali/rice
/scripts/upgrades/2.0.0 to 2.1/db-updates/2012-03-28.sql
UTF-8
1,955
2.703125
3
[ "Artistic-1.0", "MIT", "Apache-2.0", "LicenseRef-scancode-public-domain", "EPL-1.0", "CPL-1.0", "LGPL-2.1-or-later", "BSD-3-Clause", "LGPL-3.0-only", "ECL-2.0", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-jdom", "LicenseRef-scancode-freemarker", "LicenseRef-scancode-unk...
permissive
-- -- Copyright 2005-2015 The Kuali Foundation -- -- Licensed under the Educational Community License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.opensource.org/licenses/ecl2.php -- -- Unless required by ap...
true
4fccadbddfaef4e9ac0e9380a5e47d97de0fe6b1
SQL
kolesnykovVladyslav/bayerische-landtagswahl
/sql-scripts/PostgresSchema.sql
UTF-8
3,860
3.84375
4
[]
no_license
CREATE TABLE Wahl ( ID SERIAL, Jahr int NOT NULL UNIQUE, PRIMARY KEY (ID) ); CREATE TABLE Wahlkreis ( ID int NOT NULL UNIQUE, Name varchar(255) NOT NULL UNIQUE, Mandate int NOT NULL, PRIMARY KEY (ID) ); ---- TODO: MAKE 'Name, WahlID' AND 'Nummer, WahlID' UNIQUE CREATE TABLE Stimmkreis ( ID SERI...
true
d64c82b21b7029adb1a6b2b52283683818dc66f4
SQL
radtek/abs3
/sql/mmfo/bars/Table/saldoy.sql
WINDOWS-1251
12,137
2.828125
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/SALDOY.sql =========*** Run *** ====== PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
6fd2580f4229a209cf626b1e1b8fe7a1217c963f
SQL
JM-AK/mailhelper
/src/main/resources/db/migration/V10__ddl_mailings_contacts_copy_mapping.sql
UTF-8
672
3.515625
4
[]
no_license
DROP TABLE IF EXISTS mailings_contacts_copy_mapping; CREATE TABLE mailings_contacts_copy_mapping ( mailing_id BIGINT NOT NULL, contact_id BIGINT NOT NULL, address_type VARCHAR(50) DEFAULT ('COPY'), PRIMARY KEY (mailing_id, contact_id, address_type), CONSTRAINT FK_Mailings_contacts_copy_mappi...
true
be73643fd556bfd3a01d9421042407bc810f00af
SQL
ligy2016/mysql
/gaoxiao_bendi/obj_tlog.sql
UTF-8
1,370
3.203125
3
[]
no_license
/* SQLyog Enterprise v12.09 (64 bit) MySQL - 5.6.10 : Database - gaoxiao_local ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KE...
true
ec4262ec37a0d10ae78c344f9571a843e70347b9
SQL
devTitarenko/SQL
/PLSQL - Procedures, Functions, Collections.sql
UTF-8
9,746
4.1875
4
[]
no_license
/* Подготовка базы данных 1. Выполнить скрипт hr_create.sql с командами создания таблиц БД. 2. Выполнить скрипт hr_popul.sql с командами заполнения таблиц БД. */ -- Задание 1 Создание хранимых процедур по пакетной работе с данными /* Повторить выполнение задания 1.2 из лабораторной работы 7, включив анонимный PL/SQL...
true
33064587e0309846282b1a6f7cf9fd3798ac632e
SQL
Isreal369a/SQL_database
/CREATE TABLE account.sql
UTF-8
377
2.890625
3
[]
no_license
CREATE TABLE account( user_id SERIAL PRIMARY KEY, username VARCHAR(50) UNIQUE NOT NULL, password VARCHAR(50) NOT NULL, email VARCHAR(250) UNIQUE NOT NULL, created_on TIMESTAMP NOT NULL, last_login TIMESTAMP INSERT INTO account_job(user_id,job_id,hire_date) VALUES (1,1,CURRENT_TIMESTAMP) SELECT * FROM...
true
182cd9b5ef6f5f05f13f945fb7b3720d99d12fd1
SQL
zzacong/ITECH3108-Power-Drill
/sql/itech3108_30360914_a2.sql
UTF-8
2,471
3.78125
4
[]
no_license
-- -- ITECH3108 Assignment 2 -- ZHI ZAO ONG -- 30360914 -- -- -- -- Drop Database if exists DROP DATABASE IF EXISTS `itech3108_30360914_a2`; -- -- -- Create Database CREATE DATABASE `itech3108_30360914_a2` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; USE `itech3108_30360914_a2`; -- -- -- Drop ...
true
95490ef7f4382123f6a4bf2aea86dcd7fc64816a
SQL
chrira/gretljobs
/afu_isboden_pub/afu_isboden_pub_bodenerosion.sql
UTF-8
370
2.765625
3
[ "MIT" ]
permissive
SELECT afu_erosion_gbf20_p.ogc_fid AS t_id, afu_erosion_gbf20_p.wkb_geometry AS geometrie, afu_erosion_gbf20_p.grid_code, afu_erosion_gbf20_p_code.bezeichnung FROM afu_erosion_gbf20_p LEFT JOIN afu_erosion_gbf20_p_code ON afu_erosion_gbf20_p.grid_code = afu_erosion_gbf20_p_code.cod...
true
c6c463ce3d65c53c63bae02874ea83278eeaf671
SQL
susanboratynska/5101A_N01371157_FinalAssignment
/Data/pages.sql
UTF-8
1,999
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 03, 2019 at 10:50 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
62b22f3fcc232b872f262dc65271b8c89f1e6465
SQL
a-meier-studebaker/java-web-dev-techjobs-persistent
/queries.sql
UTF-8
389
3.828125
4
[]
no_license
## Part 1: Test it with SQL Columns: id int PK employer varchar(255) name varchar(255) skills varchar(255) ## Part 2: Test it with SQL SELECT name FROM techjobs.employer WHERE employer.location = "St. Louis"; ## Part 3: Test it with SQL DROP techjobs.job; ## Part 4: Test it with SQL SELECT skill.name, skill.descri...
true
bf0e6cfec1cfff67ac274f30b93ec308d219fa60
SQL
MooJhingjit/construction
/server/Database/construction_2018-10-14.sql
UTF-8
40,146
3.1875
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.7.21) # Database: construction # Generation Time: 2018-10-14 09:57:11 +0000 # ******************************************...
true
6aa4df32df93f284f0ebcd47fb616669a3d98f3d
SQL
ErykKrupa/bank-database
/src/main/resources/queries/credit_card.sql
UTF-8
436
3.359375
3
[]
no_license
drop table if exists credit_card; create table credit_card ( number char(16) primary key, account_number char(26) not null, card_verification char(3) not null, expiry_date date not null, funds_limit bigint not null, used_funds bigint no...
true
95bb076cd84103d187f02c3eeaa8018e9942a9b1
SQL
sivanookala1979/getbike
/conf/evolutions/default/1.sql
UTF-8
3,418
3.3125
3
[ "Apache-2.0" ]
permissive
# --- !Ups create table login_otp ( id bigint not null, user_id bigint, generated_otp varchar(255), created_at timestamp, constraint pk_login_otp primary key (id) ); create sequence login_otp_seq; create table ride ( id ...
true
79633949c5d345ad52058abe67037d5a1bf7eb71
SQL
liuxiaoyu-git/Lucky-Draw
/table.sql
UTF-8
801
2.96875
3
[]
no_license
mysql -h127.0.0.1 -P3306 -uopenshift -ppassword use sampledb; select * from registryuser; drop table registryuser; create table registryuser (username varchar(20) primary key); insert into registryuser values('user1-0001'); insert into registryuser values('user2-1002'); insert into registryuser values('user3-0503'); i...
true
9d409bbf30438b26569077552a28de32c0223bcd
SQL
siyeon13/dbsql
/fastfood.sql
UTF-8
3,163
3.640625
4
[]
no_license
순위 시도 시군구 도시발전지수 kfc건수 맥도날드 버거킹 롯데리아 1 서울시 서초구 4.5 3 4 5 6 2 서울시 강남구 4.3 3 부산시 해운대구 4.1 서울시 서초구 kfc 6 서울시 서초구 맥도날드 5 SELECT * FROM fastfood; SELECT sido, sigungu, gb FROM fastfood WHERE gb = '롯데리아' AND sigungu = '강릉시' ORDER BY sido, sigungu, gb; SELE...
true
9c0d55a6bc28c0fde1d766b90cde4a2746aabde8
SQL
alviszh/crawler
/parent/parent-microservice/parent-microservice-telecom/common-microservice-telecom-jiangsu/src/main/resources/datasource/mysql/telecom_jiangsu_etl.sql
UTF-8
5,986
3.5
4
[]
no_license
DROP FUNCTION IF EXISTS telecom_jiangsu_etl; CREATE FUNCTION telecom_jiangsu_etl(taskid varchar(50)) RETURNS text CHARSET utf8 BEGIN #Routine body goes here... DECLARE this_id text; DECLARE p_etl_status text DEFAULT 'success'; DECLARE p_etl_error_detail text; DECLARE p_etl_error_content text; DECLARE EXIT HAND...
true
97c9a522a09f78da0d2716b4114e0ff658578703
SQL
varstudio/ilist
/install/install_webdoc_zh-simp.sql
UTF-8
15,108
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.9 -- http://www.phpmyadmin.net -- -- ホスト: localhost:3306 -- 生成時間: 2013 年 1 月 28 日 17:53 -- サーバのバージョン: 5.5.16 -- PHP のバージョン: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_C...
true
a2306401f7f2b83bbd97a00c602c34b8381561bb
SQL
jho0078/til
/flask(c9, DB)/2019-01-31_sqlite/03_select.sql
UTF-8
1,010
4.0625
4
[]
no_license
-- 1. 상영시간이 150분 이상인 영화이름만 출력 SELECT 영화이름 FROM movies WHERE 상영시간>=150; -- 2. 장르가 애니메이션인 영화코드와 영화이름를 출력 SELECT 영화코드, 영화이름 FROM movies WHERE 장르='애니메이션'; -- 3. 제작국가가 덴마크이고 장르가 애니메이션인 영화이름을 출력 SELECT 영화이름 FROM movies WHERE 제작국가='덴마크' and 장르='애니메이션'; -- 4. 누적관객수가 백만이 넘고, 관람등급이 청소년관람불가인 영화이름과 누적관객수를 출력 SELECT 영화이름, 누적관객수 ...
true
c851423726336a54dd544620e424d4e4a1bb8c72
SQL
xmorg/hidden_bog
/oldstuff/doors.sql
UTF-8
1,893
2.875
3
[]
no_license
PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE doors(id integer unique, map text, tilex integer, tiley integer, tomap text, tox integer, toy integer); INSERT INTO "doors" VALUES(0,'v_hamsford.txt',3,12,'v_hamsford_i.txt',3,13); INSERT INTO "doors" VALUES(1,'v_hamsford_i.txt',3,13,'v_hamsford.txt',3,12); INSER...
true
7e9222dfcd96a870a55137e694f52968bfcd24de
SQL
Vfif/Post-Application
/post_app/repository-jdbc/src/test/resources/author/schema.sql
UTF-8
320
2.96875
3
[]
no_license
CREATE SCHEMA task2; CREATE TABLE task2.author ( id bigint NOT NULL DEFAULT NEXTVAL('task2.author_id'), name character varying(30) NOT NULL, surname character varying(30) NOT NULL ); CREATE SEQUENCE task2.author_id INCREMENT 1 START 9 MINVALUE 1 MAXVALUE 9223372036854775807 CACHE 1;
true
3409811dbb6d5dc49c720ecacdff7d9ca4eed2dc
SQL
NaoyaNakashimaOrg/harmos
/harmos-database/ddl/table/TH0105_PRACTICE_DOCUMENT.sql
SHIFT_JIS
1,493
3.40625
3
[]
no_license
DROP TABLE TH0105_PRACTICE_DOCUMENT; CREATE TABLE TH0105_PRACTICE_DOCUMENT ( PRACTICE_MNG_NO CHAR(13 CHAR) NOT NULL, DOCUMENT_NO@NUMBER(2,0) NOT NULL, DOCUMENT_OVERVIEW VARCHAR2(100 CHAR), DOCUMENT_NAME VARCHAR2(200 CHAR), DOCUMENT BLOB, VERSION@NUMBER(9,0) NOT NULL, RONRI_SAKUJO_FLG CHAR(1 CHAR) NOT NULL,...
true
8adcb7f2838714dbed86d41578f8cda067e51632
SQL
mni1032/cs3130-php
/web/w04/thursday/query.sql
UTF-8
1,059
4.03125
4
[]
no_license
\echo '*********************List all restaurant names*********************' SELECT name FROM w4_restaurant; \echo '****************List restaurant names and addresses****************' SELECT name, address FROM w4_restaurant; \echo '************************List all customers************************' SELECT...
true
0dd2179339e3e2c5b1c144cf94194e6f979faedd
SQL
Q0Q123456789/git8
/VUE/adminForVue-master/static/sk_order_info.sql
UTF-8
1,113
3.015625
3
[ "MIT" ]
permissive
/* Navicat MySQL Data Transfer Source Server : outline_源购优品 Source Server Version : 50719 Source Host : 192.168.0.50:3306 Source Database : twy1 Target Server Type : MYSQL Target Server Version : 50719 File Encoding : 65001 Date: 2018-05-10 14:26:55 */ SET FOREIGN_KEY_CHECKS=0; -...
true
e34e19dcacf5628004339f23e09a24e59cc7c5e4
SQL
JoseTg1904/-BD1-Proyecto2_201700965
/Enunciado2/Consultas.sql
UTF-8
3,517
4.03125
4
[]
no_license
#Consulta 1 SELECT a.areaInvestigacion AS Area_Investigacion, (SELECT nombre FROM Personal WHERE Personal.ID_Personal = b.ID_Personal) AS Jefe, (SELECT nombre FROM Personal WHERE Personal.ID_Personal = c.ID_Personal) AS Subalterno FROM AsignacionArea INNER JOIN Personal AS b ON b.ID_Personal = AsignacionArea.ID_Person...
true
980f4323e049066c8b9130fcc54c69044421d707
SQL
wireapp/poll-bot
/src/main/resources/db/migration/V2__Allow_single_vote_per_user.sql
UTF-8
757
3.84375
4
[ "MIT" ]
permissive
-- it is much easier to delete and create again as we are dropping primary keys columns drop table votes; drop table poll_option; -- clear poll table, we don't care right now about data -- noinspection SqlWithoutWhere delete from polls; create table poll_option ( poll_id varchar(36) not null references po...
true
a7120d9c403dd8c49892251f86950d44d8187fa9
SQL
vijaydairyf/TimelyFish
/SolomonApp/dbo/Stored Procedures/dbo.ED850SubLineItem_ComponentChk.sql
UTF-8
261
2.84375
3
[]
no_license
 CREATE Proc ED850SubLineItem_ComponentChk @KitId varchar(30), @ComponentId varchar(30) As Select A.CmpnentQty, B.StkUnit, B.ClassId From Component A Inner Join Inventory B On A.CmpnentId = B.InvtId Where A.KitId = @KitId And A.CmpnentId = @ComponentId
true
eed3d5c75e4eedd513ea738d5677511c1fd790a9
SQL
jecesario/turma16java
/mysql/Lista2/atividade1.sql
UTF-8
2,002
3.640625
4
[]
no_license
create database db_generation_game_online; use db_generation_game_online; create table tb_personagem( id bigint auto_increment, nome varchar(255), panteao varchar(255), sexo bit not null, classe_id bigint, primary key(id), constraint tb_classe foreign key (classe_id) references tb_classe (id)...
true
35548abcea6159304b44c368a250dd3ddeea4c7d
SQL
fangege/footballserver
/scripts/sql.sql
UTF-8
2,369
3.28125
3
[]
no_license
--用户表 create table t_client( ID int(11) not null AUTO_INCREMENT, clientid VARCHAR(32) NOT NULL, accountid VARCHAR(32) not null, password VARCHAR(32) NOT null default '', createtime DATETIME not null default '1970-01-01', balance float(11) not null default 0, communication VARCHAR(128) default '', ...
true
aaabcb20617ba0d689850edfe4e48390144bea64
SQL
mbarretogit/sql
/REL_PAGAMENTOS_DOM.sql
ISO-8859-3
2,227
3.609375
4
[]
no_license
SELECT DISTINCT TOP 500 LC.LANC_CRED VW.COBRANCA, C.ESTORNO AS COBRANCA_ESTORNADA, C.DT_ESTORNO AS DATA_ESTORNO, ISNULL(LC.TIPO_PAGAMENTO,'') AS TIPO_PAGAMENTO, ISNULL(LC.TIPO_CRED,'') AS TIPO_CREDITO, C.UNID_FISICA AS COD_UNIDADE, CUR.TIPO AS TIPO_CURSO, C.CURSO AS COD_CURSO, CUR.NOME, VW.ALUNO, ...
true
3d2c0a1bed4f3c86235348bc81af120a1e4d0a30
SQL
zhengjr/bis
/sql/loto/interbase/install/303_create_procedure_GET_TIRAGE_STATISTICS.sql
WINDOWS-1251
1,262
3.65625
4
[]
no_license
/* */ CREATE OR ALTER PROCEDURE GET_TIRAGE_STATISTICS ( TIRAGE_ID VARCHAR(32), TICKET_COST NUMERIC(15,2), PRIZE_PERCENT NUMERIC(4,2), JACKPOT_PERCENT NUMERIC(4,2), FIRST_ROUND_PERCENT NUMERIC(4,2), THIRD_ROUND_SUM NUMERIC(15,2), FOURTH_ROUND_SUM NUMERIC(15,2) ) RETURNS ( ALL_COUNT INTEGER, USED...
true
958c8e6579189e7c1a1477d2d82f4e8aff63f9a9
SQL
andersfuf/UIS_Prototype
/bank/sql_ddl/vw_invest_certificates.sql
UTF-8
332
3.015625
3
[]
no_license
CREATE OR REPLACE VIEW vw_invest_certificates AS SELECT i.account_number, a.cpr_number, a.created_date , cd.cd_number, start_date, maturity_date, rate, amount FROM investmentaccounts i JOIN accounts a ON i.account_number = a.account_number JOIN certificates_of_deposit cd ON i.account_number = cd.accoun...
true
e19e86664f544913ad5be3838a37726ce2c06821
SQL
bkrysinski1/Brent-Projects
/TE-Brewery-Finder-Capstone/database/repopulate.sql
UTF-8
1,934
2.921875
3
[]
no_license
BEGIN TRANSACTION; DELETE FROM reviews; DELETE FROM beer; DELETE FROM breweries; DELETE FROM users; INSERT INTO users (username,password_hash,role) VALUES ('user','$2a$08$UkVvwpULis18S19S5pZFn.YHPZt3oaqHZnDwqbCW9pft6uFtkXKDC','ROLE_USER'); INSERT INTO users (username,password_hash,role) VALUES ('admin','$2a$08$UkVvwp...
true
e2071fad0c82e067dc8a4863650743a71fc31968
SQL
mtejas88/esh
/Old_Analysis/Machine_Learning/Machine Learn Clean/verified_or_inferred_broadband_line_items.sql
UTF-8
7,256
3.8125
4
[]
no_license
/* ONYX DB */ with version_order as ( select fy2015_item21_services_and_cost_id, case when contacted is null or contacted = false then case when user_id is not null ...
true
a4046954bbd5ec956f6a932a73fdb2f95b97abd9
SQL
MichelCordeiro/PROVA-TIME-C
/Banco de Dados/VIEW alunos_agendados.sql
UTF-8
730
3.828125
4
[]
no_license
CREATE ALGORITHM = UNDEFINED DEFINER = `root`@`localhost` SQL SECURITY DEFINER VIEW `alunos_agendados` AS SELECT `a`.`id` AS `id`, `s`.`id` AS `setor_id`, `sh`.`id` AS `setores_horarios_id`, `a`.`Nome` AS `Aluno`, `s`.`nome` AS `Setor`, `ag`.`data` AS ...
true
557aad21add7fbbf7f6809fc2ba71d1a1f94bb61
SQL
sanei-dengyo-jyoho/SQL-Server
/old/節電対策レポート_Q年パラメタ.sql
SHIFT_JIS
1,002
3.578125
4
[]
no_license
with v00 AS ( select top 2 * from ߓd΍􃌃|[g_QN͈̔ as v000 order by N desc ), v0 as ( select min(N) as N, max(N) as N from v00 as y0 ), v1 as ( select N, max(t) as t from J__T as c0 group by N ), v2 as ( select a.N, m1.NWv as aN\, dbo.FuncDateFormatDomes...
true
78da5a2881dc4dfae673085a3b45e7dbdd421214
SQL
fiotto/ctf-server-web-for-golang
/postgres/initdb.d/init.sql
UTF-8
1,125
3.21875
3
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS ctf_db; CREATE DATABASE ctf_db; \c ctf_db; DROP TABLE IF EXISTS users; CREATE TABLE users ( id SERIAL NOT NULL PRIMARY KEY, first_name VARCHAR(30) NOT NULL, last_name VARCHAR(30) NOT NULL, job VARCHAR(30) NOT NULL, delete_flag BOOLEAN NOT NULL DEFAULT FALSE ); INSERT INTO u...
true
72349720b1a1aa3bc5c091d486b1491e0af02d4a
SQL
imZEH/Tabulation-System-Java
/Database/Stored Procedure/sqlPr_Select_Participants.sql
UTF-8
735
3.71875
4
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS `automated`.`sqlPr_Select_Participants` $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `sqlPr_Select_Participants`(IN Name VarChar(30), IN ID Varchar(25)) BEGIN Select P.PArt_ID,CONCAT(Part_LName,', ',Part_FName,'...
true
05fbf6c19ad85924fddb40b0bc2dc90d7c02e504
SQL
MelodieCsn/L3
/S5/HLIN511/TP1/requetes.sql
UTF-8
3,388
3.59375
4
[]
no_license
--Q1 SELECT NOM, PRENOM FROM ABONNE WHERE VILLE='MONTPELLIER'; --Q2 SELECT * FROM EXEMPLAIRE WHERE CODE_PRET='EMPRUNTABLE'; --Q3 SELECT TITRE, CATEGORIE FROM LIVRE WHERE CATEGORIE<>'MEDECINE' AND CATEGORIE<>'SCIENCES' AND CATEGORIE<>'LOISIRS' ORDER BY CATEGORIE; --Q4 SELECT * FROM EMPRUNT WHERE D_RET_REEL IS NULL; ...
true
92d3fbb2dba776ec8f149eff09f396d97dc22f07
SQL
gurpreet19/ec198392_wht
/Database/configuration/03_02_headless_tool/Delta_WST/SourcePackageDefinitions/ECBP_WELL_PLT_HEAD.sql
UTF-8
1,083
2.546875
3
[]
no_license
CREATE OR REPLACE PACKAGE ecbp_well_plt IS /**************************************************************** ** Package : EcBp_Well_PLT, header part ** ** $Revision: 1.3 $ ** ** Purpose : This package is responsible for calculating the percentage ** that is not achievable directly in t...
true
fd6a4b77b93e84df2f29233f3cedc6a3e6e60510
SQL
jazeroual/github
/restoNumeriK/tblproduct.sql
UTF-8
16,163
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Client: 127.0.0.1 -- Généré le: Mer 09 Janvier 2013 à 11:25 -- Version du serveur: 5.5.27-log -- Version de PHP: 5.4.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
bf3a61a92285ca239cc8a8035000dda572c99e64
SQL
ljcnot/mywork
/数据库设计参考/武大外贸系统数据库设计/sql/SQLQuery1.sql
UTF-8
204
3.1875
3
[]
no_license
use epdc2 select '=trim("'+ c.clgCode + '")', c.clgName, '=trim("'+ u.uCode+'")', u.uName from college c left join useUnit u on c.clgCode = u.clgCode order by c.clgCode, u.uCode select * from useUnit
true
4ab0c4fa24281e6614959afa553a1eaaebee3dca
SQL
Jenus-IT-Solutions/dras
/dras-11-10-2015-1203.sql
UTF-8
4,325
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 10, 2015 at 07:29 AM -- Server version: 5.6.26 -- PHP Version: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
cf1406ed4e75ca52f686336f38e632dcc5fef8f6
SQL
omarjcm/websae
/trunk/sql/ae_administrar_material.sql
UTF-8
1,787
3.71875
4
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS `websae`.`ae_administrar_material` $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `ae_administrar_material`(tipo VARCHAR(10), id_material BIGINT(20), precio FLOAT(9,2), descripcion VARCHAR(200), cantidad_entregar INTEGER(11), estado CHAR(1), id_tipo_material BIGINT(20), id_eve...
true
b524fbd011d214c4ea8541940d836bdee6b49c88
SQL
tayduivn/training
/rdbms/update/sacwis_375.sql
UTF-8
1,039
2.84375
3
[]
no_license
--STGAP00010107 - FA HOME SEARCH: CODES TAB. MESSAGE UPDATE CAPS.CODES_TABLES SET DECODE = 'ICPC Foster' WHERE CODE_TYPE = 'CFACATEG' AND CODE = 'I'; UPDATE CAPS.CODES_TABLES SET DT_END = SYSDATE WHERE CODE_TYPE = 'CFAHMSTA' AND CODE = 'PTA'; UPDATE CAPS.CODES_TABLES SET DT_END = SYSDATE WHERE COD...
true
59fdec296787fd39a3031d6c94afd0de540308f8
SQL
UnEnanoMas/PiggyFactions
/resources/sqlite.sql
UTF-8
4,734
3.515625
4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
-- #! sqlite -- #{ piggyfactions -- # { factions -- # { init CREATE TABLE IF NOT EXISTS factions ( id VARCHAR(36) PRIMARY KEY, name TEXT, creation_time INTEGER, description TEXT, motd TEXT, members TEXT, permissions TEXT, flags TEXT, h...
true
fe902d627746b58f12c90cfa8e3b786c80ab6bb9
SQL
samszo/jardindesconnaissances
/bdd/query/anDatasDocMin.sql
UTF-8
1,435
3.484375
3
[]
no_license
SELECT d.doc_id, d.titre, GROUP_CONCAT(DISTINCT rGoS.valeur) score, GROUP_CONCAT(DISTINCT rGoS.niveau) magnitude, COUNT(DISTINCT dv.doc_id) nbVisage, COUNT(DISTINCT t.tag_id) nbTag, GROUP_CONCAT(DISTINCT t.tag_id) tags, COUNT(DISTINCT e.exi_id) nbExi, GROUP_CONCAT(DISTINCT e.exi_id)...
true
101d372f38b92717d4ad263890c153cea5696697
SQL
R3DIANCE/WCPStandard
/Databases/WCPS-GameServer.sql
UTF-8
5,351
2.71875
3
[ "MIT" ]
permissive
/* SQLyog Community v13.1.1 (64 bit) MySQL - 10.1.29-MariaDB : Database - wcps-server ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHE...
true
4d030240cb4e1cf8450737d6790fbde58cbd75a1
SQL
JLP752247248/sshdemo
/sss.sql
UTF-8
3,585
2.9375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : mysql Source Server Version : 50527 Source Host : localhost:3306 Source Database : sss Target Server Type : MYSQL Target Server Version : 50527 File Encoding : 65001 Date: 2016-04-27 19:16:37 */ SET FOREIGN_KEY_CHECKS=...
true
42f8ca50ce40a8dd91d77d093999fff53fdc2929
SQL
soreak/datebase
/chengzhi.sql
UTF-8
2,690
3.75
4
[]
no_license
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 2020/4/13 19:39:40 */ /*==============================================================*/ drop table if exists CheckIn; drop table if exist...
true
0f68614e40554b1cefd9df91457ca9ab770eec8b
SQL
bishwan00/ko.chat
/DataBase/project.sql
UTF-8
4,383
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 25, 2021 at 07:29 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
68a6c9a00292850a4fb2f885685ef4614c98eafc
SQL
AnthonyTrinh8/AnyTrak
/tables/database_setup.sql
UTF-8
6,752
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: classmysql.engr.oregonstate.edu:3306 -- Generation Time: Mar 19, 2020 at 04:27 AM -- Server version: 10.4.11-MariaDB-log -- PHP Version: 7.0.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone...
true
8122a75abd66946396273786d2dd4ce54ff8e30c
SQL
mayank-94/spring-boot-jdbc
/sql/department.sql
UTF-8
616
2.921875
3
[]
no_license
CREATE TABLE department ( id integer not null, dep_id integer not null, dept_name varchar(255) not null, salary integer ); INSERT INTO department (id, dep_id, dept_name, salary) VALUES (10001, 101, 'Accounts', 36000); INSERT INTO department (id, dep_id, dept_name, salary) VALUES (10002, 102, 'Infrastructure', 75...
true