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
180abecbec2cdb6b3bf1b112de9d300165fc50b1
SQL
bin-lin/slr_paper_select
/paper_select/schema.sql
UTF-8
533
3.4375
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS paper; DROP TABLE IF EXISTS remark; CREATE TABLE paper ( id INTEGER PRIMARY KEY AUTOINCREMENT, title TEXT NOT NULL, authors TEXT, abstract TEXT, venue TEXT, year INTEGER, doi TEXT, source TEXT ); CREATE TABLE remark ( id INTEGER PRIMARY KEY AUTOINCREMENT, paper_id INTEGER NOT ...
true
c3bd160094441c763606b767eee723782fc6756f
SQL
mlewinski/UserDB
/lab7.sql
UTF-8
1,600
3.3125
3
[]
no_license
CLEAR SCREEN; SET LINESIZE 230; alter session set nls_date_format="YYYY-MM-DD"; create or replace procedure pUSER_Validate_Length is length_below_zero exception; PRAGMA EXCEPTION_INIT(length_below_zero, -20005); type user_record is record( u_id users.use_id%type, u_nickname users.use_nickname%type ...
true
57a1714d45118e8df9cb94c428121ed65cfff22a
SQL
italonerd/PHP
/BlogPhp/extras/sql.sql
WINDOWS-1250
2,754
3.453125
3
[]
no_license
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; CREATE TABLE IF NOT EXISTS `categoria` ( `id_categoria` int(11) NOT NULL AUTO_INCREMENT, `nome` varchar(60) NOT NULL, PRIMARY KEY (`id_categoria`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; INSERT INTO `categoria` (`id_categoria`, `nome`) VALUES (1, 'Sem ca...
true
8f9c8ab3394bfac4ee4fd202f28d555526fc0e41
SQL
MaciekDudynski/bd2
/sklep_mysql.sql
UTF-8
17,360
2.953125
3
[]
no_license
-- USUWANIE STAREJ BAZY DANYCH: DROP TABLE IF EXISTS ZAMOWIENIA; DROP TABLE IF EXISTS SZCZEGOLY_ZAMOWIENIA; DROP TABLE IF EXISTS PRODUKTY; DROP TABLE IF EXISTS DOSTAWCY; DROP TABLE IF EXISTS KATEGORIE; DROP TABLE IF EXISTS PRACOWNICY; DROP TABLE IF EXISTS KLIENCI; DROP TABLE IF EXISTS KONTAKTY; DROP TABLE IF EXISTS ADR...
true
9178f65deb1e6574fe2f8fb6302d7f8938afedf8
SQL
minhvu2403/C0221G1-VoMinhVu
/module3/case_study/case_task_16_17_18.sql
UTF-8
1,601
3.765625
4
[]
no_license
USE case_study; /*16.Xóa những Nhân viên chưa từng lập được hợp đồng nào từ năm 2017 đến năm 2019.*/ SET SQL_SAFE_UPDATES = 0; DELETE FROM nhanvien WHERE NOT EXISTS(SELECT hopdong.id_nhan_vien FROM hopdong WHERE hopdong.ngay_lam_hop_dong BETWEEN '2017-01-1' AND '2019-12-31' AND hopdong.i...
true
c886d5e32ea93d93a0853251c61df98a46c9ffbf
SQL
germantagli/CognitiveHack
/api/db/db_CognitiveHack_db_Schema.sql
UTF-8
1,166
3.625
4
[]
no_license
-- -- Database: `CognitiveHack_db` -- CREATE DATABASE IF NOT EXISTS `CognitiveHack_db`; USE `CognitiveHack_db`; CREATE TABLE IF NOT EXISTS `user` ( `username` varchar(30) NOT NULL UNIQUE, `password` varchar(32) NOT NULL, `name` varchar(30) , `surname` varchar(30) , `mail` varchar(30) , -- RELAZIONI `_id...
true
0984a3fb2d257955b06df2ce78e9d85ddda33894
SQL
diwangs/IF3110_ProBook-services
/ProBook/database/bookstore.sql
UTF-8
5,552
3.40625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.12, for Win64 (x86_64) -- -- Host: localhost Database: bookstore -- ------------------------------------------------------ -- Server version 5.5.5-10.1.36-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SE...
true
62f298ce69a461abf8bd1184d59c99ad38967b99
SQL
ZF2Buch/kapitel22
/data/db/shop.sqlite3.sql
UTF-8
319
3.3125
3
[]
no_license
PRAGMA foreign_keys = OFF; BEGIN TRANSACTION; DROP TABLE orders; CREATE TABLE orders (id integer primary key, cdate datetime, status varchar(8), positions text, comments text, user_id integer, FOREIGN KEY(user_id) REFERENCES users(id)); CREATE INDEX orders_user_id on orders(user_id); COMMIT; PRAGMA foreign_keys = ON;
true
a098b3b9f2722988dc0d57468f977e420c6b0319
SQL
no-self-required/Food-Pick-up-Ordering
/db/schema/04_order_items.sql
UTF-8
258
2.90625
3
[]
no_license
DROP TABLE IF EXISTS order_items CASCADE; CREATE TABLE order_items ( id SERIAL PRIMARY KEY NOT NULL, order_id INTEGER REFERENCES orders(id) ON DELETE CASCADE, menu_item_id INTEGER REFERENCES menu_items(id) ON DELETE CASCADE, price DECIMAL(5, 2) );
true
eca00a5d70eff2483ab978cde9f02f6a11e740da
SQL
lingyielia/bigData
/sql/answers.sql
UTF-8
6,186
4.09375
4
[]
no_license
-- show all tables select * from pg_catalog.pg_tables where schemaname != 'pg_catalog' and schemaname != 'information_schema'; -- public employees postgres false false false false -- public orderdetails postgres false false false false -- public orders postgres false false false false ...
true
689ca2878136bfd823573c2df8973c40966cf737
SQL
vishakh2494/DataBase
/11_Cursor.sql.sql
UTF-8
432
2.859375
3
[]
no_license
DECLARE D_DID DONOR.DID%type; D_FNAME DONOR.FNAME%type; D_BLOODGROUP DONOR.BLOODGROUP%type; CURSOR D_DONOR is SELECT DID, FNAME, BLOODGROUP FROM DONOR; BEGIN OPEN D_DONOR; LOOP FETCH D_DONOR into D_DID, D_FNAME, D_BLOODGROUP; EXIT WHEN D_DONOR%notfound; dbm...
true
be660ad2c5460a0d4df5cb2b3d66faff642bb4f5
SQL
mrtauern/web_shop_db
/MySQL/old/storedProcedures1.sql
UTF-8
5,707
3.171875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.21, for macos10.15 (x86_64) -- -- Host: 127.0.0.1 Database: web_shop -- ------------------------------------------------------ -- Server version 5.7.26 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *...
true
13d64d9eaa54f97193de1174994601d69ab64c87
SQL
lottarini/dbmesh-condor-scripts
/queries/tpch-variations/16.test-distinct.sql
UTF-8
657
4
4
[]
no_license
-- for every part that satisfies the conditions list the number of suppliers providing it w/o customer complaints select p_partkey, p_brand, p_type, p_size, --count(distinct ps_suppkey) as supplier_cnt ps_suppkey from partsupp, part where p_partkey = ps_partkey and p_brand in ('Brand#14', 'Brand#22', 'B...
true
c9cd535b0a594bf32d82ef8c4d6fc9661c41ebc9
SQL
soumendas123/php
/auction_system1.sql
UTF-8
5,214
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 18, 2019 at 10:24 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
00abf07739282f58e29a59354de34d8d22d446b0
SQL
erda-project/erda
/.erda/migrations/orchestrator/20211031-mysql-account.sql
UTF-8
2,563
3.75
4
[ "Apache-2.0" ]
permissive
UPDATE tb_addon_instance SET kms_key = '' WHERE kms_key IS NULL; ALTER TABLE tb_addon_instance MODIFY COLUMN `kms_key` VARCHAR(64) NOT NULL DEFAULT '' COMMENT 'kms key id'; ALTER TABLE tb_addon_attachment add column mysql_account_id varchar(36) NOT NULL DEFAULT '' COMMENT 'mysql account in use'; ALTER TABLE tb_ad...
true
bd61684a0cbab04f22e63c3b5681e6c51a008dcc
SQL
ZahraaSaied/myProjects
/PHP/search/search.sql
UTF-8
2,580
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 22, 2018 at 09:47 AM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
747cabc8b645df759a1d93af2e690e978c7b7405
SQL
ramakrishna-namburu/vhcbcloud
/VHCB.Database/dbo/Stored Procedures/GetAltEnergyList.sql
UTF-8
466
3.3125
3
[]
no_license
 create procedure GetAltEnergyList ( @ConserveID int, @IsActiveOnly bit ) as --exec GetAltEnergyList 1, 1 begin select ca.ConsserveAltEnergyID, ca.LkAltEnergy, lv.Description as AlternativeEnergy, ca.RowIsActive from ConserveAltEnergy ca(nolock) left join LookupValues lv(nolock) on lv.TypeID = ca.L...
true
a1fa1362716befadbec9cad5213456de988d10aa
SQL
104corp/laravel-eloquent-generator
/tests/Fixtures/sqlite.sql
UTF-8
847
3.0625
3
[ "BSD-3-Clause" ]
permissive
DROP TABLE IF EXISTS `should_return_int`; CREATE TABLE `should_return_int` ( `increment_field` INTEGER PRIMARY KEY AUTOINCREMENT, `smallint_field` SMALLINT(5) NOT NULL, `mediumint_field` MEDIUMINT(7) NOT NULL, `int_field` INT(11) NOT NULL, `bigint_field` BIGINT(20) NOT NULL ); DROP TABLE IF EXISTS `should_r...
true
707b9c6eed2ee980d06975be200663532d1f45e0
SQL
SayantoRoy/PRATIBHAPOP
/PRATIBHAPOP/HKP/SkillProcess.sql
UTF-8
679
3.171875
3
[]
no_license
CREATE TABLE [HKP].[SkillProcess] ( [Id] VARCHAR (10) NOT NULL, [ProcessId] VARCHAR (10) NOT NULL, [SkillId] VARCHAR (10) NOT NULL, [AddedBy] VARCHAR (30) NOT NULL, [AddedDate] DATETIME NOT NULL, [AddedFromIP] VARCHAR (15) NOT NULL, [UpdatedBy] VARCH...
true
bed9f1ec6b49a7c63789523fe80277f01f6871b1
SQL
JosephLamacchia/Project-2
/DwayneDBScript.sql
UTF-8
780
2.984375
3
[]
no_license
drop table employee ; create table employee ( id serial, email varchar(50), password varchar(50), firstname varchar(50), lastname varchar(50), manager bool, m_id int ); insert into employee values (default, 'dwayne.fraser@revature.net', 'pass1', 'FirstName1', 'LastName1', false, 1); insert into empl...
true
d0c64cdca7cc3f28e7b04dd427c1b9901da836a5
SQL
ru04ru041989/MOOC
/Udacity/SQL/window_function_practice.sql
UTF-8
3,639
4.6875
5
[]
no_license
# Window Functions ''' create a running total of standard_amt_usd (in the orders table) over order time with no date truncation. Your final table should have two columns: one with the amount being added for each new row, and a second with the running total.''' SELECT standard_amt_usd, SUM(standard_amt_usd) OVER...
true
131f9693c2c1c6456beb8d4e81f4b27d5f1704a8
SQL
haperezs/web-applications-development
/Lab 12/crearBd.sql
UTF-8
2,388
3.875
4
[]
no_license
--Crear tablas-- IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Materiales') DROP TABLE Materiales CREATE TABLE Materiales ( Clave numeric(5) not null, Descripcion varchar(50), Costo numeric (8,2) ) IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Proveedore...
true
94366d51e255f24934f7a1e50a533667b00b1172
SQL
grijalva10/sales_muscle
/protected/modules/contacts/data/install.sql
UTF-8
13,133
3.328125
3
[ "MIT", "AGPL-3.0-only", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "AGPL-3.0-or-later" ]
permissive
DROP TABLE IF EXISTS `x2_contacts`,`x2_subscribe_contacts`; /*&*/ CREATE TABLE `x2_contacts` ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` VARCHAR(255), nameId VARCHAR(250) DEFAULT NULL, firstName VARCHAR(255) NOT NULL, lastName VARCHAR(255) NOT...
true
54b693e4e94481105877e003cdf2e596873d54e0
SQL
Samiralili/Projet_eval1
/Question1_Création Table Méteo.sql
UTF-8
400
3.09375
3
[]
no_license
#Modification base de données CREATE TABLE if not exists meteo ( idmeteo int not null, date date, qte_precipitation int(4), saison enum('hiver','printemps','été','automne'), temp_moyenne float(4), temp_minimale float(4), temp_maximale float(4), idterrain int(10) unsigned, constraint pk_idmeteo primary key (idmeteo), c...
true
df91902ade33d91de314b12be93f34ef21560b28
SQL
icsmv001/projeto33-Ocorrencia_V4
/sql/oracle/2.table.sql
UTF-8
654
3.59375
4
[]
no_license
CREATE TABLE aluno.tab_role ( role_code NUMBER, role_name VARCHAR2(20 CHAR) ); ALTER TABLE aluno.tab_role ADD CONSTRAINT pk_role PRIMARY KEY (role_code); CREATE TABLE aluno.tab_func ( func_code NUMBER, func_name VARCHAR2(30 CHAR), func_rmnt_val NUMBER(10, 2), role_code NUMBER )...
true
ae1f8aa2a54a6cad10514528c30f03f4b658bb7a
SQL
russbellc/CITAPP
/Create CITAPP Data - Bretz/CitappTables.sql
UTF-8
1,880
3.515625
4
[]
no_license
CREATE TABLE Usuario( Id INT, Usuario VARCHAR(20), Pass VARCHAR(30), Nombre VARCHAR(200), Apellido VARCHAR(200), Telefono BIGINT CONSTRAINT tablaPK PRIMARY KEY (Id), CONSTRAINT tablaUQ UNIQUE (Id) ) create TABLE Doctor( UsuarioId INTEGER PRIMARY KEY, Especialidad VARCHAR(200) CONSTRAINT tablaFK FOREIGN KEY (UsuarioId)...
true
0ac5658e9de706fad7d7c45fa324ce6a523a2273
SQL
evrimulgen/Sapia_Oracle
/documentos_revisar/BASE_DATOS/scripts/VALIDACION_IB.sql
UTF-8
1,538
3.8125
4
[]
no_license
DECLARE TYPE CUR_C IS REF CURSOR; C1 CUR_C; COD_CLI VARCHAR2(40); MONTO NUMBER; COD_CLIIB VARCHAR2(40); SALDOS NUMBER; SALDOS_KARDEX NUMBER; FEC_ACT DATE; BONO_ACT NUMBER; BEGIN OPEN C1 FOR SELECT I.ADMPV_COD_CLI, COUNT(1) MONTO FROM PCLUB.ADMPT_CLIENTEIB I WHERE I.ADMPV_COD_CLI IS NOT NULL AND I.ADMPC_ESTADO='A' GRO...
true
9fbc010f63d5b8555d387849ca056cb1a7134876
SQL
Y-Wakuta/pg_instances_with_fdw
/coordinator/result_ver_10_1.sql
UTF-8
24,168
3.328125
3
[]
no_license
---------------------------------------------------- --./Query/00-get_tables.sql ---------------------------------------------------- \d ---------------------------------------------------- --result ---------------------------------------------------- public|actor|foreign table|postgres public|actor_plays|foreign table...
true
bd748a6bbb8386080ca187f169760673976db45f
SQL
unepwcmc/SAPI
/db/views/eu_decisions_view/20200514150717.sql
UTF-8
3,566
3.921875
4
[ "BSD-3-Clause" ]
permissive
SELECT taxon_concept_id, taxon_concepts.taxonomic_position, (taxon_concepts.data->'kingdom_id')::INT AS kingdom_id, (taxon_concepts.data->'phylum_id')::INT AS phylum_id, (taxon_concepts.data->'class_id')::INT AS class_id, (taxon_concepts.data->'order_id')::INT AS order_id, (taxon_concepts.data->'family_id...
true
72d74fa7836da3db7e8cbd04d6a807f38d5723fb
SQL
BAlleyneDev/Website-Design-Patterns
/assigncode/sqldumps/pages.sql
UTF-8
1,245
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Apr 11, 2018 at 09:07 PM -- Server version: 5.7.19 -- 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_CHA...
true
2dd3337e2557d382d48d0cfc48be037b4b09cd5f
SQL
njohanley/bcfish
/04_reporting/sql/wcrp_barrier_severity.sql
UTF-8
1,661
3.609375
4
[ "Apache-2.0" ]
permissive
WITH wcrp_types AS (SELECT c.aggregated_crossings_id, c.watershed_group_code, CASE WHEN crossing_source = 'PSCIS' THEN 'ASSESSED' ELSE 'NOT ASSESSED' END AS assessment_status, CASE WHEN crossing_source = 'MODELLED CROSSINGS' AND barrier_status = 'PASSABLE' THEN 'MODELLED AS PASSABLE' -- b...
true
d166591f7499290f79d10c5a762e6f9b89a44bce
SQL
elliae01/Pargon-PHP-File-Updater-
/Database_Tables/database before demo.sql
UTF-8
6,889
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 03, 2018 at 11:07 AM -- Server version: 5.5.57-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
0121f7c0907448c3e57fdc7eef3b79b415aaa960
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day20/select0254.sql
UTF-8
191
2.671875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-19T02:54:00Z' AND timestamp<'2017-11-20T02:54:00Z' AND SENSOR_ID='2b549d82_f3bf_4b4e_933f_abd5499af489'
true
2511df1768d9769ff7f4256ba3ff6aff11558bee
SQL
Hanselnp/sisfo_4007_api
/sql_folders/login.sql
UTF-8
1,847
3.0625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 17, 2019 at 04:56 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
aad815fcd6a2e28ec4c718c9101075b6c5e426ea
SQL
liutaota/b2b2
/zt-b2b/zt-b2b-service/src/main/sql/2021-01/20210111_0932_DDL.sql
UTF-8
2,094
3.03125
3
[]
no_license
/***************************************************************/ -- 功能描述: erp收款单-退款 -- 创建人员:tang -- 创建日期:2021-01-11 -- /**************************************************************/ -- Add/modify columns alter table ERP_B2B_ORDER_REC_DOC add refund_state VARCHAR2(100); alter table ERP_B2B_ORDER_REC_DOC ...
true
83ceac16be2551535ee0e587336045b0507a34ba
SQL
ardavanhashemzadeh/SQL-OpenDental
/PrinterStuff.SQL
UTF-8
532
3.6875
4
[]
no_license
/* Ardavan Hashemzadeh */ /* Print Printer Prefrences Per PC */ SELECT CompName, PrintSit, PrinterName, DisplayPrompt FROM printer NATURAL JOIN computer; /* Prompt for Printer */ UPDATE printer SET DisplayPrompt=1; /* Add Missing Prefrences */ INSERT INTO printer(ComputerNum, PrintSit, PrinterName, DisplayPrompt) S...
true
7b333bc147a9da67a2b07a6efb9b07b8b3e25087
SQL
isfan93/testing
/live/.svn/pristine/7b/7b333bc147a9da67a2b07a6efb9b07b8b3e25087.svn-base
UTF-8
9,778
2.796875
3
[]
no_license
/* MySQL Data Transfer Source Host: localhost Source Database: db_simrs Target Host: localhost Target Database: db_simrs Date: 12/1/2014 5:44:18 AM */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for sys_menu -- ---------------------------- CREATE TABLE `sys_menu` ( `menu...
true
6a5b43d0ad716fb55320a46ccdd6519d61cde473
SQL
blackx303/9321a2
/sql/createtables.sql
UTF-8
4,645
3.703125
4
[]
no_license
DROP TABLE viewer_accounts_book_screenings; DROP TABLE movies_screen_in_cinemas; DROP TABLE cinemas_have_amenities; DROP TABLE movies_have_genres; DROP TABLE viewers_rate_movies; DROP TABLE cinemas; DROP TABLE amenities; DROP TABLE genres; DROP TABLE viewer_accounts; DROP TABLE admin_accounts; DROP TABLE pending_accoun...
true
dc76f81ce775fa29a4bcbe7414036191f1751d9d
SQL
Farhaanbeeharry/Ignosia
/db/database_dump.sql
UTF-8
5,338
3.390625
3
[]
no_license
CREATE DATABASE IGNOSIA; USE IGNOSIA; CREATE TABLE USER ( ID VARCHAR(100) NOT NULL, FirstName VARCHAR(32), LastName VARCHAR(32), EmailAddress VARCHAR(64), Password VARCHAR(255), DateOfBirth VARCHAR(12), PhoneNumber VARCHAR(20), Address VARCHAR(256), UserToken VARCHAR(255), Devi...
true
ec2418a848cc73b0763901365b298b9cdd3754aa
SQL
Believeint/login_php
/Resources/Script.sql
UTF-8
880
2.875
3
[]
no_license
CREATE TABLE IF NOT EXISTS `usuarios` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nome_usuario` varchar(20) NOT NULL, `senha` varchar(64) NOT NULL, `salt` varchar(32) NOT NULL, `nome` varchar(50) NOT NULL, `data_cadastro` datetime NOT NULL, `grupo` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFA...
true
c89b1b67dcb8c27415cef6658d11c87beb7fcb23
SQL
RostislavBenes/kukbuk
/src/test/resources/db/hsql/create-script.sql
UTF-8
382
3.34375
3
[]
no_license
-- noinspection SqlNoDataSourceInspectionForFile DROP TABLE IF EXISTS category; CREATE TABLE category ( id BIGINT IDENTITY PRIMARY KEY , name VARCHAR(30), createdTime TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); CREATE TABLE recipe ( id BIGINT IDENTITY PRIMARY KEY , name VARCHAR(30), category_id...
true
96da342e3feb1511eaad61b49e233264e76d4aa8
SQL
cjtrowbridge/SmartMailer.io
/setup.sql
UTF-8
2,239
3.46875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 18, 2018 at 06:09 AM -- Server version: 5.5.60-0+deb8u1 -- PHP Version: 7.0.30-1~dotdeb+8.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; -- -...
true
118a9925f286a320a21f378a250e7dfc012b27a6
SQL
molebox/prisma-docker-integration-tests-example
/prisma/mysql/migrations/20210519060446_mysql_changed_order_name/migration.sql
UTF-8
882
3.765625
4
[]
no_license
/* Warnings: - You are about to drop the `Order` table. If the table is not empty, all the data it contains will be lost. */ -- DropForeignKey ALTER TABLE `Order` DROP FOREIGN KEY `Order_ibfk_1`; -- DropForeignKey ALTER TABLE `OrderDetails` DROP FOREIGN KEY `OrderDetails_ibfk_2`; -- DropTable DROP TABLE `Order`...
true
c0d46bb210372b5cb2132079d6bd40190d9304a1
SQL
RogerWaters/RogerWaters.RealTimeDb
/RogerWaters.RealTimeDb/Scripts/GetPrimaryIndexes.Sql
UTF-8
667
3.96875
4
[]
no_license
SELECT ix.name AS IndexName, CASE WHEN ix.is_unique_constraint = 1 OR ix.is_unique = 1 THEN 'UX' WHEN ix.is_primary_key = 1 THEN 'PK' ELSE '' END AS IndexType, c.name AS ColumnName FROM sys.tables t JOIN sys.indexes ix ON t.object_id = ix.object_id JOIN sys.index_columns ic ON ic.index_id = ix.in...
true
576c44835fa6e007c5aebb101a65eab7818122e7
SQL
bebo-eggo/compiere-eggo
/compiere-custo-eurocenter/.svn/pristine/57/576c44835fa6e007c5aebb101a65eab7818122e7.svn-base
ISO-8859-1
4,544
3.171875
3
[]
no_license
insert into AD_EntityType (AD_Client_ID, AD_Org_ID, Updated, Created, UpdatedBy, CreatedBy,AD_EntityType_ID,EntityType,name, description ,help, isactive, classpath, modelpackage, modelvalidationclasses, isregistered, version, record_id, processing, createcomponent, documentationtext, requirecompiereversion, requirecomp...
true
94e61c1a424a2d6888442cf58045c4fb93684bae
SQL
yunkangmin/sql
/Effective-SQL-master/PostgreSQL/Chapter 07/Listing 7.020.sql
UTF-8
234
2.515625
3
[]
no_license
-- Ensure you've run SalesOrdersStructure.sql -- and SalesOrdersData.sql in the Sample Databases folder -- in order to run this example. SET search_path = SalesOrdersSample; SELECT CustCity FROM Customers WHERE CustAreaCode = 530;
true
5f1730d04bc666010429131109518fde4c8dc300
SQL
Snehomoy100/MySQL-practice
/01_Basics/one_basics.sql
UTF-8
822
3.40625
3
[]
no_license
-- TODO: photo_store database creation & cameras table addition done -- CREATE DATABASE photo_store; -- SHOW DATABASES; -- SELECT DATABASE(); -- USE photo_store; -- SELECT DATABASE(); -- CREATE TABLE cameras( -- model_name VARCHAR(30), -- quantity INT -- ); -- DESC cameras; -- TODO: here we have del...
true
08eaa70d17a1e310c799c409a8f12b53401aa264
SQL
pabloamh27/TECDigitalSimulation
/Practicas/Movie DB.sql
UTF-8
5,290
3.90625
4
[]
no_license
drop schema if exists movies; create schema if not exists movies default character set utf8; use movies; drop table if exists movie; drop table if exists category; drop table if exists users; drop table if exists rating; create table if not exists category( id int not null auto_increment, category_name varchar(...
true
4bb8d066ad967b4177ef1dacc4937f8e0bac885f
SQL
Priya121212/FST-M1
/SQL/Activities/sqlscript (2).sql
UTF-8
1,985
3
3
[]
no_license
REM Script: SQL_Activity_3 REM SQL_Activity_3 select *from scoot.employee ; select *from scoot.emp ; select dep scoot.emp ; select dep scoot.emp ; select dep sccot.emp ; select * from scott.emp ; CREATE TABLE salesman ( salesman_id int, salesman_name varchar2(32), salesman_city varchar2(...
true
1f1ae1946520ecdc33b02564ea9c3db1cf2e35bc
SQL
mashinasystem/mashina
/src/main/resources/db/migration/V1__Create_db.sql
UTF-8
1,143
3.296875
3
[]
no_license
create table DRIVER ( ID serial primary key, NAME varchar(64) not null, PASSPORT varchar(10) not null unique, LICENSE varchar(10) not null unique, PHONE_NUM varchar(11), EMAIL varchar(64) not null unique, PASSWORD varchar(64) not null ); create table TICKET ( ID ...
true
5a25194b9dd6ba46632313c68545f9d2f2c7ee98
SQL
trgtboyz/StarGen
/database/star.sql
UTF-8
4,623
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 31, 2017 at 08:35 AM -- Server version: 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
027d37249e7e2ca335d3e10806fd82124be28613
SQL
asifsmtp1/springboot-hlf-rest-api-middleware
/src/main/resources/db/changelog/V1_1_0__add_table.sql
UTF-8
448
2.796875
3
[]
no_license
-- description create table user_registration_details ( urd_id int8 not null, created_at timestamp not null, updated_at timestamp not null, urd_pass_doc bytea, urd_nid_doc bytea, urd_vt_doc bytea, urd_bc_doc bytea, urd_hc_doc bytea, urd_oc_doc bytea, urd_ur_id int8 not null, primary key (urd_id) ); alter table if exis...
true
7ff28400295111b3efb84f87e73d50699b232e83
SQL
iJasonCui/big_database
/MySQL/sproc/Member/wsp_getPrefLastOnByUserId.mysql
UTF-8
288
2.859375
3
[]
no_license
DELIMITER ;; DROP PROCEDURE IF EXISTS wsp_getPrefLastOnByUserId; CREATE DEFINER='root'@'10.10.26.21' PROCEDURE wsp_getPrefLastOnByUserId ( at_userId DECIMAL (12,0) ) BEGIN SELECT pref_last_on, acceptImOn FROM user_info WHERE user_id = at_userId ; END;; DELIMITER ;
true
7adf8ef1614b7d546f6592abf07663f543dd599b
SQL
Group-404/nozama-api
/scripts/insertOrder.sql
UTF-8
221
2.90625
3
[]
no_license
INSERT INTO "Orders"("createdAt", "updatedAt", "UserId") SELECT clock_timestamp(), clock_timestamp(), id FROM "Users" WHERE email = 'klk@klk10.com'; -- select * from "Users" u inner join "Profiles" p on u.id=p."UserId";
true
a7895ceb66196754d9657ad5c2c1d6eea140079e
SQL
4nn4bel/adexdb
/trigger/tr_merchant_ai.sql
UTF-8
476
3.078125
3
[]
no_license
DROP TRIGGER IF EXISTS merchant_after_insert; DELIMITER // CREATE TRIGGER merchant_after_insert AFTER INSERT ON merchant FOR EACH ROW BEGIN INSERT INTO merchant_log (merchant_id, `action`, remarks) VALUES (new.merchant_id, 'add', concat('merchant_name: ',new.merchant_name)) , (new.merchant_id, 'add',...
true
728619579a8531d3061778b4a9cb0c84f745a04e
SQL
hnm/ci
/src/var/etc/ci/install.my.sql
UTF-8
5,704
3.28125
3
[ "MIT" ]
permissive
-- Exportiere Struktur von Tabelle mdl_template.ci_anchor CREATE TABLE IF NOT EXISTS `ci_anchor` ( `id` int(10) unsigned NOT NULL, `title` varchar(255) DEFAULT NULL, `path_part` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- Exportiere Struktur von Tabelle mdl...
true
767feb83d58ad0834079a2334952ea6b53043e3e
SQL
KatFaye/dbhw4
/prob1/createProduct.sql
UTF-8
326
3.171875
3
[]
no_license
CREATE TABLE product ( prod_id number(5) NOT NULL, prod_desc varchar(50) DEFAULT NULL, manufactr_id number(4) DEFAULT NULL, cost decimal(5,2) DEFAULT NULL, price decimal(5,2) DEFAULT NULL, PRIMARY KEY (prod_id), CONSTRAINT manufactr_id FOREIGN KEY (manufactr_id) REFERENCES manufacturer(manufactr_i...
true
cac4427bcafdb959690bcd754e75b312fdc2738f
SQL
nivertech/Olive
/Database/Schema Objects/Schemas/Auth/Tables/Keys/RoleUser.FK_RoleUser_Role.fkey.sql
UTF-8
127
2.796875
3
[]
no_license
ALTER TABLE [Auth].[RoleUser] ADD CONSTRAINT [FK_RoleUser_Role] FOREIGN KEY (RoleId) REFERENCES Auth.[Role] (RoleId);
true
f90400dcba6454e64f19b1d755dd6491f6f05131
SQL
avalderramajaramillo/sgsst
/_Documentación/ScriptBaseDatos.sql
UTF-8
2,183
3.34375
3
[]
no_license
-- 20/01/2016 -- Carga Inicial de Tablas de BD -- sg_sst --Crear el campo de empresas_persona_id en la tabla de organigramas ALTER TABLE `organigramas` ADD `empresas_persona_id` INT( 11 ) UNSIGNED NOT NULL AFTER `id` , ADD INDEX ( `empresas_persona_id` ) ; --Insertar una persona en la tabla de empresas_personas I...
true
16589776e79eedf178483727134a2fc7114a27c2
SQL
btison/angrytweet
/docker/mysql/sql/overlord-rtgov-epn.overlord-rtgov-epn.MySQL5InnoDBDialect.sql
UTF-8
4,147
3.375
3
[]
no_license
create table if not exists RTGOV_ACTIVITIES ( activityType varchar(31) not null, unitId varchar(255) not null, unitIndex integer not null, principal varchar(255), tstamp bigint, customType varchar(255), logLevel integer, message varchar(255), ...
true
07c9969106c1acdcc7b3e361d8c1cadc4451c775
SQL
giggals/Csharp
/Exercises-Data Aggregation/12.Rich Wizard, Poor Wizard/SQLQuery1.sql
UTF-8
141
3.375
3
[ "MIT" ]
permissive
SELECT SUM(e.Diff) AS [TotalSum] FROM ( SELECT DepositAmount - LEAD(DepositAmount) OVER (ORDER BY Id) AS Diff FROM WizzardDeposits ) AS e
true
ad495e5e670281ee559113d4c5f10df3b3d91c5c
SQL
alanrpfeil/Databases-SQL-lite-3-
/Lab 3/8.sql
UTF-8
278
3.265625
3
[]
no_license
Select s_name, s_acctbal from supplier where s_nationkey in ( select n_nationkey from nation WHERE n_regionkey = ( SELECT r_regionkey FROM region WHERE r_name = 'ASIA' ) )
true
3e65d022f7a762f7fdb111a9e4ab7e9b3d7ad174
SQL
naqunmiemie/ScientificResearchMIS
/sql/information.sql
UTF-8
1,562
3.0625
3
[]
no_license
CREATE DATABASE scientific_research_mis; USE scientific_research_mis; DROP TABLE IF EXISTS `information`; CREATE TABLE `information` ( `id` int(11) NOT NULL AUTO_INCREMENT, `university` varchar(256) NOT NULL, `name` varchar(256) NOT NULL, `phone_number` varchar(11) DEFAULT NULL, `title` varchar(256) DEFAULT...
true
48c4f635da81da8edd044eea846510f4c5124fb7
SQL
kabircse/php-codeigniter-tips-tricks
/MySql/MySql-MySqli-PDO.sql
UTF-8
1,317
3.59375
4
[]
no_license
/*Mysql driver using process*/ $con = mysql_connect("DBhost", "DBuser", "DBpass"); mysql_select_db("database",$con); $result = mysql_query("SELECT * FROM employee"); $res = mysql_fetch_assoc($result); /*Mysqli driver using process*/ $mysqli = new mysqli("DBhost", "DBuser", "DBpass", "database"); $result = $mysqli->qu...
true
1769d138a5f8cb1ff5c5fc313a7c91852a06adfd
SQL
RunCross/ifly-android-wuhu-workspace
/UniversityUnion/src/com/runcross/unistyu/data/sql.sql
UTF-8
1,735
3.578125
4
[]
no_license
(1)用户注册及登录模块;(2)整合腾讯微博模块;(3)失物招领模块; (4)新闻及公告通知模块;(5)用户活动发布及召集模块;(6)校园地理信息查询模块; (7)用户信息模块 --用户登录表 create table user_login( uid int primary key auto_increment, login_name varchar(50) , user_pwd varchar(12) ); --组织信息 create table union_info( union_id int primary key auto_increment, union_superior in...
true
07e35301c9a44ae32fca6e33af823f48502a6b21
SQL
srgeverson/PDV
/sql/JOIN_PED.sql
UTF-8
387
2.59375
3
[]
no_license
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Author: geverson * Created: 06/12/2018 */ SELECT `pedi_pk_id`,`clie_nome`,`pedi_status`,`pedi_total`,`pedi_quantidade` FROM...
true
fc8f3310d88eb70f61e225a72ca45763dfbda932
SQL
YuSeungRi/JavaSemiProject_Work
/outcomes/Semi.sql
UTF-8
5,275
3.609375
4
[]
no_license
--테이블 초기화 DROP TABLE board; DROP TABLE userInfo; DROP TABLE recruit; DROP TABLE reply; DROP TABLE login_log; DROP TABLE tech; DROP TABLE "project"; DROP TABLE project_tech; DROP TABLE "location"; DROP TABLE code; DROP TABLE code_category; DROP TABLE code_tech; DROP TABLE attach_file; DROP TABLE file_type; DROP SEQUE...
true
22f58cca2e109f707e6c28975938aea7b53736d6
SQL
chege-maina/php-loans
/database/tbl_loan_schedule.sql
UTF-8
1,665
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 31, 2021 at 07:14 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
4ee157fb18ddf1bd986dd9393b80db75d1262842
SQL
MaksimDenisov/DiveSQL
/DB/3.2/solution.sql
UTF-8
289
2.921875
3
[]
no_license
--Commander 5 Spacecraft 1 2020-06-01 --Commander 5 Spacecraft 2 2020-08-01 --Commander 5 Spacecraft 3 2020-10-01 SELECT c.name, s.name, start_date FROM flight JOIN commander c on flight.commander_id = c.id JOIN spacecraft s on s.id = flight.spacecraft_id WHERE commander_id = 5
true
6ed3a55c79948ae3e242d8b8c5b0a3e5062814f4
SQL
jhajagos/ny_sparcs_import
/output/SPARCS OP Format_LIMITED continuation.csv.json.sql
UTF-8
28,002
2.8125
3
[]
no_license
DROP TABLE IF EXISTS "sparcs_raw_import_continuation_2012"; create table "sparcs_raw_import_continuation_2012" ( "EDIT-DISCHARGE-NUM" bigint, "EDIT-CONTINUATION-TYPE" int, "EDIT-RECORD-SEQUENCE" int, "EDIT-SEQUENCE-COUNT" int, "Filler 1" varchar(31), "Revenue Code 1" varchar(4), "Type of Revenue C...
true
67c24d8251d2d0414492adfd3515df895982623d
SQL
FranciscoBar/usuarios
/examen_laravel/examen_laravel.sql
UTF-8
4,097
3.015625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 07-09-2019 a las 23:11:38 -- Versión del servidor: 10.1.28-MariaDB -- Versión de PHP: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
aef9c1c5905ddf5adafcd714b632ed8aba80a547
SQL
GlobalFishingWatch/identity-matching
/table_building/clav_select.sql
UTF-8
2,229
3.296875
3
[]
no_license
SELECT Attribute1_Type,Attribute1_Value,Attribute2_Type,Attribute2_Value,Start_Date,End_Date,Count,Source FROM (SELECT "clav_TUVI" Attribute1_Type, STRING(clav_TUVI) Attribute1_Value, "imo" Attribute2_Type, STRING(imo) Attribute2_Value, clav_DateAutStart as Start_Date, clav_DateAutEnd as End_Date, 0 as ...
true
778556d087cbbf8f5e5e8e1f82df1b07a8374cde
SQL
rochman414/crud-php-natif
/db/phpdasar.sql
UTF-8
3,668
2.78125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jan 14, 2020 at 11:03 PM -- Server version: 5.7.28-0ubuntu0.18.04.4 -- PHP Version: 7.2.24-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
a09ef5233676e232d1bf63b95afb675023df5007
SQL
Gabriel-etolo/ProjetActivites
/backend/script-api-rest/getPath-HE201834.sql
UTF-8
333
2.578125
3
[]
no_license
ALTER FUNCTION "DBA"."getPath"() returns long varchar deterministic BEGIN declare dbPath long varchar; declare dbName long varchar; set dbPath = (select db_property ('file')); set dbName = (select db_property('name')) + '.db'; set dbPath = left(dbPath, length(dbPath)-length(dbName)); return ...
true
5fe189cbfc22124d8a33b2707da07577c03970f7
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day23/select0513.sql
UTF-8
178
2.65625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-22T05:13:00Z' AND timestamp<'2017-11-23T05:13:00Z' AND temperature>=11 AND temperature<=99
true
3b17d04fdc9e4d9fe0356ec4055a67146c14b7b4
SQL
Trazalog/traz-comp-almacenes
/_backend/database/scripts/versiones/v1.5 tools/movimientos historicos view.sql
UTF-8
4,229
3.09375
3
[]
permissive
CREATE OR REPLACE VIEW alm.movimientos_historicos_vw AS SELECT adem.enma_id AS referencia, adem.cantidad, adem.fec_alta, aa.barcode AS codigo, aa.descripcion, al.codigo AS lote, al.cantidad AS stock_actual, ad.descripcion AS deposito, al.depo_id, 'EGRESO'::text AS tipo_mov FROM al...
true
b8742f283f882e81ebe40c15c4a0527ffd9d2576
SQL
athletejuan/notebook
/SQL Daily/Exercise/VideoShop_Questions_01_solution.sql
UTF-8
2,280
4.375
4
[]
no_license
select * from vs_sort select * from vs_tape select * from VS_RENT select * from vs_customer --1. 모든 테이프 번호와 테이프 이름을 테이프 번호순의 오름차순으로 출력하기 위한 --SQL문을 작성하시오. select tape_no, name from vs_tape order by tape_no asc --2. 특정테이프에 대해서 테이프 번호, 테이프 제목, 배급사를 보고 싶으나 --그 테이프 제목이 ‘영웅’으로 시작된다는 것만 알고 있다. 적절한 SQL 문을 작...
true
a378a36fef2d4040f97ba5679933437fecc26384
SQL
jlokiec/matchscore-server
/src/main/resources/data.sql
UTF-8
152,163
2.515625
3
[]
no_license
-- users insert into users(id,email,username,password_hash,first_name,last_name,enabled,created_at,reputation) values(1,"test1@mail.com","test1","$2a$11$0nQ/LK5J4BkL1jL/8u85Je8HvzH7/sxG1JXh/l2gwHm6x0gcBh4SO","Jan","Testowy",true,1567339200,0); insert into users(id,email,username,password_hash,first_name,last_name,enabl...
true
65063f49c2f9cc15a1afe237d8e6fc38e28a109e
SQL
ejb21/code-sample
/SQL Assignments/Budd, Eric/Budd - Final - 03.sql
UTF-8
1,059
3.03125
3
[]
no_license
DECLARE lv_projID DD_PROJECT.IDPROJ%TYPE ; lv_projName DD_PROJECT.PROJNAME%TYPE ; lv_numPledges NUMBER( 3 , 0 ) ; lv_dolPledged DD_PLEDGE.PLEDGEAMT%TYPE ; lv_avgPledge DD_PLEDGE.PLEDGEAMT%TYPE ; BEGIN lv_projID := &lv_projID ; SELECT IDPROJ , PROJNAME INTO ...
true
d979908bccc4d92fdd82a9069b0b7743ef1f2520
SQL
ariboss89/SPKFara
/faradila.sql
UTF-8
782
2.53125
3
[]
no_license
# Host: localhost (Version: 5.5.5-10.4.17-MariaDB) # Date: 2021-03-08 22:59:11 # Generator: MySQL-Front 5.3 (Build 4.81) /*!40101 SET NAMES utf8 */; # # Structure for table "tb_admin" # DROP TABLE IF EXISTS `tb_admin`; CREATE TABLE `tb_admin` ( `Id` varchar(255) DEFAULT NULL, `nama` varchar(255) DEFAULT NULL,...
true
2a17f80deb3bb48e2de4d7d08be8ebed30edaa09
SQL
jingghe/ops
/schemas/dns_2017-03-05.sql
UTF-8
3,253
3.015625
3
[ "MIT" ]
permissive
CREATE DATABASE IF NOT EXISTS `dns`; # Dump of table dhcp # ------------------------------------------------------------ DROP TABLE IF EXISTS `dhcp_host`; CREATE TABLE `dhcp_host` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `hostname` varchar(50) DEFAULT NULL COMMENT '主机名', `mac` varchar(20) DEFAULT NULL...
true
b1c47883e586c9ea807d91e2ebce52af1ea3ad8a
SQL
Yuan-Projects/yuan-pad
/data/mssql.sql
UTF-8
1,743
2.640625
3
[]
no_license
CREATE TABLE <sysuser> (uid INT IDENTITY NOT NULL PRIMARY KEY,username VARCHAR(30) NOT NULL,password CHAR(123) NOT NULL,email varchar(70) NOT NULL,reg_time INT NOT NULL); CREATE TABLE <post> (pid INT IDENTITY NOT NULL PRIMARY KEY,uid INT,uname VARCHAR(30) DEFAULT 'anonymous',content TEXT NOT NULL,post_time INT,ip CHAR...
true
6c7ff4bf76e201fb5b7ef8556b74498f96b4e83d
SQL
fm65/mercifood
/backend/database/home_projects.sql
UTF-8
5,595
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Hôte : db -- Généré le : dim. 25 juil. 2021 à 15:12 -- Version du serveur : 5.5.62 -- Version de PHP : 7.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHA...
true
2a3db694732cf2c17442781eb759870609a899f1
SQL
manzonPanda/OJT-BBCCC2
/inventory_bbccc.sql
UTF-8
22,620
2.53125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 24, 2017 at 08:23 AM -- Server version: 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
be3d255ae5b5bcf4f26cad4512224e98b1df4ae4
SQL
joel-varghese/InfiniteNew
/Day10/Working.sql
UTF-8
545
3.3125
3
[]
no_license
select PM.PID,PM.Name,DM.Doctor_ID,DM.Doctor_name,RA.Room_NO,RA.admission_date, RM.ROOM_TYPe from Doctor_Master DM INNER JOIN Patient_Master PM ON Dm.Doctor_ID=Pm.Doctor_ID INNER JOIN room_allocation RA ON PM.PId=RA.PID INNER JOIN room_master RM ON RA.room_no=RM.room_no; select PM.PID,PM.Name,DM.Doctor_ID,DM.Doctor_n...
true
481bbaf6799d79710c49775c1764a2ca46c15404
SQL
itnopadol/Program_asset_register
/MySQL/take.sql
UTF-8
3,369
2.609375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 02, 2018 at 08:49 AM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
96be4d7cacd5e6de52ccb1a31801c64def866f18
SQL
Leakune/Care-and-Help-App
/bdd/bdd.sql
UTF-8
7,429
3.515625
4
[]
no_license
-- Schema pushellp -- ----------------------------------------------------- -- CREATE SCHEMA IF NOT EXISTS pushellp; -- ----------------------------------------------------- -- Table pushellp . INDIVIDUAL -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS INDIVIDUAL ( idINDIVIDUAL I...
true
6961f62368b973239a87b271ca65883e70666a71
SQL
MadRiver44/SQL-Zoo-solutions
/old_join_tut.sql
UTF-8
1,616
4.5
4
[]
no_license
/* http://sqlzoo.net/wiki/Old_JOIN_Tutorial */ /* 1. Show the athelete (who) and the country name for medal winners in 2000 */ SELECT who, country.name FROM ttms JOIN country ON (ttms.country=country.id) WHERE games = 2000 /* 2. Show the who and the color of the medal for the medal winners from 'Sweden' */ ...
true
31762d5c29664b8c633ae0060d257c1a42e8ad1d
SQL
alfieqashwa/company-form
/prisma/migrations/20210310175826_clean_db/migration.sql
UTF-8
647
3.84375
4
[]
no_license
-- CreateTable CREATE TABLE "companies" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "name" TEXT NOT NULL, "address" TEXT NOT NULL, "revenue" INTEGER NOT NULL, "code" TEXT NOT NULL, "phone" INTEGER NOT NULL ); -- CreateTable CREATE TABLE "offices" ( "id" TEXT NOT NULL PRIMARY KEY, ...
true
22c40008d8009d7403027d5e957ac7d5e16338bb
SQL
ibis-project/ibis
/ibis/backends/tests/snapshots/test_sql/test_group_by_has_index/mssql/out.sql
UTF-8
701
3.21875
3
[ "Apache-2.0" ]
permissive
SELECT CASE t0.continent WHEN N'NA' THEN N'North America' WHEN N'SA' THEN N'South America' WHEN N'EU' THEN N'Europe' WHEN N'AF' THEN N'Africa' WHEN N'AS' THEN N'Asia' WHEN N'OC' THEN N'Oceania' WHEN N'AN' THEN N'Antarctica' ELSE N'Unknown continent' END AS...
true
9f8a8b4686c9af4cfdc447fe8899fe70f6a04209
SQL
SimonXwk/UTILS_TLMA
/tsql/tqr/requests_from_makwee/MerchPaymentWithRexID.sql
UTF-8
1,329
4.21875
4
[]
no_license
WITH cte_rex_customerid AS( SELECT SERIALNUMBER , [PARAMETERNAME] = MIN(PARAMETERNAME) , [PARAMETERVALUE] = MIN(PARAMETERVALUE) FROM TBL_CONTACTPARAMETER WHERE PARAMETERNAME LIKE '%Customer%Number%' GROUP BY SERIALNUMBER ) -- ---------------------------- SELECT B1.SERIALNUMBER ,R1.PARAMETERVALUE AS [REXID] , ...
true
8d2ebed5b8fc96a631d22be2e1df559555f3fcfb
SQL
lisansx2/aw
/aw/autumn_window/src/main/resources/sql/update/update20180510.sql
UTF-8
2,276
3.46875
3
[]
no_license
--1、删除原有表结构 --2、新建的表结构 -- Create table create table RC_SHOP_JC_DAILY ( PROVINCE_CENTER_ID NUMBER not null, SHOP_ID NUMBER not null, REPORT_DATE DATE, VOID_LOTTERY_CNT NUMBER, VOID_AMOUNT NUMBER, P...
true
0d515a1f4cbd6ba30ac67f57a377f4507708ad3f
SQL
JudithGC/FPGradoSuperior
/2DAW/M2/UF4/activitat3.sql
UTF-8
1,480
3.359375
3
[]
no_license
create or replace type ADRESSA as object ( carrer VARCHAR2(50), cp VARCHAR2(10), poblacio VARCHAR2(40), provincia VARCHAR2(40) ); / create or replace type PERSONA as object ( id NUMBER, nif VARCHAR2(20), nom VARCHAR2(20), cognom1 VARCHAR2(20), cognom2 VARCHAR2(20), data_naixement DATE, MEMBER PROC...
true
2f713c1c78eb9c969cd82d5b0a462936a725960a
SQL
mdevoldere/TediFlipQuizz
/docs/sql/flipquiz_DML2.sql
UTF-8
380
2.859375
3
[]
no_license
INSERT INTO TEAMS (team_id, team_name) VALUES (1, 'DWWM'), (2, 'CDA'), (3, 'Formateurs'); -- 2019-11-28 15:04:00 INSERT INTO GAMES (game_id, game_date, quizz_id) VALUES (1, '2019-11-28 15:04:54', 1), (2, '2020-01-03 09:30:01', 2); INSERT INTO GAMES_TEAMS (game_id, team_id) VALUES (1, 1), (1, 2), (2, 2), (2, 3); ...
true
51120328c584ab54e0b5dfe8a9d23ca9ad802594
SQL
proyectabit/camara_web_con_php_postgresql
/bd/bd.sql
UTF-8
4,018
2.796875
3
[ "MIT" ]
permissive
-- -- PostgreSQL database dump -- -- Dumped from database version 12.2 -- Dumped by pg_dump version 12.2 -- Started on 2020-04-26 16:43:18 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_catalo...
true
404edd676118bc21ff5e7220cc779ab03610086b
SQL
NWA-trails/NWA-trails-server
/createTableProfilePicture.sql
UTF-8
194
2.546875
3
[]
no_license
CREATE TABLE "profile_picture" ( id bigserial NOT NULL, username text references "users"(username), image bytea, CONSTRAINT profile_picture_pkey PRIMARY KEY (id) ) WITH ( OIDS=FALSE );
true
47bbd978edb15b274359de2228938a7360882ab3
SQL
pavvankanamarlapudi/SQL
/Assignment.sql
WINDOWS-1250
3,208
4.34375
4
[]
no_license
-- 1.Which Actor has the most distinct films in our inventory? use sakila select concat(a2.first_name,' ',a2.last_name) , count(*) from film a join film_actor f on a.film_id = f.film_id join actor a2 on a2.actor_id =f.actor_id group by f.film_id order by count(*) desc -- 2.Which Genre film...
true
8c465c582c51be8fb0c580b3a7e5806a3a8e68d2
SQL
jafarijason/mysqltutorial
/012-InnerJoin.sql
UTF-8
220
3.21875
3
[]
no_license
SELECT orderNumber, productName, msrp, priceEach FROM products p INNER JOIN orderdetails o ON p.productcode = o.productcode AND p.msrp > o.priceEach WHERE p.productcode = 'S10_1678';
true
72cbd2e7d0d77d458d404e4fbd7acad912e70287
SQL
grupobsi/trab01
/sql/left e right joins/endereco_usu.sql
UTF-8
99
2.71875
3
[]
no_license
SELECT * FROM USUARIO LEFT OUTER JOIN ENDERECO ON (USUARIO.endereco_id_fk = ENDERECO.id_endereco);
true
36dad7ad7c947170f2ade8371e7ef7919d6267c8
SQL
JonathanRH07/Control-de-versiones
/DB ICAAVweb/Suite_mig_demo/Stored_Procedures/sp_ct_glob_operador_s.sql
UTF-8
566
3.078125
3
[]
no_license
DELIMITER $$ CREATE DEFINER=`root`@`%` PROCEDURE `sp_ct_glob_operador_s`( OUT pr_message VARCHAR(5000) ) BEGIN /* @nombre: sp_ct_glob_operador_s @fecha: 15/03/2019 @descripción: Sp para mostrar registros de la tabla ct_glob_tc_operador y mostrarlos en un selector @autor : Jonathan Ramirez. @cambios: */ ...
true