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
984405cac8e72d24a640b093db703088d6bdac08
SQL
leonardod38/PLSQL-SP
/PLSQL/PLSQL PROJETO/4816/reinf_conf_retencao.sql
UTF-8
105,231
2.671875
3
[]
no_license
PROCEDURE reinf_conf_retencao(P_COD_EMPRESA IN VARCHAR2, P_COD_ESTAB IN VARCHAR2, P_TIPO_SELEC IN VARCHAR2, P_DATA_INICIAL IN DATE, ...
true
b687f144bb9faae2d4d96c244b61384e3818b12e
SQL
goraMbaye/Ejercicios-api
/recursos-2/prueba_usuarios.sql
UTF-8
2,236
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 18-12-2020 a las 17:16:13 -- Versión del servidor: 10.4.14-MariaDB -- Versión de PHP: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
9432b5678bda0449a37c57c3caae17d8b5386718
SQL
kurotori/SysTurno2020
/BDD/procedimientos_para_hosting.sql
UTF-8
8,427
3.546875
4
[]
no_license
/*Registro de token y devolución de ID del mismo*/ DELIMITER $$ CREATE PROCEDURE registrar_token( IN usuario_ci int(8) unsigned, IN token_val varchar(60) ) BEGIN DECLARE usr_ci int(8) unsigned; DECLARE tkn_val varchar(60); DECLARE tkn_id int unsigned; SET usr_ci = usuario_ci; SET tkn_val = token_val; INSE...
true
638c00d9edc5cab91a2e45acb3bf9b89ccaa5b9e
SQL
feturchette/phpchallenges
/db/queries.sql
UTF-8
606
3.296875
3
[]
no_license
USE `challengedb`; DROP TABLE IF EXISTS `exads_test`; CREATE TABLE `exads_test` ( `id` int NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `age` int NOT NULL, `job_title` varchar(100) NOT NULL, PRIMARY KEY (`id`) ); DROP TABLE IF EXISTS `exads_design_test`; CREATE TABLE `exads_design_test` ( `desig...
true
ce6a1da99b08b48f943a84f3a4083e31a7ab0fe7
SQL
gurpreet19/ec198392_wht
/Database/configuration/03_02_headless_tool/Delta_WST/SourceViewDefinitions/V_CNTR_PG_SETUP.sql
UTF-8
1,221
2.921875
3
[]
no_license
CREATE OR REPLACE FORCE EDITIONABLE VIEW "V_CNTR_PG_SETUP" ("OBJECT_ID", "CONTRACT_ID", "DAYTIME", "END_DATE", "USE_IND", "RTY_BASE_VOLUME", "RECORD_STATUS", "CREATED_BY", "CREATED_DATE", "LAST_UPDATED_BY", "LAST_UPDATED_DATE", "REV_NO", "REV_TEXT") AS ( --------------------------------------------------------------...
true
2a2a2ebbb3a9dd0322a87c70774fbbb7a79464f1
SQL
menhuan/notes
/学习内容/notes/Mysql大集合/sql语句执行脚本/explain执行sql脚本.sql
UTF-8
3,780
3.40625
3
[ "Apache-2.0" ]
permissive
CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `name` varchar(20) NOT NULL DEFAULT '' COMMENT '用户名', `sex` tinyint(4) NOT NULL DEFAULT '1' COMMENT '性别', `phone` varchar(11) NOT NULL COMMENT '手机号', `desc` varchar(200) NOT N...
true
78c58657820f9286a9a095ff39c3d0d5c36f4871
SQL
felipe-nambara/smarterp
/oic_db/queries/various/update_invoice_customer.sql
UTF-8
1,447
3.546875
4
[]
no_license
update invoice_customer inner join order_to_cash on order_to_cash.id = invoice_customer.order_to_cash_id inner join invoice on invoice.order_to_cash_id = order_to_cash.id set order_to_cash.erp_invoice_customer_returned_from_erp_at = current_timestamp -- colocar aqui o timestamp de retorno do processamento do erp ,o...
true
737fcd96999cfb3ff407d751c803482afbf9ecde
SQL
CarlosAmadorAyala/mcvscripts
/mysql/LGG/LGG_MCV_R_BAL_BY_MAX_BAL.sql
UTF-8
11,999
3.703125
4
[]
no_license
-- Lorena García González -- Agosto 09, 2018 -- MCV: Creación de Variables - Razón entre saldo actual y máximo de los últimos N meses USE DBMYMWORK; DROP TABLE IF EXISTS LGG_MCV_R_BAL_BY_MAX_BAL; CREATE TABLE IF NOT EXISTS LGG_MCV_R_BAL_BY_MAX_BAL AS SELECT LLAVE_UNIVERSAL_20,RFC, CLIENTE, LINEA,FECHA AS FECH...
true
549ec8e41dd92e29e5d703693ee41231045ce084
SQL
RGLab/LabKeyModules
/VirtualStudyBase/assay/ExpressionMatrix/queries/InputSamples_computed.sql
UTF-8
438
2.6875
3
[ "Artistic-2.0" ]
permissive
-- View of InputSamples_precompute in assay.ExpressionMatrix.matrix -- so container filters can be applied and additional columns defined -- in qview.xml from the Runs table will show up SELECT RowId, Run, TargetProtocolApplication, Material, Biosample, Role, Source_Container AS folder FROM -- Only want...
true
b666b86cc7e9b11df0fd99a9825885f82c5179ab
SQL
pyslackers/sirbot-pyslackers
/sql/0.0.3.sql
UTF-8
120
2.6875
3
[]
no_license
ALTER TABLE slack.messages ADD COLUMN time TIMESTAMP; UPDATE slack.messages SET time = to_timestamp(left(id, 10)::INT);
true
1bedc671428195a7edd09e454782339f949828f7
SQL
stanislavstoyanov99/SoftUni-Software-Engineering
/DB-with-C#/Labs-And-Homeworks/Databases Basics - MS SQL Server/08. Data Aggregation - Exercise/16EmployeesMaximumSalaries.sql
UTF-8
153
3.4375
3
[ "MIT" ]
permissive
SELECT DepartmentID, MAX (Salary) AS [MaxSalary] FROM Employees AS e GROUP BY e.DepartmentID HAVING MAX (Salary) NOT BETWEEN 30000 AND 70000
true
bca1c323dae2509f5fb4783d4d1541318530e136
SQL
souzagabi/investimento
/db/Dump20210628/db_acao_routines.sql
UTF-8
58,451
3.359375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `db_acao` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_bin */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `db_acao`; -- MySQL dump 10.13 Distrib 8.0.25, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: db_acao -- ------------------------------------------------------ -- Server versi...
true
e2e74a79540e73070f288da082e36f9b32ca2ee0
SQL
atherdon/forder
/docs/sql/foodordersql/foodorder_table_mt_merchant_cc.sql
UTF-8
555
2.6875
3
[]
no_license
-- -------------------------------------------------------- -- -- Table structure for table `mt_merchant_cc` -- CREATE TABLE `mt_merchant_cc` ( `mt_id` int(14) NOT NULL, `merchant_id` int(14) NOT NULL, `card_name` varchar(255) NOT NULL, `credit_card_number` varchar(20) NOT NULL, `expiration_month` varchar(...
true
18dc9f3765fa1aeb8da0371cbe6a57f7821eefb6
SQL
ua-eas/kc-3.1.1-5.2.1-dbupgrade
/current_mysql/5.0.1/constraints/KC_FK_IACUC_BATCH_CORRESPONDENCE.sql
UTF-8
424
2.890625
3
[]
no_license
DELIMITER / ALTER TABLE IACUC_BATCH_CORRESPONDENCE ADD CONSTRAINT FK_IAC_BATCH_CORRESPONDENCE_1 FOREIGN KEY (FINAL_ACTION_CORRESP_TYPE) REFERENCES IACUC_PROTOCOL_CORRESP_TYPE (PROTO_CORRESP_TYPE_CODE) / ALTER TABLE IACUC_BATCH_CORRESPONDENCE ADD CONSTRAINT FK_IAC_BATCH_CORRESPONDENCE_2 FOREIGN KEY (FINAL_A...
true
6d8d2c9888254cd6fdf3d6f6867022fea8e41180
SQL
hofstadter-io/hof
/docs/code/getting-started/data-layer/partials/snapshot-table.sql
UTF-8
972
3
3
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
{{ $DM := .DM }} {{ $S := .Snapshot }} {{ $DIFF := $S.CurrDiff }} /* has snapshot {{ $S.Pos }} - {{ $S.Timestamp }}*/ {{ range $K, $M := $S.Data.Models }} {{ if and (ne $K "$hof") (ne $K "+")}} /* == {{ $K }} == */ {{ if $S.Pos }} {{/* update/create as needed */}} {{ $UM := lookup $K $DIFF.Models }} {{ $PTMP := look...
true
620b34336e0eab227af2ac98d1398df392a894a6
SQL
lpan42/PHP_piscine
/D05/ex11/ex11.sql
UTF-8
338
4.25
4
[]
no_license
SELECT UPPER(user_card.`last_name`) AS `NAME`, user_card.`first_name`, subscription.`price` FROM user_card JOIN member ON user_card.`id_user` = member.`id_user_card` JOIN subscription ON member.`id_sub` = subscription.`id_sub` WHERE subscription.`price` > 42 ORDER BY user_card.`last_name` ASC, user_card...
true
9cb7aeac775bd3a4c5bb6aaa71064f1d4b89c57d
SQL
apoorvchebolu/CS4750
/cs4750apc5fr.sql
UTF-8
11,982
3.421875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 03, 2013 at 02:20 AM -- Server version: 5.5.34-0ubuntu0.12.04.1 -- PHP Version: 5.3.10-1ubuntu3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
true
93c5147df08b04d92f5e5fe367dec7a2c567cbff
SQL
MDadomo/Projet_transversal_foord_truc
/Le_site/fichier_sql/a_l_equilibre.sql/a_l_equilibre_table_types_article.sql
UTF-8
469
2.859375
3
[]
no_license
-- -------------------------------------------------------- -- -- Structure de la table `types_article` -- CREATE TABLE `types_article` ( `code_type_article` varchar(8) NOT NULL, `nom_type_article` varchar(50) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Contenu de la table `types_article` -- INS...
true
2b77694be490c0d34c226d986230d4d4acd841ac
SQL
altamira/visualstudio
/Sistema de Informação Altamira/ALTANET.Database/Representante/Tables/Controle de Acesso a Arquivos.sql
UTF-8
1,912
3.328125
3
[]
no_license
CREATE TABLE [Representante].[Controle de Acesso a Arquivos] ( [Identificador] INT IDENTITY (1, 1) NOT NULL, [Data do Acesso] DATETIME CONSTRAINT [DF_Controle de Acesso a Arquivos_Data da Consulta] DEFAULT (getdate()) NOT NULL, [Identificador da S...
true
6bc48edb2246544619e117f4d6799d134a54a6d0
SQL
AnoopRahulChaudhary/PicManagement
/localhost.sql
UTF-8
7,343
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 10, 2018 at 07:42 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.0.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
7456ab199046a96b3e416f98b1a7d1cd7a03dd78
SQL
MrD0079/portal
/sql/a1805sb_report_a_tp.sql
UTF-8
1,061
2.90625
3
[]
no_license
/* Formatted on 29/01/2015 12:13:22 (QP5 v5.227.12220.39724) */ SELECT a1805sb.tab_num, st.fio fio_ts, a1805sb.fio_eta, a1805sb.tp_ur, a1805sb.tp_addr, a1805sb.tp_kod, a1805sbtps.contact_lpr FROM a1805sb_tp_select a1805sbtps, a1805sb, user_list st WHERE ...
true
94519cb725f1ff088113f35571a7bbf44fbd8363
SQL
ITDSIU18031/OOP
/Bookstore/bookstore_routines.sql
UTF-8
8,691
2.796875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: bookstore -- ------------------------------------------------------ -- Server version 8.0.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
true
a5fa9e44f9928cf0e9dc56c502f48f5c11c3c4e4
SQL
DesgraciaR/ta_ct
/bkn.sql
UTF-8
12,532
2.890625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 31, 2018 at 10:15 AM -- Server version: 10.1.10-MariaDB -- PHP Version: 7.0.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
3f4bb115e8b8e26414e98cc34a547d8e400f55d3
SQL
Joseleon1903/AplicacionSpringMVC
/AplicacionSpringMVC/src/main/resources/SQL/DATABASE/USUARIO_TBL.sql
UTF-8
718
3.328125
3
[]
no_license
/*-----------------------------USUARIO------------------------------*/ CREATE TABLE `aplicacion_web_rest`.`usuario` ( `USUARIO_ID` INT NOT NULL AUTO_INCREMENT, `CODIGO_USUARIO` VARCHAR(12) NOT NULL, `PASSWORD` VARCHAR(12) NOT NULL, `FECHA_CREACION` DATETIME NOT NULL, `FECHA_ULTIMO_ACCESO` DATETIME NUL...
true
c79eec8dd29da8a854422a68d6391d724c5c5e38
SQL
kathyurizar/ids_proyecto
/views/carrito/dicama.sql
UTF-8
12,790
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 31-05-2021 a las 08:08:40 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
bd5efadb5718116f50e790c2579356fe0818b467
SQL
Yusnocute/my-activity
/yusno/user.sql
UTF-8
2,260
2.953125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 12 Apr 2020 pada 04.51 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
1e3b4db5f9458c7b8209816be80e7e1eabc6b8e0
SQL
kimkunha/ORACLE
/day1023/delete.sql
UHC
746
3.21875
3
[]
no_license
-- ̺ ڵ带 ϰų, ǿ ´ Ư ڵ带 -- ϴ -- ڵ带 ﶧ -- delete from class4_info; -- Ưڵ常 : -- лǹȣ 11 л ڵ /* delete from class4_info where num=10; */ -- truncate ̺ ڵ带 Ѵ. /* truncate table class4_info; */ -- ʿ ̺ . -- ̺ oracle10g ̵Ѵ. drop table class4_info; -- : sqlplus -- show recyclebin -- : sqlplus -- purge recycl...
true
177a1f5d0c26b705832f62757cd0215e904be10f
SQL
drklrd/doodlers
/resources/db/doodlerdump.sql
UTF-8
3,625
2.890625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.27, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: doodlers -- ------------------------------------------------------ -- Server version 5.6.27-0ubuntu1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTE...
true
f2e8305d3cf396e7b8c9abd5df35e58908e1a606
SQL
KarmaScripter/BudgetExecution
/Data/Database/Access/DataModels/CREATETABLE/Contacts.sql
UTF-8
365
2.59375
3
[ "MIT" ]
permissive
CREATE TABLE Contacts ( ContactsId AUTOINCREMENT NOT NULL UNIQUE, FirstName TEXT(80) NULL DEFAULT NS, LastName TEXT(80) NULL DEFAULT NS, FullName TEXT(80) NULL DEFAULT NS, Email TEXT(80) NULL DEFAULT NS, RPIO TEXT(80) NULL DEFAULT NS, Section TEXT(80) NULL DEFAULT NS, CONSTAINT Contacts...
true
9aab7e4276e54072ff7a4438520b6f0837333339
SQL
marconor/projetos
/scripts.sql
UTF-8
2,957
3.421875
3
[]
no_license
CREATE TABLE dim_calendar AS SELECT date_gen.dt AS "date", DATE_PART('y', date_gen.dt)::smallint AS "year", DATE_PART('mon', date_gen.dt)::smallint AS "month", DATE_PART('day', date_gen.dt)::smallint AS "day", DATE_PART('qtr', date_gen.dt)::smallint AS "quarter", DATE_PART('w', date_gen.dt)::smallint AS "w...
true
0c68b5358897271d92d30a61e7dca5e389660343
SQL
snackjunio/snackjunio.github.io
/LeetCode/Database/DeleteDuplicateEmails.sql
UTF-8
156
3.1875
3
[]
no_license
-- # Write your MySQL query statement below delete from person where id not in( select id from ( select min(id) as id from person group by email ) t )
true
d83fd06e264aa97c285251096a6bcec68422dc6b
SQL
d0x2015/xlsx
/services.sql
UTF-8
1,425
2.75
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10.17 -- https://www.phpmyadmin.net -- -- Хост: 10.0.0.119:3307 -- Время создания: Ноя 07 2016 г., 13:57 -- Версия сервера: 10.1.18-MariaDB -- Версия PHP: 5.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_S...
true
cdb7bd01b962ce368b7ea1804e738a1a765ddd56
SQL
Deadpikle/LightWriter-2
/doc/lightwriter.sql
UTF-8
2,012
3.125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Oct 19, 2017 at 02:57 AM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
efc0872408edc2afde3b998962e0cd1160918487
SQL
pszczolkowski/KanbanBoard-backend
/src/main/resources/db/migration/V0.0.1_2015.12.13_01__authentication.sql
UTF-8
2,739
3.78125
4
[]
no_license
CREATE TABLE persistent_audit_event ( event_id BIGINT (20) NOT NULL AUTO_INCREMENT, principal VARCHAR(255) NOT NULL, event_date TIMESTAMP NULL DEFAULT NULL, event_type VARCHAR(255) DEFAULT NULL, PRIMARY KEY (event_id), KEY idx_persistent_audit_event(principal, event_date) ); CREATE TABLE persistent_audit_evt_da...
true
3004389b13ca15f4571b49bb99126b9f71bd35a8
SQL
JoanQin/kmdata_db
/addl_tables/researchinview/researchinview.riv_committee_levels.sql
UTF-8
354
2.609375
3
[]
no_license
-- Table: researchinview.riv_committee_levels -- DROP TABLE researchinview.riv_committee_levels; CREATE TABLE researchinview.riv_committee_levels ( id bigint NOT NULL, name character varying(1000), CONSTRAINT riv_committee_levels_pk PRIMARY KEY (id ) ) WITH ( OIDS=FALSE ); ALTER TABLE researchinview.riv_comm...
true
2e95b3f9cde67d99e07b8f9d11d74bfff4e2b269
SQL
Davidpculver/database-exercises
/albums_migration.sql
UTF-8
732
3.765625
4
[]
no_license
USE codeup_test_db; DROP TABLE IF EXISTS albums; CREATE TABLE albums -- only column that has to been NOT NULL is the id since it's the primary key ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, artist VARCHAR(50) NOT NULL, name VARCHAR(100) NOT NULL, release_date INT NOT NULL, sales DOUBLE NOT NULL, ...
true
6551dda431844d73654e23da3115aa34392bdf34
SQL
mckiernantim/7-2-lecture-notes
/MODULE4/sql/houses.sql
UTF-8
2,926
4
4
[]
no_license
-- create the houses database, call it lesson_db CREATE DATABASE lesson_db; DROP DATABASE lesson_db; -- Create the following table in lesson_db -- houses -- id -- address -- city -- st -- price -- pool -- for_sale CREATE TABLE Houses( id SERIAL...
true
f679dbe6933c3930a5d8fb0ca77fc83b1eef0e04
SQL
determined-ai/determined
/master/static/migrations/20221216124441_add-workspace-id-to-models.tx.up.sql
UTF-8
201
3
3
[ "Apache-2.0" ]
permissive
DO $$ BEGIN EXECUTE format('ALTER TABLE models ADD workspace_id INT REFERENCES workspaces(id) NOT NULL DEFAULT %L' , (SELECT MIN(id) FROM workspaces WHERE name = 'Uncategorized')); END $$;
true
fcd45b417fdf8dd650f1a06bf3004cc546c8ea7b
SQL
hamzahfauzy/wma-ud-gisem
/wma_gisem.sql
UTF-8
4,257
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 12, 2020 at 10:25 AM -- Server version: 10.1.35-MariaDB -- PHP Version: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
896ccf1ea58972ce9593a0b6d4f7a796c1993ca7
SQL
slavikp/SQL
/mmn_11/Q_5_6.sql
UTF-8
756
4.03125
4
[]
no_license
with lawyers as ( select lonfile.fid, lawyer.lname , file.cname from lonfile left join lawyer on lawyer.lname = lonfile.lname left join file on file.fid = lonfile.fid where partner is null union select fid, lawyer.lname, file.cname from file left join lawyer on lawyer.lname = file.lname where partner is n...
true
ed86c12542712a65702a76b595a52c4d5ade3978
SQL
Dumplings-Reloaded/Mrinal-Nav-Bar
/db/schema.sql
UTF-8
502
2.8125
3
[]
no_license
-- \c postgres DROP DATABASE IF EXISTS newproducts; CREATE DATABASE newproducts; \c newproducts DROP TABLE products; CREATE TABLE products ( id SERIAL PRIMARY KEY NOT NULL, name VARCHAR (255) NOT NULL, price INTEGER NOT NULL, img VARCHAR(255) NOT NULL ); -- INSERT INTO product (name, price, i...
true
7c171f388485037064a1d4659a45b48c55057df7
SQL
ganeshbabuNN/Databases
/RDMS/Oracle Database/Select_Data_Sorting_MoreColumns.sql
UTF-8
256
3.15625
3
[]
no_license
--Sorting more then many columns select hire_date,salary,first_name,last_name from employees order by hire_date,last_name DESC; --with column ASC or other DESC select hire_date,salary,first_name,last_name from employees order by hire_date DESC ,salary ASC;
true
96a9c68e7baa6c275aa68c8f965d9e48f03f1233
SQL
sunaoka/emlauncher
/data/sql/guest_pass.sql
UTF-8
807
3.140625
3
[ "MIT" ]
permissive
drop table if exists `guest_pass`; CREATE TABLE `guest_pass` ( `id` int(11) NOT NULL AUTO_INCREMENT, `app_id` int(11) NOT NULL, `package_id` int(11) NOT NULL, `mail` varchar(255) NOT NULL, `token` varchar(32) NOT NULL, `created` datetime NOT NULL, `expired` datetime NOT NULL, PRIMARY KEY (`id`), KEY `...
true
0b0539d3dc53cd4d53b8f1c7a7dffa18a31eec23
SQL
Tulus1804/Pemrograman1_Tugas-Besar
/dbwebsekolah.sql
UTF-8
7,826
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 28 Jun 2019 pada 08.09 -- Versi server: 10.1.38-MariaDB -- Versi PHP: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
22d0218645b47c5d904f46858829f26c71bf9883
SQL
MLClark/Bookmarks
/Benefit Specific/COBRA/AWT/QBEVENT/awt-qbevent-termed-ee.sql
UTF-8
3,068
3.53125
4
[]
no_license
SELECT distinct pi.personid ,pe.emplstatus ,'TERMED EE' ::varchar(30) as qsource ,'[QBEVENT]' :: VARchar(35) as recordtype ,case when pe.emplevent = 'InvTerm' and pe.empleventdetcode = 'Death' then 'DEATH' when pe.emplstatus = 'T' and pe.emplevent = 'VolTerm' then 'TERMINATION' when pe.emplstatus = 'T...
true
6048dfdbe397ea283a3a2d3f9fddb045335c3da4
SQL
npsasiapac/dataload
/DataLoadAreas/HRA/dl_hra_rds_tab_new.sql
UTF-8
47,363
2.890625
3
[]
no_license
-- -- dl_hra_rds_tab_new.sql -- --------------------------------- Comment ------------------------------------- -- -- Script to ensure the RDS Dataload Tables have -- the correct columns. This script does not drop the -- dataload tables, just adds in any missing columns. -- ---------------------------------------------...
true
cceb8fa4be65d872a92a800a4544bf06fbd4f338
SQL
Thomsath/symfonema
/exercice.sql
UTF-8
1,847
4.3125
4
[]
no_license
-- 1/ rajouter un film INSERT INTO `movie` (`id`, `title`, `release_date`, `genre`, `duration`, `synopsis`, `producer`, `image`, `updated_at`) VALUES (NULL, 'titre', '2019-05-01 00:00:00', 'Aventure', '145', 'synopsis', 'producteur', 'image.png', '2019-05-02 16:13:03'); -- 2/ récupérer tous les noms de films SELECT ...
true
3c55ab7d6e735b4dee5ce196e286d7661eef896d
SQL
jdrew1303/sqlgenerate
/test/spec_sql/official-suite/tkt-8454a207b9-1.sql
UTF-8
733
2.609375
3
[ "MIT" ]
permissive
-- original: tkt-8454a207b9.test -- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test CREATE TABLE t1(a); INSERT INTO t1 VALUES(1); ALTER TABLE t1 ADD COLUMN b TEXT DEFAULT -123.0; SELECT b, typeof(b) FROM t1 ;ALTER TABLE t1 ADD COLUMN c TEXT DEFAULT -123.5; SELECT c, typeof(c) FROM t1 ;ALTER...
true
d85531a0d722c005c6ca41468e3335db7ba47f3f
SQL
GitHarr/SoftUni
/Homework/DBFundamentals/Databases Basics/09.ExamPrep03January2018/PrepExamExercises/PrepExamExercises/11. Kinda Person.sql
UTF-8
388
4.28125
4
[ "MIT" ]
permissive
SELECT Manufacturer, Model, SUM(CountOfOrdersId) AS TimesOrdered FROM( SELECT m.Manufacturer, m.Model, v.Id, COUNT(v.Id) AS CountOfOrdersId FROM Orders AS o LEFT JOIN Vehicles AS v ON v.Id = o.VehicleId RIGHT JOIN Models AS m ON m.Id = v.ModelId GROUP BY m.Manufacturer, m.Model, v.Id) AS H1 GROUP BY Manuf...
true
55ae1e98162123f08da11f9f2b79c95e122fe3e2
SQL
richiMarchi/E-cantoun-dla-pida
/Web/sql/ecantoun.sql
UTF-8
12,026
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Creato il: Feb 15, 2018 alle 17:04 -- Versione del server: 10.1.26-MariaDB -- Versione PHP: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
5454a455786a13f5a5fceaea9ce4eac38e3f86dd
SQL
calvinfeng/sling
/migrations/2_create_rooms.up.sql
UTF-8
134
2.828125
3
[]
no_license
CREATE TABLE rooms ( id SERIAL PRIMARY KEY, name VARCHAR(255) UNIQUE, room_type BIT ); CREATE UNIQUE INDEX ON rooms(id);
true
a86786cab6e3bfe9535816d834f3941248ded066
SQL
garthredshaw/nt_projects
/Dashboards/v3.2/Home - Active vs Archived Jobs - Recruiter Manager.sql
UTF-8
1,650
4.1875
4
[]
no_license
-- Home - Active vs Archived Jobs - Recruiter Manager.sql -- Requirements -- ============ -- Advertised = date jobs first moved into RWF step where published = true) -- Archived = (date jobs first moved into RWF step = archived) -- The data is genereated for the last 3 months -- Data context = Recruiter Managers only ...
true
beb64125548d74d80be70f2ce015157e9a5b54d1
SQL
sabeekbinsayeed/Money-Saver
/host/brandexpense.sql
UTF-8
1,187
3.5
4
[]
no_license
set verify off; set serveroutput on; declare bname brand.bname@site_link %type := '&brandname' ; value expense.category@site_link %type; a customer.cid@site_link %type := &id; customername customer.cname@site_link %type; cnt number :=0; cost number :=0; flag number :=0; error_input exception; begin if (a =...
true
2cade14ccf7316dd7b9bd05bc844b2458dfbbaa0
SQL
ninggc/ClassDesign
/Java Web/CMS_N/ddl definition sql/init.sql
UTF-8
3,489
3.515625
4
[]
no_license
-- MySQL Script generated by MySQL Workbench -- 07/05/17 10:07:48 -- 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='TRADITION...
true
b9c8746d5703fa26d5f6eb6380f976413c193499
SQL
altamira/visualstudio
/Sistema de Informação Altamira/EGISSQL.Database/dbo/Stored Procedures/Procs2/pr_pedidos_geracao_cnc.sql
UTF-8
1,537
3.484375
3
[]
no_license
 --pr_pedidos_geracao_cnc ------------------------------------------------------------------------------------------- -- Polimold -- Stored Procedure : SQL Server -- Autor(es) : Cleiton Marques -- Banco de Dados : EGISSQL -- Objetivo : Consulta de Pedidos para a geração de Programas CNC -- Data ...
true
e2fc2d665c350ad8ba889516a6b60f72a97b692a
SQL
ramaadis/UAS
/id17255428_db_pemroweb2_uas_kelompok_5.sql
UTF-8
3,522
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 16, 2021 at 02:03 AM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
true
6eca0d4db19b8a504253e2256e403eb94e87a05a
SQL
abdev2019/Gestion-des-commandes-Etablissements-scolaires-avec-Framework-LARAVEL
/ouvrages v.f.sql
UTF-8
87,050
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 04, 2017 at 08:58 PM -- Server version: 10.1.25-MariaDB -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
7e0ff8da38f4a745c7b80a698f9f0823ae1e7703
SQL
Zachcodes/map-prototype
/db/init.sql
UTF-8
1,166
3.46875
3
[]
no_license
create table user_roles ( id serial primary key, role text ) create table if not exists primary_industry ( id serial primary key, industry_name text, api_name text ) create table if not exists business ( id serial primary key, business_name varchar(150), email varchar(100), phone v...
true
7aada653ee205a73358bc0025f3509873e5512af
SQL
jujulike/PHP
/doc/database/upgrade/v1.0.8.sql
UTF-8
2,934
3.75
4
[]
no_license
### v1.0.8 ### #store_user表 - 新增字段# ALTER TABLE `hema_store_user` ADD COLUMN `type` tinyint(3) unsigned NOT NULL DEFAULT '10' COMMENT '用户类型,10=超级管理,20=商户管理'; ADD COLUMN `expire_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '到期时间'; #store_user表 - 新增超级管理用户,原有账号密码停用 - 新账号admin,密码:hema -# INSERT INTO `hema_store_us...
true
3e9fa0765f42a859dbb61ac0379fbf4c898cb949
SQL
alexandresampaio/SocialNetwork
/config/db/aularedesocial.sql
UTF-8
1,883
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tempo de Geração: -- Versão do Servidor: 5.5.24-log -- Versão do PHP: 5.3.13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SE...
true
615320de3bead63214756887b4616123510972d6
SQL
troyismad99/SQL-Play
/leetCode/0180-ConsecutiveNumbers.sql
UTF-8
1,795
4.5
4
[ "Unlicense" ]
permissive
/* Table: Logs +-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | num | varchar | +-------------+---------+ id is the primary key for this table. Write an SQL query to find all numbers that appear at least three times consecutively. Return the result tabl...
true
268f701e8659cd08fe80726b2c75a4bc9b369dab
SQL
KaterynaD/Mini-ETL-Tool
/postgres/sql/create_f_cases.sql
UTF-8
966
3.1875
3
[]
no_license
create table f_cases( id SERIAL, cid varchar(20) not null , priority_id integer not null, createdDt_id integer not null, createdDate timestamp not null, aid varchar(20) , analyst_id integer , pid varchar(20) , product_id integer, a...
true
ec05da56d47502bd8155d12772d8729e10187295
SQL
Mattwag2/Assignment-4
/queries.sql
UTF-8
395
3.78125
4
[]
no_license
## Part 1: Test it with SQL SELECT * FROM techjobs.jobs; ## Part 2: Test it with SQL SELECT name FROM techjobs.employer WHERE location is "St. Louis City"; ## Part 3: Test it with SQL DROP TABLE if exists job; ## Part 4: Test it with SQL select name, description from skill inner join job_skills on skill.id = jo...
true
ce44d5042007002d131256b0360678478e332afa
SQL
2XL/fittingCDF
/credentials/queryStep/stereotypeReceipts/downloadUsers.sql
UTF-8
320
3
3
[]
no_license
-- seleccionar usuarios por perfil -- Profile Download / Content Distribution select count(user_id) from (select *, size_put/size_get ratio from xl_user_ops_size) t where ratio >= 1000 -- and user_id in(select user_id from xl_user_id_no_si) select count(*) from u1user_profile where profile = "download"; -- 23008
true
f4606769f2fcf820796fe80c639eb4e853868656
SQL
alotrop8720/sql_task
/src/main/resources/tasks.sql
UTF-8
881
4.1875
4
[]
no_license
select role_name from m_roles; select concat(username, ' ', surname), count(*) as User_full_name from m_users inner join m_cars on m_users.id = m_cars.user_id group by username, surname; select d.name, count(*) from m_cars c inner join m_auto_dealer d on c.dealer_id = d.id inner join m_body b on c.id = b.car_id wher...
true
9fe61f4b6b7a9a739dcd8eb3a773c65ecb30dac7
SQL
barbarahso/TP_Engenharia
/Testes Usuarios.sql
UTF-8
1,299
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 04-Jul-2017 às 23:27 -- Versão do servidor: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
87114a196124c51f29d6ed483141d8f7f30f12e8
SQL
alexis-martin33/advent_of_code2020
/day2/aoc_day2.sql
UTF-8
1,368
3.84375
4
[]
no_license
create table public.day2_input( input varchar ); copy public.day2_input from '/path/to/file.csv' delimiter ',' csv; -- Part 1 select count(*) from ( select char_length(passwrd) - char_length(replace(passwrd, letter, '')) >= min_num::INTEGER AND char_length(passwrd) - char_length(replace(passwrd, letter, '')...
true
24a4aac1c7300fbfeed2932d4a43ab77b431e38b
SQL
kyorororo3/ORACLE_BITCAMP
/0618 select2.sql
UHC
4,279
4.28125
4
[]
no_license
--WHERE == IF == /* ǥ 񱳿ڿ Բ (=, >, <, !=, >=, <=, <>(ʴ) ) NULL, = NULL(Ʋ) EQUAL Ұ JAVA ׷ ȵȴ IS NULL, IS NOT NULL ()ȣ ߿ (), NOT, AND(&& ), OR(|| ٸ) SELECT FROM WHERE */ -- FIRST NAME == Julia SELECT first_name, last_name, salary FROM employees WHERE FIRS...
true
3adb7cc5daef36013c4d196480cfad4cd948e4b5
SQL
tommy8137/importwsdepro
/backEnd/db-migrate/migrates/sqls/20191202053514-modifygetmaterialview-up.sql
UTF-8
16,246
3.5625
4
[]
no_license
/* Replace with your SQL commands */ DROP VIEW IF EXISTS formula.v_me_bom_materialspec_and_material_value; CREATE OR REPLACE VIEW formula.v_me_bom_materialspec_and_material_value AS SELECT a.part_cate1_id, a.part_cate1_name, a.part_cate1_disable_time, a.part_cate2_id, a.part_cate2_name, a.part_cate2...
true
78c1eae18cb3dbad24dc44c8234a23fc4e06cab3
SQL
diogens/GameDaVeia
/sql.sql
UTF-8
1,316
2.859375
3
[]
no_license
-- -------------------------------------------------------- -- Servidor: localhost -- Versão do servidor: 5.1.72-community - MySQL Community Server (GPL) -- OS do Servidor: Win32 -- HeidiSQL Versão: 9.4.0.5125 -- --------------------------------------------------...
true
4d391b14f1bce76afbfd5be70a5fc51744d964c6
SQL
JaeeunLEE/allfc
/allfc_v1jq/WebContent/WEB-INF/doc/url_q.sql
UHC
1,191
3.765625
4
[ "Apache-2.0" ]
permissive
1. notice ̺ >>>>> /WebContent/WEB-INF/doc/url_q.sql -------------------------------------------------------------------- 1. notice ̺ - PRIMARY KEY(noticeno): noticeno÷ 2̻ ϵǴ , ߺ CREATE TABLE url( urlno INT NOT NULL AUTO_INCREMENT, -- URL ȣ title VARCHAR(100) NOT N...
true
de892d212fb8a556045e9dad0203f891dff4c0a4
SQL
sanei-dengyo-jyoho/SQL-Server
/コンピュータ振出_Q基本ソフト一覧.sql
UTF-8
706
3.515625
4
[]
no_license
with v0 as ( select a0.[基本ソフト分類№] , a0.基本ソフト分類 , b0.基本ソフト名 , c0.[コンピュータ管理№] , c0.ネットワーク数 , isnull(c0.[コンピュータ管理№],'') + '(' + convert(varchar(4),isnull(c0.ネットワーク数,0)) + ')' as [コンピュータ管理№数] , 1 as CPU from 基本ソフト分類_Q as a0 LEFT OUTER JOIN 基本ソフト名_T as b0 on b0.基本ソフト分類 = a0.基本ソフト分類 LEFT OUTER JOIN コンピュータ振出_T基本ソフト as c...
true
4ff586609f5621a7750a64a642ef4226819e092b
SQL
lolmaster277/dota_test
/dota_test.sql
UTF-8
2,053
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Ноя 14 2020 г., 09:01 -- Версия сервера: 10.4.13-MariaDB -- Версия PHP: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
e3a2ba41d8d2fb3b7aa4f2ee48bb95331109cc76
SQL
mrk8220/SQL-HW
/P15_315Krummenacker.sql
UTF-8
3,007
4.34375
4
[]
no_license
--Michael Krummenacker MIS 315 Project 15 --1. Show the lastname, first initial, and email of all men. Order by lastname. Use the LEFT() function for the first initial. SELECT lastName, LEFT(firstName, 1) AS [First Initial], email FROM Person WHERE gender = 'm' --2. Show the lastname, email, loca...
true
7207e3946694f111093575b5bda96bcc478d13c4
SQL
DTP-IT/QuanLyThuVienPHP_PDO
/ql_thuvien.sql
UTF-8
21,564
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th9 20, 2021 lúc 04:33 PM -- Phiên bản máy phục vụ: 10.4.18-MariaDB -- Phiên bản PHP: 7.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
cc52d6521f6a14c8bc3873100481108aa36b9e46
SQL
parichay28/Pokemon-MarketPlace
/backend/bin/sql/accountPokemon.sql
UTF-8
170
2.765625
3
[]
no_license
CREATE TABLE accountPokemon( "accountId" INTEGER REFERENCES account(id), "pokemonId" INTEGER REFERENCES pokemon(id), PRIMARY KEY ("accountId", "pokemonId") );
true
67e326892d5171f61bd0da65da431dcb23f4657b
SQL
0000duck/noteSql
/SqlServer/SqlServer基础/14/7/SQLQuery.sql
UTF-8
109
2.71875
3
[]
no_license
USE db_2012 SELECT ID,NAME FROM SYSINDEXES WHERE ID=(SELECT ID FROM SYSOBJECTS WHERE NAME ='Student')
true
4cae058c384aa881fb54f2bcf01fabd30694113a
SQL
gcoronelc/USIL_TPW_2017_2_TT
/Sem10/01-PERSONA.SQL
UTF-8
2,066
3.21875
3
[]
no_license
/* Empresa : EGCC Software : Sistema de Condominios DBMS : MySQL Server Base de Datos : MICONDOMINIO Script : Crea el esquema PERSONA Responsable : Ing. Eric Gustavo Coronel Castillo Telefono : (511) 9966-64457 Email : gcoronelc@gmail.com Sitio Web : http:...
true
f11b9b50d1dce7f2367e59e6d34e42d83fb1e09b
SQL
yefc/CBOE
/subprojects/Classic/DocManager/config/oracle_install_scripts/Scripts/add_docmgr_users.sql
UTF-8
2,040
3.328125
3
[]
no_license
--######################################################### --ADD TESTING USERS --######################################################### Connect &&InstallUser/&&sysPass@&&serverName prompt Dropping test users... DECLARE PROCEDURE dropUser(uName IN varchar2) IS n NUMBER; BEGIN select count(*) into n from ...
true
a3683d430b94ec777aa0fccf51af9cc390532256
SQL
sharanya1005/ncrwork
/DATABASE/SQLQuery27.sql
UTF-8
103
2.59375
3
[]
no_license
use NCR; select empname from emp where sal in (select max(sal)from emp group by job) order by sal desc;
true
0e5c57b647d32a464062174f236fc4a5bccd199c
SQL
mkravos/auto-parts-product-system
/supplemental/initial_script.sql
UTF-8
2,051
4
4
[]
no_license
-- SQL DDL CREATE DATABASE IF NOT EXISTS customer_interaction_db; USE customer_interaction_db; CREATE TABLE IF NOT EXISTS inventory ( number INT NOT NULL PRIMARY KEY, quantity INT NOT NULL ); CREATE TABLE IF NOT EXISTS customer ( customer_id INT NOT NULL AUTO_INCREMENT, email CHAR(255) NOT NULL, firs...
true
84a7d80842450be4deb92d40f7ed3f755b2a4f37
SQL
g-besse/appMediatheque
/bdd/media.sql
UTF-8
16,001
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Mer 28 Mai 2014 à 20:12 -- Version du serveur : 5.6.17 -- Version de PHP : 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_...
true
b3313ba8e0f5ee49856b8f05979712b6871f5504
SQL
allan3723/SQL-Graphviz-Parser
/river4.sql
UTF-8
183
3.421875
3
[]
no_license
SELECT distinct Name FROM river_to_river, River WHERE Name = River1 OR Name = River2 UNION SELECT distinct River.Name FROM river_to_lake, River WHERE river_to_lake.River = River.Name;
true
48d4eabb2d724e1e575bd868a97ba1f96e21ed7a
SQL
goodybag/cater-api-server
/db/deltas/1.2.138.sql
UTF-8
599
2.859375
3
[]
no_license
-- Delta DO $$ declare version text := '1.2.138'; begin raise notice '## Running Delta v% ##', version; -- Update version execute 'insert into deltas (version, date) values ($1, $2)' using version, now(); CREATE TABLE IF NOT EXISTS order_notification_failures ( id SERIAL , nid CITE...
true
c3a48b5afe025b30cd3fd7861f75350ef58b1b36
SQL
yougchen/-Logistics
/logistics.sql
UTF-8
15,426
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- 主機: 127.0.0.1 -- 產生時間: 2017-06-23 13:23:26 -- 伺服器版本: 5.7.14 -- PHP 版本: 5.6.25 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_CHARACTER_SE...
true
a751928596a8d34a3d6ad1ff9ab878fb1f8ed732
SQL
medbhcampbell/thebookattic
/thebookattic/setup/createPostgreSQLTables.sql
UTF-8
23,985
3.546875
4
[]
no_license
drop table if exists reviews; drop table if exists toread; drop table if exists haveread; drop table if exists books; drop table if exists genres; drop table if exists authors; create table authors ( id serial primary key, userid varchar(25) not null, firstname varchar(25), lastname varchar(25), avgrating float n...
true
49f5482195b0163b2776f5238dff43eeee5d398e
SQL
NathalieMartins/Setac-Web
/sql/create.sql
UTF-8
7,499
3.40625
3
[]
no_license
-- 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='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTI...
true
3f98920fcc32f5c80db5e63cfde97f0e38d48431
SQL
mmmdf/df-back
/_sql/consolidators_table.sql
UTF-8
1,708
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Sep 23, 2018 at 08:06 PM -- Server version: 5.6.22-72.0 -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
c26ace85375361e6d15903b004b4bf844e4a693f
SQL
OlafMd/MedCon1.0
/mm-libs/dbaccess/Level 3/CL3_DistributionArea/Atomic/Retrieval/SQL/cls_Get_DistributionAreas_for_Tenant.sql
UTF-8
269
2.765625
3
[]
no_license
Select log_reg_distributionareas.LOG_REG_DistributionAreaID, log_reg_distributionareas.DistributionArea_Name_DictID From log_reg_distributionareas Where log_reg_distributionareas.IsDeleted = 0 And log_reg_distributionareas.Tenant_RefID = @TenantID
true
308a4fc88178324eaf1b03e14083597e14200ab0
SQL
kky1225/SuitRental
/suitRental2/src/main/webapp/sql/table.sql
UTF-8
5,741
4.03125
4
[]
no_license
/*제품 등록*/ create table suit( x_code number not null, x_name varchar2(30) not null, x_price number(10) not null, x_stock number(10) not null, x_size varchar2(5) not null, x_brand varchar2(30) not null, x_rental_count number(10) default 0 not null, x_gender varchar2(20) not null, ...
true
262702f851a8aa615d695579e35478aaaf91f00a
SQL
s18008/SQL-
/1212/1212.2.sql
UTF-8
140
2.921875
3
[]
no_license
select last_name,first_name from employees where salary < 8000 and last_name like '%en%' and hire_date between '01-MAY-05' AND '30-JUN-06';
true
03b9a19270b2322dc8be0a051c7a76ebd834c66f
SQL
TomohiroSaito/training
/training_console/training2/database/create_table.sql
UTF-8
2,002
4.0625
4
[]
no_license
--postgresへの接続 --psql -p ポート番号 -U ユーザ名 --データベースの作成 CREATE DATABASE students; --各テーブルの削除 DROP TABLE Class CASCADE; DROP TABLE Subject CASCADE; DROP TABLE Student CASCADE; DROP TABLE Record CASCADE; --クラステーブルの作成 CREATE TABLE Class ( class_id SERIAL, class_name CHAR(1), created_at DATE, updated_at DATE, PRIMARY KE...
true
eee77e54f9316bce0b20cf3dd2b5831e69d3f164
SQL
jbredow/sql-queries
/pricing development/hvac/Step 3 HVAC Parts Promo Summary tbl 2.1.sql
UTF-8
3,331
3.359375
3
[]
no_license
--drop TABLE AAA6863.PR_HVAC_FLYER_SLS_MONTH; CREATE TABLE AAA6863.PR_HVAC_FLYER_SLS_SUMS AS SELECT CASE WHEN DTL.MSTR_CUSTNO IS NOT NULL THEN 'MSTR_' || DTL.MSTR_CUSTNO ELSE DTL.ACCOUNT_NUMBER || '_' || DTL.MAIN_CUSTOMER_NK END CUST_ROLLUP, MIN (CUST.SIGNUP_DATE) SIGNUP_D...
true
bbaca2c1af383953d8a3133394fc72b5b35641a1
SQL
tuliobmachado/mysql
/aula1/script1.sql
UTF-8
376
2.546875
3
[ "MIT" ]
permissive
/* SQL - Aula 1 @author Professor José de Assis */ -- O comando abaixo lista os bancos "<ctrl><enter> para executar" show databases; -- O comando abaixo cria um novo banco de dados (Para excluir um banco da de dados use o comando drop database seguido do nome do banco) create database agenda; show databases; -...
true
df74c0b206d458aa45b2c9f206ff347f532a40b6
SQL
hongzhangzhao/yui
/sourceCode/精通hibernate源码/chapter7/7.5/schema/sampledb.sql
UTF-8
364
3.578125
4
[]
no_license
alter table CATEGORIES drop foreign key FK6A31321CDBFCB7FC; drop table if exists CATEGORIES; create table CATEGORIES ( ID bigint not null, NAME varchar(15), CATEGORY_ID bigint, primary key (ID) ); alter table CATEGORIES add index FK6A31321CDBFCB7FC (CATEGORY_ID), add constraint FK6A31321CDBFCB7FC foreign ke...
true
5907a63538f7d4386173ed0d1b8515d1dadb8534
SQL
edwingarces/store_db
/insert.sql
UTF-8
2,479
3.234375
3
[]
no_license
USE inventory; /* Stores */ INSERT INTO stores (name, address) VALUES ('Tienda principal', 'Calle Ríos #32'); INSERT INTO stores (name, address) VALUES ('La tienda de Jorge', 'Calle Astros #64'); /* Employees */ INSERT INTO employees (store_id, name, address, phone, email, password, genre) VALUES (1, 'Katherine...
true
9058b2dbe4370d14ece2dd493359f9c3f09308d1
SQL
SER515Team7/Evalu8
/MySQL_Workspace.sql
UTF-8
479
3.296875
3
[]
no_license
/*This is a SQL file to store the important queries which may be used only for testing purposes by any developer*/ create database student; use student; Create table student( studentId INT NOT NULL AUTO_INCREMENT, name VARCHAR(12) NOT NULL, dateOfBirth VARCHAR(12) NOT NULL, PRIMARY KEY (studentId) ); /*insert into s...
true
8bee4c7ea8a7456db72572303a1905f8f500206c
SQL
Zlatimir/SOFTUNI
/JavaDB/07. MySQL - Database Programmability and Transactions/02. Employees with Salary Above Number.sql
UTF-8
385
3.0625
3
[]
no_license
DROP PROCEDURE IF EXISTS usp_get_employees_salary_above; DELIMITER ## CREATE PROCEDURE usp_get_employees_salary_above(salary_limit DOUBLE(19,4)) BEGIN SELECT first_name, last_name FROM employees AS e WHERE e.salary >= salary_limit ORDER BY first_name, last_name; END## DELIMITER ; CALL usp_get_employees_salar...
true
fb660f0d0f6955930898b606fe890284cb2f93cf
SQL
alyssonajackson/bancodedados-atividades-e-exemplos-em-sala
/atividade-sql-clinica/clinica.sql
UTF-8
7,409
2.953125
3
[]
no_license
 -- MySQL dump 10.13 Distrib 5.1.51, for Win32 (ia32) -- -- Host: localhost Database: clinica -- ------------------------------------------------------ -- Server version 5.1.51-community /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_S...
true
37c0e5a66d8e5d6ebaccf1d9776e8f58159b31c1
SQL
htmlacademy-php/1470531-yeticave-12
/queries.sql
UTF-8
12,180
3.09375
3
[]
no_license
USE yeticave; /* password = 123456 */ INSERT INTO users (email, password, name, message) VALUES ('mail1@mail.local', '$2y$10$aH5llwcVwmClhqSP2OqhLeHLDOlhO4VRXIBZMMxeBkySUwd8AE24G', 'Вася', '8900-000-00-00'), ('mail2@mail.local', '$2y$10$aH5llwcVwmClhqSP2OqhLeHLDOlhO4VRXIBZMMxeBkySUwd8AE24G', 'Петя', 'mail@mail....
true