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
5d5ee503026351388986bdb3aed87b6c1907951a
SQL
HTTPArchive/almanac.httparchive.org
/sql/2020/security/cryptominer_share.sql
UTF-8
405
3.25
3
[ "Apache-2.0" ]
permissive
#standardSQL # Share of cryptominers SELECT app, _TABLE_SUFFIX AS client, SUM(COUNT(0)) OVER (PARTITION BY _TABLE_SUFFIX) AS total_cryptominers, COUNT(0) AS freq, COUNT(0) / SUM(COUNT(0)) OVER (PARTITION BY _TABLE_SUFFIX) AS pct FROM `httparchive.technologies.2020_08_01_*` WHERE category = 'Cryptominers' ...
true
5f493d66cb83d941e2d236ee517837eff84805d4
SQL
505519551/unifig
/unifig-modules/unifig-bi/unifig-etl/etl-dispatch-boot/doc/db/bi_online.sql
UTF-8
5,124
3.046875
3
[ "MIT" ]
permissive
/* Navicat Premium Data Transfer Source Server : 125.208.1.67-root Source Server Type : MySQL Source Server Version : 50711 Source Host : 125.208.1.67:33665 Source Schema : bi_online Target Server Type : MySQL Target Server Version : 50711 File Encoding : 65001 Date:...
true
57e3a09b1090387c8aa71e75616a6616a47969e5
SQL
doedotdev/uc-database-design
/sample.sql
UTF-8
3,298
3.296875
3
[]
no_license
CREATE TABLE kdavis.likes ,FALLBACK ,NO BEFORE JOURNAL ,NO AFTER JOURNAL ( customer char(20) TITLE 'customer' NOT NULL, beverage char(30) TITLE 'beverage' NOT NULL ) UNIQUE PRIMARY INDEX(customer, beverage); INSERT INTO kdavis.likes (customer, beverage) VALUES ('Joe','Guinness'); INSERT INTO kdavis.likes (c...
true
a4993c65908cf62f0bf6057f39952619de79e5f5
SQL
clausbulow/KafkaCQRSapp
/AppReadWriteModel/sql/eventstore.sql
UTF-8
1,652
3.84375
4
[]
no_license
set schema 'inventory'; CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; drop table inventory.eventstore; drop table inventory.aggregates; drop table inventory.snapshots; CREATE TABLE inventory.eventstore ( id uuid DEFAULT uuid_generate_v4() primary key, actor varchar(100), req...
true
c57ef59b4c589e7e3c4dfeae83ca0d18e8f5d642
SQL
LiaoHuaxin/Shoes_shop
/project2C/shopping_cart.sql
UTF-8
1,552
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- 主機: 127.0.0.1 -- 產生時間: -- 伺服器版本: 10.4.11-MariaDB -- PHP 版本: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*...
true
12bb50bbfcabbb064d7d10a84cd3cfefb8c3b6ca
SQL
ronlim415/testing123
/file-management (1).sql
UTF-8
3,105
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 27, 2021 at 04:39 PM -- Server version: 10.4.19-MariaDB -- PHP Version: 8.0.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
74faae7c3802bd18944662376f7376a148efba05
SQL
kevinakadamian19/unity-api
/migrations/002.do.create_guest_table.sql
UTF-8
200
2.765625
3
[]
no_license
CREATE TABLE unity_guests ( id INTEGER PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, name TEXT NOT NULL, email TEXT NOT NULL, event_id INTEGER REFERENCES unity_weddings(id) NOT NULL );
true
f1b76d434433f2bb130c05d56bdf82f7bbe5c35c
SQL
joshdaniels/Pewlett-Hackard-Analysis
/Queries/Employee_Database_Challenge.sql
UTF-8
4,198
4.375
4
[]
no_license
--Start Challenge -- deliverable 1 part 1 --PART 1 SELECT e.emp_no, e.first_name, e.last_name, t.title, t.from_date, t.to_date INTO retirement_titles FROM employees as e INNER JOIN titles AS t ON (e.emp_no = t.emp_no) WHERE (e.birth_date BETWEEN '1952-01-01' AND '1955-12-31') ORDER BY emp_no ASC; -- Use Dictinct wit...
true
c5bc4e381a3b14df904d8790935fef22695f5046
SQL
rogernkosi/caph
/model/model/caph.sql
UTF-8
19,838
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 26, 2018 at 09:16 AM -- Server version: 10.1.24-MariaDB -- PHP Version: 7.1.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
4417eb8037e0747d0f2067fb3e6f09563c2215e3
SQL
jpcodezur/newmeli
/docs/1.0.2/script.sql
UTF-8
1,132
3.1875
3
[]
no_license
ALTER TABLE `articulos` CHANGE `estado` `estado` VARCHAR(255) NULL DEFAULT NULL; UPDATE articulos set estado = 'not_published' WHERE status = '1'; UPDATE articulos set estado = 'active' WHERE status = '2'; UPDATE articulos set estado = 'closed' WHERE status = '3'; UPDATE articulos set estado = 'paused' WHERE status = ...
true
b9c402f12ea31291db502667ee188f402c963886
SQL
jjpedraza/eam
/bd/Brigadas.sql
UTF-8
208
3.140625
3
[]
no_license
SELECT DISTINCT ( brigada ) as Brig, (select count(*) from sms where sms.estado = 0 and brigada = Brig) as SentNOT, (select count(*) from sms where sms.estado = 1 and brigada = Brig) as SentOK FROM sms
true
c6ef98415782c59650dbea9c698963bad917f05e
SQL
JavierSQL/BlogCode
/DIM-010 DateDimesionSchema.sql
UTF-8
3,038
3.96875
4
[]
no_license
--USE DimensionalSamples --GO --DROP TABLE IF EXISTS Dimensions.Dates; --GO --CREATE SCHEMA Dimensions; --GO CREATE TABLE Dimensions.Dates( DateId INT NOT NULL CONSTRAINT PK_Dates PRIMARY KEY , Date DATE NOT NULL , DateFullName VARCHAR(15) NOT NULL --- Numbers to use as MEASURES...
true
57dfa3cd4e9aa5c43858c06f3657c0abd644b9f2
SQL
rahulmahajann/PEP-s-scheduler_calendar
/database/bs2krq3wttjzlmzfknik_schedule.sql
UTF-8
2,907
2.6875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.25, for Win64 (x86_64) -- -- Host: bs2krq3wttjzlmzfknik-mysql.services.clever-cloud.com Database: bs2krq3wttjzlmzfknik -- ------------------------------------------------------ -- Server version 8.0.22-13 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET...
true
6f26e9cfa1f7e61f014b3a46fddada855d321b75
SQL
DiegoDigo/erp-online
/repositorio-jdbc-erp/src/main/java/br/com/control/repositorio/views/VW_CAD_CONDICAO_PAGAMENTO.SQL
UTF-8
814
2.515625
3
[]
no_license
CREATE VIEW dbcontrol1049999. "VW_CAD_CONDICAO_PAGAMENTO" AS SELECT dbcontrol1049999.condpg01. "vdcadpag_ativo" AS ATIVO, dbcontrol1049999.condpg01. "vdcadpag_cod" AS CODIGO_CONDICAO_PAGAMENTO_ERP, dbcontrol1049999.condpg01. "vdcadpag_descr" AS DESCRICAO, CASE ...
true
7e0173b06cde2a3b47936a7ff0fd59aec40f15cc
SQL
tgooden01/SnowConvertDDLExportScripts
/Redshift/output_snowflake/salesorderheader.sql
UTF-8
1,933
3.0625
3
[]
no_license
--DROP TABLE adventureworks2012_sales.salesorderheader; CREATE OR REPLACE TABLE adventureworks2012_sales.salesorderheader --// CREATE TABLE ( salesorderid INTEGER NOT NULL IDENTITY(144557,1) --// ENCODE az64 ,revisionnumber SMALLINT NOT NULL DEFAULT 0 --// ENCODE az64 ,orderdate TIMESTAMP WITHOUT TIME ZONE ...
true
89421054c584089565100989405b9e3588b97a02
SQL
vitrokb/projetos-trybe
/projeto-19-MYSQL-one-for-all/desafio10.sql
UTF-8
238
3.140625
3
[]
no_license
DELIMITER $$ CREATE FUNCTION quantidade_musicas_no_historico(id INT) RETURNS INT READS SQL DATA BEGIN DECLARE total INT; SELECT COUNT(user_id) FROM SpotifyClone.rep_history WHERE user_id = id INTO total; RETURN total; END $$ DELIMITER ;
true
8f39dd3ff0cf8a6c9a3a23297257a26d89b0f2d8
SQL
Nguyentungc11/C1220G2_NguyenThanhTung_Module3
/lesson 2/baitap_2.sql
UTF-8
1,790
3.3125
3
[]
no_license
drop database if exists he_thong_ban_oto; create database if not exists he_thong_ban_oto; use he_thong_ban_oto; create table quan_li( ma_nvql int not null primary key, ten_nvql varchar(45) ); create table van_phong( ma_van_phong int not null primary key, dia_chi varchar(45), dien_thoai varchar(12), quoc_gia varchar(4...
true
057dcb0a40d8103bfd1b20b25a295c490d1c2681
SQL
AventusM/MediHome
/sql/add_test_data.sql
UTF-8
515
2.53125
3
[]
no_license
-- Lisää INSERT INTO lauseet tähän tiedostoon -- Potilas - taulun testidata --INSERT INTO Potilas (etunimi, sukunimi, hetu, username, pass) VALUES ('Anton', 'Moroz', '010190-255K', 'AntonM', 'test'); --INSERT INTO Potilas (etunimi, sukunimi, hetu, username, pass) VALUES ('Geir', 'Siirde', '020280-552I', 'GeirS', 'test'...
true
6d37f1491f53c9409e386b199cfbc7b6a1de695f
SQL
datntt/DBI202x_02-A_VN_datnt_exercise-and-lad
/exercise/ex4.sql
UTF-8
548
2.78125
3
[]
no_license
CREATE TABLE KHACHKHANG ( MAKH Nvarchar (5), TENKH Nvarchar (30), DIACHI Nvarchar (50), DT Nvarchar (10), EMAIL Nvarchar (30), PRIMARY KEY (MAKH) ) CREATE TABLE VATTU ( MAVT Nvarchar (5), TENVT Nvarchar (30), DVT Nvarchar (20), GIAMUA int, SLTON int, PRIMARY KEY (MAVT) ) CREATE TABLE HOADON ( MAHD Nva...
true
917da68a7b5499220f94333331e21b951639f9ba
SQL
pribtech/nodete
/db2te/tutorials/tutorials/CGTT/SQL/ComputeTax.SQL
UTF-8
537
2.71875
3
[ "Apache-2.0" ]
permissive
INSERT into SESSION.tax_cal_cgtt(empno, firstnme, lastname, birthdate, bonus, comm, salarypa, tax_exempted, deptno) SELECT e.empno, e.firstnme, e.lastname, e.birthdate, e.bonus, e.comm, p.salarypa, p.tax_exempted,p.deptno FROM employee AS e, payroll AS p WHERE e.empno = p.empid; UPDATE payroll SET tax_proof =...
true
56d63c456342d00772250823a1d0b1e0f7cdeb84
SQL
paulalcabasa/gitcheatsheet
/db/v_programs_list.sql
UTF-8
213
3.640625
4
[]
no_license
SELECT a.program_code, a.program_category_id, a.title, b.category_name FROM program a LEFT JOIN program_category b ON a.program_category_id = b.program_category_id WHERE a.delete_user IS NULL
true
7ddadfb39484f3db2381b4a5b850c1b5391b7dd4
SQL
skyleft1/lecture_yoo
/SQL/0517 시험대비용 복습파일/MySql.ch03.그룹함수.sql
UTF-8
7,537
4.71875
5
[]
no_license
-- @@@@@@@@@@@@@@ -- 그룹 함수 -- sum : 합계 -- avg : 평균 -- count : 갯수 -- min : 최소값 -- max : 최대값 -- @@@@@@@@@@@@@@ -- 전체 직원수를 출력하시오 select count(*) from emp; -- emp 테이블을 부서별로 그룹화 하시오 select * from emp group by deptno; -- 직원의 급여(sal)를 출력하되 백 단위에서 반올림하기 select round(sal, -2) from emp ; -- 모든 직원의 급여총액(sum), 급여평균(avg), 최대급여(...
true
8aabd8621d186f03c2af8d0463e7d80bc06893d7
SQL
theeventaid/theeventaid
/migration.sql
UTF-8
3,312
3.796875
4
[]
no_license
use eventaid_db; CREATE TABLE `users` ( `id` int NOT NULL AUTO_INCREMENT, `firstname` char(255) NOT NULL, `lastname` char(255) NOT NULL, `address` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `telephone` varchar(255) NOT NULL, `created_on` TIMESTAMP NOT NULL, `owner` bool NOT NULL, PRIMARY KEY (`id`)...
true
8bc721d35695a219ce5317095aac155abcd133c3
SQL
YuryMatskevich/job4j
/chapter_006/src/main/java/ru/job4j/outerjoin/join.sql
UTF-8
3,074
4.15625
4
[ "Apache-2.0" ]
permissive
--0. Создать базу данных CREATE database car_service; --1. Создать структур данных в базе CREATE TABLE engine ( id_e serial NOT NULL PRIMARY KEY, name_e VARCHAR(45) NOT NULL ); CREATE TABLE frame ( id_f serial NOT NULL PRIMARY KEY, name_f VARCHAR(45) NOT NULL ); CREATE TABLE transmission ( id_t s...
true
88c4ec6fd9c6847b176d58f02bb313b7cfa25412
SQL
Viyaan/dynamodb-queries
/queries.sql
UTF-8
1,420
2.8125
3
[]
no_license
aws dynamodb list-tables aws dynamodb put-item --table-name Music --item file://song1.json aws dynamodb put-item --table-name Music --item file://song2.json aws dynamodb put-item --table-name Music --item file://song3.json aws dynamodb query --table-name Music --key-condition-expression "Artist =:v1" --expression-attr...
true
dd719088ff35b64349c26ee7cba5a9eea1645d5b
SQL
allexolic/web-juridico-php
/sql/processo_inserir.sql
UTF-8
979
3.046875
3
[]
no_license
DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `processo_inserir`(IN `dt_processo` VARCHAR(12), IN `parte_Pro` INT(11), IN `nu_processo` VARCHAR(255), IN `parte_contra` INT(11), IN `id_area_judicial` INT(11), IN `id_acao_judicial` INT(11), IN `st_processo` INT(1), IN `nm_oficio` VARCHAR(255), ...
true
de2214f5cc9d8fd9fcd11afbd2f7730694168dba
SQL
yeyudefeng/test
/nstc_ods_导数/clife_nstc_ods_apply_supply
UTF-8
1,122
2.71875
3
[]
no_license
select suppery_Id ,member_id ,goodclass -- 品类 ,supper_price -- 供货价格 ,`level` -- 商品等级 ,fromword -- 货源地 ,go -- 收获地 ,image ...
true
a195d5f34543c7edcd2bbff86bf8ff63862e8505
SQL
vonnenaut/sql_learning
/Ex_Files_PostgreSQL_EssT/Chapter 4/create_view2.sql
UTF-8
303
3.5625
4
[]
no_license
CREATE VIEW human_resources.south_employees AS SELECT employees.first_name, employees.last_name, departments.department_name, departments.building FROM human_resources.employees JOIN human_resources.departments ON employees.department_id = departments.department_id WHERE building = 'South';
true
31b9a4e325d2c6e288a138c3d753a5c59acfae21
SQL
ytyaru/Sqlite3.Aggregate.Over.20190913123833
/src/1.sql
UTF-8
1,959
3.90625
4
[ "CC0-1.0" ]
permissive
.read 0.sql .echo on select avg(point) over (order by class), class, name, point from student_grades; select count(*) filter(where 80<=point) over (order by class), class, name, point from student_grades; select count(*) filter(where 80<=point) over (partition by class order by point desc), c...
true
5c1a52e19a595044054079cc86f9c4cc00c8be00
SQL
benny-medflyt/pg-query-parser
/test/fixtures/simple.sql
UTF-8
715
2.828125
3
[]
permissive
SELECT * FROM table_name WHERE name = 'test' AND num > 7 AND last_name LIKE '%''test''%'; SELECT * FROM table_name WHERE name = 'test' AND num > 7 AND last_name NOT LIKE '%''test''%'; SELECT * FROM table_name WHERE name = 'test' AND num > 7 AND last_name ILIKE '%''test''%'; SELECT * FROM ...
true
1482673f42bc491ac2813ca4a1b0d7289743d7ad
SQL
sohutv/mqcloud
/mq-cloud/sql/1.6-1.7.sql
UTF-8
627
2.671875
3
[ "Apache-2.0" ]
permissive
alter table `audit_topic` add column `test_enabled` int(4) NOT NULL DEFAULT '0' COMMENT '0:非测试topic,1:测试topic'; alter table `topic` add column `info` varchar(360) DEFAULT NULL COMMENT 'topic描述'; alter table `topic` add column `delay_enabled` int(4) NOT NULL DEFAULT '0' COMMENT '0:不发送延迟消息,1:发送延迟消息。注:此字段不强制该topic的消...
true
091529b34da30f9794b9e139b900efad06e2a88f
SQL
alextanhongpin/go-chat
/migrations/20181127214904_create_table_room.sql
UTF-8
556
3.34375
3
[]
no_license
-- +goose Up -- SQL in this section is executed when the migration is applied. CREATE TABLE IF NOT EXISTS room ( id int AUTO_INCREMENT, name varchar(255), created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_...
true
b6594586f274526c3a82039ee3a142b8fdb703d5
SQL
sarthak-sarbahi/IPL_data_analysis_SQL
/percent_toss_win_function.sql
UTF-8
375
3.75
4
[]
no_license
-- Function to determine percentage of matches won where team winning toss wins the match CREATE FUNCTION PercentTossWin (@season_year INT) RETURNS NUMERIC AS BEGIN RETURN ( SELECT ROUND(((CAST((SELECT COUNT(*) FROM matches WHERE toss_winner=winner AND season=@season_year) AS FLOAT)/CAST((SELECT COUNT(*) FROM match...
true
1df238daa980ee0dadb214e7809a6b9b26e716b9
SQL
LeonisX/language-assistant
/src/main/resources/db/changelog/1.0/gse/structure.sql
UTF-8
609
2.796875
3
[]
no_license
--liquibase formatted sql --changeset leonis:gse:1.0.2 CREATE TABLE Bank.Raws ( Id BIGINT IDENTITY PRIMARY KEY, Raw TEXT NOT NULL ); -- trim sizes if need, add null restrictions --changeset leonis:gse:1.0.3 CREATE TABLE Bank.ParsedRawData ( itemId NVARCHAR(255) PRIMARY KEY, expression NVARCHAR(136)...
true
1fba2834cbc5c52ea7c98bb30cc07fdc882c437d
SQL
ahmmedrasel-dev/Kufa
/rasel.sql/rasel_table_education.sql
UTF-8
669
3.15625
3
[]
no_license
-- -------------------------------------------------------- -- -- Table structure for table `education` -- CREATE TABLE `education` ( `id` int(10) UNSIGNED NOT NULL, `year` int(11) DEFAULT NULL, `subject` varchar(255) DEFAULT NULL, `status` int(11) DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dum...
true
349c406b466f20221165337bd6ff571204c2c9e6
SQL
guyverrtsb/Projects
/tools/com.guyverdesigns.database/Project Seemeu (4064280)/Seemeu/INITIALIZE.sql
UTF-8
12,362
3.4375
3
[]
no_license
-- SeeMeU Application-- ********************************************************************************************************************************************** -- Entity Type Configuration USE `seemeuapplication`; DELETE FROM `configurations` WHERE `lid` > 0; INSERT INTO `configurations` (`uid`,`createddt`,`chan...
true
d09cf443c55aa8209d992ca2a85af4f37485c920
SQL
rodrigo-mendes/various-demos
/bidirectional-integration-oracle-kafka/scripts/oracle/order-processing/ords/ords-order-orderdetail.sql
UTF-8
4,182
3.21875
3
[]
no_license
-- Generated by Oracle SQL Developer REST Data Services 18.3.0.277.2354 -- Exported REST Definitions from ORDS Schema Version 19.1.1.r1081514 -- Schema: ORDER_PROCESSING Date: Sun Sep 29 18:35:41 PDT 2019 -- BEGIN ORDS.ENABLE_SCHEMA( p_enabled => TRUE, p_schema => 'ORDER_...
true
f2895531994de0601cd0355c2bad7264819ac38e
SQL
maxposher/code_backup
/DB Query/The_Buyer_Quality.sql
UTF-8
3,415
4.15625
4
[]
no_license
SELECT max(FP) FROM( SELECT R."a|id" AS user_id, SUM(CASE WHEN (R."v" = 'f' and R."do|t" = 'u') THEN 1 ELSE 0 END) AS FP FROM raw_events."all" AS R WHERE DATE(R."at") = '2016-03-14' AND R."v" = 'f' GROUP BY 1 ORDER BY 1) WHERE FP >= 191 ...
true
7317d870aa8a7413790fdde94eb9074cd54ecb49
SQL
LuanEdCosta/UriOnlineJudgeSQL
/src/Problem2617.sql
UTF-8
196
3.203125
3
[ "MIT" ]
permissive
/* https://www.urionlinejudge.com.br/judge/pt/problems/view/2617 */ SELECT B.NAME, A.NAME FROM PROVIDERS AS A INNER JOIN PRODUCTS AS B ON (A.ID = B.ID_PROVIDERS) WHERE A.NAME = 'Ajax SA';
true
9c544feb101eb5dc5d1ccd55b767efd731cece12
SQL
streaker0/elmasri_navathe_data
/elmasri_navathe_data.sql
UTF-8
3,898
3.625
4
[]
no_license
PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; DROP TABLE IF EXISTS EMPLOYEE; DROP TABLE IF EXISTS DEPARTMENT; DROP TABLE IF EXISTS DEPT_LOCATIONS; DROP TABLE IF EXISTS PROJECT; DROP TABLE IF EXISTS WORKS_ON; DROP TABLE IF EXISTS DEPENDENT; CREATE TABLE EMPLOYEE ( Fname TEXT NOT NULL, Minit TEXT, L...
true
8ee3f2b63eb576cf8ea2711c809eacf087dd20a4
SQL
un-knower/migu
/src/main/scala/cn/ac/iie/scripts/create_table.sql
UTF-8
8,872
2.875
3
[]
no_license
drop database IF EXISTS ifp_source cascade; CREATE DATABASE IF NOT EXISTS ifp_source COMMENT 'ifp_source DATABASE v1.0' WITH DBPROPERTIES ('creator'='Beijing Neteast Technologies Co.Ltd','createTime'='2018-01-17'); --______________________________________________________________zhgm --drop table if exists ifp_source....
true
a68dfe6255a9680a5c81869e0aa1bf06943ad952
SQL
lamozavrik/bin
/yii2.sql
UTF-8
2,126
2.703125
3
[ "BSD-3-Clause" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Ноя 09 2015 г., 00:22 -- Версия сервера: 5.5.43-0ubuntu0.14.04.1 -- Версия PHP: 5.5.9-1ubuntu4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
true
d45d4ee09533abcb155134ea1fe7751dabf2f213
SQL
maarojasga/BD
/example_trigger_misma_table.sql
UTF-8
447
3.65625
4
[]
no_license
CREATE TABLE Student ( id int, materia1 int, materia2 int, materia3 int, total INT NULL ); CREATE TRIGGER aasasa ON Student FOR INSERT AS BEGIN UPDATE Student SET total=materia1+materia2+materia3 WHERE (UPDATE(materia1) OR UPDATE(materia2)) AND id IN (SELECT ins.id FROM inserted AS in...
true
afe7e3917a563a655d8b2722df89632d56c47507
SQL
insteps/nbreader
/config/sql/loc.sqlite.sql
UTF-8
1,834
3.375
3
[ "BSD-2-Clause" ]
permissive
BEGIN TRANSACTION; DROP TABLE IF EXISTS `rss_feed`; DROP TABLE IF EXISTS `rss_item`; DROP TABLE IF EXISTS `google_replay`; DROP TABLE IF EXISTS `metadata`; CREATE TABLE `rss_feed` ( `rssurl` VARCHAR(1024) PRIMARY KEY NOT NULL , `url` VARCHAR(1024) NOT NULL , `title` VARCHAR(1024) NOT NULL...
true
1b1aa9cb862a8f80d6eb3c36fd47521310af85fe
SQL
ed9711/CSC343-Database
/A2/q1.sql
UTF-8
1,697
4.03125
4
[]
no_license
-- VoteRange SET SEARCH_PATH TO parlgov; drop table if exists q1 cascade; -- You must not change this table definition. create table q1( year INT, countryName VARCHAR(50), voteRange VARCHAR(20), partyName VARCHAR(100) ); -- You may find it convenient to do this for each of the views -- that define your intermediat...
true
7b8257e9e18e8ebda5d6fabb48b1f121f792bb83
SQL
danda-ecological-monitoring/Data-Cleaning
/find_recent.sql
UTF-8
1,475
4.1875
4
[]
no_license
# Creates a procedure that creates an up to date "Recent Entries" table #this can be called to see when new data needs to be pulled from #the reccomended table is the oldest of the "new" data among the channels #given in database time zone #reccommend going back at least 24 hours earlier to download data, to account #...
true
9dbf53a2ec6f3bd302d25fde92fff1f37f21469b
SQL
jasethomson/mealplanner
/database/MealPlan (6).sql
UTF-8
59,948
2.78125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Oct 11, 2019 at 04:55 PM -- Server version: 5.7.26-0ubuntu0.18.04.1 -- PHP Version: 7.2.19-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
676565644fd93ff377eb9f289b27328db318007b
SQL
joseDev29/sql-scripts-bases-datos-1
/PROYECTO_FINAL_CONSULTA.sql
UTF-8
538
3.28125
3
[]
no_license
--FORMA 1 select pr.actor, pr.rol,pr.tit_pel, pr.ano_pel, COUNT(DISTINCT f.frases ) FROM Protagonistas pr, Frases f WHERE pr.tit_pel = f.titulo AND pr.ano_pel = f.ano GROUP BY pr.actor, pr.rol, pr.tit_pel, pr.ano_pel; --FORMA 2 select pr.actor, pr.rol,pr.tit_pel, ...
true
43489507c18e24b6790628b778718e3dc5a2a994
SQL
naoyaohzawa/dev21_kadai7_08_naoyaohzawa-
/ship_list.sql
UTF-8
1,857
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- ホスト: localhost:8889 -- 生成日時: 2021 年 10 月 05 日 12:06 -- サーバのバージョン: 5.7.34 -- PHP のバージョン: 7.4.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
eebb3999e5982373805ff93ddf1143a37bfa76f7
SQL
roberGzt/tpbd2
/sql/query_division.sql
UTF-8
2,557
3.859375
4
[]
no_license
-- primero, seleccionamos todos los pares de usuarios para los cuales se cumple que -- usuario 1 < usuario 2 select distinct pqv1.usuario as usuario1, pqv2.usuario as usuario2 from pelis_que_v...
true
fba9161d9785c1b98b19f5d385c7eb198157c180
SQL
danielvasilan/ROA
/Database/Scripts/07_Packages/PKG_WEB_BODY.sql
UTF-8
33,894
2.625
3
[]
no_license
-------------------------------------------------------- -- DDL for Package Body PKG_WEB -------------------------------------------------------- CREATE OR REPLACE PACKAGE BODY "PKG_WEB" AS CURSOR C_TEST IS SELECT * FROM TABLE(Pkg_App_Secur.f_sk_app_user ()); CURSOR C_LONG IS SELECT * FROM TA...
true
12d36552ffb3d609bbb15c8ed7d713c0b771e771
SQL
KostasSot/table-reserver
/table_reserver.sql
UTF-8
8,970
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 03, 2020 at 09:58 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
a8cef5d4e2a976899fcc05c7e4d71ad59ac72a01
SQL
ReportsAdmin/LazurdeKSA
/models/Lazurde_KSA/Tables/fKPIsCurrent.sql
UTF-8
18,147
3.671875
4
[]
no_license
select ta.*, concat(format_date('%d %b %y',parse_date('%Y-%m-%d',Startdate)),' - ',format_date('%d %b %y',parse_date('%Y-%m-%d',Enddate))) Value_DateRange, concat(format_date('%d %b %y',parse_date('%Y-%m-%d',PrevX_Startdate)),' - ',format_date('%d %b %y',parse_date('%Y-%m-%d',PrevX_Enddate))) PrevValue_DateRange, co...
true
5fbb5bdb37a8372deb63fe6a9b39d2a63a842b9e
SQL
SeanShubin/condorcet-backend
/console/src/test/resources/com/seanshubin/condorcet/backend/console/regression-root-expected.sql
UTF-8
7,459
3.75
4
[ "Unlicense" ]
permissive
drop database if exists condorcet_regression_test_event_can_be_purged; drop database if exists condorcet_regression_test_state_can_be_purged; select count(*) from information_schema.schemata where schema_name = 'condorcet_regression_test_event_can_be_purged'; create database condorcet_regression_test_event_can_be_purge...
true
cd2ef868492aa7a80de165be1e9fd187c062d049
SQL
LabKey/ehrModules
/EHR_ComplianceDB/resources/queries/ehr_compliancedb/SOP Comparison.sql
UTF-8
1,034
4.0625
4
[]
no_license
/* * Copyright (c) 2012-2019 LabKey Corporation * * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 */ SELECT e.EmployeeId, e.email, group_concat(sc.SOP_ID) as SOPs, min(t1.LastRead) as FirstSOPDate, max(t1.LastRead) as LastSOPDate, count(sc.SOP_ID) as TotalSOPs, count(t1...
true
7152d4d2a263281f04e84906b7cc2f330e64e0a8
SQL
XhSz/30-java
/130-grammar/520-project-me/xh-common/bin/p21_file_table_format/3.0-mk-package/mkb_ig_mature -积分到期簿.sql
UTF-8
841
2.78125
3
[]
no_license
-- mkb_ig_mature -积分到期簿 -- mkb_ig_mature -- 1.0-base desc mkb_ig_mature ; -- 1.1-base-index show index from mkb_ig_mature ;-- -- 1.2-base-count select count(*) from mkb_ig_mature ;-- -- 1.3-base-limit select * from mkb_ig_mature limit 1; -- select * from mkb_ig_mature where rownum <101; select * from mkb_ig_...
true
9cac5110b2f400673b7f5a949cf15ce7120fc694
SQL
jframeMustaevT/innder
/innder-db/sql/migrations/_V99.99.9999__test_data.sql
UTF-8
2,886
2.625
3
[]
no_license
-- Test data. INSERT INTO user (email, password, phone, telegram_name, status, firs_name, last_name, enabled, account_non_expired, account_non_locked, credentials_non_expired) VALUES ('user1@mail.ru', 'password_hash_1', 89033140100,'@pumbatum','on', 'pumba','tumbauma',true,true,true,true), ('userq@mail.ru', 'password...
true
9051a22e37945cab0599b2199c69b5c31fef3313
SQL
ccorona70/tesimagistrale
/QUERY/UNICA/DDLScripts/ORACLE/ELEMENTI.sql
UTF-8
1,256
3.109375
3
[]
no_license
CREATE TABLE "ELEMENTI" ( "ELEM_COD" VARCHAR2(10 CHAR) NOT NULL ENABLE, "DES" VARCHAR2(1000 CHAR), "TIPO_ELEM_COD" VARCHAR2(10 CHAR) NOT NULL ENABLE, "NOTA" VARCHAR2(2000 CHAR), "CONT_COD" VARCHAR2(20 CHAR) NOT NULL ENABLE, "USR_INS_ID" VARCHAR2(20 CHAR), "DATA_INS" DATE, "USR_MOD_ID" VARCHAR2(20 CHAR...
true
35d81ff1011b81416fedd38f752975f59abaedcd
SQL
sorytech/TP8_BD
/drop_create.sql
UTF-8
2,713
3.921875
4
[]
no_license
--############################## DROP TABLE IN DATABASE ##################################### DROP TABLE LesReservations; DROP TABLE LesRepresentations; DROP TABLE LesSpectacles; --############################## CREAT TABLE IN DATABASE #################################### --############################## CREATION DE L...
true
a2643af09b220aff9aabcdf9174729e5d3b0f34b
SQL
bryanEcuador/encuesta
/app/Core/Sp/sp_recurso_calificacion_docente_habilidades.sql
UTF-8
262
2.9375
3
[ "MIT" ]
permissive
delimiter // CREATE PROCEDURE `sp_recurso_calificacion_docente_habilidades`(in fecha date) begin select count(id) as cantidad , habilidades from tb_calificacion_docente where extract(year from fecha_creacion) = fecha group by habilidades; end // delimiter //
true
8d529714a05e9c2fe47b7fda7815deeef479cbf9
SQL
Shimizuke/10_11_shimizukeiichiro
/ajax_table.sql
UTF-8
1,982
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- ホスト: 127.0.0.1 -- 生成日時: -- サーバのバージョン: 10.4.6-MariaDB -- PHP のバージョン: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
3e189e5813b41b2a8f292dbeb029e7e4ab535ed8
SQL
xxdoc/SampleVBCode
/TSQL_Scripts_2000/Stored Procedures/dbo.z_spsGetClientCoAdjusterSpecInfo.PRC
UTF-8
9,754
3.5
4
[]
no_license
SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[z_spsGetClientCoAdjusterSpecInfo]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[z_spsGetClientCoAdjusterSpecInfo] GO /*********************************************************...
true
e50d0ef9142072513c3c66d80f3d6fa5b960e74b
SQL
kammy92/atm_ncr_htdocs
/db/atm_ncr_old.sql
UTF-8
3,133
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 23, 2016 at 12:27 PM -- Server version: 10.1.9-MariaDB -- PHP Version: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
510c3048543b2490e50c4e53430e7fb1d7f241fa
SQL
ucabreragonzalez/BET_DB
/ddl/functions/f_splitString.sql
UTF-8
450
3.171875
3
[]
no_license
DELIMITER $$ DROP FUNCTION IF EXISTS fnSplitString; CREATE FUNCTION fnSplitString(in_string VARCHAR(255), in_delimiter VARCHAR(12), in_position INT) RETURNS varchar(255) DETERMINISTIC BEGIN DECLARE str_return VARCHAR(255); SET str_return = REPLACE(SUBSTRING(SUBSTRING_INDEX(in_string, in_delimiter, in_position), LE...
true
b3a99cc78263ef66422266372330a6ac904aa527
SQL
maagan/si2_bd
/procAlmacenado/proc.enfermera.sql
UTF-8
1,226
3.21875
3
[]
no_license
DELIMITER // CREATE PROCEDURE INSERT_ENFERMERA(_NOMBRE VARCHAR(25),_APELLIDOS VARCHAR(25), _CI VARCHAR(25),_EMAIL VARCHAR(100),_PASS VARCHAR(25),_DIRECCION VARCHAR(50), _FOTO VARCHAR(45),_ESPECIALIDAD VARCHAR(50) ) BEGIN DECLARE _RES CHAR ; DECLARE _ID_PERS INT; DECLARE _CI_AD VARCHAR(25); SET _CI_AD=(SELECT ...
true
4dc0432296e2607134ec42bffce0ae2cbd201e0a
SQL
aayushARM/load-balancing-java
/students.sql
UTF-8
2,659
3.171875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `students` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */; USE `students`; -- MySQL dump 10.13 Distrib 8.0.15, for Linux (x86_64) -- -- Host: localhost Database: students -- ------------------------------------------------------ -- Server version 8.0.15 /*!40101...
true
d5ca39676e3133fdbed8f2a51d5a00fbe46fd65c
SQL
radtek/abs3
/sql/mmfo/bars/Procedure/cc_komissia.sql
WINDOWS-1251
15,117
2.828125
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Procedure/CC_KOMISSIA.sql =========*** Run * PROMPT ===================================================================================== PROMPT *** Create procedure...
true
6ba1d14074e539fad826feaa8f75ca702889184b
SQL
Shiva-eb/MLProjects
/Desktop/SQL/Assignments/HW_02_cnv_rt.sql
UTF-8
486
3.71875
4
[]
no_license
Select count(distinct website_sessions.website_session_id) as sessions, count(distinct orders.order_id) as orders, count(distinct orders.order_id)/count(distinct website_sessions.website_session_id) as session_to_order_conv_rt FROM website_sessions Left join orders on website_sessions.website_session_id=orders...
true
ff7207a077b0cae5148c2abce21af24f8f5ea325
SQL
JinYuan8/wuhan_plague
/version2.0/SQL_mysql/world_detail_info.sql
UTF-8
1,523
2.9375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : yyw Source Server Type : MySQL Source Server Version : 80016 Source Host : localhost:3306 Source Schema : plague_info Target Server Type : MySQL Target Server Version : 80016 File Encoding : 65001 Date: 19/02/2020 22:5...
true
c3fbd88381675cde42ffb946f069de2eebe96557
SQL
HaThiThanhHa/VTIRailway16
/Lesson4.sql
UTF-8
19,996
4.03125
4
[]
no_license
/* SQL-ASSIGNMENT 4 */ DROP DATABASE IF EXISTS Testing_System_Assignment_4; CREATE DATABASE IF NOT EXISTS Testing_System_Assignment_4; USE Testing_System_Assignment_4; /*============================== CREATE TABLE=== =======================================*/ /*=============================================...
true
02b55c66f055ce101c8c8f125d14b5665b15a28b
SQL
BoCodarOrg/GitStormServer
/prisma/migrations/20210111170711_second/migration.sql
UTF-8
1,753
3.71875
4
[]
no_license
-- CreateTable CREATE TABLE `PullRequest` ( `id` INT NOT NULL AUTO_INCREMENT, `title` VARCHAR(191) NOT NULL, `description` VARCHAR(191), `origin` VARCHAR(191) NOT NULL, `destination` VARCHAR(191) NOT NULL, `status` INT NOT NULL, `index` INT NOT NULL DEFAULT 0, `hash` VARCHAR(191) NOT NUL...
true
5ec039715250826ef7ec6567f18b5ea2ae8a6171
SQL
clapmyhands/cz4031-Postgresql_Query_Analysis
/sql/fix_author.sql
UTF-8
811
4.34375
4
[]
no_license
-- Query to delete duplicates in author and then update the authored table -- Copy author table but without duplicates. Use the author_id with the smallest number. WITH result AS ( SELECT *, ROW_NUMBER() OVER (PARTITION BY author_name ORDER BY author_id) AS row FROM author ) SELECT author_id, author_name INTO ...
true
6e420ac02960eb60b32ece0f783568a85b6fe3cd
SQL
putrapuices/latihan-ci-4
/database.sql
UTF-8
3,280
3.359375
3
[ "MIT" ]
permissive
/* SQLyog Enterprise v12.5.1 (64 bit) MySQL - 8.0.20 : Database - dblatihandatatable ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHEC...
true
4f0a75a912bacf323a62146249d1628717bddfa5
SQL
jaleon1/Tropical
/ATV/bd/medio_pago.sql
UTF-8
853
2.828125
3
[]
no_license
# # TABLE STRUCTURE FOR: medio_pago # DROP TABLE IF EXISTS `medio_pago`; CREATE TABLE `medio_pago` ( `id` int(11) NOT NULL AUTO_INCREMENT, `codigo` varchar(2) DEFAULT NULL, `medioPago` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1; INSERT INTO `medio_pag...
true
2e23eeb1d11b58254e57036018965aec2849fbad
SQL
ybhsos/spring-boot-doma2-sample-hangul
/sample-domain/src/main/resources/db/migration/R__1_create_tables.sql
UTF-8
12,963
3.640625
4
[ "Apache-2.0" ]
permissive
CREATE TABLE IF NOT EXISTS persistent_logins( username VARCHAR(64) NOT NULL COMMENT '로그인ID' , ip_address VARCHAR(64) NOT NULL COMMENT 'IP주소' , user_agent VARCHAR(200) NOT NULL COMMENT 'UserAgent' , series VARCHAR(64) COMMENT '직렬토큰' , token VARCHAR(64) NOT NULL COMMENT '토큰' , last_used DATETIME NOT NULL COMM...
true
3cc1e08bc7159f4004e642eedb10e892b6c03fa6
SQL
rohitjoshiucla/Sql-Puzzles
/31. Buying All Products/sol.sql
UTF-8
1,243
4.03125
4
[]
no_license
create database if not exists sqlpuzzle; use sqlpuzzle; drop table if exists customers; create table customers (customer_id integer not null primary key, acct_balance decimal (12, 2) not null ); drop table if exists orders; create table orders (customer_id integer not null, order_id integer not null prima...
true
297e6807ae9183f06b140c370e6172e33abbf88d
SQL
eldrad294/ICS5111_Practical_Assignment
/src/db/query/force_graph.sql
UTF-8
1,796
3.359375
3
[]
no_license
#Nodes # (select concat( '{"name": "',b.name,'" ,', '"id": "',b.id,'" ,', '"rvCnt": ',b.review_count,' ,', '"type": "','green','"}' ) from yelp_db.review r join yelp_db.business b on r.business_id = b.id join yelp_db.user u on r.user_id = u.id join yelp_db.category c on b.id = c.business_id...
true
1250c1f69ff05c712b16360d13cdc67cce3d6f26
SQL
rodrigolousada/LEIC-IST
/3rd_Year/BD/Entrega4/cube.sql
UTF-8
927
2.953125
3
[ "MIT" ]
permissive
SELECT dia, mes, espaco, posto, avg_montante_pago FROM (SELECT dia, mes, espaco, posto, AVG(montante_pago) AS avg_montante_pago FROM reserva_fact NATURAL JOIN data_dimension NATURAL JOIN localizacao_dimension GROUP BY dia, mes, espaco, posto WITH ROLLUP UNION SELECT dia, mes, espaco, posto, AVG(montante_pago) A...
true
e9d4a092236ef8e73a9027eac6c71850a223ce36
SQL
dmullins78/leugeme
/resources/sql/queries.sql
UTF-8
2,270
4.09375
4
[]
no_license
-- name: employee-unshare-job! -- Allows an employee to unshare an employers job DELETE FROM employee_jobs where employee_id = :employeeid and job_id = :jobid -- name: employee-share-job! -- Allows an employee to share an employers job INSERT INTO employee_jobs (employee_id, job_id) VALUES (:employeeid, :jobid) -- na...
true
9d5516bdf2334167daeaa8991984dd5f58ca4c10
SQL
HilalSener/CSharp-Example
/WindowsFormApplications/SqlScripts/ViewQuery.sql
UTF-8
1,477
3.390625
3
[]
no_license
-- View Dosyaları -- Sadece sorgulardan oluşan sanal dosyalardır. -- Normalleştirme onucu oluşan çok sayıda tablodan istenilen kolonların çekilmesiyle hazırlanacak sorular bir view dosyası olarak kayıt edilir. İstenildiğinde bu dosya çağrılır. -- Bu dosyalara hesaplanmış kolonlar ilave edilir. -- Yetki sınırlaması...
true
962fc0df9a385999e3d97fa080dab90582c6dc21
SQL
joslecar/ProyectoDS
/DSSchema.sql
UTF-8
7,368
3.34375
3
[]
no_license
#create database DSdatabase; use DSdatabase; #select * from Empleado; create table if not exists Producto(IDProducto varchar(10) PRIMARY KEY, Categoria varchar(20), Nombre varchar(50), Descripcion varchar(300), Stock int, FechaIngreso DateTime, ...
true
596f05fb771c51af4d26c849c136c50f521dd1a0
SQL
oscarwei168/OscarSpringBoot
/src/main/resources/schema.sql
UTF-8
251
2.578125
3
[]
no_license
DROP TABLE IF EXISTS `book`; CREATE TABLE `book` ( `book_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `author` varchar(255) DEFAULT NULL, PRIMARY KEY (`book_id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
true
ce6e67163060ba810bb3ad20fa2e637783ec05da
SQL
ducthang310/Zend-Bag
/database/upgrade-1.1.0-1.2.0.sql
UTF-8
1,973
2.953125
3
[]
no_license
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!400...
true
f0a31ba439a86d7ed5617f5cd4cc0fa8894ce582
SQL
Mishrule/hms
/database/bestsuitdatabase.sql
UTF-8
7,679
2.765625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 11, 2018 at 09:30 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
b5e8065c6d09d9eaae94a823fd554878d875dec5
SQL
sebalss/mysql-dasar
/orders.sql
UTF-8
2,103
4.34375
4
[]
no_license
-- Many To Many Relationship -- create table orders ( id INT NOT NULL AUTO_INCREMENT, total INT NOT NULL, order_date DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id) )ENG...
true
ca3ef5965fa74aa8b28c58c66ba5f0256607bd5f
SQL
GauravShinde-22/DataBase
/Assinement3.sql
UTF-8
1,451
3.90625
4
[]
no_license
use myuser; show databases; show tables from myuser; drop table employee; create table Employee1( empid int (2) Auto_increment primary key, emp_name varchar(10), dept_id int(1), salary int(4), manager int(1), #Constraint fk_Titles foreign key(dept_id) references Department1(dept_id) ); select * from Department1; selec...
true
b496a1082a602b12e5ba72a9ccab7a44d238a4a0
SQL
JaloDeng/springboottest
/src/main/resources/sql/test.sql
UTF-8
1,137
3.109375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : Localhost MYSQL 8.0 Source Server Type : MySQL Source Server Version : 80015 Source Host : localhost:3306 Source Schema : test Target Server Type : MySQL Target Server Version : 80015 File Encoding : 65001 Date: 19/03/...
true
066d29bb6890d7e5bc2adcdf1a3a4e4a6cbbb25b
SQL
ms3kbtest/camelpd-api
/src/main/resources/sql/users/get-email-unique.sql
UTF-8
115
2.6875
3
[]
no_license
SELECT count(email) FROM users_table WHERE email = COALESCE (:#${exchangeProperty.email}, null) AND id != :#userId;
true
a3dc3a7b420afaaf90e9152988f43a950ead4fe9
SQL
phenomiks/spring-market
/src/main/resources/db/migration/V2__init.sql
UTF-8
1,752
3.125
3
[ "MIT" ]
permissive
BEGIN TRANSACTION; INSERT INTO users (username, password, email) VALUES -- admin ('admin', '$2y$12$rBtn1bbKhTB/DDe6hlBjVuLy9uDwSpfjIVCJ362N//LZI1ez9ebD2', 'admin@gmail.com'), -- manager ('manager', '$2y$12$9gRCV9aagJOH3GFQffosVON5Ou5gaxnxOnXLlj7w8AmY3OUECtZ.y', 'manager@gmail.com'), -- user ('u...
true
06394e8e0ab9ee0a62aeb33a0fb8ad7981d43539
SQL
thewowloco/Cafe_Management
/MySQL/qlcafe_ban.sql
UTF-8
2,576
2.9375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `qlcafe` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `qlcafe`; -- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: qlcafe -- ------------------------------------------------------ -- Se...
true
c1a9d56017bf7b86a43f8c854453c884195f9403
SQL
goldwinfana/findasaloon
/saloondb.sql
UTF-8
8,759
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 29, 2021 at 12:17 PM -- Server version: 10.4.16-MariaDB -- PHP Version: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
d6ba8df0122849d9b76485ce823162ec3c785f44
SQL
0175077/CodeTest
/SQLZOO/JOIN.sql
UTF-8
2,856
4.84375
5
[]
no_license
#1 #Modify it to show the matchid and player name for all goals scored by Germany. To identify German players, check for: teamid = 'GER' select matchid, player from goal where teamid = 'ger' #2 #Show id, stadium, team1, team2 for just game 1012 select id,stadium,team1,team2 from game where id = '1012' #3 #Modify ...
true
c7385ebf88c5b30ce469ef3563cc0ad525c7a49a
SQL
ddboline/calendar_app_rust
/migrations/V01__calendar_cache.sql
UTF-8
480
2.734375
3
[ "MIT" ]
permissive
-- Your SQL goes here CREATE TABLE calendar_cache ( event_id TEXT UNIQUE NOT NULL PRIMARY KEY, gcal_id TEXT NOT NULL, event_start_time TIMESTAMP WITH TIME ZONE NOT NULL, event_end_time TIMESTAMP WITH TIME ZONE NOT NULL, event_url TEXT, event_name TEXT NOT NULL, event_description TEXT, ev...
true
c4229266c6bf6e76d551eee6fce775e2b9d52501
SQL
bravesoftdz/sgts
/sql/oracle/install/138_create_procedure_r_hmz_journals.sql
WINDOWS-1251
1,738
2.71875
3
[]
no_license
/* . 1 */ CREATE OR REPLACE PROCEDURE R_HMZ_JOURNALS_1 AS BEGIN DBMS_REFRESH.REFRESH('S_HMZ_JOURNAL_FIELDS_O1'); DBMS_REFRESH.REFRESH('S_HMZ_JOURNAL_OBSERVATIONS_O1'); END; -- /* . 2 */ CREATE OR REPLACE PROCEDURE R_HMZ_JOURNALS_2 AS BEGIN DBMS_REFRESH.REFRESH('S_HMZ_JOURNAL_FIELDS_O2'); DBMS_RE...
true
c935e58a5f4dd1c84a741437cda3146aa4334c71
SQL
rgreinho/atd-vz-data
/atd-vzd/views/view_location_injry_count_cost_summary-schema.sql
UTF-8
1,946
3.15625
3
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
-- -- PostgreSQL database dump -- -- Dumped from database version 10.6 -- Dumped by pg_dump version 10.10 -- Started on 2019-10-15 14:00:58 CDT 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_c...
true
bf764c4d1974bcbe94cd9fe4caf527488753b3a2
SQL
benedictkennard/SPS
/MSDA Bridge/SQL/SQL_Bridge_HW5.sql
UTF-8
3,813
4.15625
4
[]
no_license
CREATE SCHEMA `BuildingEnergy`; USE `BuildingEnergy`; DROP TABLE IF EXISTS EnergyCategories; DROP TABLE IF EXISTS EnergyTypes; DROP TABLE IF EXISTS Buildings; DROP TABLE IF EXISTS BuildingsEnergyTypes; CREATE TABLE EnergyCategories ( Category_ID INT PRIMARY KEY, Category VARCHAR(30) NOT NULL ); INSERT INTO Ener...
true
114aa791fb85882c1294beda329878eaa6efe582
SQL
mohamed-azzouz/autocompletion
/autocompletion.sql
UTF-8
4,460
2.671875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : mar. 17 nov. 2020 à 17:30 -- Version du serveur : 8.0.21 -- Version de PHP : 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
e096e925a9e15d71e83533020787b68467996ce7
SQL
isadoraafraga/adventure_works
/target/compiled/dw_adventure_works/models/marts/fact_order_details.sql
UTF-8
4,328
3.46875
3
[]
no_license
with customer as ( select * from `desafio-indicium`.`dw_adventure_works`.`dim_customer` ) , creditcard as ( select * from `desafio-indicium`.`dw_adventure_works`.`dim_creditcard` ) , product as ( select * from `desafio-indicium`.`dw_adventur...
true
f0313bde35b4816ea04c142ce9e81d3773930fdc
SQL
ToddSpainhour/SQL-Class
/course-work/book-2.sql
UTF-8
12,392
4.375
4
[]
no_license
-- Book 2 - Basic Query -- practice question: Write a query that returns the business name, city, state, and website for each dealership. Use an alias for the Dealerships table. select d.business_name, d.city, d.state, d.website from dealerships d -- practice question: Write a query that returns the...
true
26564c5ea62ab4eeb028542d29fabe80a84c9a9c
SQL
IT1228/postgresql-database
/todo.sql
UTF-8
1,075
3.265625
3
[]
no_license
CREATE TABLE todos (id SERIAL PRIMARY KEY, title VARCHAR(255) NOT NULL, details VARCHAR(2048), priority INT NOT NULL DEFAULT (1), created_at TIMESTAMP NOT NULL, completed_at TIMESTAMP); INSERT INTO todos (title, details, priority, created_at, completed_at) VALUES ('Tapes', 'Return some video tapes', 1, '2017-10-12 1...
true