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
12314c6da1282f0d406fa211bcc08dc491263d9b
SQL
KarenJF/leetcode_sql
/easy/1113_ReportedPosts.sql
UTF-8
2,136
4.46875
4
[ "MIT" ]
permissive
/* Table: Actions +---------------+---------+ | Column Name | Type | +---------------+---------+ | user_id | int | | post_id | int | | action_date | date | | action | enum | | extra | varchar | +---------------+---------+ There is no primary key for this table, it may h...
true
0c4dd99f5ad589b458ec0398279edc85e274cda7
SQL
maranz/MuchMoneyDataBase
/storedProcedure/MZ_spMONEYDl_project .sql
UTF-8
1,800
3.9375
4
[]
no_license
DROP PROCEDURE IF EXISTS MZ_spMONEYDl_project; DELIMITER // CREATE PROCEDURE MZ_spMONEYDl_project ( in YEAR int ,in USERID varchar(36) ,in PROJECTID varchar(36) ,in APPID varchar(36) ) BEGIN SET @YEAR = IFNULL(YEAR, 1900); SET @USERID = TRIM(IFNULL(USERID, "")); SET @PROJECTID = TRIM(IFNULL(PROJECT...
true
98afefec91341e640780e6de5134212f54689217
SQL
acuonghero/C0221G1-NguyenVanCuong
/Module3/Case_Study_2/furama_gradle/src/main/webapp/furama_db.sql
UTF-8
5,326
3.5625
4
[]
no_license
-- Tạo bảng drop database if exists furama_db; create database furama_db; use furama_db; -- SET SQL_SAFE_UPDATES = 0; -- bảng vị trí create table `position`( position_id int auto_increment primary key, position_name varchar(45) null ); insert into `position` (position_name) values ("Le Tan"), ("Phuc Vu"), ("Chuyen ...
true
f1d2bd68fa5e9364526a28bc4d0a844cfe22c823
SQL
danmadeira/apex_auth_custom
/DDL/Table/PAGINA~UNQ.sql
UTF-8
213
2.53125
3
[ "MIT" ]
permissive
PROMPT ALTER TABLE pagina ADD CONSTRAINT pagina_pk PRIMARY KEY ALTER TABLE pagina ADD CONSTRAINT pagina_pk PRIMARY KEY ( pagina_id ) USING INDEX STORAGE ( NEXT 1024 K ) /
true
9e86641054fb91a833726e89ffee7827f754f5ff
SQL
CUBRID/cubrid-testcases
/sql/_13_issues/_10_1h/cases/bug_2878_add_months.sql
UTF-8
703
3.21875
3
[ "BSD-3-Clause" ]
permissive
--+ holdcas on; prepare s from 'select add_months (?, ?) into :result'; execute s using '05/17/2010', 1; deallocate prepare s; evaluate add_months (date'05/17/2010', 1) into :expected; select case when :expected = :result then 'YES' else 'NO' end as case1; prepare s from 'select add_months (?, ?) into :result'; execut...
true
c12c49a15400641de1cf7cc99f7d3ce39dd2a3d3
SQL
olivia-sin/hulahoop
/oldScripts/User_SelectIdByEmailAddress.sql
UTF-8
159
3
3
[]
no_license
CREATE PROCEDURE User_SelectIdByEmailAddress ( @emailAddress nvarchar(max) ) AS SELECT TOP 1 U.UserId FROM dbo.User U WHERE U.EmailAddress = @emailAddress
true
2729d1c1d5b8efa7886104253d245364bb312506
SQL
matt29880/farztev-admin-backend
/src/main/resources/db/migration/V3__trip.sql
UTF-8
319
2.609375
3
[]
no_license
CREATE TABLE `trip` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(60) NOT NULL, `summary` TEXT DEFAULT NULL, `start` DATE DEFAULT NULL, `end` DATE DEFAULT NULL, `thumbnail_id` bigint(20), `online` tinyint(4) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
true
eb7b3415eb8fe4ac92c24a7ee80d1fb888dcf994
SQL
conimorales/SQLESENCIAL
/peticiones_news.sql
UTF-8
4,931
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 02-03-2016 a las 16:14:39 -- Versión del servidor: 10.1.10-MariaDB -- Versión de PHP: 5.5.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
true
c8dcf75f96b787d025e82bf54711b66be42ee402
SQL
alexalmeida52/myHealth
/migrations/20210304041816_usuario.sql
UTF-8
529
2.671875
3
[ "MIT" ]
permissive
-- Add migration script here CREATE TABLE usuario( id uuid NOT NULL, PRIMARY KEY (id), nome TEXT NOT NULL, senha TEXT NOT NULL, tipo TEXT NOT NULL, email TEXT UNIQUE NOT NULL, criado_em timestamptz NOT NULL ); INSERT INTO usuario VALUES('3c639f2c-ab02-4c54-b751-0bfd7ff5c26d', 'José Alex', '...
true
4684f01adf95552467145a07f27c683a61d136c6
SQL
ChunhuoQ/Qbaba
/src/main/mySQL/m03/d29/Qbaba/销售数据库.sql
UTF-8
1,813
3.703125
4
[]
no_license
CREATE DATABASE sale; CREATE TABLE sales ( empid INT, proid INT, num FLOAT, saDate DATETIME ) INSERT INTO sales(empid,proid,num,saDate) VALUES(1234,567890,33.5,'2004-12-21'), (1234,598701,44.8,'2004-11-21'), (1234,598701,45.2,'2004-10-01'), (1234,567890,66.5,'2004-9-21'), (3456,789065,22.5,'2004-10-...
true
732e0996dab16f1ae81ca074166e3e8110981968
SQL
nik-dim/softeng
/statements.sql
UTF-8
3,408
4.03125
4
[]
no_license
create table test.blog ( id int auto_increment primary key, title varchar(45) null, content varchar(255) null ); create table test.product ( id bigint(100) auto_increment, name varchar(100) not null, description varchar(300) not null, category varchar(20) not ...
true
f9102a9ab30295b7314383bce0bec8c46b1e4915
SQL
yashagarwal1999/IIST-Book-Grant-Final
/roles.sql
UTF-8
1,873
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 19, 2019 at 10:36 AM -- Server version: 5.5.36 -- PHP Version: 5.4.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_S...
true
9323df2a2e8b2e148b8453f6ed080d66c28cad4e
SQL
mjhorvath/EnB-JavaScript-Map
/MySQL/net7_get_ore_locations.sql
UTF-8
1,167
4
4
[]
no_license
# Includes ore that appear in radar, and thus in the NAV list as well. use net7_b; select S.name as Sector, SO.name as Name, SOH.level as Level, SOH.res_count as Number, SO.position_x as PosX, SO.position_y as PosY, SO.position_z as PosZ, group_concat(distinct filter_asset(A.descr) separator ";") as Resources, gro...
true
2f479be02d9dd290ccf4a5d181d6117ba4da7107
SQL
yentyty/BaiTap
/Day2/ex.sql
UTF-8
427
2.75
3
[]
no_license
-- Tạo Cơ sở dữ liệu CREATE DATABASE IF NOT EXISTS my_guitar_shop0 ; DROP DATABASE IF EXISTS my_guitar_shop0; -- Lệnh tạo bảng CREATE DATABASE IF NOT EXISTS my_guitar_shop0 ; USE my_guitar_shop0; CREATE TABLE IF NOT EXISTS customers( customersID INT PRIMARY KEY AUTO_INCREMENT , emailAdress VARCHAR(255) NOT NUlL UNIQU...
true
7d979b446ad71ed3c5d030ac61bc0aab5f4154df
SQL
Yzhao1125/OpenLD
/openld/init-data/initdb.d/30-constraints.sql
UTF-8
16,278
2.53125
3
[]
no_license
-- -- Name: AspNetRoleClaims_Id_seq; Type: SEQUENCE SET; Schema: public; Owner: openld -- SELECT pg_catalog.setval('public."AspNetRoleClaims_Id_seq"', 1, false); -- -- Name: AspNetUserClaims_Id_seq; Type: SEQUENCE SET; Schema: public; Owner: openld -- SELECT pg_catalog.setval('public."AspNetUserClaims_Id_seq"', 1, ...
true
f79f559230f2aa7f11a10e72947673ed2273dbe8
SQL
vonblubba/screenshots
/screenshots/trunk/sql/04_users.sql
UTF-8
602
3.0625
3
[]
no_license
-- -- Definition of table `figura4`.`users` -- tabella utenti del sito -- CREATE TABLE `users` ( `id` int(10) unsigned NOT NULL auto_increment, `username` varchar(20), `hashedPassword` varchar(200), `salt` varchar (200), `email` varchar(200)...
true
990643dc139b6f1c7074aa09c5f89d305a04d0d7
SQL
gonchik/cleanup-scripts
/sql/jira/jira_service_desk_psmq_queue.sql
UTF-8
813
3.34375
3
[ "Apache-2.0" ]
permissive
-- fixed in 3.9.0 of JSD -- https://jira.atlassian.com/browse/JSDSERVER-5493 -- PSMQ automation thread loops over queue due to message count discrepancy SELECT Q."NAME", Q."MESSAGE_COUNT", count(M."ID") as real_message_count FROM "AO_319474_QUEUE" Q LEFT JOIN "AO_319474_MESSAGE" M on M."QUEUE_ID" = q."ID" GRO...
true
a8e9003264a812943d664e724057f80414899339
SQL
lenochware/kurz
/install/pclib_mysql.sql
UTF-8
4,645
3.421875
3
[]
no_license
/*Table structure for table `LOOKUPS` (TPL) */ CREATE TABLE `LOOKUPS` ( `GUID` int(10) unsigned NOT NULL AUTO_INCREMENT, `ID` varchar(10) DEFAULT NULL, `APP` varchar(10) DEFAULT NULL, `CNAME` varchar(20) DEFAULT NULL, `LABEL` varchar(100) DEFAULT NULL, `POSITION` int(10) unsigned DEFAULT '0', PRIMARY KEY...
true
81d0e10b4c7da6f2efe9c57e6875e19078c99bd8
SQL
swarm64/s64da-benchmark-toolkit
/benchmarks/htap/queries/07.sql.template
UTF-8
976
3.875
4
[ "MIT" ]
permissive
-- vim: set ft=sql: -- EXPLAIN (FORMAT JSON) select su_nationkey as supp_nation, c_nationkey, extract(year from o_entry_d) as l_year, sum(ol_amount) as revenue from supplier, stock, order_line, orders, customer, nation n1, nation n2 where ol_supply_w_id = s_w_id and o...
true
3d2d0a8037956da04a0e6646be409ec25b0cf0e8
SQL
soft-serve-java/RestHub
/src/main/resources/database/postgres/sql/tagEntity.sql
UTF-8
552
3.6875
4
[]
no_license
DROP SEQUENCE IF EXISTS tag_sequence CASCADE; CREATE SEQUENCE tag_sequence; CREATE TABLE rh.tag ( id bigint NOT NULL PRIMARY KEY DEFAULT nextval('tag_sequence'), title VARCHAR UNIQUE ); DROP SEQUENCE IF EXISTS tagdish_sequence CASCADE; CREATE SEQUENCE tagdish_sequence; CREATE TABLE rh.tagdish ( id bigint NOT NUL...
true
0bb8e521fedd9d48e9060313be97be29b3ca7438
SQL
candyhy91/SQL-
/SQLTasks Tier 1 (1).sql
UTF-8
6,938
4.4375
4
[]
no_license
/* Welcome to the SQL mini project. You will carry out this project partly in the PHPMyAdmin interface, and partly in Jupyter via a Python connection. This is Tier 1 of the case study, which means that there'll be more guidance for you about how to setup your local SQLite connection in PART 2 of the case study. The...
true
1bf568158c1a577c3a95cfda066a7b124873ac85
SQL
AhmadTaufiqi/webix-CI-POS
/webix_pos_db.sql
UTF-8
1,884
3.09375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 07, 2021 at 04:42 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
560749710a7c180b9b2dbdd3ec3d3199dd30038b
SQL
wr786/Key-to-Codewars
/SQL/7 kyu/Countries Capitals for Trivia Night (SQL for Beginners #6).sql
UTF-8
117
3.15625
3
[]
no_license
SELECT capital FROM countries WHERE country LIKE 'E%' AND continent in ('Africa', 'Afrika') ORDER BY capital LIMIT 3;
true
3501381e10a89c29aeb38574449a00bfbbd340e6
SQL
l81893521/miaosha-example
/src/main/sql/schema.sql
UTF-8
1,693
4
4
[ "Apache-2.0" ]
permissive
-- 创建数据库脚本 -- 创建数据库 create database seckill; -- 使用数据库 use seckill; -- 创建秒杀库存表 create table seckill( seckill_id bigint unsigned not null auto_increment comment '商品库存id', name varchar(120) not null comment '商品名称', number int unsigned not null comment '库存数量', start_time timestamp null comment '描述开始时间', e...
true
a64b99db2481669bfb3646f06ece0db3cd894693
SQL
lhauspie/keda-exploration
/postgres-sql-batch/scripts/v2/make-it-clap.sql
UTF-8
932
3.6875
4
[]
no_license
\set session_id `shuf -i 1-1000000000 -n 1` \set final_state `echo "'$FINAL_STATE'"` -- DISPLAY THE CLAP TO MAKE SELECT * FROM make_it_clap LEFT JOIN clap ON make_it_clap.id = clap.id WHERE clap.status IS NULL ORDER BY make_it_clap.id asc LIMIT 1; -- FLAG THE CLAP AS 'RUNNING' WITH THE SESSION ID INSERT INTO clap (i...
true
7c8ecb86d4eba1b567e33ef5499ef96f838d29cd
SQL
BiancaPal/SQL
/BBDD/PIZZERIA.sql
UTF-8
3,074
3.34375
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='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTI...
true
968ac23b8ae5811cd44ec3173a90f0d16c12a13c
SQL
Simone-Engelshus/portfoliosite
/site/PortfolioSiteSQLFile.sql
UTF-8
1,015
3.71875
4
[]
no_license
DROP DATABASE IF EXISTS PortfolioSite; CREATE DATABASE PortfolioSite; USE PortfolioSite; CREATE TABLE works( Work_No INT(11) NOT NULL, `Name` VARCHAR(50) NOT NULL, Thumbnail_Img VARCHAR(50) NOT NULL, PRIMARY KEY (Work_No) ); CREATE TABLE images( Image_ID INT(11) NOT NULL, Work_No INT(11) NOT N...
true
1f2e02fafc005a0dd4d86d5e06def496e54d0e81
SQL
mtejas88/esh
/Projects_SotS_2017/fiber/state_match/2016_2017_state_match.sql
UTF-8
4,801
3.875
4
[]
no_license
with a as ( /* 2017 FRNs, excluding ones that have been updated/are in current view*/ select 2017 as year, f.frn_status, f.frn, f.match_amount from fy2017.frns f inner join public.fy2017_esh_line_items_v eli on eli.frn = f.frn left join public.fy2017_services_received_matr sr on eli.id = sr.line...
true
f98cd98174b4fc30ad09662b537f2742e1430f59
SQL
luisaugustomelo/pre-processing-srt
/mysql.sql
UTF-8
194,366
2.953125
3
[]
no_license
DROP DATABASE IF EXISTS Trabalho2; CREATE DATABASE Trabalho2; use Trabalho2; CREATE TABLE inglouriousBasterdsEnglish(ID int NOT NULL, start_legend TIME(3) NOT NULL, end_legend TIME(3) NOT NULL, legend VARCHAR(255) NOT NULL, PRIMARY KEY (ID)); INSERT INTO inglouriousBasterdsEnglish (ID, start_legend, end_legend, legen...
true
de6e1eef2e3486031f83c0a676661ec9eecac383
SQL
teusito/Sistema-de-Reservas-de-Salas
/Script.sql
UTF-8
2,778
3.53125
4
[]
no_license
-- MySQL Workbench Synchronization -- Generated: 2017-11-30 22:05 -- Model: Modelo 1.0 -- Version: 1.0 -- Project: SRS - Sistema Reserva de Salas -- Author: laion 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_MOD...
true
659b1b0089b29596ffdc04ee00ddb6a545a47ed3
SQL
Uniceub-Web-Development-2016-2/Rafael-Oliveira
/website_backend/alelo20160824.sql
UTF-8
8,794
2.953125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `alelo` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `alelo`; -- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: alelo -- ------------------------------------------------------ -- Server version 5.7.11 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARAC...
true
36f42f22b1cb47789c212ccc6b4301fe01a64795
SQL
heriipurnama/PL-SQL-oracle-dev
/01. Training/62.usingOederMethod.sql
UTF-8
959
3.25
3
[]
no_license
------ deklarasi--------------------- CREATE OR REPLACE TYPE rectagle AS OBJECT (length number, width number, member procedure display, order member function measure(r rectagle) return member ); / -----------------body -------- CREATE OR REPLACE TYPE BODY rectagle AS MEMBER PROCEDURE display IS BEGIN ...
true
76f4b0919a22ff775f604960658cfaf3e6e875e1
SQL
revolverhuset/fishsticks
/migrations/20161123094749_create_orders/up.sql
UTF-8
637
3.46875
3
[]
no_license
CREATE TABLE orders ( id INTEGER PRIMARY KEY NOT NULL, restaurant INTEGER NOT NULL, overhead_in_cents INTEGER NOT NULL, -- opened and closed are timestamps in Unix time. They should -- have been of type DATETIME, but Diesel does not support that opened INTEGER NOT NULL, closed INTEGER, ...
true
4bd6627849d33b9b3fa0eee3b4ecabb2518ec06d
SQL
maribelcuales/node-db3-guided
/queries.sql
UTF-8
1,304
4.3125
4
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
SELECT products.productName as product, products.Price, suppliers.SupplierName as SuppliedBy FROM products INNER JOIN Suppliers on p.supplierId = s.supplierId; -- CategoryName, ProductName, Price select c.CategoryName, p.ProductName, p.Price from categories as c join products as p on c.categoryId = p.categoryId wher...
true
46094d9ed866998387232f4e9f93e3618fe990f4
SQL
oviedo324/Oracle
/usuario.sql
UTF-8
545
2.65625
3
[]
no_license
alter session set "_ORACLE_SCRIPT"=true; CREATE USER airbnb IDENTIFIED BY airbnb; GRANT create session, create table, create synonym, create view, create sequence TO airbnb WITH ADMIN OPTION; CREATE USER usertaller2 IDENTIFIED BY usertaller2; GRANT create session, create table, create synonym, cre...
true
bd453679bec331013b3af617b9af892ad3037078
SQL
gaFregatto/5COP009
/ListaConsultas-S19/ex4.sql
UTF-8
349
3.703125
4
[]
no_license
SELECT aux.cod_fornec, aux.nome_fornec, aux.cod_peca, aux.nome_peca FROM ( SELECT fornecedor.cod_fornec, fornecedor.nome_fornec, peca.cod_peca, peca.nome_peca FROM fornecedor JOIN peca ON fornecedor.cidade_fornec <> peca.cidade_peca ) AS aux, embarque WHERE embarque.cod_fornec = aux.cod_fornec AND emba...
true
141cd55be41d376eedf5254c92738a7eee20a1f9
SQL
CUBRID/cubrid-testcases
/sql/_13_issues/_12_1h/cases/ifnull_operation_relates_int.sql
UTF-8
7,792
3.25
3
[ "BSD-3-Clause" ]
permissive
--test 2 - test the ifnull operation with all types. --create table create table int_table(a int, dummy int); insert into int_table values(1, 1); insert into int_table(dummy) values(2); create table short_table(a short, dummy int); insert into short_table values(1, 1); insert into short_table(dummy) values(2); create...
true
08fa9f1532e9e284fcbc237936f16bbd0ca1f542
SQL
gyi/cs_login
/WebContent/sql/cs_userlogin.sql
UTF-8
49,818
3.015625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 本地 Source Server Version : 50173 Source Host : 127.0.0.1:3306 Source Database : cs_userlogin Target Server Type : MYSQL Target Server Version : 50173 File Encoding : 65001 Date: 2014-09-24 16:36:22 */ SET FOREIGN_KEY_CH...
true
938710ff04465a710f676711a48ac91e2acffb76
SQL
sirenbyte/Bron-Playground
/query/14.sql
UTF-8
190
3.15625
3
[]
no_license
--Is it possible to find the best rated sport playground? select * from playground as p join (Select playgroundId from comments group by max(zvezda)) as c on(p.playgroundId=c.playgroundId);
true
d64b850acc67c562de0ac0887ecdfcde88a6f2d6
SQL
tylerjaquish3/ffb
/database/ffb2021.sql
UTF-8
1,360,805
3.0625
3
[]
no_license
-- -------------------------------------------------------- -- Host: localhost -- Server version: 5.7.19 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 10.2.0.5599 -- -------------------------------------------------------- /...
true
1664bbd140c3652f726f60988ef84c88005d27aa
SQL
JohnMorales/update_schema
/test/schema_scenario1/001-contacts.sql
UTF-8
225
2.671875
3
[]
no_license
DROP TABLE IF EXISTS Contacts; CREATE TABLE Contacts( contact_id int UNSIGNED NOT NULL AUTO_INCREMENT , name VARCHAR( 100 ) NOT NULL , createdAt DATETIME NOT NULL , updatedAt DATETIME NOT NULL , PRIMARY KEY ( contact_id ) )
true
a4af7de1155ede73f9037f0b740d75e2b168296b
SQL
UC-Design/11058-s1-2019
/module-2/code/work-tracker/db-backup.sql
UTF-8
5,844
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Mar 25, 2019 at 04:14 AM -- Server version: 5.7.23 -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `ben_test` -- -- --------------------------...
true
3f03867ed2d8aaacc9333dd075f3ee76f472ed60
SQL
PROYECTITOS/PE
/WebContent/bd/person.sql
UTF-8
210
2.59375
3
[]
no_license
CREATE TABLE person ( id int identity primary key, name varchar(20), country varchar(20) ) insert into person (name, country) values ('Mark','123'), ('Anthony','123') select * from person
true
c04879c0fcefa1326a94e69d08c9a915d0892b2e
SQL
felix-ctu/Jiaowei
/doc/04编码/data/tables/obj_route_xsbz.sql
UTF-8
1,877
3.265625
3
[]
no_license
DROP TABLE OBJ_ROUTE_XSBZ CASCADE CONSTRAINTS PURGE; CREATE TABLE OBJ_ROUTE_XSBZ ( SN NUMBER, ROUTE_ID VARCHAR2(60), EFFECTIVE_DATE DATE, EXPIRE_DATE DATE, START_SECTION VARCHAR2(30), END_SECTION VARCHAR2(30), BEGIN_TIME VARCHAR2(60), END_TIME VARCHA...
true
4e5b7138631807a88c7df64cfef7f36844b56cbf
SQL
jmgold/SQL-Queries
/Library requests/wob monthly turnover adult_teen.sql
UTF-8
2,395
4.15625
4
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
/* Jeremy Goldstein Minuteman Library Network Monthly turnover report for Woburn adult and teens materials Requested by Suzanne Bouthillette based on Youth Services report designed by Dorrie Karlin */ SELECT "Category Name", "Total Owned", "Total Circs", ROUND(("Total Circs" * 1.00) / "Total Owned",2) AS Turnover FR...
true
ebe114e0803f2ba1cde72e93e879026d5eeba2bf
SQL
rem-iri/shoe-shop
/sql/db.sql
UTF-8
2,184
3.09375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS adithus_db; USE adithus_db; CREATE TABLE IF NOT EXISTS products ( product_id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255), price DOUBLE, imgURL VARCHAR(255), previewImgURL VARCHAR(255)); CREATE TABLE IF NOT EXISTS user_info ( id INT(6) UNSIGNED NOT ...
true
9787cc433e0f2fcf3f7b3b15a4a3fac6c4eb0842
SQL
hpf-zzu/DDL-DML-Base-2019-5-17-7-33-10-495
/ddl.sql
UTF-8
1,029
3.609375
4
[]
no_license
-- **数据库级别:mysql** -- 显示所有数据库 show databases -- 进入某个数据库 use databasename -- 创建一个数据库 create database databasename -- 创建指定字符集的数据库 create database if not exists databasename default character set = 'utf8' -- 显示数据库的创建信息 show create database databasename -- 修改数据库的编码 alter database databasename character...
true
10996e41d52ba6561519e41389ec5bc18148ac28
SQL
juniomelos/trybe_project_sd04
/sd-04-mysql-one-for-all/desafio9.sql
UTF-8
384
3.4375
3
[]
no_license
USE SpotifyClone; DELIMITER $$ -- DROP PROCEDURE albuns_do_artista; CREATE PROCEDURE albuns_do_artista(IN nome_artista VARCHAR(50)) BEGIN SELECT art.nome AS artista, alb.nome AS album FROM SpotifyClone.artista AS art JOIN SpotifyClone.album AS alb ON art.id = alb.artista_id WHERE art.nome = nome_artista ORDER BY al...
true
bd92004b2329a0a005f43d04287f7b4e3d3776cd
SQL
ekimge/SupermarketSales
/SupermarketSales.sql
UTF-8
24,003
4.6875
5
[]
no_license
/* OUR DATA: "We will be looking at some sales data from a supermarket based in Mexico. It is a simple dataset and we should be able to extract some value. Our dataset had 5 columns: 1. Folio - holds transaction ID's, we can repurpose this column or get rid of it. 2. Hora - Holds information on the exact time a transa...
true
1145f680d2a0a8fbe87c181e89e29be1cc453b86
SQL
ruitaomu/BI-Visualization
/db.create/token.sql
UTF-8
433
2.953125
3
[]
no_license
DROP TABLE IF EXISTS token; CREATE TABLE token ( id int unsigned not null auto_increment primary key, user_id int unsigned not null default 0, purpose varchar(32) not null default '', skey char(32) not null default '', ip varchar(16) default NULL, data text default NULL, created_on int unsigned not null def...
true
56f8d99174c60c6109ff6fb98c14fff0cdc1cd17
SQL
RSanchoS/ClientsManagement
/src/main/resources/data.sql
UTF-8
1,473
3.078125
3
[]
no_license
-- Insert rows into table 'roles' INSERT INTO roles ( -- columns to insert data into description, name ) VALUES ( -- first row: values for the columns in the list above 'Admin role', 'ADMIN' ), ( -- second row: values for the columns in the list above 'User role', 'USER' ), ( 'Operational role', 'OPERATIONAL' ); ...
true
1916c203e745febb1b2e844552ece5d6a8a1264a
SQL
SebastianBurger1337/scooteq
/SQL Statements.sql
UTF-8
5,713
4.46875
4
[]
no_license
-- Scooters sorted by date of acquisition ascending SELECT * FROM Scooter ORDER BY Acquisition ASC -- Customer sorted by last name ascending SELECT * FROM Customer ORDER BY LastName ASC -- Scooters currently rented SELECT SCOOTER.* FROM SCOOTER JOIN Rental ON Scooter.ScooterId ...
true
43e2d93ccae92fe23900ff51ac4018c0b22ebb94
SQL
MegSemrad/nss-SQL-PoKi
/SQL_PoKi.sql
UTF-8
5,407
4.5625
5
[]
no_license
-- 1. What grades are stored in the database? SELECT Name FROM Grade; -- 2. What emotions may be associated with a poem? SELECT Name FROM Emotion; -- 3. How many poems are in the database? SELECT COUNT(p.Id) FROM Poem p; -...
true
4c9750b90bbe257e8bc2d542e982fe0cca2c3a39
SQL
genweihua/oracle-dba-sql-scripts
/jobs_running.sql
UTF-8
345
3.515625
4
[]
no_license
--Shows the currently running jobs SET LINESIZE 500 SET PAGESIZE 1000 SELECT r.job, j.what, r.sid, r.failures, TO_CHAR(r.last_date,'DD-MM-YYYY HH24:MI:SS') LAST_DATE, TO_CHAR(r.this_date,'DD-MM-YYYY HH24:MI:SS') THIS_DATE FROM dba_jobs_running r join dba_...
true
2183bad57d5bd587fb11371756590368ab204292
SQL
JhoanRodriguez/Angular-Java-Oracle
/DB-Oracle/Job.sql
UTF-8
524
2.890625
3
[]
no_license
-- JOB para ejecución temporal DECLARE date_s TIMESTAMP; BEGIN date_s := to_timestamp_tz('2021-03-25 00:00:00','YYYY-MM-DD HH24:MI:SS'); --Definimos el formato de la fecha de inicio dbms_scheduler.create_job( job_name => 'GENERAR_AGENDA', job_type => 'PLSQL_BLOCK', job_action => 'COBRANZA.CREAR_AGENDA;', --P...
true
4fe270eb89d672d807f0c3e9fbb9de9e042fa107
SQL
tongyliu/MediVision
/web/api/postgres/docker-entrypoint-initdb.d/schema.base.sql
UTF-8
2,204
3.59375
4
[]
no_license
\c medivision DROP SCHEMA IF EXISTS public CASCADE; CREATE SCHEMA public; CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; -- Create table schema CREATE TABLE users ( id UUID PRIMARY KEY, -- User ID fullname TEXT NOT NULL, username TEXT NOT NULL UNIQUE , password TEXT NOT NULL, -- Password hash cre...
true
2823e1adcd8da311cd3e449d50e0bfc04ebe13fd
SQL
mathieumatos/Jikiki-Database
/sql/DDL.sql
UTF-8
5,891
3.9375
4
[]
no_license
/* Script SQL pour le SGBD PostgreSQL (v.10.3) * * Université de Montréal, hiver 2018 * Marc-André Brochu, Olga Fadeitcheva, Simon Bréard & Mathieu Matos * * Ce script effectue trois choses: (1) la création de la structure de la base de données: * ses tables et leur champs; (2) initialiser les catégories d'objet...
true
9c95fba37ce99eaccae67f296b8a74f09d74cf5f
SQL
sprokushev/Delphi
/MASTER/_DATABASE/Constraints/PAYMENTS_ON_BILL_050208_NonFK.sql
UTF-8
709
2.609375
3
[]
no_license
-- -- Non Foreign Key Constraints for Table PAYMENTS_ON_BILL_050208 -- ALTER TABLE MASTER.PAYMENTS_ON_BILL_050208 ADD ( CHECK ("ID" IS NOT NULL) DISABLE NOVALIDATE); ALTER TABLE MASTER.PAYMENTS_ON_BILL_050208 ADD ( CHECK ("NOM_DOK" IS NOT NULL) DISABLE NOVALIDATE); ALTER TABLE MASTER.PAYMENTS_ON_BILL_05020...
true
c5058d7ba30cf437a883e83ce805f0d080cf524c
SQL
dubaopeng/test
/wsj-customer-label-analyze/wsj-company-customer-label-analyze.sql
UTF-8
2,267
3.5
4
[]
no_license
SET mapred.job.name='wsj-company-customer-label-analyze'; set hive.tez.container.size=16144; set hive.cbo.enable=true; SET hive.exec.compress.output=true; SET mapred.max.split.size=512000000; set mapred.min.split.size.per.node=100000000; set mapred.min.split.size.per.rack=100000000; set hive.input.format=org.apache.had...
true
137499de0a0a6cb2a30d1725920bed660bf3fe98
SQL
seco/dkpkorean
/eqdkp_0630/install/schemas/mysql_structure.sql
UTF-8
15,145
3.046875
3
[]
no_license
# # MySQL EQdkp Structure # # $Id: mysql_structure.sql 363 2007-07-15 13:46:45Z osr-corgan $ # # -------------------------------------------------------- ### Configuration DROP TABLE IF EXISTS eqdkp_config; CREATE TABLE `eqdkp_config` ( `config_name` varchar(255) PRIMARY KEY NOT NULL, `config_value` varchar(255) )...
true
d6b25343bd53889791daa84af89165301dfdadb3
SQL
vasudevpatel123/ADAPT-By-Capgemini
/Capgemini-ADAPT-master/RDBMS - Generics/Single-row Function/Exercise1.sql
UTF-8
337
3.4375
3
[]
no_license
--Show customer id, capitalized first & last names, day & month (DD-Mon format) of date of birth and change the alias name "DOB" of female customers. alter session set current_schema=bank; SET heading OFF; SELECT CUST_ID, UPPER(CUST_FNAME), UPPER(CUST_LNAME), TO_CHAR(CUST_DOB, 'DD-Mon') AS DOB FROM BANK_CUSTOMER WHER...
true
f723749a66874dc98ad5688f8d0200d332fa7669
SQL
sergiobelli/gecomp
/database/ddl/ddl_gara.sql
UTF-8
618
2.859375
3
[]
no_license
-- -------------------------------------------------------- -- -- Struttura della tabella `gara` -- CREATE TABLE IF NOT EXISTS `gara` ( `ID_GARA` int(11) unsigned NOT NULL AUTO_INCREMENT, `COMPETIZIONE` int(11) unsigned NOT NULL, `NOME` varchar(255) NOT NULL, `DESCRIZIONE` varchar(255) NOT NULL, ...
true
db58aa2978dd5d4d58124cbfc9e161b7fd1d40d6
SQL
alldatacenter/alldata
/olap/ByConity/tests/queries/4_cnch_stateless/00951_basic_constraints.sql
UTF-8
1,012
3.171875
3
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
DROP TABLE IF EXISTS test_constraints; CREATE TABLE test_constraints ( a UInt32, b UInt32, CONSTRAINT b_constraint CHECK b > 0 ) ENGINE = CnchMergeTree ORDER BY (a); INSERT INTO test_constraints VALUES (1, 2); SELECT * FROM test_constraints ORDER BY a; INSERT INTO test_constraints...
true
42d3d5b67cedd9b7f5f665160dfbaf3bf8e0868e
SQL
zz0733/op-gbsql
/history/v1073/sites/V1.0.1.0108__A_pay_account.sql
UTF-8
5,976
3.40625
3
[]
no_license
-- auto gen by admin 2016-04-16 20:40:43 DROP VIEW if EXISTS v_pay_rank; DROP VIEW if EXISTS v_player_transaction; DROP VIEW if EXISTS v_pay_account; DROP VIEW if EXISTS v_player_recharge; ALTER TABLE pay_account ALTER COLUMN pay_key TYPE character varying(200); COMMENT ON COLUMN pay_account.pay_key IS 'Key'; CR...
true
92d13ba6bed38d94363d294d3746e26943c3b1e6
SQL
russellruss/authors
/sql/CreateDatabaseAuthors.sql
UTF-8
3,839
3.578125
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 AuthorB...
true
5418969c554d502a38c4e121f8c6b528d97999ad
SQL
georgezeng/lhc2
/lhc2-server/src/main/resources/db/v11.sql
UTF-8
1,776
2.640625
3
[]
no_license
--liquibase formatted sql --changeset lhc2:11 CREATE TABLE `pdyz` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `phase` int(11) NOT NULL, `num` int(11) NOT NULL, `pos` int(11) NOT NULL, `w0` int(11) NOT NULL, `w1` int(11) NOT NULL, `w2` int(11) NOT NULL, `w3` int(11) NOT NULL, `w4` int(11) NOT NULL, `w5` int(1...
true
d1dd3bf161e9f4650cc515d9c1da4fa7ca8d1f1b
SQL
jabautista/GeniisysSCA
/src/main/resources/sql/ddl/tables/alter/gipi_wcomm_inv_perils/SR-5489-2-GIPI_WCOMM_INV_PERILS-modify-wcomm_inv_perils_pk.sql
UTF-8
1,285
3.125
3
[]
no_license
BEGIN FOR cur IN (SELECT constraint_name FROM all_constraints WHERE owner = 'CPI' AND constraint_name = 'WCOMM_INV_PERILS_PK' AND table_name = 'GIPI_WCOMM_INV_PERILS') LOOP EXECUTE IMMEDIATE 'ALTER TABLE CPI.GIPI_WCOMM_INV_PERILS DROP CONSTRAINT WCOMM_I...
true
268546485a804d1d851f661add4044c067b43224
SQL
Idonius/rsp
/SILSAEEJB/dbScripts/secuencias.sql
UTF-8
550
2.75
3
[]
no_license
drop sequence IF EXISTS sec_bem_aviso cascade; /*==============================================================*/ /* SECUENCIA: SEC_DCCT_ARCHIVOS */ /*==============================================================*/ CREATE SEQUENCE sec_bem_aviso INCREMENT 1 MINVALUE 1 ...
true
0f4f029220f053e79bb3664a54abeccf8cbcb163
SQL
varpeti/Suli2
/proDataB/work/02/02.sql
UTF-8
1,107
4.375
4
[ "Unlicense" ]
permissive
#4 SELECT to_char(h.started_at, 'YYYY-MM-DD HH24:MI:SS'), h.duration, to_char(h.started_at+h.duration/24/60/60, 'YYYY-MM-DD HH24:MI:SS') FROM AD18___DB.historyitems h ; #5 SELECT h.id, h.user_id, to_char(h.started_at, 'YYYY-MM-DD HH24:MI:SS') AS sta, h.duration AS dur, to_char(h.started_at+h.du...
true
080ec60b8f231d0ed89266d293b720154193d00d
SQL
mcblack4ever/CGserver
/Dump/rogue_tbl_addressbook.sql
UTF-8
2,716
2.84375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: 192.168.1.108 Database: rogue -- ------------------------------------------------------ -- Server version 5.5.50-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESUL...
true
736037561be20c70a3200cb34870874697d2a5f2
SQL
cgapti/mining
/DBScripts/Table_Scripts/Tbl_UserRoles.sql
UTF-8
796
2.96875
3
[]
no_license
CREATE TABLE "SYSTEM"."TBL_USER_ROLES" ( "USER_ROLES_ID" NUMBER(10,0) NOT NULL ENABLE, "USER_ROLE_DESC" VARCHAR2(255 CHAR), "USER_ROLE_NAME" VARCHAR2(255 CHAR) NOT NULL ENABLE, PRIMARY KEY ("USER_ROLES_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536...
true
25181fd3073a2de6a7523c43435b70b42072039d
SQL
bleedkaga/tedu
/tedu.sql
UTF-8
1,026
3.578125
4
[]
no_license
SET NAMES UTF8; DROP DATABASE IF EXISTS tedu; CREATE DATABASE tedu CHARSET=UTF8; USE tedu; CREATE TABLE dept( did INT PRIMARY KEY, dname VARCHAR(20) UNIQUE, empCount INT ); INSERT INTO dept VALUES ( 10, NULL, 3 ); INSERT INTO dept VALUES ( 20, NULL, 1 ); INSERT INTO dept VALUES ( 30, '运营部', 2 ); CREATE T...
true
dc62d34dc4764aa0862d7a9faad3c60380b308e9
SQL
zalando/PGObserver
/sql/schema/03_0_perf_comparision_additions.sql
UTF-8
2,566
3.59375
4
[ "Apache-2.0" ]
permissive
/* here are tables/procedures that enable reporting of peaks in sequential scans or sproc average runtimes used in frontend: /perftables /perfapi /perfindexes */ SET role TO pgobserver_gatherer; SET search_path = monitor_data, public; /* sproc report tuning tables */ drop table if exists perf_compar...
true
afe91bcfc25cfa53ad50ce32456749134293202e
SQL
tusharm/arc-starter
/examples/tutorial/5/yellow_tripdata0_enrich_validate.sql
UTF-8
772
3.28125
3
[ "MIT" ]
permissive
SELECT SUM(null_vendor_id) = 0 AND SUM(null_payment_type_id) = 0 AS valid ,TO_JSON( NAMED_STRUCT( 'null_vendor_id', COALESCE(SUM(null_vendor_id), 0) ,'null_vendor_name', COLLECT_LIST(DISTINCT null_vendor_name) ,'null_payment_type_id', COALESCE(SUM(null_payment_type_id), 0) ,'null_payment...
true
cf1c346b3763215ed1cdaa9194ea357c27e80386
SQL
titiushko/SQL-WIP
/MySQL/initcap_mysql.sql
UTF-8
2,510
4.03125
4
[]
no_license
DELIMITER $$ DROP FUNCTION IF EXISTS initcap; $$ CREATE FUNCTION initcap(p_cadena VARCHAR(100)) RETURNS VARCHAR(100) COMMENT 'funcion que devuelve la primera letra de cada palabra en mayúsculas.' BEGIN DECLARE v_posicion INT DEFAULT 0; DECLARE v_temporal VARCHAR(100) DEFAULT ''; DECLARE v_resultado VARCHAR(100) DEF...
true
af70a050c665b40fc472590def2c57c8a63a30bd
SQL
praveen-tissera/malamu
/malamuor_malamu.sql
UTF-8
2,654
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Feb 14, 2019 at 09:04 AM -- Server version: 5.6.41-84.1 -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
c2da538af80e071fb105387d8f86920a8ec5f96b
SQL
livindemoment/Railway26
/SQL/Assigment 1/Testing_System_Assignment_1.sql
UTF-8
2,625
3.984375
4
[]
no_license
DROP DATABASE IF EXISTS Testing_System_Assignment_1; CREATE DATABASE Testing_System_Assignment_1; USE Testing_System_Assignment_1; CREATE TABLE Department ( DepartmentID TINYINT UNSIGNED auto_increment PRIMARY KEY, DepartmentName VARCHAR(20) UNIQUE KEY ); CREATE TABLE Position ( PositionID TINYINT UNSIGNED auto_in...
true
50270420aa7098cf056ec1fe4cffb193f72ba38b
SQL
HarDhillon/Cs50x-Course-
/pset7/13.sql
UTF-8
685
4.5
4
[]
no_license
--In 13.sql, write a SQL query to list the names of all people who starred in a movie in which Kevin Bacon also starred. --Your query should output a table with a single column for the name of each person. --There may be multiple people named Kevin Bacon in the database. Be sure to only select the Kevin Bacon born in 1...
true
2a9614b0b5ad063c1f48753809d987c8c975d107
SQL
mcondave/SCL
/cakeBlog/app/blog_data_base.SQL
UTF-8
559
3.078125
3
[]
no_license
/* First, create our posts table: */ CREATE TABLE posts ( id INT UNSIGNED AUTO-INCREMENT PRIMARY KEY, title VARCHAR(50), body TEXT, created DATETIME DEFAULT NULL, modified DATETIME DEFAULT NULL ); /* Then inert some posts for testing: */ INSERT INTO posts (title,body,created) VALUES ('The title', 'This is the po...
true
ec5b2a8ef7d17162cf8f8fcc9f0feaf2ccaba0db
SQL
gtople92/Database-project-ARMS
/sp_triggers_views_creation.sql
UTF-8
2,143
4.3125
4
[]
no_license
use arms; #Triggers DROP TRIGGER if exists COMPANY_TAG_INSERT DELIMITER // CREATE TRIGGER COMPANY_TAG_INSERT AFTER INSERT ON company FOR EACH ROW BEGIN INSERT INTO TAG VALUES(NEW.c_tag_id); END; // DELIMITER ; DROP TRIGGER if exists JOB_POSTING_TAG_INSERT DELIMITER // CREATE TRIGGER JOB_POSTING_TAG_I...
true
fe631450ee122a8888685350c7385761db94e0d2
SQL
rrighetti/cscripts
/sql/deprecated/purge_top_1_hvc.sql
UTF-8
4,883
3.390625
3
[]
no_license
---------------------------------------------------------------------------------------- -- -- File name: purge_top_1_hvc.sql -- -- Purpose: Finds top#1 HVC SQL and purges it if version count per PDB > 100 (on AVG) -- -- Author: Carlos Sierra -- -- Version: 2018/04/27 -- -- Usage: Execute connecte...
true
7e825eb2100578cb55a8ba8fd306ba490e55fec4
SQL
ivanarnieranario/CCSDirectory
/ccs_directory.sql
UTF-8
20,284
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 18, 2017 at 07:49 PM -- Server version: 5.6.24 -- PHP Version: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
4e96f519c7aa7b9ffdbfc87c4e64aa8f30f17b44
SQL
kbartolotta/Database_Management
/Lab 3.sql
UTF-8
610
3.359375
3
[]
no_license
/*Katie Bartolotta Lab 3 9/16/16*/ select ordnum, totalUSD From orders; Select name, city from agents where name = 'Smith'; select pid, name, priceUSD from products Where quantity > 201000; select name, city from customers where city = 'Duluth'; select name from agents where city != 'New York...
true
fa18aa585fbf765563855da631f7fc745afa9d85
SQL
BlaiseRoberts/Chinook-BlaiseRoberts
/line_item_track.sql
UTF-8
144
3.1875
3
[]
no_license
select t.name, i.invoiceid, il.invoicelineid from track t, invoiceline il, invoice i where t.trackid = il.trackid and il.invoiceid = i.invoiceid
true
7c42eba7b7bc4f9377dbb0036432bcd4e2e90f83
SQL
xomrayno1/LibraryManagementSystem
/library.sql
UTF-8
51,722
2.6875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th9 19, 2020 lúc 11:52 AM -- Phiên bản máy phục vụ: 10.4.11-MariaDB -- Phiên bản PHP: 7.2.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
true
c97620bba7c9afb2afdf4d63bb8be627fc2d14da
SQL
kresd/ecommerce-api
/src/main/resources/db/migration/V20181210162435__schema-checkout.sql
UTF-8
600
3.328125
3
[]
no_license
create table checkout ( id character varying(64) not null primary key, pembeli_id character varying(64) not null, produk_id character varying(64) not null, jumlah_barang int not null, total_bayar decimal not null ); alter table...
true
3702675089029e58d05c12973150e1c4b3da93a9
SQL
Nicky31/SwordCMS
/sqls/credits_logs.sql
UTF-8
902
2.71875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50524 Source Host : localhost:3306 Source Database : arkalys Target Server Type : MYSQL Target Server Version : 50524 File Encoding : 65001 Date: 2012-08-29 15:15:40 */ SET FOREIGN_KEY_...
true
3ef68fba933dde9fe90c88b982094335aa41e0f4
SQL
luckymahrus/skeleton
/databases/mysql/webroutes.sql
UTF-8
3,268
3.03125
3
[ "Apache-2.0" ]
permissive
/**************************************** DROP TABLE ****************************************/ DROP TABLE IF EXISTS webroutes; /**************************************** CREATE TABLE ****************************************/ CREATE TABLE webroutes ( `webroutes_id` INT(11) NOT NULL AUTO_INCREMENT, `webroutes_...
true
859fdb0d92b38f038660cdf2f8c4f1aee23ff1fc
SQL
santiago-m/Apuntes
/Base de Datos/Ejercicios/SQL Practica 3/santiagoSql/script/ejercicio3PostgreSQL.sql
UTF-8
1,896
3.515625
4
[]
no_license
DROP schema IF EXISTS ejercicio3anio2017 cascade; CREATE schema ejercicio3anio2017; DROP TABLE IF EXISTS ejercicio3anio2017.alumno; CREATE TABLE ejercicio3anio2017.alumno ( nro_alumno integer NOT NULL , dni integer NOT NULL , nombre varchar(45) NOT NULL , apellido varchar(45) NOT NULL , sexo varchar...
true
24266bd9c4ec7d12791d8edf15c7f307ba67c3be
SQL
gladiopeace/digital-data-syn
/documents/oms/TB_PMTKC.sql
GB18030
1,896
3.234375
3
[]
no_license
/* ================================================================================ ṹ:TB_PMTKC ṹ:齱̯Χ ṹĿ: ================================================================================ */ drop sequence SEQ_TB_PMTKC; drop index AK_TB_PMTKC; drop table TB_PMTKC; create table TB_PMTKC ( PMTKC_ID INTEGER...
true
ecd610b2d944cb5b46322765bdf12a62c78b1870
SQL
graphile/graphile-engine
/packages/postgraphile-core/__tests__/mutations/v4-base/pg11.types.sql
UTF-8
2,674
3.1875
3
[ "MIT" ]
permissive
SAVEPOINT graphql_mutation with __local_0__ as ( update "pg11"."types" set "regrole" = $1, "regnamespace" = $2, "bigint_domain_array_domain" = array[$3, $4, $5]::"c"."_bigint_domain", "domain_constrained_compound_type" = row( $6::"pg_catalog"."int4", NULL, NULL, NULL, NULL, NULL, ...
true
bfd63289bd5199801381273d3da9e8c52aedd25b
SQL
piskula/release-manager
/src/main/resources/db/migration/V202104091805__initial_migration.sql
UTF-8
825
3.28125
3
[]
no_license
-- CREATE TABLE system_version -- ( -- id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, -- version_number INT UNSIGNED UNIQUE NOT NULL, -- ); -- -- CREATE TABLE service_version -- ( -- system_version INT UNSIGNED AUTO_INCREMENT, -- version_number INT UNSIGNED NOT NULL, -- name VARCH...
true
cccc0752a2d500dd5ce96b7f27e019ad6084d78b
SQL
chpy0101/chen.spider.site
/sql/yybbuystock.sql
UTF-8
731
3.140625
3
[]
no_license
CREATE TABLE `yybBuyStock` ( `id` bigint(200) NOT NULL, `buyCode` varchar(45) NOT NULL COMMENT '营业部代码', `buyName` varchar(45) DEFAULT NULL, `stockCode` varchar(45) NOT NULL COMMENT '股票代码', `stockName` varchar(45) DEFAULT NULL, `buyDate` datetime NOT NULL COMMENT '购买日期', `recommedScore` double NOT NULL COM...
true
62b42b885f0d0f0aa6edc07c26701aae6bf45dbf
SQL
HEDAETUL-ISLAM/Shop-Management-System
/Database/purchase_product.sql
UTF-8
2,245
2.6875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Aug 29, 2018 at 03:58 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
dda4c24d886d6a31c35e2b6c25bd4644eb04d00f
SQL
Donaldblanc/MarvelianCerebros
/app/database/seeds.sql
UTF-8
16,416
2.96875
3
[]
no_license
use marvel_db; -- X-Men: INSERT INTO movieCharacters (movies,characters) VALUES ("X-men","Charles Xavier"), ("X-men", "Logan") ,("X-men", "Jean Grey"), ("X-men","Senator Kelly"), ("X-men", "Sabretooth"),("X-men","Toad"), ("X-men", "Mystique") ,("X-men", "Cyclops"), ("X-men","Rogue"), ("X-men", "Jean Grey") ,("X-men",...
true
28e036b530caca4067e61d472652efedcdb1de83
SQL
GuilleCRS/RestauranteBcknd
/ScriptCreacionBD.sql
UTF-8
3,820
3.40625
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='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTI...
true
fcee3fe1170ab72cd37e59d9a5a93ee9a99bb77a
SQL
eplacebo/RESTFlywayHeroku
/src/main/resources/db/migration/V20211008134649__add_event.sql
UTF-8
193
2.71875
3
[]
no_license
create table event ( id_event bigserial constraint event_pk primary key, date_event timestamp with time zone, id_file_ref bigint, id_user_ref bigint );
true
487d9ff247b20f70761179207ae7102fa35b4838
SQL
PramudyaS/Sistem-Ekspedisi
/db/db_pengirimanbarang.sql
UTF-8
62,318
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 14, 2018 at 07:46 AM -- Server version: 10.1.25-MariaDB -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
dd1a193e6a1c825bd7f7b3618f34c03517b00209
SQL
mysql-oracle/Mastering-Oracle-SQL-and-SQLPlus
/chapter08/08-31.sql
UTF-8
130
2.765625
3
[]
no_license
select e1.empno from employees e1 , employees e2 group by e1.empno , e1.msal having e1.msal > avg(e2.msal);
true
61f46f8d66647f1242ce60b4cb616e09050768ba
SQL
dabreadman/SQL-Project
/insert.sql
UTF-8
2,662
2.8125
3
[]
no_license
INSERT INTO Elements VALUES (DEFAULT,'Pyro','Applies Burning'), (DEFAULT,'Hyro','Slows enemies'), (DEFAULT,'Dendro','Applies flamable'), (DEFAULT,'Anemo','Spreads elemental effects'), (DEFAULT,'Elctro','Paralyses enemies'), (DEFAULT,'Geo','Creates shields'); INSERT INTO Weapon_types VALUES (DEFAULT,'Claymore'),(DEFAU...
true