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
2af4447e0a2efbfa21482b5883f5ca1cfc08b84b
SQL
watertao/veigar-simple-authority
/ddl.sql
UTF-8
4,928
3.171875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64) -- -- ------------------------------------------------------ -- Server version 5.6.37 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION...
true
81ae6fa29a616c25d9dceba20fe59176ebc64d6a
SQL
elyaell/Gestion-de-Bibliotheques-Parisiennes
/stats/statistiques_mois_emprunts.sql
UTF-8
766
3.84375
4
[]
no_license
\echo 'Statistiques d\'emprunts sur le dernier mois pour chaque bibliotheque' SELECT t1.*, t2.nb_emprunt as emprunts_total, ((t1.nb_emprunt_sur_un_mois * 100) / t2.nb_emprunt) as pourcent FROM (SELECT nom_bibliotheque, count(id_emprunt) as nb_emprunt_sur_un_mois FROM emprunt NATURAL JOIN bibliotheque WHERE biblio...
true
1b9d633dd06be3af65de7c2c5e22b083cac4dac7
SQL
spacewalkproject/spacewalkproject.github.io
/documentation/schema-doc/db-schema/sql_sources/table/rhnactivationkey.sql
UTF-8
964
3.234375
3
[]
no_license
-- created by Oraschemadoc Wed Jan 9 15:06:54 2019 -- visit http://www.yarpen.cz/oraschemadoc/ for more info CREATE TABLE "SPACEUSER"."RHNACTIVATIONKEY" ( "TOKEN" VARCHAR2(48) NOT NULL ENABLE, "REG_TOKEN_ID" NUMBER NOT NULL ENABLE, "KS_SESSION_ID" NUMBER, "CREATED" TIMESTAMP (6) WITH LOCAL TIME ZONE DEFAULT (...
true
792015054b3f36ef1f7cddf93fdc009e67825cbd
SQL
biekaeksa/Tugas-ADSI
/Kemiskinan/database/kemiskinan.sql
UTF-8
1,275
3.234375
3
[]
no_license
DROP DATABASE kemiskinan; CREATE DATABASE kemiskinan; USE kemiskinan; CREATE TABLE IF NOT EXISTS level ( id_level int AUTO_INCREMENT PRIMARY KEY, nama_level varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSERT INTO level (nama_level) VALUES ('admin'), ('petugas'); /*ADMIN*/ CREATE TABLE IF NOT E...
true
14b6baf1ed46d9471b1d78e82baba83ac2532234
SQL
alesveselka/Q
/data/daily_price.sql
UTF-8
610
3.15625
3
[]
no_license
DROP TABLE IF EXISTS daily_price; CREATE TABLE `daily_price` ( `id` int NOT NULL AUTO_INCREMENT, `data_vendor_id` int NOT NULL, `symbol_id` int NOT NULL, `price_date` datetime NOT NULL, `created_date` datetime NOT NULL, `last_updated_date` datetime NOT NULL, `open_price` decimal(19,4) NULL, `high_price` decimal(19,4) ...
true
07a20be8e1c2dd92a323eb95b0f8c254ed64c5aa
SQL
sistema-mediaris/mediaris
/database/generated_tools/insert/estados.sql
UTF-8
1,607
2.515625
3
[ "MIT" ]
permissive
-- POPULANDO estados SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -------------------------------------------------------- -- -- Dumping data for table `estados` -- INSERT INTO `estados` VALUES(1, 'Acre', 'AC'); INSERT INTO `estados` VALUES(2, 'Alagoas', 'AL'); INSERT INTO `estados` VALUES(3, 'Amazonas', 'AM'); INSERT I...
true
94ff24d6ab1eddf20fc6bbbd5c970cb9ac2da07c
SQL
Ares7/2013-JUL-Module-7
/DWSO/Req.ChainOfRestaurants (Anton Tserakahu)/u_dw_cls_stage/Tables/cls_restaurants.sql
UTF-8
823
2.5625
3
[]
no_license
DROP TABLE u_dw_cls_stage.cls_restaurants; --============================================================== -- Table: cls_restaurants --============================================================== CREATE TABLE u_dw_cls_stage.cls_restaurants ( restaurant_code NUMBER ( 10 ) , restaurant_name VARCHAR2 ( 150 ) , ...
true
558ba06c2771579011c3393c622cc25011b9f5cf
SQL
LEEANQIAN/leetcode-practice-SQL
/# 1084. Sales analysis III (EASY).sql
UTF-8
550
4.25
4
[]
no_license
# 1084. Sales analysis III (EASY) SELECT DISTINCT Product.product_id, product_name FROM Sales LEFT JOIN Product ON Sales.product_id = Product.product_id WHERE Product.product_id IN (SELECT Product.product_id FROM Sales LEFT JOIN Product ON Sales.product_id = Product.product_id WHERE sale_date BETWEEN '2019-01-01' AND ...
true
d39ef6fa68e00c874555a445fbca32b66be40437
SQL
semma19989/month9-onlineshop
/src/main/resources/db/migration/V1004__add_categories_and_products.sql
UTF-8
1,245
2.6875
3
[]
no_license
use `online_shop`; INSERT INTO categories (`name`, `image`) VALUES ('Phone', 'phone-logo.png') , ('TV', 'tv-logo.png'); INSERT INTO products (`name`, `image`, `price`, `brand_id`, `category_id`, `qty`) VALUES ('Galaxy s10','galaxy-image.png', 600, (SELECT id FROM brands where name='samsung'), ...
true
ccdc78704b72abe2214d644b2737dd70be49f07b
SQL
ikhsanhmr/sk3
/db_sk3.sql
UTF-8
75,537
3
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 02, 2021 at 05:33 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
5df27705c792409d206b9632b304c26515de8cee
SQL
tunglevis/playenglish
/protected/modules/api/extensions/HttpApiLog/http_api_log.sql
UTF-8
1,045
3.046875
3
[]
no_license
CREATE TABLE `http_api_log` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `http_username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `request_method` varchar(16) COLLATE utf8_unicode_ci NOT NULL, `request_url` text COLLATE utf8_unicode_ci NOT NULL, `response_code` int(11) NOT NULL DEFAULT '200', ...
true
c517e3e564884669ddc74756091fca7c5acf0f9f
SQL
ChenHuang13/DataBase
/database/sql (另一个复件)/w.sql
UTF-8
427
2.984375
3
[]
no_license
CREATE DATABASE orderDB; USE orderDB; CREATE TABLE publisher ( id int(10) NOT NULL, name varchar(100) NOT NULL, nation varchar(3), PRIMARY KEY (id) ); INSERT INTO publisher VALUES (1, '0', '0'); INSERT INTO publisher VALUES (2, '0', '0'); INSERT INTO publisher VALUES (3, '0', '0'); INSERT INTO publisher VAL...
true
4a7a92d78b399d9841c7f62b903e9fced04c835f
SQL
thinkind/LeetCode-MySQL
/512.Game Play Analysis II(SelectGroup).sql
UTF-8
1,380
4.21875
4
[]
no_license
-- Write your MySQL query statement below -- 512.Game Play Analysis II(SelectGroup).sql /* Table: Activity | player_id | int | | device_id | int | | event_date | date | | games_played | int | Write a SQL query that reports the device that is first logged in for each player. */ SELECT player_id,...
true
15624ace0046d00379482ce08b3c1342d1fe0f48
SQL
bellmit/origin
/family_order/sql/TD_O_WHITEUSER_SMS/sel_by_whiteuser_sms_svc_info.sql
UTF-8
3,008
3.0625
3
[]
no_license
Select Decode(T2.White_Type, '1', '黑名单', '0', '白名单') White_Type, T2.White_Serinum, T2.Eparchy_Code, T2.Join_Reason, T2.Start_Time, T2.End_Time, T2.Remark, T2.Update_Time, T2.Update_Staff, T2.Update_Depart, T2.Rsrv_Str1, T2.Rsrv_Str2...
true
4cb92d3a552f5b2fac5f1a691f52f3d8ae59ebfc
SQL
webdevelopmentdiva/employee-tracker
/employee.sql
UTF-8
1,496
3.875
4
[]
no_license
DROP DATABASE IF EXISTS employee_trackerDB; CREATE database employee_trackerDB; USE employee_trackerDB; CREATE TABLE department( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(30) NULL, PRIMARY KEY(id) ); CREATE TABLE role( id INT NOT NULL AUTO_INCREMENT, title VARCHAR(30) NULL, salary DECIMAL(...
true
c7b683d605a07814dc9190ebf209e3aed3fe72a4
SQL
jdavidhermoso/quidditch-teams-browser
/quidditchBrowser.sql
UTF-8
2,661
3.046875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 01-03-2017 a las 10:19:46 -- Versión del servidor: 10.1.13-MariaDB -- Versión de PHP: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
true
29e7c9e51dc6c7efdda65b6a26404ce878617804
SQL
victorvila92/thinko-backend
/src/main/resources/db/1_create_tables.sql
UTF-8
1,359
3.84375
4
[]
no_license
create table organization ( id serial not null constraint organization_pkey primary key, name varchar(255) not null, status varchar(20) not null default 'ACTIVE', language varchar not null default 'ENG', created_at timestamp not null default CURRENT_DATE );...
true
4fbdb901e10e2b265c5d943c77a27bc255432b42
SQL
kieranhogan13/SQL
/Labs/Lab 2/lab2.sql
UTF-8
14,450
3.1875
3
[ "MIT" ]
permissive
drop table Apps_NOT_Normalized; Create Table Apps_NOT_Normalized( App_No integer, StudentID integer, StudentName varchar(50), Street varchar(100), State varchar(30), ZipCode varchar(7), App_Year integer, ReferenceName varchar(100), RefInstitution varchar(100), ReferenceStatement varchar(500), Pri...
true
5ba5e3a08add8119cfe85a9e4abfcd4ba13204b1
SQL
AmmonBurgi/personal-project
/db/goals/get_user_goals.sql
UTF-8
124
2.578125
3
[]
no_license
select username, title from pro_user join pro_goals on pro_user.user_id = pro_goals.author_id where pro_user.user_id = $1;
true
a30728d023ff8f2ac8b38461622c86c347876d58
SQL
delphi1977/NewDicomPACS
/Database/oracle/indexes/asu.i_tstandart_code_last.sql
UTF-8
513
2.59375
3
[]
no_license
DROP INDEX ASU.I_TSTANDART_CODE_LAST / -- -- I_TSTANDART_CODE_LAST (Index) -- CREATE INDEX ASU.I_TSTANDART_CODE_LAST ON ASU.TSTANDART (SUBSTR("FC_CODE",INSTR("FC_CODE",'.',1,5)+1,LENGTH("FC_CODE"))) NOLOGGING TABLESPACE USR PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE ( INITIAL 64K ...
true
1605dea00a2301a702453d0f954801144f0c4c66
SQL
ML1104/petomatic-frontend
/petomatic.sql
UTF-8
4,914
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Aug 13, 2018 at 06:02 PM -- Server version: 5.7.19 -- PHP Version: 7.1.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
76f2df8cfbab88330505bac6cf82aab1c03b046f
SQL
engineer-man/emkc
/platform/migrations/migrations/20200918012216-award-table.sql
UTF-8
524
3.15625
3
[ "MIT" ]
permissive
up: create table awards ( award_id int unsigned not null auto_increment, type int unsigned not null, points int unsigned not null, user_id int unsigned not null, ref_type int unsigned null, ref_id int unsigned null, created_at datetime not null, primary key (award_id), key type (type...
true
f4ae0f6ee532ea3d376dcc4849c22d2434ea4894
SQL
GooseGame/proxy_tz
/importDB.sql
UTF-8
2,244
3.09375
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Thu Mar 12 06:29:16 2020 -- 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_MODE='ON...
true
c5c93fd516132a3afb994ea9e95b8a2522d4cb5e
SQL
hnahlawi/sqlQueries
/q9.sql
UTF-8
2,720
4.09375
4
[]
no_license
-- Inseparable SET SEARCH_PATH TO markus; DROP TABLE IF EXISTS q9; -- You must not change this table definition. CREATE TABLE q9 ( student1 varchar(25), student2 varchar(25) ); -- You may find it convenient to do this for each of the views -- that define your intermediate steps. (But give them better names!) DROP...
true
d30c6507a57c068466e3c9b170ca5893b090f93f
SQL
visued/QueroEsse
/Projeto JAVA/QueroEsseTIC/SQL/createTables.sql
UTF-8
784
3.484375
3
[]
no_license
CREATE TABLE Usuario ( idUsuario SERIAL, nome VARCHAR(100) NOT NULL, sobrenome VARCHAR(100) NOT NULL, apelido VARCHAR(20) NOT NULL, senha VARCHAR(100) NOT NULL, PRIMARY KEY(idUsuario) ); CREATE TABLE Comentario ( idComentario SERIAL, comentario VARCHAR(400), PRIMARY KEY(idComentario) ); CREATE TAB...
true
e43853318ddc7de70501f303fe8d23cd280f940d
SQL
jttkinnunen/OnlineCatalog
/src/main/resources/database-layout-pgsql.sql
UTF-8
821
3.734375
4
[]
no_license
CREATE TABLE IF NOT EXISTS users ( id SERIAL PRIMARY KEY, first_name TEXT NOT NULL, last_name TEXT NOT NULL, password TEXT DEFAULT NULL, email TEXT NOT NULL UNIQUE, admin INTEGER DEFAULT 0 NOT NULL, token TEXT UNIQUE, reset_token TEXT UNIQUE ); CREATE TABLE IF NOT EXISTS articles ( id SERIAL PRIMARY ...
true
3e5485cb12a8c89af5792e37d6639a18f8fbe558
SQL
IsabelleDamacena/ProjetoInterdisciplinar-Sistema_Pedidos
/aula_php_Isa/aula_php_BD.sql
UTF-8
4,537
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 23-Set-2020 às 00:58 -- Versão do servidor: 10.4.11-MariaDB -- versão do PHP: 7.2.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
true
1801da2918f6dcea1b6c1271686e83640e2b9302
SQL
shayneptorres/SER322_my_music_library
/sql/create_songs_table.sql
UTF-8
279
3.578125
4
[]
no_license
CREATE TABLE IF NOT EXISTS songs ( song_id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255), release_date DATE, artist_id INT, album_id INT, FOREIGN KEY (artist_id) REFERENCES artists(artist_id), FOREIGN KEY (album_id) REFERENCES albums(album_id) );
true
39516afc9b0543317559b2eb677fdce40bbedf8c
SQL
badly-drawn-wizards/FancyShader
/FancyShaderServer/fancyshaderdb.sql
UTF-8
2,160
3.625
4
[]
no_license
create table shader_demo ( id int not null generated always as identity, title varchar(50) not null unique, creator int not null, date_created date not null, code varchar(20000) not null, availability int not null ); alter table shader_demo add constraint shader_demo_pk primary key (id); create...
true
2ca001eaeaccc28c3778baa4f5da35d3e623ae03
SQL
bannerchi/node-esb
/sql/node-esb.sql
UTF-8
1,199
3.390625
3
[]
no_license
-- -- database: `node-esb` -- -- -------------------------------------------------------- -- -- table `listeners` -- CREATE TABLE IF NOT EXISTS `listeners` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, `exchange` varchar(50) NOT NULL, `queue` varchar(50) NOT NULL, `options` varchar(5...
true
24941b6a60ed2f39bc67a1b203d42ae232416f59
SQL
gladiopeace/digital-data-syn
/documents/oms/TB_BATBG.sql
GB18030
8,267
3.09375
3
[]
no_license
/* ================================================================================ ṹ:TB_BATBG ṹ:ܱ-׼1 ṹĿ: ================================================================================ */ drop sequence SEQ_TB_BATBG; drop index AK_TB_BATBG; drop table TB_BATBG; ...
true
5b1e2450e9ab816ad80349eb91fdae99587e4db4
SQL
DanielJechev/SoftUni
/MySQL/Data Aggregation - Exercise/Average Interest.sql
UTF-8
261
3.140625
3
[]
no_license
SELECT e.deposit_group, e.is_deposit_expired, AVG(e.deposit_interest) AS `average_interest` FROM wizzard_deposits AS e WHERE deposit_start_date > '1985-01-01' GROUP BY e.is_deposit_expired , e.deposit_group ORDER BY e.deposit_group DESC , e.is_deposit_expired;
true
1722b08d84a80ed654ee26932cbf6dbb043cc214
SQL
aemontero7/mastering-postgres-review
/data-types/postgresql-data-types/time-diff.sql
UTF-8
307
3.25
3
[]
no_license
with t as ( select project, percentile_cont(array[0.5, 0.9, 0.95, 0.99]) within group (order by cts-ats) as pers from commitlog where ats <> cts group by project ) select project, pers[1] as median, pers[2] as "90%th", pers[3] as "95%th", pers[4] as "99%th" from t ;
true
ec2010ab9bffe58ec1fd03a9e156e85dd1d13996
SQL
hristopanev/java---fundamentals
/Databases Basics - MySQL/EXAM PREPARATION/Databases MySQL Retake Exam - 03 Sept 2017/01. Table Design.sql
UTF-8
1,231
3.875
4
[]
no_license
DROP DATABAse instagraph_db; CREATE DATABASE instagraph_db; use instagraph_db; CREATE TABLE pictures( id INT PRIMARY KEY AUTO_INCREMENT, path VARCHAR(255) NOT NULL, size DECIMAL(10,2) NOT NULL ); CREATE TABLE users( id INT PRIMARY KEY AUTO_INCREMENT, username VARCHAR(30) NOT NULL UNIQUE, password VARCHAR(30) NOT N...
true
65d9392e693beb1d04541f25db5ec623373bf5f9
SQL
erda-project/erda
/cmd/monitor/streaming/conf/clickhouse/events_ddl_create_tenant_tables.sql
UTF-8
1,067
3.5
4
[ "Apache-2.0" ]
permissive
// create event table CREATE TABLE IF NOT EXISTS <database>.<table_name> ON CLUSTER '{cluster}' ( `timestamp` DateTime64(9, 'Asia/Shanghai'), `event_id` String, `content` String, `kind` LowCardinality(String), `relations` Map(String,String), `tags` Map(String,String), `relations.res_id` Str...
true
ae9bd71655851270df1b4b666fe0640444fc8ace
SQL
reaganforonda/league-manager
/db/GET_SEASON_RESULTS.sql
UTF-8
173
2.84375
3
[]
no_license
SELECT * FROM seasons JOIN fixtures on seasons.season_id=fixtures.season_id JOIN fixture_results on seasons.season_id = fixture_results.season_id WHERE seasons.league_id = 1
true
75b86b886ab92ae136e7ca784ac09fe96815e789
SQL
alexsaber89/learning-sql
/queries/21_sales_agent_customer_count.sql
UTF-8
285
4.03125
4
[]
no_license
/*Provide a query that shows the count of customers assigned to each sales agent.*/ SELECT Employee.FirstName || " " || Employee.LastName AS "Employee Name", Count(Customer.CustomerId) FROM Customer JOIN Employee ON Customer.SupportRepId == Employee.EmployeeId GROUP BY "Employee Name"
true
1efe9a7d4d74554194b07ea89f7afa3050edddc0
SQL
allanadan05/adbmsgithub
/elms(pauljNEW).sql
UTF-8
19,507
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 08, 2020 at 02:16 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
true
f9098d26d74dd838eceb315e3e274592443ba2af
SQL
sahil-777/medical-consultation-booking
/MysqlCommands.sql
UTF-8
1,156
3.640625
4
[]
no_license
CREATE DATABASE IF NOT EXISTS `onlinemedicalconsultation` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; USE `onlinemedicalconsultation`; show databases; CREATE TABLE IF NOT EXISTS `accounts`( `id` INT(11) NOT NULL AUTO_INCREMENT, `username`VARCHAR(50) NOT NULL, `email` VARCHAR(255)NOT NULL, `password` VARCHA...
true
c18b2a7a4c2687b31217c2582f4a6f21f430f401
SQL
lzyjin/oracle
/hw/210303_hw2.sql
UTF-8
5,734
3.875
4
[]
no_license
-- SQL05_DML -- 1 SELECT * FROM TB_CLASS_TYPE; INSERT INTO TB_CLASS_TYPE VALUES('01,', '전공필수'); INSERT INTO TB_CLASS_TYPE VALUES('02,', '전공선택'); INSERT INTO TB_CLASS_TYPE VALUES('03,', '교양필수'); INSERT INTO TB_CLASS_TYPE VALUES('04,', '교양선택'); INSERT INTO TB_CLASS_TYPE VALUES('05,', '논문지도'); SELECT CLASS_TYPE_NO AS ...
true
4c8fbc91804e32a8e5c19126f4b0c66b7fc75c8e
SQL
robgalicia/katsa_php
/Database/Store/sp_profesion_all.sql
UTF-8
198
2.546875
3
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS sp_profesion_all $$ CREATE PROCEDURE sp_profesion_all() begin select idprofesion, descprofesion from profesion order by descprofesion; end$$ DELIMITER ;
true
246370d872cd8e54fde8c2ea66c80e471fe1072c
SQL
Irain-LUO/sql_study
/sql_study/sql shell/15 常见的数据类型.sql
UTF-8
3,814
3.828125
4
[]
no_license
# 15 常见的数据类型 /* ### 1 常见的数据类型 数值型:整数、小数(浮点数、定点数) 字符型: 较短的文本:char、varchar 较长的文本:text、blob 日期型: */ ### 2 数据类型详细内容 #### 2.1 整数型: /* 分类:Tinyint(1个字节)、Smallint(2个字节)、Mediumint(3个字节)、Int(integer 、4个字节)、Bigint(8个字节) 特点: 1 如果不设置无符号还是有符号,默认有符号。添加unsigned设置有符号。 2 插入数值超出整数型范围,会报out of range错误。 3 如果不设置长度,有默认长...
true
461cc6d2c320c1ebdb38579a37711a265fcb6ae0
SQL
radtek/abs3
/sql/mmfo/bars/Function/s240.sql
UTF-8
1,565
2.984375
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/function/s240.sql =========*** Run *** ===== PROMPT ===================================================================================== CREATE OR REPLACE FUNCTION BA...
true
9764fde969a812828b21775e285962105d657e44
SQL
djones01/CHub
/STG_PER_DOCUMENT_ATTACHMENT_CONSTRAINT.sql
UTF-8
1,079
2.609375
3
[]
no_license
-------------------------------------------------------- -- Constraints for Table STG_PER_DOCUMENT_ATTACHMENT -------------------------------------------------------- ALTER TABLE "HCM_ADMIN"."STG_PER_DOCUMENT_ATTACHMENT" ADD CONSTRAINT "STG_PER_DOCUMENT_ATTACHMEN_PK" PRIMARY KEY ("ATTACHED_DOCUMENT_ID") USING IND...
true
9c2ee95997ea9ae060439bf0c8ad00146b51bde7
SQL
nkwinikak/momentum-active-shoppe
/src/main/resources/data.sql
UTF-8
598
3.21875
3
[]
no_license
DROP TABLE IF EXISTS customer; CREATE TABLE customer ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(250) NOT NULL, available_points INT NOT NULL ); DROP TABLE IF EXISTS product; CREATE TABLE product ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(250) NOT NULL, code VARCHAR(5) NOT NULL, cost_poi...
true
7c297f094b1d0caf19b949c7484abe878fca229a
SQL
edgardzadra/Angular-Springboot-App
/src/main/resources/db/migration/V03__criar_tabela_lancamento.sql
UTF-8
706
2.890625
3
[]
no_license
CREATE TABLE lancamento ( codigo BIGINT(20) PRIMARY KEY AUTO_INCREMENT, descricao VARCHAR(50) NOT NULL, data_vencimento DATE NOT NULL, data_pagamento DATE, valor DECIMAL(10,2) NOT NULL, observacao VARCHAR(200), tipo VARCHAR(20), codigo_categoria BIGINT(20) NOT NULL, codigo_pessoa BIG...
true
fc327c1194ccddcfccea9c6c48694235c6fa465d
SQL
dsu8854/Moons
/src/main/java/config/table.sql
UTF-8
5,368
3.8125
4
[]
no_license
select * from MOONS_CHARGE CREATE TABLE moons_charge ( charge_num NUMBER NOT NULL, -- num user_code NUMBER NULL, -- 유저 <<<<<<< HEAD charge_amount NUMBER NOT NULL DEFAULT 0, -- 입금액 ======= charge_amount NUMBER DEFAULT 0, -- 입금액 >>>>>>> 8225c35fc7c16b49d841d47c14ec3340bb2edb4c charge_date DATE NOT NU...
true
b44ac84e2d01972c3283a175815ce53c8c42e7c5
SQL
oc711/Oozie-Daliy-query-for-Transport
/JGS_train.sql
UTF-8
1,807
3.265625
3
[]
no_license
set hive.execution.engine=tez; set mapreduce.job.reduces=1000; add jar hdfs:/user/a_lab_drm_hdfs/socle/udtf/esri-geometry-api-1.2.1.jar; add jar hdfs:/user/a_lab_drm_hdfs/socle/udtf/spatial-sdk-hive-1.2.0.jar; add jar hdfs:/user/a_lab_drm_hdfs/socle/udtf/spatial-sdk-json-1.2.0.jar; DROP TEMPORARY FUNCTION IF...
true
0baa517db3727e7aa61e84b815f61a7080f84b47
SQL
profh/67311_SQL
/lecture_on_where/running_total_examples.sql
UTF-8
4,436
4.1875
4
[]
no_license
-- PROBLEM: Find the major victories for hero_id = 1 (Batman) each month as -- well as a running total of his major victories year to date (YTD) -- SOLUTION 1: using self joins -- Step 1: join each 'month' record with previous 'month' records (self-joins) SELECT * FROM victories v JOIN victories v1 ON (v.for_month>...
true
7752b2ac75aaec43b02b2561fb72def84cae31de
SQL
zodiark23/SIMS
/dru_sql_latest/dru_role_priv_latest.sql
UTF-8
2,102
3.109375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 11, 2018 at 08:38 AM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
e6591ded5e91a17f438b4b9d50556d8536f586f9
SQL
cw2yuenberkeley/w205-fall-17-labs-exercises
/exercise_1/transforming/counties_transform.sql
UTF-8
249
2.796875
3
[]
no_license
DROP TABLE Counties_tmp; CREATE TABLE Counties_tmp AS SELECT DISTINCT CountyName AS Name FROM hospital_base; DROP TABLE Counties; CREATE TABLE Counties AS SELECT row_number() OVER () AS CountyId, Name FROM Counties_tmp; DROP TABLE Counties_tmp;
true
b2ebea0a4edb7e35215848fdf3451dc93eff61b8
SQL
205c/HLDeliver
/HLGetExpRecV5.sql
UTF-8
6,697
3.59375
4
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS HLGetExpRecV5; Create PROCEDURE HLGetExpRecV5( nMBId int, nMemberInts long, nMemberAge int, szMemberRelStatus text, nMemberGender int, nTOD INT, # 0:morning, 1:afternoon, 2:evening nMbLat DOUBLE, nMbLon DOUBLE, nStyleId INT, nCatId INT, szSearch TEXT, nlatMin double, nlatMax do...
true
b8c03f3498b1afc7966715674e11aee6691b313c
SQL
shiowwj/mvc-tweedr
/tables.sql
UTF-8
441
2.953125
3
[]
no_license
CREATE TABLE IF NOT EXISTS users ( id SERIAL PRIMARY KEY, username TEXT, password TEXT, profile_desc VARCHAR(120), profile_pic_url TEXT, created_at TEXT -- following TEXT, -- followers TEXT ); CREATE TABLE IF NOT EXISTS tweeds ( id SERIAL PRIMARY KEY, tweeds TEXT, created_at TEXT, user_id INTEGER ); -- user can twee...
true
6f7e98f3050975325127d7b1c3dab218bfb1ff6d
SQL
underscore-ex/magnus
/data/mysql_script.sql
UTF-8
2,873
4.125
4
[]
no_license
CREATE SCHEMA `magnus`; CREATE TABLE `magnus`.`airline` ( `airlineId` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(45) NOT NULL, PRIMARY KEY (`airlineId`)); CREATE TABLE `magnus`.`flight` ( `flightId` INT NOT NULL AUTO_INCREMENT, `flightNumber` VARCHAR(45) NOT NULL, `seats` INT NOT NULL, `flightTime` INT...
true
55ec18d1726ac8274612b6ca67fe1a8c5528a640
SQL
vikatrs/rapor.github.io
/skripsi.sql
UTF-8
27,803
3.1875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 15, 2017 at 10:30 AM -- Server version: 10.1.10-MariaDB -- PHP Version: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
45b863245b36b19c006d01c8e5c4cf9998cac03e
SQL
Yiiiteng/AW
/RateMyPet/mysql/ratemypet.sql
UTF-8
13,465
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 17-05-2019 a las 15:30:08 -- Versión del servidor: 10.1.38-MariaDB -- Versión de PHP: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
6b3361e3148528908cbfe13f2ef7d832d2630248
SQL
tc-sabr/SQL
/Part_6.sql
UTF-8
1,238
4.625
5
[]
no_license
USE Sakila; -- Part 6a: use join to display first, last & address of staff SELECT s.first_name , s.last_name , a.address FROM staff AS s LEFT JOIN address AS a ON a.address_id = s.address_id ; -- Part 6b: use join to give total amount rung up by each staff in August 2005 SELECT CONCAT(s.first_name, ' ', s....
true
fb6238695d8b0fcdd3db58342917befebf57b29d
SQL
scottbuonya/Employee-Tracker
/employee.sql
UTF-8
612
3.515625
4
[]
no_license
DROP DATABASE IF EXISTS employeeDB; CREATE DATABASE employeeDB; USE employeeDB; CREATE TABLE department ( id INT NOT NULL, name VARCHAR(30), PRIMARY KEY (id) ); CREATE TABLE position ( id INT NOT NULL, title VARCHAR(30), salary DECIMAL(10,2), department_id INT, PRIMARY KEY (id) ); CREATE TABLE employee ( id INT NO...
true
066c76c14facb9504b1ecaa18ecb09b1ccd80873
SQL
Prepsmith/pg-currency
/sql/currency.sql
UTF-8
5,244
3.53125
4
[]
no_license
-- simple creation etc - value rendered is passed back as it came in select '100 eur'::currency as "100 eur"; select '-100 eur'::currency as "-100 eur"; select '100.00 eur'::currency as "100.00 eur"; select '-100.00 eur'::currency as "-100.00 eur"; select '100eur'::currency as "100 eur"; -- these values make no sens...
true
1b9a82a5f853fe9afbf8fa7dd1922b2ddfec1052
SQL
whtm/103590
/HIS/zlTransfusion/Script/table.sql
GB18030
2,559
3.171875
3
[]
no_license
Create Table ִдӡ¼ ( ҽID Number(18), ͺ Number(18), ˮ Number(18), ӡ˵ Varchar2(1000), ӡʱ Date, ӡ Varchar2(20)) TABLESPACE zl9CisRec Pctfree 5 Pctused 85; Create Table ݴҩƷ¼ ( NO VARCHAR2(8), NUM...
true
39178921d9eba0fc53104b62c7ef0998a03658e3
SQL
emi-hi/LightBnB
/1_queries/2_averagelengthofreservation.sql
UTF-8
104
2.734375
3
[]
no_license
SELECT AVG(end_date-start_date) FROM reservations; /* \i 1_queries/2_averagelengthofreservation.sql */
true
3c308b63edaa5cd86941706c28f73fc0b91eb2b1
SQL
tarunaabadi/PenjualanMobil
/mobill.sql
UTF-8
2,187
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 16, 2019 at 03:52 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
f1f85c7b016414daa94ee00250663a6e92e9ba98
SQL
fairfield-university-is510-fall2017/is510-classnotes-EnguChen1993
/Schemas/DBP-e14-MySQL-CH02-MDC-Database/DBP-e14-MySQL-MDC-CH02-CQ.sql
UTF-8
6,232
3.84375
4
[]
no_license
/********************************************************************************/ /* */ /* Kroenke and Auer - Database Processing (14th Edition) Chapter 02 */ /* */ /* Matha's Dry Cleaning [MDC-CH02] Database Projec...
true
870819931bd0cb15d20775da0246c3b01ba54515
SQL
Ututi/ututi
/src/ututi/migration/181_registration_data_integrity_upgrade.sql
UTF-8
223
2.625
3
[]
no_license
alter table user_registrations add constraint registration_data_integrity check ((location_id is null and email is not null) or (location_id is not null and (email is not null or facebook_id is not null)));;
true
c0ec60c6a8c7f8c15b3ae91032f4a8c5603feff2
SQL
EthernalBlue/ChineseDictionary
/Simplified.sql
UTF-8
3,341
2.921875
3
[]
no_license
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; CREATE TABLE IF NOT EXISTS `ChineseSimplified` ( `Id` int(11) NOT NULL, `Character` varchar(255) NOT NULL, `PinYin` varchar(255) NOT NULL, `IsTraditional` tinyint(1) NOT NULL, `Meaning` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=big5;...
true
073ac4012da1b0f927a53da128b8f0e45d146645
SQL
ColeSnyder/GameOverHaul
/Dataset/Developer.sql
UTF-8
7,787
3.09375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `project` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `project`; -- MySQL dump 10.13 Distrib 5.5.16, for Win32 (x86) -- -- Host: localhost Database: university -- ------------------------------------------------------ -- Server version 5.5.20 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
true
4efbbb647ae587c475823ed9bcf448eeb467d163
SQL
NSCF/SpecifySQL
/CollectionObjectsPerCollection.sql
UTF-8
147
3.5
4
[]
no_license
select c.CollectionName, count(*) as count from collectionobject co join collection c on c.collectionId = co.CollectionID group by c.CollectionName
true
2639c9079ee412e4682de94b6b9ce79195fb2624
SQL
fandashtic/arc_chennai
/Sivabalan-SQL/SQL_STORED_PROCEDURE/mERP_SP_updateFileVersion.sql
UTF-8
384
2.59375
3
[]
no_license
create procedure mERP_SP_updateFileVersion @Filename nvarchar(4000),@Fileversion nvarchar(25),@FSUID nvarchar(25) AS BEGIN update tbl_mERP_Fileinfo set active = 0 where filename=@Filename update tbl_mERP_Fileinfo set active = 1 where filename=@Filename and versionnumber=@Fileversion and isnull(FSUID,0) = ...
true
500b378169905943a1a03511f2e488bf37a9c939
SQL
262734254/IBP.Website
/IBP.Website/02-数据库脚本包/数据表创建脚本/product_info.SQL
GB18030
1,784
3.484375
3
[]
no_license
-- -------------------------------------------------- -- Generated by Enterprise Architect Version 8.0.858 -- Created On : һ, 02 һ, 2012 -- DBMS : SQL Server 2008 -- -------------------------------------------------- IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id('product_info') AND OBJEC...
true
f24868d50b911a779269f1630b58a209d8293c2a
SQL
Seth-Race/sql-instruction
/prs/prs-inserts.sql
UTF-8
685
3.4375
3
[]
no_license
-- prs injection insert into request (id, userID, deliveryMode) values (4, 2, 'Delivery') ; select * from lineItem ; insert into lineItem (requestID, productID, quantity) values (4, 5, 1), (4, 6, 1), (4, 9, 1), (4, 1, 1), (4, 7, 1) ; set @order_total = (select sum(price * quantity) as total from...
true
57916ec7d7ab4bcd45d6f6fb811f8dae355b81bc
SQL
rvep/dev_backend
/data/db/scripts/init-db-tables.sql
UTF-8
1,275
2.765625
3
[ "MIT" ]
permissive
/* * * This is the mysql db initialization script. * * $ mysql -u username -p < init-db.sql * */ -- select database use rvep; -- rvep_ categories insert into role_category (id, name, enabled) value (1000, 'app', 1); insert into role_category (id, name, enabled) value (1100, 'event', 1); -- app rvep_s insert...
true
f776fb3765e8b5bfe53cee4db7ffc733022e7b64
SQL
AdeelGalileo/GTM-App
/dbChanges/updateQbClientRefreshToken.sql
UTF-8
660
3.234375
3
[]
no_license
DELIMITER // DROP PROCEDURE IF EXISTS updateQbClientRefreshToken// CREATE PROCEDURE `updateQbClientRefreshToken`( IN `_userId` INT(11), IN `_tokenUpateId` INT(11), IN `_refreshToken` VARCHAR(255), IN `_accessToken` TEXT, IN `_dateTime` datetime ) LANGUAGE SQL NOT DETERMINISTIC CONTAINS SQL SQL SECURITY DEFINER CO...
true
e94b13b7a5d13afd4af44165db9ce7eead256c48
SQL
HKevinH/JadeCore-Fix-Scripst
/sql/fix_sql/2809_spell_bonus_loot.sql
UTF-8
1,290
2.9375
3
[]
no_license
DROP TABLE IF EXISTS `spell_bonus_loot`; CREATE TABLE IF NOT EXISTS `spell_bonus_loot` ( `creatureEntry` int(10) unsigned NOT NULL COMMENT 'Creature entry', `currency` int(10) unsigned NOT NULL COMMENT 'Spell identifier', `spellId` int(10) unsigned NOT NULL COMMENT 'Spell identifier', `lootSourceType` int(10) ...
true
30359d5f62cb425b82268e286cfe8bf175f5b6d2
SQL
Lviv-Debate/debstats
/db/debstats.sql
UTF-8
7,736
3.390625
3
[]
no_license
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 */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET N...
true
0776d90ac77996185b73436a25cc32614236544d
SQL
xznc13/dvc
/container-files/initdbscripts/common/Procedures/roverCollateGroups.sql
UTF-8
4,727
3.359375
3
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS roverCollateGroups; CREATE PROCEDURE roverCollateGroups(IN in_core_system text, in_process_date date) BEGIN -- ----------------------------------------------------------------------------------------------------- -- (C) Red Hound Limited 2015 -- ------------------------------...
true
473d749306c821ef8cc7d96446cba13b79897c08
SQL
salimkocabas/QA-Tech-Notes
/SQL/Syntax Class/003 1 task day2.sql
UTF-8
258
2.96875
3
[]
no_license
USE syntaxhrm_mysql; SELECT * FROM hs_hr_employees WHERE job_title_code IS NULL; -- ev telefonu bos olanlar SELECT employee_id,emp_lastname,emp_lastname,emp_hm_telephone FROM hs_hr_employees WHERE emp_hm_telephone IS NULL ORDER BY emp_firstname;
true
4388ba2362a2d90c4c5dddbe162a4b2f032844d9
SQL
ddiongzon001/bamazon
/bamazon.sql
UTF-8
2,173
4.15625
4
[]
no_license
DROP DATABASE IF EXISTS bamazon_db; CREATE DATABASE bamazon_db; USE bamazon_db; CREATE TABLE products( item_id INT AUTO_INCREMENT NOT NULL, product_name VARCHAR(50) NOT NULL, department_name VARCHAR(50) NOT NULL, price DECIMAL(4,2) NOT NULL, stock_quantity INT NOT NULL, product_sales DECIMAL (10,2), ...
true
f6a128a3201c320c8c5180cf607662af7ef71489
SQL
alvarogomezmu/dam
/AccesoDatos/SQL/pruebas/creates/simples/propietarioCompraviviendaVivienda.sql
UTF-8
499
3.34375
3
[]
no_license
create table if not exists propietario ( nif varchar(10), nombre varchar(30), edad smallint(3) default 20, sueldo int(5) default 2000, primary key(nif)); create table if not exists vivienda ( codigo smallint(3) auto_increment, direccion longtext not null, tipo varchar(30) default 'piso', primary key(codigo)); create ...
true
5c576b992a53ff96c2804bd783fbc42c824cc260
SQL
mikolajmeller/cheatsheet-be
/article/src/main/resources/migrations/003-create-table-keywords.sql
UTF-8
344
2.96875
3
[]
no_license
--liquibase formatted sql --changeset mikolajmeller:1 CREATE TABLE `keywords` ( `id` INT AUTO_INCREMENT PRIMARY KEY, `article_id` INT NOT NULL, `name` VARCHAR(255) NOT NULL UNIQUE, `description` MEDIUMTEXT, INDEX `keywords__article_id` (`article_id`), INDEX `keywords__name` (`name`) ); --rollbac...
true
5114254be97fe4dc0e0724fc5ce16922d242779e
SQL
aizeeck/swift
/Course project/CitizenStorageManagerCLI/sql/CitizenManagament_2017-06-10_empty.sql
UTF-8
10,379
3.5
4
[]
no_license
CREATE DATABASE IF NOT EXISTS `CitizenManagement` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `CitizenManagement`; -- MySQL dump 10.13 Distrib 5.7.18, for Linux (x86_64) -- -- Host: 192.168.1.100 Database: CitizenManagement -- ------------------------------------------------------ -- Server version 5.7.18-0ubuntu0...
true
43930d2d4bae25daf8030d04e04f24318ee9f9bb
SQL
rongandat/phanloaicanbo
/sql/update_version_5_8_2014.sql
UTF-8
4,052
3.421875
3
[]
no_license
DROP PROCEDURE IF EXISTS getListNhanVien; DELIMITER $$ CREATE PROCEDURE getListNhanVien(param_phong_ban varchar(255)) BEGIN BLOCK1: BEGIN DECLARE no_more_rows1 INT DEFAULT FALSE; DECLARE pb_id_info int; DECLARE phongbanList CURSOR FOR select DISTINCT pb_id from phong_ban order by pb_order; DEC...
true
439380254791d3ad026128db18f213663b343238
SQL
sarveshpro/Houdini
/houdini.sql
UTF-8
6,606
3.09375
3
[ "MIT" ]
permissive
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.6.35) # Database: houdini # Generation Time: 2017-10-17 12:37:02 +0000 # ***********************************************...
true
167e961ad068ac0a59127e22b5408651145c7610
SQL
NickCharsley/ONS_googleAnalytics
/database/schema/msqli/fctsystem.sql
UTF-8
1,538
3
3
[]
no_license
CREATE TABLE `fctsystem` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `dimDate` int(11) NOT NULL, `dimProfile` int(11) NOT NULL, `dimSystem` int(11) NOT NULL, `Visits` int(11) NOT NULL DEFAULT '0', `Visitors` int(11) NOT NULL DEFAULT '0', `NewVisits` int(11) NOT NULL DEFAULT '0', `Bounces` int(11) NOT NULL D...
true
475e9323abfc772b7df6ebf1443431bdbc3f0f7a
SQL
18918090402/MZJF_Work
/MZJF_Work/0002 Git.nonobank.com/archive_20180806/bi-etl.git/03_DW_HADOOP/02_IDW/03_SCRIPT/FACT_HOR_DATA/FACT_HOR_DATA.sql
UTF-8
1,177
3.03125
3
[]
no_license
set mapreduce.job.name = IDW_FACT_MLD_ORDER_CREDIT; set mapreduce.job.queuename = etl-dw; set hive.exec.parallel=true; set hive.exec.max.created.files=100000000; set hive.groupby.skewindata=true; INSERT OVERWRITE TABLE IDW.FACT_MLD_ORDER_CREDIT SELECT T1.ID AS ORDER_ID,T1.ORDER_NO,T1.NONO_BOID,T2.ID AS USER_ID,T2.NONO...
true
1d037542a9efd660a4eb1bcb95ec33bb25206ba4
SQL
ryanblessing/Tracker-App
/db/test.sql
UTF-8
247
3.390625
3
[]
no_license
SELECT employee.id, employee.first_name, employee.last_name, roles.title AS job_title, department.name AS department, roles.salary FROM employee JOIN roles ON employee.role_id = roles.id JOIN department ON roles.department_id = department.id;
true
519cc4971eb061434542b1e9c89b25fc7e4958cc
SQL
k-caps/db-scripts
/Oracle/DB_DDL_CHANGES_LOG_TRG.sql
UTF-8
1,387
3.484375
3
[]
no_license
-- In Superuser schema create table SCHEMA_NAME.DB_DDL_CHANGES_LOG(ID NUMBER GENERATED ALWAYS AS IDENTITY PRIMARY KEY, CLIENT_MACHINE VARCHAR2(4000), OS_USER VARCHAR2(4000), CURRENT_SCHEMA VARCHAR2(4000), ACTION_TYPE VARCHAR2(...
true
d6d23a2822c6808ad005751e5bb6c5d3505b4c40
SQL
cindyquach1/CPSC-449-Project2
/Project2/share/timelines.sql
UTF-8
616
3.46875
3
[]
no_license
PRAGMA foreign_keys=ON; BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS posts ( id INTEGER PRIMARY KEY, username TEXT NOT NULL, post TEXT NOT NULL, timestamp INTEGER DEFAULT CURRENT_TIMESTAMP ); INSERT INTO posts(username, post) VALUES('JohnLegend', "All of me"); INS...
true
7b8244ca36329de0c631854b91b09932d0e38c0d
SQL
BinAff/School
/Development/Source Code/Sparkle/Sparkle/Database/Accountant/Stored Procedures/InvoiceReadDuplicate.sql
UTF-8
189
3
3
[]
no_license
CREATE PROCEDURE Accountant.InvoiceReadDuplicate ( @SerialNumber int ) AS BEGIN SELECT Id FROM Accountant.Invoice WITH (NOLOCK) WHERE SerialNumber = @SerialNumber END
true
52fb48e2c2bad1fa24672ff25a494e0530706181
SQL
ahmedsamirsaad-coder/Clinic-management
/SQLQuery1.sql
UTF-8
6,528
3.203125
3
[]
no_license
CREATE TABLE doctor_Tb ( doctor_ID int NOT NULL PRIMARY KEY, doctor_Name varchar(50) NOT NULL, doctor_Phone varchar(30) NOT NULL, doctor_Adress varchar(100) NOT NULL, doctor_ZIP varchar(10) NOT NULL ); CREATE TABLE patient_Tb ( patient_ID int NOT NULL PRIMARY KEY, patient_Name varchar(50) NOT NULL, patien...
true
a94b75975f8e725a200901f0087fa4e8e1b8cc2d
SQL
MaximeDEFRETIN/SQL
/Partie3/exercice.sql
UTF-8
1,570
3.53125
4
[]
no_license
-- Exercice 1 USE `webDevelopement`; ALTER TABLE `languages` ADD `versions` VARCHAR(40); DESCRIBE `languages`; -- Exercice 2 ALTER TABLE `frameworks` ADD `version` INT; DESCRIBE `frameworks`; -- Exercice 3 ALTER TABLE `languages` CHANGE `versions` `version` VARCHAR(40); DESCRIBE `languages`; -- Exercice 4 ALTER TABL...
true
39823e1ce9bb0f32ec284e375c8583c6750aa27d
SQL
CannonFodderUK/NAS-Activity-ReWork
/Europe Express/SQL Files/Procedures/sp_l_ctycod.prc
UTF-8
11,033
3.25
3
[]
no_license
SET DEFINE OFF; /* Formatted on 16/01/2013 11:25:37 (QP5 v5.227.12220.39724) */ CREATE OR REPLACE PROCEDURE sp_L_ctycod AS -- DECLARE /***** D E C L A R E S E C T I O N *****/ --=========================================================== -- SP_CTYCOD - which takes the contents of L_CITYCODES -- and popul...
true
2b3585e90429d9ae89718ac6ce9c3905d3e9e9e0
SQL
jongvin/werp
/werp/erpw/general/t_web/sql/Procedure/SP_T_FIN_PAY_BILL_SLIP_U.sql
UHC
3,604
3
3
[]
no_license
CREATE OR REPLACE PROCEDURE Sp_T_Fin_Pay_Bill_Slip_U ( AR_SLIP_ID NUMBER, AR_SLIP_IDSEQ NUMBER, AR_MODUSERNO VARCHAR2, AR_ACC_REMAIN_POSITION VARCHAR2, AR_DB_AMT ...
true
b32f28168b5b3c54cfd572793891cb459dd5ff87
SQL
brazil-data-cube/datacube-ows
/datacube_ows/sql/use_space_time.sql
UTF-8
1,055
3.25
3
[ "Apache-2.0" ]
permissive
--- Usage of space-time tables to obtain spatial and temporal extents of datasets --- from indexed materialized views select dataset_type_ref, ST_Extent(spatial_extent) as bbox, array_agg(temporal_extent) from space_time_view group by dataset_type_ref; -------------------------------------------------------------------...
true
0211f7fde56e9613af24787eb42cbdb4656a3dec
SQL
endtb/all-oral-short-regimen
/sl_implementation_config/migrations/treatment_inititiation.sql
UTF-8
4,155
3.046875
3
[]
no_license
call add_concept(@concept_id, @concept_name_short_id, @concept_name_full_id, "TI, patient eligible for treatment with All Oral STR (according to OR protocol)?", "Eligible for treatment with All Oral STR?",'Boolean', 'MISC', FALSE); call add_concept(@concept_id, @concept_name_short_id, @concept_name_full_id, "TI, If YE...
true
c5cc3ae642826817a5069d08825c9c148042030d
SQL
josiahmokobo/CARGO-MANAGEMEGENT-SYSTEM
/backup/cargo.sql
UTF-8
15,162
3.140625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50516 Source Host : localhost:3306 Source Database : cargo Target Server Type : MYSQL Target Server Version : 50516 File Encoding : 65001 Date: 2014-05-05 12:35:22 */ create database cargo; use c...
true
004e94d614a99639774b2d5c57f2eafc5cb952fc
SQL
loginews/business-accounting
/customer.sql
UTF-8
2,408
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Aug 10, 2017 at 11:43 PM -- Server version: 5.6.36-82.1-log -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
true
20cd8ffbaeb35c7272b179dfd6dd05981b46f8ee
SQL
h0kd33/nimingban_tp
/nmb.sql
UTF-8
2,316
3.359375
3
[]
no_license
/*板块分组信息表*/ CREATE TABLE nmb_fgroup ( id int unsigned NOT NULL AUTO_INCREMENT, sort int NOT NULL default -1, name varchar(10) NOT NULL, PRIMARY KEY (id) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*板块信息表*/ CREATE TABLE nmb_forum ( id int unsigned NOT NULL AUTO_INCREMENT, fgroup int unsigned NOT NULL...
true
77271ffeaa7f33f9cead2d62ccacd1aef5828e25
SQL
AEkaterina/DB_4_sem
/lab5/SQLQuery2.sql
WINDOWS-1251
4,937
3.703125
4
[]
no_license
use [04_UNIVER] --- 1 select AUDITORIUM.AUDITORIUM, AUDITORIUM_TYPE.AUDITORIUM_TYPENAME from AUDITORIUM inner join AUDITORIUM_TYPE on AUDITORIUM.AUDITORIUM_TYPE = AUDITORIUM_TYPE.AUDITORIUM_TYPE --- 2 select AUDITORIUM.AUDITORIUM, AUDITORIUM_TYPE.AUDITORIUM_TYPENAME from AUDITORIUM inner join AUDITORIUM_TYPE on A...
true
c88fa8ccdfeb5e53fd5c87af2523d4d114368625
SQL
sintret/freelancer
/sql/pdo.sql
UTF-8
1,898
3.09375
3
[]
no_license
/* SQLyog Ultimate - MySQL GUI v8.21 MySQL - 5.6.21 : Database - pdo ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_K...
true
983bdafdeff08081b929a93159ad36280d767b84
SQL
serviver-agent/serviver-chat-play
/docker/local-dev/mysql/db/03-create-user-tokens-table.sql
UTF-8
207
2.578125
3
[]
no_license
drop table if exists `user_tokens`; create table if not exists `user_tokens` ( `user_token` char(255) unique not null, `user_id` char(64) NOT NULL, primary key (`user_token`) );
true