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
692afb62ed3fd6de280fdc22c15f6b25dbd49705
SQL
mzxssg/Java_Learning_Notes
/尚医通/资料/资料1/02-项目sql语句/sql/yygh表结构.sql
UTF-8
10,545
3.125
3
[]
no_license
# Host: localhost (Version 5.7.19-log) # Date: 2020-07-31 12:02:29 # Generator: MySQL-Front 6.1 (Build 1.26) # # Database "yygh_cmn" # CREATE DATABASE IF NOT EXISTS `yygh_cmn` CHARACTER SET utf8; USE `yygh_cmn`; # # Structure for table "dict" # CREATE TABLE `dict` ( `id` bigint(20) NOT NULL DEFAULT '0' COMMEN...
true
4d84335794349d2d0f1a3c6d8c0be421c0be4813
SQL
decker389/bottega-mysql-project
/sample data for courses table.sql
UTF-8
1,766
2.765625
3
[]
no_license
USE school_project_schema; INSERT INTO courses(courses_id, courses_name, courses_subject, courses_professors_id) VALUES(1, "beauty and the beast", "History", 1); INSERT INTO courses(courses_id, courses_name, courses_subject, courses_professors_id) VALUES(2, "World War 2", "History", 2); INSERT INTO courses(courses_i...
true
d6609cd52ed400a7d982dbe3136ebf93ac449c95
SQL
kadyrm/mydict.kg-encyclopedias-pure_php_based
/databases/department.sql
UTF-8
7,294
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.11.1deb2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 23, 2014 at 02:49 PM -- Server version: 5.5.35 -- PHP Version: 5.4.4-14+deb7u8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_S...
true
b7cb82857ec6f2f03ff55819563ccef2b974fc46
SQL
twoscoops/two-scoops-of-django-1.11
/code/chapter_07_example_09.sql
UTF-8
1,589
3.234375
3
[]
no_license
Using This Code Example ========================= The code examples provided are provided by Daniel Greenfeld and Audrey Roy of Two Scoops Press to help you reference Two Scoops of Django: Best Practices for Django 1.11. Code samples follow PEP-0008, with exceptions made for the purposes of improving book formatting. ...
true
33b3231b7571d784f83b7f86f295a0d4e22748bf
SQL
SanderCokart/SCRUM-DG2-Tutorial-Assignments
/database_export/wedstrijd_oefening.sql
UTF-8
2,667
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Gegenereerd op: 01 mrt 2019 om 09:55 -- Serverversie: 10.1.38-MariaDB -- PHP-versie: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
c97778c18c221bb2b73e42b321a3c0caf144427d
SQL
rlip1994/IQApp
/modelo bd/mydb_.sql
UTF-8
13,592
2.8125
3
[]
no_license
-- ----------------------------------------------------- -- procedure sp_insertAddress -- ----------------------------------------------------- DELIMITER $$ USE `mydb`$$ DELIMITER ; INSERT INTO playersxusers (idplayer,iduser) VALUES (8,17); INSERT INTO playersxusers (idplayer,iduser) VALUES (9,17); INSERT INTO playe...
true
a5ae38aefe2b77d3adc6ff07a7bc1b98c57454d7
SQL
ruden/oscommerce2-catalog-sample-data
/install/oscommerce_data_sample.sql
UTF-8
94,051
2.71875
3
[]
no_license
#TRUNCATE `categories`; #TRUNCATE `categories_description`; #TRUNCATE `manufacturers`; #TRUNCATE `manufacturers_info`; #TRUNCATE `products`; #TRUNCATE `products_attributes`; #TRUNCATE `products_description`; #TRUNCATE `products_images`; #TRUNCATE `products_options`; #TRUNCATE `products_options_values`; #TRUNCATE `produ...
true
835ca0fce6d2e5b3a916a9dabaa9c16bc99fa5f1
SQL
correnm/DataStax
/DataModel/1_urm_application_master/common_application_objects/2_tables/table_hardware_archive.cql
UTF-8
2,667
2.65625
3
[]
no_license
/** Modifications date author description 2/13/2018 sara.bergman removed risk_likelihood float, to be placed into business_value_attribution 02-28-2018 corren.mccoy column changed to business_process_ids to list<uuid> 04-05-2018 sara.bergman Modified/Renamed installed_software to software_installed list<te...
true
b0ffed0dbf6eb20080bfb5b363e66d2a784aeccb
SQL
naye0ng/Algorithm
/CodingTestPractice/SQL/Programmers/sum,max,min.sql
UTF-8
317
3.359375
3
[]
no_license
-- [1] 최대값 구하기 SELECT MAX(DATETIME) AS 시간 FROM ANIMAL_INS; -- [2] 최소값 구하기 SELECT MIN(DATETIME) AS 시간 FROM ANIMAL_INS; -- [3] 동물 수 구하기 SELECT COUNT(*) AS count FROM ANIMAL_INS; -- [4] 중복 제거하기 SELECT COUNT(DISTINCT NAME) FROM ANIMAL_INS WHERE NAME IS NOT NULL;
true
e0320b2f94ab2e662c0dec570645c5ea0ac5324a
SQL
mayanxi/testgit
/src/test/resources/schema.sql
UTF-8
12,838
3.40625
3
[]
no_license
CREATE DATABASE `ipplus360_mall` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; use ipplus360_mall; DROP TABLE IF EXISTS `users`; DROP TABLE IF EXISTS `organizations`; DROP TABLE IF EXISTS `products`; DROP TABLE IF EXISTS `carts`; DROP TABLE IF EXISTS `cart_item`; DROP TABLE IF EXISTS `price_package`; DROP TABLE ...
true
8a7521e1c595a9adfff9db971685061634e13a50
SQL
rizalzulkarnain/mastery-with-sql
/exercises/3_15.sql
UTF-8
292
3.0625
3
[]
no_license
SELECT rental_id, rental_date, return_date FROM rental WHERE return_date > rental_date OR return_date = rental_date OR return_date < rental_date; /* The reason this does not return all the rows in the table is because 183 rows have a NULL return_date. */
true
7c2ef4a2c91f60fff2d4f5548851a9918a4d2d83
SQL
CUBRID/cubrid-testcases
/sql/_31_cherry/issue_22162_more_json_functions/cases/json_functions_with_host_variable_2.sql
UTF-8
5,346
2.59375
3
[ "BSD-3-Clause" ]
permissive
--+ holdcas on; set @jdoc = '{"name":"Lily", "age":12, "hobbies":["Reading","Watching movies","Play tennis"]}'; set @jobj = '{"hobbies":["drawing"], "grade":5}'; set @jarr = '["flower arrangement","swimming"]'; set @int1 = 1; set @int2 = 2; set @str1 = '1'; set @str_a = 'a'; set...
true
75d94017f73f0f404dc8147af8e51b9bf8229235
SQL
kfrancoeur/Markup-Project
/schema/MarkupDB.sql
UTF-8
304
2.828125
3
[]
no_license
CREATE DATABASE MarkupProject; USE MarkupProject; CREATE TABLE IF NOT EXISTS Scores ( `RunID` INT NOT NULL AUTO_INCREMENT, `PrefixID` VARCHAR(20) NOT NULL, `DateRun` DATE NOT NULL, `TimeRun` TIME NOT NULL, `FileDate` DATE NOT NULL, `Score` INT NOT NULL DEFAULT 0, PRIMARY KEY (`RunID`) );
true
b383328150b50245b736984278492ace6d6748a3
SQL
zuokai666/WorkFlow
/workflow/src/main/resources/sql/workflow3_ddl.sql
UTF-8
3,339
3.3125
3
[]
no_license
drop table if EXISTS WorkFlowModel; create table WorkFlowModel( flowNo varchar(255) not null, phaseNo varchar(255) not null, version varchar(255) default null, phaseType varchar(255) default null, phaseName varchar(255) default null, phaseDescribe varchar(255) default null, phaseAttribute varchar(255) de...
true
81b00e357e73905045f53f027b924c40c0b8d012
SQL
JuanesMedCol/Movies-DataBase
/Movies-DB.sql
UTF-8
5,934
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 16-04-2021 a las 21:27:43 -- Versión del servidor: 10.4.18-MariaDB -- Versión de PHP: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
94ee6c293f0ece60cb5ca4553679f65e03bb4ac5
SQL
betacompany/pipeinpipe
/main/auxiliaries/sql/update-001.sql
UTF-8
2,208
3.375
3
[]
no_license
CREATE DATABASE `ortemij` DEFAULT CHARACTER SET cp1251 COLLATE cp1251_general_ci; GRANT ALL PRIVILEGES ON * . * TO 'abracadabra'@'%' IDENTIFIED BY 'zcjcexkty' WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 ; CREATE TABLE `p_men` ( `id` INT NOT NULL AUTO_INCREMENT ...
true
70d37ddc801b21c1e50622239bdcd40e31d49392
SQL
j7ng/CLFY_SA
/SA/Tables/BIZ_ERROR_TABLE.sql
UTF-8
668
2.765625
3
[]
no_license
CREATE TABLE sa.biz_error_table ( error_text VARCHAR2(400 BYTE), error_date DATE, error_num VARCHAR2(400 BYTE), error_key VARCHAR2(100 BYTE), program_name VARCHAR2(100 BYTE) ); COMMENT ON TABLE sa.biz_error_table IS 'Table Will Log The Errors Occured During The Fulfillment'; COMMENT ON COLUMN sa.biz_e...
true
820258be2d5109f493c98a306d2e1be79663d19f
SQL
FrancescoCt/hw2
/Db.sql
UTF-8
52,186
3.546875
4
[]
no_license
-- PROGETTO DATABASE GESTIONE CATENA MAGAZZINI FRANCESCO CATANIA O46002194 ING. INFORMATICA -- ______________________________________________ CREATE TABLES ______________________________________________ --Disclaimer: tutte le tabelle sono già descritte ampiamente nella presentazione /*Dopo aver eseguito i ...
true
0c1c6adc3257ad5f7e8096286e9c5f967bb372c5
SQL
j0schey/businessIntelligenceGroup20
/01_HandIn/task1/oltp/TB_ProductCategory.sql
UTF-8
346
3.28125
3
[]
no_license
CREATE TABLE TB_ProductCategory( ProductCategoryID int NOT NULL, ParentProductCategoryID int, Name varchar(255) NOT NULL, CONSTRAINT PK_ProductCategory PRIMARY KEY (ProductCategoryID), CONSTRAINT FK_ParentProductCategory_ProductCategory FOREIGN KEY (ParentProductCategoryID) REFERENCES TB_ProductCat...
true
680c2218a7ee74fec67d69400168afcacad15d75
SQL
antono124/egradebook_hibernate
/database/queries.sql
UTF-8
1,215
3.9375
4
[]
no_license
CREATE TABLE student ( student_id BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT , username VARCHAR(400) NOT NULL, password VARCHAR(400) NOT NULL, creation_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ); CREATE TABLE student_info ( student_id BIGINT NOT NULL PRIMARY KEY, first_name VARCHAR(400), last_n...
true
da5ac3ca47734e12c7bd9fce09cecd22fb2429a5
SQL
E41181181/pariwisataci
/agentour.sql
UTF-8
2,682
3.015625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 20, 2020 at 08:37 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
cd658a99a50904f765740b215cfcc5b1f96de86e
SQL
Konstyantin/audi
/dumpDb/audi_dealer.sql
UTF-8
2,712
3.046875
3
[ "BSD-3-Clause" ]
permissive
-- MySQL dump 10.13 Distrib 5.7.16, for Linux (x86_64) -- -- Host: localhost Database: audi -- ------------------------------------------------------ -- Server version 5.7.16-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_R...
true
5b3b88598b3b4eeb15d64b26f40935c8751be7ba
SQL
Intraholics/Ticket_Monster
/ticketmonster_schema.sql
UTF-8
4,470
3.4375
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.2.15-MariaDB - mariadb.org binary distribution -- Server OS: Win64 -- HeidiSQL Version: 9.4.0.5125 -- -------------------------------------------...
true
a53d5124eaabe4765514ba86dc6538a8c8d2845b
SQL
yyj8023/archivesManagementSystem
/src/main/resources/dataBase/档案管理系统数据表v1.5.sql
UTF-8
43,613
3.421875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 档案管理系统 Source Server Version : 50515 Source Host : localhost:3306 Source Database : archivesmanagementsystem Target Server Type : MYSQL Target Server Version : 50515 File Encoding : 65001 Date: 2021-02-28 10:39:43 */ SET FOREIGN_KEY_C...
true
c1fd82c32b9bdae659f32c995577f4882b04c50a
SQL
jong481/hitmen-hockey
/sql.sql
UTF-8
611
4.0625
4
[]
no_license
select * from wnba_game_stats_four_factors select * from wnba_game_schedule SELECT count(gid) FROM wnba_game_schedule where cast(gdte as date) < now() - interval '1 day' select max(cast(a.gdte as date)) from ( select distinct s.game_id, f.gdte from wnba_game_stats_four_factors s left join wnba_game_schedule f...
true
fd3a607efbff843f8ea1ecac48991471c4b0bcad
SQL
chenjian-520/sparkDemo
/data-engine/src/main/resource/metafile/sqls/sprint3/sql_dws/sprint_three_dpm_dws_dsn_day_output_calculate.sql
UTF-8
15,558
2.765625
3
[]
no_license
SELECT nvl(concat( '20', ':', concat(to_unix_timestamp(concat(L5_6_10.WorkDate, ' 00:00:00'), 'yyyy-MM-dd HH:mm:ss'), '000'), ':', L5_6_10.Site_Code, ':', L5_6_10.Level_Code, ':', uuid() ), 'N/A') Rowkey, L5_6_10.Site_Code ...
true
27154f4d97cd676a94c7b92e567d3d80f6115b53
SQL
jkmccray/chinook-jkmccray
/line_item_track.sql
UTF-8
256
3.375
3
[]
no_license
--line_item_track.sql: Provide a query that includes the purchased track name with each invoice line item. SELECT t.Name AS [Purchased Track Name], il.InvoiceLineId AS [Invoice Line Item] FROM Track t INNER JOIN InvoiceLine il on t.TrackId = il.TrackId
true
497d003313f84d8f58cc4c253a9599c54972da4a
SQL
pkornijasz/jdbc
/src/main/resources/data.sql
UTF-8
335
2.75
3
[]
no_license
DROP TABLE vehicles; CREATE TABLE vehicles(id int auto_increment, mark varchar(255), model varchar(255), color varchar(255), year int, PRIMARY KEY (id)); INSERT INTO vehicles(mark, model, color, year) VALUES ('Citroen', 'C4', 'Brązowy', 2012); INSERT INTO vehicles(mark, model, color, year) VALUES ('Volvo', 'XC70', 'Zie...
true
7baad78bd8f83b0a36992fff3bf19567063db215
SQL
geniv/nette-translator
/sql/prefix_translation.sql
UTF-8
2,117
3.25
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.6deb4 -- https://www.phpmyadmin.net/ -- -- Počítač: localhost:3306 -- Vytvořeno: Sob 27. led 2018, 20:28 -- Verze serveru: 10.1.26-MariaDB-0+deb9u1 -- Verze PHP: 7.0.27-0+deb9u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLI...
true
b85749f26348564f1f0ff5ece689cde74fa62dbc
SQL
alphagov/verify-event-system-database-scripts
/migrations/V000011__generate_event_id_for_NULL_values.sql
UTF-8
425
3.046875
3
[]
no_license
-- For any rows that don't have a matching audit event, generate a random event_id -- The below UUID formula is used instead of having to install the uuid-ossp extension module UPDATE billing.billing_events SET event_id = uuid_in(overlay(overlay(md5(random()::text || ':' || clock_timestamp()::text) placing '4' from ...
true
fca0730c30fe9e2040dd6afcfce7b980926953c0
SQL
ua-eas/kc-3.1.1-5.2.1-dbupgrade
/current_mysql/5.0.1/constraints/KC_FK_UNIT_FORMULATED_COST.sql
UTF-8
333
3.171875
3
[]
no_license
DELIMITER / ALTER TABLE UNIT_FORMULATED_COST ADD CONSTRAINT FK_UNIT_FORMULATED_COST FOREIGN KEY (FORMULATED_TYPE_CODE) REFERENCES FORMULATED_TYPE (FORMULATED_TYPE_CODE) / ALTER TABLE UNIT_FORMULATED_COST ADD CONSTRAINT FK_UNIT_FORMULATED_COST_1 FOREIGN KEY (UNIT_NUMBER) REFERENCES UNIT (UNIT_NUMBER) / ...
true
f6db35c38ebb5bbaa21e3b2dc9b2ca9207139512
SQL
magnus80/Autotests
/src/main/resources/SQL/delete_for_273717_2_2.sql
WINDOWS-1251
466
2.765625
3
[]
no_license
declare ctn varchar2(100); deleteUsersessionsStmt varchar2(5000); deleteAccumulatorStmt varchar2(5000); begin ctn:='9030371111'; -- deleteUsersessionsStmt:='DELETE USERSESSIONS where CHRMSISDN='||ctn; deleteAccumulatorStmt:='DELETE ACCUMULATOR where CHRMSISDN='||ctn; execute immediate deleteUsersessionsStmt; ex...
true
e100058b584ee81cec0e9156c25e56112df53bf2
SQL
alibaba/canal
/parse/src/main/resources/ddl/derby/meta_history.sql
UTF-8
947
3.28125
3
[ "Apache-2.0" ]
permissive
CREATE TABLE meta_history ( id bigint GENERATED ALWAYS AS IDENTITY NOT NULL, gmt_create timestamp NOT NULL, gmt_modified timestamp NOT NULL, destination varchar(128) DEFAULT NULL, binlog_file varchar(64) DEFAULT NULL, binlog_offest bigint DEFAULT NULL, binlog_master_id varchar(64) DEFAULT NULL, binlog_t...
true
06365b6229dff4837e67c04c56d7b2e9b8806bc1
SQL
Oscajunq/HandsON
/HandsON_Oracle/DBA/VER_SESSION.SQL
ISO-8859-1
10,558
2.96875
3
[]
no_license
-- -- ver detalhamento da sessao utilizada pelo usuario -- -- scripts criado em 10/01/2008 -- DBA: Osmar -- -- eliminar forcadamente uma sesso inativa -- ALTER SYSTEM DISCONNECT 'sid, serial' IMMEDIATE -- -- SELECT username,SID, s.serial#, status FROM v$session s WHERE --SID = '244' -- AND ( (s.us...
true
97e9424ba6e378f1b6da99d5e6bf264a802de73e
SQL
VKMUSTH/Musth.sql
/equipement.sql
UTF-8
1,664
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Client: localhost -- Généré le: Dim 12 Mai 2019 à 19:00 -- Version du serveur: 5.5.54-0ubuntu0.14.04.1 -- Version de PHP: 5.5.9-1ubuntu4.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET...
true
d890fa4ed39673cbcd1f6faccbd8a2fbdf8e8d72
SQL
simonscerri/keyAppTest
/keyAppSensor.sql
UTF-8
2,217
2.703125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : local_machine Source Server Version : 50612 Source Host : 127.0.0.1:3306 Source Database : m2m Target Server Type : MYSQL Target Server Version : 50612 File Encoding : 65001 Date: 2015-02-27 10:50:41 */ SET FOREIGN_KEY_...
true
384c44183520ac17a54ab87b22c34017244a1f7e
SQL
Prema44/Address_Book_Service_DB
/AddressBook.sql
UTF-8
3,697
4.125
4
[]
no_license
#UC1 CREATE DATABASE AddressBookService; SHOW DATABASES; USE addressbookservice; #UC2 CREATE TABLE AddressBook -> ( -> firstName varchar(100) NOT NULL, -> lastName varchar(100) NOT NULL, -> address varchar(250) NOT NULL, -> city varchar(50) NOT NULL, -> state varchar(50) NOT NULL, -> zip n...
true
bae277abcdea9a39f1b415b4f7305e2bf2819e09
SQL
kyle-d-pearce/ISTA420
/Week-5-SetOperators/Labs/Lab 5D/LAB 5D TSQL.sql
UTF-8
2,284
4.4375
4
[]
no_license
-- 1. Explain the difference between the UNION ALL and UNION operators. In what cases are the two -- equivalent? When they are equivalent, which one should you use? -- 2. Write a query that generates a virtual auxiliary table of 10 numbers in the range 1 through 10 without -- using a looping construct. You do not need...
true
e4a99dc2c1c43701cf470d3f852b32c46539312f
SQL
LoganCrockett/URL-Shortener
/shortURL.sql
UTF-8
328
3.21875
3
[]
no_license
drop schema if exists shortURL; create schema shortURL; use shortURL; create table shorturl.URL ( url_id int auto_increment not null, longURL varchar(512) null, shortURL varchar(18) null, numRedirects int not null, constraint url_pk primary key (url_id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_gen...
true
9e97f9c5c49c46cb1abd8889113056e47275ae76
SQL
mikaelma/NidarvollVR
/bLCAd/Scripts/C. Queries/Multiple building queries/stats_materialsBuilding.sql
UTF-8
1,214
3.984375
4
[]
no_license
-- shows some statistics about data used in the calculations and groups by building -- can be changed to view stats by building element by just changing the grouping to group by be.idlevels (and displaying the levels as well) -- or group by both of the above -- NB: only buildings that have material inventories will sho...
true
f57279c0cc88309d118c408a5463588796064d71
SQL
spergen14/myprojects-1
/garage/garage.sql
UTF-8
1,965
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 15, 2016 at 11:34 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
89eda5d032c232c44b876166d1aa14cc98733182
SQL
sqlfluff/sqlfluff
/test/fixtures/dialects/bigquery/parameters.sql
UTF-8
576
3.609375
4
[ "MIT" ]
permissive
--bigquery allows for named params like @param or ordered params in ? select "1" from x where y = @z_test1; select datetime_trunc(@z2, week); select datetime_trunc(@_ab, week); select datetime_trunc(@a, week); select parse_date("%Y%m", year); -- this should parse year as an identifier select "1" from x where y = ?; sel...
true
fe23a09d802bbcabb6984c8a1076e50bbc4d5f1a
SQL
DiazLighuen/Grupo10Taller
/taller.sql
UTF-8
266,840
3.375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 06-12-2017 a las 17:39:29 -- Versión del servidor: 10.1.26-MariaDB -- Versión de PHP: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
bef565b8572ef0ad7f2027dc5b75733d6e15a87d
SQL
KonradSwierczynski/Storm
/database/procedures.sql
UTF-8
11,789
3.890625
4
[]
no_license
USE storm_database; DROP PROCEDURE IF EXISTS StatisticsOfFootballer; # StatisticsOfFootballer(in selectedName varchar(225), in selectedSurname varchar(225)) DROP PROCEDURE IF EXISTS StatisticsOfClub; # StatisticsOfClub(in selectedName varchar(225)) DROP PROCEDURE IF EXISTS StatisticsOfReferee; # StatisticsOfRefe...
true
002963182340fdd6e0efcb2b8c268839b9cf152a
SQL
bitcoinerie/bitcoinerie
/requetes.sql
UTF-8
5,809
4.25
4
[]
no_license
.mode columns .header on .width 35 -- 1 -- Liste des auteurs présents dans la base. SELECT DISTINCT auteurLivre FROM Livre; -- 2 -- Liste des Livres de Victor Hugo SELECT titreLivre FROM Livre WHERE auteurLivre = 'Victor Hugo'; -- 3 -- Liste des Livres de Victor Hugo appartenant à la catégorie 5 (Théâtre). SEL...
true
92dfd689da686a42ce698d802f6256f88cf2c7f5
SQL
namelessan/Farcry_Data_Science
/sql_queries/WP49.sql
UTF-8
150
2.9375
3
[]
no_license
SELECT match_id, killer_name, COUNT(DISTINCT (weapon_code)) AS weapon_count FROM match_frag GROUP BY match_id, killer_name ORDER BY weapon_count DESC;
true
0ccd31b43ae8b677e78f975d05a0d88628010a49
SQL
monico12/ASL_GroupProject
/aslGroupProject_2012-01-16.sql
UTF-8
6,089
3.234375
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 3408 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: 127.0.0.1 (MySQL 5.5.9) # Database: aslGroupProject # Generation Time: 2012-01-16 18:17:12 +0000 # ******************************************...
true
82d8d060c83445bb5429579336e98de953c8ac2b
SQL
Booshnarama24/task
/jQuery-File-Upload/task.sql
UTF-8
1,833
2.84375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 15, 2019 at 12:14 PM -- Server version: 5.7.9 -- PHP Version: 7.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*...
true
4a499a0b20c355be8af26f03f7abc1648b450bd9
SQL
eldar101/EldarRep
/PostgreSQL/Basic DB/qd2.sql
UTF-8
146
2.984375
3
[]
no_license
select distinct c.country from disaster as d, city as c where (d.cname = c.cname) and (d.casualties < 50) and (d.dyear between 1980 and 1990)
true
799a0fe0d15b8884eba50cc1884f8b22be287fdc
SQL
douit/cqes_dev
/重庆二师_Dev/dw_mpp/table/fdm/edu_hb_rxfs.sql
UTF-8
1,965
2.875
3
[]
no_license
/* # DESCRIPTION: # # OPTIONS: --- # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: li.zhanlei@h3c.com # COMPANY: h3c.bigdata # VERSION: 1.0 # CREATED: 2017/06/30 # REVIEWER: # REVISION: --- */ set names utf8; use fdm; DROP TABLE IF EXISTS edu_hb_rxfs; CREATE TA...
true
15aca38273c885ad42431d87e31fdb3dfea41c04
SQL
MLSaj/MySQLDive
/consecutiveNumbers.sql
UTF-8
272
3.546875
4
[]
no_license
#https://leetcode.com/problems/consecutive-numbers/submissions/ # Write your MySQL query statement below Select DISTINCT l1.num AS ConsecutiveNums FROM Logs l1, Logs l2, Logs l3 WHERE l1.id = l2.id - 1 AND l2.id = l3.id - 1 AND l1.num = l2.num AND l2.num = l3.num
true
8e49deecf71ed7aa0218b7f9c840f12b577950d6
SQL
ChrisSpaulding/DataBase
/HW3Create.sql
UTF-8
2,117
3.53125
4
[]
no_license
CREATE TABLE StateTable ( State_Abrv varchar(2), FIPS int, State_Name varchar(50), PRIMARY KEY (State_Abrv) ); --fk = state_abrv CREATE TABLE City ( City_Name varchar(255), City_Abrv varchar(5) , City_Market_ID int, WAC int, State_Abrv varchar(2), Primary key(City_Abrv) ); -- fk ==abriv...
true
832b0097c5643d1fbc80c2114f5e7cc528e58562
SQL
Konstyantin/audi
/dumpDb/audi_models.sql
UTF-8
1,997
2.78125
3
[ "BSD-3-Clause" ]
permissive
-- MySQL dump 10.13 Distrib 5.7.16, for Linux (x86_64) -- -- Host: localhost Database: audi -- ------------------------------------------------------ -- Server version 5.7.16-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_R...
true
a194f6f1574cb2272232cc89f0fd0fce9147473c
SQL
gustavopergola/comabem
/inserts.sql
UTF-8
25,647
2.796875
3
[]
no_license
-- Disciplinas INSERT INTO Disciplina (disc_nome) VALUES ('Educação Alimentar');--1 INSERT INTO Disciplina (disc_nome) VALUES ('Português');--2 INSERT INTO Disciplina (disc_nome) VALUES ('Matemática');--3 INSERT INTO Disciplina (disc_nome) VALUES ('Robótica');--4 -- Responsaveis INSERT INTO Responsavel (resp_nome) VA...
true
5b8707004d16e1d524beda1d93054e826bb824b7
SQL
goodsoul1914/DBA
/Scripts/Algemeen/Examples/DateTime/DateTime.sql
UTF-8
129
2.90625
3
[]
no_license
-- Determine last day of month select EOMONTH(DATEFROMPARTS(YEAR(GETDATE()), MONTH(GETDATE()), 1)) as LastDayOfCurrentMonthDate;
true
423f9e7458ba83630f4d9aa06b94dfc8caae73b0
SQL
sebrown0/TestBenchDB
/SQL/Functions/get_element_id.sql
UTF-8
347
3.0625
3
[]
no_license
CREATE DEFINER=`root`@`localhost` FUNCTION `get_element_id`( entityRowId INT UNSIGNED, entityId INT UNSIGNED) RETURNS int(11) DETERMINISTIC BEGIN DECLARE elmntId INT UNSIGNED; SELECT id INTO elmntId FROM test_bench.element WHERE entity_row_id = entityRowId AND entity_id = entityId...
true
335ec6f3cd37fed1050ae1168ba15cf743f66737
SQL
willCepeda/museumGo
/BD/Versiones antiguas BD/museo08.04.2019.sql
UTF-8
31,318
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 08-04-2019 a las 11:48:54 -- Versión del servidor: 10.1.37-MariaDB -- Versión de PHP: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
ca0d738f66ec1b1396dbd79ddb352e9b53210595
SQL
gwrippee/SQL-SSRS
/Queries for People/RF Activity/old/Thomas_plt_tag.sql
UTF-8
5,249
3.890625
4
[]
no_license
--------------------------------------------------------------------------------------- -- James Tuttle 12/12/11 -- -- Gather the DISTINCT COUNT() on the pallet tag #'s by USER -- at location 50 (Kent) -- -- NOTE:: Details of item detail by USER Commented out at the bottom -- TODO:: Comment out the USERID --=========...
true
95dd2ac30a5e4b052745d012ade3931916165e9f
SQL
vblanes/tfg-codigo
/magicbd.sql
UTF-8
2,700
3.46875
3
[]
no_license
DROP TABLE IF EXISTS Carta_Pool; DROP TABLE IF EXISTS Carta_Elegido; DROP TABLE IF EXISTS Pool; DROP TABLE IF EXISTS Elegido; DROP TABLE IF EXISTS Registro; DROP TABLE IF EXISTS Usuario; DROP TABLE IF EXISTS Sinergias; DROP TABLE IF EXISTS Carta; DROP TABLE IF EXISTS Coleccion; ALTER DATABASE magicbd CHARACTER SET utf...
true
38dd66d2aac6d3fb3da6ddee36158b4abff9089f
SQL
brocktubre/SDCEventTracker
/Database Files/InitialQuery.sql
UTF-8
1,252
3.59375
4
[]
no_license
CREATE TABLE Event( ID INT PRIMARY KEY NOT NULL IDENTITY(1,1), EventName varchar(128), Date DATETIME, Location varchar(128), City varchar(128), State varchar(128), Zip int, MorningHunt bit DEFAULT(0), EveningHunt bit DEFAULT(0), BenchShow bit DEFAULT(0), BarkingContest bit DEFAULT(0), Details V...
true
aa7d9569e8913e36de8f086fc3da33c44b5f180f
SQL
CUBRID/cubrid-testcases
/sql/_33_elderberry/cbrd_23844/cbrd_24033/cases/view.sql
UTF-8
542
3.3125
3
[ "BSD-3-Clause" ]
permissive
/* create view - check if the identifier name includes a dot(.). */ create user u1; call login ('u1') on class db_user; create table u1.t1 (c1 int, c2 varchar, c3 datetime); create view u1.v1 as select c1, c2, c3 from t1; create view u1.v1.v1 as select c1, c2, c3 from t1; create view [v2.v2] as select c1, c2, c3 from...
true
ef9ebf8196eac0a8f4fd6d0d95eaf0c3ad9df241
SQL
AdamWhiteside/database-Hw
/hw4_whitesidea16.sql
UTF-8
5,462
3.484375
3
[]
no_license
drop table CurrentLoan; drop table History; drop table Book; drop table Member; drop view member_book; create table Book( bookID int not null, ISBN int not null, title varchar(255), author varchar(255), publish_year int not null, category varchar(255), primary key (bookID) ); create table Member( mem...
true
62f30790e4664ee0f8fb80d6bfd1dfa3a257907e
SQL
ksjtop03/voicek
/PPAS/생성,추가,삭제/PK_재생성_예상작업시간.sql
UTF-8
747
2.78125
3
[]
no_license
/* ---------------------------------------------------------------------------------------------------- pk 재생성 시 rows 건 수 대비 예상 작업시간 산정 ---------------------------------------------------------------------------------------------------- */ ■ 100 ~ 500만 건 당 : 약 10분 ■ 1000 ~ 5000만 건 당 : 약...
true
dfbd6d0682f23e5ac601ddfc92917085be887529
SQL
wangyiren2017/student-api-demo
/stu-api.sql
GB18030
583
2.703125
3
[]
no_license
CREATE TABLE `stu_information` ( `stu_id` varchar(100) NOT NULL COMMENT 'ѧid', `stu_name` varchar(10) NOT NULL COMMENT 'ѧ', `stu_sex` int(11) NOT NULL COMMENT 'ѧԱ0ʾУ1ʾŮ', `stu_age` int(11) NOT NULL COMMENT 'ѧ', `stu_magor` varchar(100) NOT NULL COMMENT 'רҵ', `stu_grade` int(11) NOT NULL COMMENT '꼶', `stu_...
true
449b8ad1efd1cdf031aa649574b2f81ed7b4e4f7
SQL
laurathay/sitesphp
/projet/SQL/formation_projet.sql
UTF-8
4,102
3.59375
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Jun 22, 2020 at 08:03 AM -- Server version: 5.7.26 -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `formation_projet` -- -- -------------------...
true
3e2df9e00fdd1bda0706fa3952951ea9adf7bc32
SQL
RoziMF/skm2
/dbskm.sql
UTF-8
3,212
2.78125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 19 Feb 2020 pada 03.36 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
f74a53fc85d7963153f0840d2557bf75e3eb29f5
SQL
Vince250598/TP2_BD
/SQL_DEPART/scripts/procedures/prolongationForfait.sql
UTF-8
1,116
3.484375
3
[]
no_license
SET SERVEROUTPUT ON; CREATE OR REPLACE PROCEDURE prolongationForfait( CodeForfaitRecherche IN FORFAIT.CODE%TYPE, PlayerCount OUT NUMBER ) IS rec_PERIODE_FORFAIT_JOUEUR PERIODE_FORFAIT_JOUEUR%ROWTYPE; Today DATE; CURSOR cur_PERIODE_FORFAIT_JOUEUR IS SELECT * FROM PERIODE_FORFAIT_JOUEUR W...
true
fe1d1fa2ef115ca500c610e21dcc30ada622a18e
SQL
usmakestwo/Bankly-docker
/db/mysql/create_mysql.sql
UTF-8
1,064
3.34375
3
[]
no_license
DROP DATABASE IF EXISTS chores; CREATE DATABASE chores; USE chores; DROP TABLE IF EXISTS chore; CREATE TABLE chore ( id VARCHAR(32) NOT NULL, customer_id VARCHAR(32) NOT NULL, name VARCHAR(128) NOT NULL, recurrent VARCHAR(128), completed BIT DEFAULT 0 NOT NULL, amount VARCHAR(32), PRIMARY KEY (id) ); I...
true
efbdb17b281d3670c992bed7f41eb7d1d3efb9ba
SQL
paul-rogers/drill-test-framework
/framework/resources/Functional/joins/left_outer/4way_on_c_integer.sql
UTF-8
449
3.71875
4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
select DISTINCT COALESCE(j1.c_varchar || j2.c_varchar || j3.c_varchar || j4.c_varchar, 'EMPTY') as concatentated_string from j1 LEFT OUTER JOIN j2 ON (j1.c_integer = j2.c_integer) LEFT OUTER JOIN j3 ON (j1.c_integer = j3.c_integer) LEFT OUTER JOIN j4 ON (j1.c_integer = j4.c_integer) where j1...
true
08ac783a164c326d9891446d3f25e17efd870cdd
SQL
Pokham/grand_grocery
/products.sql
UTF-8
1,943
2.640625
3
[]
no_license
CREATE TABLE products ( Prod_ID varchar(100) DEFAULT NULL, Prod_Name varchar(100) DEFAULT NULL, Dept_ID varchar(100) DEFAULT NULL, Quantity varchar(100) DEFAULT NULL, Price varchar(100) DEFAULT NULL, Supp_ID varchar(100) DEFAULT NULL ); INSERT INTO products(Prod_ID, Prod_Name, Dept_ID, Quantity, Price, Sup...
true
b198fd9688ea8c90b7de9d2ab6ce800cd8dc5794
SQL
toroseda/oracle_init
/DataModel/Oracle/Upgrades/MDUpgradeBL1206_to1231.sql
UTF-8
1,919
3
3
[]
no_license
prompt prompt prompt 'Marketing Director Schema Upgrade' prompt '==================================' prompt prompt spool MDUpgradeBL1206to1231.log set SERVEROUT ON SIZE 20000 DECLARE var_count NUMBER(4):= 0; cid INTEGER; err_num NUMBER; err_msg VARCHAR2(100); PROCEDURE execute_sql (sql_string IN VARCHAR2) IS ...
true
2ba461ef5c39ee9db391c0bf2c65106a124a0394
SQL
kevinmiles/instrumentation
/db/sp/sp_vend_cancel.sql
UTF-8
1,111
3.71875
4
[]
no_license
drop procedure if exists sp_vend_cancel; /* Cancel button pushed - so set the vend to canceled. Note that if a VNOK (vend ok) message as been set (req_datetime is set in vend_log), then it's too late to cancel, as the vending machine should be in the process of vending. */ DELIMITER // CREATE PROCEDURE sp_vend_...
true
f02340136255ef58b80d09f00f305d2a7bea1be0
SQL
SteelBIM/fxtcode
/FxtCenterService/tags/rel_gjb1.9/FxtCenterService.DataAccess/SQL/Project/FloorOrUnitDropDownList.sql
UTF-8
722
3.71875
4
[]
no_license
select h.@filed,count(h.houseid) as houseTotal from (select buildingid,houseid,@filed from @table_house with(nolock) where valid=1 and (','+cast((select showcompanyid from dbo.Privi_Company_ShowData pc with(nolock) where pc.Fxtcompanyid=@fxtcompanyid and pc.Cityid = @cityid) as varchar)+',' like '%,' + cast(fxtcom...
true
61bad7ec593461fc876f369f3ca383b9b7cc5955
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/02287_type_object_convert.sql
UTF-8
1,702
2.875
3
[ "Apache-2.0", "BSL-1.0" ]
permissive
-- Tags: no-fasttest SET allow_experimental_object_type = 1; DROP TABLE IF EXISTS t_object_convert; CREATE TABLE t_object_convert(id UInt64, data Object(Nullable('JSON'))) Engine=Memory; INSERT INTO t_object_convert SELECT 1, CAST(CAST('{"x" : 1}', 'Object(\'json\')'), 'Object(Nullable(\'json\'))'); SELECT id, data...
true
caaddc615c6086b11cadaaa609e68ccbde3a7c2a
SQL
dwatson78/database
/updatescripts/from_330beta2/alterCcard.sql
UTF-8
132
2.859375
3
[]
no_license
ALTER TABLE ccard ALTER ccard_cust_id SET NOT NULL, ADD FOREIGN KEY (ccard_cust_id) REFERENCES custinfo(cust_id);
true
1500427ef345829ddf2cd6485728ac0f3840c6e6
SQL
najibu/what_users_do_test
/mean.sql
UTF-8
411
4.34375
4
[ "MIT" ]
permissive
SELECT user_scores.year, GROUP_CONCAT(DISTINCT firstname, ' ', lastname, ' => ', mean ORDER BY mean DESC) FROM user_scores LEFT JOIN ( SELECT DISTINCT firstname, lastname, year, (SUM(score) / COUNT(score)) as mean FROM user_scores LEFT JOIN users ON users.id = user_scores.user_id GROUP BY user_id, year ) AS mea...
true
a0a5a189494f04fbfe6111f7798520f8889d3e43
SQL
pruthanagrikar/mytap
/mytap-view.sql
UTF-8
10,410
3.9375
4
[ "BSD-3-Clause" ]
permissive
-- VIEWS -- ===== USE tap; DELIMITER // /****************************************************************************/ DROP FUNCTION IF EXISTS _has_view // CREATE FUNCTION _has_view (sname VARCHAR(64), vname VARCHAR(64)) RETURNS BOOLEAN DETERMINISTIC BEGIN DECLARE ret BOOLEAN; SELECT 1 INTO ret FROM `informat...
true
3e1933bdf931370bf6b918712989e8272eba341c
SQL
jdell/jdelldev
/net/Ambis1/ambis1.model/_sql/upgrade_4.sql
UTF-8
382
2.75
3
[]
no_license
-- Descripcion = Add table Reservation /* Para deshacer los cambios DROP TABLE `reservation` */ CREATE TABLE `reservation` ( `id_reservation` INT NOT NULL AUTO_INCREMENT, `dateAndTime_reservation` DATETIME NOT NULL , `duration_reservation` DATETIME NOT NULL , `id_member` INT NOT NULL , `id_cage` INT N...
true
cfe012da74f98a29d76d31c4d53b8a13a4e7d7b3
SQL
zsadeghi/starbox
/starbox-web/src/main/resources/sql/schema.sql
UTF-8
2,467
3.671875
4
[]
no_license
CREATE TABLE ingredient ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255) NOT NULL ); CREATE TABLE location ( id INT AUTO_INCREMENT PRIMARY KEY, address VARCHAR(255) NOT NULL, name VARCHAR(255) NOT NULL, phone VARCHAR(255) NOT NULL ); CREATE TABLE location_offering ( offering_pr...
true
7c6eda6347bbddca0794f5e4009b5340877d40ff
SQL
Mandar143/invincible_react
/assets/SQL/userLoyaltyCalculation.sql
UTF-8
11,467
3.453125
3
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS userLoyaltyCalculation$$ CREATE PROCEDURE userLoyaltyCalculation(IN lastId INT, IN inMobileNumber VARCHAR(20),OUT finalOutPut JSON) userLoyaltyCalculation:BEGIN -- VARIAABLE DECLARATION START DECLARE orderNotFound, orderId, subMerchantId, customerId, locationId,...
true
f381409610584d386305b9d704095538db1ef65a
SQL
grazios/Rexy
/initialize/ddl/user.sql
UTF-8
561
3.09375
3
[]
no_license
DROP TABLE IF EXISTS `users`; CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL, `provider` varchar(64) NOT NULL, `oauth_id` varchar(128) NOT NULL, `name` varchar(128) NOT NULL, `mail` varchar(128) NOT NULL, `photo` varchar(128) NOT NULL, `create_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, ...
true
5cf2ce09b18456be1361e9308805effd83e23cd3
SQL
acdh-oeaw/tokeneditor-model
/db_schema.sql
UTF-8
2,801
3.828125
4
[ "MIT" ]
permissive
CREATE TABLE roles ( role text not null primary key ); INSERT INTO roles VALUES ('owner'), ('editor'), ('viewer'), ('none'); CREATE TABLE users ( user_id text not null primary key, name text ); CREATE TABLE documents ( document_id int primary key, token_xpath text not null, -- token_value_xpath text not...
true
45f7b34144cbb657d26beea902f855469adb7ef5
SQL
wchen308/practice_db
/most_experienced_employee_in_each_project.sql
UTF-8
1,871
4.71875
5
[]
no_license
/* Write an SQL query that reports the most experienced employees in each project. In case of a tie, report all employees with the maximum number of experience years. The query result format is in the following example: Project table: +-------------+-------------+ | project_id | employee_id | +-------------+--------...
true
1164bc5bdde46a7b8d6b4b6db50772860e5ea7b8
SQL
gromniki/zernov-course-modx
/db/dbstructure/modx_lexicon_entries.sql
UTF-8
1,294
3.234375
3
[]
no_license
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; DROP TABLE IF EXISTS `modx_lexicon...
true
1edd66f5d85a3bad35b7b37c2beff06923d3f13c
SQL
LukaszZachariasz/OracleDataBaseProject
/sql/G/1SQL.sql
UTF-8
1,700
3.390625
3
[ "MIT" ]
permissive
-------------------------------------------------------------------------------- ------- 1 - ZAPYTANIE WYSWIETLA INFORMACJE O GOLACH MECZU O PODANYM ID --------- -------------------------------------------------------------------------------- SELECT ID_MECZU, DATA_MECZU, CZAS_MECZU, (SELECT KLUB.NAZWA FROM DRU...
true
c9939c91a9b691960a3442e0b58de09412180a8b
SQL
m-shayanshafi/DPERS-Extension
/Sqls/domaintopics20160215.sql
UTF-8
26,690
2.796875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 15, 2016 at 12:17 PM -- 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
90f2b813648cadec8dd9d11597d20c122268466a
SQL
EvgeniyDanisevich/job4j_dreamjob
/db/schema.sql
UTF-8
435
2.78125
3
[]
no_license
CREATE TABLE post ( id SERIAL PRIMARY KEY, name TEXT, description TEXT ); CREATE TABLE candidate ( id SERIAL PRIMARY KEY, name TEXT, photo TEXT ); CREATE TABLE users ( id SERIAL PRIMARY KEY, name TEXT, email TEXT not null unique, password TEXT ); CREATE TABLE city ( id SER...
true
60d2929f2c8f49803450f33ce6df9babdc992c21
SQL
Mywaying/sdc
/sdc/deal_info_trans/script/deal_info.sql
UTF-8
3,060
3.890625
4
[]
no_license
use ods; drop table if exists odstmp_bpms_biz_deal_info_common; CREATE TABLE if not exists ods.odstmp_bpms_biz_deal_info_common ( id STRING COMMENT 'ID', apply_no STRING COMMENT '订单编号', house_no STRING COMMENT '房产信息编号关联房产信息', deal_no STRING COMMENT '交易合同编号', trading_price DOUBLE COMMENT '成交价(元)', earnest_mo...
true
eac3c7537e2cd313708727ca1c2d668f6820e442
SQL
jessicacordeiro/Aula-Generation-II
/Exercicios de MySQL I/exercicio1.sql
UTF-8
1,456
3.453125
3
[]
no_license
-- create database db_rh; USE db_rh; Create table tb_funcionarios( id bigint(6) auto_increment, Nome varchar(20) not null, CPF bigint(11) not null, Cargo varchar(20) not null, Salario int not null, primary key (id) ); -- SELECT * from tb_funcionarios -- INSERT into tb_funcionarios(Nome, CPF, Ca...
true
904dad9021bc0278ea0712169fc60959d30f6d3d
SQL
miky82/PuntoVenta
/HacerBasesDeDatos/Script_Crear_Tablas.sql
UTF-8
4,544
3.390625
3
[]
no_license
CREATE TABLE Persona( Cedula char(14) not null, Tipo varchar(40), primary key (Cedula) ); CREATE TABLE Cliente ( Cedula char(14) not null, Descuento int DEFAULT 0, Exonerado boolean, primary key (Cedula), foreign key (Cedula) references Persona on delete cascade ); CREATE TABLE login ( username VARCHAR(25) NO...
true
e49b759809276bc3663c200f3c5ccc27d6a9d25d
SQL
phpMv/ubiquity-demos
/auth-acl-project/db/acl-guide.sql
UTF-8
1,698
3.25
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : mer. 20 avr. 2022 à 02:59 -- Version du serveur : 10.4.22-MariaDB -- Version de PHP : 8.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET...
true
631a38bf79676811f3cc18200f8b65a20427cb5b
SQL
Chrigferr/MP_MODSPACK
/Mods/JFD's The Republic of Carthage (v 4)/JFD_CarthageHannibal_UserSettings.sql
UTF-8
1,731
2.71875
3
[]
no_license
--========================================================================================================================== -- JFD USER SETTINGS --========================================================================================================================== -- JFD_GlobalUserSettings -----------------------...
true
4e20824d9dd392878194cec40f910e8f89457365
SQL
qq1269832742/SpringDemo
/weibo/src/test/resources/weibo.sql
UTF-8
20,580
2.515625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50620 Source Host : localhost:3306 Source Database : weibo Target Server Type : MYSQL Target Server Version : 50620 File Encoding : 65001 Date: 2016-10-24 15:51:05 */ SET FOREIGN_KEY_CH...
true
3e0d9a2bb9d14cff5c08f3e37be0cd251d738a40
SQL
NguyenHoangHiep28/PHP
/PracticeTest/booksTable.sql
UTF-8
2,693
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 22, 2021 at 02:04 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
ab08b1d6d05c9c424eef1c456072a9eca8ab4b4a
SQL
ascottcrawford/Database_Exercises
/where_exercises.sql
UTF-8
705
2.90625
3
[]
no_license
SELECT * FROM employees WHERE first_name = 'Irena' OR first_name = 'Vidya' OR first_name = 'Maya'; SELECT * FROM employees WHERE gender = 'm' AND first_name = 'Irena' OR gender = 'm' AND first_name = 'Vidya' OR gender = 'm' AND first_name = 'Maya'; SELECT * FROM employees WHERE last_name LIKE 'E%'; SELECT * FROM em...
true
6f088d369759beaae5e35ba6a86c9084af49cafd
SQL
matbaek/Ex26-DB-mapning
/Payroll.sql
UTF-8
1,176
3.484375
3
[]
no_license
USE C_DB10_2018; CREATE TABLE Employee ( EmployeeID INT PRIMARY KEY IDENTITY(1, 1), Name nVarChar(100) NOT NULL, Address nVarChar(100) NOT NULL, Zipcode INT NOT NULL, Department nVarChar(100) NOT NULL, TelephoneNo nVarChar(100) NOT NULL ) CREATE TABLE HourlyPaid ( EmployeeID INT PRIMARY KEY REFEREN...
true
db009bd20bf43958636dd6cc298ac89367b64e0c
SQL
astralm/astralbotBack
/src/mysql/trigers/entity_create.sql
UTF-8
266
2.84375
3
[]
no_license
BEGIN SET NEW.entity_date_create = NOW(), NEW.entity_date_update = NOW(), NEW.bot_id = (SELECT bot_id FROM entities WHERE entities_id = NEW.entities_id), NEW.organization_id = (SELECT organization_id FROM users WHERE user_id = NEW.user_id); END
true
b3f2ebad0a634129075506c844be6983a1b682aa
SQL
Adhithya-PGK331/RDBMS
/RDBMS/Joins & Subquery/Minimum Travel Time/subquery1bms.sql
UTF-8
139
2.859375
3
[]
no_license
select schedule_id, source, destination, duration from schedule where duration = (select min(duration) from schedule) order by schedule_id;
true
1ffae28760e04d1ba8d4496963cc1168974c580d
SQL
RobertTamas/pv168
/CarRental/src/main/resources/createTables.sql
UTF-8
679
3.078125
3
[]
no_license
CREATE TABLE "CAR" ( "ID" BIGINT NOT NULL PRIMARY KEY GENERATED ALWAYS AS IDENTITY, "LICENSE_PLATE" VARCHAR(255), "BRAND" VARCHAR(255), "MODEL" VARCHAR(255), "PRICE_PER_DAY" INTEGER ); CREATE TABLE "CUSTOMER" ( "ID" BIGINT NOT NULL PRIMARY KEY GENERATED ALWAYS AS IDENTITY, "FULL_NAME" VARCH...
true
fb46c90538feb24ded58f788685cd7c797381c03
SQL
dinukakulatunga/SellNBye_RestWebService
/customers.sql
UTF-8
2,254
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 21, 2019 at 01:31 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true