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
369b762700605e1f2e972988ace88130eaa90679
SQL
DerekE20/BiddingMaintenance_SQL
/SQLQuery3.sql
UTF-8
614
2.84375
3
[]
no_license
 INSERT INTO action (ActionId, Description, SystemRef, StageRef, Sequence, SuitActionRef, ShapeActionRef, ProtectiveActionRef, ConventionRef, OpponentBidActionRef, PartnerBidActionRef, SuitQualityActionRef, FourCardMajorActionRef, BalancedActionRef, ltcActionRef) SELECT ActionId+68, Description, SystemRef, StageRef, S...
true
4c45f10bb93d1d9747e7e628353eabcdd4077d55
SQL
LiamB299/COS221
/Group Project 1/Task 2/Database export/municipality_elections_metro.sql
UTF-8
2,512
3
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: municipality_elections -- ------------------------------------------------------ -- Server version 8.0.23 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACT...
true
5eac7d066327996ede40e714e5e77617ed94b553
SQL
jiaoyukang/PHP-messageList
/message_list_tmp.sql
UTF-8
1,198
3.03125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 39.104.59.238 Source Server Version : 50722 Source Host : 39.104.59.238:3306 Source Database : aaa Target Server Type : MYSQL Target Server Version : 50722 File Encoding : 65001 Date: 2019-07-10 17:33:58 */ SET FOREIGN_...
true
c46edc5327bbab734a0723c4c471817d7aaac236
SQL
rmnbnd/student-record
/src/main/resources/data.sql
UTF-8
965
2.765625
3
[]
no_license
-- authorities INSERT INTO authority VALUES('ROLE_ADMIN'); INSERT INTO authority VALUES('ROLE_USER'); -- users INSERT INTO user VALUES(1,'teacher','teacher'); INSERT INTO user VALUES(2,'student','student'); -- authorities INSERT INTO user_authority VALUES(1, 'ROLE_ADMIN'); INSERT INTO user_authority VALUES(1, 'ROLE_U...
true
e79281fa9e611f9f7c277050d1cd4e830615b06b
SQL
santiagoaguilar12/soccer-team-website
/sql/triggers.sql
UTF-8
715
3.75
4
[]
no_license
-- DROP TRIGGER delete_from_all; DELIMITER // -- CREATE TRIGGER delete_from_all -- BEFORE DELETE ON persons FOR EACH ROW -- BEGIN -- IF EXISTS (SELECT * FROM athletes where athletes.person_id = persons.id) THEN -- DELETE FROM athletes WHERE athletes.person_id = persons.id; -- END I...
true
e9023c048a4de4f30afe30dca4080326a5ccfbd7
SQL
cuzz/SSHJump
/usr/share/SSHJump/sql/host.sql
UTF-8
301
2.796875
3
[ "Apache-2.0" ]
permissive
CREATE TABLE `host` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `hostname` VARCHAR(128) NOT NULL DEFAULT '', `customer` VARCHAR(64) NOT NULL DEFAULT '', `active` CHAR(1) NOT NULL DEFAULT 'Y', PRIMARY KEY (`id`), UNIQUE KEY (`hostname`), INDEX (`customer`), INDEX (`active`) ) ENGINE=InnoDB;
true
46bd84f2dc95ef9013aff8e0cbf2f055e30b9283
SQL
sblacksmith/zing-app-icw
/packages/zingcarinfo/ext_tables.sql
UTF-8
1,006
2.65625
3
[]
no_license
# # Table structure for table 'tx_zingcarinfo_domain_model_zingcardetail' # CREATE TABLE tx_zingcarinfo_domain_model_zingcardetail ( car_id int(11) DEFAULT '0' NOT NULL, car_brand varchar(255) DEFAULT '' NOT NULL, car_name varchar(255) DEFAULT '' NOT NULL, car_price int(11) DEFAULT '0' NOT NULL, fuel_type varchar...
true
ae5e21b89f1cca607b84024fe469f0279fd41b60
SQL
VincentWangcf/Vendavo
/webquote3.0trunk/DB_Changes/.svn/pristine/b0/b059746fe78d8e9e6a07588b1246f4ea94420f07.svn-base
UTF-8
526
2.59375
3
[]
no_license
alter table QUOTE_ITEM rename column MIN_SELL_PRICE to BOTTOM_PRICE; alter table QUOTE_ITEM rename column NORM_SELL_PRICE to MIN_SELL_PRICE; alter table QUOTE_ITEM_HIS rename column MIN_SELL_PRICE to BOTTOM_PRICE; alter table QUOTE_ITEM_HIS rename column NORM_SELL_PRICE to MIN_SELL_PRICE; ALTER TABLE QUOTE_ITEM ADD (...
true
f0d03abd624cf138e5f1bb1b00c476dc17ff2a15
SQL
KatyaBaranovskaya/travelAgency
/src/main/resources/schema.sql
UTF-8
2,431
3.828125
4
[]
no_license
-- Table: country -- DROP TABLE country; CREATE TABLE IF NOT EXISTS country ( id_country serial NOT NULL, name varchar(80) NOT NULL, CONSTRAINT country_pkey PRIMARY KEY (id_country), CONSTRAINT country_name_uq UNIQUE (name) ); -- Table: hotel -- DROP TABLE hotel; CREATE TABLE IF NOT EXISTS hotel ...
true
3d652c13335f6e7b18c213a0a8c66699290680bd
SQL
AyatANSSAIEN/Gestion-D-un-Magasin-d-electronique
/sql.sql
UTF-8
48,692
2.703125
3
[]
no_license
-------------------------------------------------------- -- File created - Friday-March-19-2021 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Table ADMIN -------------------------------------------------------- CREATE TABLE "AN...
true
51ef7e8b684f908c152dc2f21f79391e96d86db7
SQL
Leolh/streaming-app
/bin/InitConfig.sql
UTF-8
5,120
2.8125
3
[]
no_license
-- init MainFrameProp ---- followings are used for Cache related INSERT INTO `MainFrameProp` (`name`,`pvalue`) VALUES ("CodisProxy","ochadoop94:19100,ochadoop94:19500"); INSERT INTO `MainFrameProp` (`name`,`pvalue`) VALUES ("DefaultCacheManager","CodisCacheManager"); INSERT INTO `MainFrameProp` (`name`,`pvalue`) VALUE...
true
aca569f6ca6dfcc6c79f9d4bf4c6defb2d9a8335
SQL
danimonz/twitter_postgres2
/services/pg_denormalized/schema-indexes.sql
UTF-8
424
2.890625
3
[]
no_license
CREATE INDEX tweets_jsonb_idx_htags ON tweets_jsonb USING gin(((data -> 'entities'::text) -> 'hashtags'::text)); CREATE INDEX tweets_jsonb_idx_exthtags ON tweets_jsonb USING gin((((data -> 'extended_tweet'::text) -> 'entities'::text) -> 'hashtags'::text)); CREATE INDEX tweets_jsonb_idx_fulltext ON tweets_jsonb USING...
true
454b9af17cd0e455f477d82672eb51f3be24ff6a
SQL
sweetestatglance/emqx_backend_mysql
/sql/mqtt_sub.sql
UTF-8
431
3.046875
3
[ "Apache-2.0" ]
permissive
DROP TABLE IF EXISTS `mqtt_sub`; CREATE TABLE `mqtt_sub` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `clientid` varchar(64) DEFAULT NULL, `topic` varchar(255) DEFAULT NULL, `qos` int(3) DEFAULT NULL, `created` timestamp NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `mqtt_sub_idx` (`clientid...
true
8fbdfa847dea924eb2b1b79427ec9e6540a34da2
SQL
narayan-ghogale/BrainFirst
/brainfirst.sql
UTF-8
19,949
3.484375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 12, 2018 at 09:02 AM -- Server version: 10.1.33-MariaDB -- PHP Version: 7.2.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
4279bb76354fc3c306860bc1a6b06acff79fe8c3
SQL
ytatus94/Leetcode
/SQL/0603_Consecutive_Available_Seats.sql
UTF-8
221
3.578125
4
[]
no_license
-- 座位要相鄰,所以編號差 1 -- 考會不會用 ABS() SELECT DISTINCT c1.seat_id FROM cinema AS c1 JOIN cinema AS c2 WHERE ABS(c1.seat_id - c2.seat_id) = 1 AND (c1.free = 1 AND c2.free = 1) ORDER BY c1.seat_id;
true
5b2e684e263cb07fb48fd343bdf4919c74c5a80a
SQL
KmMik24/DataBase
/Practice/Код/Задания/Query_2.sql
UTF-8
252
2.921875
3
[]
no_license
SELECT Flat_Number, House_Number, District_Number FROM HOUSE A WHERE Person_ID = ( SELECT Person_ID FROM GAS B WHERE Payed_Amount = 0 AND A.Person_ID = B.Person_ID ); --Где Живут Люди Которые не оплатили счета за газ
true
e4c9b30a8104431c60cff7ecc37c02829e154ea3
SQL
lukemm23/advanced-SQL-oracle
/Lesson19b_anonymous_blocks.sql
UTF-8
1,093
3.765625
4
[]
no_license
/* PL/SQL Anonymous Block [DECLARE] -- declare local variables (optional) BEGIN END; / */ -- SETUP accounts for a Money Transfer DROP TABLE accounts CASCADE CONSTRAINTS; CREATE TABLE accounts (accountno number(4) PRIMARY KEY, balance number(6,2)); INSERT INTO accounts VALUES (1, 100); ...
true
3294791ad63c0f11a6eeca4224093bd753e816ca
SQL
skatsuta/ansible-playbooks
/rpfdb/resources/migration_all.sql
UTF-8
21,621
3.046875
3
[ "MIT" ]
permissive
CREATE TABLE `media` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `site_name` varchar(255) NOT NULL, `last_applied` datetime, `created` datetime, `modified` datetime) ENGINE=InnoDB; CREATE TABLE rpf_pre.`media` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `site_name` varchar(255) NOT NULL, `last_app...
true
f98e5ddb0c42dc2923c6fcaa783cef3f5e12c484
SQL
peterschrott/flinkDeserAvroEnum
/my_table_from_kafka_custom.ddl
UTF-8
610
2.53125
3
[]
no_license
CREATE TABLE my_table_from_kafka ( `type` STRING NOT NULL ) WITH ( 'connector' = 'kafka', 'topic' = 'test.enum.avro', 'properties.bootstrap.servers' = 'localhost:9092', 'properties.group.id' = 'flink-sql-exec', 'scan.startup.mode' = 'earliest-offset', 'value.format' = 'avro-confluent-custom...
true
7744e0987e9e908b81db7cef8c71c8e333700f9e
SQL
NkRVlad/ArchitecturalProject
/SQLQuery1.sql
UTF-8
305
3.59375
4
[]
no_license
 SELECT E.Id, E.Name, E.Surname, H.Id, H.Name, H.EmployeesId, A.Id, A.Description, A.HiringHistoriesId FROM Employees as E JOIN HiringHistories as H ON H.EmployeesId = E.Id JOIN Achievements as A ON A.HiringHistoriesId = H.Id
true
5a4c00fb2c42f0669b0f1ebc3e757d52fcc9f2fa
SQL
go-tomeara/ProactiveDQ
/ProactiveDQ/dq/Tables/Batch.sql
UTF-8
148
2.53125
3
[]
no_license
CREATE TABLE dq.Batch ( ID INT IDENTITY(1,1) NOT NULL, StartDate DATETIME NOT NULL, EndDate DATETIME, CONSTRAINT PK_Batch PRIMARY KEY (ID) )
true
3edec5b0f1dfd5abace658ba2d40930fb8d30d58
SQL
isfk-fork/docker-paitime-back
/sql/user.sql
UTF-8
288
2.59375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS paitime DEFAULT CHARACTER SET = utf8mb4; CREATE USER 'pt_user'@'%' IDENTIFIED BY 'RjwuGv12XSDaVsW7'; CREATE USER 'master'@'%' IDENTIFIED BY 'RjwuGv12XSDaVsW7'; GRANT ALL ON paitime.* TO 'pt_user'@'%'; GRANT ALL ON *.* TO 'master'@'%'; flush privileges;
true
32b3f73b59793bba95aa1daaffc4478cc4edb94d
SQL
wisdom-1/sql
/06_서브쿼리.sql
UHC
5,888
4.375
4
[]
no_license
-- 06_.sql -- ? -- ϳ SELECT ȿ Ե ϳ select Ѵ. -- ϰ ִ θ. -- ڿ ݵ ʿ ؾ Ѵ. -- () ѷ׾ƾ Ѥ. -- EX) ̿ KING μ ٹϴ ȸϱ SELECT * FROM EMP WHERE DEPTNO=(SELECT DEPTNO FROM EMP WHERE ENAME ='KING'); SELECT * FROM EMP A, EMP B WHERE A.DEPTNO = B.DEPTNO AND B.ENAME='KING'; --JOIN ִ. -- ̿Ͽ -- ...
true
f0057fc1bc0b5827eff53cf89f1a1ac239c90062
SQL
wechuli/sql_recipes
/others/t-sql/lab-2.sql
MacCentralEurope
1,583
4.34375
4
[]
no_license
select * from SalesLT.Address; select * from SalesLT.Product; select distinct City from SalesLT.Address; -- Write a Transact-SQL query that queries the Address table and retrieves all values for City and StateProvince, removing duplicates select distinct City, StateProvince from SalesLT.Address; --Retrieve the name...
true
e4a6f0b50bf0c776eb884bd7276fa6a7a00d12cf
SQL
ooyendyk/WDC-group-116
/public/dbCovid.sql
UTF-8
1,300
3.734375
4
[]
no_license
<!-- Database has some issues, it's here but we can't use it yet --> CREATE TABLE user ( "id" PRIMARY KEY, "address" address, "firstName" varchar, "lastName" varchar, "accountCreationTime" timestamp DEFAULT (now()), "dateOfBirth" timestamp, "email" varchar, "mobileNumber" varchar, "hasCovid" boolean ...
true
b026de79c4d7281dadab754b0d7d0b39c4907530
SQL
danielbradley/PageCentric
/Documentation/DataBase/0u/04StoredProcedures/sp_users.sql
UTF-8
22,412
3.734375
4
[]
no_license
CREATE PROCEDURE users_uid_create( $Type VARCHAR(20) ) BEGIN IF @@read_only THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'READ_ONLY'; ELSE INSERT INTO users_uids (type) VALUES ( $Type ); SELECT LAST_INSERT_ID() AS USER; END IF; END ; CREATE PROCEDURE users_create ( $Email CHAR(99), $P...
true
01133f17d1ae27ee6d7cd6c5f93021883caa1cd7
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day25/select1301.sql
UTF-8
264
2.828125
3
[]
no_license
SELECT sen.name FROM SENSOR sen, SENSOR_TYPE st, COVERAGE_INFRASTRUCTURE ci WHERE sen.SENSOR_TYPE_ID=st.id AND st.name='WiFiAP' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['3212','6064','6136','4008','4202','5065','5231','2062','4224','2100_2'])
true
34f6ece30910bc784b79b7df794c19a7f4fa107a
SQL
clumsy/Civ5-MP_MODSPACK
/Mods/Nation - Harappa/Harappa YnAEMP Compatability.sql
UTF-8
6,927
2.828125
3
[]
no_license
--========================================================================================================================== -- Civilizations_YagemStartPosition (Earth Giant) --========================================================================================================================== CREATE TABLE IF N...
true
0a5fde0be4287095f0cfa2269f149e007307a77c
SQL
Cesarso/Sucos-Vendas-Alura
/Campos+padrões.sql
ISO-8859-1
436
2.890625
3
[]
no_license
CREATE TABLE TAB_PADRAO (ID INT IDENTITY (1,1) NOT NULL, DESCRITOR VARCHAR(20) NULL, ENDERECO VARCHAR(200) NULL, CIDADE VARCHAR(50) DEFAULT 'Cidade no definida', DATA_CRIACAO DATE DEFAULT GETDATE()) INSERT INTO TAB_PADRAO (DESCRITOR, ENDERECO, CIDADE, DATA_CRIACAO) VALUES ('CLIENTE X', 'RUA PROJETADA A', 'SO ...
true
2d5f26c73ed0943972c88cb39b12b8b28e37ef57
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day14/select0907.sql
UTF-8
269
3.015625
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='Thermometer' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['1422','4011','3058','2202','4019','5226','3212','6218','5100_4','2066'])
true
e84158ae3200431d890800f17156630f8556fa4f
SQL
Wulles/Wulez
/Wulez Catalogue/Portuguese/gift_wrappers.sql
UTF-8
1,038
3.15625
3
[]
no_license
DROP TABLE IF EXISTS `gift_wrappers`; CREATE TABLE `gift_wrappers` ( `id` int(11) NOT NULL, `sprite_id` int(11) NOT NULL, `item_id` int(11) NOT NULL, `type` enum('gift','wrapper') NOT NULL DEFAULT 'wrapper' ) ENGINE=MyISAM DEFAULT CHARSET=latin1; INSERT INTO `gift_wrappers` (`id`, `sprite_id`, `item_id`, `type...
true
d9626f7e08948594d09faa2022fd9ece04201f00
SQL
NongQ178/SQL
/lianxi1.sql
GB18030
13,278
4.09375
4
[]
no_license
select deptno, dname, loc from dept; select empno, ename, job, mgr, hiredate, sal, comm, deptno from emp; select grade, losal, hisal from salgrade; --ppt3 --1.ѯְλΪSALESMANԱšְλְڡ select empno, job, hiredate from emp where job='SALESMAN'; --2.ѯ19851231֮ǰְԱְڡ --3.ѯűŲ10ŵԱűš select ename, deptno from emp whe...
true
5360f6466efb5317c9647a8880f5a4c9f5038af2
SQL
thinkful-ei-dragonfly/JobReel-server
/migrations/003.do.create_events.sql
UTF-8
446
2.984375
3
[]
no_license
create table "events"( "event_id" serial primary key, "event_name" text not null, "host" text not null, "city" text not null, "state" text not null, "address" text, "date" TIMESTAMP NOT NULL, "url" text not null, "description" text, "status" text DEFAULT 'Will Attend' NOT NULL, "user_id" INTEGER...
true
567e2252aa514b9bace4bc2591fea323b2e97001
SQL
mhirschmannAAA/mrh_pro2_grumpy
/db/schema.sql
UTF-8
463
2.640625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS grumpy_db; USE grumpy_db; DROP TABLE IF EXISTS campgrounds: CREATE TABLE campgrounds ( id int NOT NULL AUTO_INCREMENT, camp_name VARCHAR(255) NOT NULL, city VARCHAR(255) NOT NULL, state VARCHAR(50) NOT NULL, sitenum int NOT NULL, level VARCHAR(1) NOT NULL, sh...
true
ab2705581d09c8a0d273193d15bf210943a43595
SQL
rzenkov/spring-experiment
/src/main/resources/db/migration/V1__2021-08-01-132433-create-users-table.sql
UTF-8
461
3.0625
3
[]
no_license
create table "users" ( "id" bigserial primary key not null, "username" varchar(255) not null, "email" varchar(255) not null, "password" varchar(255) not null, "remember_token" varchar(100) null, "email_verified_at" timestamp(0) without time zone null, "created_at" timestamp(0) without time...
true
fe10de1ab74228637ce1b570e13d3d22e2b66018
SQL
N1ABS/KaspiNewsBlog
/kp_blog.sql
UTF-8
7,496
3.109375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Фев 14 2017 г., 12:51 -- Версия сервера: 10.1.21-MariaDB -- Версия PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
abd648952b66be1832b3c103eeba85de1f5aea37
SQL
AndrewPonyk/StudyDB
/MySQL/MySQL_Usage_and_Administration/chap12_MaintenanceBackupRecovery/maintenanceBackupRecovery.sql
UTF-8
153
2.546875
3
[]
no_license
show variables like '%reco%'; SELECT TABLE_NAME FROM INFORMATION_SCHEMA.tables WHERE TABLE_SCHEMA = 'test'; check table test.author extended;
true
575f443bebdbb2e10555e8ca0a015ffafa8e3b06
SQL
pengjiakai8460/nopic
/xm_v.sql
UTF-8
732
3.078125
3
[ "BSD-3-Clause" ]
permissive
/*数据库变更*/ /*2018.5.22*/ ALTER TABLE `xm_v_course_videos` DROP COLUMN `title`,DROP COLUMN `images`,DROP COLUMN `creator`; ALTER TABLE `xm_v_course` DROP COLUMN `introduce`,ADD COLUMN `summray` text NULL AFTER `title`; #新建视频库表 CREATE TABLE `xm_v_videos` ( `id` int(8) NOT NULL AUTO_INCREMENT, `summray` text COMMENT '...
true
f4bc1f24a43d0ec5d425c3ec171e04c97d9d9d38
SQL
pedrualves/template-nifi
/cassandra.sql
UTF-8
2,399
2.546875
3
[]
no_license
CREATE KEYSPACE test WITH REPLICATION = { 'class' : 'NetworkTopologyStrategy', 'datacenter1' : 1 } ; USE test; CREATE TABLE hits ( cid text, hid text, savedat_date text, did text, dvc_otherids map<text, text>, dvc_type text, hit_action text, hit_category text, hit_context text, hit_c...
true
a65cb52a079ca8583683541f52d099bc5f075819
SQL
troyismad99/SQL-Play
/leetCode/0177-NthHighestSalary.sql
UTF-8
2,003
4.84375
5
[ "Unlicense" ]
permissive
/* Write a SQL query to get the nth highest salary from the Employee table. +----+--------+ | Id | Salary | +----+--------+ | 1 | 100 | | 2 | 200 | | 3 | 300 | +----+--------+ For example, given the above Employee table, the nth highest salary where n = 2 is 200. If there is no nth highest salary, then the...
true
72e6f3c21c73ecf011a76533dfaa4c6ffd56cc30
SQL
ChiragPatel29/Business-Process-Automation
/seed.sql.sql
UTF-8
32,042
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 02, 2020 at 03:08 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
6a33bd9145fb99b3b65302ea4b462f6b707dbb5c
SQL
shiwuyisheng/MyBatis-batch
/src/test/resources/sql/hsqldb/hsqldb-schema.sql
UTF-8
288
3.0625
3
[ "Apache-2.0" ]
permissive
-- hsqldb start init drop table simple_user if exists; create table simple_user ( id int generated by default as identity(start with 1000) not null, name varchar(255) not null, email varchar(255) not null, constraint pk_simple_user primary key (id) ); -- hsqldb init finished .
true
32f106500acdd4c22658c15fe99eee32bab6d19d
SQL
awsid9/CatalogueExport
/inst/sql/sql_server/analyses/2120.sql
UTF-8
1,046
4
4
[ "Apache-2.0" ]
permissive
-- 2120 Number of device_exposure records by start month --HINT DISTRIBUTE_ON_KEY(stratum_1) WITH rawData AS ( select YEAR(ce1.device_exposure_start_date)*100 + month(ce1.device_exposure_start_date) as stratum_1, COUNT_BIG(ce1.PERSON_ID) as count_value from @cdmDatabaseSchema.device_exposure ce1 inner j...
true
0646245b3171d0e374f61b5ea2073ec28c9a63f5
SQL
pacificweb/WooCommerce2InvoicePlane
/clients.sql
UTF-8
1,182
3.34375
3
[]
no_license
SELECT DISTINCT CONCAT( TRIM(MAX( CASE WHEN pm.meta_key = '_billing_first_name' AND p.ID = pm.post_id THEN pm.meta_value END )) ," ", TRIM(MAX( CASE WHEN pm.meta_key = '_billing_last_name' AND p.ID = pm.post_id THEN pm.meta_value END ))) AS client_name, NULL AS client_address_1, NULL AS clien...
true
21623b71075adf297c5456afac3068ac49e93e6c
SQL
maheshbist/inventory_management_system
/Backup/00176100-Mahesh Bist-Computing Project/Project/IMS/Database/LoginQuery.sql
UTF-8
253
2.9375
3
[]
no_license
create procedure st_getUserDetails @user varchar(50), @pass nvarchar(50) as select u.usr_id as 'ID', u.usr_name as 'Name', u.usr_username as 'Username', u.usr_password as 'Password' from users u where u.usr_name = @user and u.usr_password = @pass
true
4aeb591ee24922de0a14e5582b5bb9151f6ae70a
SQL
duy9911/once
/data/Dump20210926/decorshop2_pages.sql
UTF-8
2,269
2.890625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.35, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: decorshop2 -- ------------------------------------------------------ -- Server version 5.7.35 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; ...
true
b27b2b23eff64c805c94760aa9d990b6541e92bb
SQL
cekip88/Leka
/migrates/consultant_chats.sql
UTF-8
497
3.09375
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; CREATE TABLE `consultant_chats` ( `id` int(255) NOT NULL, `uId` int(255) NOT NULL, `answerUid` int(255) NOT NULL, `status` tinyint(4) NOT NULL, `source` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT C...
true
06e3a2701dab6913edf03830058a94ba44c44c77
SQL
asenvolev/SoftUni
/C# DB Fundamentals/C# DB Basics - SQL/Joins, Subqueries, CTE and Indices/EmployeesSummary.sql
UTF-8
305
3.71875
4
[]
no_license
SELECT TOP(50) e.EmployeeID, CONCAT(e.FirstName, ' ', e.LastName) AS [EmployeeName], CONCAT(m.FirstName, ' ', m.LastName) AS [ManagerName], d.Name FROM Employees AS e INNER JOIN Employees AS m ON e.ManagerID = m.EmployeeID INNER JOIN Departments AS d ON e.DepartmentID = d.DepartmentID ORDER BY EmployeeID
true
f2bf4ce1ca25ed78bff054fa2c91405744f3be3e
SQL
swaxx1993/Bahandi
/thesis.sql
UTF-8
12,237
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.11.6 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 28, 2014 at 08:31 PM -- Server version: 5.0.51 -- PHP Version: 5.2.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_...
true
b3420a90012611b9b67678421268f44f236447d6
SQL
justadigit/LiveDataSearch
/testing.sql
UTF-8
1,901
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 28, 2019 at 09:40 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
75f6481df1b28f603486f8120cc6433c580ae9f6
SQL
JamesChen666/JY-SpringBoot
/src/main/resources/beetlsql/dispatch.sql
UTF-8
924
3.5
4
[]
no_license
list === SELECT sd.*, ss.RealName,ss.StudentNumber, bd.DisplayText AS IssueTypeCode, (CASE WHEN ba3.AreaName IS NULL AND ba3.AreaName IS NULL AND ba2.AreaName IS NULL THEN CONCAT(ba1.AreaName) WHEN ba4.AreaName IS NULL AND ba3.AreaName IS NULL THEN CONCAT(ba2.AreaName,ba1.AreaName) WHEN ba4.AreaName IS NULL THEN CONCAT...
true
0fcb49094d9a60561f6f5c631f2add6ea8167918
SQL
darknight9/exfd
/exfd/src/sql/cwwll.sql
UTF-8
3,420
2.984375
3
[]
no_license
/* MySQL Data Transfer Source Host: localhost Source Database: cwwll Target Host: localhost Target Database: cwwll Date: 2013/4/28 21:26:24 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for container -- ---------------------------- CREATE TABLE `container` ( `ccode` var...
true
c0791de34fb2b03ed88eef07f16bf45d81ef029e
SQL
laurowag/microservices
/MicroserviceWildflySwarm/ddl.sql
UTF-8
2,110
3.609375
4
[]
no_license
CREATE DATABASE core; CREATE DATABASE rec; CREATE LOGIN tenant WITH PASSWORD = 'tenant12345@!'; USE core; CREATE USER tenant from LOGIN tenant WITH DEFAULT_SCHEMA = tenant; CREATE SCHEMA tenant AUTHORIZATION tenant; GRANT CREATE TABLE to tenant; GRANT CREATE VIEW to tenant; execute as login = 'tenant' CREATE T...
true
7141a9aaef8590b0d139e157c13f5299f4881d1d
SQL
dnloop/inventory-com
/src/test/resources/db/data/insert-suppliers.sql
UTF-8
1,515
2.515625
3
[ "MIT" ]
permissive
/* * Inventory-Com: Inventory and Commerce Management Application. * Copyright (C) 2021. dnloop. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of t...
true
2244a29509536f1646fa4549f83766d03eac4f17
SQL
Adamars/HackathonGlitch
/DB_mysql/INSERT_STUDENT.sql
UTF-8
725
3.40625
3
[]
no_license
DROP FUNCTION IF EXISTS REGISTER_STUD; DELIMITER // CREATE FUNCTION REGISTER_STUD(i_username varchar(4000) , i_password varchar(4000) ,nr_matricol varchar(4000) , i_nume varchar(4000) ,i_prenume varchar(4000) , i_an int , i_grupa varchar(4000)) RETURNS int BEGIN DECLARE v int; DECLARE verificare int; S...
true
dd696b82663ca63e59dbabb1c16f9d516eae1e8f
SQL
FrihaZ/Tutorials-Self-Study
/SQL SERVER/SQLQuery_Tutorial_3.sql
UTF-8
223
3.015625
3
[]
no_license
CREATE INDEX IX_AnimalsSpecies ON Animals(SpeciesID); DROP INDEX IX_AnimalsSpecies ON Animals -- create index on Name and COntact email CREATE INDEX IX_AnimalsContact ON Animals(Name, ContactEmail);
true
18596559918b59f96a4e7d7bdd60543a803b2dd7
SQL
JocelynFlores1/Proyecto_Final_3ro
/Base_De_Datos/Amore.sql
UTF-8
8,194
3.546875
4
[]
no_license
DROP DATABASE IF EXISTS AMORE; CREATE DATABASE AMORE; USE AMORE CREATE TABLE PROVEEDORES( ID_PROVEEDOR INT PRIMARY KEY AUTO_INCREMENT , NOMBRE_PROVEEDOR VARCHAR(20) NOT NULL, CALLE VARCHAR(20) NOT NULL, NUMERO VARCHAR(4) NOT NULL UNIQUE, COLONIA VARCHAR(20) NOT NULL, C...
true
7c45d8b159015cd95bb7172cdc8c2e0f1643a5e3
SQL
Abdallah7x/SE-HCI
/database/portal.sql
UTF-8
5,407
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 09, 2021 at 07:01 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
16d150a3c1c83de14f056e7adc565af81c3d99df
SQL
dodola/perfetto
/test/trace_processor/graphics/drm_gpu_track_test.sql
UTF-8
221
2.78125
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
SELECT gpu_track.name, ts, dur, slice.name, flat_key, int_value, string_value FROM gpu_track JOIN slice ON slice.track_id = gpu_track.id JOIN args ON slice.arg_set_id = args.arg_set_id ORDER BY ts
true
cef0b7c1c090fc355c6edff4c4529f180f29493a
SQL
gisellerocha/Masvig
/helpdesk.sql
UTF-8
10,128
2.953125
3
[]
no_license
DROP DATABASE IF EXISTS helpdesk; CREATE DATABASE helpdesk; -- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 28-Nov-2018 às 19:01 -- Versão do servidor: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; ST...
true
5ed3e54657998842a179544c6829b46a3cc98579
SQL
mhalvarez/Menu
/SCRIPTS ACTUALIZIONES/20181220.SQL
UTF-8
11,570
2.90625
3
[]
no_license
 ALTER TABLE TS_ASNT MODIFY (ASNT_DOCU VARCHAR2(30 BYTE) ); ALTER TABLE TS_ASNT MODIFY (ASNT_DORE VARCHAR2(30 BYTE) ); ALTER TABLE TS_ASNT MODIFY (ASNT_AX_MOVG_DORE VARCHAR2(30 BYTE) ); -- OJO IMPLEMENTADO HASTA AQUI EN SANTA MONICA ALTER TABLE TH_PARA ADD (PARA_SPYRO_SII NUMBER DEFAULT 0 ); COMMENT ON...
true
10ac40c9ff5eba164d6c75b6a0a07872c5aebb14
SQL
shoqkhalidd/Motors-interface
/IOT/motors.sql
UTF-8
2,642
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jun 24, 2021 at 08:14 PM -- Server version: 10.4.19-MariaDB -- PHP Version: 8.0.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
a9a7199763ec784af6a6e21898bc8e4214ee31b6
SQL
kinwang6632/vb6
/App/CSMIS/EMC-Nick/Transform/EMC_Transform/AddTmpTable.sql
BIG5
6,840
2.765625
3
[]
no_license
Prompt ***** 91.11.21 إ߷s¥NX Table , sNX Table ƥ¥NX ***** --******************************************************************* --******************************************************************* Prompt إ߫ȤONX(CD004)s¥NX Table: CD004_Map DROP TABLE CD004_Map CASCADE CONSTRAINT; create table CD004_Map ( OldCode numb...
true
110d9f67a40245d8e3fa18972489a96b1e1aea30
SQL
Zelgath/task-reporting
/sql-scripts/dev2/create_projects.sql
UTF-8
418
2.84375
3
[]
no_license
CREATE TABLE `projects` ( `id_project` int(11) NOT NULL AUTO_INCREMENT, `project_description` varchar(45) NOT NULL, `project_client` varchar(45) NOT NULL, `project_monthly_cost` int(11) NOT NULL, `project_start_date` date NOT NULL, `project_end_date` date DEFAULT NULL, `project_total_cost` int(11) NOT NUL...
true
232662b907f5fb07b35620368ab33597388bfe2f
SQL
abdullah-mohammad/se2_magic_team
/bin/main/data.sql
UTF-8
850
2.71875
3
[]
no_license
--insert some sample Data insert into user (username, password, email, gender, profilepicture, birthdate) values ('user', '$2a$10$MeWhrWoE2yvclNulZyCZb.IDxlJIhQDMbm8pOVhH3DRGFaz7ZpaaS', 'user@using.com', 'w', 'userpic.png', CURRENT_DATE); -- corresponds to password:'password' insert into user (username, password, email...
true
e8e891e4e4823cb6b1e95b7b62040edc905d6b59
SQL
Seroglaziy/JavaEE
/5.sql
UTF-8
916
4.125
4
[]
no_license
-- 5. Найти клиента (customer), которая приносит меньше всего прибыли компании (company) для каждой из компаний . CREATE TEMPORARY TABLE profit_from_customer SELECT base1.companies.name AS company_name, base1.customers.name AS customer_name, sum(base1.projects.cost) AS profit FROM base1.companies INNER...
true
6a6d1e1e6a270217171cda423ca50075f6cb270f
SQL
marlon-rt14/saver-ink
/database/db.sql
UTF-8
635
3.84375
4
[]
no_license
CREATE DATABASE saver_link; USE saver_link; CREATE TABLE users( id_user INT(11) NOT NULL, fullname VARCHAR(30) NOT NULL, username VARCHAR(100) NOT NULL, password VARCHAR(100) NOT NULL ); CREATE TABLE links( id_link INT(11) NOT NULL, title VARCHAR(100) NOT NULL, url VARCHAR(100) NOT NULL, description TEXT NOT...
true
a4a4d712ab1e18ac3af9f39aa1100b1d8c0b3485
SQL
littleleiboy/JavaProject
/XjgjPay/db/xjgjpay-app.sql
UTF-8
4,611
3.484375
3
[]
no_license
-- MySQL 5.7 -- 西郊国际移动交易支付系统 -- 2017-12-01 use `xjgjpay`; drop table if exists `member_info`; -- 会员信息(对接结算系统的会员信息) create table `member_info`( `id` bigint not null auto_increment comment '会员id', `member_id` varchar(50) default '' comment '会员编号', `member_type` int default '0' comment '会员类型', `member_name` varc...
true
b7b01adaa6e1e211bea66f8179c8e498bf73668c
SQL
DimolSPA/Dimol-Fix-Carteras
/Dimol.Carteras/Dimol.Carteras.Database/dbo/Stored Procedures/Procs3/Update_Lista_Precios_Productos.sql
UTF-8
486
2.734375
3
[]
no_license
 Create Procedure Update_Lista_Precios_Productos(@lpp_codemp integer, @lpp_ltpid integer, @lpp_prodid integer, @lpp_precio decimal(15,2)) as UPDATE listas_precios_productos SET lpp_precio = @lpp_precio WHERE ( listas_precios_productos.lpp_codemp = @lpp_codemp ) AND ( listas_precios_productos....
true
ef6fea4e0f0f8f4011d0087d7021e9349f0e17c6
SQL
jpfairbanks/querygarden
/featex/sql/features.sql
UTF-8
1,028
3.484375
3
[]
no_license
select * from (SELECT person_id, condition_start_date AS start_date, condition_end_date AS end_date, condition_concept_id concept_id, 'condition' AS type FROM mimic_v5.condition_occurrence UN...
true
8e8dee28d4d357d36e15540f20300555e1a0c2c2
SQL
cynthhe/mist-4610
/class code/Relationships.sql
UTF-8
5,662
4.1875
4
[]
no_license
USE ns_ch88958; CREATE TABLE DEPARTMENT( deptID VARCHAR(5), deptName VARCHAR(20), headOfDept VARCHAR(25), location VARCHAR(10), PRIMARY KEY(deptID) ); CREATE TABLE STUDENT1( studentID VARCHAR(5), fName VARCHAR(10), lName VARCHAR(10), deptID VARCHAR(5), PRIMARY KEY(studentID), CON...
true
722b09b571dcd641e88def044ec5748bf7befc73
SQL
daniiel/cursos
/Oracle 11g - Introduction to SQL/courselabs/sql1/code_ex/code_04_41_sa.sql
UTF-8
237
2.609375
3
[]
no_license
SELECT last_name, job_id, salary, DECODE(job_id, 'IT_PROG', 1.10*salary, 'ST_CLERK', 1.15*salary, 'SA_REP', 1.20*salary, salary) REVISED_SALARY FROM employees;
true
8ec09f0d2a213ea82993c2b72b53e23a2cad82ea
SQL
KaylinAnn/Kaylins-Kitchen
/db/db init.sql
UTF-8
682
3.734375
4
[]
no_license
create table ingredients( id serial primary key, name text not null ); create table user( id serial primary key, auth0id text, name text, email text, picture text ); create table user_pantry( user_id integer, ingredient_id integer, foreign key (user_id) references users(id), foreign key (ingredient_id) refe...
true
9970defe73b129cf376207e682c74ff18e78e3a1
SQL
at69/E-Cursus
/ecursus.sql
UTF-8
7,397
3.5625
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- Client: localhost -- Généré le: Mer 05 Mars 2014 à 20:25 -- Version du serveur: 5.6.12-log -- Version de PHP: 5.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
570149117fad9c8f5ce3b9845cceaf60e255771c
SQL
ngocphuocha/basic_algorithm
/win10-device/hr.sql
UTF-8
2,937
4.625
5
[]
no_license
-- 1. Write a query to display the names (first_name, last_name) using alias name “First Name", "Last Name" select FIRST_NAME 'First Name', LAST_NAME 'Last Name' from employees; -- 2. Write a query to get unique department ID from employee table select DISTINCT DEPARTMENT_ID from employees; -- 3. Write a query to get ...
true
eae804e7ce2bf8f0bfa7de901a86ab21dc34a0d6
SQL
JavierSLX/Ventas
/ejemplos todos juntos.sql
UTF-8
146,671
2.734375
3
[]
no_license
use ventas; INSERT INTO requerimiento (tipo,activo) VALUES ('Articulo',true); INSERT INTO requerimiento (tipo,activo) VALUES ('Servicio',true); INSERT INTO servicio_venta (nombre, precio, activo) VALUES ('Reparaciones', 250, true); INSERT INTO servicio_venta (nombre, precio, activo) VALUES ('Liberaciones', 150, true...
true
dbdf5a70c4bb81861328c2db3decefaf2501b322
SQL
Nikhilsasikumar/3
/fmc_boat (1).sql
UTF-8
15,283
2.828125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 09, 2020 at 02:37 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
0e753118f5279e0c91c22b53752981ac1e1804e3
SQL
takaides/sqltodo
/todolist.sql
UTF-8
1,088
3.390625
3
[]
no_license
CREATE TABLE todo ( id SERIAL PRIMARY KEY NOT NULL, title varchar(255) NOT NULL, details varchar(65000), priority integer DEFAULT 1 NOT NULL, created_at timestamp NOT NULL, completed_at timestamp ); INSERT INTO todo (title, details, priority, created_at) VALUES...
true
d74c6268aca5815fb4d2c660361975817191a482
SQL
youjiesoft/modelSys
/Admin/install/install/data/sql/systemmanage/access.sql
UTF-8
1,208
2.671875
3
[]
no_license
CREATE TABLE `access` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID', `role_id` smallint(6) unsigned NOT NULL, `node_id` smallint(6) unsigned NOT NULL, `level` tinyint(1) NOT NULL, `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0顶级应用;1面板;2空模块;3模块;4操作', `pid` smallint(6) NOT NULL, `module` v...
true
4876834b26d13498083fb2b038d06d8fb0f4869a
SQL
CSCfi/antero
/db_archive/sql_archive/73__dw_create_table_d_kansainvalinen_yhteisjulkaisu.sql
UTF-8
975
3.546875
4
[ "MIT" ]
permissive
IF NOT EXISTS (select * from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='dw' and TABLE_NAME='d_kansainvalinen_yhteisjulkaisu') BEGIN CREATE TABLE dw.d_kansainvalinen_yhteisjulkaisu( id bigint IDENTITY(1,1) NOT NULL, loadtime datetime2(4) NOT NULL, username nvarchar(128) NOT NULL, source nvarchar(255) NULL, ...
true
15bc2989b09275144fc5336cef879e3e8696cccf
SQL
emanuelanechei/Oracle-Email-Reports
/sql/warroom-INV_Closed.sql
UTF-8
2,025
3.6875
4
[]
no_license
-- closed mo SELECT toh.request_number MO ,greatest(0,round((mmt.transaction_date - case when apps.xxbim_get_working_days(85,toh.creation_date,mmt.transaction_date) >1 then toh.creation_date + 8/24 else toh.creation_date end)*24,0)-5) hours_past_goal ,bd.department_code Line ,toh.creation_date creation_date ,mmt....
true
aa901a0595a62823fa2330a23991a02815843254
SQL
adiskafajar/Bunbougu
/bunbougu.sql
UTF-8
13,645
2.71875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 19, 2021 at 01:09 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
80592a94408a0924c9d0421bcf1bdb77701b05cf
SQL
wendersonryan/booter
/sql.sql
UTF-8
4,726
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 22, 2011 at 05:17 AM -- Server version: 5.0.91 -- PHP Version: 5.2.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
true
385aed9288643df28828e7c79c8689e3f74a5ec2
SQL
luanacarolina/SQL-Generation
/Atividade 2/Ecommerce2/select.sql
UTF-8
953
4.34375
4
[]
no_license
/* Faça um select que retorne os Produtos com o valor maior do que 2000. */ select * from tb_produtos where preco > 2000; /* Faça um select trazendo os Produtos com valor entre 1000 e 2000. */ select * from tb_produtos where preco between 1000 and 2000; /* Faça um select utilizando LIKE buscando os Produtos com a letr...
true
8f154a9f3c50e4dec09ec36fa18697691da98deb
SQL
heladiofog/videocentro
/modelo/carga_datos.sql
WINDOWS-1250
2,162
3
3
[ "MIT" ]
permissive
INSERT INTO pelicula (id_peliculaIn, tituloVc, generoVc, anioSi, clasificacionVc, directorVc, existenciaIn, codigoRentaCh, disponibleSi) VALUES (null, 'Hellraiser II', 'Terror', 1988, 'PG', 'Clive Barker', '5', 'A', 5); /*prueba de consultas*/ SELECT id_peliculaIn, tituloVc, generoVc, anioSi, clasific...
true
573a62ba5f0e84b5301f04960d36b86fec615848
SQL
erdoganemrah/SQLSERVER2014_With_DatabaseDevelopment
/SQLServer2014DatabaseDevelopment/01_Intro.sql
ISO-8859-9
2,239
3.734375
4
[]
no_license
/* Tool: SQL Prompt -> RedGate [SQL Server Versiyonlar] 2005 -> 90 (.Net 2.0) 2008 -> 100 (.Net 3.0) 2008 R2 -> 105 (en youn kullanlan versiyon, .Net 3.0, 3.5) 2012 -> 110 (.Net 4.0) 2014 -> 120 (.Net 4.0, 4.5) [SQL Server Servis ve Bileenleri] * Servisler - Data Engine - Agent - Full Text Search (Contains ve Full...
true
5e5a02d9dfe691684fec7b0ebe111c77213a9b91
SQL
hoenirvili/Vor
/db/create.sql
UTF-8
1,288
3.453125
3
[ "MIT" ]
permissive
# more information can be found here # on why we picked the charset and collate options # # https://stackoverflow.com/questions/38363566/trouble-with-utf-8-characters-what-i-see-is-not-what-i-stored/38363567#38363567 # CREATE OR REPLACE DATABASE Vor CHARACTER SET = 'utf8mb4' COLLATE = 'utf8mb4_unicode_520_ci'; ...
true
5ee9f77842b8c3893da6409ab432827fbfc97370
SQL
jmbothe/scpmdb-deploy
/projects-api/src/main/resources/db/migration/V1__create_tables.sql
UTF-8
1,103
3.125
3
[]
no_license
CREATE TABLE REGIONS ( REGION_ID serial, REGION_NAME varchar(100) NOT NULL, PRIMARY KEY (REGION_ID) ); CREATE TABLE PROJECTS ( PROJECT_ID serial, PROJECT_NAME varchar(100) NOT NULL, CLIENT varchar(100) NOT NULL, REGION_ID int NOT NULL REFERENCES REGIONS(REGION_ID), ADDRESS varchar(100) ...
true
07be044f3eaf875644f9ed93163d75642b0bf452
SQL
skullab/area51
/schema/price_lists_revisions.sql
UTF-8
1,596
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Giu 15, 2016 alle 03:19 -- Versione del server: 5.6.17 -- PHP Version: 5.6.17 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT...
true
9e639a964a2ee9357ec37409bad5147a727fc6ec
SQL
waterpumpkin/backend
/services/category-service/db/migrations/0002-initial-data.sql
UTF-8
19,152
2.796875
3
[]
no_license
-- +migrate Up SET ROLE vb_categories; INSERT INTO categories (id, label, extensible, schema) VALUES ('venue-amenity', 'Venue amenities', TRUE, '{"type": "string"}'); INSERT INTO category_entries (category, fixed, label, value) VALUES ('venue-amenity', TRUE, 'car-park', '"car park"'), ('venue-amenity', ...
true
e95b0cec20c205242015f9d38e0cb91f96cefa42
SQL
casperyonel/sql-intro
/group_by.sql
UTF-8
271
3.296875
3
[]
no_license
-- SELECT SUM(total), billing_state FROM invoice -- GROUP BY billing_state; -- SELECT AVG(milliseconds), album_id FROM track -- GROUP BY album_id -- ORDER BY AVG DESC; -- SELECT COUNT(album_id), artist_id FROM album -- WHERE artist_id IN (8, 22) -- GROUP BY artist_id;
true
7c70eb445d9c99e0dd92d41bd873a5d91358db69
SQL
radtek/Oracle-4
/SQL/Administração/scripts_dba/sel_sess2.sql
UTF-8
497
2.953125
3
[]
no_license
/* Lista sessoes Oracle com respectivos comandos SQL (sem objeto) */ select to_char(sid,'99999') "Sid", to_char(serial#,'99999') "Serial", substr(username,1,15) "Usuario", status, terminal, command "Num.Comando", decode(command,2,'INSERT',3,'SELECT',6,'UPDATE',7,'DELETE',...
true
0fee4f973fddaab55d1c3fb1c21566ce89951f40
SQL
Leshy4/SQL-Database-Design
/4. Intro to SQL/exercise_SOLUTIONS/ch16/ex16-01.sql
UTF-8
484
3.296875
3
[]
no_license
CREATE OR REPLACE TRIGGER invoices_before_update_payment BEFORE UPDATE OF payment_total ON invoices FOR EACH ROW WHEN (new.payment_total + old.credit_total > old.invoice_total) BEGIN RAISE_APPLICATION_ERROR(-20001, 'Payment total + credit total can not be greater than invoice total.'); END; / UPDATE...
true
e39536e49e6d1ac405b4069a63a41ec7dce21974
SQL
Chumakovskiy/demo
/src/main/resources/db/migration/V1.2__insertData.sql
UTF-8
538
2.53125
3
[]
no_license
INSERT INTO TEST_TASK.COUNTRY (ID, COUNTRY_CODE) VALUES (1, 'ua'), (2, 'ru'), (3, 'us'), (4, 'lt'), (5, 'lv'); INSERT INTO TEST_TASK.RESTRICTED_WORD (ID, WORD) VALUES (1, 'goblin'), (2, 'elf'), (3, 'looser'), (4, 'troya'), (5, 'virusPetya'); INSERT INTO TEST_TASK.QUESTION (ID, CONTENT, COU...
true
5c3384df51dc59bdae1f96ca813c1a4b06e4a2b2
SQL
fh-trier/tdwh_ss18l
/loesungen/uebung_06/uebung_06_-_aufgabe_01.sql
UTF-8
573
3.921875
4
[]
no_license
CREATE OR REPLACE VIEW "TDWH_06_01" AS SELECT d.department_name AS "DEPARTMENT_NAME", l.city AS "CITY", co.country_name AS "COUNTRY_NAME", COUNT(e.employee_id) AS "COUNT" FROM employees e INNER JOIN departments d ON (d.department_id = e.department_id) INNER JOIN locations l ON (d.location_id = l.location_id...
true
d120863f28f45c6f4aa65c8eb5a0d585149b1b4e
SQL
crysiscore/Mozart
/mozart_sp_rmdups.sql
UTF-8
6,164
3.25
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.16, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: temp -- ------------------------------------------------------ -- Server version 5.6.16-1~exp1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_...
true
ad8e59aa1f91390d1428c3da612c0a84aa770e93
SQL
felipesdias/Extractor-URI-Online-Judge
/URI-EN/SQL/2613 - Cheap Movies.sql
UTF-8
241
2.96875
3
[]
no_license
-- Author: Felipe Souza Dias <felipe.s.dias@outlook.com> -- Name: Cheap Movies -- Level: 1 -- Category: SQL -- URL: https://www.urionlinejudge.com.br/judge/en/problems/view/2613 select m.id, m.name from movies m, prices p where m.id_prices = p.id and p.value < 2.00
true
44e62a294e1800b254d67a5e7466b23b37b7fa85
SQL
WDoubleQ/computer
/db/computer/jeesite_gen_table.sql
UTF-8
2,698
3.359375
3
[ "Apache-2.0" ]
permissive
create table gen_table ( id varchar(64) not null comment '编号' primary key, name varchar(200) null comment '名称', comments varchar(500) null comment '描述', class_name varchar(100) null comment '实体类名称', parent_table varchar(200) null co...
true
5d36d80d0da99756c3dffc67185e4307309a2d31
SQL
hesitanting/PostGIS-Examples
/裁剪多边形.sql
UTF-8
250
3.296875
3
[]
no_license
--裁剪 select ST_AsText(ST_Intersection(linestring, polygon)) As wkt from ST_GeomFromText('LINESTRING Z (2 2 6,1.5 1.5 7,1 1 8,0.5 0.5 8,0 0 10)') AS linestring CROSS JOIN ST_GeomFromText('POLYGON((0 0 8, 0 1 8, 1 1 8, 1 0 8, 0 0 8))') AS polygon;
true
5da3637030f2f867970eb11833f453a8aa54d6c1
SQL
itboywh/library
/JspLibrary/db_librarysys.sql
UTF-8
10,261
3.03125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 111 Source Server Version : 50720 Source Host : localhost:3306 Source Database : db_librarysys Target Server Type : MYSQL Target Server Version : 50720 File Encoding : 65001 Date: 2021-04-09 22:42:22 */ SET FOREIGN_KEY_CHECKS=0; -- -...
true