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
3a0b4465f21b4e5f98e0234b2b755195d8b578d7
SQL
Ensembl/ensembl-funcgen
/sql/patch_90_91_k.sql
UTF-8
2,252
3.28125
3
[ "Apache-2.0" ]
permissive
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- Copyright [2016-2023] EMBL-European Bioinformatics Institute -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obt...
true
f3fa09b5c61dacf0c86e45be57e2ddcd80981fc6
SQL
walk1ng/gin-photo-gallery-storage
/models/db.sql
UTF-8
1,369
3.71875
4
[]
no_license
create database `photo_gallery`; use `photo_gallery`; # table auth drop table if exists `auth`; create table auth ( id int primary key auto_increment, user_name varchar(16) unique not null, password varchar(255) not null, email varchar(128) unique not null, created_at timestamp default CURRENT_TI...
true
d3ee892ac02cccc842577bf2b390688842b2a542
SQL
aleiadevore/holbertonschool-higher_level_programming
/0x0D-SQL_introduction/11-best_score.sql
UTF-8
122
2.59375
3
[]
no_license
-- Displays rows by top score greater than 10 SELECT score, name FROM second_table WHERE score >= 10 ORDER BY score DESC;
true
b69847433e85c22fc3cb6224327b84742aff0da8
SQL
jennaran/tsoha20
/schema.sql
UTF-8
983
3.3125
3
[]
no_license
DROP TABLE messages; DROP TABLE group_tags; DROP TABLE user_groups; DROP TABLE groups; DROP TABLE users; DROP TABLE tags; CREATE TABLE users ( id SERIAL PRIMARY KEY, active BOOLEAN DEFAULT true, username TEXT UNIQUE NOT NULL, password TEXT NOT NULL ); CREATE TABLE groups ( id SERIAL PRIMARY KEY, ...
true
457831a1b81b73b74f274994b18c873624499772
SQL
kavalpatel15/factor-scaffold--spring-backend
/src/main/resources/schema.sql
UTF-8
465
3.09375
3
[]
no_license
DROP TABLE IF EXISTS USER; DROP TABLE IF EXISTS PRODUCT_PACKAGE; CREATE TABLE USER ( ID INT AUTO_INCREMENT Primary key, FIRST_NAME VARCHAR (60), LAST_NAME VARCHAR (60), EMAIL VARCHAR(250) UNIQUE ); CREATE TABLE PRODUCT_PACKAGE( ID INT AUTO_INCREMENT Primary key, USER_NAME VARCHAR(60), PACK...
true
0cdb2e27b9a5315cd8398c492627a0b0e246478d
SQL
shopee-reg-logs/lumos-query
/cdt_edt.sql
UTF-8
825
2.84375
3
[]
no_license
SELECT OD.orderid ,json_extract(orderdatatab.extra_data, '$.delivery_detail_info.edt_min_dt') as EDT_min ,json_extract(orderdatatab.extra_data, '$.delivery_detail_info.edt_max_dt') as EDT_max ,json_extract(orderdatatab.extra_data, '$.delivery_detail_info.apt') as seller_apt ,json_extract(orderdatatab.extra_data, '$.del...
true
299cd5e4ef8ea9db10cc036817df4c245d1297b2
SQL
webboy-create/s_m_a
/sma proj.sql
UTF-8
8,359
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 21, 2020 at 08:42 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
9eb623403e86028cae82f640a638e96430ac6dfa
SQL
EnzymeFunctionInitiative/efi-web
/efi-est/sql/complete_20.sql
UTF-8
6,288
2.875
3
[]
no_license
-- -- Table structure for table `PFAM_clans` -- DROP TABLE IF EXISTS `PFAM_clans`; CREATE TABLE `PFAM_clans` ( `pfam_id` varchar(24) DEFAULT NULL, `clan_id` varchar(24) DEFAULT NULL, KEY `clan_id_Index` (`clan_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Table structure for table `PFAM_clans_old` -- DRO...
true
9f31b662d3cbc9691f3bc1fca3b9a183c1fdbdef
SQL
kyyoung/SQL-
/0221과제.sql
UHC
1,699
4.0625
4
[]
no_license
--1 create table student_test as select * from student; insert into student_test select * from student where deptno1 = 101; commit; create table student_test2 as select distinct * from student_test; drop table student_test; rename student_test2 to student_test; select * from student_test; --2...
true
651793024af528d1efe9e1c0ef6e5751e2e1b8ff
SQL
zsinx6/elainethegoddess
/sql/populate.sql
UTF-8
2,694
3.125
3
[ "MIT" ]
permissive
-- Popula o banco de dados. De preferência rodar com o banco de dados vazio. INSERT INTO comite(pais, nome, presidente, email_contato, endereco) values ('Brazil', 'Comite Paraolimpico Brasileiro', 'Rodrigo Weigert', 'brazil@brazil.com', 'Rua do comite, 222, Rio de Janeiro/RJ'); INSERT INTO comite(pais, nome, presiden...
true
4c8df77118a7f033ebb11f6646e4443fd6331319
SQL
chenlaou/bamazon
/bamazon.sql
UTF-8
1,057
3.375
3
[]
no_license
-- CREATE DATABASE FOR BAMAZON -- CREATE DATABASE Bamazon; USE Bamazon; -- CREATE TABLE FOR PRODUCTS -- CREATE TABLE products ( item_id INT(11) AUTO_INCREMENT NOT NULL, product_name VARCHAR(50) NOT NULL, department_name VARCHAR(30) NOT NULL, price DECIMAL(10,2) NOT NULL, stock_quantity INTEGER(11) ...
true
a56d8540b9b672dccf13334b4ac05991e5c2a673
SQL
DJBlom/MySql-MariaDB
/Introduction_To_DataBases_Queries/query11.sql
UTF-8
715
4.125
4
[]
no_license
/* Write a SELECT statement that joins the Customers, Orders, Order_Items, and Products tables. This statement should return these columns: last_name, first_name, order_date, product_name, item_price, discount_amount, and quantity. Use aliases for the tables. Sort the final result set by the last_name, order_date, ...
true
9b56ac1f4a731b440f53d6bcd5743699404bc85d
SQL
luiz0067/studiomidiamix
/adm/midiamix.sql
UTF-8
3,235
3.796875
4
[]
no_license
insert into USUARIO (USUARIO, SENHA) values('.$usuario.','.$senha.'); update usuario set senha='.$senha.' where (codigo=.$codigo.); delete from usuario where (codigo=.$codigo.); select codigo,usuario,senha from usuario where (usuario='.$usuario.') and (senha='.$senha.'); insert into login (codigo_usuario, hora_i...
true
ff5baafaf809451fdc9f33741930236cfdf5cb6c
SQL
fstanchese/corporativo
/corporativo/sql/ColacaoGrau/ColacaoGrau_qColacaoOficial.sql
UTF-8
1,452
3.296875
3
[]
no_license
select decode( p_O_Check1 ,'a',curr.currnomehist,'b',curr.currnomehist,'c',curso.nome,currnomehist) as nomecurso, wpessoa.nome as nomealuno, turmaofe_gsretcodturma(turmaofe_id) as turma, wpessoa.rgrneformatado as rg, to_char(tempcolacao.dtcolacao,'dd-mm-yyyy') as dtco...
true
1bf9e693870f59e34ed894aa5fd373034c847373
SQL
marleiSilveira/Atmus
/Script Banco de Dados - DML.sql
UTF-8
15,864
3
3
[]
no_license
-- País - insert into pais (pais) values('Brasil'); commit; select * from pais; -- Estado - todos os estados brasileiros insert into estado (estado, UF, cod_pais) values ('Acre', 'AC', 1); insert into estado (estado, UF, cod_pais) values ('Alagoas','AL', 1); insert into estado (estado, UF, cod_pais) values ('Amazo...
true
8fda31741c76bcaf6b688c3de754d5adc79153cf
SQL
Allan-Sanchez/SQL_Oracle
/Select/filas_duplicadas.sql
UTF-8
175
2.625
3
[]
no_license
/*Filas duplicadas DISTINCT para no traer registros repetidos*/ select * from EMPLOYEES; select department_id from employees; select distinct department_id from EMPLOYEES;
true
17b61551c71f5b17674611ad31d23a232b8c5e06
SQL
imavishek/StairSupplies
/db/2018-08-03 - bug in product display.sql
UTF-8
2,434
3.265625
3
[]
no_license
CREATE OR REPLACE SQL SECURITY INVOKER VIEW `vOrderItems` AS SELECT `TblOrdersBOM_Items`.`OrderItemsID`, `TblOrdersBOM_Items`.`OrderVersionID`, `TblOrdersBOM_Items`.`GroupID`, `TblOrdersBOM_Items`.`AutoSuggestionParentID`, `TblOrdersBOM_Items`.`OrderItemPricePerUnit`, `TblOrdersBOM_Items`.`OrderItemName`, `TblOr...
true
baf9002cc88344c3a7a3f1a1e15f495ff0b2b043
SQL
mrahmatwu/Pemrograman-3
/MorRentalMobil/rental_mobil.sql
UTF-8
2,940
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 30, 2015 at 03:54 PM -- Server version: 5.5.27 -- PHP Version: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
fa44529255c9f0fc12ed01fcefd9647187acf146
SQL
jadavharsh111/InOut-2.0
/inout/database/inout (1).sql
UTF-8
2,727
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 01, 2015 at 12:24 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
b6a251ba8ca68aca18685ed5f44663c4418eb18f
SQL
sirius455/SQL
/16_제약조건.sql
UHC
11,641
4.15625
4
[]
no_license
/* # Ἲ - Ϳ Ѵٴ - ü Ἲ, Ἲ, Ἲ : # ü Ἲ - ̺ ʹ ݵ ־ Ѵ - ü Ἲ Ű PK Ѵ # Ἲ - 迡 ִ ʹ ׻ ϰ Ѵ (employees department_id departments departments_id ϴ ؾ Ѵ) - Ἲ Ű FK Ѵ # Ἲ - ش ÷ ϴ ε ׻ Ÿ ؾ Ѵ - ̺ ÷ Ÿ CHECK ؼ Ἲ Űִ ...
true
637bd41bca92b8b13086e87bbacc0e0947ac2539
SQL
poccariswet/rapsodier
/conf/mysql/2.sql
UTF-8
297
2.859375
3
[]
no_license
CREATE TABLE `todos` ( id int(11) NOT NULL AUTO_INCREMENT, text VARCHAR(256) DEFAULT NULL, done TINYINT(1) NOT NULL DEFAULT 0, location VARCHAR(200) NOT NULL DEFAULT 'todo', created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
true
04d5781db8f39ee15fe0daff450937d5020cac25
SQL
jayberry14/cs313
/web/Class/w06tuesday/run.sql
UTF-8
2,738
3.125
3
[]
no_license
DROP TABLE IF EXISTS w6_user; DROP TABLE IF EXISTS w6_food; CREATE TABLE w6_food ( id SERIAL NOT NULL PRIMARY KEY , food VARCHAR(200) NOT NULL ); CREATE TABLE w6_user ( id SERIAL NOT NULL PRIMARY KEY , first_name VARCHAR(200) NOT NULL , last_name V...
true
c6c28173073afb4c1c507cfe27fe24251370a4f2
SQL
gnawhnehpets/graduate.work_hopkins
/advcompbio/Final Project/monday/final/shwang26.sql
UTF-8
6,633
2.671875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.1.49, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: shwang26 -- ------------------------------------------------------ -- Server version 5.1.49-1ubuntu8.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARAC...
true
c2c69ac9d1b610b9619abec6420118082a312dc9
SQL
hyrise/replication
/tpcds/queries/28.sql
UTF-8
2,800
3.515625
4
[]
no_license
-- define LISTPRICE=ulist(random(0, 190, uniform),6); -- define COUPONAMT=ulist(random(0, 18000, uniform),6); -- define WHOLESALECOST=ulist(random(0, 80, uniform),6); -- define _LIMIT=100; select * from (select avg(ss_list_price) B1_LP ,count(ss_list_price) B1_CNT ,count(distinct ss_list_price...
true
8a703ee8ac32a6ea544e9f55a91c90e47e337b6f
SQL
Jorger/herramienta_pruebas_atomaticas
/database.sql
WINDOWS-1250
3,596
3.046875
3
[ "MIT" ]
permissive
# ************************************************************ # Sequel Pro SQL dump # Versin 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: localhost (MySQL 5.6.35) # Base de datos: adb_monkey_test # Tiempo de Generacin: 2017-12-11 22:58:09 +0000 # *******************************...
true
2f87ff496b3f4b908bb8b68f8f31e267e5f15c8b
SQL
Xerrrox/kursach
/public_html/server/trigger_order_insert.sql
UTF-8
206
2.828125
3
[]
no_license
delimiter // create trigger order_insert after insert on `orders` for each row begin update `users` set `name` = NEW.`name`, `telephone` = NEW.`telephone` where `id` = NEW.`user_id`; end;// delimiter ;
true
c9bfbc6f58377035b2817666668343d4b0180786
SQL
gdash-code/techelevator
/module-2/02_Aggregate_Functions_and_GROUP_BY/lecture-final/postgres/lecture.sql
UTF-8
7,829
4.96875
5
[]
no_license
-- ORDERING RESULTS -- Populations of all states from largest to smallest. -- Note DESC in ORDER BY SELECT state_name, population FROM state ORDER BY population DESC; -- States sorted alphabetically (A-Z) within their census region. The census regions are sorted in reverse alphabetical (Z-A) order. -- Note order of c...
true
8f05e640136ebcdd593eec0ed49a8b16eef206d7
SQL
SaulDoubleU/ToDo
/sql/todoapp.sql
UTF-8
3,241
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Gegenereerd op: 22 aug 2019 om 00:20 -- Serverversie: 10.4.6-MariaDB -- PHP-versie: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
true
8e02879e42e6ed0fee3ffe9fce0bfa3fcdc50fec
SQL
Huqicheng/Yelp_Challenge
/code/User.sql
UTF-8
1,742
4.0625
4
[]
no_license
-- use yelp_db; SET SQL_SAFE_UPDATES = 0; #Add Primary Key and Foreign Key constraint -- ALTER TABLE user ADD PRIMARY KEY (id); #Remove the record whose yelping_since is out of range 2004-2018 SET @@sql_mode='no_engine_substitution'; SELECT @@sql_mode; DELETE FROM user WHERE yelping_since < '2004-01-01 00:00:00' ...
true
55ad72aafbac5f4ac2bb5a2694bfae8429d17dae
SQL
pufei889/domai-cms
/dm-admin/data/struct.sql
UTF-8
3,195
3.8125
4
[]
no_license
##栏目信息 create table ##_categories( id int unsigned primary key auto_increment, parent int unsigned, #父栏目ID title varchar(200), #栏目标题 name varchar(200), #栏目名称 slug varchar(200), #栏目链接别名 keywords varchar(255), #栏目关键词 thumbnail varchar(255), #栏目缩略图 description varchar(255), #栏目描述 model ...
true
03b8bfd856a1c6097b6878cffc0c6bd7c2efcdab
SQL
DincerDogan/Data-Science-Learning-Path
/Data Scientist Career Path/14. SQL for Interview Prep/3. Window/1. Window/5. lag.sql
UTF-8
409
3.1875
3
[ "MIT" ]
permissive
SELECT artist, week, streams_millions, streams_millions - LAG(streams_millions, 1, streams_millions) OVER ( PARTITION BY artist ORDER BY week ) AS 'streams_millions_change', chart_position, LAG(chart_position, 1, chart_position) OVER ( PARTITION BY artist ORDER BY week )...
true
c72a5a568c58ca58fc92f1db50d475654a5c9b7c
SQL
haeinmin/jsp20201103
/WebContent/WEB-INF/sql/select/selectEx2.sql
UTF-8
1,968
3.390625
3
[]
no_license
SELECT * FROM employee WHERE ename = 'SMITH'; SELECT * FROM employee WHERE salary>1000; SELECT * FROM employee WHERE commission<500; SELECT * FROM employee WHERE salary>=300; SELECT * FROM employee WHERE salary <= 2000; SELECT * FROM employee WHERE ename <= 'C'; SELECT * FROM employee WHERE ename != 'SM...
true
ef859d2b20d9652268c39490f51ed55b47abcc7d
SQL
enterpreneur369/holbertonschool-higher_level_programming
/0x0D-SQL_introduction/9-full_creation.sql
UTF-8
242
2.703125
3
[]
no_license
-- Creation of the table second_table CREATE TABLE IF NOT EXISTS second_table ( id INT, name VARCHAR(256), score INT ); -- Add some records INSERT INTO second_table VALUES (1, "John", 10), (2, "Alex", 3), (3, "Bob", 14), (4, "George", 8);
true
5215f1c75517e8d480f39b3ca6d9f3b4d9f0089f
SQL
elegostaeva/DataBaseApp
/resources/create.sql
UTF-8
3,171
3.859375
4
[]
no_license
CREATE TABLE IF NOT EXISTS cathedra ( cathedra_id BIGSERIAL NOT NULL PRIMARY KEY, cathedra_name TEXT NOT NULL UNIQUE ); CREATE TABLE IF NOT EXISTS departments ( department_id BIGSERIAL NOT NULL PRIMARY KEY, department_name TEXT NOT NULL UNIQUE ); CREATE TABLE IF NOT EXISTS readers ( reader_id BIGSERIAL NOT ...
true
672f6620f0da2a13c8147881a5dd1df12058d1fd
SQL
apollowesley/jun_test
/f/_LeetCode/xgame-code_server/all_config/db/X_passbook.sql
UTF-8
5,474
2.796875
3
[ "Apache-2.0" ]
permissive
/* SQLyog Community v11.32 (64 bit) MySQL - 10.1.8-MariaDB : Database - x_passbook ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECK...
true
e5292d9bfc842ae68df1f7ab266666fd119bd27b
SQL
KnJbMfLAgdkwZL/wufast
/mcxrcjrb_db.sql
UTF-8
20,870
3.390625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.8 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Окт 22 2014 г., 06:41 -- Версия сервера: 5.5.37-cll -- Версия PHP: 5.4.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
a28a33d2b05cfcad64b345868bacfc5f1e383e71
SQL
furnathan/SQL-queries
/Get all products with SKU, option group, and option value.sql
UTF-8
563
3.734375
4
[]
no_license
SELECT p.products_id, p.products_model, po.products_options_id, po.products_options_name, pov.products_options_code FROM products p RIGHT JOIN products_attributes pa ON pa.products_id = p.products_id LEFT JOIN products_options po ON po.products_options_id = pa.options_id AND po.language_id = 1 LEFT JOIN products_...
true
08ed8cb9f31e2bd00af3bac2d49186f9e6eb8bcc
SQL
ppawelo1/pawel
/rok 2018-2019/szkola201005z6/szkola.sql
UTF-8
574
3.421875
3
[]
no_license
DROP TABLE IF EXISTS uczniowie; DROP TABLE IF EXISTS przedmiotu; DROP TABLE IF EXISTS dane; CREATE TABLE uczniowie( id_ucznia INTEGER PRIMARY KEY, nazwisko TEXT, imie TEXT, ulica TEXT, dom TEXT, id_klasy TEXT ); CREATE TABLE oceny( id_ucznia INTEGER, ocena TEXT(16), data DATE, id_przedmiotu INTEGER,...
true
ff869fe4d458280a9562005aeed6020b7a6c9d49
SQL
pachopepe/tpms-bi
/avg-report.sql
UTF-8
417
3.578125
4
[]
no_license
/* Tiempo promedio que toma en reportar cada sensor */ select sensor_serial,avg(diff) from (select sensor_serial,plate,tire_position, datediff(minutes,sensor_date,lead(sensor_date) over (partition by sensor_serial order by sensor_date)) as diff from phase1_sensor_measurements where sensor_ser...
true
5fcfb55df156af1b6e7e068d85a03f198b0d6f5c
SQL
andrijr/pythonPWN
/d5_2_database/p77_draft/mysql_python_p77.sql
UTF-8
1,886
3.734375
4
[]
no_license
create database python_p77 default character set utf8 collate utf8_polish_ci; select host, user from mysql.user; #DROP USER 'python_admin'@'localhost'; ############# create user 'python_admin'@'localhost' identified by 'admin'; grant SELECT, INSERT, UPDATE, DELETE on python_p77.* to 'python_admin'@'localhost'; flu...
true
8515987c615eaeb7ae8a25bc8ab50f5d576ff74c
SQL
MrD0079/portal
/sql/ms_vac_list_ms.sql
WINDOWS-1252
3,114
3.40625
3
[]
no_license
/* Formatted on 29.05.2017 16:52:17 (QP5 v5.252.13127.32867) */ SELECT s.id, s.login, s.FAM || ' ' || s.IM || ' ' || s.OTCH fio, TO_CHAR (s.BIRTHDAY, 'dd.mm.yyyy') BIRTHDAY, TO_CHAR (s.DATAUVOL, 'dd.mm.yyyy') DATAUVOL, TO_CHAR (s.START_company, 'dd.mm.yyyy') START_company,...
true
f7a05ab3074628659beb2c5e922a4d7946bdb01d
SQL
coloradocarlos/strava_metro
/sql/indexes_rollup.sql
UTF-8
4,963
2.90625
3
[]
no_license
--- --- Indexes on rollup tables --- -- -- 01 rollup -- CREATE INDEX ride_od_rollup_month_2017_1_total_destination_idx ON ride_od_rollup_month_2017_1_total USING btree (destination); CREATE INDEX ride_od_rollup_month_2017_1_weekday_destination_idx ON ride_od_rollup_month_2017_1_weekday USING btree (destination); CREAT...
true
a0d431d0a46d37d4b975df23e7b78ecfd46b69b1
SQL
evanallen13/Advanced-Database-Reference
/Homeworks/hw6/valid_snum.sql
UTF-8
421
2.890625
3
[]
no_license
set serveroutput on set echo off /* start C:\Users\evana\Desktop\IS480\homeworks\hw6\valid_snum.sql */ create or replace function func_valid_snum( p_snum students.snum%type) Return varchar2 as v_handler number(1); begin select count(*) into v_handler from students where snum = p_snum; if (v_handler = ...
true
66e9a0c1b57909a20fb488cf2a7da5bd69d2ddea
SQL
GIZ-JNEC/ToolTech-Process-Management-System
/tooltech.sql
UTF-8
5,297
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 29, 2020 at 05:01 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
7b49d545d77424feeb6e3ac6c2ae575b55efc283
SQL
yifeng2019uwb/DataCampAndCodePractice
/Data-Analyst-with-SQL-Server/01-Introduction-to-SQL-Server/02-Groups-strings-and-counting-things/07-Left-and-right.sql
UTF-8
689
3.78125
4
[]
no_license
/* Left and right We can retrieve portions of a string from either the start of the string, using LEFT, or working back from the end of the string, using RIGHT. */ /* Retrieve the first 25 characters from the description column in the grid table. Name the results first_25_left. */ -- Select the first 25 characters fro...
true
a18116617100d6222720203a5bb9d1e6b055b1e2
SQL
ko-ala/6CCS3PRJ
/DATA/CISBP sql/stats_by_dbd.sql
UTF-8
4,871
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.3.1 -- http://www.phpmyadmin.net -- -- Host: funspec.ccbr.utoronto.ca -- Generation Time: Jun 12, 2015 at 02:44 PM -- Server version: 5.1.73 -- PHP Version: 5.3.2-1ubuntu4.30 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
true
77ea1a2723fc5072f2d2ce802b61126c66545793
SQL
allenchng/Bit-O-Code
/leetcode/SQL/Leetcode 1303 Find the Team Size.sql
UTF-8
398
3.828125
4
[]
no_license
# First thing to notice is that the number of rows is not changing, this usually indicates we can use a window function to solve the problem # Team size means I partition over the team_id and count the number of employees. No need to order in the window function for this problem SELECT employee_id, COUNT(employee_...
true
c63f309615e8b8b8c78c141eb4f802b422ecb255
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day17/select0103.sql
UTF-8
178
2.65625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-16T01:03:00Z' AND timestamp<'2017-11-17T01:03:00Z' AND temperature>=36 AND temperature<=77
true
150182aa7f286cbc8efb030af05aca537d565dff
SQL
philipashlock/smartPDF
/smartpdf-upload/bin/createTable.sql
UTF-8
1,596
3.265625
3
[]
no_license
DROP TABLE IF EXISTS wp_smartPDF; CREATE TABLE wp_smartPDF ( FileID varchar(50) NOT NULL, Email varchar(500) NOT NULL, FormName varchar(100), FormStatus enum('ACTIVE', 'DELETED') default 'ACTIVE', FileName varchar(100) NOT NULL, UserID bigint(20) unsigned default 1, DateEntered datetime default '1...
true
e93a37e413869b5855dbb59644108ba4ede5159c
SQL
Dlayer/dlayer
/private/database/tables/structure/designer_css_border_style.sql
UTF-8
486
3.078125
3
[ "MIT" ]
permissive
CREATE TABLE `designer_css_border_style` ( `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(25) COLLATE utf8_unicode_ci NOT NULL, `style` varchar(25) COLLATE utf8_unicode_ci NOT NULL, `sort_order` tinyint(3) unsigned NOT NULL DEFAULT '1', PRIMARY KEY (`id`), UNIQUE KEY `style` (`style`), KEY `so...
true
bf811b7cc11cb3787dd0cfa7faf416d544b244c5
SQL
Slava-Alcore/recipeBook
/src/main/resources/db/populateDB.sql
UTF-8
1,136
3.3125
3
[]
no_license
DELETE FROM user_roles; DELETE FROM products; DELETE FROM recipes; DELETE FROM users; ALTER SEQUENCE user_seq RESTART WITH 100000; ALTER SEQUENCE recipe_seq RESTART WITH 100; ALTER SEQUENCE product_seq RESTART WITH 1000; INSERT INTO users (name, email, password) VALUES ('User', 'user@yandex.ru', '{noop}password'), ...
true
26e1602a2dd10a57f277bf2e0af0af9db7018be5
SQL
LauraMihaela/DW1E
/BaseDeDatos/bases de datos/ejercicios_mysql/select_from_where.sql
UTF-8
901
3.171875
3
[]
no_license
select * from sakila.actor; select * from sakila.actor where actor_id>=180 and actor_id<=200; select actor_id,last_update from sakila.actor where actor_id>=190 and actor_id<=200; select actor_id,last_update from sakila.actor where actor_id between 190 and 200; select customer_id,amount,payment_date from sakila.payment ...
true
8d5f36687942b33a9d28a1d7500456a3fd9ecd49
SQL
fhefh2009/myGithub
/mvc/chat/test.sql
UTF-8
990
2.875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50521 Source Host : localhost:3306 Source Database : my Target Server Type : MYSQL Target Server Version : 50521 File Encoding : 65001 Date: 2012-09-08 16:04:43 */ SET FOREIGN_KEY_...
true
43bb69536fc73cf37a0a76c779aa9ca6adfaebc7
SQL
annaavgit/competency
/etc/database/migrations/02-secondReleaseFull.sql
UTF-8
85,362
2.9375
3
[ "MIT" ]
permissive
START TRANSACTION; DROP TABLE IF EXISTS `atomicSkills`; CREATE TABLE `atomicSkills` ( `id` int(11) NOT NULL AUTO_INCREMENT, `text` text DEFAULT NULL, `additionalDescription` text DEFAULT NULL, `competencyId` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `id_UNIQUE` (`id`) ) ENGINE=InnoDB AUTO_INCREM...
true
fc2ad44eb62d09458cee2e336d3621928b47d836
SQL
RenataPenteado/ServletsAPI2.5
/Struts-VaiAsCompras/build/web/WEB-INF/classes/database/carrinho.sql
UTF-8
1,079
2.78125
3
[]
no_license
create database carrinho; use carrinho; create table tabProduto ( id int not null AUTO_INCREMENT, nome varchar(100), descricao varchar(200), preco decimal(6,2), imagem varchar(100), primary key(id) ); insert into tabProduto(id, nome, descricao, preco, imagem) values (1, 'Mitsubish Eclipse', 'Mitsubis...
true
0ecbe9191366f3d615d9df7f3120387b83412226
SQL
Aparna-Psiog/IMPACT_ASSIGNMENT
/SQL_Task4/Joins and Subqueries/Joins,Subqueries.sql
UTF-8
1,630
4.4375
4
[]
no_license
use CollegeDatabase; SELECT RollNo from Attendance where LectureID=14; --Displaying the roll number of students who attended the lecture on tuesday and thursday Create View [Student_Rollno] as SELECT RollNo from Attendance where LectureID IN (Select LectureID from Lecture where Day='Monday' OR Day='Thursday'); --Su...
true
17d0ff43e92bfc17098f7b129cc69e8755094719
SQL
prayaas-a/Stock-App-Foo-Bar
/sql/stockInitialize.sql
UTF-8
1,129
3.609375
4
[]
no_license
-- Execute this before running StockLoader.loadStockInfo(); -- The table can be modified to include more information from IEX DROP DATABASE IF EXISTS StockApp; CREATE DATABASE StockApp; USE StockApp; ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; CREATE TABLE Stocks ( symbol VARCHAR...
true
41c40d3d3efa10db192aa5257005cd67794c452a
SQL
Rvp7/SQL-Code-challenges-Linkedin-learning
/Sales.sql
UTF-8
1,285
3.625
4
[]
no_license
---Create a "sales" table for kaggle dataset CREATE TABLE sales( Invoice_ID VARCHAR(11) NOT NULL PRIMARY KEY ,Branch VARCHAR(1) NOT NULL ,City VARCHAR(9) NOT NULL ,Customer_type VARCHAR(6) NOT NULL ,Gender VARCHAR(6) NOT NULL ...
true
796b91fc1db0298475191867e51080d40716ca2b
SQL
jankvak/Schedule-of-pain
/updates/DB/2010-04-05-02 uprava dalsich FK.sql
UTF-8
507
2.671875
3
[]
no_license
-- predmet ALTER TABLE zapisany_predmet DROP CONSTRAINT zapisany_predmet_id_predmet_fkey; ALTER TABLE zapisany_predmet ADD CONSTRAINT zapisany_predmet_id_predmet_fkey FOREIGN KEY (id_predmet) REFERENCES predmet(id) ON UPDATE CASCADE ON DELETE CASCADE; -- student ALTER TABLE zapisany_predmet DROP CONSTRAINT zapisany_pre...
true
02b679801e84beca5e07f45484414bde75bca7c6
SQL
Petrozza/CSharp-Fundamentals
/DATABASE/Exam - 28 Jun 2020/Select Spaceships With Pilots.sql
UTF-8
282
3.75
4
[]
no_license
SELECT DISTINCT s.Name , s.Manufacturer FROM Colonists c JOIN TravelCards t on c.Id = t.ColonistId JOIN Journeys j ON t.JourneyId = j.Id JOIN Spaceships s ON j.SpaceshipId = s.Id WHERE t.JobDuringJourney = 'Pilot' And datediff (YEAR, c.BirthDate, '2019-01-01') < 30 ORDER BY s.Name
true
5d73a146df7484b92d32fe0b6aa2d4333f964c4f
SQL
kelleysislander/victoria_test_deploy
/doc/Ordering_Deals.sql
UTF-8
2,529
4.125
4
[]
no_license
SELECT r.name, d.* FROM deals d join retailers r on r.id = d.retailer_id Strategy for selecting the 3 types of Deals (Featured, Zone, and Regular) Deals List: 1. Get 3 resultsets randomly ordered for each deal category of "Featured", "Zone", and "Regular" within the give user's lat / lng and predetermined radius f...
true
beea800aea3fb544438ec54c84cb6f5f248273dc
SQL
ArchitGoyal1271/SE-challenge
/SQL_Query_1.sql
UTF-8
456
3.265625
3
[]
no_license
''' Engagement table was converted into bigint datatype to apply timestamp function''' alter table alooma.engagement alter column createdate type bigint using (createdate::bigint); select to_char(to_timestamp(createdate/1000),'YYYY-MM-DD') AS ENGAGMENT_DATE ,ETYPE ,COUNT(*) DAY_COUNT FROM ALOOMA.EN...
true
5c2e57e3e7e73e186ed36c82573a44af4c6a804e
SQL
Adeldevy/surface
/archive/create_database_surface_v1.sql
UTF-8
3,856
3.46875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : lun. 25 nov. 2019 à 11:22 -- Version du serveur : 10.4.6-MariaDB -- Version de PHP : 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4010...
true
4121d486e8b9d54fd8ccabd93970d7c35bf677ff
SQL
tacticalCoder/angularjs-store
/angularjs-store.sql
UTF-8
2,546
3.609375
4
[]
no_license
USE `angularjsstore`; DROP TABLE IF EXISTS `productimages`; CREATE TABLE `productimages` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `path` varchar(255) NOT NULL DEFAULT '', `product_id` int(11) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `productimages` WRITE; I...
true
7ca341a9555aa8826f59bca018eb7fc913fa6e67
SQL
codeiaks/auditoryExperiment
/mySQLs/tables.sql
UTF-8
2,384
3.109375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS speechPerception; use speechPerception; CREATE TABLE IF NOT EXISTS participant( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255) NOT NULL, studentID VARCHAR(255) NOT NULL, class VARCHAR(255) NOT NULL ); CREATE TABLE IF NOT EXISTS pInformation( givenID VARCHAR(255)...
true
58834d07fdb844dc2e128a983f727346819a977e
SQL
hoodlake/ymxx-sync
/Enterprise/Bytter/Sql_Script/user00031232_ORCL.sql
GB18030
776
3.109375
3
[]
no_license
--޸ڣ20120817 --޸ˣ̺ --޸ݣ¸ָʿɷָ --ã --ʵƵ create or replace trigger tr_bis_exc_ins before insert on bis_exc referencing old as old new as new for each row declare li_cnt int; ls_cbs_bill_no varchar2(20); begin ls_cbs_bill_no := :new.cbs_bill_no; if ls_cbs_bill_no is not null then select count(*) into li_cnt ...
true
fc871b630dbcb0872874f395b3d78c7ff20ec49e
SQL
okcgogogo/flyway-demo
/src/main/resources/db/migration/qa/V1__init_qa_data.sql
UTF-8
458
3.171875
3
[]
no_license
CREATE TABLE IF NOT EXISTS `project` ( `id` varchar(16) NOT NULL COMMENT '主键', `code` varchar(20) NOT NULL, `name` varchar(100) DEFAULT NULL COMMENT '名称', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `project` ADD description varchar(100) NULL; insert IGNORE into `project` (`id`, `code...
true
23d12617db3962440161023ad777f0170315a1cb
SQL
keeleys/example-springboot-dubbo
/example-service/doc/data.sql
UTF-8
3,374
3.640625
4
[]
no_license
create database demo CHARACTER SET 'utf8' COLLATE 'utf8_general_ci'; use demo; CREATE TABLE `t_user` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', `account` varchar(50) NOT NULL COMMENT '用户账户', `user_name` int(11) NOT NULL COMMENT '用户名称', `password` varchar(50) not null comment '用户密码', `create...
true
8f9e728bd91f897eae780303e78c1b52292e8724
SQL
johnpzh/code-clones-database-web
/src/sql/insert_data.sql
UTF-8
1,111
3.046875
3
[]
no_license
USE `code_clones`; INSERT INTO `Project` VALUES (1, 'Code Clones'), (2, 'Music App'), (3, 'Fog Computing'); INSERT INTO `Revision` VALUES (1, 1, 'P1-R1'), (2, 1, 'P1-R2'), (3, 2, 'P2-R1'), (4, 2, 'P2-R2'), (5, 3, 'P3-R1'), (6, 3, 'P3-R2'); INSERT INTO `Detector` VALUES (1, 'D1', '0x155117'), (2, 'D2', '...
true
6398df5766d7aacc94be0af1bdb4e0d453f8bb34
SQL
bencz/CapitalStock
/src/sql/sqlscript.sql
UTF-8
2,244
3.375
3
[ "Apache-2.0" ]
permissive
CREATE TABLE "portfolio" ( "id" integer primary key autoincrement, "version" integer not null, "quantity" double precision not null, "totalcost" double precision not null, "userdetails_id" bigint, constraint "fk_portfolio_userdetails" foreign key ("userdetails_id") references "userdetails" ("id") deferrable...
true
ed0cba2fcf56233e4bf2fe0d68707c3d4104af17
SQL
Nameless13/Amadeus
/flaskr/schema.sql
UTF-8
696
3.359375
3
[]
no_license
DROP TABLE IF EXISTS user; DROP TABLE IF EXISTS post; CREATE TABLE user ( id INTEGER PRIMARY KEY AUTOINCREMENT, username TEXT UNIQUE NOT NULL, password TEXT NOT NULL ); CREATE TABLE post ( id INTEGER PRIMARY KEY AUTOINCREMENT, author_id INTEGER NOT NULL, created TIMESTAMP NOT NULL DEFAULT CURR...
true
6ef18b18ad1791f04dbc5d489e8a708b0e95af7b
SQL
yiqiingg/habitat
/init_tables.sql
UTF-8
604
2.84375
3
[]
no_license
CREATE TABLE users ( id SERIAL PRIMARY KEY, name TEXT, email TEXT, password TEXT ); CREATE TABLE habits ( id SERIAL PRIMARY KEY, user_id INTEGER, habit TEXT, avatar INTEGER, action TEXT, frequency INTEGER, reminder_time TEXT, created_at TIMESTAMPTZ NOT NULL DEFAULT...
true
60b0158ddeea543970713b74846b94e8681defe4
SQL
qwer18251320/Business-Data-Management-Course
/Week 9-2.sql
UTF-8
4,560
4.28125
4
[]
no_license
select*from supplier_t; select*from product_t; # inner join select CompanyName,ProductName From supplier_t inner join product_t on supplier_t.SupplierNumber = product_t.SupplierNumber; # join - prefer where avoid to writing condition select CompanyName,ProductName From supplier_t join product_t where supplier_t.Suppl...
true
d787b00334891c77caa3ecb0fe540c57a3136af8
SQL
ThomasAlexandre/playcrud
/sql/slick.sql
UTF-8
3,197
3.296875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.15, for osx10.6 (i386) -- -- Host: localhost Database: slick -- ------------------------------------------------------ -- Server version 5.5.15-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /...
true
8dc2546ac4ce87c6fc21b4d6623df9f9a29e08d9
SQL
Shirleyxxy/lc-sql-database
/NPV-queries.SQL
UTF-8
305
4.21875
4
[]
no_license
-- NPV (net present value): -- id | year | npv -- Queries: -- id | year -- Write an SQL query to find the npv of all each query of queries table. -- Return the result table in any order. SELECT q.id, q.year, COALESCE(n.npv, 0) AS npv FROM Queries q LEFT JOIN NPV n ON (q.id = n.id AND q.year = n.year)
true
f13222341e0f5347e7e1a0c390baf24caddd7bf9
SQL
swapnil92/placement_exp
/dbv-1.1/data/schema/t_comment.sql
UTF-8
991
3.375
3
[]
no_license
CREATE TABLE `t_comment` ( `comment_id` int(11) NOT NULL AUTO_INCREMENT, `fexperience_id` int(11) NOT NULL, `fuser_id` int(11) NOT NULL, `fcomment_reply_id` int(11) NOT NULL, `comment_post` text NOT NULL, `comment_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `commen...
true
28f7f3d47916108e6e93bfaff12c303976e1107c
SQL
RumeshaGeekiyanage/civil
/civil.sql
UTF-8
14,241
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 28, 2016 at 04:30 AM -- Server version: 10.1.16-MariaDB -- PHP Version: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
e0c1ce15ee9f20e6dcc2b821943d1bf0c83d8dcc
SQL
endeavourhealth-discovery/DiscoveryQueryLibrary
/Projects/NELondonDiabetes/Queries/7_populateEligSnomeds.sql
UTF-8
1,948
2.75
3
[ "Apache-2.0" ]
permissive
USE data_extracts; DROP PROCEDURE IF EXISTS populateEligSnomeds; DELIMITER // CREATE PROCEDURE populateEligSnomeds() BEGIN INSERT INTO snomed_codes (GROUP_ID, SNOMED_ID, DESCRIPTION) VALUES (4,237602007,'Metabolic syndrome X (disorder)'), (4,417681008,'Diabetic patient unsuitable for digital retinal photography (f...
true
a8b405140e3a88a9643f381b0b83397a70a29d2a
SQL
KenosSGI/org.kenos.idempiere.lbr
/org.kenos.idempiere.lbr.migration/migration-historic/000000/oracle/3-100-rc110/003-FR_2209683.sql
UTF-8
14,151
2.671875
3
[]
no_license
-- 01/12/2008 10h27min14s BRST -- Default comment for updating dictionary INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsPar...
true
4c8147f98c9845a62d3e6f17f8be04ae893fdf6f
SQL
kkaokaca/PIIV
/recipes_project.sql
UTF-8
12,677
3.015625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : xamppProjekat Source Server Type : MySQL Source Server Version : 100138 Source Host : localhost:3306 Source Schema : recipes_project Target Server Type : MySQL Target Server Version : 100138 File Encoding : 6500...
true
05f7725665fa5e748c650d985feedc5fe5e23de4
SQL
itikizera/SQL-querys
/SD2.sql
UTF-8
4,314
3.34375
3
[]
no_license
--Mauro, precisa incluir o SC6 para validar o tipo de operação, grupo de produto, TES, etc... -- LOCAÇÃO E VENDA DE MAQUINAS -- 17550 SELECT DISTINCT 'ITALIAN INDUSTRIA' AS EMPRESA, CASE WHEN D2_FILIAL='01' THEN 'MATRIZ' WHEN D2_FILIAL='02' THEN 'ANHAIA' WHEN D2_FILIAL='03' THEN 'CAMPINAS' ...
true
3b1f3cc91373b6f090d60e16db00704e3cf0ff59
SQL
aldemarg911/conf_migra
/MIGRACION/CONF_REASEGURO/01_Mig_CodiContrato.sql
ISO-8859-1
4,336
2.671875
3
[]
no_license
DECLARE /****************************************************************************** NOMBRE: 03_Mig_CodiContratos PROPSITO: Procedimiento que ejecuta carga de CodiContratos - REASEGUROS REVISIONES: Ver Fecha Autor Descripcin --------- ---------- --...
true
e7986fe880c20c8a27b78a21a09a5ab16e56d907
SQL
kunzmarcelo/sigep2.0
/view/nao usados/numero_pecas.sql
UTF-8
3,752
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Tempo de geração: 20/07/2017 às 14:26 -- Versão do servidor: 10.1.13-MariaDB -- Versão do PHP: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_...
true
b26c980d9ef8f9e257857dadbc27940a448941e3
SQL
825bingwen/SELFSVC
/.svn/pristine/ad/ad3377bb1ddbae5ac80273316b1a0700d45cf622.svn-base
GB18030
2,243
2.953125
3
[]
no_license
--============================================================== -- űݣûcommonִУ -- 1.ɾcommonûSA_DB_SMTEMPLATE -- 2.commonûSA_DB_SMTEMPLATE -- -- űcommonûִ -- --============================================================== set feedback off set define off -- delete SA_DB_SMTEMPLATE where template_no ='SELFSVCBUHUO'; ...
true
58f1421c44d9d465892bc342972943a32bcceec5
SQL
vorpal-research/kotoed
/kotoed-server/src/main/resources/db/migration/V7__Add_Submission_Table_Constraints.sql
UTF-8
655
3.765625
4
[]
no_license
DELETE FROM Project WHERE courseId IS NULL; DELETE FROM Project WHERE denizenId IS NULL; ALTER TABLE Project ALTER courseId SET NOT NULL; ALTER TABLE Project ALTER denizenId SET NOT NULL; DELETE FROM Submission WHERE projectId IS NULL; ALTER TABLE Submission ALTER projectId SET NOT NULL; DELETE FROM Submission WHERE...
true
ece1be26abf896fefef032eaae0998b24213272f
SQL
ShafiullahK/Xplode-Tech
/backups/DATABASE_xplode-tech_11-02-2020.sql
UTF-8
29,664
3.03125
3
[]
no_license
DROP TABLE IF EXISTS `academy`; CREATE TABLE `academy` ( `id` int(11) NOT NULL, `name` varchar(100) NOT NULL, `contact` varchar(100) NOT NULL, `address` varchar(300) NOT NULL, `details` varchar(300) NOT NULL, `principle` varchar(300) NOT NULL, `logo` varchar(300) NOT NULL, `created_at` timestamp NOT...
true
fb9d72aa1e5d02e7bc6d2cab7df097a41ecb677f
SQL
words-sdsc/savi
/scripts/unavco.sql
UTF-8
774
3.265625
3
[ "Apache-2.0" ]
permissive
CREATE SEQUENCE public.unavco_sites_id_seq INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 5 CACHE 1; ALTER TABLE public.unavco_sites_id_seq OWNER TO etlfires; CREATE TABLE public.unavco_sites ( unavco_sites_id integer NOT NULL DEFAULT nextval('unavco_sites_id_seq'::regclass), id character v...
true
92eabae43b7890890f90cdc1a063eb6d7d125b4e
SQL
robgalicia/katsa_php
/Database/Store/sp_actaservicio_all.sql
UTF-8
557
3.421875
3
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS sp_actaservicio_all $$ CREATE PROCEDURE sp_actaservicio_all(IN pidordenservicio int) begin select idactaservicio,idordenservicio,numeroacta,fechaacta,ifnull(observaciones,'') as observaciones, case tipoacta when 'I' then 'Inicial' wh...
true
3da87f04525330a416149b4321f75f4ca823e04c
SQL
rags1106/hawaiadda
/hawaiadda-pg/DB/dump.sql
UTF-8
8,582
3.03125
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 11.5 -- Dumped by pg_dump version 11.5 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', '', fal...
true
908b62b2f6c4e8c963fb3bb2ac266ac53be89bc7
SQL
jonathanfrancisco/Poll-App
/poll_app.sql
UTF-8
3,155
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 26, 2018 at 04:10 AM -- Server version: 5.7.22-0ubuntu18.04.1 -- PHP Version: 7.2.5-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
true
b641b44bb82cfd293b9b2b1b79084bc4680ffbf9
SQL
VladimirAntin/auctions-kotlin
/src/main/resources/import.sql
UTF-8
2,141
3.046875
3
[]
no_license
-- Users INSERT INTO users(name,email,password,picture,address,phone,role) VALUES('admin','admin@email.com','pass','/images/profile.png',null,null,'admin') INSERT INTO users(name,email,password,picture,address,phone,role) VALUES('owner','owner@email.com','pass','/images/profile.png',null,null,'owner') INSERT INTO u...
true
f1743eadf05cae05e3a7f02553a3c328f5ea851d
SQL
ohgeehyun/seantour
/src/main/resources/jnit/ddl/tibero/jnitsitestats_tibero.ddl
UTF-8
803
3.359375
3
[]
no_license
/**********************************/ /* Table Name: 사이트별 방문자 접속 카운트 */ /**********************************/ CREATE TABLE JNITSITESTATE( WHEN_DATE VARCHAR2(50) NULL ); COMMENT ON TABLE JNITSITESTATE is '사이트별 방문자 접속 카운트'; COMMENT ON COLUMN JNITSITESTATE.WHEN_DATE is '접속일'; /*****************...
true
7e989f42f9fed8e25809c21e4b0ea7bd932b3ec2
SQL
RafaelEtec/Atividade_Final
/sql/dbFinalAPI.sql
UTF-8
711
3.203125
3
[]
no_license
create database dbEmpresa; use dbEmpresa; CREATE TABLE `tbProdutos` ( `codigo` int NOT NULL, `descricao` varchar(200) NOT NULL, `quantidade` varchar(200) NOT NULL, `valor` money NOT NULL, `dataEntrada` varchar(100) NOT NULL, `imagem` varbinary(max) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSER...
true
ece73d1762ec3c6da18e77be7cd5855381596ccb
SQL
numsweb/booker
/db/development_structure.sql
UTF-8
2,560
3.40625
3
[]
no_license
CREATE TABLE `books` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `description` text COLLATE utf8_unicode_ci, `user_id` int(11) DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEF...
true
fda769b11031632ebea93355c7e58b3c598a3533
SQL
shakeel2717/pos
/public/epos_mpg_backup_1623837305.sql
UTF-8
78,721
3.140625
3
[ "MIT" ]
permissive
CREATE TABLE `accounts` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `account_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `initial_balance` double DEFAULT NULL, `total_balance` double NOT NULL, `note` text COLLATE utf8mb4_unicode_ci, ...
true
59c1b6a129c61e9ca62ae94b5ae96ae8ee5c5778
SQL
chounhlee/SQL_Excercise
/SQL_Excercise/Data Management/Data management code along/007 - Update Data.sql
UTF-8
403
3.265625
3
[]
no_license
use trackit; -- provide a project summary and change the duedate Update Project set Summary = 'All lessons and exercises for the relational datab ase milestone.', DueDate = '2018-10-15' Where projectId = 'db-milestone'; -- change kingdsly's LastName to 'Oaks'. Update Worker Set LastName = 'Oaks' Where WorkerI...
true
82f7131946df00e1a2e684347ae318189d44a11b
SQL
raudel-valdes/Auction_Database_Part2
/trigger1_drop.sql
UTF-8
430
3.28125
3
[]
no_license
-- description: <constraint_description> PRAGMA foreign_keys = ON; drop trigger if exists <trigger_name>; create trigger <trigger_name> {before|after} {insert|update|delete} ON <table_name> for each row when <expression> begin ... end; ... /* add more triggers as needed */ And your triggerN drop.sql files should have t...
true
8a0ff2059a485a71e04b50d392e299781f10cb8a
SQL
yuryShkrabov/TAM2018
/test_db.sql
UTF-8
1,542
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Время создания: Ноя 04 2018 г., 22:23 -- Версия сервера: 5.5.25 -- Версия PHP: 5.2.12 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4010...
true
78b7f4f5f1382a38c56c0004680ac8bd60af564e
SQL
dipsuji/SQL-Query
/sql-query/ur.sql
UTF-8
2,637
4.3125
4
[ "Apache-2.0" ]
permissive
-- insert data in CUSTOMERS table INSERT INTO CUSTOMERS VALUES (1,'Paul', 'hen', 'hen234@gmail.com','3200 Mt Vernon Hwy','Quincy' ,22902); INSERT INTO CUSTOMERS VALUES (2,'Jahan', 'thapar', 'thapar.hp@gmail.com','2050 James Vernon Hwy', 'India', 221208); INSERT INTO CUSTOMERS VALUES (3,'teddy', 'sah', 'sah.tim23@acadam...
true
cead97d523e047eb4c1cfc328fe5e0168c5dda0a
SQL
2stacks/freeradius-django
/raddb/mods-config/sql/main/postgresql/setup.sql
UTF-8
1,483
3.09375
3
[ "MIT" ]
permissive
/* * admin.sql -- PostgreSQL commands for creating the RADIUS user. * * WARNING: You should change 'localhost' and 'radpass' * to something else. Also update raddb/sql.conf * with the new RADIUS password. * * WARNING: This example file is untested. Use at your own risk. * Please send any bug fixes to th...
true