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
376e11fe18667d4deb27c12c55bf17aec1f4a713
SQL
HetelSan/oracle
/scripts/06-prc_increase_salary.sql
UTF-8
1,859
3.796875
4
[]
no_license
/* * * 6) Criar uma procedure que irá receber o código do funcionário e ano de admissão * e retornar o bônus que será pago conforme regras que serão fornecidas. * */ CREATE OR REPLACE PROCEDURE prc_increase_salary ( p_emp_id IN employees.employee_id%TYPE, p_hire_date IN employees.h...
true
466b23320001ba1a29adbac0944c5ee5988829ae
SQL
nhiduong11/Codegym
/Module2/MySQL/Demo Relationship.sql
UTF-8
251
2.96875
3
[]
no_license
SELECT * FROM stock SELECT avg(Quantity) FROM Stock; SELECT SUM(Quantity), idShop From Stock group by idShop; SELECT COUNT(Quantity), idShop From Stock group by idShop; SELECT SUM(Quantity), idShop From Stock group by idShop HAVING SUM(Quantity) >11
true
1cc8a54bf711ee8d7e1562b38134fd944ab05d97
SQL
embe221ed/Airlines
/AirlinesScript.sql
UTF-8
3,705
3.390625
3
[]
no_license
CREATE TABLE public.admin ( login VARCHAR NOT NULL, password VARCHAR NOT NULL, CONSTRAINT admin_pk PRIMARY KEY (login) ); CREATE SEQUENCE public.registrationcode_code_pk_seq; CREATE TABLE public.registrationcode ( code_pk INTEGER NOT NULL DEFAULT nextv...
true
5dcf18ffea23ecc25ef8170c6ee066543aadab48
SQL
Open-AB/Open-AB
/server/db/schema.sql
UTF-8
2,290
3.578125
4
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS openab; DROP DATABASE IF EXISTS test; CREATE DATABASE openab; CREATE DATABASE test; \c openab CREATE TABLE clients ( id SERIAL PRIMARY KEY, email VARCHAR(255) UNIQUE, password VARCHAR(255) ); CREATE TABLE pages ( id SERIAL PRIMARY KEY, client_id integer REFERENCES clients (id), name...
true
634ee04a3ad1fe5e2277c134142e0e93cb6933f9
SQL
ccatasus-ic/dbt-learn-ccatasus
/models/orders.sql
UTF-8
306
3.828125
4
[]
no_license
select o.order_id ,o.customer_id ,o.order_date ,SUM(p.amount) as total_amount from {{ ref('stg_orders') }} as o inner join {{ ref('stg_payments') }} as p on o.order_id = p.order_id where p.status = 'success' group by 1 ,2 ,3
true
5f5a0ef7095511f515c82d4387abd189dee41f7a
SQL
rodders110/week4-project
/db/sweet_shoppe.sql
UTF-8
460
3.140625
3
[]
no_license
DROP TABLE IF EXISTS inventory; DROP TABLE IF EXISTS manufacturers; DROP TABLE IF EXISTS stock; CREATE TABLE stock ( id SERIAL4 PRIMARY KEY, name VARCHAR(255) ); CREATE TABLE manufacturers ( id SERIAL4 PRIMARY KEY, name VARCHAR(255), address TEXT ); CREATE TABLE inventory ( id SERIAL4 PRIMARY KEY, st...
true
d7fcab163d3b4cb87106456609ccce0e7194f20b
SQL
neda-zal/PL-SQL
/6LAB/lab_06_01_soln.sql
UTF-8
574
3.328125
3
[]
no_license
SET SERVEROUTPUT ON; DECLARE v_deptno NUMBER := 20; CURSOR c_emp_cursor IS SELECT last_name, salary, manager_id FROM employees WHERE department_id = v_deptno; BEGIN FOR v_emp_record IN c_emp_cursor LOOP IF(v_emp_record.salary < 5000 AND v_emp_record.manager_id IN (101, 124)) ...
true
89ab2c424fcefb67733ceb75a91249e5e905a0ce
SQL
msgpo/node_infograph
/sql/nodes_by_email.sql
UTF-8
401
3.8125
4
[]
no_license
SELECT NA.`email`, COUNT(N.`node_key`) amount FROM `node` N LEFT JOIN `registered_participant` NA ON N.`node_key` = NA.`node_key` GROUP BY NA.`email` ORDER BY `amount` DESC SELECT NA.`email`, COUNT(N.`node_key`) amount FROM `node` N LEFT JOIN `registered_participant` NA ON N.`node_key`...
true
fbef2bce8fca8d3a557f15def739ea2a152c0b92
SQL
Hen-dri/DumbWays-Hendri-Batch-13-6
/perpus/database/perpus.sql
UTF-8
3,430
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 23, 2019 at 11:11 AM -- 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
1dd4346e339da35a1c63d9b6040aa8ddb91d5ca0
SQL
navjotbrar/Up2Date
/BackendMain/uptodate/bin/main/db/migration/V3__usertable.sql
UTF-8
347
3.125
3
[]
no_license
CREATE TABLE IF NOT EXISTS user ( id varchar(36) NOT NULL, username varchar(100) NOT NULL, password varchar(100) NOT NULL, first_name varchar(50) NOT NULL, last_name varchar(50) DEFAULT NULL, email varchar(50) DEFAULT NULL, PRIMARY KEY (id), UNIQUE KEY UK_username (username) ) ENGINE=I...
true
ff8def22565c4c44592a48fdfc83236b228f7511
SQL
jabautista/GeniisysSCA
/src/main/resources/sql/dml/giis_parameters/INSERT_GIIS_PARAMETERS_WARCLA.sql
UTF-8
768
3
3
[]
no_license
SET SERVEROUTPUT ON DECLARE v_exist NUMBER := 0; BEGIN SELECT 1 INTO v_exist FROM cpi.giis_parameters WHERE param_name = 'ALLOW_PRINT_WARCLA_ATTACHMENT'; IF v_exist = 1 THEN DBMS_OUTPUT.put_line ('ALLOW_PRINT_WARCLA_ATTACHMENT already existing in GIIS_PARAMETERS.'); END IF; EXCEPT...
true
77c712896306fd9274120528b14419549612cd96
SQL
valsinay/Csharp-Databases-2020
/MS SQL/Exams/Exam 13 Oct 2019.sql
UTF-8
3,197
4.40625
4
[]
no_license
USE Bitbucket CREATE DATABASE Bitbucket CREATE TABLE Users( Id INT PRIMARY KEY IDENTITY, Username VARCHAR(30) NOT NULL, [Password] VARCHAR(30) NOT NULL, Email VARCHAR(50) NOT NULL ) CREATE TABLE Repositories( Id INT PRIMARY KEY IDENTITY, [Name] VARCHAR(50) NOT NULL ) CREATE TABLE RepositoriesContributors( Re...
true
6b3900db1cdeadcde55fc91f607dcb2ad95c342e
SQL
mohaimenkhalid/VueJs_Php_Crud
/users.sql
UTF-8
1,638
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 20, 2019 at 11:26 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
7231cfe9cb73c44491ea00e97ceebe675499a007
SQL
Skatterbrainz/CmCustomReports
/Queries/Software-Inv-OfficeProducts-FileVersions.sql
UTF-8
667
3.578125
4
[ "MIT" ]
permissive
SELECT DISTINCT dbo.v_R_System.Name0 AS Computer, dbo.v_GS_SoftwareFile.ResourceID, dbo.v_GS_SoftwareFile.FileName, dbo.v_GS_SoftwareFile.FilePath, dbo.v_GS_SoftwareFile.FileVersion AS ProductVersion, CASE WHEN (dbo.v_GS_SoftwareFile.FilePath LIKE '%x86%') THEN '32' ELSE '64' END AS Package FROM dbo.v_...
true
8345825da0998d86d629d1c47b7a9ca694f69df4
SQL
mgibby91/BootcampX
/4_queries/3_important_assistance_data.sql
UTF-8
322
3.8125
4
[]
no_license
SELECT teachers.name as teacher, students.name as student, assignments.name as assignment, (completed_at - started_at) as duration FROM students JOIN assistance_requests ON student_id = students.id JOIN teachers ON teachers.id = teacher_id JOIN assignments ON assignments.id = assignment_id ORDER BY duration...
true
c97b82a6816b82403e52a0f29ad1d42b231db31e
SQL
vakhokoto/MyApp-Java
/MyApp-Java/src/main/java/DB/db.sql
UTF-8
742
3.625
4
[]
no_license
create database my_app; use my_app; create table players ( id int auto_increment primary key, first_name varchar(30) not null, last_name varchar(30) not null, user_nick varchar(30) unique not null, creation_date timestamp default now() not null ); ...
true
7ffe2d69b1c28e76d6f2978c7ae9c51cd46424c6
SQL
AzwarPrihastomo/TankMeasurement
/DB/database.sql
UTF-8
1,685
2.84375
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.6.13 - MySQL Community Server (GPL) -- Server OS: Win32 -- HeidiSQL Version: 9.4.0.5125 -- -------------------------------------------------------- /*...
true
4b8a2e68342ad1a4c7414231b437c27ee057f544
SQL
jampaniuday/ABROracle
/sql/sql_running_time.sql
UTF-8
253
3.46875
3
[ "Apache-2.0" ]
permissive
select s.username,s.sid,s.serial#,s.last_call_et/60 mins_running,q.sql_text from v$session s join v$sqltext_with_newlines q on s.sql_address = q.address where status='ACTIVE' and type <>'BACKGROUND' and last_call_et> 60 order by sid,serial#,q.piece /
true
07949888bc46037f5e62c440b39a25026c44a9d1
SQL
jordankbassett/eat-da-burger
/public/Buger.sql
UTF-8
493
3.015625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS burger_db; USE burger_db; CREATE TABLE burgers( id int NOT NULL auto_increment, burger_name varchar(255) NOT NULL, devoured BOOL default false, primary key(id) ); insert into burgers (burger_name, devoured) values ('Cheeseburger', false); insert into burgers (burger_name, devoured) value...
true
1331c12c5f7ba06acf1f68deae2959d55b93bbbb
SQL
NhutLinh-99/DoAnLTW1
/ltw.sql
UTF-8
3,780
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Oct 30, 2018 at 03:43 PM -- Server version: 5.7.23 -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
3bc028e0ee53f988dc76f122080b7e5521dc3160
SQL
TsSaltan/ts-framework
/ts-plugins/logger/install.sql
UTF-8
349
3.125
3
[]
no_license
CREATE TABLE IF NOT EXISTS `log` ( `id` varchar(36) NOT NULL, `type` varchar(250) NOT NULL, `data` text NOT NULL COMMENT 'JSON', `date` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- DROP INDEX IF EXISTS `type` ON `log`; -- MariaDB only ALTER T...
true
7ca33ebdd590e09c090b8b35d29b1f8467be2d87
SQL
oleglr/forecast
/shikiho/kiji.sql
UTF-8
564
2.796875
3
[]
no_license
CREATE TABLE kiji_tf( stockCode text not null, word text not null, tf real null ); CREATE UNIQUE INDEX idx_kiji_tf on kiji_tf(stockCode,word); CREATE TABLE kiji_idf( word text not null, idf real null ); CREATE UNIQUE INDEX idx_kiji_idf on kiji_idf(word) ; CREATE TABLE kiji_tfidf( stockCode text not null, word text not ...
true
83b7f0f59c41f04876fde7d6a72eb63ed68092a3
SQL
seongjincho/firstProject
/spring3_yht_light/WebContent/WEB-INF/classes/TEST01.SQL
UTF-8
5,430
3.953125
4
[]
no_license
멤버 테이블 (TEST01_MEMBER) ID(아이디), PWD(비번), NAME(이름), EMAIL(이메일), ADDRESS1(주소1), ADDRESS2(주소2) , AUTH(권한 관리자 3 , 일반회원 1 ) , PHONE(핸드폰번호), DEL(탈퇴 유무), AUTHKEY(이메일 체크검증), AUTHSTATUS(이메일 확인 유무) DROP TABLE TEST01_MEMBER CASCADE CONSTRAINTS; CREATE TABLE TEST01_MEMBER ( ID VARCHAR2(50) PRIMARY KEY, PWD VARCHAR2...
true
db4283ed2798b3880aedb1fc959654e5ce989cd7
SQL
yunYoY/study-all
/src/NoCode/StoredProcedure/租户库存储过程.sql
UTF-8
2,975
3.84375
4
[]
no_license
/* 第1步,创建租户升级存储过程 */ DROP PROCEDURE IF EXISTS `upgradeTenantDB`; DELIMITER $$ CREATE PROCEDURE `upgradeTenantDB`() BEGIN DECLARE done INT DEFAULT 0; DECLARE a,c CHAR(64); DECLARE e VARCHAR(100)DEFAULT '0'; /* 第一次升级使用下面第一行,如果有异常租户库,以后每次调用下面第二行并注解下面第一行*/ DECLARE curTenant CURSOR FOR SELECT ent_id, catalog_name FROM...
true
47265114eec88922fd7295b7c25466252c3d55e2
SQL
DuglasDiazB/ues
/ucsf.sql
UTF-8
13,747
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 04-12-2020 a las 22:09:06 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.2.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
53843512b4d26b99c1a1e7ff33acac1bfab6fdba
SQL
trishalmuthan/cs50
/ProblemSet7/movies/9.sql
UTF-8
180
3.4375
3
[]
no_license
SELECT COUNT(DISTINCT(people.name)) FROM people JOIN stars ON people.id = stars.person_id JOIN movies ON stars.movie_id = movies.id WHERE movies.year = 2004 ORDER BY people.birth;
true
3b487f4a0589640f9d181531c80fa4f59fa1be24
SQL
cjyarnell/TargetTrial_ThresholdsForIMV
/CreateCohort/Amsterdam_Eligibility.sql
UTF-8
2,768
3.96875
4
[]
no_license
with admits as ( select ad.admissionid , case when li.itemid = 18669 then li.value when li.itemid = 18671 then li.value else null end as diagnosis , case when li.itemid = 18671 and lower(li.value) LIKE "%post-operati%" then 1 when li.itemid = 18669 and lower(li.value) LIKE "operati...
true
bc848cd6a6eb64e777a345a7ac6c956e36f13720
SQL
helenjwang/udacity-data-engineer
/udacity-data-engineer/data_models/create_denormalized_tables.sql
UTF-8
10,337
3.5625
4
[]
no_license
import psycopg2 /* Create a connection to the database, get a cursor, and set autocommit to true¶ */ try: conn = psycopg2.connect("host=127.0.0.1 dbname=studentdb user=student password=student") except psycopg2.Error as e: print("Error: Could not make connection to the Postgres database") print(e) try: ...
true
14b2e281cb8a7b3a65744d2b060bac282cbeb7c7
SQL
radtek/abs3
/sql/mmfo/bars/Procedure/rez_par_9200_add.sql
WINDOWS-1251
1,954
2.640625
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Procedure/REZ_PAR_9200_ADD.sql =========*** Run ** PROMPT ===================================================================================== PROMPT *** Create procedure...
true
72ad2074f3b255c7a1a0773c191c07f35f68e1dd
SQL
cckmit/xinfu
/ccms/WebContent/WEB-INF/action/project/fitness/wx/site/sitelist/detail/querysitedef/query.sql
UTF-8
215
2.828125
3
[]
no_license
select (case when block_price=0 then group_price else block_price end) as price, to_char(opening_date::time, 'HH24:mi') as hour from cc_sitedef st where st.org_id = ${fld:org_id} and st.sitetype = ${fld:sitetype}
true
35bcc21e311580b1c32508b0292da32e6fdc9e3b
SQL
jdrew1303/sqlgenerate
/test/spec_sql/official-suite/without_rowid1-1.sql
UTF-8
4,326
3.515625
4
[ "MIT" ]
permissive
-- original: without_rowid1.test -- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test CREATE TABLE t1(a,b,c,d, PRIMARY KEY(c,a)) WITHOUT ROWID; CREATE INDEX t1bd ON t1(b, d); INSERT INTO t1 VALUES('journal','sherman','ammonia','helena'); INSERT INTO t1 VALUES('dynamic','juliet','flipper','command'); ...
true
b56ae26b27370f446741ab234d55b32001c9054f
SQL
rojocodes/expressjs-api
/db/seed.sql
UTF-8
424
2.921875
3
[ "MIT" ]
permissive
/* ##### Database seeding ##### Run the following command after all tables were created: 'npm run seed' */ /* Insert user roles */ INSERT INTO user_role (name) VALUES ('Admin'), ('User'); SET @admin_role_id = (SELECT id FROM user_role WHERE name = 'Admin'); /* Insert admin account */ INSERT INTO user (ema...
true
2dd5e5abba0e077d5bf1a5093e850b58d2efd4e9
SQL
Darkyuri00/confuzedb
/layout/character_spell.sql
UTF-8
704
2.8125
3
[]
no_license
CREATE TABLE `character_spell` ( `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier', `spell` int(11) unsigned NOT NULL default '0' COMMENT 'Spell Identifier', `slot` in...
true
f232b3a5b823a49df01540b5f44f5dedaf8f389c
SQL
manutango/repotest
/Scripts/RepoTestScripts/DimPozos_SGO.sql
UTF-8
455
2.90625
3
[]
no_license
--Dim Pozos SGO select top 100 'DA' as origen, idpozo+'-'+'DA' as bk_pozo, * from [STI].[SGO_DimPozo_202008271804_DA] where codigopozo = 4 union all select top 10 'AC' as origen, idpozo+'-'+'AC' as bk_pozo, * from [STI].[SGO_DimPozo_202008271814_AC] where codigopozo = 4 order by desde --Ejemplo select...
true
1654d3d317d0340a6fcd5f0da6cd8ec0eb2c9211
SQL
hikair/keyserver
/src/main/resources/sql/menu.sql
UTF-8
1,478
3.28125
3
[ "Apache-2.0" ]
permissive
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 80019 Source Host : localhost:3306 Source Schema : test Target Server Type : MySQL Target Server Version : 80019 File Encoding : 65001 Date: 06/01/2021 18:44...
true
9504c78d96cf715efbcf6f2bb9316ee43bff1376
SQL
cha63506/mediawiki-svn
/scavenger/tables_mysql.sql
UTF-8
1,134
3.953125
4
[]
no_license
DROP TABLE IF EXISTS page; DROP TABLE IF EXISTS text; DROP TABLE IF EXISTS revision; CREATE TABLE user ( user_id INT NOT NULL AUTO_INCREMENT, user_anon INT(1) NOT NULL, user_name VARCHAR(32), PRIMARY KEY (user_id) ) ENGINE=InnoDB DEFAULT CHARSET=UTF8; CREATE TABLE page ( page_id INT NOT NULL AUTO_INCREMENT...
true
d1c021b0e86daab95e32ed674daefe22ee8d151a
SQL
altamira/visualstudio
/Sistema de Informação Altamira/EGISSQL.Database/dbo/Stored Procedures/Procs2/pr_resumo_balanco_horario_producao.sql
UTF-8
1,611
3.171875
3
[]
no_license
 ------------------------------------------------------------------------------- --pr_resumo_balanco_horario_producao ------------------------------------------------------------------------------- --GBS Global Business Solution Ltda 2005 -----------------------------------------...
true
a29500af1127d96030d394b6b4a5c465bab90ab7
SQL
AndrewPonyk/StudyDB
/Oracle/plsql_recipes/chapter_10_PLSQL_Collections_and_Records/10-2_creating_and_accessing_indexed_table.sql
UTF-8
293
2.515625
3
[]
no_license
DECLARE TYPE num_type IS TABLE OF NUMBER INDEX BY BINARY_INTEGER; NUMS NUM_TYPE; BEGIN NULL; NUMS(1):=10.10; NUMS(2):=10.23; NUMS(3):=1.45; DBMS_OUTPUT.PUT_LINE(NUMS.COUNT); FOR I IN 1..NUMS.COUNT LOOP DBMS_OUTPUT.PUT_LINE(NUMS(I)); END LOOP; END;
true
c738cfe27509bbc902811f3a66b9832bc9a33ff9
SQL
LuckyEngineer/WeChatFriendsCircle
/project/MySql-sql/mysql.sql
UTF-8
1,064
3.53125
4
[]
no_license
create table admin( id int primary key auto_increment, username char(240) not null, password char(240) not null ); //用户数据表 create table user( id int primary key auto_increment, username char(240) not null, password char(240) not null, area char(240) not null, telephone char(240) not null, head varchar(2400) no...
true
ae86acdaf7d9b7e751f84a463bc2f60060eb4595
SQL
knagaev/ps_load
/patstat/test_selects.sql
UTF-8
4,275
3.578125
4
[]
no_license
use patscape -- 1 select appln_year, count(*) from appln_search aps where aps.appln_id in (select appln_id from FN_SEARCH_FORMSOF_FT_TLS_203 (N'красный, лазер', N'and')) --or aps.appln_id in (select appln_id from FN_SEARCH_FORMSOF_FT_TLS_203 (N'шлифовальная, машина', N'and')) --or aps.appln_id in (select appln_id fro...
true
c1218ee182b40b8754f91b057eacb297d2fde8a4
SQL
antoncom/messenger
/snippets/utils/modx_bloggers_sql.sql
UTF-8
5,211
4.03125
4
[]
no_license
/* Создаем представление под названием modx_blogger_activations Названия столбцов: blogger_id, username, fullname, phone, email, promo_codes_expires_count, promo_codes_live_count,activations_count где id - id ресурса активации */ SELECT modUser.id AS blogger_id, modUser.username AS username, modUserAttribute.email...
true
4570d42f06bb47150efbd75726d379bb1e4ef075
SQL
B24Development/b24crmBase
/build/sql/pump_vehicles_list.sql
UTF-8
2,294
3.78125
4
[]
no_license
-- View: pump_vehicles_list DROP VIEW pump_vehicles_list; CREATE OR REPLACE VIEW pump_vehicles_list AS SELECT pv.id, pv.pump_price_id, ppr.name AS pump_price_descr, pv.unload_type, pv.vehicle_id AS vh_id, v.plate AS vh_plate, v.client_id AS vh_owner_id, vcl.name AS vh_ow...
true
1a09974aa92fcdaa48b0bc5143b9af65e0fb699b
SQL
hgd250/bigdata-study
/hue.mysql.sql
UTF-8
42,935
3.0625
3
[]
no_license
/* Navicat SQLite Data Transfer Source Server : desktop Source Server Version : 30808 Source Host : :0 Target Server Type : SQLite Target Server Version : 30808 File Encoding : 65001 Date: 2016-10-19 10:28:46 */ -- ---------------------------- -- Table structure for auth_...
true
f3f33ddaf8617cda88a9a96eda5c3e9ac60f422b
SQL
AthenaTheOwl/leetcode
/595_Big Countries.sql
UTF-8
153
2.828125
3
[]
no_license
# Write your MySQL query statement below select world.name, world.population, world.area from world where world.area>3000000 or world.population>25000000
true
bbbf66103d7cfd6b6f16f74611477dd2d4f7220b
SQL
Khuattien/Rocket_09
/SQL/Assignment/Extra Assignment_2/execise2.sql
UTF-8
2,374
4.28125
4
[]
no_license
DROP DATABASE IF EXISTS execise2; CREATE DATABASE IF NOT EXISTS execise2; USE execise2; DROP TABLE IF EXISTS Department; CREATE TABLE Department ( Department_Number INT NOT NULL PRIMARY KEY, Department_Name VARCHAR(100) ); DROP TABLE IF EXISTS Employee_Table; CREATE TABLE Employee_Table ( Employee_Number INT PRIMA...
true
1080022e34b575b2beb5130658e60c9af227cccc
SQL
PasqualeScudieri/Ufficio-Postale
/UfficioPostale2/db/provaProgetto.sql
UTF-8
11,182
3.78125
4
[]
no_license
DROP database IF EXISTS provaProgetto3; CREATE database provaProgetto3; USE provaProgetto3; DROP TABLE IF EXISTS cliente; CREATE TABLE cliente( nome varchar(50) not null, cognome varchar(50) not null, CF char(16) not null primary key, luogonascita varchar(50), datanascita date, indirizzo varchar(70)...
true
b585bf31dac30a0a142c73eab3f26ca3b7f1e86d
SQL
cool-script/FoodWeb
/database/tables/food-listing/removed-food-listing.sql
UTF-8
1,452
3.84375
4
[]
no_license
-- Keeps records of all removed food listings (donations). CREATE TABLE IF NOT EXISTS RemovedFoodListing ( removedFoodListingKey SERIAL PRIMARY KEY ); -- Key of Food Listing that is to be Removed. ALTER TABLE RemovedFoodListing ADD COLUMN IF NOT EXISTS foodListingKey INTEGER NOT NULL REFERENCES FoodListi...
true
ee4ae0c9857d8dca07e36625d6dcc8c414db205a
SQL
berkbenzer/Oracle-Database
/FlashBackOps/using_flashback_drop_obj.sql
UTF-8
567
2.640625
3
[]
no_license
-----FLASHBACK DROP OBJECTS------ SQL> SHOW PARAMETER RECYCLEBIN; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ recyclebin SQL> DROP TABLE bbenzer.employees 2 ; Table dropped. SQL> select count(*) from bbenzer.employees; select count(*) from bbenzer.e...
true
4f07dd84fcf63dad8d42d0d7dcd2f1cd6d2255da
SQL
dltnngs950/dbsql
/20200908.sql
UTF-8
5,676
3.90625
4
[]
no_license
날짜 데이터 : emp.hiredate SYSDATE TO_CHAR (날짜 타입, '변경할 문자열 포맷') TO_DATE ('날짜 문자열', '첫번째 인자의 날짜 포맷') -- ex) YYYY MM DD TO_CHAR, TO_DATE -> 첫번째 인자 값을 넣을 때 문자열인지, 날짜인지 구분. 현재 설정된 NLS DATE FORMAT : YYYY/MM/DD HH24:MI:SS SELECT SYSDATE, TO_CHAR(SYSDATE, 'DD-MM-YYYY'), TO_CHAR(SYSDAT...
true
7248ad0c348b470829b315ee0d25f587a9a2973b
SQL
skysegbr/see_sharp
/web_loja/BANCO/05_CREATE_TABLE_TB_PRESENTE.SQL
UTF-8
1,284
3.453125
3
[]
no_license
CREATE TABLE TB_PRESENTE( COD_PRESENTE NUMBER(9), PRESENTE_DESC VARCHAR2(200), COD_TIPO NUMBER(9), COD_MARCA NUMBER(9), COD_FINALIDADE NUMBER(9), PRESENTE_COR VARCHAR2(200), PRESENTE_TAMANHO NUMBER(9), PRESENTE_PRECO NUMBER(10,2), COD_FORNECEDOR ...
true
034f31b640382e0a3cf225de8eb31fcab0e9913d
SQL
fcarrara/sql_zoo
/5_sum_and_count.sql
UTF-8
528
3.6875
4
[]
no_license
1. SELECT SUM(population) FROM world 2. SELECT DISTINCT continent FROM world 3. SELECT SUM(gdp) FROM world WHERE continent = 'Africa' 4. SELECT COUNT(name) FROM world WHERE area >= 1000000 5. SELECT SUM(population) FROM world WHERE name IN ('France', 'Germany', 'Spain') 6. SELECT continent, COUNT(name) FROM ...
true
bb9b9b72e0e71302c09b762b5400c81730431314
SQL
fruscil/AFScripts
/DDL_Split_From_Terry/EMOC3_Script-20140219100142_converted/Stored_Procedures/SP_emoc3.spinserteventlog_moc.sql
UTF-8
873
2.84375
3
[]
no_license
--<ScriptOptions statementTerminator="@"/> CREATE PROCEDURE "EMOC3"."SPINSERTEVENTLOG_MOC" ( datetimeenteredin VARCHAR, useridin NUMBER, eventtypein eventlog.eventtype%TYPE, eventnarrativein eventlog.eventnarrative%TYPE, tailnumberin eventlog.shorttailnumber%TYPE,...
true
56013cff89f555065806f7500ac1d603eb60dbb1
SQL
LefterisLymp/Database_Project
/inserting_data/creating_views.sql
UTF-8
305
3.390625
3
[]
no_license
/*Customer info*/ CREATE VIEW customer_info as select * from customer; /*Sells per category per store*/ CREATE VIEW sell_per_category AS SELECT contain.* FROM offers natural join (contain natural join product) WHERE offers.store_id = 'ATH01' and product.category_id = 1 ORDER BY contain.date_time ASC;
true
cb8329aff6cbb6b40af4a90256b184d757639082
SQL
kevansCPTS/Databases
/dbCrosslink22/dbo/Stored Procedures/up_accountHasFilledReturns.sql
UTF-8
444
2.890625
3
[]
no_license
create procedure up_accountHasFilledReturns --'RIVEDG' @account varchar(8) as set nocount on select case when count(*) > 0 then 1 else 0 end hasReturn from tblTaxmast tm where tm.[user_id] in( select u.[user_id] from ...
true
fc65f6ec53737c6104f5f32840b3f340e6b5c522
SQL
rabidaudio/clerydata
/MVP/schools.sql
UTF-8
640,565
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.8.0.1 -- http://www.phpmyadmin.net -- -- Host: custsql-pow09 -- Generation Time: Oct 15, 2014 at 02:24 AM -- Server version: 5.5.32 -- PHP Version: 4.4.9 -- -- Database: `hearrye` -- -- -------------------------------------------------------- -- -- Table structure for table `sc...
true
ab0e74c419d305a0824f98d1ef2600bb4135bef2
SQL
gregorthebigmac/oracle_db_class
/cit_db_admin_setup/create_users.sql
UTF-8
465
2.78125
3
[]
no_license
prompt>Dropping users DROP USER ap_admin CASCADE; DROP USER ex_admin CASCADE; DROP USER om_admin CASCADE; prompt>Creating users CREATE USER ap_admin IDENTIFIED BY ap DEFAULT TABLESPACE users; CREATE USER ex_admin IDENTIFIED BY ex DEFAULT TABLESPACE users; CREATE USER om_admin IDENTIFIED BY om DEFAULT TABLESPAC...
true
22b1ee5b94fc06f23cf726488742f1a4588d5db9
SQL
Bitabitabiu/SignSystem
/sql/signsystem.sql
UTF-8
4,528
2.984375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50537 Source Host : localhost:3306 Source Database : signsystem Target Server Type : MYSQL Target Server Version : 50537 File Encoding : 65001 Date: 2020-07-02 09:18:09 */ SET FORE...
true
fcc87007f503f1d6cb9ee8c1d360457387f04c30
SQL
sansow/examples
/chapter-4/chapter-4-spring-data-jpa/src/test/resources/db/schema.sql
UTF-8
232
3.140625
3
[ "Apache-2.0" ]
permissive
CREATE TABLE fruits ( id bigserial NOT NULL, name varchar(255) NOT NULL UNIQUE, description varchar(255), PRIMARY KEY (id) ); INSERT INTO fruits(name, description) VALUES ('Apple', 'Hearty fruit'), ('Pear', 'Juicy fruit');
true
f71245173e343ddad6d782cd0b5b6f8fea64f500
SQL
salkiduckyJUMP/sql-demos
/Commits and Rollbacks.sql
UTF-8
417
3.359375
3
[]
no_license
use testdb; #set session so no autocommits complete set session autocommit = 0; create table pet(pet_id int, pet_type varchar(100)); #first commit commit; insert into pet values (1, 'Dog'); insert into pet values (2, 'Cat'); insert into pet values (3, 'Rabbit'); select * from pet; #Rollback to first commit; undo ...
true
e4a1eeccacc596f3dac4f067cc4dd16550053830
SQL
decod123/T-SQL
/70-462/70-462-09.sql
UTF-8
1,393
3.96875
4
[]
no_license
USE AdventureWorks2012; --Row estimate EXEC sp_estimate_data_compression_savings 'Production', 'Product', NULL, NULL, 'ROW'; --Page estimate EXEC sp_estimate_data_compression_savings 'Production', 'Product', NULL, NULL, 'PAGE'; --compression ALTER TABLE [Production].[Product] REBUILD PARTITION = ALL WITH...
true
fe2b513fa39318ae475d50b706cf6e398a3c979a
SQL
doters/electrohell
/stockingElectrohell 02-04-16/stockingElectrohell/garment(1).sql
UTF-8
12,916
3.046875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 24 Mei 2016 pada 12.35 -- Versi Server: 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 */; /*!4...
true
3cc4e4e7b96e2491be0378b2b2eeedde8e22b0a5
SQL
victorenriquecandido/Desafio_2
/bd/desafioicts.sql
UTF-8
2,400
3.234375
3
[]
no_license
-- -------------------------------------------------------- -- Servidor: localhost -- Versão do servidor: 10.4.11-MariaDB - mariadb.org binary distribution -- OS do Servidor: Win64 -- HeidiSQL Versão: 11.3.0.6295 -- -----------------------------------------------...
true
a20be32ffbb0b475d4fb3276a9fa289a2da4169a
SQL
secornejob/querys
/Abastecimiento/Instock/Duplicados_Export.sql
UTF-8
303
3.71875
4
[]
no_license
SELECT * FROM INSTOCK_OPT.dbo.INSTOCK_MIN_PRE B LEFT JOIN ( SELECT [SKU ID], [Store ID], COUNT([SKU ID]) CUENTA FROM INSTOCK_OPT.dbo.INSTOCK_MIN_PRE GROUP BY [SKU ID], [Store ID] HAVING COUNT([SKU ID]) > 1 ) D ON D.[SKU ID] = B.[SKU ID] AND D.[Store ID] = B.[Store ID] WHERE D.CUENTA > 1
true
8fe0b81ba184977cc368d77eed0bb827d0616f19
SQL
MarlonRoches/BD1
/LAB3/Querys Lab 3.sql
ISO-8859-1
3,934
4.25
4
[]
no_license
use AdventureWorks2017 --1. Cules son las 3 ciudades con ms direcciones registradas? select top 3 count(*) as Cantidad, city from SalesLT.Address group by City order by Cantidad desc --2. cuntos cdigos postales terminan con 0? select count (*) as [Codigos Terminados En 0] from SalesLT.Address where PostalCode like '%...
true
1c3e82aba23cc8bf15a9db4297b002db0989a50b
SQL
unitartu-remrob/remrob-server
/db/init.sql
UTF-8
2,229
3.359375
3
[]
no_license
CREATE TABLE bookings ( id SERIAL NOT NULL, user_id VARCHAR(100), simulation BOOLEAN, project VARCHAR(100), start_time VARCHAR(100), end_time VARCHAR(100), admin VARCHAR(255), activated BOOLEAN, PRIMARY KEY (id) ); CREATE TABLE cameras ( id SERIAL NOT NULL, cell INT...
true
41f844914f605a1f8afcde741c5750d1bacb6e13
SQL
SreynetHak0506/project_pizza_app
/database/pizza_project.sql
UTF-8
2,489
3.296875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 02, 2020 at 04:56 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
e54987e5025b67fb7dacc38ae9396cdd9537e5db
SQL
dbwhizard/staff_engineer_assessment
/SQLTestQuestions/TestQuestions.sql
UTF-8
3,342
4.28125
4
[]
no_license
USE PERSONDATABASE /********************* Hello! Please use the test data provided in the file 'PersonDatabase' to answer the following questions. Please also import the dbo.Contracts flat file to a table for use. All answers should be written in SQL. /********************** QUESTION 1 Create a patient matchi...
true
b4ab4330882c2246aa7e0e0d4bbc1ff4b21d373a
SQL
mpooser417/Amazon_Vine_Analysis
/Vine_Review_Analysis.sql
UTF-8
1,266
3.484375
3
[]
no_license
CREATE TABLE vine_table ( review_id TEXT PRIMARY KEY, star_rating INTEGER, helpful_votes INTEGER, total_votes INTEGER, vine TEXT, verified_purchase TEXT ); select * into vine_table1 from vine_table where total_votes >= 20; select * into vine_table2 from vine_table1 WHERE CAST(helpful_votes AS FLOAT)...
true
6fad2f01524aee496a3d9ee2e7d8d1cc8b03da02
SQL
AleKiller21/crud-rest-api
/generate.sql
UTF-8
2,979
3.5
4
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Sun 08 Apr 2018 05:49:58 PM CST -- Model: New Model Version: 1.0 -- 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_M...
true
a1f31147b02eb7bdc2b568347fc415a780cffef5
SQL
brunstart/Database_and_SQL_Programming
/DB 실습 4-3 SQL 프로그래밍.sql
UTF-8
1,298
3.578125
4
[]
no_license
set @a = 100; set @b = 200; set @c = @a + @b; set @d = @b - @a; select @a, @b, @c, @d; drop procedure if exists add_sum; delimiter $$ create procedure add_sum() begin declare a int; declare b int; declare c int; set a = 500; set b = 300; set c = a + b; select a, b, c; end $$ delimiter ; call add_sum; call...
true
2de36fb36b44e36797c1efbdeb0accbb7cbe0f1a
SQL
aiemelyanov/RedGate
/TEST3/APEX_030200/Tables/WWV_FLOW_STEP_BRANCH_ARGS.sql
UTF-8
812
3.015625
3
[]
no_license
CREATE TABLE apex_030200.wwv_flow_step_branch_args ( "ID" NUMBER NOT NULL, flow_step_branch_id NUMBER, branch_arg_sequence NUMBER NOT NULL, branch_arg_source_type VARCHAR2(30 BYTE) CONSTRAINT valid_fstepbrancharg_srctype CHECK (branch_arg_source_type in ( 'VALUE_OF_ITEM', 'STATIC_ASSIGNMEN...
true
543a24312e6c22b87b403b5c36b1e92e057b93c9
SQL
dsdehoyos89/personalProj
/db/getDream.sql
UTF-8
176
3
3
[]
no_license
select dream,dream_id,date_created, lucidity, cohesion, rating from dreams join users u on dreams.user_id = u.user_id where dreams.user_id = $1 order by date_created desc ;
true
075a147824e4a4c797ec054b6b56fac427ee61cf
SQL
elee5696/job_search_organizer
/database/dump.sql
UTF-8
3,343
3
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.27, for Linux (x86_64) -- -- Host: localhost Database: job_search -- ------------------------------------------------------ -- Server version 5.7.27-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER...
true
02350a64e827936af064f25e1b0ddc55c343876b
SQL
adimitui/practice-restful-api
/kittens.sql
UTF-8
257
2.765625
3
[]
no_license
DROP DATABASE IF EXISTS kittens; CREATE DATABASE kittens; \c kittens; CREATE TABLE kits ( ID SERIAL PRIMARY KEY, name VARCHAR, breed VARCHAR, age INTEGER, sex VARCHAR ); INSERT INTO kits (name, breed, age, sex) VALUES ('Garfield', 'Tabby', 3, 'M');
true
b587a7e5a90b9a755390cc5473baf25dead0689a
SQL
mindnervestech/play-test
/conf/evolutions/default/1.sql
UTF-8
1,840
3.265625
3
[]
no_license
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table questions ( id bigint auto_increment not null, question varchar(255), option1 varchar(255), option2 ...
true
0d0803e9201a55172a23506bd098d0bdbfc446bd
SQL
gughappriya/connect
/connections/SQLScripts/StoredProcedures/follow_neighbor.sql
UTF-8
259
2.59375
3
[]
no_license
DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `follow_neighbor`(IN `follower` VARCHAR(25), IN `followee` VARCHAR(25)) BEGIN INSERT INTO Neighbor (memberName,neighborUserName,neighborSince,isActive) VALUES (follower,followee,now(),'true'); END
true
098a315965090cc9d0aa08513dc7e90d0a322be7
SQL
OctavioBR/projetobd_hidromel
/triggers.sql
ISO-8859-1
2,423
3.53125
4
[]
no_license
delimiter // CREATE TRIGGER tr_insert_compra_insumo BEFORE INSERT ON compra_insumo FOR EACH ROW BEGIN SET NEW.preco_total = NEW.preco_unitario * NEW.quantidade; END;// CREATE TRIGGER tr_update_preco_unitario BEFORE UPDATE ON compra_insumo FOR EACH ROW BEGIN DECLARE msg VARCHAR(255); SET msg = "O valor dessa colun...
true
047350a39d3fffe972e4cac1854774d8d2c79a12
SQL
McLeodMoores/starling
/projects/master-db/src/main/resources/db/migrate/sqlserver2008/usr/V_47__migrate_usr.sql
UTF-8
649
3.140625
3
[ "Apache-2.0" ]
permissive
SET XACT_ABORT ON; BEGIN TRANSACTION; -- update the version UPDATE usr_schema_version SET version_value='47' WHERE version_key='schema_patch'; ALTER TABLE usr_oguser ALTER COLUMN password varchar(255); IF NOT EXISTS (SELECT name FROM sysindexes WHERE name = 'ix_usr_oguser_name') CREATE INDEX ix_usr_oguser...
true
0b12e00b5163bfcc49999f3b6db443fd944f9f00
SQL
akrasnov87/vote-db
/SCHEMA/dbo/TABLE/sf_friend_types.sql
UTF-8
583
2.96875
3
[]
no_license
CREATE TABLE dbo.sf_friend_types ( id smallint DEFAULT nextval('dbo.sf_friend_types_id_seq'::regclass) NOT NULL, c_name character varying(30) NOT NULL, c_const character varying(20) NOT NULL, b_disabled boolean DEFAULT false NOT NULL, b_default boolean DEFAULT false NOT NULL ); ALTER TABLE dbo.sf_friend_types OWN...
true
a7a4509ec3832fdbe1c60661789f544787897c30
SQL
naveenrs123/ZooManagement304
/resources/insertTables.sql
UTF-8
8,845
2.515625
3
[]
no_license
INSERT INTO ZooEmployee VALUES ('E1', 'John', TO_DATE('2016-02-19', 'YYYY-MM-DD'), TO_DATE('2018-02-19', 'YYYY-MM-DD'), 'F'); INSERT INTO ZooEmployee VALUES ('E2', 'Deere', TO_DATE('2017-02-18', 'YYYY-MM-DD'), TO_DATE('2019-02-18', 'YYYY-MM-DD'), 'F'); INSERT INTO ZooEmployee VALUES ('E3', 'Matt', TO_DATE('2018-02-19',...
true
023bc25ddff728d1e8b5c393aa0b2f0c7ce6760a
SQL
altamira/visualstudio
/Sistema de Informação Altamira/EGISADMIN.Database/dbo/Stored Procedures/sp_InsereGrupoGerencial.sql
UTF-8
686
3.140625
3
[]
no_license
 CREATE PROCEDURE [sp_InsereGrupoGerencial] @cd_grupo_gerencial int output, @nm_grupo_gerencial varchar(20), @nu_ordem int AS BEGIN --inicia a transaçao BEGIN TRANSACTION -- gerar codigo e executa travamento SELECT @cd_grupo_gerencial = ISNULL(MAX(cd_grupo_gerencial),0)+1 FROM Grupo_Gerencial TABLOCK ...
true
8f3b6c860000cd5cfe404e3b01ec94e438b14bdf
SQL
Johanpro17S/his_compfest13
/compfest_13_sea.sql
UTF-8
2,413
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 14, 2021 at 05:28 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
acc8872a8ef0ff169736b1b22da4d6705c874923
SQL
h-t-tran/work
/sql/alerts.sql
UTF-8
1,119
3.484375
3
[]
no_license
drop table geo_alert; drop table common_alert; CREATE TABLE common_alert ( alertid integer PRIMARY KEY, title varchar(255) NOT NULL, created date NOT NULL, receipient varchar(255) NOT NULL, classification varchar(255) NOT NULL, appsrc varchar(255) NOT NULL, ...
true
9a488dab162cb05cadf1d3a51977383966687d64
SQL
imargon/scrapy_demo
/nimrob-gp-master/gp/gp/db/redline.sql
UTF-8
38,585
2.765625
3
[ "MIT" ]
permissive
-- MySQL dump 10.13 Distrib 5.1.73, for redhat-linux-gnu (x86_64) -- -- Host: localhost Database: redline -- ------------------------------------------------------ -- Server version 5.1.73-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_...
true
7113f4fff4b6bd596143b2e639ad4dc9da39dbee
SQL
zedream/th-admin
/demo.sql
UTF-8
10,217
3.265625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : th Source Server Version : 50731 Source Host : localhost:3306 Source Database : demo Target Server Type : MYSQL Target Server Version : 50731 File Encoding : 65001 Date: 2020-09-27 10:51:47 */ SET FOREIGN_KEY_CHECKS=0; -- -----------...
true
7c38e65fc08ac539c0c8ce4be605f1efbe9c9092
SQL
TheGreenPlanet/PHPKeyAuth
/database.sql
UTF-8
881
3.6875
4
[]
no_license
/* Creates users database */ CREATE TABLE users ( id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, token VARCHAR(10) NOT NULL, hwid VARCHAR(10) NOT NULL, ban INT(1), date TIMESTAMP ) /* ban isnt needed since its moved into a new table and deleted from the users table! */ /* Creates banned_user...
true
61bd34d463d03b0297be28be098f4581c169fe38
SQL
shallyyy/connectx
/Database/database.sql
UTF-8
2,149
3.890625
4
[]
no_license
create database connectx with owner postgres; create sequence tables.games_gameid_seq; create sequence tables.moves_moveid_seq; create sequence tables.users_uid_seq; create table tables.users ( uid int4 default nextval('tables.users_uid_seq'::regclass) not null constraint users_pk ...
true
7f5bf77327f4df074d6bea50dfedd496ebee30fc
SQL
alexanderrichards/DIRAC
/RequestManagementSystem/DB/ReqDB.sql
UTF-8
441
2.8125
3
[]
no_license
DROP DATABASE IF EXISTS ReqDB; CREATE DATABASE ReqDB; -- -- Must set passwords for database user by replacing "must_be_set". -- use mysql; GRANT SELECT,INSERT,LOCK TABLES,UPDATE,DELETE,CREATE,DROP,ALTER,CREATE VIEW,SHOW VIEW ON ReqDB.* TO 'Dirac'@'localhost' IDENTIFIED BY 'must_be_set'; GRANT SELECT,INSERT,LOCK TABLES...
true
6e03c09491695a5f1421112bf472c39f9821d8ac
SQL
aliyumia/Project_G14_SmartSearch
/book.structure.sql
UTF-8
1,746
3.375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 18, 2020 at 11:19 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
4c673d060448c79ce49dbeee1631cda31afd9368
SQL
eodchop/rsouthard-bamazon
/bamazon.sql
UTF-8
1,543
2.953125
3
[]
no_license
create database bamazon_db; use bamazon_db; create table Products ( itemID INT NOT NULL AUTO_INCREMENT, ProductName varchar(50) not null, DepartmentName varchar(50) not null, Price decimal(6) not null, StockQuantity integer(6) not null, PRIMARY KEY (`itemID`) ); INSERT INTO Products (itemID,ProductName,Department...
true
26242ca572b7f36ddd3101a488b3d063491e4e19
SQL
s16003/database-1
/1005.5.sql
UTF-8
73
2.6875
3
[]
no_license
select count(first_name) from employees where department_id in(20, 50) /
true
6b16094c015489cbb89d43964051b594e3a6bfbc
SQL
susannapeek1/seisundid_SQL
/Magistritöö/SQL kood kõigile disainidele/Vektorkodeerimine/4.6_S1/4.6_S1.sql
UTF-8
151
2.640625
3
[]
no_license
SELECT tellimus.tellimuse_nr FROM tellimus WHERE f_seisundi_dekodeerimine(tellimus.seisund) = 'Töötlemisel' ORDER BY tellimus.tellimuse_nr;
true
15db4643ae8820fca7e2d9b2507a549fcf59a228
SQL
team-asdasd/clubby
/.sql/03_payment/05_paymentsFrequency.sql
UTF-8
235
2.53125
3
[]
no_license
CREATE TABLE payment.paymentsFrequency ( frequencyId INT NOT NULL, name TEXT NOT NULL, CONSTRAINT payments_frequency_pkey PRIMARY KEY (frequencyId), CONSTRAINT payments_frequency_unique_name UNIQUE (name) ) WITH (OIDS =FALSE);
true
840eff0eac41e75997632a70060a4e3ed0acf986
SQL
vitoriafrds/laboratorio-bd
/procedures-p1/procedure-gerar-jogos.sql
UTF-8
3,058
3.40625
3
[]
no_license
DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `montarConfrontosPaulistao`() BEGIN /*VARIAVEIS PARA CONTROLE DA GERACAO DOS JOGOS */ DECLARE CONTADOR INT; DECLARE DATA_ACONTECIMENTO_JOGO VARCHAR(30); DECLARE TIME_A INT; DECLARE TIME_B INT; DECLARE TOTAL_GOLS_TIME_A INT; DECLARE TOTAL_GOLS_TIME_B INT; DECLARE...
true
b69e8a989476575d3bbf95fa49f4cfcfe51e8c5b
SQL
DimazzzZ/simple-feedback-form
/dump.sql
UTF-8
668
2.765625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.12, for Linux (x86_64) -- -- Host: localhost Database: beejee -- ------------------------------------------------------ -- Server version 5.6.22-71.0-log CREATE TABLE `comments` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(255) NOT NULL, `email` V...
true
b113324dd00ba5f447e40401c81d88fd47507f8d
SQL
FaithMandela/QuestionThree
/projects/babcock/migrate/data/08.vefify.sql
UTF-8
8,821
3.546875
4
[]
no_license
SELECT * FROM pg_majors LEFT JOIN majors ON pg_majors.majorid = majors.majorid WHERE (majors.majorid is null); UPDATE majors SET org_id = 2 WHERE majorid IN (SELECT majorid FROM pg_majors); INSERT INTO courses(departmentid, degreelevelid, coursetypeid, org_id, courseid, coursetitle, credithours, lecturehours, yeartak...
true
01d1249f69bc6fcaebba8f7eb521af6b23bd60c0
SQL
cyndiWade/zunlvhui_product
/_bak/sqls/zun-tjr-20140224 14.11app_order_log.sql
UTF-8
1,575
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2014 年 02 月 24 日 06:10 -- 服务器版本: 5.6.12-log -- PHP 版本: 5.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACT...
true
77a8038497fca3bf72f7edc1b09c418e22038506
SQL
pivotaccess2007/mch
/db/create.sql
UTF-8
61,124
3.1875
3
[]
no_license
-- -- RapidSMS Rwanda - PostgreSQL database structure -- -- Developed by PIVOT ACCESS LTD -- @author UWANTWALI ZIGAMA Didier -- d.zigama@pivotaccess.com/zigdidier@gmail.com -- -- -- RapidSMS Rwanda - Tracking maternal and < 5 children health to prevent unnecessary deaths -- -- The system is primarily used by Communi...
true
526b25b279f46f51b95bd97cbd5465c439c20ceb
SQL
amitprakash07/SchoolAutomation
/tables2.sql
UTF-8
4,441
3.421875
3
[]
no_license
create table library_req (book_name varchar2(25) not null,author varchar(25) not null, publisher varchar(25) not null,quantity number(2) not null,type varchar(10)); create table salary (emp_id varchar2(25) references employee(emp_id) not null, pay_of_month varchar2(25) not null, bs number(10,2), total number(10,2),...
true
5c097eceeedd91277fba59f248e760bccec410bc
SQL
tmushayahama/excel_to_sql
/main.sql
UTF-8
626
2.859375
3
[]
no_license
create family_member( id int not null auto_increment, family_member_id int, family_member varchar(255), primary key (id), foreign key(family_member_id) references main.id ); create experimental_tissue( id int not null auto_increment, experimental_tissue_id int, experimental_tissue varchar(255), primary key (i...
true