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
d47f040255c9df6e5c79ed906b9ac139a6767781
SQL
gdsotirov/mysql-play
/Examples/CHECK/emp_add_checks.sql
UTF-8
206
3.390625
3
[]
no_license
ALTER TABLE emp MODIFY COLUMN hiredate DATE CONSTRAINT hiredate_chk CHECK (hiredate >= STR_TO_DATE('1980-01-01', '%Y-%m-%d')), ADD CONSTRAINT sal_chk CHECK (sal > 0 AND (comm IS NULL OR comm >= 0));
true
76e63fe6bbf1595dd6dc9889087763341c6e4ef4
SQL
ukmcybernetix/cybernetix-db
/sql/scheme.sql
UTF-8
3,246
3.625
4
[]
no_license
DROP DATABASE IF EXISTS `cybernetix`; CREATE DATABASE IF NOT EXISTS `cybernetix` CHARACTER SET utf8 COLLATE utf8_unicode_ci; USE `cybernetix`; CREATE TABLE IF NOT EXISTS `cx_group` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `key` int(2) unsigned zerofill DEFAULT '00', `name` varchar(255) NOT NULL, ...
true
19b4821857699406987832ded98e75bf0ef9529b
SQL
moutainhigh/Lfood
/userservice/src/main/resources/user.sql
UTF-8
11,707
3.125
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: alguser -- ------------------------------------------------------ -- Server version 5.7.31 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!...
true
11c2b8278c9c6bf54b5593e0b4fa0267b1642b82
SQL
CX1ng/proxypool
/sql/ip_list.sql
UTF-8
643
2.640625
3
[ "MIT" ]
permissive
CREATE TABLE `ip_list` ( `ip` varchar(16) NOT NULL COMMENT "抓取的代理地址", `port` int NOT NULL COMMENT "代理地址端口", `type` varchar(8) NOT NULL COMMENT "类型(http/https)", `origin` varchar(16) NOT NULL COMMENT "来源站", `raw_time` varchar(32) NOT NULL COMMENT "源站爬取时间", `region` varchar(64) COMMENT "地区", ...
true
7a7eb51bbb98bf8f4bd18cf96fec9738b01a0711
SQL
KangSeungKu/SQL-Q_200
/PART3_SQL_실력_다지기/086.sql
UTF-8
449
3.1875
3
[]
no_license
-- 086) 서브 쿼리를 사용하여 데이터 수정하기 UPDATE emp SET sal = (SELECT sal FROM emp WHERE ename = 'ALLEN') WHERE job = 'SALESMAN'; -- UPDATE절, SET절, WHERE절 모두 서브 쿼리 사용 가능 UPDATE emp SET (sal, comm) = (SELECT sal, comm FROM emp WHERE ename = 'AL...
true
c0b7718e7724440383169fe68e644878e3379d5c
SQL
Zeyuuuuuu/UCI-MSWE-FALL2019
/243P/mysql/book_scripts/ch06/6-09.sql
UTF-8
447
3.484375
3
[]
no_license
SELECT vendor_id, invoice_date, invoice_total, SUM(invoice_total) OVER() AS total_invoices, SUM(invoice_total) OVER(PARTITION BY vendor_id) AS vendor_total FROM invoices WHERE invoice_total > 5000; SELECT vendor_id, invoice_date, invoice_total, SUM(invoice_total) OVER() AS total_invoices, S...
true
ab51c32ae3f65ff105e6f1d4c6b90039e8b4a84b
SQL
yyljlyy/spring-mybatis-memcached
/ssm3-springcache-mybatis3-memcached/src/main/resources/database/jpetstore-hsqldb-schema.sql
UTF-8
139
2.5625
3
[]
no_license
-- drop index user; create table user ( id int not null, name varchar(80) not null, constraint pk_profile primary key (id) );
true
9eb6d0d89899929b9cdf3ff83301aa434b58932f
SQL
vrgpathy/HackerRankSQL
/Interviews.sql
UTF-8
1,050
4.1875
4
[]
no_license
select fst.conid,fst.hid,fst.nm,sum(isnull(sec.ts,0)),sum(isnull(sec.tas,0)),sum(isnull(sec.tv,0)),sum(isnull(sec.tuv,0)) from (select contests.contest_id conid,contests.hacker_id hid ,contests.name nm,colleges.college_id colid,challenges.challenge_id cid from contests join colleges on contests.contest_id = colleges....
true
6b3ee5a0ad291a27e8d9748e9b703e6948e745a8
SQL
hecsoft/hecmailing_j25
/admin/sql/install.mysql.utf8.sql
ISO-8859-1
3,118
3.265625
3
[]
no_license
CREATE TABLE IF NOT EXISTS #__hecmailing_groupdetail ( grp_id_groupe int(11) NOT NULL COMMENT 'Id du groupe', gdet_cd_type tinyint(4) NOT NULL COMMENT 'Type de detail (1 : UserName, 2 : UserId, 3 : UserType, 4 : E-mail)', gdet_id_value int(11) NOT NULL COMMENT 'Code de la valeur', gdet_vl_value varchar(50) NOT NULL...
true
89d750b7c7b9e08443447403714b609258221fbf
SQL
lizliu2015/SQL-code
/Cohort retention.sql
UTF-8
882
4.15625
4
[]
no_license
With login as ( SELECT E_mail as user_id, DATE_TRUNC(Date, month) as months_active, min(I_am_a) as profession FROM `pristine-flames-216323.Stratovan.logins` lg Left join `pristine-flames-216323.Stratovan.ProSurgical` ps on lg.e_mail = ps.Email_Address where lg.appid = 5 and i_am_a = 'Surgeon' grou...
true
6a676b39007588afabaa6c935482ea93e0b7a52c
SQL
luizcsleao/feetshoesshop
/banco/BANCO_MYSQL_SAPATARIA.sql
UTF-8
75,367
3.25
3
[]
no_license
CREATE DATABASE `feetshoesdb` DEFAULT CHARACTER SET utf8; USE `feetshoesdb`; CREATE TABLE `tb_cliente` ( `ID_CLI` decimal(10,0) NOT NULL, `NOME_CLI` char(50) NOT NULL, `END` char(100) NOT NULL, `CPF` char(14) NOT NULL, `CIDADE` char(30) NOT NULL, `UF` char(2) NOT NULL, `CEP` char(11) NOT NULL, `EMAIL`...
true
40ae4b0c7eaca2b57931de25eef5877453ff6216
SQL
caobotao/seckill
/src/main/resources/seckill.sql
UTF-8
6,738
3.28125
3
[]
no_license
/* SQLyog Ultimate v12.08 (64 bit) MySQL - 5.7.32-log : Database - seckill ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CH...
true
98424e0f459521aff6c88ac54a0bfaff79e9760a
SQL
Rachecba/ProyectoII-SistemaActivos
/BaseDeDatosScripts/baseDeDatos.sql
UTF-8
14,967
2.96875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.13, for Win64 (x86_64) -- -- Host: localhost Database: progra3_proy2 -- ------------------------------------------------------ -- Server version 5.7.24-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESUL...
true
dc8c3ca30786dc3bb3a5bf00bf9c3b5e8f17478a
SQL
DaniellKondoff/Databases----MS-SQL-Server
/5.Table Relation/04. Self-Referencing.sql
UTF-8
181
3.046875
3
[]
no_license
Create Table Teachers( TeacherID int Primary Key, Name varchar(50) not null, ManagerID int, Constraint FK_TeacherID_ManagerID Foreign Key(ManagerID) References Teachers(TeacherID) )
true
1cc922806c7e8a19975337af8e42632e1f9af050
SQL
naojirouhisada/keijiban
/sample.sql
UTF-8
1,370
3.484375
3
[ "MIT" ]
permissive
CREATE DATABASE keijiban DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; CREATE TABLE up_genre( id MEDIUMINT AUTO_INCREMENT, index (id), `name` VARCHAR(15) , order_number INT ); CREATE TABLE under_genre( id MEDIUMINT AUTO_INCREMENT, index (id), `name` VARCHAR(15), person_name VARCHAR(50), order_number INT, up_g...
true
3444c1f7836b5845f6cea3d5b451f175eb43cdef
SQL
janneys/Leetcode-database
/185-Department top three salaries.sql
UTF-8
663
4.625
5
[]
no_license
select d.name as Department, a.name as Employee, a.Salary from ( select e.*, dense_rank() over (partition by departmentid order by salary desc) as deptrank from employee e ) a join department d on a.departmentid = d.id where deptrank <4 ; SELECT d.Name AS 'Department', e1.Name AS 'Employee', e...
true
aa2a0e5c3b5276a9243dfa7e4810af327e05e7f9
SQL
phesgot/ProjetoPHP
/11 - Visão Geral do MySQL/dbphp7.sql
UTF-8
481
3.015625
3
[]
no_license
USE dbphp7; CREATE TABLE tb_usuario ( idusuario INT NOT NULL AUTO_INCREMENT PRIMARY KEY, deslogin VARCHAR(56) NOT NULL, dessenha VARCHAR(256) NOT NULL, dtcadastro TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP() ); INSERT INTO tb_usuario (deslogin, dessenha) VALUES ('root', '1@45&'); SELECT * FROM tb_usuario; UPDATE ...
true
cff02845529b50698999a78df82c5212ae74cd1e
SQL
pmartinez8241/cal-poly-hardware-store-sql-server
/SLQ Server Files/SQL QUERIES/1A ORDER BY SUPLLIER NAME.sql
UTF-8
335
3.40625
3
[]
no_license
SELECT PRODUCT_T.ProductID, ProductDescription, PRODUCT_SUPPLIER_T.SupplierID, SupplierName, VendorPartID, ProductCost FROM PRODUCT_SUPPLIER_T Inner Join PRODUCT_T on PRODUCT_SUPPLIER_T.ProductID = PRODUCT_T.ProductID Inner Join SUPPLIER_T on PRODUCT_SUPPLIER_T.SupplierID = SUPPLIER_T.SupplierID order by SupplierName,P...
true
e4c65dd9022c7a0602e2ee06de599a2bd4e51660
SQL
An571sha/SQL
/Test.sql
UTF-8
1,316
3.609375
4
[]
no_license
CREATE TABLE film ( FNr INTEGER NOT NULL, Titel varchar2(30) NOT NULL, Regie varchar2(30) NOT NULL, Jahr varchar2(4) NOT NULL, CONSTRAINT pk_Fnr PRIMARY KEY (FNr) ); CREATE TABLE Schauspieler ( SNr INTEGER NOT NULL, SchauspielerName varchar2(30) NOT NULL, CONSTRAINT pk_Snr PRIMARY KEY (SNr) ); CREATE TABLE spieltMi...
true
ddea8185b45c4f20599cfc935f769ee903512aeb
SQL
jessalva7/user-service-node-express
/User service.sql
UTF-8
347
3.453125
3
[]
no_license
CREATE TABLE `users` ( `id` uuid PRIMARY KEY, `full_name` varchar(255), `created_at` timestamp, `country_code` int, `verified` boolean ); CREATE TABLE `countries` ( `code` int PRIMARY KEY, `name` varchar(255), `continent_name` varchar(255) ); ALTER TABLE `users` ADD FOREIGN KEY (`country_code`) REFERE...
true
f23a05b7691f39a779b225397585339eb42e0ad9
SQL
MotherHouse/Benzene
/blog/myblog.sql
UTF-8
1,054
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.11.2.1 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2017 年 09 月 28 日 14:52 -- 服务器版本: 5.0.45 -- PHP 版本: 5.2.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- 数据库: `myblog` -- -- -------------------------------------------------------- -- -- 表的结构 `posts` -- CREATE TABLE `...
true
3f1618da8a6e330853521696b2473ed7178778a3
SQL
DongCaprio/git-shell00
/oraclesql/04.SELECT-그룹함수REPORT-김동진.sql
UTF-8
1,214
4
4
[]
no_license
select * from emp; --1 select deptno from emp group by deptno having count(*) >= 6 order by deptno; --2 select deptno , --decode는 if else와 비슷/ job이 '~~~'과 동일하면 그에맞는 sal을 출력 sum(decode(job, 'CLERK', sal)) CLERK ,-- CLERK, sum(0) MANAGER ,sum(0) PRESIDENT,sum(0) ANALYST,sum(0) SALESMAN sum(dec...
true
0d47f51fde6aa620bcf803b5ab21b7873fc7427a
SQL
rutuls/gsdc_feedback
/Databases/survey_prd.sql
UTF-8
1,549
2.75
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.0.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 10, 2016 at 01:02 PM -- Server version: 10.0.17-MariaDB -- PHP Version: 5.6.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_...
true
5f966bd6e6d5cdeb05f65e2afb17d59ac4b96d2d
SQL
bogdanluckygo/dbt_quickbooks
/models/double_entry_transactions/int_quickbooks__purchase_double_entry.sql
UTF-8
1,859
4.5625
5
[ "Apache-2.0" ]
permissive
/* Table that creates a debit record to a specified expense account and a credit record to the payment account. */ with purchases as ( select * from {{ref('stg_quickbooks__purchase')}} ), purchase_lines as ( select * from {{ref('stg_quickbooks__purchase_line')}} ), items as ( select item....
true
07da6003ee2ea80e2719e24193e40fc0d51821a2
SQL
xtompok/osmawalk
/postgis/direct_candidates2.sql
UTF-8
1,247
4.125
4
[ "MIT" ]
permissive
DROP INDEX IF EXISTS nodes_index_lon; DROP INDEX IF EXISTS nodes_index_lat; CREATE INDEX nodes_index_lon ON nodes(lon); CREATE INDEX nodes_index_lat ON nodes(lat); DROP FUNCTION make_candidates(integer,integer,integer,integer); CREATE OR REPLACE FUNCTION make_candidates(minx int,miny int,maxx int,maxy int) RETURNS TA...
true
2ab81c581bd2bf42a6ec4a7078cd2afa8699a9be
SQL
ClarkQAQ/sql_recommend
/sql/init.sql
UTF-8
1,227
3.96875
4
[]
no_license
-- 删除之前的数据 DROP TABLE "like"; -- 创建一张 收藏 表 u_id 是账户ID, m_id 是具体模型, 可以是产品或者其他 CREATE TABLE "like" ( "id" INTEGER NOT NULL UNIQUE, "u_id" INTEGER NOT NULL, "m_id" INTEGER NOT NULL, PRIMARY KEY("id" AUTOINCREMENT) ); -- 他们共同都有的收藏 -- 创建数据 用户[1] 收藏[1] INSERT INTO like(u_id,m_id) VALUES(1, 1); -- 创建数据 用户[2] 收藏[2] INS...
true
05332b8b85a1340e8cfcb24893a82995d033751a
SQL
Sunshine-ki/BMSTU5_DB
/lab_02/00_join.sql
UTF-8
642
3.75
4
[]
no_license
-- вывести цвет шлема у каждого пользователя. select users.id, device.id, nickname, color from users join device on users.id_device = device.id; -- связка людей и миров. select nickname, name, u.id as user_id, w.id as world_id from users u join world_user w_u on u.id=w_u.id_user join world w on w_u.id_world=w.id ORDER...
true
879208ed51f08510fe27d326be6931f39a691160
SQL
a279113480/xiaoqiang
/hr/WebRoot/db/orcale.sql
UTF-8
401
3.53125
4
[]
no_license
-- Create table create table staff ( id number(4), name varchar2(20), job varchar2(20), phone char(11), email varchar2(20) ) ; -- Create/Recreate primary, unique and foreign key constraints alter table staff add constraint id primary key (ID); -- Create sequence create sequence SEQ_S...
true
7d912eb35119b347a049803528c5a381f9c15de5
SQL
German-Mena/lab3-act-pre-parcial-1
/act extra pre parcial 1.sql
UTF-8
8,915
4.1875
4
[]
no_license
Use BluePrint --1) Por cada colaborador listar el apellido y nombre y la cantidad de proyectos distintos en los que haya trabajado. select CONCAT(CB.Nombre,' ',CB.Apellido) as Colaborador, count(distinct P.ID) as Cantidad from Colaboradores as CB left join Colaboraciones as CO on CO.IDColaborador = CB.ID left j...
true
e44f0173f61308331b2e5f5a3d2f5575c6be8af5
SQL
samyan19/SQL-Scripts
/SAM - CONNECTIONS/CONNECTIONS - Errors in Ring Buffer 2 -MAIN.sql
UTF-8
3,960
3
3
[]
no_license
;WITH connectivity_ring_buffer as (SELECT record.value('(Record/@id)[1]', 'int') as id, record.value('(Record/@type)[1]', 'varchar(50)') as type, record.value('(Record/ConnectivityTraceRecord/RecordType)[1]', 'varchar(50)') as RecordType, record.value('(Record/ConnectivityTraceRecord/RecordSource)[1]', 'varchar(50)') ...
true
ec69824d217ec1e4bf22b3618d76ce40ad1f2d0d
SQL
josepitteloud/VESPA
/regular_reports/sky_view_dashboard/Sky View Dash 03-10 daily reporting proportions.sql
UTF-8
272
2.5625
3
[]
no_license
-- Project Vespa: Sky View Dashboard Report Output 10: Daily reporting for prior week -- This guy was added last, which is why he's #10, even though it's conceptually more aligned with #5 select * from vespa_analysts.vespa_SVD_10_DailySummary_thisweek order by log_date ;
true
c9c0ff9c1160d051b6d668c946b01a23687c1184
SQL
tellor-io/DuneAnalytics
/queries/general-metrics/block-times.sql
UTF-8
960
3.921875
4
[]
no_license
-- -- Tellor Miner Transfers with tellor_submits as ( SELECT logs.block_time, encode(topic3, 'hex') as challenge FROM ethereum."logs" AS logs WHERE contract_address = '\x88df592f8eb5d7bd38bfef7deb0fbc02cf3778a0' AND topic1 = '\x9d2e5f03fc65aff196e0f3a8dd924b24099de487e8cffc888921d420ab196e...
true
f014eebf06418be5a93dd69ab393e00f9cb1d339
SQL
girishgetl/dwhandson
/queries.sql
UTF-8
264
3.40625
3
[]
no_license
select top 5 sales.eventid, sum(sales.pricepaid) from spec_master.sales_part sales inner join master.event event on sales.eventid = event.eventid where sales.pricepaid > 30 and sales.saledate = '2008-01' group by sales.eventid order by 2 desc;
true
b8ead35b74d1ed0c8764429f996d4e6c1cb728f5
SQL
tylerdn7/project-311
/blood_donation.sql
UTF-8
5,356
3.09375
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 19, 2018 at 06:57 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
c14de7451d6c4ddf29d89da4feb7244c7d460a17
SQL
sxinger/grouse
/deid/cms_deid_init.sql
UTF-8
464
2.796875
3
[ "MIT" ]
permissive
-- cms_deid_init.sql: Prepare for de-identification of CMS data -- Copyright (c) 2020 University of Kansas Medical Center whenever sqlerror continue; drop table date_events; whenever sqlerror exit; -- All date fields from all tables create table date_events ( TABLE_NAME VARCHAR2(32), BENE_ID VARCHAR2(15...
true
36b22dc4fbb1f24649d99563c275ae5e265ba87b
SQL
Rajinipoosa/weekend3_codeclan_cinema
/db/codeclan_cinema.sql
UTF-8
392
2.90625
3
[]
no_license
DROP TABLE tickets; DROP TABLE customers; DROP TABLE films; CREATE TABLE customers ( id SERIAL8 PRIMARY KEY, name VARCHAR(255), funds INT4 ); CREATE TABLE films ( id SERIAL8 PRIMARY KEY, title VARCHAR(255), price INT4 ); CREATE TABLE tickets ( id SERIAL8 PRIMARY KEY, film_id INT8 REFERENCES films(id) ON DELETE...
true
b3a879e02afa62037fb74d084825b230afb2b02e
SQL
amit7321/Club-Football-Distributive-DBMS-
/edit_player_table.sql
UTF-8
1,019
2.8125
3
[]
no_license
clear screen ; SET SERVEROUTPUT ON ; SET VERIFY OFF ; create or replace trigger insertPlayerTableSite2 after insert on Player DECLARE begin DBMS_OUTPUT.PUT_LINE('Data is successfully inserted in the Player table') ; end; / DECLARE insertPlayerID number ; insertPlayerName varchar2(25...
true
a1cad137d7c1f88c0aca1a0e8c2fcae79d0a2b86
SQL
fcenobi/PHPFileNavigator
/instalar/mysql/actualizar_220-230.sql
UTF-8
1,018
3.0625
3
[]
no_license
DROP TABLE IF EXISTS bloqueo_ip; CREATE TABLE IF NOT EXISTS bloqueo_ip ( ip varchar(20) NOT NULL default '', PRIMARY KEY (ip) ) ENGINE=MyISAM; DROP TABLE IF EXISTS sesions; CREATE TABLE IF NOT EXISTS sesions ( id varchar(45) NOT NULL default '', tempo int(10) unsigned NOT NULL default '0', contido text NOT NULL, ...
true
9baa6489458f4d87e9a17cbb3c08be4e3a7cd09b
SQL
mirmas/InteractivePrints
/ZIP_UTIL_PKG_1.sql
UTF-8
28,549
2.96875
3
[ "MIT" ]
permissive
CREATE OR REPLACE PACKAGE BODY "ZIP_UTIL_PKG" is -- Interactive Prints using the following MIT License: -- -- The MIT License (MIT) -- -- Copyright (c) 2021 Mirmas IC -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentat...
true
47725060da06c186f0a2cd4abb3485857588a429
SQL
bezoar17/avaamo-event-manager
/db/structure.sql
UTF-8
6,084
3.078125
3
[]
no_license
SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row...
true
affca3b90da01d6d710db88600ef8e96691dbc42
SQL
iamducthanh/demo-layout
/sql/043-product_detail.sql
UTF-8
510
3.03125
3
[]
no_license
create or replace table product_detail ( id varchar(255) not null, location varchar(150) not null, quantity int not null, sale_price bigint not null, status bit default b'1' null, id_attribute_value_id varchar(64) null, product_id_id varchar(64) null, constraint `PRIMARY` primary key (id), constraint FK11run...
true
b4c50a84b8471e717bdee160f47219e29a4066bb
SQL
102400/vcb
/sql/CREATE_TABLE_cart.sql
UTF-8
201
2.65625
3
[]
no_license
CREATE TABLE cart ( id INT NOT NULL AUTO_INCREMENT, itemId INT NOT NULL, -- stacks.itemId purchaserId INT NOT NULL, -- users.userId createTime DATETIME NOT NULL DEFAULT NOW(), PRIMARY KEY(id) );
true
4c4fdc8fa2762509de2e0eacf4cc11e01c162d8d
SQL
marlondell/CRUD
/crud_procs_ins.sql
UTF-8
21,071
3.875
4
[]
no_license
/* PROCEDURE PARA INSERÇÃO DE DEPARTAMENTOS */ DROP PROCEDURE IF EXISTS PROC_INSERE_DEPATAMENTO; DELIMITER $$ CREATE PROCEDURE PROC_INSERE_DEPATAMENTO (IN ins_desc_departamento VARCHAR(30), OUT msg VARCHAR(50)) BEGIN -- VERIFICA SE DEPARTAMENTO JÁ EXISTE NA TABELA DECLARE verifica_departamento INT DEFAULT 0; ...
true
4b5ea0afe4ef7edc1d59f3e9bb90ddad2546e203
SQL
xinyunzh/MeasuringSuccess
/Database/script/createDB_and_firstinsert/3_CreateViewBaselineCheckin.sql
UTF-8
4,012
3.953125
4
[]
no_license
--create a view of baseline data and the 2018 Q4 checkin data create view baseline_checkin as select s1.*,s2.* from (select d.*, e.accessemployment as accessemployment_baseline, e.employmentstatus as employmentstatus_baseline, e.employmentstartdate as employmentstartdate_baseline, e.employmentretention...
true
6e52401cc2542f448207ed617555ffd8188d057c
SQL
wspr-ncsu/visiblev8
/post-processor/mega/postgres_schema.sql
UTF-8
5,585
3.625
4
[ "BSD-2-Clause" ]
permissive
-- WARNING: this schema depends on the `urls` tables from the VPC Postgres schema being available! CREATE TABLE IF NOT EXISTS urls_import_schema ( id SERIAL PRIMARY KEY NOT NULL, sha256 BYTEA UNIQUE NOT NULL, url_full TEXT, url_scheme TEXT, url_hostname TEXT, url_port TEXT, url_path TEXT, ...
true
c956867f7acf6f524543e2afd0793c4357f18d20
SQL
MCharron93/Amazen
/realdbSetup.sql
UTF-8
1,262
3.6875
4
[]
no_license
-- CREATE TABLE profiles( -- id VARCHAR(255) NOT NULL, -- name VARCHAR(255) NOT NULL, -- email VARCHAR(255) NOT NULL, -- picture VARCHAR(255) NOT NULL, -- PRIMARY KEY (id) -- ) -- CREATE TABLE products( -- id INT NOT NULL AUTO_INCREMENT, -- name VARCHAR(255) NOT NULL, -- isAvailable TINYINT NOT NULL, ...
true
162aee48abdfc6c2f9f3eaa6ecca3237e354f129
SQL
listerouge/Endemiadb
/mysql/requete/20160304_SISallfieldsv3.sql
UTF-8
4,768
2.90625
3
[]
no_license
--Debut d'intégration du header pour SQL>CSV SELECT '"internal_taxon_id'"', '"generationlength.range"', '"PopulationReductionPast.range"', '"PopulationReductionFuture.range"', '"PopulationReductionPastandFuture.range"', '"PopulationReductionPastBasis.value"', '"Station"', '"Date observation"', '"Observateur"', '"Source...
true
58640dc922fd2cff3818b9b55fb041794659979f
SQL
MarkJaroski/bricolage
/sql/Pg/Bric/Util/AlertType/Parts/Rule.sql
UTF-8
843
3.546875
4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
-- Project: Bricolage -- -- Target DBMS: PostgreSQL 7.1.2 -- Author: David Wheeler <david@justatheory.com> -- -- -- SEQUENCES. -- CREATE SEQUENCE seq_alert_type_rule START 1024; -- -- TABLE: alert_type_rule -- CREATE TABLE alert_type_rule( id INTEGER NOT NULL ...
true
578a6fd068b2693c01b7d528c80bc8dd72bc16dc
SQL
Crazy-Dog/Itrasition
/generator/Itransition_1_task_2016-12-07.sql
UTF-8
3,232,642
2.578125
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.9) # Database: Itransition_1_task # Generation Time: 2016-12-07 16:27:36 +0000 # *************************************...
true
9ea93a3ba04ef7a3f3fbdf1f2ebd2c93ebbf4cdc
SQL
deatil/laket-operation-log
/resources/database/install.sql
UTF-8
1,055
2.828125
3
[ "Apache-2.0" ]
permissive
DROP TABLE IF EXISTS `pre__operation_log`; CREATE TABLE `pre__operation_log` ( `id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '日志ID', `admin_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0' COMMENT '管理账号ID', `admin_username` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT '' COMM...
true
d2a6b3ec4b398f4c34b0c47d25a077133de340c1
SQL
yani5752000/biblion
/express-server/db/schema/03_books.sql
UTF-8
336
3.265625
3
[]
no_license
DROP TABLE IF EXISTS books CASCADE; CREATE TABLE books ( id SERIAL PRIMARY KEY NOT NULL, category_id INTEGER REFERENCES categories(id) ON DELETE CASCADE, title VARCHAR(255) NOT NULL, author VARCHAR(255) NOT NULL, pages INTEGER NOT NULL DEFAULT 0, cover_url VARCHAR(255) NOT NULL DEFAULT 'https://i.imgur.com...
true
5610067826541aa36554ef89e912a3d38b7eb221
SQL
devyol/Reportes
/MyReports/sql Reportes Ipisa Sept 2020.sql
UTF-8
11,901
3.90625
4
[]
no_license
--*****************************CIERRE DE ESTACIONES******************* select ps.id, ps.user_id, ps."name" as sesion, rpu."name" as usuario, po.date_order as fecha, prc."name" as cliente, prc.vat as nit, ai."number" as factura, po.pos_reference as pedido, case when po.state = 'draft' then 'Nuevo' when po.state = 'can...
true
a5ac07ecb2fa52ae9343fb9f47851aa2b698d43a
SQL
gridscaleinc/mitty-server
/db/activity.sql
UTF-8
392
2.71875
3
[]
no_license
drop table activity cascade; create table activity ( id serial8 NOT NULL PRIMARY KEY, itle varchar(200), main_event_id int8, memo text, owner_id int8, created timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, ...
true
e598061947b9fce5d3be0d9d3451939fe7424185
SQL
nckdorsett/Dev10GitRepo
/exercise-aggregation.sql
UTF-8
5,720
4.75
5
[]
no_license
use gravel_family; -- Solve each task by writing a query below the task description. -- Each task describes the expected result. -- Unfortunately, tasks must be verified manually. :( -- Example: -- Count the number of customer in Toronto -- Expected: 14 select count(*) from customer where city = 'Toronto'; -- How m...
true
2e3dd711a89b1ae0837de01d43cad0ab8d82cd38
SQL
MohamedGaballaPortfolio33/myPortfolio
/ImprovedOracleSQLProject/OldImprovedFilesForOracleProject/Using_INNER_JOINS.sql
UTF-8
190
3.265625
3
[]
no_license
/* Selecting columns from the PLAYER_DATA using inner join*/ SELECT p.firstname, p.lastname, t.city, t.teamname FROM PLAYER_DATA p INNER JOIN SPORTS_TEAM t ON(T.Teamid = p.Teamid);
true
4fd58269a4cb51eabd974879cd4ee036cb3ad120
SQL
nguyenthao96/QuanLiKhachSan
/SQL_Khachsan/thutucdangkiphong.sql
UTF-8
2,637
3.03125
3
[]
no_license
--Xem chi tiết thiết bị của phòng alter proc xemthietbi @maph char(10) as begin select *from chitietsudungthietbi where maphong=@maph end xemthietbi '801' --Xem chi tiết khách hàng sử dụng dịch vụ create proc xemchitietdichvu @maphieu char(10) as begin select *from chitietdungdichvu where maphieu=@...
true
a229401adb163bee478d402b08a14fc2d2a16eb2
SQL
200351/bitcoin
/oracle_sql/transactioninput.sql
UTF-8
790
3.859375
4
[]
no_license
DROP TABLE "BLOCKINDEX"."TRANSACTIONINPUT" CASCADE CONSTRAINTS; / CREATE TABLE "BLOCKINDEX"."TRANSACTIONINPUT" ( "INPUTID" NUMBER(19,0) NOT NULL ENABLE, "ADDRESS" VARCHAR2(255 CHAR), "COINS" NUMBER(19,0), "TRANSACTIONID" NUMBER(19,0) NOT NULL, PRIMARY KEY ("INPUTID") USING INDEX ...
true
29d2d299f7782ac3bed825c1f048f2b49e92b88a
SQL
vladnerad/rest_sample
/create_schema.sql
UTF-8
1,114
4.0625
4
[]
no_license
/* Базу данных должен создать администратор СУБД и назвать её как удобно. У администратора наверняка есть паттерн для присвоения имен БД от кандидатов */ DROP TABLE IF EXISTS users CASCADE; CREATE TABLE users ( login VARCHAR(255) PRIMARY KEY, pass VARCHAR(255) NOT NULL, name VARCHAR(255) NOT NULL DEFAULT 'ROLE_USE...
true
983796a3d095365cb3b487a99f1ea071c812d1f6
SQL
dev-zephyr/PLAN-T
/SQL/SQL_01-07/gcomment2.sql
GB18030
2,094
3.421875
3
[]
no_license
-------------------------------------------------------- -- - -1-07-2021 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Table GCOMMENT2 -------------------------------------------------------- CREATE TABLE "BIT"."GCOMMENT2" ( "G...
true
502c064ba460bbc544c7f1ace5782c39408f233f
SQL
ivadimn/sql
/project/help_table.sql
UTF-8
3,812
3.0625
3
[]
no_license
# вспомогательные таблицы для генерации данных USE hunter; # временные таблицы для генерации фамилии имени и отчества # мужские DROP TABLE IF EXISTS fsn_m; CREATE TABLE fsn_m ( id SERIAL, name VARCHAR(32), ename VARCHAR(32) ); INSERT INTO fsn_m (name, ename) VALUES ('Смирнов', 'smirnov'), ('Иванов','iavnov'), ...
true
ade690b4283ccd8adfcb4f1d6e0db91d693b3339
SQL
vierge/bootcampx
/3_queries_group-by/0_total_assignment_time_by_student.sql
UTF-8
329
4
4
[]
no_license
-- GET the total submitted assignments by currently enrolled students SELECT students.name as student, count(assignment_submissions.id) as total_submissions FROM assignment_submissions JOIN students ON students.id = student_id WHERE students.end_date IS NULL GROUP BY students.name HAVING count(assignment_submissions.i...
true
63b5e764857d953858f372e4ac21f7d83e8ea1e5
SQL
jorasofra/-MIA-Practica1
/Scripts/[MIA]Consultas.sql
UTF-8
3,744
4.1875
4
[]
no_license
USE Practica1; /*CONSULTA 1*/ SELECT h.nombreHospital, d.direccion, COUNT(v.codVictima) FROM Hospital AS h INNER JOIN VictimaHospital AS vh ON vh.codHospital = h.codHospital INNER JOIN Victima AS v ON v.codVictima = vh.codVictima INNER JOIN Direccion AS d ON d.codDireccion = h.codDireccion WHERE v.codEstado...
true
de360cc24136bb79a611132763ab4f915f01d34d
SQL
ponkotuy/ponkotuy-travel
/conf/db/migration/default/V2016_4_7_1__fist.sql
UTF-8
743
3.546875
4
[ "Apache-2.0" ]
permissive
CREATE TABLE destination( id BIGINT NOT NULL, `name` VARCHAR(256) NOT NULL, money INT, `close` BOOLEAN NOT NULL, created BIGINT NOT NULL, PRIMARY KEY(id) ) ENGINE=InnoDB, DEFAULT CHARSET=utf8mb4; CREATE TABLE `session`( id BIGINT NOT NULL, created BIGINT...
true
d9fdd417381bc21268fada342825ab1e2aadd728
SQL
sunwei388/my-stuff
/flickr/src/main/resources/mysql-schema.sql
UTF-8
704
3.328125
3
[]
no_license
drop table photos; drop table Spitter; drop table Spittle; create table Spittle ( id integer not null auto_increment unique, message varchar(140) not null, created_at timestamp not null, latitude double, longitude double ); create table Spitter ( id integer not null auto_increment unique, username varchar(20) ...
true
210b2c4eb2be6c73e5016eb34a3b99b57d7da2bb
SQL
JCasasChacaliaza/Examen
/EXAMEN/Tables/ALQUILER.sql
UTF-8
551
2.6875
3
[]
no_license
CREATE TABLE examen.alquiler ( idalq NUMBER(*,0) NOT NULL, fecinialq DATE NOT NULL, fechfinalq DATE NOT NULL, impomenalq FLOAT(2) NOT NULL, idinqu NUMBER(*,0) NOT NULL, idvivi NUMBER(*,0) NOT NULL, renalq NUMBER(*,0) NOT NULL, CONSTRAINT alquiler_pk PRIMARY KEY (idalq), CONSTRAINT alquiler_alquiler FO...
true
c7e24148ec592179efc1ee7d3d4e28a25538742c
SQL
andrewburw/test-task-products
/dbproduct.sql
UTF-8
2,809
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jan 28, 2021 at 03:43 PM -- Server version: 10.3.22-MariaDB-log -- PHP Version: 7.1.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER...
true
2ab55ec4c8560ad0b26e56bc54b1e04bb4c0838f
SQL
samszo/tagaudio
/tag_audio.sql
UTF-8
546
3.109375
3
[]
no_license
CREATE TABLE medias ( id_media int(11) NOT NULL AUTO_INCREMENT, url longtext NOT NULL, PRIMARY KEY (id_media) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; CREATE TABLE media_tags ( id_media int(11) NOT NULL, id_tag int(11) NOT NULL, debut time NOT NULL, fin time NOT NULL, poids enum('1','2','...
true
9ad36593efdbabaad33c0fb2a9b969efe28dade8
SQL
Xlavatski/taxi-transport
/baza/iwa_2017_kz_projekt_kreiranje.sql
UTF-8
5,552
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 iw...
true
b40ea34c0e194aca95943d34d79c7fa6f8606286
SQL
konstantinov90/calc_factory
/sql_scripts/Vertica/lines_vertica.sql
UTF-8
1,491
2.875
3
[]
no_license
select branch.node_code_from f1, branch.node_code_to t1, branch.branch_num as n_par, branch.kt kt, 0 as kt_im, 0 as div, branch.branch_type, 0 as area, branch.hour, 0 as state, branch.R, branch.X, branch.B, branch.G, 0 as B_from, 0 as B_to, 0 as losses from ( select h.hour, b.node_code_from, b.node_code_to, b.branch_nu...
true
4e5a18af3f754a6d4a7b83a03922b9b8fa7474f2
SQL
Nandhini3198/Tweetapp
/tweetapplication/tweetapplication/dbscripts/tweetapp_schema.sql
UTF-8
940
3.765625
4
[]
no_license
create database tweetapp; use tweetapp; CREATE TABLE user( us_first_name varchar(60) not null, us_last_name varchar(60) , us_gender varchar(60) not null, us_dob date null, us_email varchar(60), us_password varchar(60) not null, us_isactive boolean, primary key(us_email)); create table post( id int auto_increment, me...
true
86141ad0a1d8adeecf1ef32748220a5b133c2493
SQL
du4/JD2016-08-22
/src/by/it/voronovich/JD03_01/Voronovich_project.sql
UTF-8
3,188
3.53125
4
[]
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 Voronovic...
true
255f0effb2b4221d1028c7e60d032e61ab4c5e25
SQL
prasanth260295/mysql
/coresoft-product-database/src/main/resources/oracle/4.3.0-16/Loans_Tickler_Officer_Group_4.sql
UTF-8
405
2.953125
3
[]
no_license
CREATE TABLE TICKLER_USER_GROUPS (ID NUMBER(15,5) NOT NULL ENABLE, GROUP_ID NVARCHAR2(50), GROUP_NAME NVARCHAR2(50), USER_ID NVARCHAR2(50), CREATED_DATE DATE, CREATED_BY NVARCHAR2(50), DATE_USER_ADDED DATE, DATE_USER_DISABLED DATE, STATUS NUMBER(5), CONSTRAINT TICKLER_USER_GROUPS_PK PRIMARY KEY (ID)); ...
true
c068a916e2c5937113dc2b5804fdcd4da7bdf66a
SQL
manoj21kothamasu/oracle-scripts
/sql/cursor_xplan.sql
UTF-8
6,148
3.71875
4
[ "MIT" ]
permissive
set echo off verify off -- This script is a wrapper for DBMS_XPLAN.DISPLAY, using the -- GV$SQL_PLAN_STATISTICS_ALL fixed view as the plan-table source. It's intended -- as a RAC-aware replacement for the DBMS_XPLAN.DISPLAY_CURSOR function. -- -- Usage: @cursor_xplan [sql_id] [sql_child_number] [instance_number] ...
true
3a5da6eb07a98d6c4b4359feb5a0c39d296068c5
SQL
evectors/Evectors-ERM
/core/sql_files/update_005.sql
UTF-8
802
3.15625
3
[ "BSD-3-Clause" ]
permissive
DROP TABLE `core_relationshiptagcorrelation`; CREATE TABLE `core_relationshiptagcorrelation` ( `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, `object_id` integer NOT NULL, `object_tag_id` varchar(255) NOT NULL, `object_tag_schema_id` integer NULL, `weight` integer NULL ) ; ALTER TABLE `core_relat...
true
937d41bc01f4f8401365e501165c778aa0dc41e6
SQL
MariusMM2/si_mand2
/Borger/borger.sql
UTF-8
1,049
4.0625
4
[]
no_license
PRAGMA FOREIGN_KEYS = ON; DROP TABLE IF EXISTS BorgerUser; CREATE TABLE BorgerUser ( Id INTEGER PRIMARY KEY AUTOINCREMENT, UserId INTEGER NOT NULL, CreatedAt DATE DEFAULT CURRENT_TIMESTAMP ); DROP TABLE IF EXISTS Address; CREATE TABLE Address ( Id INTEGER PRIMARY KEY AUTOINCREMENT,...
true
626073257adafcf84518428df09058fa9e09a5eb
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day22/select1935.sql
UTF-8
191
2.78125
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-21T19:35:00Z' AND timestamp<'2017-11-22T19:35:00Z' AND SENSOR_ID='2217e9c5_5272_4270_ad79_a8553b4e95f1'
true
1b73c915eded3d97e77c5631855de92b9e346e9c
SQL
almir93/car_dealership_database
/global schema.sql
UTF-8
3,164
3.34375
3
[]
no_license
CREATE database projectschema; /* Creation and insertion of attributes in entity sets for Global Schema*/ CREATE TABLE MODEL ( model varchar(255) PRIMARY KEY, price varchar(255), car_type varchar(255), gas_mileage int, seat int, car_engine double ); INSERT INTO MODEL (model, price, car_type, gas_m...
true
76dfef3845239c6d5ee0a9b4573a9c6bb943279d
SQL
kangyahya/usm
/usm (1).sql
UTF-8
8,531
3.171875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 06 Jun 2020 pada 13.29 -- Versi Server: 10.1.29-MariaDB -- PHP Version: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
7a2d66f95a97298e9344256a08bf2387e18752ea
SQL
framework-niezg/simple-web
/src/main/resources/sql/permission/Oracle_1.sql
UTF-8
1,737
3.34375
3
[]
no_license
-- 权限相关表 create table t_user(id int not null,account varchar2(30) not null,name varchar2(50) not null,password varchar2(80) not null,status varchar2(15) not null,create_time DATE ,modify_time DATE,primary key (ID)); create table t_role(id INT not null,name varchar2(30) not null,description varchar2(100),create_time D...
true
d0fcf0ff496d2d2a7c7bd3b559b1f7262caa57e2
SQL
Ariah-Group/Research
/db_scripts/main/KC-RELEASE-3_2-SCRIPT/mysql/dml/KR_DML_01_KRACOEUS-4976_B000.sql
UTF-8
14,189
2.5625
3
[ "Apache-2.0", "ECL-2.0" ]
permissive
DELIMITER / INSERT INTO KRIM_PERM_ID_BS_S VALUES(NULL) / -- Create new Permissions INSERT INTO KRIM_PERM_T (PERM_ID, OBJ_ID, VER_NBR, PERM_TMPL_ID, NMSPC_CD, NM, DESC_TXT) VALUES((SELECT (MAX(ID)) FROM KRIM_PERM_ID_BS_S), UUID(), 1, (SELECT PERM_TMPL_ID FROM KRIM_PERM_TMPL_T WHERE NM = 'Default' AND NMSPC_CD='KUALI'), ...
true
8b345347413fcf3827e56126466e29bc5aa06070
SQL
gurjepaul/MusicLibraryDatabase
/MusicLibraryDatabase.sql
UTF-8
14,203
3.8125
4
[]
no_license
-- -- File generated with SQLiteStudio v3.2.1 on Fri Mar 5 18:39:40 2021 -- -- Text encoding used: System -- PRAGMA foreign_keys = off; BEGIN TRANSACTION; -- Table: ALBUM CREATE TABLE ALBUM ( AlbumID INT CHECK (AlbumID >= 10000 and AlbumID <= 99999), SongCount INT NOT NULL CHECK (SongCount > 0), ...
true
e189595dae9e622f5d0fd8175a28eb1be3e67c92
SQL
shangshanruoshui77/fula
/server/conf/1.sql
UTF-8
5,378
3.90625
4
[ "MIT" ]
permissive
DROP TABLE IF EXISTS `customer_info`; CREATE TABLE customer_info ( id BIGINT(20) UNSIGNED AUTO_INCREMENT NOT NULL COMMENT '自增主键ID', name VARCHAR(20) NOT NULL COMMENT '用户名', role_id VARCHAR(200) NOT NULL COMMENT 'roles,可以是多种 role', la...
true
9245726735f130aef5a23698c21863d58ac246a5
SQL
andrea-gasparini/progetto-linguaggi-tecnologie-web
/back-end/database/structure.sql
UTF-8
11,204
3.046875
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : postgres Source Server Type : PostgreSQL Source Server Version : 120002 Source Host : localhost:5432 Source Catalog : maindb Source Schema : public Target Server Type : PostgreSQL Target Server Version : 120002 File Enco...
true
4e0667d5eebbedbb989358c6ecb635904f98d896
SQL
future4code/Vinicius-Abuhid
/semana18-19/projeto/labook/comandosDoBanco.sql
UTF-8
900
3.125
3
[ "MIT" ]
permissive
CREATE TABLE UsersLabook ( id VARCHAR(255) PRIMARY KEY, email VARCHAR(255) NOT NULL, name VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL ); CREATE TABLE RelationsLabook ( id_inviter VARCHAR(255) NOT NULL, id_invited VARCHAR(255) NOT NULL, FOREIGN KEY (id_inviter) REFERENCES UsersLabook(...
true
43ac35bc9bdaa6f06fae73c475c7645c6ab0cdb7
SQL
vagv19/appReclutamiento
/mensaje.sql
UTF-8
780
3.59375
4
[]
no_license
CREATE TABLE mensaje ( idmensaje integer NOT NULL, mensaje text, idempleadoenvia integer, idempleadorecibe integer, status integer NOT NULL DEFAULT 1, CONSTRAINT pkidmensaje PRIMARY KEY (idmensaje ), CONSTRAINT fkidempleadoenvia FOREIGN KEY (idempleadoenvia) REFERENCES empleado (idempleado) MATCH S...
true
7f51424ee22755bf463dd85d5342d1fffeb40807
SQL
leamancrews/oracle_queries
/ap_invoice_lines.sql
UTF-8
7,944
2.59375
3
[]
no_license
select haou.name "Operating Unit", s.segment1 "Supplier Number", ass.vendor_site_code "Site Name", ai.invoice_num "Invoice Num", -- ail.line_number "Num", ail.line_type_lookup_code ...
true
4bb7781c9a365acc1f98131ee66cc57ccddb89aa
SQL
Javasick/HSA-module9
/example.sql
UTF-8
3,874
3.609375
4
[]
no_license
# Open two mysql clients, run following scripts in window from comment prefix ################################################################### # 1. Dirty reads /*(1)*/ SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; /*(2)*/ START TRANSACTION; /*(2)*/ UPDATE example SET value = 'updated1' WHERE id = 1; /*...
true
6acae726a6dc04c8adf1374be52493cae51e3137
SQL
demain18/phpboard
/boardcopy.sql
UTF-8
4,888
3.109375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- 생성 시간: 20-01-31 06:51 -- 서버 버전: 10.3.16-MariaDB -- PHP 버전: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE...
true
bfc0306d2527edbe5b87b36895987d0140233d6b
SQL
jalxes/poc-universidade
/scripts/oneScriptToRuleThemAll.sql
UTF-8
15,485
4.0625
4
[]
no_license
DROP SCHEMA IF EXISTS `db` ; -- ----------------------------------------------------- -- Schema db -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `db` DEFAULT CHARACTER SET latin1 ; USE `db` ; -- ----------------------------------------------------- -- Table `instituicao` -- ----...
true
138f24ce8cd3255f0d1cdd08c87e3fad070aaa54
SQL
QuatIT/QuatMedics
/table.sql
UTF-8
3,269
2.984375
3
[]
no_license
create table `wardMeds`( `medID` int(255) null primary key auto_increment, `assignID` varchar(255) null, `patientID` varchar(255) null, `staffID` varchar(255) null, `wardID` varchar(255) null, `medicine` varchar(255) null, `dosage` varchar(255) null, `doe` timestamp, )engine = InnoDB; create table `Prices`( `...
true
2448c85eb83ad396e42aa2dce536f55295353ef0
SQL
mullerpaul/miscellaneous_projects
/kenken4by4.sql
UTF-8
1,924
3.8125
4
[]
no_license
set timing on linesize 100 pages 50 col solutions for a12 CREATE TABLE numbers(c NUMBER); INSERT INTO numbers (c) VALUES (1); INSERT INTO numbers (c) VALUES (2); INSERT INTO numbers (c) VALUES (3); INSERT INTO numbers (c) VALUES (4); rem this query can solve 4by4 kenken puzzles rem ensure that the NUMBERS t...
true
205ae04373c1741500a9e0219557a3496e0c492e
SQL
zhilangtaosha/BBG
/SQL/2013-12-10_12月8日173中类销售.sql
UTF-8
4,237
3.34375
3
[]
no_license
SELECT T.LOCATION, SUM(T.UNITS) QTY, SUM(T.TOTAL_RETAIL / (1 + (CASE WHEN T.TRAN_CODE = 3 THEN T.VAT_RATE / 100 ELSE 0 END))) AMT, SUM(T.TOTAL_COST / (1 + (CASE WHEN T.TRAN_CODE = 3 THEN (SELECT VAT_RATE / 1...
true
535499df93717e5fe8832c006fc297bba92ced97
SQL
amaruprety1/Database-Build
/universitybuildtablevalues.sql
WINDOWS-1250
3,386
3.03125
3
[]
no_license
/* Amar Uprety University Archaeology museum Table insert value April 25 2017 */ insert into Grant_source Values ('NSF'), ('Carnegie Foundation') Insert into Employee Values ('001', 'Idaho', 'Smith', '999-555-0001'), ('002', 'Leslie', 'Lewis', '999-555-0002'), ('003', 'Indigo', 'Jones', '999-555-0...
true
b29a2888c94543796b8dd0e7837ae134dcadd51d
SQL
bellmit/SVNrepo
/DBScripts/Release_20170429-UOB/Pricing/23.sp_insert_data_for_date_and_month.sql
UTF-8
763
3.4375
3
[]
no_license
## Working Day generation Queries SET SQL_SAFE_UPDATES = 0; ## delete from invdb.inv_date_table; ## call rbsa.p_genDate('1970-01-01','2021-01-01'); ## delete from invdb.inv_monthly_date_table; ## insert into invdb.inv_monthly_date_table(businessdateYYYYMM,first_businessdate,last_businessdat...
true
35dc1accb649e065a35bb7a8a6a390f3b49469ac
SQL
josuecarames/canvas
/canvas_db/Minor Queries/outcomesReport.sql
UTF-8
4,425
3.9375
4
[]
no_license
USE canvas; SELECT user_dim.name AS Name , pseudonym_dim.sis_user_id AS 'G#' , enrollment_term_dim.name AS 'Term Name' , SUBSTR(course_dim.sis_source_id, -6, 6) AS 'Term Code' , CASE WHEN SUBSTR(course_dim.sis_source_id, 1, 1) = 'X' THEN SUBSTR(course_section_dim.sis_source_id, 1, 5) ELSE SUBSTR(course_dim.si...
true
06e5102c840bffbeffe5edcaa28df56e151003b2
SQL
AcruxPDE/SIGEIN50
/SistemaSIGEIN/SIGE.DataBase/IDP/Stored Procedures/SPE_OBTIENE_PRUEBA_POR_PUESTO.sql
UTF-8
762
3.296875
3
[]
no_license
-- ============================================= -- Proyecto: Sistema SIGEIN 5.0 -- Copyright (c) - Acrux - 2015 -- Author: Juan Castillo -- CREATE date: 13/01/2016 -- Description: Obtiene las pruebas que corresponden al puesto -- ============================================= CREATE PROCEDURE [IDP].[SPE_OBTIENE_PRUEB...
true
a12b33ef5635cf3a9349086b996a54cca01848fe
SQL
vgoel38/PQET
/inputs/really_final_outputs/original/without_nlj/1a.sql
UTF-8
4,142
2.59375
3
[]
no_license
QUERY PLAN -------------------------------------------------------------------------------------------------------------------------------------------------...
true
d144b50f438e1d6be5c77a1af5959b2223e4e216
SQL
viliusgec/nfqtask
/nfqsite.sql
UTF-8
2,401
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 01, 2020 at 03:44 PM -- 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
25f976b8e3a2a18ea0c7ff6c46e09ab05371809f
SQL
rmhabibb/pbgf17
/db_pbgf2017.sql
UTF-8
4,401
2.6875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 28, 2017 at 03:21 PM -- Server version: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
a08374616d7cf35db03286fb0983955037e57c4d
SQL
1stjavawizard/staffmanagementsystem
/staffmanagement.sql
UTF-8
3,593
3.171875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Mar 14, 2020 at 12:48 AM -- Server version: 5.7.19 -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true