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
d908dd340e03710db6f7bf1823214a8980dcae68
SQL
maxsad1/SQL
/undo/undo_check.sql
UTF-8
2,521
3.859375
4
[]
no_license
Set lines 500 pages 999 set feedback off echo off PROMPT ################# Undo Tablespace status ################# col tablespace_name for a16 select t.tablespace_name, t.mb "TotalMB", t.mb - nvl(f.mb,0) "UsedMB", nvl(f.mb,0) "FreeMB" ,lpad(ceil((1-nvl(f.mb,0)/decode(t.mb,0,1,t.mb))*100)||'%', 6) "% Used", t.e...
true
22dfb6357aa101597ad1d2b5268ab13677967e0d
SQL
wkfff/WebConsolitation
/.svn/pristine/3d/3d4493e79acbf1414aa577e67d3e6abe325b87fe.svn-base
WINDOWS-1251
570
2.5625
3
[]
no_license
/******************************************************************* Oracle 2.6 2.7 *******************************************************************/ :On Error ignore :r Alter2_6_01.sql :r Alter2_6_02.sql :r Alter2_6_03.sql :r Alter2_6_04.sql :r Alter2_6_05.sql :r Alter2_6_06.sql :r Alter2_6_07.sql --ins...
true
934c5501f1bd68009c99908d6e9f4916a5373969
SQL
ArisPutraBuana/CI_UploadMultipleThumbnails
/db_thumbs.sql
UTF-8
2,012
2.859375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 29 Mar 2020 pada 15.33 -- Versi server: 10.1.31-MariaDB -- Versi PHP: 5.6.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
6fa9f6d545793f4c3d0f9885a448ba419a8100fc
SQL
neostreet/poker_session_data
/2020_mtt_nlhe_is_itm2.sql
UTF-8
172
2.65625
3
[]
no_license
use poker select poker_session_date,winnings > 0 from poker_sessions where poker_style = 2 and poker_flavor = 3 and left(poker_session_date,4) = '2020' order by id; quit
true
64954045bfd13f9a0cdf782691c39d3432c8647e
SQL
wsigma21/sql_exercises
/advance/question1_2.sql
UTF-8
207
2.921875
3
[]
no_license
-- 各グループの中でFIFAランクが最も高い国と低い国のランキング番号を表示してください。 select group_name, max(ranking), min(ranking) from countries group by group_name;
true
3349fd7ab5027167545e46df848a75a693adb639
SQL
JohabBenicio/criacaojb
/jbdiff_parameters_instances.sql
UTF-8
1,188
2.9375
3
[]
no_license
cat <<JHB>/tmp/jbdiff_param_inst.sh clear echo -e "\n" ps -ef | grep smon | grep -iv "grep\|+asm\|/\|-" | sed 's/.*mon_\(.*\)\$/\1/' echo -e "\n" read -p "Informe o nome da primeira instancia: " SID1 read -p "Informe o nome da primeira instancia: " SID2 clear echo -e "\n\n" alias sid1="export ORAENV_ASK=NO ; ORACLE_SID...
true
da2a07cd909c4c79cc3f65c240b0bb6393ddae8d
SQL
Yamanil/BD_BOOKFLIX
/NEOBOOKFLIX/SCHEMA/SCHEMA.sql
UTF-8
5,828
3.71875
4
[]
no_license
create database neobookflix; USE neobookflix; CREATE TABLE AUTOR ( IDAUT int NOT NULL AUTO_INCREMENT COMMENT 'Código de autor.', IDPAIS int NOT NULL COMMENT 'Codigo de país.', NOMAUT varchar(100) NULL COMMENT 'Nombre completo del autor.', APEAUT varchar(100) NULL COMMENT 'Apellidos del autor.', CONS...
true
64e36615a8209e923c70a7637b4934c31f9a9d2b
SQL
MarshallPhilip/TPI-FICTIF
/Base_de_Donnees/Backup/tpi-fictif(1).sql
UTF-8
5,127
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Client : 127.0.0.1 -- Généré le : Mar 21 Mars 2017 à 10:31 -- Version du serveur : 5.7.14 -- Version de PHP : 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
true
23e431635a0a5f2a1f92d9a73649703a10e46536
SQL
Ghostzer/YopBooking
/API/DataBase/yopbooking.sql
UTF-8
3,023
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Client : 127.0.0.1 -- Généré le : Mar 14 Février 2017 à 15:53 -- Version du serveur : 5.7.14 -- Version de PHP : 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
true
affdf795f9637c5373c01a06c41a31ce64539331
SQL
maesche/tim
/res/tim.sql
UTF-8
8,768
3.8125
4
[]
no_license
/* Authors: Alain Bellatalla Mathieu Noverraz Stefan Meier Version: 20110703 Description: script to create tim database Détails: creation order needs to be respected (dependencies) To execute from command line interface : mysql --user=USR --password=PWD --default-character-set=ut...
true
ddffadb250f7aebb8f147abcfbb38a4cb323356a
SQL
rwbrockhoff/note
/db/insert_timestamp.sql
UTF-8
182
3.078125
3
[]
no_license
update notes set memory = (select date_part('day', age(localtimestamp, (select timestamp from notes where note_id = $1 and author_id = $2) ))) where note_id = $1 and author_id = $2;
true
4f618ff4cfe23ae390370f8c8c4fe8ddeb85ad13
SQL
iseitz/Grocery-list-with-Postgres
/schema.sql
UTF-8
304
3.265625
3
[]
no_license
DROP TABLE IF EXISTS groceries CASCADE; DROP TABLE IF EXISTS comments; CREATE TABLE groceries ( id SERIAL PRIMARY KEY, name VARCHAR(255) NOT NULL ); CREATE TABLE comments ( id SERIAL PRIMARY KEY, body VARCHAR(255) NOT NULL, grocery_id INTEGER REFERENCES groceries (id) ON DELETE CASCADE );
true
8d24d4c93825e99dd11ea8cae8da8e6fbc418c37
SQL
joeykishiuchi/Bootcampx
/4_queries/13_num_of_assistances_per_teacher_per_cohort.sql
UTF-8
313
3.6875
4
[]
no_license
SELECT teachers.name, cohorts.name AS cohorts, COUNT(*) FROM teachers JOIN assistance_requests ON assistance_requests.teacher_id = teachers.id JOIN students ON students.id = student_id JOIN cohorts ON cohorts.id = cohort_id WHERE cohorts.name = 'JUL02' GROUP BY teachers.name, cohorts.name ORDER BY teachers.name;
true
787e127f92f0fe846ea68bfcc6ead38068cdaaff
SQL
hafidz0098/Admin
/Database.sql
UTF-8
7,485
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Waktu pembuatan: 13 Apr 2020 pada 14.32 -- Versi server: 10.3.22-MariaDB-log-cll-lve -- Versi PHP: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!401...
true
d26b3d5c508b3142fd866cc2ad1125864083c8ea
SQL
hosseinkavoosi5/sqlserver
/tamrin1.sql
UTF-8
2,220
3.984375
4
[]
no_license
sCreate Person Table------- CREATE Table Persen(id INT NOT NULL PRIMARY KEY IDENTITY,student_number nchar(15),major_id int,CONSTRAINT [FK_Student_ToTable] FOREIGN KEY (major_id) REFERENCES [Major]([id])); ---------SELECT Person Table------- SELECT * FROM dbo.Person; ---------Create Student Table------- CREATE TAB...
true
cd74ba34999f029560d02adf4fcb8f1cf51c81b5
SQL
KacperToczek/Kino_aplikacja
/inserty_kino_db.sql
UTF-8
3,583
2.671875
3
[]
no_license
-- inserty do kina INSERT INTO gatunki VALUES ('sensacyjny'); INSERT INTO gatunki VALUES ('komedia'); INSERT INTO gatunki VALUES ('horror'); INSERT INTO gatunki VALUES ('obyczajowy'); INSERT INTO gatunki VALUES ('thriller'); INSERT INTO kategorie_wiekowe VALUES ('6+'); INSERT INTO kategorie_wiekowe VALUE...
true
9a01a92142ee61f18bc37e18bb7b19dc426b6932
SQL
IDooMsI/Sorbo-Solidario
/build/script.sql
UTF-8
404
2.671875
3
[]
no_license
CREATE TABLE sorbo ( id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, donador VARCHAR(255) NOT NULL, numero_de_sorbo VARCHAR(255) NOT NULL UNIQUE, fecha DATE NOT NULL, establecimiento VARCHAR(255) NOT NULL, organizador VARCHAR(255) NOT NULL, causa VARCHAR(255) NULl ); CREATE TABLE causa ( ...
true
da35c097e8d292586b08ced5cae7c93f2059bc68
SQL
PrawalSrivastava/Encephalon
/mavenproject2/EService/target/EService-1.0-SNAPSHOT/WEB-INF/classes/SQLCode/ExamResultProcedure.sql
UTF-8
903
3.609375
4
[]
no_license
use mysqlProd; DELIMITER // drop procedure if exists ExamResultProcedure// create procedure ExamResultProcedure(in userName varchar(40), in SuccessIds varchar(max), in FailureIds varchar(max)) deterministic begin #first check if UserQuestionInteractionProcedure contains noofQuestoins entries for #the given use...
true
7aa622d2463c8fe87c723839da86ea576f06ae8c
SQL
rayedbw/JavaFX_Application
/db/demo.sql
UTF-8
2,786
3.4375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 31, 2015 at 03:38 PM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
8eb45897c74fe68fcf23c175ebf74d08cf4e9092
SQL
vgoel38/PQET
/inputs/really_final_outputs/without_seq/original/6e.sql
UTF-8
2,842
2.8125
3
[]
no_license
QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------...
true
165cb28878ab8d090ff813cb15f47f8beab92349
SQL
xtpv/demo
/php/qwdz.sql
UTF-8
37,446
2.703125
3
[ "Apache-2.0" ]
permissive
/* Navicat MySQL Data Transfer Source Server : mysql Source Server Type : MySQL Source Server Version : 50714 Source Host : localhost:3306 Source Schema : qwdz Target Server Type : MySQL Target Server Version : 50714 File Encoding : 65001 Date: 25/05/201...
true
a7790f41236295479d12e81f818c20dbc316c1d9
SQL
Karagul/eSTAR
/scripts/freeCF.sql
UTF-8
792
3.84375
4
[]
no_license
SELECT c."Name",avg(c."CashfromOperatingActivities"+c."CapitalExpenditures") as "FreeCF",avg(b."CashandShortTermInvestments") as "ShortTermCash",avg(b."TotalDebt") as "TotalDebt",avg(p."Adjusted") as "Price", avg((b."TotalCommonSharesOutstanding")) as "TotalShare", avg((b."TotalCommonSharesOutstanding" * p."Adjusted"))...
true
7a8521a636a85ca363707d1aa249a56ea6e8a77d
SQL
joshsimon-bit/archerApp
/sql/schema.sql
UTF-8
1,148
3.59375
4
[]
no_license
CREATE TABLE users ( id serial PRIMARY KEY, name VARCHAR (20) NOT NULL, email VARCHAR (40) NOT NULL, user_name VARCHAR (40) NOT NULL, password VARCHAR (2000) NOT NULL ); CREATE TABLE locations ( id serial PRIMARY KEY, state_name text, location_name text, location_description text, ...
true
aa03d8bec6c5f6a3c448e2edeac809c2423e528e
SQL
krishnanunnikmr/bulkcsvinsertion
/src/main/resources/sample/sql.sql
UTF-8
969
2.9375
3
[]
no_license
CREATE SCHEMA `bulkupload` ; CREATE TABLE `accumulative_deals` ( `id` int(11) NOT NULL AUTO_INCREMENT, `count` decimal(19,2) DEFAULT NULL, `ordering_currency` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 CREATE TABLE `invalid_deal` ( `id` int(11) NOT NULL AUTO...
true
3e93064840d0a0006b4d7a492c6f4b4c937a7c3f
SQL
diggleweb/learning-mysql-2nd
/ch10/actor_in_nasa.sql
UTF-8
397
3
3
[]
no_license
USE nasa CREATE TABLE `actor` ( `actor_id` smallint unsigned NOT NULL AUTO_INCREMENT, `first_name` varchar(45) NOT NULL, `last_name` varchar(45) NOT NULL, `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`actor_id`), KEY `idx_actor_last_name` (`last_name`) ) ENGINE=I...
true
5f0f12abf4705ecd8453811b88e7a57e79bc3b8c
SQL
nameyeh/sql-01
/sql1hw.sql
UTF-8
8,707
4.3125
4
[ "MIT" ]
permissive
-- Homework Assignment -- 1a. Display the first and last names of all actors -- from the table `actor`. use sakila; select first_name, last_name from actor; -- 1b. Display the first and last name of each actor in a -- single column in upper case letters. Name the column -- `Actor Name`. select concat(first...
true
7640b9626590daaab80dd3920e746553668c4a15
SQL
cckmit/crm
/test.sql
UTF-8
14,085
2.75
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 192.168.1.3_3306 Source Server Version : 50130 Source Host : 192.168.1.3:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50130 File Encoding : 65001 Date: 2017-09-15 11:13:52 */ SET FOREIG...
true
55c81ba4524db457b0e4b944f4d86ca05c7cf84e
SQL
ErwanThoury/ARCS_SQL
/ARCS_SQL_bookshelf/req12.sql
UTF-8
134
3.09375
3
[]
no_license
SELECT title, author as name FROM books b INNER JOIN authors a ON b.author = a.name WHERE release > death_date ORDER BY title, name;
true
7d6fc321bf7a46655b4301fced82a20240ab5cab
SQL
yschatzberg/sql-scratch-capstone-turn-in
/SQL Capstone/code.sql
UTF-8
1,525
4.34375
4
[]
no_license
with months as( SELECT '2016-12-01' AS first_day, '2016-12-31' AS last_day UNION SELECT '2017-01-01' AS first_day, '2017-01-31' AS last_day UNION SELECT '2017-02-01' AS first_day, '2017-02-28' AS last_day UNION SELECT '2017-03-01' AS first_day, '2017-03-31' AS last_day ), cross_join as ( select * ...
true
65e8cf5eed499bbdaaf715b4876e2ebfef2ee9b9
SQL
ppalatas/Database_Exercises
/albums_migration.sql
UTF-8
409
3.09375
3
[]
no_license
use codeup_test_db; drop table if exists albumsOverFourtyMillion; create table IF NOT EXISTS albumsOverFourtyMillion( id INT unsigned not null auto_increment, Artist varchar(150) NOT NULL, Album varchar(150) NOT NULL, Released smallINT, Genre varchar(150) NOT NULL, Sales_Certification decimal(20, 2) default ...
true
b520e3d027641264d1ba12fec3718289f8aee11e
SQL
aaroncarlfernandez/covid_web_application
/backend/db/sqls/queries/getTopCountries.sql
UTF-8
280
3.5
4
[]
no_license
SELECT country, SUM(confirmed_cases) AS "confirmed", SUM(death_cases) AS "deaths", SUM(recovered_cases) AS "recovered" FROM covid_observations WHERE observation_date = ${observationDate} GROUP BY country HAVING SUM(confirmed_cases) > 0 ORDER BY confirmed DESC LIMIT ${maxResults}
true
9ed9e2d2d3c7da11649391e04fb0ca7f6845036a
SQL
stureiko/GB_DataBases
/shop/user_profiles.sql
UTF-8
9,465
3.265625
3
[]
no_license
# # TABLE STRUCTURE FOR: user_profiles # -- -- DROP TABLE IF EXISTS `user_profiles`; -- -- CREATE TABLE `user_profiles` ( -- `user_id` int(10) unsigned NOT NULL, -- `sex` char(1) COLLATE utf8_unicode_ci DEFAULT NULL, -- `birthday` date DEFAULT NULL, -- PRIMARY KEY (`user_id`), -- CONSTRAINT `profiles_user_id_fk` F...
true
fdae7002c6599f0785345033566a334755998e74
SQL
fi-tools/cf-forum
/db/views/system_tags_v01.sql
UTF-8
240
3.8125
4
[]
no_license
SELECT td.id, td.tag as td_tag, td.anchored_type, td.anchored_id, ut.tag as ut_tag FROM tag_decls as td INNER JOIN user_tags as ut ON td.target_id = ut.id WHERE td.target_type = 'UserTag' AND ut.user_id IS NULL AND td.user_id IS NULL
true
ad7b5342479618dd2fe14bb8e6809fedfcb36197
SQL
plazar/TOASTER
/sql/templates.sql
UTF-8
431
2.765625
3
[]
no_license
CREATE TABLE IF NOT EXISTS templates ( template_id BIGINT not null AUTO_INCREMENT PRIMARY KEY, pulsar_id BIGINT not null, obssystem_id BIGINT not null, filename varchar(512) not null, filepath varchar(512) not null, md5sum varchar(64) not null, add_time DATETIME not null, nbin mediumint unsigned, is_analytic ...
true
e4e6c1a340f673800783cf487fe050f77916cc20
SQL
Saanri/net-learn-d1
/07. Basic SQL/Task_1and2_Scripts/HW_2_3_1.sql
UTF-8
563
3.8125
4
[]
no_license
-- 1. Определить продавцов, которые обслуживают регион 'Western' (таблица Region). select distinct emp.EmployeeID , emp.TitleOfCourtesy + ' ' + emp.LastName + ' ' + emp.FirstName as EmployeesName from Employees emp inner join EmployeeTerritories etr on etr.EmployeeID = emp.EmployeeID i...
true
56c8dc2f602f96ccf55c5d9ecae7d57168e1f2d7
SQL
DinhVanKhanh/Toan
/public_html/docs/sql.sql
UTF-8
1,631
3.328125
3
[]
no_license
create table if not exists cates( cate_id int primary key auto_increment, cate_name varchar(255) unique, cate_uri varchar(255) unique ) engine myisam character set utf8 collate utf8_unicode_ci; create table if not exists posts( post_id int primary key auto_increment, post_author varchar(255) default '@dp...
true
5452bc44267d81941cfb46c2f7c70bfee2ad2cad
SQL
ileri-seviye-mssql-oracle-sql-bootcamp/oracle-sql-week-2-homework-ecemturkay
/Ecem_Banking_Queries.sql
UTF-8
543
3.859375
4
[]
no_license
--7 B select MAX(purpose), MAX(count(purpose)) from loans where month = 4 group by purpose order by count(purpose) ; --11 B SELECT first, count(client_id) FROM clients where SEX = 'Female' AND AGE IN(50,51) group by first having count(client_id) > 1; --40 B SELECT YEAR, COUNT(ACCOUNT_ID) FROM ACCOUNTS...
true
e79db6d35a5aa528f17fdbbd2af9ca5ad4cd762b
SQL
learnless/db_leetcode
/571.给定数字的频率查询中位数.sql
UTF-8
1,061
4.125
4
[]
no_license
select sum(number)/count(distinct number) as median from( select IF(sum_number%2=0, case when (sum_number/2>=@lastcount and sum_number/2<=countn) or (sum_number/2+1>=@lastcount and sum_number/2+1<=countn) then number else null end, case when ceil(sum_number/2)>=@lastcount and ceil(sum_number/2)<=coun...
true
c452ccdf84177c63439cfa77c8ac814c07c80e9c
SQL
fabiomigliorini/MGdb
/SQLs/Transferencias - Gera nota produtos sobrando.sql
UTF-8
3,823
3.765625
4
[]
no_license
 with tr as ( with /* dep as ( select pv.codproduto, pv.codprodutovariacao, sum(case when es.fiscal != true then es.saldoquantidade else null end) as fisico, sum(case when es.fiscal = true then es.saldoquantidade else null end) as fiscal, sum(case when es.fiscal = true then 1 else -1 end * es.sa...
true
fa4146cc36fc74f79e06e3220dea5a422ac6a72f
SQL
rohitsharma04/AirlineReservationSystem
/initialdb.sql
UTF-8
10,533
2.921875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.43, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: ars -- ------------------------------------------------------ -- Server version 5.5.43-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARA...
true
c3f86a2362dcf70baa7d4cc6fad06fe0baa6b1a8
SQL
Borobo/PINF
/dblock2.sql
UTF-8
7,736
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : mer. 08 mai 2019 à 12:58 -- Version du serveur : 5.7.23 -- Version de PHP : 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
true
324728d095be6a0c8489aa747a18c42030f40f69
SQL
JamesDaniel/College_Database_Programming_Intro
/JamesDB~1.sql
UTF-8
801
3.90625
4
[]
no_license
SELECT * FROM EMP; SELECT * FROM EMP WHERE ENAME LIKE 'C%'; SELECT * FROM EMP WHERE HIREDATE > '01-JAN-81' AND DEPTNO = 20; SELECT DISTINCT DEPT.DNAME, EMP.ENAME FROM EMP, DEPT WHERE EMP.DEPTNO = DEPT.DEPTNO; INSERT INTO EMP (EMPNO,ENAME) VALUES (5000,'Bart'); -- can't add employee with existing employ...
true
5f349da3a89229d85e1badfbb743027864ba79ce
SQL
moutainhigh/workspance
/pecfinance/doc/sql/update.v1.1.snapshot.sql
UTF-8
391
2.59375
3
[]
no_license
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'; ALTER TABLE `shop` ADD COLUMN `company_id` INT(20) NULL DEFAULT 0 AFTER `gmt_modified` ; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY...
true
8eff83ad8d1c5cc27a8588628df404d87ac7d8c6
SQL
TBBT-Rouen/badomagueule
/question3.sql
UTF-8
461
3.453125
3
[]
no_license
SET SERVEROUTPUT ON CREATE OR REPLACE FUNCTION effets_indesirables ( lib IN medicament.libelle%TYPE ) Return NUMBER IS nbEffet number; BEGIN SELECT COUNT(ei.id_effet) Into nbEffet FROM medicament m, possede p, substanceActive sa, genere g, effetIndesirable ei WHERE m.id_medicament = p.id_medicament AND p.id_subs...
true
f0817a8a068b639946378438a4163ee68e9065ce
SQL
AnguelSC/Biblioteca-Virtual-PHP-POO
/biblioteca.sql
UTF-8
3,327
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 01-09-2014 a las 03:44:50 -- Versión del servidor: 5.5.34 -- Versión de PHP: 5.4.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARAC...
true
4254750aaea77f0418ee468de9d23f6f6cf4ef42
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day21/select0035.sql
UTF-8
178
2.625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-20T00:35:00Z' AND timestamp<'2017-11-21T00:35:00Z' AND temperature>=44 AND temperature<=82
true
56a0e061ccf9a44aa0418cc7cf8b678c7185aa6f
SQL
nhunguyen76/BE_Novahub_Internship_Nhu
/Week7_Assignment2/ScriptDB.sql
UTF-8
1,492
3.5
4
[]
no_license
create table `Teacher` ( `TeacherId` int(11) unsigned NOT NULL, `Name` varchar(50) NOT NULL DEFAULT '', `BirthYear` int(11) unsigned NOT NULL, `Country` varchar(20) NOT NULL DEFAULT '', `Faculty` varchar(50) NOT NULL DEFAULT '', `Degree` varchar(20) NOT NULL DEFAULT '', `ClassHours` int(11) unsigned NOT...
true
0efb7d696edb7a530eff5c4c105b556cafff2f13
SQL
anbarasimanoharan/Library-Management-System
/db/ddl/AUTHOR.sql
UTF-8
452
3.4375
3
[]
no_license
CREATE TABLE AUTHOR ( IDENTIFIER VARCHAR2 (30), PUBLICATION_TYPE VARCHAR2 (30), NAME VARCHAR2 (50) ) NOCACHE LOGGING; ALTER TABLE author ADD CONSTRAINT fk_author_1 FOREIGN KEY (identifier) REFERENCES alakshm6.publication (identifier) VALIDATE; ALTER TABLE author AD...
true
aaff2891f1e9e7ddfa455c203a3b561b3d0bf471
SQL
vasu1585/DBT_CI
/models/dbt_meters/METERS_SOURCE.sql
UTF-8
4,302
3.03125
3
[]
no_license
{{ config( materialized='table', transient=false, database="DEV_EDW", schema="DBT_SRINI" ) }} SELECT --METER.METER_NUMBER||'-'||MTR_CHAR.TIME_STAMP||'-'||MTR_CHAR.GMS_DATE as id, METER.METER_NUMBER, MTR_CHAR.TIME_STAMP, MTR_CHAR.CHAR_EFFECTIVE_DATE, MTR_CHAR.CHAR_EFF...
true
bdc69a5d3f6fe4870c2a446cfa22f76f7ec9ecbb
SQL
Traful/api-credenciales
/credenciales.sql
UTF-8
3,798
3.375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 23-03-2021 a las 18:48:02 -- Versión del servidor: 10.4.14-MariaDB -- Versión de PHP: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
4b5dcf6198f14017a734d0bee15c122654d7ae98
SQL
2XUID/FIT2094-FIT3171
/Tutorial/W7/week7_schema-alter-start.sql
UTF-8
1,590
3.703125
4
[]
no_license
SET ECHO ON SPOOL week7_schema_alter_output.txt /* Databases Week 7 Tutorial week7_schema_alter.sql Author: */ -- 7.1 -- DDL for Student-Unit-Enrolment model (using ALTER TABLE) -- -- -- Place DROP commands at head of schema file -- -- Create Tables -- Here using both table and column constraints -- CREATE TA...
true
1c5dd4473781e0edd5234284886064e710432997
SQL
gpipperr/OraDBASQLScripts
/oem/remove_alert_from_database.sql
UTF-8
2,104
2.734375
3
[]
no_license
--============================================================================== -- GPI - Gunther Pippèrr -- --============================================================================== -- http://www.idevelopment.info/data/Oracle/DBA_tips/Advanced_Queuing/AQ_2.shtml#Dequeue Message --===============================...
true
c62d10d3c021518a7d1b58396bcd4a43f236f57b
SQL
filo1978/mio-repo
/fatturazione/db/genera-db.sql
UTF-8
3,284
3.4375
3
[]
no_license
CREATE TABLE FATTURAZIONE.attivita ( id_attivita INT NOT NULL, id_fattura INT NOT NULL, descrizione VARCHAR(500) NOT NULL, importo_netto DECIMAL(10,2) ); ALTER TABLE FATTURAZIONE.attivita ADD CONSTRAINT attivita_pk PRIMARY KEY ( id_attivita ); CREATE TABLE FATTURAZIONE.c_comune ( cod...
true
729fb812f28490a07c6b24b04f2c65c00d0e043b
SQL
GregVanK/AirlineProject
/Database/Procedures/InsertReservation.sql
UTF-8
2,027
2.921875
3
[]
no_license
CREATE DEFINER=`root`@`localhost` PROCEDURE `InsertReservation`( IN Status_param ENUM('Active','Canceled'), StartDate_param DateTime, EndDate_param DateTime, PassengerNo_param INT, TicketTyp...
true
4116653215cbed42f07b4d18d7740214d9bc4e2a
SQL
oradrs/tpt-oracle
/ast/scalar_subquery_in_where_clause.sql
UTF-8
2,273
3.28125
3
[ "Apache-2.0" ]
permissive
-- Copyright 2018 Tanel Poder. All rights reserved. More info at http://tanelpoder.com -- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions. -- A-Times were misestimated with the default sampling -- ALTER SESSION SET "_rowsource_statistics_sampfreq"=1; ALTER SESSION SET "_serial_...
true
4c51e97d332c2de37c5b36fc435c6f45386bd3ea
SQL
mechristineg/inventory-system
/dbproject_elective .sql
UTF-8
28,662
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 20, 2016 at 11:31 AM -- Server version: 5.5.39 -- PHP Version: 5.4.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
d33299e9eef5ef86ff11a2c94fdb124cc057a375
SQL
kbe-ai2009-pb-ac/kbe-2009-pb-ac
/net.wcf-tools.contentsystem/install.sql
UTF-8
772
2.859375
3
[]
no_license
DROP TABLE IF EXISTS wcf1_content; CREATE TABLE wcf1_content ( `contentID` INT(10) UNSIGNED NOT NULL auto_increment, `parentID` INT(11) NOT NULL, `contentType` INT(1) NOT NULL, `title` VARCHAR(255) NOT NULL DEFAULT '', `content` TEXT NOT NULL, `url` VARCHAR(255) NOT NULL, `active` INT(1) UNSIGNED NOT NULL, `inv...
true
8bf49c9502b98b1efc09768f05a14bc808473135
SQL
OwnMarket/OwnBlockchainExplorer
/Database/Changes/0006 Add unique key constraints.sql
UTF-8
813
3.078125
3
[]
no_license
\set ON_ERROR_STOP on SET search_path TO own, public; DO $$ BEGIN ALTER TABLE account ADD CONSTRAINT account__uk__hash UNIQUE (hash); ALTER TABLE address ADD CONSTRAINT address__uk__address UNIQUE (blockchain_address); ALTER TABLE asset ADD CONSTRAINT asset__uk__hash UNIQUE (hash); ALTER TABLE asset ADD CONST...
true
db1b9d2feffbdc3680dada2bbea3598267a32f0b
SQL
PMurhe/rmw-node-js-project
/db-scripts/create/product_intake.sql
UTF-8
502
3.5625
4
[]
no_license
CREATE TABLE `billing_schema`.`product_intake` ( `product_id` INT NOT NULL, `product_code` varchar(100) NOT NULL, `product_qty` INT NOT NULL, `product_price` DOUBLE NOT NULL, `created_date` DATE NOT NULL, `sell_date` DATE NOT NULL, PRIMARY KEY (`product_id`), INDEX `product_code_idx` (`product_code` ASC...
true
c72526d0039a2242bea980e708fb69f9cc06bf72
SQL
christianscott/sharing-wall
/db/init.sql
UTF-8
377
2.6875
3
[]
no_license
CREATE TABLE IF NOT EXISTS "quote" ( id SERIAL PRIMARY KEY, body TEXT NOT NULL, fullname TEXT NOT NULL, email TEXT NOT NULL, country TEXT NOT NULL, img TEXT NOT NULL, quoteID TEXT NOT NULL UNIQUE, added TIMESTAMP NOT NULL ); CREATE TABLE IF NOT EXISTS "user" ( id SERIAL PRIMARY...
true
11cdca005e8d69d37a93b5c544a475aa655cd9e2
SQL
LuanDaSilva/PSQL-Tutorial
/7 - Subquery/EXISTS.sql
UTF-8
1,069
4.375
4
[]
no_license
/*operador EXISTS Verifica a existência de linhas numa sub-busca Sintaxe: EXISTS(subquery) Convenção: SELECT column1 FROM table_1 WHERE EXISTS( SELECT 1 FROM table_2 WHERE column_2 = table_1.column_1); */ \c dvdrental /*EX1...
true
f063934bc20df0fab4d2f39f995c1c869b02049c
SQL
susynatsumi/projeto
/projeto-floricultura/src/test/resources/dataset/floricultura/itens_pedidos.sql
UTF-8
2,951
3.140625
3
[]
no_license
SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET default_with_oids = false; SET search_path TO public; TRUNCATE "produto" CASCADE; TRUNCATE "pedido" CASCADE; TRUNCA...
true
c5660a6839db1cf990bc6c0e92dc0504f5e31f9f
SQL
tuananh3988/pokerlog
/db/20160818 - poker_log.sql
UTF-8
4,713
3.171875
3
[ "BSD-3-Clause" ]
permissive
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50505 Source Host : localhost:3306 Source Database : pokerlog Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2016-08-17 18:13:42 */ SET FOREIGN_KEY_CHECKS=0; -- ...
true
99db5f6981237c832216a88e5a459fed567e4046
SQL
97clovis97/Microprocessadores
/Projeto_Final/pac-man/pac-man/graphics.inc
UTF-8
5,148
2.515625
3
[]
no_license
.eqv FB_PTR 0x10040000 .eqv FB_XRES 256 .eqv FB_YRES 256 .eqv X_OFFSET 0 .eqv Y_OFFSET 0 .eqv X_SCALE 7 .eqv Y_SCALE 7 .eqv GRID_ROWS 35 .eqv GRID_COLS 35 .data # 35x35 Pacman Arena - Sprites 7x7 grid: .ascii "ENNNNNNGNNNGNNNGF@EGNNNGNNNGNNNNNNF" .ascii "IA@@@@@I@@@I@@@LK@JM@@@I@@@I@@@@@AI" .ascii "I...
true
9f7d6ffa8efb75e639aef38ba40c07bd859ef3a4
SQL
harmeetsingh0013/play-java-jpa
/conf/evolutions/default/1.sql
UTF-8
633
3.59375
4
[ "Apache-2.0" ]
permissive
# --- !Ups CREATE TABLE `department` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, CONSTRAINT pk_dept PRIMARY KEY (`id`) ); CREATE TABLE `employee` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `age` int(11) DEFAULT NULL, `sex` varchar(6) DEFAULT NU...
true
ebe746cd445c0e378a4f92789e5fb1c76f2cc660
SQL
NachiMK/nodejs
/ods/postgres/AppLog/Tables/020_CreateTables.sql
UTF-8
1,295
2.71875
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS log."ApiLog" ( "ApiLogId" SERIAL PRIMARY KEY --INT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY ,"SourceURL" VARCHAR(500) NOT NULL ,"LoggedInUser" VARCHAR(50) NOT NULL ,"SessionId" VARCHAR(50) NULL ,"EntityPublicKey1"...
true
b18444cd91076002f2fdb2e8d55bc08c13420ecb
SQL
ibokov/SpicyOnes
/Submission/spicyones_Script_phase2.sql
UTF-8
19,840
3.953125
4
[]
no_license
-- SQL Script /* ******************************** Project Phase II Group 6 (MySQL-Version 5.7) This SQL Script was tested on MySQL using Azure MySQL server. To run, simply load this script file and run. ******************************** */ SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CH...
true
651ff6ecac17e4c29b2ace2ee716796fe056db19
SQL
Edufreitass/people-catalog
/src/main/resources/db/migration/hsql/V2__criar_tabela_telefone.sql
UTF-8
316
3.125
3
[]
no_license
CREATE SEQUENCE telefone_id_seq AS BIGINT START WITH 1 INCREMENT BY 1; CREATE TABLE telefone ( codigo BIGINT GENERATED BY DEFAULT AS SEQUENCE telefone_id_seq PRIMARY KEY, ddd VARCHAR(2) NOT NULL, numero VARCHAR(9) NOT NULL, codigo_pessoa BIGINT NOT NULL, FOREIGN KEY (codigo_pessoa) REFERENCES pessoa(codigo) );
true
70042aa9e4295e2565fdaa145afe87d5a0730aeb
SQL
CooleKikker2/DatabaseAPI
/database/database.sql
UTF-8
1,814
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Gegenereerd op: 16 okt 2020 om 14:12 -- Serverversie: 10.4.6-MariaDB -- PHP-versie: 7.1.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
25ec1864c360e78c2fdd9a68a30a6dd6b5690f82
SQL
y1wtt/KaitBusTime
/src/sql/db.sql
UTF-8
310
3.1875
3
[]
no_license
create table time_table ( id int auto_increment, hour int not null, minutes int not null, weekday int not null, type int not null, `from` int not null, `to` int not null, direction int null, constraint time_table_pk primary key (id) );
true
16fcc6b7c5a79bd6630a2214c89cfcc1e60150e9
SQL
Mignet/rapid4j-generator
/src/test/resources/rapid4j.sql
UTF-8
5,337
3.71875
4
[ "MIT" ]
permissive
/*********************************************************************** * PostgreSQL : Database - rapid4j * Created by Mignet **********************************************************************/ -- Table: tsys_user DROP SEQUENCE IF EXISTS seq_user_id CASCADE ; CREATE SEQUENCE seq_user_id; DROP TABLE IF EXISTS tsys...
true
2923d5fe3f364d2b0705fcb197862b2fbdf8c7e0
SQL
CavanLeoJacobs/ProjectAccountSystems
/AccountSystemsRepository/src/main/resources/script/schema.sql
UTF-8
1,110
3.890625
4
[]
no_license
--create SCHEMA DEMO_SCHEMA; create SEQUENCE DEMO_SCHEMA.ACCOUNT_SEQ; CREATE SEQUENCE DEMO_SCHEMA.ACCOUNT_SEQ; --START WITH 50002,INCREMENT BY 1; -- --CREATE table DEMO_SCHEMA.ACCOUNT_TYPE --ACCOUNT_TYPE_ID --CREATE SEQUENCE :"DEMO_SCHEMA.ACCOUNT_SEQ" START WITH 50002 INCREMENT BY 1; --BIGINT NOT NULL: -- --...
true
88f62c72931e5b0cb849de91c81364c4104c41c6
SQL
elenamatei/thumbelina
/utilizatori.sql
UTF-8
719
2.84375
3
[]
no_license
CREATE TYPE roluri AS ENUM('admin', 'comun'); CREATE TABLE IF NOT EXISTS utilizatori ( id serial PRIMARY KEY, username VARCHAR(50) UNIQUE NOT NULL, nume VARCHAR(100) NOT NULL, prenume VARCHAR(100) NOT NULL, parola VARCHAR(100) NOT NULL, rol roluri NOT NULL DEFAULT 'comun', email VARCHAR(100) NOT ...
true
2590588754df57c9d5fd7df72d75216b8e1909f5
SQL
Lunerio/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/9-cities_by_state_join.sql
UTF-8
185
3.734375
4
[]
no_license
-- show the cities contained in the database using join. SELECT cities.id, cities.name, states.name FROM cities INNER JOIN states ON states.id = cities.state_id ORDER BY cities.id ASC;
true
32c2481ca89458111ef0df304cb2151dddd585aa
SQL
Josimar722/ArquivosSql
/Aula Sql2/tb_produtos.sql
UTF-8
2,137
3.875
4
[]
no_license
-- criando o banco create database db_ecommerce; -- Acessando banco use db_ecommerce; -- Criando tabela create table tb_produtos( id bigint auto_increment, nomeProduto varchar(20), marca varchar(12), preco float, primary key(id) ); -- populando a tabela insert into tb_produtos(nomeProduto,marca,preco)values("Celul...
true
ac7939aa04de49a0b501abf6c5e34d49f931e505
SQL
SuiteLHY/lemon
/src/main/resources/dbmigrate/hsql/humantask/V1_6_0_9__task_deadline.sql
UTF-8
1,428
3.953125
4
[ "Apache-2.0" ]
permissive
------------------------------------------------------------------------------- -- task deadline ------------------------------------------------------------------------------- CREATE TABLE TASK_DEADLINE( ID BIGINT NOT NULL, TYPE VARCHAR(100), DEADLINE_TIME DATETIME, TRIGGER_TIME DATETIME, REPEAT_TIME...
true
7f3c4b0d923e6a48d9561ea8838fd4206ee456f9
SQL
svenkoiv/shortest-airport-route
/docker/docker-entrypoint-initdb.d/2.sql
UTF-8
497
3.4375
3
[]
no_license
\connect airport; UPDATE airport.airport_route SET distance = ( SELECT point(source_airport.longitude, source_airport.latitude) <@> point(destination_airport.longitude, destination_airport.latitude) FROM airport.airport AS source_airport, airport.airport AS destination_airport WHERE airport_route.source...
true
ee9055f6c9361632a7f074a9e15683dc086f81c0
SQL
fabioandrec/cmanager
/sys/CMandb_10_11.sql
UTF-8
6,858
3.328125
3
[]
no_license
alter table investmentMovement add column quantity_temp int null; update investmentMovement set quantity_temp = quantity; alter table investmentMovement drop column quantity; alter table investmentMovement add column quantity float null; update investmentMovement set quantity = quantity_temp; alter table investmentMove...
true
4269c4005da3068ac05eed88ae3eff5ef5bde7a7
SQL
3-mann/gitSQL
/PL_SQL/schleifen.sql
ISO-8859-3
13,286
3.625
4
[]
no_license
SET SERVEROUTPUT ON DECLARE v_myage number:=31; BEGIN IF v_myage < 11 THEN DBMS_OUTPUT.PUT_LINE(' I am a child '); END IF; END; / DECLARE v_myage number:=31; BEGIN IF v_myage < 11 THEN DBMS_OUTPUT.PUT_LINE(' I am a child '); ELSE DBMS_OUTPUT.PUT_LINE(' I am not a child' ) ; END IF; END; / DECLARE ...
true
1a766196f54a90f8bc5c651dcdccfd63537dfc42
SQL
DeyanDanailov/MS-SQL-Server
/ExamPreparation/Databases MSSQL Server Retake Exam - 11 August 2020/6.Negative Feedback.sql
UTF-8
178
3.6875
4
[ "MIT" ]
permissive
SELECT f.ProductId, f.Rate, f.Description, c.Id, c.Age, c.Gender FROM Feedbacks f JOIN Customers c ON c.Id = f.CustomerId WHERE f.Rate < 5.0 ORDER BY f.ProductId DESC, f.Rate
true
8688dd29c993d2b18f45a4f3e40ee8852156f319
SQL
nissshh/hackerrank
/sql/ddl.sql
UTF-8
260
2.859375
3
[]
no_license
CREATE TABLE `hackers` ( `hacker_id` int(11) NOT NULL, `name` varchar(45) DEFAULT NULL ); CREATE TABLE `submissions` ( `submission_id` int(11) NOT NULL, `hacker_id` int(11) NOT NULL, `challenge_id` int(11) NOT NULL, `score` int(11) DEFAULT NULL );
true
a8b4689e206ac2749731ae44fe756b6062e8c1ff
SQL
MCZbase/DDL
/TABLE/CTCOUNTRY_CODE.sql
UTF-8
208
2.90625
3
[ "Apache-2.0" ]
permissive
CREATE TABLE "CTCOUNTRY_CODE" ( "CODE" VARCHAR2(3 CHAR) NOT NULL ENABLE, "COUNTRY" VARCHAR2(255) NOT NULL ENABLE, CONSTRAINT "CTCOUNTRY_CODE_PK" PRIMARY KEY ("COUNTRY") USING INDEX ENABLE )
true
b75cb59c1242e2d2bc7d7e3a9412a5b5c41b2b1a
SQL
barbalex/apf2
/sql/apflora/one_offs/2022-11-15_test_user_rights.sql
UTF-8
816
3.359375
3
[ "ISC" ]
permissive
SELECT tax.artname, ap_user.user_name FROM apflora.ap_user ap_user INNER JOIN apflora.ap ap ON ap.id = ap_user.ap_id INNER JOIN apflora.ae_taxonomies tax ON ap.art_id = tax.id WHERE user_name = 'hangartner' ORDER BY tax.artname; -- https://apflora.ch/Daten/Projekte/e57f56f4-4376-11e8-ab21-4314b6749d13/Ar...
true
8e70f68905973e389c4fc78ac3c241dc10a0992d
SQL
Flox-Enterprises/CustomerListing
/Dump20190218.sql
UTF-8
3,551
2.921875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `mydb` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `mydb`; -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: mydb -- ------------------------------------------------------ -- Server version 5.7.18-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
74c56eddd5e6f68d6e2e058556b3250b8ae93073
SQL
haidarvm/guide
/gistest.sql
UTF-8
2,333
3.703125
4
[]
no_license
CREATE INDEX ON location USING GIST(location); CREATE TABLE global_points ( id SERIAL PRIMARY KEY, name VARCHAR(64), location GEOGRAPHY(POINT,4326) ); INSERT INTO global_points (name, location) VALUES ('bandung', 'SRID=4326;POINT(107.6049539 -6.9344694 )'); INSERT INTO global_points (name, location) VALUE...
true
ea1ca541b220bd65afe0c0f76e204a1e4fc8a374
SQL
boyddensmore/Maximo-Oracle-SQL-Public
/01 - General code snippets/Find Unicode characters.sql
UTF-8
376
3.328125
3
[]
no_license
-- Unicode characters should be removed, as we can’t search for them in Maximo. -- This SQL takes the Description for each Item and compares its length to the string -- length when Unicode characters are converted to ASCII select itemnum, description, asciistr(description) from maximo.item where length(asciistr(desc...
true
e9c711dcaa15291ae9237557c98226bcb43f34ea
SQL
killbill/killbill
/subscription/src/main/resources/org/killbill/billing/subscription/migration/V20170920200757__bundle_external_key.sql
UTF-8
119
2.734375
3
[ "Apache-2.0" ]
permissive
drop index bundles_key on bundles; create unique index bundles_external_key on bundles(external_key, tenant_record_id);
true
3eda8d39b9f7ff5776f7e3ed368cf97bf35c607e
SQL
arshithsuresh/vaccine-chain-client-server
/db.sql
UTF-8
1,376
2.8125
3
[]
no_license
sudo -i -u postgres CREATE TABLE vaccine( id BIGSERIAL NOT NULL PRIMARY KEY, address VARCHAR(256), batchId VARCHAR(64), vaccineCount INTEGER, manufactureDate DATE, expiryDate DATE, currentOwner VARCHAR(256), currentLocation VARCHAR(128), currentStatus SMALLINT ); CREATE TABLE man...
true
8481b989c45dfa0c311ab46753ef54036d3fd902
SQL
trinhphamtrunghieu/TeamGPE2020Update
/specialDay.sql
UTF-8
337
3.015625
3
[]
no_license
DROP TABLE IF EXISTS Special_day; CREATE TABLE Special_day( city_id char(32) NOT NULL, centre_id char(32) NOT NULL, specialValue JSON NOT NULL, constraint special_day_city_id_fk foreign key (city_id) references cities(city_id), constraint special_day_centre_id_fk foreign key (centre_id) references sport_cent...
true
bf2689b4adab3bc56e8c2001be998326f7816a90
SQL
Mehavardhini/Airline-Reservation
/Airline Reservation/sql/admin.sql
UTF-8
1,476
2.734375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 02, 2015 at 10:10 PM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
51c231406b5a6d2a5f89e7263f75532671d5a475
SQL
cssat/sql_dev
/test_annie/_test_annie_main_upload_scripts/old/test_annie_cache_pbcw4_tables.sql
UTF-8
1,975
2.984375
3
[]
no_license
use test_annie; truncate table test_annie.cache_qry_param_pbcw4; LOAD DATA LOCAL INFILE '/data/pocweb/cache_qry_param_pbcw4.txt' into table cache_qry_param_pbcw4 fields terminated by '|' (int_param_key, bin_dep_cd,bin_los_cd, bin_placement_cd, bin_ihs_svc_cd, cd_reporter_type, cd_access_type, cd_allegation, cd_findi...
true
dd120fa680efdacd1efee5c2d75b8adfa164b4d8
SQL
NTayloe/Tutanium
/sql/tutanium (1).sql
UTF-8
4,927
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 09, 2019 at 02:07 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
f973f29f3c53b9aa390ae16629b385debc108b4f
SQL
SoyLuisNieves/MyApp
/bd/bd.sql
UTF-8
1,620
3.15625
3
[]
no_license
drop database if exists qro; create database if not exists qro; use qro; create table actividades( id_actividad int(11) auto_increment, titulo varchar(65) not null, lugar varchar(150) not null, fecha date not null, descripcion longtext not null, categoria varchar(20) not null, nombre_id varchar(40) n...
true
e62e6386961393592e9fa6e531a6c1d9f182b2b6
SQL
yellowmonkey262/Astrodon_Desktop
/Astrodon.ClientPortal/Scripts/SyncBuildingsAndUnits.sql
UTF-8
1,764
3.578125
4
[]
no_license
/*CREATE/UPDATE BUILDINGS*/ insert into Building (Id,BuildingId,BuildingName,BuildingImage,IsActive,PortfolioManagerEmailAddress) select NEWID() ,b.id,b.Building,null, case b.BuildingDisabled when 0 then 1 else 0 end, b.pm from Astrodon..tblBuildings b left join Building bl on bl.BuildingId = b.id where bl.Id i...
true
54e007e76ec21ae02d6cdbc7d48d88bf9a5fd61f
SQL
dfperezc/iteracion1
/data/HOTELANDESBD.sql
ISO-8859-10
6,155
3.1875
3
[]
no_license
CREATE TABLE CADENAHOTELERA ( "ID" NUMBER, "NOMBRE" VARCHAR(60), "PRINCIPIOSGENERALES" VARCHAR(500), CONSTRAINT CADENAHOTELERA_PK PRIMARY KEY (ID) ); CREATE TABLE USUARIOS ( "ID" NUMBER, "NOMBRE" VARCHAR(40), "APELLIDO" VARCHAR(40), "IDTIP...
true
9d990343973a6a14edf7ab5133f1cc9dfe20b847
SQL
AmericanWhitewater/nwi-data-tool
/sql/snapped_takeouts.sql
UTF-8
564
2.765625
3
[]
no_license
CREATE TABLE snapped_takeouts ( reach_id integer NOT NULL, revision integer NOT NULL, huc4 text, nhdplusid bigint, fdate timestamp WITH time zone, candidates integer, distance double precision, geom geometry (Point, 4326), flowline_point geometry (Point, 4326), original_point geometry (Point, 4326),...
true
b669182e9b52da9dd1dbc819a9b783cf1f563eb8
SQL
ArrettB/omni-workspace
/servicetrax/dbscripts/views/Taxes_V.sql
UTF-8
1,093
3.390625
3
[]
no_license
CREATE VIEW dbo.Taxes_V AS SELECT TOP 100 PERCENT AMBIM.dbo.IV00101.ITEMNMBR, AMBIM.dbo.IV00101.TAXOPTNS, AMBIM.dbo.RM00101.CUSTNMBR, AMBIM.dbo.RM00101.TAXSCHID, dbo.INVOICES.INVOICE_ID, dbo.INVOICE_LINES_V.ext_item_id, dbo.INVOICE_LINES_V.UNIT_PRICE, dbo.INVOICE_LI...
true
821ee5d91dd402d1ac07f2f339b4941a2b7f1810
SQL
santoshhr88/hdp-validation
/hive-validation/scripts/build-ptn-tbl.sql
UTF-8
1,160
3.421875
3
[ "Apache-2.0" ]
permissive
create database if not exists ${USER} location '/user/${USER}/myhive.db'; use ${USER}; set hive.execution.engine=${EXEC_ENGINE}; set hive.execution.engine; -- TODO: Set Queue drop table if exists validation_partition_table; create table validation_partition_table ( start_dtm TIMESTAMP, end_dtm TIMESTAMP, target_dt ...
true
af5200a74f5c97e9db98d09aa68e033acd5f694f
SQL
numanblue/bootcampdw
/bootcampdw.sql
UTF-8
3,235
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 17, 2020 at 06:41 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.2.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
575f479336f76f15bd39c8e5d83550d478ccb476
SQL
radtek/abs3
/sql/mmfo/bars/Table/tmp_kjz2.sql
UTF-8
2,787
2.859375
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/TMP_KJZ2.sql =========*** Run *** ==== PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true