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
3a938e56a1c708876a172be1b9a1eb0e9621382e
SQL
Rocky-Zhenxiang-Fang/CSE-414
/HW2/hw2-q1.sql
UTF-8
284
3.71875
4
[]
no_license
SELECT DISTINCT F.flight_num FROM FLIGHTS AS F JOIN CARRIERS AS C ON F.carrier_id = C.cid AND C.name = 'Alaska Airlines Inc.' JOIN WEEKDAYS AS W ON F.day_of_week_id = W.did AND W.day_of_week = 'Monday' WHERE F.origin_city = 'Seattle WA' AND F.dest_city = 'Boston MA' ; -- 3 rows
true
f0fc970a9fb80b387cf5d665f31faef984d65816
SQL
jan2k12/SWRCodeFestSocialGaming
/DBSCHEMA/initDBSCHEMA.sql
UTF-8
4,438
3.4375
3
[]
no_license
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema socialgam...
true
e373cca28fcf782e43d5b71713dbd86f1acb01b8
SQL
sdnrzls/sdnrzls-SQL-First
/day-02/05_날짜형함수.sql
UHC
1,470
4.71875
5
[]
no_license
-- ¥ Լ SELECT first_name, hire_date --¥ FROM employees; -- sysdate ¥ ð SELECT SYSDATE -- ¥ ð FROM DUAL; -- ¥ + => ¥ SELECT SYSDATE ,SYSDATE +3, SYSDATE -3 FROM DUAL; -- ¥ -¥ = ϼ SELECT employee_id, SYSDATE, hire_date, SYSDATE - hire_date,ROUND(SYSDATE-hire_date) FROM employees; --ð SELECT SYSDATE + 5/24...
true
8fe431b04fbc455089146aec93ab928d2dfa5f00
SQL
aheadley/batoto-rss-splitter
/data/create-schema.sql
UTF-8
677
3.390625
3
[]
no_license
CREATE TABLE IF NOT EXISTS series ( id INTEGER PRIMARY KEY ASC AUTOINCREMENT, title TEXT UNIQUE ); CREATE TABLE IF NOT EXISTS languages ( id INTEGER PRIMARY KEY ASC AUTOINCREMENT, full_name TEXT UNIQUE, short_code TEXT UNIQUE ); CREATE TABLE IF NOT EXISTS updates ( id INTEGER PRIMARY KEY ASC A...
true
1d74b3253916b8b7513b6ab492fb08e25ed90956
SQL
rkdals213/SQL
/SQL/src/day05/hwdb05_서울_14반_강민형.sql
UTF-8
1,181
4.09375
4
[]
no_license
use ssafydb; select * from emp; commit; # 1. 부서위치가 CHICAGO인 모든 사원에 대해 이름,업무,급여 출력하는 SQL을 작성하세요. select ename, job, sal from emp join dept on emp.deptno=dept.deptno where loc='chicago'; # 2. 부하직원이 없는 사원의 사원번호,이름,업무,부서번호 출력하는 SQL을 작성하세요. select b.empno, b.ename, b.job, b.deptno from emp a right outer join emp b on (a.mg...
true
8f61d491b78007238e8f885892c66cf63e817d52
SQL
ahmadtechcampus2/ahmad4
/برنامج الامين المحاسبي/Bin/System/prcRePriceReadyMat.sql
UTF-8
1,610
3.640625
4
[]
no_license
######################################################### CREATE PROCEDURE prcRePriceReadyMat ( @MatGuid UNIQUEIDENTIFIER = 0x0, @RawGroupGuid UNIQUEIDENTIFIER = 0x0 , @CostCenter UNIQUEIDENTIFIER = 0x0, @PriceType INT = 0 ) AS SET NOCOUNT ON SELECT Fm.Guid AS FormGuid , Mn.Guid as MNFormGuid...
true
27abac965d2b17245d4a4d4d715e6f00b0bd51b1
SQL
VenelinBakalov/javaAdvanced
/Databases Basics/Databases-MySQL-Exam-24-Jun-2017/07_well_tested_problems.sql
UTF-8
117
3.03125
3
[]
no_license
SELECT p.id, p.name, p.tests FROM `problems` AS p WHERE p.tests > p.points AND p.name LIKE '% %' ORDER BY p.id DESC;
true
1cb3244df88b9541824a7812bbc761745e85f34b
SQL
andreifecioru/udemy
/postgres.dev.guide/projects/Scripts/lectures/section-002.sql
UTF-8
1,442
4.46875
4
[]
no_license
-- delete all rows (reset table) DELETE FROM cities; -- data insertion INSERT INTO cities (name, country, population, area) VALUES ('Tokyo', 'Japan', 38505000, 8223), ('Delhi', 'India', 28125000, 2240), ('Shanghai', 'China', 22125000, 4015), ('Sao Paulo', 'Brazil', 20935000, 3043); -- results filtering -...
true
b4f5ccbe09e19a08ca3adac8c653bfacb59a2c19
SQL
UgniusN/RailWayApp
/Railway/railway-api/src/main/resources/db/data.sql
UTF-8
1,081
2.578125
3
[]
no_license
INSERT INTO Users(user_id, username, password, name, last_name) VALUES(1, 'user', '{bcrypt}$2y$12$A7x.2lPxE6YdV8ed6OYbDucRiod32wqMF9JNerE.wq4glQWaIjRnO', 'John', 'Doe'); INSERT INTO Users(user_id, username, password, name, last_name) VALUES(2, 'admin', '{bcrypt}$2y$12$Idmjp6dBiFlYWheXcOGTfOfzpywTZ6sTeWN02jKvDSu...
true
cd05ee9e611d4e02688d2ace3ea0e8d28d582d74
SQL
KathiKellenberger/github-upload
/Module 2.sql
UTF-8
1,217
3.890625
4
[]
no_license
--Module 2 --Demo 1 --Use SELECT to return a string SELECT 'This is a test' AS Message; --Use SELECT to return a number or expression SELECT 1 + 1 AS ThisIsANumber; --Return all rows and columns from a table SELECT * FROM Person.Person; --Specify the columns SELECT BusinessEntityID, JobTitle FROM HumanResources.E...
true
9902af4e96017a73fa64a857df7867c33cb8fa77
SQL
ro-msg-spring-training/online-shop-BudTheDude
/shop/src/main/resources/db/migration/V1_0__create_initialDB.sql
UTF-8
4,234
3.421875
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS `product_Category` ( `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(20), `description` varchar(50) ); CREATE TABLE IF NOT EXISTS `supplier` ( ...
true
b43ec451ec4e16f2889cd222d664ae6f2a969537
SQL
SayantoRoy/PRATIBHAPOP
/PRATIBHAPOP/TRN/SalesOrderMaster.sql
UTF-8
2,910
2.9375
3
[]
no_license
CREATE TABLE [TRN].[SalesOrderMaster] ( [Id] VARCHAR (20) NOT NULL, [CompanyGroupId] VARCHAR (10) NOT NULL, [CompanyId] VARCHAR (10) NOT NULL, [PlantId] VARCHAR (10) NULL, [EntityId] VARCHAR (10) NULL, [Pr...
true
59872cab43955f187d4827ebdb16d3f8fefbf3da
SQL
tramyardg/librohan
/warm_up/create_queries.sql
UTF-8
2,015
3.921875
4
[]
no_license
# DDL SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS projects; DROP TABLE IF EXISTS dependents; DROP TABLE IF EXISTS employees; DROP TABLE IF EXISTS departments; DROP TABLE IF EXISTS works_on; SET FOREIGN_KEY_CHECKS = 1; CREATE TABLE `departments` ( `dept_id` INT PRIMARY KEY NOT NULL, `dept_name` VARCHAR(4...
true
9de1250c0475364579398db677717e70dbc93858
SQL
hiralhp/cse-414-databases
/hw3/hw3-q2.sql
UTF-8
691
3.1875
3
[]
no_license
<<<<<<< HEAD ======= -- number rows: 109 -- time: 33s -- first 20: -- "Aberdeen SD" -- "Abilene TX" -- "Alpena MI" -- "Ashland WV" -- "Augusta GA" -- "Barrow AK" -- "Beaumont/Port Arthur TX" -- "Bemidji MN" -- "Bethel AK" -- "Binghamton NY" -- "Brainerd MN" -- "Bristol/Johnson City/Kingsport TN" -- "Butte MT" -- "Carl...
true
0a9c1b3235f4a336ffd8185a5d847c030b157555
SQL
ahowdev/ahow-service-desk
/dev/dbbkup/Mysql_Dump_20180405/osticket_ost_ticket_status.sql
UTF-8
2,350
2.75
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64) -- -- Host: 127.0.0.1 Database: osticket -- ------------------------------------------------------ -- Server version 5.7.21 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *...
true
a29d1032bc86ef870163ce90706cb956a3b70af5
SQL
OseiasBeu/querys
/cadastroDeNotas.sql
UTF-8
2,106
2.984375
3
[]
no_license
SELECT * FROM ASSISTENCIA..Sponsors_Contrato WHERE DESC_PRODUTO LIKE '%CETELEM%' AND CONTRATO = 1986 AND PRESTADORA LIKE '% AFFINITY%' AND STATUS = 'ATIVO' ORDER BY CONTRATO DESC --Nota de refaturamento casos fora da bases SELECT * FROM ASSISTENCIA..Sponsors_Contrato WHERE CONTRATO like '%02800...
true
9228690202d3c6e1129159b3f768be4dde604321
SQL
hilel-attia/Reservation-D-hotel-en-PHP-__architecture__MVC-model-view-controller-
/projet.sql
UTF-8
7,945
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : mar. 17 déc. 2019 à 15:47 -- Version du serveur : 5.7.24 -- Version de PHP : 7.2.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
true
7d6b2d50f605c17cfd937fa2d3c1d13590381088
SQL
grncdr/feedo
/server/services/db/migrations/20210530143747_initial/migration.sql
UTF-8
968
3.875
4
[]
no_license
-- CreateTable CREATE TABLE "Feed" ( "id" TEXT NOT NULL PRIMARY KEY, "name" TEXT NOT NULL, "url" TEXT NOT NULL, "lastSyncedAt" DATETIME, "lastError" TEXT, "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" DATETIME NOT NULL ); -- CreateTable CREATE TABLE "Article" ( "i...
true
025ecf7a80d8effab03e70597c604257be50dd91
SQL
jefersonKel/InventarioVacunacion
/src/main/resources/Sql/postgres.sql
UTF-8
2,709
3.375
3
[]
no_license
-- Database: NombreBaseDatos --DROP DATABASE if exists "NombreBaseDatos"; /*CREATE DATABASE "NombreBaseDatos" WITH OWNER = postgres ENCODING = 'UTF8' LC_COLLATE = 'Spanish_Ecuador.1252' LC_CTYPE = 'Spanish_Ecuador.1252' TABLESPACE = pg_default CONNECTION LIMIT = -1; */ drop t...
true
f6c41601b960ec566894ad17e7cc7e052c061f2f
SQL
algorenator/OLIVER
/Tables/EBA_RESTDEMO_URLPARAMETERS.sql
UTF-8
999
2.640625
3
[]
no_license
-- -- EBA_RESTDEMO_URLPARAMETERS (Table) -- CREATE TABLE OLIVER.EBA_RESTDEMO_URLPARAMETERS ( ID NUMBER, SERVICE_ID NUMBER NOT NULL, PARAM_NAME VARCHAR2(100 BYTE) NOT NULL, PARAM_VALUE VARCHAR2(100 BYTE) NOT NULL, PARAM_ACTI...
true
781ca739fa844cf722c3fa78764c07aa2bee6962
SQL
yornel13/controlFX
/src/scriptData/INSERT INTO control.sql
UTF-8
2,278
2.578125
3
[]
no_license
INSERT INTO control.departamento (`id`,`nombre`,`activo`) VALUES (1, 'ADMINISTRATIVO', true); INSERT INTO control.departamento (`id`,`nombre`,`activo`) VALUES (2, 'OPERATIVO', true); INSERT INTO control.departamento (`id`,`nombre`,`activo`) VALUES (3, 'CONTABILIDAD', true); INSERT INTO control.departamento (`id`,`nombr...
true
5458ac2eff771a89ef9867aabbae0f6deb7557b7
SQL
diegocleir/fluxo-de-caixa-nodejs
/fluxo/agenda.sql
UTF-8
2,006
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tempo de Geração: 03/01/2012 às 17h42min -- Versão do Servidor: 5.5.16 -- Versão do 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_CLIEN...
true
1759ed7e97b1fb7fe8b4b8fc5e802570896ecffa
SQL
ehuntsman/luna
/db/read_character.sql
UTF-8
235
3.171875
3
[]
no_license
select characters.id as id, characters.name as name, description, imageurl, specialattackid, element.name as elementname, element.color as color from characters join element on characters.elementid = element.id where characters.id = $1
true
94324701247cb79a292ce8603405e12956e1eb6a
SQL
MoriKeigoYUZU/HackU_2020_vol.2_sysken
/mysql/init/3_insert_data.sql
UTF-8
1,451
2.578125
3
[]
no_license
-- usersテーブルにインサートするもの INSERT INTO raise_todo.users (name, password,token, feed_num) VALUES ("Nagoya","pass","aaa",1); -- subjectsテーブルにインサートするもの INSERT INTO raise_todo.subjects (name) VALUES ("国語"); INSERT INTO raise_todo.subjects (name) VALUES ("数学"); INSERT INTO raise_todo.subjects (name) VALUES ("英語"); INSERT INTO ...
true
eb5a4d77bc05fac53898461fd1eeef803110030f
SQL
joeybaba/covid2019_release
/script/covid_global.sql
UTF-8
2,130
4.03125
4
[]
no_license
s # 创建table DROP TABLE IF EXISTS covid_global; CREATE TABLE covid_global ( updateTime DATE not null, continentName VARCHAR(100) not null, countryName VARCHAR(100) not null, province_zipCode DOUBLE not null, province_confirmedCount DOUBLE not null, province_curedCount DOUBLE not null, province_deadCount DOUBLE ...
true
b4d868bd6753de433b52274d7eb2355ab98b54f4
SQL
onwuchekwa/CIT111-Introduction-to-Database
/Week 11/SalonQueries.sql
UTF-8
2,038
3.953125
4
[]
no_license
-- ======================================================================== USE jennysaloncit111; -- ======================================================================== -- ======================================================================== -- Query 1 : #1 -- ===================================================...
true
ae9358ce229b8a47dcfc155a321e20266ca3ddc3
SQL
kevinsaravia/ProgramacionIv
/CarWash/carwash.sql
UTF-8
7,310
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 25-04-2020 a las 06:03:42 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
01b63cbc08f3199ddbf2d994ca797e9fae08e88f
SQL
evandromaster/mysql
/2 - Carga/Importar tbl_validador_cia_setor.sql
UTF-8
549
2.75
3
[]
no_license
LOAD DATA LOCAL INFILE 'Y:\\ServidorMega\\MySql\\10 - tbl_Dimensao\\tbl_validadores.csv' -- Aqui vc especifica o local do arquivo -- Y:\ServidorMega\MySql\10 - tbl_Dimensao REPLACE into table tbl_validadores -- Aqui você especifica o nome da tabela fields terminated by ';' ENCLOSED BY '"' LINES TERMINATED B...
true
e8c0174a00ca00b0d6297a19a4f989ba65be1a78
SQL
anandeka/my-project
/DBScripts/MasterScripts/Master_Scripts_438.sql
UTF-8
5,924
3.109375
3
[]
no_license
declare fetchQry1 CLOB :='INSERT INTO IS_D ( INTERNAL_INVOICE_REF_NO, CP_NAME, CP_ITEM_STOCK_REF_NO, INCO_TERM_LOCATION, CONTRACT_REF_NO, CP_CONTRACT_REF_NO, CONTRACT_DATE, PRODUCT, INVOICE_QUANTITY, INVOICED_QTY_UNIT, QUALITY, PAYMENT_TERM, DUE_DATE, INVOICE_CREATION_DATE, INVOICE_AMOUNT, INVOICE_AMOU...
true
43932f8ac36abc51f355fa98cf3f9427760b3119
SQL
gitter-badger/dbcli
/oracle/sys/xtrace.sql
UTF-8
237
3.0625
3
[ "MIT" ]
permissive
/*[[Show info in x$trace of a specific sid. Usage: xtrace <sid> [inst_id] ]]*/ select * from (select /*+no_expand*/ a.* from x$trace a where sid=:V1 and (:V2 is null or inst_id=:V2) order by a.time desc) WHERE ROWNUM<=300 order by time;
true
13efd2cfeb1768e26ed54f0e20a8c15c42d63431
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day26/select2237.sql
UTF-8
260
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='WeMo' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['4028','1429','2081','3204','3241','5048','2013','5082','2219','2011'])
true
a36cdaf42f9b559c2d508e0dc820137fcf156fa8
SQL
AdeelGalileo/GTM-App
/dbChanges/tables/qb_class_reference.sql
UTF-8
654
2.6875
3
[]
no_license
CREATE TABLE `qb_class_reference` ( `qb_cls_ref_id` INT(11) NOT NULL AUTO_INCREMENT, `qb_cls_ref_class_id` VARCHAR(100) NOT NULL DEFAULT '', `qb_cls_ref_class_name` VARCHAR(255) NOT NULL DEFAULT '', `qb_cls_ref_client_id` INT(11) NOT NULL DEFAULT '0', `qb_cls_ref_record_status` TINYINT(1) NOT NULL DEFAULT '0', `q...
true
45bf33d0afdcee803d52d42a27c7c9271ecc3597
SQL
Heisely/academy
/javaexp/database/a00_exp/a201228.sql
UTF-8
3,221
4.375
4
[]
no_license
--1. 숫자형 함수의 종류와 기능상 특징을 기술하세요. /* 1) round: 지정한 소숫점 자리로 반올림 처리를 해준다. round(데이터, 자릿수) 자릿수: +값은 소숫점 이하 자리수를 말한다. ex) round(45.2432, 2) ==> 45.24 -값은 소숫점 기준으로 10, 100, 1000 단위로 처리해준다. 10단위 이상의 자릿수 반올림 처리 ex) round(2456435, -3) ==> 2456000 2) trunc: 지정한 소숫점 자리까지 남기고 절삭처리 3...
true
feb3c9d7131e658240f556d0cfddf6aae6cc50bd
SQL
Information-Science/GraphSQL
/sql_test/matrix_multiplication_test.sql
UTF-8
826
3.640625
4
[]
no_license
DROP TABLE IF EXISTS MAT_TEST_1; DROP TABLE IF EXISTS MAT_TEST_2; CREATE TABLE MAT_TEST_1(row_id INT, col_id INT, value real); CREATE TABLE MAT_TEST_2(row_id INT, col_id INT, value real); INSERT INTO MAT_TEST_1 VALUES(0, 0, 1); INSERT INTO MAT_TEST_1 VALUES(0, 1, 1); INSERT INTO MAT_TEST_1 VALUES(0, 2, 1); INSERT I...
true
264373ed6345c81f96c9cffd0f5b42314e72ee62
SQL
radtek/abs3
/sql/mmfo/bars/Trigger/tsu_rko_upd.sql
UTF-8
1,618
3.03125
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Trigger/TSU_RKO_UPD.sql =========*** Run *** PROMPT ===================================================================================== PROMPT *** Create trigger T...
true
dc16b05647da28ad453da461ab6c0a82bf600a9f
SQL
chuquockhanh/tpkwhm
/sql/alter_table_ask_answer_cascade.sql
UTF-8
618
2.90625
3
[]
no_license
ALTER TABLE `answer` DROP FOREIGN KEY `FK_Answer_AskID`; ALTER TABLE `answer` ADD CONSTRAINT `FK_Answer_AskID` FOREIGN KEY (`AskID`) REFERENCES `ask` (`AskID`) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE `ask` DROP FOREIGN KEY `FK_Ask_ClassRoster`; ALTER TABLE `ask` ADD CONSTRAINT `FK_Ask_ClassRoster` FOREIGN ...
true
f40cec4f2d55edb4835fab21b260e8bc1146b414
SQL
lsiddiqsunny/Database
/Database project/Triggers.sql
UTF-8
1,094
3.640625
4
[]
no_license
1. CREATE OR REPLACE TRIGGER SetjobHistory AFTER UPDATE ON EMPLOYEE FOR EACH ROW DECLARE BEGIN IF :OLD.JOB_ID<>:NEW.JOB_ID THEN INSERT INTO JOB_HISTORY VALUES (:NEW.EMPLOYEE_ID,:NEW.JOIN_DATE,SYSDATE,:NEW.JOB_ID,:NEW.BRANCH_ID); END IF; END ; 2. CREATE OR REPLACE TRIGGER SetbookHistory AFTER UPDATE ON BOOK FOR EACH R...
true
d0c10333633216d8073acf3828119724a96b3701
SQL
jacobsong/car_management_db
/MySQL/table.sql
UTF-8
3,294
3.3125
3
[]
no_license
-- ----------------------------------------------------- -- Table `owner` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `owner` ( `id` INT NOT NULL AUTO_INCREMENT, `fname` VARCHAR(45) NULL, `lname` VARCHAR(45) NULL, `phone` VARCHAR(45) NULL, PRIMARY KEY (`id`)) E...
true
7d9b6fa126c858af794465c3d4c172bd639f3e76
SQL
mayflower/postgraphile-audit-plugin
/__tests__/setupSchema.sql
UTF-8
1,363
3.71875
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
START TRANSACTION; -- WARNING: this database is shared with postgraphile-core, don't run the tests in parallel! DROP SCHEMA IF EXISTS postgraphile_audit_plugin CASCADE; CREATE SCHEMA postgraphile_audit_plugin; SELECT pgmemento.init( 'postgraphile_audit_plugin', -- schema_name 'pgmemento_audit_id', -- audi...
true
d6962eb01d3d272f01dd60bacdf2e6bed9f8bdd7
SQL
VasilDimitroff/SoftUni-MS-SQL-Server
/5. SubqueriesAndJoins/13. Count Mountain Ranges.sql
UTF-8
370
3.859375
4
[]
no_license
USE Geography SELECT Res.CountryCode, COUNT(MountainRange) AS 'MountainRanges' FROM ( SELECT C.CountryCode, MountainRange FROM Countries AS C JOIN MountainsCountries MC on C.CountryCode = MC.CountryCode JOIN Mountains M on MC.MountainId = M.Id WHERE C.CountryCode IN ('BG', 'RU',...
true
0a34d69e06f06d1b4b2e697febcbf4f0bc99f5c1
SQL
georgeliang0821/Scripts
/TablesOnFilegroup.sql
UTF-8
211
3.59375
4
[]
no_license
select t.name as TableName, d.name as FilegroupName from sys.data_spaces d, sys.tables t, sys.indexes i where i.object_id = t.object_id and d.data_space_id = i.data_space_id and i.index_id < 2 order by 2,1
true
c2aabf63e633896e1aab3ae75b541bb202fb3bd4
SQL
Mgncoding/Project-2
/db/schema.sql
UTF-8
524
2.875
3
[]
no_license
DROP DATABASE [IF EXISTS] project2_db; CREATE DATABASE project2_db; USE project2_db; -- Create the table wishes. CREATE TABLE customers ( `customerId` int NOT NULL AUTO_INCREMENT, `firstName` varchar(50) NOT NULL, `lastName` varchar(50) NOT NULL, `phone` varchar(20) NOT NULL, `email` varchar(255) NOT NULL, `postalCode...
true
ac55eac4245968b74dc6af6a6e39289835a0668d
SQL
stryker33/venture-ground-control
/mysql-cluster-data/scripts/venture_db1.sql
UTF-8
5,087
3.21875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.31, for debian-linux-gnu (x86_64) -- -- Host: 127.0.0.1 Database: venture -- ------------------------------------------------------ -- Server version 5.5.30-ndb-7.2.12-cluster-gpl /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESUL...
true
5b547b35d232b067e3867c27422288943a50ec90
SQL
CUBRID/cubrid-testcases
/sql/_27_banana_qa/issue_11089_percentile_disc/_01_aggregate_function/cases/_04_bit_lob1.sql
UTF-8
2,711
3.28125
3
[ "BSD-3-Clause" ]
permissive
--TEST: pass bit/blob/clob type values to the first param drop table if exists p_disc; create table p_disc( col1 bit(20), col2 bit varying, col3 blob, col4 clob, num int ); insert into p_disc values(B'1011', X'abc', X'0', 'cubrid', 70); insert into p_disc values(B'1011', x'bcd', X'1', 'cubrid', 60); insert int...
true
fbfd9e7910f017525843e0ce56d24831f1e34af3
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day27/select1216.sql
UTF-8
178
2.6875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-26T12:16:00Z' AND timestamp<'2017-11-27T12:16:00Z' AND temperature>=36 AND temperature<=74
true
769eb931183e42074b06a31cabca0fca962e0325
SQL
radtek/abs3
/sql/mmfo/bars/View/v_mbdk_int_reckoning.sql
UTF-8
2,227
3.421875
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/View/V_MBDK_INT_RECKONING.sql =========*** R PROMPT ===================================================================================== PROMPT *** Create view V_MB...
true
74364dea9ac5b929d88dfe4415c01ff25d8851ed
SQL
mathewstitech/php-test
/web/recipes/api_db.sql
UTF-8
4,179
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 21, 2018 at 03:50 PM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.0.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
f10b033528683749f2ef0f61d51f670a64413717
SQL
danthomas/JST
/JST.SqlServer/Schema Objects/Schemas/Security/Programmability/Stored Procedures/AccountRole_SelectByAccountId.procedure.sql
UTF-8
216
2.671875
3
[]
no_license
CREATE PROCEDURE [Security].[AccountRole_SelectByAccountId] ( @AccountId SMALLINT ) AS SET TRANSACTION ISOLATION LEVEL READ COMMITTED SELECT * FROM [Security].[AccountRole] x WHERE x.AccountId = @AccountId
true
a7378f36100ad52ba7f3e86219e4a676032bbbe3
SQL
larsenjr/SQL
/Lage kolonne uten at man kan endre tabeller.sql
UTF-8
260
2.96875
3
[]
no_license
ModellIDCreate table modeller( ModellID int NOT NULL auto_increment, modellnavn varchar (50) NOT NULL, MerkeID int NOT NULL, PRIMARY KEY (modellID), constraint fk_merkeID foreign key (MerkeID) references bilmerker(id) ON DELETE NO ACTION ON UPDATE NO ACTION );
true
fb6a192ff069b2f66f08fab601ffe54fce484f49
SQL
LUDUSLab/HealthApp-AndroidStudio
/SQLBANCO.sql
UTF-8
1,865
3.03125
3
[]
no_license
DROP TABLE IF EXISTS `historicomedicamento`; CREATE TABLE IF NOT EXISTS `historicomedicamento` ( `idHistoricoMedicamento` int(11) NOT NULL AUTO_INCREMENT, `horaPrevista` varchar(45) DEFAULT NULL, `horaReal` varchar(45) DEFAULT NULL, `statusMedicamento` varchar(45) DEFAULT NULL, `idMedicamento` int(11) NOT NUL...
true
351276320d5c8146ac93a6e7cd54f7b17784bc32
SQL
vsuzarte/ekoob
/src/main/java/com/aztec/koob/resources/maindb.sql
UTF-8
6,485
3.390625
3
[ "MIT" ]
permissive
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Author: guilherme.rpinto * Created: 03/10/2017 */ CREATE TABLE Produto( idProduto INTEGER PRIMARY KEY GENERATED...
true
3a3ad20e34da122dac85ec5a813495c326739310
SQL
gambitmis/mern-crud
/mariadb/mysqldump/employee.sql
UTF-8
1,631
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: db -- Generation Time: Jul 25, 2021 at 04:13 PM -- Server version: 10.6.3-MariaDB-1:10.6.3+maria~focal -- PHP Version: 7.4.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
04b52b8044645b332087b9b32db6d2fa60e22a90
SQL
gabin205/myimmobilie
/seeds/sql_structure_complete_20171112.sql
UTF-8
9,356
3.828125
4
[ "MIT" ]
permissive
create table adresses ( id int(10) unsigned auto_increment primary key, street varchar(50) not null, zipcode_id int(10) unsigned not null ) ; create index adresses_zipcode_id_foreign on adresses (zipcode_id) ; create table knex_migrations ( id int(10) unsigned auto_increment primary key, name varchar(255) n...
true
31fccdc445fbd5867fd48493fae87618775baaa4
SQL
xottabut/InternetProviderWind
/InternetProvider/InternetProvider-web/newSQLTemplate.sql
UTF-8
175
2.953125
3
[]
no_license
SELECT * FROM ( SELECT ROWNUM rownumber, sub.* FROM (SELECT * FROM tasks WHERE role_id = 2 ORDER BY ID DESC) sub WHERE ROWNUM <= 50) WHERE rownumber > 0;
true
e0bf614b9956de4d718f2015e1eebe2c3619953b
SQL
Marissa-Mayes/employee_tracker
/schema.sql
UTF-8
474
3.046875
3
[]
no_license
DROP DATABASE IF EXISTS employee_trackerDB; CREATE database employee_trackerDB; USE employee_trackerDB; CREATE TABLE department( id INT NOT NULL, name VARCHAR(30), primary key (id) ); CREATE TABLE allEmployee( id INT NOT NULL, first_name VARCHAR(30), last_name VARCHAR(30), role_id INT NOT NULL, department_Name VARCHA...
true
56fc443c5bbb450d9c98a8e8a1fc0ef81e2cd4ad
SQL
Brent-rb/University
/bachelor/databases/g.sql
UTF-8
207
2.828125
3
[ "MIT" ]
permissive
-- Studentnummer: 1334252 -- Studierichting: Informatica SELECT titel, count(score) AS aantal, avg(score) AS score FROM Evenement JOIN Review ON Evenement.id = Review.evenement GROUP BY titel ORDER BY titel;
true
feb103434c166afbd049c850087d849471c0e6af
SQL
ceyhunkerti/scala-spring-boot
/src/main/resources/db/migration/V1.0__Table_Structure.sql
UTF-8
7,956
2.953125
3
[]
no_license
CREATE TABLE academic_year ( id INTEGER NOT NULL, active BOOLEAN NOT NULL, end_year INTEGER NOT NULL, monitoring_end TIMESTAMP WITHOUT TIME ZONE NOT NULL, monitoring_start TIMESTAMP WITHOUT TIME ZONE NOT NU...
true
8731b4cffc8b4339937652cc65b4f63e50beb2a8
SQL
ivancekic/sql-data-analysis
/sql/POPIS/Gen Liste za_LISTE.sql
UTF-8
522
3.34375
3
[ "MIT" ]
permissive
Select z.rowid, z.* -- , -- -- Lokacija, Grupa, Proizvod, -- Lot_Serija, Za_popise.Rok, Kolicina, Kontrolna_Kolicina From Za_Popise z, Proizvod Where Org_Deo = &nOrg_Deo -- And -- NVL(Lokacija,' ') Like...
true
9dc34f7bfb110b8cd7e21309d582b35161c5822b
SQL
alaminse/bata-ecom
/sqlupdates/v50.sql
UTF-8
1,091
3.515625
4
[]
no_license
UPDATE `business_settings` SET `value` = '5.0' WHERE `business_settings`.`type` = 'current_version'; CREATE TABLE `firebase_notifications` ( `id` int(11) NOT NULL, `item_type` varchar(255) NOT NULL, `item_type_id` int(11) NOT NULL, `receiver_id` int(11) NOT NULL, `is_read` tinyint(1) NOT NULL, `created_at`...
true
8b630d85608c8ae8f375beb1d7fd5eeddaee8b8a
SQL
WindWallk/library
/resources/db/migration/V1.0__Library.sql
UTF-8
5,949
3.765625
4
[]
no_license
CREATE TABLE public.book ( id bigint NOT NULL, name text NOT NULL, isbn text NOT NULL, author_id bigint NOT NULL, rented_by bigint ); ALTER TABLE public.book OWNER TO postgres; -- -- TOC entry 201 (class 1259 OID 27538) -- Name: book_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- CR...
true
efbd5e7fc8ba3b1d10ebaf8fdb5e2e401d4e366c
SQL
EvgeniiSavvin/Databases
/postgres/dbInit.sql
UTF-8
2,325
3.546875
4
[]
no_license
CREATE TABLE Universities ( id BIGSERIAL PRIMARY KEY, name VARCHAR(150) NOT NULL, new_educational_standard BOOLEAN NOT NULL ); CREATE TABLE Departments ( id BIGSERIAL PRIMARY KEY, university_id BIGINT NOT NULL REFERENCES Universities (...
true
1639fb6d617a627c73ae239ff0299b7ad650b8cc
SQL
YauheniD/GodelDataMasteryPart1
/Tasks/Maksim/Task4/query11.sql
UTF-8
233
3.390625
3
[]
no_license
--Query 11 SELECT customer.CustomerID, fun.SalesOrderID, fun.OrderDate, fun.SalesPersonID FROM Sales.Customer customer CROSS APPLY Sales.MostRecentOrders(customer.CustomerID,3) fun ORDER BY customer.CustomerID ;
true
514581a204f5851660d981abf946b9b0fab8e9cf
SQL
yuweijun/books
/corejava2e7/v2/v2ch4/ExecSQL/Authors.sql
UTF-8
2,290
2.796875
3
[ "MIT" ]
permissive
CREATE TABLE Authors (Author_Id CHAR(4), Name CHAR(25), Fname CHAR(25)) INSERT INTO Authors VALUES ('ALEX', 'Alexander', 'Christopher') INSERT INTO Authors VALUES ('BROO', 'Brooks', 'Frederick P.') INSERT INTO Authors VALUES ('CORM', 'Cormen', 'Thomas H.') INSERT INTO Authors VALUES ('DATE', 'Date', 'C. J.') INSER...
true
55e63acaddc2e5aae6c004435edd5a927985bf4e
SQL
TransformCore/trade-tariff-backend
/db/extensions.sql
UTF-8
861
2.53125
3
[ "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
-- -- Name: citext; Type: EXTENSION; Schema: -; Owner: - -- CREATE EXTENSION IF NOT EXISTS citext WITH SCHEMA public; -- -- Name: EXTENSION citext; Type: COMMENT; Schema: -; Owner: - -- COMMENT ON EXTENSION citext IS 'data type for case-insensitive character strings'; -- -- Name: pg_trgm; Type: EXTENSION; Schema:...
true
7962e78a7d772fad7a875ff25e7b1dafda0a8018
SQL
paulosthiven25/Pl-SQL
/HOSPITAL/cria.sql
UTF-8
5,148
2.75
3
[]
no_license
-- Generated by Oracle SQL Developer Data Modeler 19.1.0.081.0911 -- at: 2019-08-29 09:39:41 BRT -- site: Oracle Database 11g -- type: Oracle Database 11g CREATE TABLE dim_forma_pgto ( sk_pagamento NUMBER NOT NULL, ds_pagamento VARCHAR2(50), qt_parcelas NUMBER )...
true
75e28430538e590606063fc1e5be454c38365197
SQL
ntdat97/infoMarketWeb
/prisma/migrations/20210506174451_update/migration.sql
UTF-8
146
2.578125
3
[]
no_license
-- AddForeignKey ALTER TABLE "ProjectPaymentMethod" ADD FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE CASCADE ON UPDATE CASCADE;
true
0bf2cf6c54beaace37096029af5ecb389ded1ee1
SQL
mr1hm/shuttle-employee-management
/server/endpoints/shifts-available/get.sql
UTF-8
830
3.953125
4
[]
no_license
SELECT rnd.id AS round_id, rnd.bus_info_id, DAYOFWEEK(DATE(FROM_UNIXTIME(rnd.date))) AS day_of_week, DATE(FROM_UNIXTIME(rnd.date)) AS date, CAST(rnd.start_time AS CHAR) AS start_time, CAST(rnd.end_time AS CHAR) AS end_time, s.id AS session_id, s.name AS session_name, u.uci_net_id, u.last_name, u.first_name, rte.line_na...
true
7212e0234e952799e094f76feda11f866157e6e5
SQL
DN-Vanguard/employee-management-system
/db/seeds.sql
UTF-8
1,018
3.0625
3
[]
no_license
INSERT INTO department (id, name) VALUES (1, "Marketing/Sales"), (2, "UX/UI"), (3, "Engineering"); INSERT INTO role (id, title, salary, department_id) VALUES (1, "Sales - B2B", 50000, 1), (2, "Admin", 40000, 1), (3, "Marketing Coordinator", 55000, 1), (4, "Photo Editor", 60000...
true
a5d47eb3b1e65d673045c4874157a02f2116fa84
SQL
LeeKwonWoo/01_sql
/day01.sql
UHC
442
2.515625
3
[]
no_license
w-- SQL day 01 dzƮ -- 1) : ɾ ctrl + Enter ALTER SESSION SET "_ORACLE_SCRIPT"=TRUE; -- 2) SCOTT : F5 (ũƮ ) @C:\app\13\product\18.0.0\dbhomeXE\rdbms\admin\scott.sql -- 3) SCOTT -- ̵ : SCOTT -- йȣ : TIGER -- 4) SCOTT -- SCOTT ̸ ̸ ȸ SELECT * FROM tab ;
true
abcd25720593605fb16ebd4ea33209b884767bef
SQL
Easy-wei/practise
/mysql/global_data.sql
UTF-8
4,235
2.734375
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.32) # Database: global_data # Generation Time: 2021-09-11 15:36:31 +0000 # *******************************************...
true
76b7ecc5534077807d21fc46f5ec4c5408bf98d7
SQL
RodrigoNunesGalvan/sms-campanha
/src/main/resources/db/migration/V18__AlterTableCampanha.sql
UTF-8
340
2.59375
3
[]
no_license
ALTER TABLE unipix.tb_campanha_confirmacao MODIFY COLUMN codigo_envio BIGINT UNSIGNED NULL; ALTER TABLE unipix.tb_campanha MODIFY COLUMN anexo_id bigint NULL; CREATE TRIGGER uuidInsert BEFORE INSERT ON tb_campanha_confirmacao FOR EACH ROW BEGIN IF new.codigo_envio IS NULL THEN SET new.codigo_envio = UUID_SHOR...
true
fe33969f1c85c63cfbd9902250175441d3bf8125
SQL
michalskop/BudovaniStatu.cz
/data_model/scripts/group/inserts.sql
UTF-8
1,261
2.96875
3
[]
no_license
-- BudovaniStatu.cz, based on -- KohoVolit.eu Generación Cuarta -- inserts into tables of package GROUP insert into group_kind (code, "name", short_name, description, subkind_of, weight) values ('national_budget', 'National Budget','Budget', 'National budget.', null, 0.5), ('chapter', 'Chapter', 'Chapter', 'Chapter of...
true
f5af342e9332445d3afff11dd2ecea185e6da7c3
SQL
h-4vok/uai-ssc-backend
/SSC.Database/Programmability/Stored Procedures/sp_SupportTicket_getAll.sql
UTF-8
351
3.40625
3
[]
no_license
CREATE PROCEDURE sp_SupportTicket_getAll AS BEGIN SELECT st.Id, st.Subject, st.UserId, st.CreatedDate, 'StatusId' = stt.Id, 'StatusCode' = stt.Code, 'StatusTranslationKey' = stt.TranslationKey FROM SupportTicket ST INNER JOIN SupportTicketStatus STT ON st.SupportTicketStatusId = stt.Id ORDER ...
true
ce7263aef5b7c0f817d9d732512079317b8fd2a5
SQL
dandraden/Database-Scripts
/Oracle/others/Scripts/script_carlos_oracle/NUMEXEC.SQL
UTF-8
278
2.96875
3
[]
no_license
spool text.lis col data for a20 undef id accept id number prompt 'Entre com o id do usuario: ' select to_char(sysdate,'ddmmyy hh24:mi:ss') data, a.executions from v$sqlarea a, v$session s where s.sid = &id and s.sql_address = a.address / spool off
true
f2e28ad14f65f6fb6ec228d1dd48a54906c22135
SQL
bloodsky/VerdeSRL-Database-management-and-thin-client
/VerdeSRL/DB_Dump/VerdeSRL_Rivenditori.sql
UTF-8
2,551
3.03125
3
[]
no_license
-- MariaDB dump 10.17 Distrib 10.4.6-MariaDB, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: VerdeSRL -- ------------------------------------------------------ -- Server version 10.4.6-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_...
true
008504a106f8a7cb950ce1a567bfe0b7f9587cf1
SQL
vctrmarques/interno-rh-sistema
/rhServer/src/main/resources/db/migration/V1_2020_03_25_16_46__ALTER_TABLE_FUNCIONARIO.sql
UTF-8
637
3.453125
3
[]
no_license
-- Flávio Silva -- Deletando uk_funcionario_nome da tabela funcionario, a coluna naturalidade (string) e adicionando naturalidade_id (objeto Municipio). if OBJECT_ID('uk_funcionario_nome') is not null BEGIN ALTER TABLE funcionario DROP CONSTRAINT uk_funcionario_nome; END IF COL_LENGTH('funcionario', 'naturalidade')...
true
ac1dc2eecf2997f98b5f16f3760cc6fea4ed0123
SQL
ycarogb/Curso_M2_Web_Cloud_DataBase
/Aula14_CodeLabs_SQL/Aula14_CodeLAB.sql
ISO-8859-1
4,361
4.375
4
[]
no_license
--Listar o nome, sobrenome e email de todos os funcionrios SELECT nome, sobrenome, email FROM funcionarios f --Listar o nome, sobrenome e email de todos os funcionrios que so representantes de vendas SELECT nome, sobrenome, email, cargo FROM funcionarios f WHERE cargo = 'Sales Rep' --Listar todos os cargos (sem rep...
true
f3184fca9db7be7eae311b8309a5a9002515cd8f
SQL
Shreya4444/Spatial-Database-Queries
/Solution/spatial.sql
UTF-8
2,167
3.859375
4
[]
no_license
#Postgres-PostGIS #Creating a new table with name and gps coordinate CREATE TABLE MyNeighborhood (name VARCHAR(1000), gps GEOMETRY); #Inserting 9 points in the Map INSERT INTO MyNeighborhood VALUES ('23rd/Vermont',ST_GeomFromText('POINT(-118.291565 34.035194)')), ('Expo/Vermont',ST_GeomFromText('POINT(-118.291507 34....
true
e7e14891e58ac222772ed9c9117fadc064b08351
SQL
claire-yyf/mysql
/16-Database Triggers.sql
UTF-8
1,901
4.34375
4
[]
no_license
-- 16-Database Triggers - SQL statements that are AUTOMATICALLY RUN when a specific table is changed -- Syntax CREATE TRIGGER trigger_name trigger_time trigger_event ON table_name FOR EACH ROW BEGIN ... END; -- trigger_time - BEFORE, AFTER -- trigger_event - INSERT, UPDATE, DELETE -- table_name e.g. ...
true
7a4c2f21100de19b6225ac72aac81b6984b13bd6
SQL
sheik-yerbouti/rpfl
/server/target/classes/sql/V1_create_table_resource_fingerprints.sql
UTF-8
315
3.03125
3
[]
no_license
DROP TABLE IF EXISTS resource_fingerprints; CREATE TABLE resource_fingerprints ( url VARCHAR(256) PRIMARY KEY NOT NULL UNIQUE, hash BYTEA NOT NULL, created_at TIMESTAMP NOT NULL DEFAULT NOW(), verification_strength SMALLINT NOT NULL ); CREATE INDEX resource_fingerprints_ix on resource_fingerprints(url);
true
f70c583af34fcd37317d8a412e397539ab81831f
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/tables/PARPRODUCTOS.sql
ISO-8859-1
1,566
3
3
[]
no_license
-------------------------------------------------------- -- DDL for Table PARPRODUCTOS -------------------------------------------------------- CREATE TABLE "AXIS"."PARPRODUCTOS" ( "SPRODUC" NUMBER(6,0), "CPARPRO" VARCHAR2(20 BYTE), "CVALPAR" NUMBER(8,0), "NAGRUPA" NUMBER(23,0), "TVALPAR" VARCHAR2(50 BY...
true
458c763a7f2f6eb038bba85e513f745144ca9bb0
SQL
Hinduja2103/SQL
/Sequence_and_Nextval.sql
UTF-8
566
2.703125
3
[]
no_license
CREATE SEQUENCE seq_users START WITH 123456 INCREMENT BY 654321 MINVALUE 1 OWNED BY contact_details.user_id; CREATE TABLE contact_details (user_id bigint,user_name character varying(50),mobile_no bigint); INSERT INTO contact_details VALUES (NEXTVAL('seq_users'),'Yashaswini',9876543210); INSERT INTO contact_details ...
true
6bb671aae923ec45252268de096511f768a4471d
SQL
decoste/employee-tracker
/employee-tracker.sql
UTF-8
742
3.984375
4
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS employeeTracker_DB; CREATE DATABASE employeeTracker_DB; USE employeeTracker_DB; CREATE TABLE department ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(30) NOT NULL ); CREATE TABLE role ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, title VARCHAR(30) NOT NULL, salary DECIMAL(...
true
f159f17e15434d0ef81ee80db84d785fda9a1343
SQL
iqbaltc13/File_SQL
/madashco_1 (5).sql
UTF-8
79,830
2.53125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 23, 2018 at 07:15 AM -- Server version: 10.1.28-MariaDB -- PHP Version: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
54628db4d2c674c0191545a0408450f2b6ea30c4
SQL
mathsian/dashboard
/sql/missing registers.sql
UTF-8
615
3.625
4
[]
no_license
select CAST(REGS_Session_Date as date) as date , REGH_Class_Register as register , TTPD_Period_Description as period , RGHL_Lecturer_Code as lecturer from remslive.dbo.REGSrgsessn join remslive.dbo.REGHrghdr on REGS_REGH_ISN = REGH_ISN join remslive.dbo.TTPDPeriods on REGH_Period_ISN = TTPD_ISN join rem...
true
ec72237622a24b6cd1bc9cc6eeb9e6f72b4d24d5
SQL
mikkohei13/FinBIF-DW
/_database_schema_production.sql
UTF-8
981
2.78125
3
[ "MIT" ]
permissive
-- Adminer 4.7.3 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET NAMES utf8mb4; CREATE DATABASE `inat_push_production` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_swedish_ci */; USE `inat_push_production`; DROP TABLE IF EXISTS `latest_update`; CREATE TABLE `latest_update` ( `id` int(11) NOT NU...
true
6478d4b8a65c409e91ca4150b14ed1b535d705fc
SQL
TeresaRem/CodingDojo
/Web_Fundamentals/MySQL/friendship_queries.sql
UTF-8
367
3.5
4
[]
no_license
SELECT users.first_name,users.last_name, user2.first_name as friend_first_name,user2.last_name as friend_last_name FROM users LEFT JOIN friendships ON users.id = friendships.user_id LEFT JOIN users as user2 ON user2.id = friendships.friend_id ORDER BY friend_last_name DESC /* use this to append friendships table SE...
true
0c308dd3281d2a2f6df136f91bb5600765e83fd8
SQL
vga-git/akaPHP-framework
/client-example/db/users.sql
UTF-8
364
2.9375
3
[]
no_license
CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(128) NOT NULL, `password` varchar(24) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `email` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1; INSERT INTO `users` (`id`, `email`, `pass...
true
c7361de91321878faace84cc257a8f653ee323bd
SQL
felixcs1/recipe-book
/src/main/resources/schemaDB.sql
UTF-8
1,286
3.78125
4
[]
no_license
DROP TABLE IF EXISTS recipe_tools; DROP TABLE IF EXISTS recipe_foods; DROP TABLE IF EXISTS instructions; DROP TABLE IF EXISTS tools; DROP TABLE IF EXISTS foods; DROP TABLE IF EXISTS recipes; CREATE TABLE IF NOT EXISTS recipes ( recipe_id serial PRIMARY KEY, recipe_name VARCHAR (50) NOT NULL, description VARCHAR (25...
true
28eeb40e8ffccaaeb32507daeb2de1b1d7abd08e
SQL
wangshuaibo123/BI
/oracle/com-jy-platform-web/dbscript/v1.1.2/masterdata_orgsyn_create.sql
UTF-8
17,954
3.671875
4
[]
no_license
-- Create table create table SYS_SYN_CONFIG ( id NUMBER(18) not null, app_flag VARCHAR2(50), create_date TIMESTAMP(6), org_names VARCHAR2(500), org_ids VARCHAR2(200), syn_status VARCHAR2(1) ) ; -- Add comments to the table comment on table SYS_SYN_CONFIG is '机构部门表'; -- Add comments to ...
true
70d450cf6ce196ed6e40cf675afccc07661c2997
SQL
401256352/yoshop_pros
/doc/database/upgrade/v1.1.16.sql
UTF-8
2,833
3.0625
3
[]
no_license
# 小票打印机记录表 CREATE TABLE `yoshop_printer` ( `printer_id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '打印机id', `printer_name` varchar(255) NOT NULL DEFAULT '' COMMENT '打印机名称', `printer_type` varchar(255) NOT NULL DEFAULT '' COMMENT '打印机类型', `printer_config` text NOT NULL COMMENT '打印机配置', `print_times` sm...
true
c9a52978f3f8680ba6442c7cef2f8d6ccf5dc47e
SQL
Sthakur27/woohoopizza
/setup.sql
UTF-8
3,854
3.4375
3
[]
no_license
-- -- Example setup file for a web database project. -- create table User( id int not null auto_increment primary key, email varchar(255) not null, password_hash varchar(255) not null, ); create table FoodBaseData( id int not null primary key, base_calories float, base_price float ); create table Pizza( ...
true
158e932c44612057487d27dbb46385c61581b09c
SQL
molokovskikh/af_priceprocessor
/migrations/82_01_alter_trigger_RetClientsSetLogDelete.sql
UTF-8
2,832
2.640625
3
[]
no_license
USE usersettings; DROP TRIGGER IF EXISTS RetClientsSetLogDelete; CREATE DEFINER = 'RootDBMS'@'127.0.0.1' TRIGGER RetClientsSetLogDelete AFTER DELETE ON RetClientsSet FOR EACH ROW BEGIN INSERT INTO `logs`.RetClientsSetLogs SET LogTime = NOW(), OperatorName = IFNULL(@INUser, SUBSTRING_INDEX(US...
true
93c1e139b9aec1076f05f0ec8bcf633388b43862
SQL
chongqiongjie/etl_sql
/model.d_cocacola_score_rural.sql
UTF-8
1,907
3.0625
3
[]
no_license
--********************************** --* [intro] --* author=larluo@spiderdt.com --* func=partition algorithm for data warehouse --*================================= --* [param] --* tabname=staging table name --* prt_cols_str=ods partition cols --*================================= --* [caller] --* s...
true
48c9f3d175f890e2c73cf6888801c81e8d916ea0
SQL
szarnyasg/pggraphblas
/demo/bench.sql
UTF-8
305
3.0625
3
[ "Apache-2.0" ]
permissive
\timing on create extension if not exists pggraphblas; create table a (m matrix); create table b (i bigint, j bigint); create index on b (i) include (j); insert into a select matrix_random_bool(8000,8000,32000000); insert into b select row, col from matrix_elements_bool((select m from a));
true
925c102d01992a49fa3b7d650e7a9793cc2d53f3
SQL
Explorer1092/vox
/agent/agent-core/src/main/resources/ddl/AGENT_APP_STATISTICS_DAY.ddl
UTF-8
938
2.625
3
[]
no_license
CREATE TABLE `AGENT_APP_STATISTICS_DAY` ( `ID` BIGINT(20) NOT NULL AUTO_INCREMENT, `DAY` INT(11) NOT NULL, `APP_KEY` VARCHAR(128) NOT NULL, `USER_COUNT` INT(11) NOT NULL DEFAULT '0', `NEW_USER_COUNT` INT(11) NOT NULL DEFAULT '0', `PAID_AMOUNT...
true
a65705994ad593d5eea384865104ef46e40d7304
SQL
fudaiwu/MyBatisDemo
/src/main/resources/db.sql
UTF-8
10,621
3.78125
4
[]
no_license
-- 创建考勤数据库 CREATE DATABASE IF NOT EXISTS oa DEFAULT CHARACTER SET utf8; USE oa; -- 用户表 DROP TABLE IF EXISTS `user`; CREATE TABLE USER( id BIGINT(10) PRIMARY KEY AUTO_INCREMENT COMMENT '主键id', creator VARCHAR(128) COMMENT '创建人', gmt_created DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `modif...
true
0de91c4bcfcd591cc21404b0c54b77a2f213f2c3
SQL
sgaribotto/programas
/soporte/programas.sql
UTF-8
15,656
3.046875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.36, for Win32 (x86) -- -- Host: localhost Database: programas -- ------------------------------------------------------ -- Server version 5.5.36 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *...
true
b637036178cd6282c99e4c5e68f397d97054d1ca
SQL
jdbyrd/databases
/server/schema.sql
UTF-8
633
3.46875
3
[]
no_license
CREATE DATABASE chat; USE chat; CREATE TABLE Users ( UserID int primary key auto_increment, username text ); CREATE TABLE Rooms ( RoomID int primary key auto_increment, roomname text ); CREATE TABLE Messages ( MessageID int NOT NULL auto_increment primary key, Txt text NOT NULL, UserID int NOT NULL, ...
true
04387a57985143c314db600ddfd48b74475d1262
SQL
PacheOchoa/STORESPHP
/bd/_personas.sql
UTF-8
3,100
3.25
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 13-02-2019 a las 02:54:46 -- Versión del servidor: 10.1.35-MariaDB -- Versión de PHP: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true