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
d7e5b36f15fe6bc3f29315db077df973b720bf9c
SQL
rapter7717/speedy_scoring
/scoring_app/Game_Scoring_App.sql
UTF-8
3,790
3.515625
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 12, 2018 at 04:44 AM -- Server version: 5.6.38 -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `game_scoring_app` -- -- ------------------------...
true
d37c7a17632e5deee9d7679abf2d99df00d5a778
SQL
datacentricity/log4tsql
/Log4TSql/Log4TSql_Common_Tests/CommonSchemaTests/test log4Private.SqlException.Id primary key is unique.sql
UTF-8
644
3.015625
3
[ "MIT" ]
permissive
create procedure [CommonSchemaTests].[test log4Private.SqlException.Id primary key is unique] as begin --Assemble exec tSQLt.FakeTable @TableName = 'log4Private.SqlException' ; exec tSQLt.ApplyConstraint 'log4Private.SqlException', @ConstraintName = 'PK_SqlException' --! add the row that we are going to duplica...
true
552e2f4f588f93fccae9c4af840afb2c90617b2f
SQL
sharmel/jubilee-event-api
/database/create.sql
UTF-8
2,518
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.10 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Jul 27, 2016 at 07:40 PM -- Server version: 5.5.42-log -- PHP Version: 5.6.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `jubilee` -- -- ------------------------...
true
fa22e73f6305e2743631d81298a684f709eabb49
SQL
sevakul16/debts-bases
/debts.sql
UTF-8
2,940
3.5
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Сен 29 2018 г., 08:32 -- Версия сервера: 10.1.28-MariaDB -- Версия PHP: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
e1b4a58bb4c79f942de0a37661770a3f0077ea5c
SQL
geonidas6/baby-Recre_Symfony
/paroise.sql
UTF-8
14,374
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : mar. 25 juin 2019 à 20:32 -- Version du serveur : 10.1.37-MariaDB -- Version de PHP : 7.0.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4010...
true
7fd90d458f512254c7871739c30b5e4a9bc14543
SQL
bokdelajungla/BBDD_SQL
/JSAlor_Actividad10.sql
ISO-8859-1
2,678
4.0625
4
[]
no_license
/*Actividad 10 BBDD. Elementos base de datos*/ /*Jorge Snchez-Alor Expsito*/ /*1*//*Cambiar nombre tabla DEPARTMENTS por dept*/ ALTER TABLE HR.departments RENAME TO dept; /*2*//*Aadir una nueva columna a la tabla HR.JOBS que sea Skills, para saber qu habilidades tiene el empleado y ser de tipo cadena.*...
true
bb41b5cea3f45219c050918b1adae0293b8af39f
SQL
vikcywang/usegear02
/usegear.sql
UTF-8
5,693
3.203125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : mysql Source Server Version : 50538 Source Host : localhost:3306 Source Database : usegear Target Server Type : MYSQL Target Server Version : 50538 File Encoding : 65001 Date: 2016-01-12 02:37:43 */ SET FOREIGN_KEY_CHECKS=0; -- -----...
true
cefe13fc565bee1a9de4c139ac6094a3ee643b65
SQL
realtechz/IBM-Data-Science-Files
/5.Databases_and_SQL_for_Data_Science/Week 2 - Advanced SQL/1. String Patterns, Ranges, Sorting, and Grouping/wk2q4a.sql
UTF-8
99
2.609375
3
[ "MIT" ]
permissive
-- RETRIEVE A LIST OF EMPLOYEES ORDERED BY DEPARTMENT ID. SELECT * FROM EMPLOYEES ORDER BY DEP_ID;
true
b4c0af3a4114d163c867c1c87ec129a3a427cd17
SQL
radtek/Telecommunication
/GSM/DataBase/dealers/DO_LOAD_FROM_1C.sql
WINDOWS-1251
2,614
2.890625
3
[]
no_license
CREATE OR REPLACE PROCEDURE WWW_DEALER.DO_LOAD_FROM_1C(pRESOURCE_TYPE VARCHAR2 DEFAULT NULL) IS --#VERSION=2. --v2 - 04.08.2015 - . BEGIN IF pRESOURCE_TYPE = 'PHONE_NUMBERS' THEN LOAD_1C.RELOAD_PHONE_NUMBERS; HTP.PRINT(' .'); ELSIF pRESOURCE_TYPE = 'CONTRAGENTS' THEN LOAD_1C.RELOAD_CONTRAGEN...
true
81ca74a20ffc6142ca72d8006f1155ab72a4d046
SQL
gladiopeace/digital-data-syn
/documents/oms/TB_DTBBA.sql.bak
GB18030
3,804
3.234375
3
[]
no_license
/* ================================================================================ ṹ:TB_DTBBA ṹ:˳ ṹĿ: ================================================================================ */ drop sequence SEQ_TB_DTBBA; drop index AK_TB_DTBBA; drop table TB_DTBBA; create table TB_DTBBA ( ...
true
ac7271d5daf4ddd734f1b181d0b44f0d212969a4
SQL
Tony-78/exo-MYSQL
/Partie 8_jointures.sql
UTF-8
8,115
3.359375
3
[]
no_license
-- Création de la base CREATE DATABASE IF NOT EXISTS `development`; -- On se positione dans la base nouvellement créé USE `development`; -- Création de la table languages CREATE TABLE IF NOT EXISTS `languages` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(40) NOT NULL, PRIMARY KEY (`id`) )ENGINE=INNODB; -...
true
b39736242a59f373a61da5809d0b2276348514fd
SQL
ttaylorok/chicago_crime
/sql_files/beats_join_bus.sql
UTF-8
157
3.328125
3
[]
no_license
CREATE TABLE beats_with_buses AS SELECT pb.beat_num, bus.* FROM public.police_beats AS pb LEFT JOIN public.bus_stops AS bus ON ST_Within(bus.geom, pb.geom)
true
735557ddcd92fb49dd453693e677cf830d783091
SQL
muntaza/Open_Persediaan
/sql2_persediaan/beban_rinci_sql/beban_barang4_tebingtinggi.sql
UTF-8
394
2.609375
3
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
DROP VIEW IF EXISTS view_beban_barang4_tebingtinggi; CREATE VIEW view_beban_barang4_tebingtinggi AS SELECT *, beban * harga AS jumlah_harga FROM view_beban_barang3_tebingtinggi WHERE 1 = 1 AND beban > 0 AND id_skpd = 38; GRANT ALL PRIVILEGES ON view_beban_barang4_tebingtinggi TO lap_tebingtinggi; REVOKE INSERT,...
true
0ae28973ce4dec14c0d1df35b634bcd2b6d296a5
SQL
morganism/perl
/agg/MODULE/files/config/vfi_oracle_users/imm.sql
UTF-8
986
2.78125
3
[]
no_license
REM * Create the IMM user REM * Run this as 'system' drop user imm cascade; begin execute immediate 'purge recyclebin'; exception when others then null; end; / create user imm identified by ascertain default tablespace ascertain_data temporary tablespace temp quota unlimited on ascertain_data quota unlimi...
true
846df03fe136eb7a9076f9aa260a5e21228c9eb9
SQL
Robium-Automations/polyhex-backend
/src/main/resources/sql_scripts/shared_materials.sql
UTF-8
332
3.140625
3
[]
no_license
create table shared_materials ( shared_material_id varchar not null, material_id varchar not null, group_id varchar ); create unique index shared_materials_shared_material_id_uindex on shared_materials (shared_material_id); alter table shared_materials add constraint shared_materials_pk primary key (shared_mat...
true
67cc168a2acccc60e5d77aeca73da602bc474084
SQL
ryantranvn/m-art
/sql/update_demo.sql
UTF-8
1,108
2.65625
3
[ "MIT" ]
permissive
INSERT INTO `users` (`user_id`, `email`, `password`, `remember_token`, `name`, `type`, `deleted_at`, `created_at`, `updated_at`, `created_by`, `updated_by`) VALUES (1, 'thitd@bulk.com', '$2y$10$/MpueH.lyBAIfz.ABwn1iuj5/ltDoO9LDdyxz.jk9InYe4XV2pvEq', 'dbVHTZGisINxWkcMvzMZc43sA1iJLr5vz6bixb3JgEUDBFoODqpwQgRV1eIe', 'Admin...
true
ce6388c259aa0bdb6edb615abf2d5f02759756de
SQL
mbougie/gibbs
/projects/lem/projects/main/sql/v3/arhive/v3_2.qaqc_block_v3_neighbors.sql
UTF-8
607
3.65625
4
[]
no_license
CREATE TABLE v3_2.qaqc_block_v3_neighbors AS SELECT main.geoid, neighbors.neighbor_list, main.wkb_geometry as geom FROM v3_2.block main JOIN -- derive neighbors column----------------------------------------------------- ( SELECT a.src_geoid, string_agg(a.nbr_geoid, ', '::text) AS neighbor_list ...
true
30a06ba33bd5bbf38d81adfa03d8007be08e9f6b
SQL
databar-team/nbc
/kasasa/map-data-pipeline-flyway/clean-up/find_bad_versions.sql
UTF-8
241
2.984375
3
[]
no_license
SET @limit_length = 3; select concat('select installed_rank,version,script from ',table_schema,'.', table_name, ' order by installed_rank desc limit ',@limit_length,' ;') from information_schema.tables where table_name = 'schema_version';
true
af85d0ffd1a35eb5e02b0b09a5cb384cf8f9bd70
SQL
knuber/hc_comp
/SQL/DB2/DB2 for i/CHECK TO VOUCHER GL.sql
UTF-8
1,601
3.390625
3
[]
no_license
SELECT DIGITS(IGFSYY) IGFSYY, DIGITS(IGFSPP) IGFSPP, DIGITS(IGFSYY)||DIGITS(IGFSPP) IGPERD, IGCOM#, BTBANK, DIGITS(AVTVH#) AVTVH#, IDINV#, IGCHQ#, ETHTOT, IGVEN#, BTNAME, IGGROS, IFCOM#||DIGITS(IFAPGL), COALESCE(ACCG,ACCT) ACCT, AZGROP, BQ1TITL, D35DES2, D35USR3, AMT FROM LGDAT.CHQR LEFT OUTER JOIN LGDAT.EFTBD ...
true
532e3be4c7f43897e4aad40eeb8530e51b1bffc6
SQL
google-code/automatizace-os
/Documentation/Artmuseum.cz/v2.0/db/museum.sql
UTF-8
1,385
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 10, 2012 at 12:33 PM -- Server version: 5.1.49-3-log -- PHP Version: 5.3.3-7+squeeze13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_...
true
6f48d42959332eed4203d8f1aa8314119c491d9a
SQL
ElenaSarandria/Dental-Clinic-Database-for-an-Electronic-Medical-Record-System
/SQL scripts/Transactions in nested stored procedures.sql
UTF-8
6,082
3.5625
4
[]
no_license
/*Procedure updates amount, account balance date for the account_balance table*/ DROP PROCEDURE IF EXISTS update_account_balance; DELIMITER // CREATE PROCEDURE update_account_balance ( accountID_param INT, amount_param DECIMAL(10,2), account_balance_date_param DATETIME, billingID_param INT ) BEGIN D...
true
4a66b4b2242904b33645b72dab2fbaa4fc8f6497
SQL
coej/linklistic
/postgres/schema.sql
UTF-8
624
3.015625
3
[ "MIT" ]
permissive
CREATE TABLE Link ( link_id serial, href text, title text, note text, thumbnail bytea, CONSTRAINT link_pk PRIMARY KEY(link_id) ); # INSERT INTO Link (href, title, note) # VALUES ('http://www.ysib.com', 'YSIB Homepage', 'ysib rox'); # # INSERT INTO Link (href, titl...
true
0071a191889fcb03c9d05841593c41c6bdb7ec9a
SQL
oleksiiBobko/pub-lookup
/src/main/resources/pub.sql
UTF-8
1,337
3.71875
4
[]
no_license
DROP DATABASE IF EXISTS pub; CREATE DATABASE pub; USE pub; CREATE TABLE point ( point_id VARCHAR(20), PRIMARY KEY (point_id) ) ENGINE=InnoDB; create table pub ( pub_id VARCHAR(200), pub_name VARCHAR(200) NOT NULL DEFAULT '', address VARCHAR(200) NOT NULL DEFAULT '', post_code varchar(30), country varchar(200), city...
true
7c166b248385a4ded17f41051b5d5e395a2a2418
SQL
odegraciajr/champ-game-yii
/protected/data/schema-champ.sql
UTF-8
519
2.734375
3
[]
no_license
CREATE TABLE chp_users( id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, email VARCHAR(255) NOT NULL, password CHAR(60) NOT NULL, username VARCHAR(100) NULL, name VARCHAR(100) NULL, gender TINYINT(1) NULL DEFAULT 0, bio VARCHAR(255), headshot TEXT NULL, status TINYINT(1) NULL DEFAULT 1, role TINYINT(...
true
aad788820eacea99c91101035d43e09328d45ee6
SQL
nareshgb1/StatsMonitor
/smsiocpu.sql
UTF-8
1,516
3.671875
4
[]
no_license
col METRIC_UNIT for a30 trunc col metric_name for a50 col avg_avg for 999999999999 col max_max for 999999999999 col max_avg for 999999999999 set lines 166 col avg_mb for 9999999.9 col max_avg_mb for 9999999.9 col max_max_mb for 9999999.9 col inst for 99 col DOW for a3 select d.name dbname, to_char(begin_ti...
true
321008ca171efb2065a3e30e7bdb5de565b33734
SQL
alexandrstiroi/factory_base
/t_shop.sql
UTF-8
5,016
2.984375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : OracleCloudStation01 Source Server Type : PostgreSQL Source Server Version : 130004 Source Host : 152.70.187.29:5432 Source Catalog : orders_catalog Source Schema : working_data Target Server Type : PostgreSQL Target Serv...
true
1b694962460a3e6fc01e5d5e44a58f397dfca21e
SQL
dskw1/syr_mads_ist722_data_warehouse
/assignments/assignment_1_data_profiling/sql/assignment1_Q3_ProductCategories.sql
UTF-8
517
4.25
4
[]
no_license
Select CategoryName as ProductCategoryName, COUNT(ProductID) as ProductCount From (Select p.ProductID, p.ProductName, p.CategoryID, c.CategoryName, c.Description as CategoryDescription From Products p join Categories c on p.CategoryID = c.CategoryID) as prod_category_name Group By CategoryName Order By ProductCount DE...
true
1aff653d19f3db45e0781e4b1b9e7cefbff78bac
SQL
katerina-berestova/short-links
/schema.sql
UTF-8
301
3.203125
3
[]
no_license
CREATE TABLE `link` ( `id` int(11) NOT NULL AUTO_INCREMENT, `url` varchar(256) NOT NULL, `code` varchar(6) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `code` (`code`), UNIQUE KEY `url` (`url`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
true
e5933719fa58173a3a24fbca4d5fa324f5f606bb
SQL
asqum/PYQUM
/TEST/FACE/pyqum/instrument/machine.sql
UTF-8
3,464
2.703125
3
[ "MIT" ]
permissive
BEGIN TRANSACTION; DROP TABLE IF EXISTS "machine"; CREATE TABLE IF NOT EXISTS "machine" ( "id" INTEGER NOT NULL UNIQUE, "codename" TEXT NOT NULL UNIQUE, "since" DATE NOT NULL DEFAULT CURRENT_DATE, "user_id" INTEGER, "connected" BOOL NOT NULL, "address" TEXT NOT NULL UNIQUE, "BDR" INTEGER NOT NULL, "model" TEXT ...
true
645ecbe7d8cf4e513630176cd8da3a9645f2560d
SQL
rynnokung/SunWellCore
/sql/world fixes/instances/Outlands/the_mechanar.sql
UTF-8
26,652
2.5625
3
[]
no_license
UPDATE creature SET spawntimesecs=86400 WHERE map=554 AND spawntimesecs>0; -- ------------------------------------------- -- FORMATIONS -- ------------------------------------------- -- ------------------------------------------- -- TRASH -- ------------------------------------------- ...
true
3ca210281ff260a97cbd7903a2821943a490785e
SQL
K-OProject/TUber
/backend/Schema.sql
UTF-8
408
2.9375
3
[]
no_license
DROP DATABASE IF EXISTS tuber ; CREATE DATABASE tuber ; USE tuber ; CREATE TABLE validations ( id INT NOT NULL AUTO_INCREMENT , driver_id INT NOT NULL , status VARCHAR(20) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE requests ( id INT NOT NULL AUTO_INCREMENT, request VARCHAR(30) NOT NULL, i...
true
6f1c5ece53cea4c6bd53e77753839ba656a4b0d7
SQL
eraqcode/curso-sql-postgresql
/08.-consultas de accion/modificarColumna.sql
UTF-8
382
2.703125
3
[]
no_license
--MODIFICAR UNA COLUMNA select * from estudiante update estudiante set test = 'PCA' Alter Table estudiante Add Column test varchar (20) --Agregar valor no nulo a columna Alter Table estudiante Alter Column test set not null --Quitar not null Alter Table estudiante Alter Column test drop not null --Carbiar tipo de d...
true
937b05bf1720be86658e554a0eb2677062a4b37d
SQL
albanywang2016/RssFeedParser
/db/create_users.sql
UTF-8
665
2.84375
3
[]
no_license
DROP TABLE IF EXISTS `rssfeed`.`users`; CREATE TABLE `rssfeed`.`users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(450) NOT NULL, `password` varchar(45) NOT NULL, `first_name` varchar(45) NOT NULL, `last_name` varchar(45) NOT NULL, `email_address` varchar(90) NOT NULL, `cell_phone` varchar(...
true
b8eee7c93ee7a54ae5fb846e2aa91b080f691f96
SQL
bipashroy/HospitalManagementSystem
/Project - final/E13222Lab03/customerorderdetails.sql
UTF-8
2,125
3.140625
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 24, 2016 at 07:06 PM -- Server version: 5.5.16 -- PHP Version: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
3f0b7e8d8169640b89dee7eb95b512d4b57c067e
SQL
keyvanarasteh/darkwebcrawler
/db_tables/dark_crawler_table_filters.sql
UTF-8
666
2.734375
3
[]
no_license
-- -------------------------------------------------------- -- -- Table structure for table `filters` -- CREATE TABLE `filters` ( `id` int(11) NOT NULL, `key` varchar(100) NOT NULL, `regex` bit(1) NOT NULL, `fields` varchar(200) NOT NULL, `priority` int(11) NOT NULL DEFAULT '0', `custom_users` varchar(50...
true
21bccd2f26bb79467690218326a9b8237c409b68
SQL
ayush04/court-vision
/db/tables.sql
UTF-8
3,497
3.53125
4
[]
no_license
users create table users (user_id bigint not null primary key generated always as identity, first_name varchar(100), last_name varchar(100), email_address varchar(100), username varchar(20) not null, password varchar(1000) not null, is_player smallint default 1, is_loggedin smallint default 0, is_deleted smallint def...
true
5d487c832c77bd5e7f446801be91f874f19b1e5a
SQL
DionelShiftHA/ShiftHA
/Consulta/6_00.SQL
UTF-8
1,808
3.3125
3
[]
no_license
--La consulta trae datos de facturacion y OS. SELECT (SELECT Data FROM dado.ArqOrdemServico os WHERE os.Id = log.Dado2) DataOs, (SELECT NroIdentificacaoOsLisOrigem FROM dado.ArqOrdemServico os WHERE os.Id = log.Dado2) CodLisOrigem, (SELECT CodigoOs FROM dado.ArqOrdemServico os WHERE os.Id = log.Dado2) Codi...
true
fd6d1ea31b9032f7863ba619e163859fbd6b8cfd
SQL
ibmiiste/I_builder
/QSQLSRC/LIVRPART.SQL
ISO-8859-2
2,158
3.21875
3
[]
no_license
-- >>PRE-COMPILER<< */ -- >>CRTCMD<< RUNSQLSTM SRCFILE(&SL/&SF) SRCMBR(&SM); */ -- >>IMPORTANT<< */ -- >>PARM<< COMMIT(*NONE); */ -- >>PARM<< NAMING(*SQL); ...
true
da7cd4d1b3b974bbed8200dc9112fb36e95df0d5
SQL
cckmit/DataShop
/sql/v10.x/sps_and_triggers/tx_export_util_sp.sql
UTF-8
12,038
3.4375
3
[]
no_license
-- -- Carnegie Mellon University, Human Computer Interaction Institute -- Copyright 2005-2007 -- All Rights Reserved -- -- $Revision: 14225 $ -- Last modified by - $Author: ctipper $ -- Last modified on - $Date: 2017-07-19 11:58:00 -0400 (Wed, 19 Jul 2017) $ -- -- This file holds stored procedures which may be...
true
503f736038f2b3b23c8fb8b869ec18106d179fc7
SQL
stambi4a/DatabasesBasicsMSSQL
/SQL Server/Functions,Triggers and Transactions/Exercises/SQLQueryAux.sql
UTF-8
581
3.828125
4
[]
no_license
UPDATE Countries SET CountryName = 'Burma' WHERE CountryName = 'Myanmar' INSERT INTO Monasteries VALUES('Hanga Abbey', 'TZ') --INSERT INTO Monasteries --VALUES('Myin-Tin-Daik', 'MM') SELECT ContinentName, CountryName, Count(Id) AS MonasteriesCount FROM Monasteries FULL JOIN (SELECT CountryCode, CountryName, Continen...
true
0e0a1578d9ad16ccc5d1a2f5b9cdef53d603eb58
SQL
Eun-Gi/HelloWorld
/Smart_In_Study/설계/sql/createuser.sql
UTF-8
728
3.109375
3
[]
no_license
/ 테이블 스페이스 생성 / CREATE TABLESPACE smartInStudy DATAFILE 'E:\Smart_In_Study\DataBase\Smart_In_Study.ORA' SIZE 1G /파일의 이름과 경로 지정, 사이즈 설정/ AUTOEXTEND ON NEXT 1G MAXSIZE 3G / 파일크기가 10M 이상이면 자동으로 10M 만 자동확장, 최대 사이즈 1024M 지정 / EXTENT MANAGEMENT LOCAL /EXTENT : 데이터를 관리할때 가장 작은 단위 / SEGMENT SPACE MANAGEMENT AUTO; /데이터 저장공간을 오라...
true
811373f345542a50cb4d4c3d3e0c35cb76b831e1
SQL
olaknowsito/loyal
/pointsystem.sql
UTF-8
4,961
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 09, 2019 at 04:50 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
c02e727b1cd905aa9ccff86d4432643631aeb6a4
SQL
cckmit/attendance
/device.sql
UTF-8
45,669
2.75
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50717 Source Host : localhost:3306 Source Database : device Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2017-05-20 10:16:29 */ SET FOREIGN_KEY_CHECKS=0; -- --...
true
dce331eb94d6f4e22667d3f89e5841b7fb78abc0
SQL
jonamuen/sql-reduce
/test/sqlsmith/sqlite/1008.sql
UTF-8
213
2.78125
3
[ "MIT" ]
permissive
select ref_0.id as c0, ref_0.name as c1 from main.t0 as ref_0 where (cast(nullif(ref_0.name, case when 1 then ref_0.name else ref_0.name end ) as VARCHAR(16)) is NULL) or (1) limit 148;
true
5b77be5995c4e5021765090cd6fbf749ab81815a
SQL
databaseFxf/database_keshe
/itemmail.sql
UTF-8
7,298
3.140625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.11, for macos10.13 (x86_64) -- -- Host: localhost Database: itemmail -- ------------------------------------------------------ -- Server version 8.0.11 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *...
true
dac541f52c4ca0f14662bb52ca314347ec59b82b
SQL
rendertaker/asclepios
/db/asclepios.sql
UTF-8
4,246
3.265625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 21-03-2017 a las 01:02:08 -- Versión del servidor: 5.5.16 -- Versión de PHP: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
true
e6a87c32e5fbe100f874352414fc6087f347435d
SQL
vijaydairyf/TimelyFish
/CFDataStore/stage/Tables/stage.MatingEvent.sql
UTF-8
230
2.53125
3
[]
no_license
CREATE TABLE [stage].[MatingEvent] ( [MatingEventKey] BIGINT NOT NULL, [ParityEventKey] BIGINT NOT NULL, [SourceGUID] NVARCHAR (36) NOT NULL, PRIMARY KEY CLUSTERED ([MatingEventKey] ASC) );
true
fc77b1c4fc2538dd84c873ec1ea1bf87e32c5e1e
SQL
SAP/InfraBox
/src/db/migrations/00009.sql
UTF-8
442
2.8125
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ALTER TABLE job ADD COLUMN cluster_name character varying; ALTER TABLE job ADD COLUMN archive jsonb[]; CREATE TABLE cluster ( name character varying NOT NULL, active boolean NOT NULL, labels character varying[] NOT NULL, root_url character varying NOT NULL, nodes integer NOT NULL, c...
true
43f1fa3299f4b55cfc064d693a07e92481b5cf1f
SQL
kinecosystem/go
/services/horizon/internal/test/scenarios/two_signatures-core.sql
UTF-8
41,433
2.96875
3
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
running recipe recipe finished -- -- PostgreSQL database dump -- -- Dumped from database version 11.2 (Ubuntu 11.2-1.pgdg18.04+1) -- Dumped by pg_dump version 11.2 (Ubuntu 11.2-1.pgdg18.04+1) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SE...
true
d50411ade63560f388087bb0f3d0171b6e3e4089
SQL
gongyongs/ss_server
/SuperServer/tower/tower_login.sql
UTF-8
659
2.84375
3
[]
no_license
create database if not exists tower_login; use tower_login; create table if not exists login( uin int(11) unsigned not null, device varchar(128), uname varchar(128), dis_name varchar(128), platform_info blob, addition blob, create_ts int(11) unsigned, primary key(uin), unique index uname_index (uname,device) )ENGINE = ...
true
0205219591c7230f28ff2ef904dd835995a4e8c0
SQL
bellmit/cmusv-practicum
/scripts/slurp/auids.sql
UTF-8
644
3.65625
4
[]
no_license
/* Parameters: (0) The name of the table (string). (1) The maximum length of AUIDs (integer). (2) The name of the sessions table (string). References the sessions table. */ /* Create the AUIDs table */ CREATE TABLE IF NOT EXISTS %s ( /* A unique row ID */ id INT UNSIGNED NOT NULL AUTO_INCREMENT...
true
903cf51365e8448630e3e6e613ee8be151e32a99
SQL
bprusaczyk/Sklep-internetowy
/sklep_internetowy.sql
UTF-8
2,938
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Czas generowania: 12 Gru 2019, 11:56 -- Wersja serwera: 10.4.6-MariaDB -- Wersja PHP: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
fe5be3d878a790feafb45aa15c3ff7e17a66004d
SQL
Airtons18/UNIESI-LPBD
/exercicioInnerJoin.sql
UTF-8
4,978
4.15625
4
[]
no_license
-- 1 – Crie o banco de dados exercicioInnerJoin create database exercicioInnerJoin; -- 2 – Crie as tabelas conforme o diagrama do slide anterior create table cliente( cpf int primary key, nome varchar(60), dtNasc date); create table modelo( codMod int primary key, Desc_2 varchar(40)); create table patio( num int pri...
true
c62833505d8f52c6088d78e2d4fb84193e358c4c
SQL
MayraTovar/challenge
/Dump20161206.sql
UTF-8
2,398
3.46875
3
[]
no_license
CREATE DATABASE `espn` /*!40100 DEFAULT CHARACTER SET utf8 */; CREATE TABLE `espn`.`cronjob` ( `cronjob_id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_bin NOT NULL, `description` varchar(255) COLLATE utf8_bin NOT NULL, `name_class` varchar(255) COLLATE utf8_bin NOT NULL, ...
true
042537d7a7cd8afc294c48d6f2318e6f2e64e450
SQL
JaceLarson/LegoDatabase
/Lego_Build_Script.sql
UTF-8
58,829
3.34375
3
[]
no_license
/* CS3550 Lego Database Scripts Jace Larson */ IF (OBJECT_ID('dbo.FK_GROUP7_Sets_ThemeID', 'F') IS NOT NULL) BEGIN ALTER TABLE GROUP7_Sets DROP CONSTRAINT FK_GROUP7_Sets_ThemeID END IF (OBJECT_ID('dbo.FK_GROUP7_Sets_PurchaseID', 'F') IS NOT NULL) BEGIN ALTER TABLE GROUP7_Sets DROP CONSTRAINT FK...
true
bae63733ca84b8d5672815fce298d57ea6b6c058
SQL
leZayn/M153-LB2
/DML/trigger.sql
UTF-8
598
2.96875
3
[]
no_license
USE M153_Lagerverwaltung; DELIMITER $$ CREATE TRIGGER artikel_transfer_update AFTER UPDATE ON tbl_artikel FOR EACH ROW BEGIN INSERT INTO tbl_transfer SET id_artikel = OLD.artikel_id, eingang = null, ausgang = NOW(), anzahl = OLD.anzahl - NEW.anzahl; END$$ DELIMITER ; ...
true
e755562476a6009637b7fb58cf761f1446b1c12a
SQL
RAJALAKSHMIRAJKUMAR/LCE
/FORM OBJECTS/TRG_TENDER_MANAGEMENT_UPDATE_VER0.1_13042015.SQL
UTF-8
5,604
3.84375
4
[]
no_license
-- VER0.1 DATE:16/7/2015 DESC: TRIGGER FOR UPDATING MARGIN CALCULATION & DESCID IF PROJECT TYPE OR PRICE TYPE UPDATED DONE BY:DHIVYA DROP TRIGGER IF EXISTS TRG_TENDER_MANAGEMENT_UPDATE; CREATE TRIGGER TRG_TENDER_MANAGEMENT_UPDATE AFTER UPDATE ON LCE_TENDER_MANAGEMENT FOR EACH ROW BEGIN DECLARE TMID INTEGER; DECLARE MI...
true
e76bccebdccd26896e9f1b4a2ae86d5a041354ae
SQL
tiffangchan19/SQLZooTutorial
/8-Using_Null.sql
UTF-8
1,013
4.09375
4
[]
no_license
/*1*/ SELECT name FROM teacher WHERE dept IS NULL /*2*/ SELECT teacher.name, dept.name FROM teacher INNER JOIN dept ON (teacher.dept=dept.id) /*3*/ SELECT teacher.name, dept.name FROM teacher LEFT JOIN dept ON (teacher.dept=dept.id) /*4*/ SELECT teacher.name, dept.name FROM ...
true
f2f1d0fb092dcd591896199b92aff6473f4ef810
SQL
jialingkun/acehotel
/u3150721_manajemen_acehotel.sql
UTF-8
10,986
3.03125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Oct 04, 2022 at 06:36 PM -- Server version: 10.5.17-MariaDB-cll-lve -- PHP Version: 7.4.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
true
fd5c282f39bd9ddf5b13142617c0414dc4b9f91f
SQL
bagpyp/SQL_advanced
/proc_5.sql
UTF-8
279
3.875
4
[]
no_license
CREATE PROC getNumberOfBooksLoanedByBranch AS BEGIN SELECT b.LB_BranchName AS 'Branch Name', COUNT(1) AS 'Number Of Books Loaned' FROM tbl_BookLoans a JOIN tbl_LibraryBranch b ON a.BL_BranchID = b.LB_BranchID GROUP BY b.LB_BranchName; END
true
a4b08b756c92459b8a1a2b2d27b6fe9da457d31f
SQL
Yuvv/LeetCode
/0101-0200/0182-duplicate-emails.sql
UTF-8
101
2.78125
3
[]
no_license
select a.Email from ( select Email, count(*) as cnt from Person group by Email having cnt > 1 ) a
true
8e190d9a4759abf07ce0e777f6e374796c0adbea
SQL
AlvinChum/MY_DOCUMENT
/PROJECT_微信大屏/sql_backup/weixindaqiang_local.sql
UTF-8
32,337
3.359375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50547 Source Host : localhost:3306 Source Database : weixindaqiang Target Server Type : MYSQL Target Server Version : 50547 File Encoding : 65001 Date: 2016-06-01 17:24:44 */ SET FOREIGN_KEY_CHEC...
true
1fdee7c0ea62264b37009dc134fca713a23b5bec
SQL
arcaex/TUP-Programacion-II
/2020/2020-11-09_SQL_Lite/SQLs.sql
UTF-8
402
2.578125
3
[]
no_license
INSERT INTO Jugadores (nick,mail,clave) VALUES ("amartinez","amartinez@mail.com","Perro123") DELETE FROM Jugadores WHERE mail = 'jgracia@mail.com' UPDATE Jugadores SET mail='no-reply@mail.com', nick='no-reply', clave='ClaveSecreta123' WHERE id_jugador = 2 SELECT * FROM Jugadores WHERE mail='none@mail.com' SELECT P...
true
ce94f71fcc85d3cb543aa51e0ab17fcfa5a38a74
SQL
macro398/SQLwithPython_Coursework
/week1/workshop2_queries.sql
UTF-8
7,504
4.5
4
[]
no_license
-- Part 1: Filters -- 1.1 -- Select all columns from the categories table. -- Use an order by clause to sort the results by category_id. SELECT * FROM categories ORDER BY category_id; -- 1.2 -- Select each city from the employees table without any duplicates -- and sort in descending order. SELECT DISTINCT city FRO...
true
f268af5f0c992049b8d662e8fb34d1f97da2282d
SQL
leon230/UTMSReporting
/SQL/SQL/Reports/Track and trace/Road/OLD/AVISO ADVANCED V1 only times.sql
UTF-8
29,205
3.5625
4
[]
no_license
SELECT DISTINCT SH.SHIPMENT_GID AS SH_ID, ORLS.ORDER_RELEASE_GID AS OR_ID, SS.STOP_TYPE AS STOP_TYPE, SS.LOCATION_GID AS APP_LOCATION, (CASE WHEN SS.STOP_TYPE ='D' THEN ( SELEC...
true
1be555885b707a9d7a9871535ff5245d5b5b3225
SQL
makeroo/taxi-scout
/sql/sample_data.sql
UTF-8
1,299
2.765625
3
[]
no_license
INSERT INTO scout_group (id, name) VALUES (1, 'Boschetto misterioso'); INSERT INTO scout_group (id, name) VALUES (2, '富士のスカウト'); INSERT INTO account (id, name, email, password, address) VALUES (1, 'Giangi', 'giangi@scout.hhh', 'cantlogin', 'Paese'), (2, 'Scubi', 'scubi@scout.hhh', 'cantlogin', 'Fori porta'), (3,...
true
0afbad55d1cdaecc65d82f044a6b0067b671676b
SQL
PayGreen/module-magento-2
/bundles/PGPayment/_resources/sql/transaction/upgrades/002-rewrite-table.sql
UTF-8
612
3.296875
3
[ "X11", "MIT" ]
permissive
ALTER TABLE `%{database.entities.transaction.table}` DROP PRIMARY KEY, ADD `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, ADD `amount` INT(10) UNSIGNED NOT NULL DEFAULT 0, MODIFY `pid` VARCHAR(50) NOT NULL, MODIFY `id_order` INT(10) UNSIGNED ...
true
2f9d6884ecc31cba34f314915366dee9b6c294af
SQL
Pugalselvan/datatypes
/array.sql
UTF-8
342
2.671875
3
[]
no_license
CREATE TABLE monthly_saving(name TEXT,saving_per_quarter integer[],scheme text[][]); CREATE TABLE INSERT INTO monthly_saving VALUES ('Thaara','{20000,14600,23500,13250}','{{"PF","EF"},{"PF","Property"}}'); INSERT 0 1 SELECT name FROM monthly_saving WHERE saving_per_quarter[2] > saving_per_quarter[4]; name ----...
true
6e67ed8fcc5029597f1675267c0ab44f65c5b5c0
SQL
alexis900/gestor-de-ligas
/ligas.sql
UTF-8
2,645
3.71875
4
[]
no_license
drop schema if exists ligas; create schema if not exists ligas default character set utf8; use ligas; create table liga ( id int primary key auto_increment, nombre varchar(100) not null, fecha_creacion date null default null ); create table equipo ( id int primary key auto_increment, liga_id int not null, ...
true
2bbc9b29845d8e3e60760adf72c8645a8727c39c
SQL
ekfkfl/mogong
/target/classes/schema/basic.sql
UTF-8
6,931
4.1875
4
[]
no_license
SELECT * FROM TAB; Begin -- 모든 테이블 삭제 for c in (select table_name from user_tables) loop execute immediate 'drop table '||c.table_name||' cascade constraints'; end loop; End; Begin -- 모든 시퀀스 삭제 for c in (SELECT * FROM all_sequences WHERE SEQUENCE_OWNER='DBUSER') loop execute immediate 'drop SEQUENCE '||c.sequen...
true
2506435acc0c3e0fc653ea296adbd7113ad878db
SQL
Kaipie5/BartenderApp
/sql/schema.sql
UTF-8
777
3.84375
4
[ "MIT" ]
permissive
DROP TABLE IF EXISTS cocktails CASCADE; CREATE TABLE cocktails ( id SERIAL PRIMARY KEY, title VARCHAR(255), image_url VARCHAR(255), instructions TEXT, ingredients TEXT, cocktail_id VARCHAR(255), cocktail_list integer ); DROP TABLE IF EXISTS cocktail_lists; CREATE TABLE cocktail_lists ...
true
ff5ac1efed6550700b430e4484bf93c9a11ce1c3
SQL
nmrs-nigeria/files_and_resources
/pbs/backup_delete_invalid_prints.sql
UTF-8
1,358
3.484375
3
[]
no_license
-- Use this script to backup and delete invalid patient template from NMRS DB. -- After running this script the invalid dat will be backed up on biometricinfo_backup table. CREATE TABLE if not exists `biometricinfo_backup` ( `biometricInfo_Id` int(11) NOT NULL AUTO_INCREMENT, `patient_Id` int(11) NOT NULL, `t...
true
4a7a31952d67cc35bddba508f9b3bc774e91c6ce
SQL
hxqemmm/BabyMyHome
/表结构sql语句.sql
GB18030
2,348
3.265625
3
[]
no_license
drop table record --Ϣ-- create table record( --¼ϴ-- id int identity(1000,1) primary key, --ID-- issuer varchar(20) not null, ---- names varchar(10) not null, ---- sex varchar(10) not null, --Ա-- birthday varchar(50) not null, ---- missday varchar(50) not null, --ʧʱ-- relation varc...
true
7f7abdf386f9d47b37f4d21698da96b44b635e5f
SQL
huy75/WHR
/sql/whr_huy_create.sql
UTF-8
1,453
4
4
[]
no_license
-- CREATE SCHEMA DROP DATABASE IF EXISTS whr_huy ; CREATE DATABASE /*!32312 IF NOT EXISTS*/whr_huy /*!40100 DEFAULT CHARACTER SET latin1 */; USE whr_huy; /*Table structure for table customers */ DROP TABLE IF EXISTS whr; CREATE TABLE whr Years YEAR(4), -- pk clé composite Country VARCHAR(40) NOT NULL, HappinessRa...
true
dffadbdd64faae75c70765b3cf2934fa6c8d6446
SQL
peter-mount/map.lu
/railway/railway_line.sql
UTF-8
872
3.5
4
[ "Apache-2.0" ]
permissive
-- ====================================================================== -- Table: railway_line -- Description: Entries from planet_osm_line where railway IS NOT NULL -- Created: 2018-10-19 -- ====================================================================== CREATE SCHEMA IF NOT EXISTS railway; DROP T...
true
36b75411bdfbd1bd88bd91d110b53552ca6472d2
SQL
verkh/ecare
/docker/mysql/sql/eCare-dbdata-init.sql
UTF-8
4,222
3.296875
3
[]
no_license
use ecare; INSERT INTO plans (id, name, price) VALUES (1, "Dictator", 1000.0), (2, "Peasant" , 2.0), (3, "Exile" , 50.0), (4, "Call me baby", 1.0), (5, "In the web", 1.0), (6, "Happy letter", 1.0), (7, "Happy dispatch", 0.5); INSERT INTO options(id, name, price, turn_on_price, descriptio...
true
ff931dd84db2352585477050b20aaba845fdaf0b
SQL
MarcMenard/GestionDeTournoi
/conception/FINALE BDD/gestiontournoi.sql
UTF-8
16,427
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.5.1 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Jeu 01 Juin 2017 à 12:19 -- Version du serveur : 5.7.11 -- Version de PHP : 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
true
487e6a6b34454abb2031b5697bee4d25cca45028
SQL
Dhruthi-shekhar/DBMSProject
/db_proj1/sql log files/createtables.sql
UTF-8
1,096
2.8125
3
[]
no_license
create table TRAIN(Train_ID varchar(20),Train_Name varchar(20),Seats_Class1 int,Seats_Class2 int,Seats_Class3 int,Fare_class1 int,Fare_class2 int,Fare_class3 int,Source_Station varchar(20),Destination_Station varchar(20)); create table TRAIN_ROUTES(Train_ID varchar(20),Source_Station varchar(20),Destination_Station va...
true
24c1deab73c9b1f245149bebfe4de396e3389a94
SQL
xinghudamowang/EasyRec
/samples/odps_script/deep_fm/create_external_deepfm_table.sql
UTF-8
1,553
2.671875
3
[ "Apache-2.0" ]
permissive
drop TABLE IF EXISTS external_deepfm_train_{TIME_STAMP} ; create EXTERNAL table external_deepfm_train_{TIME_STAMP}( label BIGINT ,`hour` string ,c1 STRING ,banner_pos STRING ,site_id STRING ,site_domain STRING ,site_category STRING ,app_id STRING ,app_domain STRING ,app_category ...
true
1e04dd24ff305dc3211be49f7c0cf049c61900c0
SQL
mostfaswaisi93/ecommerce
/db/ecommercedb.sql
UTF-8
36,752
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jan 21, 2021 at 04:58 PM -- Server version: 10.5.4-MariaDB-log -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
d81c80d96ee75c617460741a647e68684c5c27e4
SQL
Noahpack/Helo-simulation
/db/get_posts.sql
UTF-8
131
3
3
[]
no_license
SELECT p.title, p.postPicture, p.content, u.username, u.picture, u.id FROM post p JOIN users u ON p.user_id = u.id WHERE p.id = $1;
true
8da18d9a62e3477bdc60d24f3813ff2bbaea19c1
SQL
rickyork/Hot-Toddy
/hCalendar/Database/hCalendarResources/hCalendarResources.sql
UTF-8
1,418
2.59375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
CREATE TABLE `hCalendarResources` ( `hCalendarResourceId` int(11) NOT NULL auto_increment, `hCalendarId` int(11) NOT NULL default '0', `hCalendarCategoryId` int(11) NOT NULL default '0', `hCalendarResourceName` varchar(2...
true
5e3b84d3cec594d4b9c732bc1e2e1dde7e2b3ea9
SQL
ISSS163/billpractise
/modules/core/db/init/hsql/10.create-db.sql
UTF-8
1,009
3.09375
3
[]
no_license
-- begin BILLPRACTISE_BILL create table BILLPRACTISE_BILL ( ID varchar(36) not null, VERSION integer not null, CREATE_TS timestamp, CREATED_BY varchar(50), UPDATE_TS timestamp, UPDATED_BY varchar(50), DELETE_TS timestamp, DELETED_BY varchar(50), -- NAME varchar(255) not null, ...
true
765285af6c87d02dfeb4810a75a8ec11ad81ef4c
SQL
abchilders/database-design
/Homework/325hw10/325hw10.sql
UTF-8
5,229
4.1875
4
[]
no_license
/* Alex Childers CS 325 - Homework 10 - Problem 5 Last modified: November 30, 2018 */ @ movies-pop spool 325hw10-out.txt prompt ======================= prompt Homework 10 Problem 5 prompt ======================= prompt prompt Alex Childers prompt prompt ************ prompt problem 5-2 /* Project, for each re...
true
be82d1a15a8bfbb2044b5b9158ab4f8d75f04166
SQL
kurosawa-kuro/Vagrant-Docker-PostgreSQL-DBeaver
/docker/initdb/setup.sql
UTF-8
931
3.84375
4
[]
no_license
--DROP TABLE users; --DROP TABLE posts; CREATE TABLE users ( id serial primary key, name varchar(255), score real, team varchar(255) ); INSERT INTO users (name, score, team) values ('taguchi', 5.5, 'red'), ('fkoji', 8.3, 'blue'), ('dotinstall', 2.2, 'blue'), ('sasaki', 5.0, 'green'), ('sakaki', 4.6, 'red'), ('kimura'...
true
4877f9867b112c97bf3482c61f378127dd6c33ff
SQL
alynielson/overhaul
/src/main/resources/db/migration/V1__create_user_table.sql
UTF-8
1,322
3.625
4
[]
no_license
CREATE TABLE authority ( id SERIAL NOT NULL CONSTRAINT authority_pk PRIMARY KEY, description VARCHAR(64) NOT NULL); CREATE TABLE app_user ( id SERIAL NOT NULL CONSTRAINT app_user_pk PRIMARY KEY, username VARCHAR(64) NOT NULL, first_name VARCHAR(64) NOT NULL, last_name VARCHAR(64) NOT NULL, email VARCHAR(64) N...
true
83b8f7bf863869415b27128d14957a2c50cada49
SQL
ChocolateSwan/DB_Forum_docker
/DB_TP_ForumApp/SQL/Users_per_forum_table.sql
UTF-8
394
4.125
4
[]
no_license
CREATE TABLE users_per_forum ( id SERIAL PRIMARY KEY NOT NULL, forum_id INT NOT NULL, user_id INT NOT NULL --CONSTRAINT forum_users_forum_id_fk FOREIGN KEY (forum_ID) REFERENCES forum (id), --CONSTRAINT forum_users_user_id_fk FOREIGN KEY (user_ID) REFERENCES "User" (id) ); CREATE UNIQUE INDEX "users...
true
0473e2629a9c63e807276ba2131eb247a1664039
SQL
jiangrry/study
/Month2/MySQL/2-4-MySQL-DAY04/day04.sql
UTF-8
5,038
4.59375
5
[]
no_license
-- 创建库 gx create database gx charset=utf8; use gx; -- 部门表 create table dept ( id int primary key auto_increment, dname varchar(50) not null ); -- 员工表 create table person( id int primary key auto_increment, name varchar(32) not null, age tinyint, sex enum('w', 'm'), salary decimal(9,2), ...
true
da29656e69d6eaa1458a97e3e4e8114bc98f3b4d
SQL
Rakhi-Palke/Task
/database/sql_queries_syntax.sql
UTF-8
6,535
4
4
[]
no_license
create database student; use student; create table info( s_id int(3), s_name varchar(20), s_email varchar(50), s_mark int(100), s_age int(50), s_place varchar(50) ); create table info1( s_id int(3), s_name varchar(20), s_email varchar(50), s_mark int(100), s_age int(50), s_place varchar(50) ); select * from info; dr...
true
40998d52cb3e8b2461adc6f87f6c64a8e3981940
SQL
hadekoya/labs-zap-api
/queries/helpers/standard-projects-columns.sql
UTF-8
532
2.53125
3
[ "LicenseRef-scancode-public-domain", "CC0-1.0" ]
permissive
dcp_name, dcp_ceqrnumber, dcp_projectname, dcp_projectbrief, dcp_publicstatus_simp, dcp_borough, dcp_ulurp_nonulurp, dcp_communitydistricts, actiontypes, dcp_certifiedreferred, dcp_femafloodzonea, dcp_femafloodzonecoastala, dcp_femafloodzoneshadedx, dcp_femafloodzonev, applicants, lastmilestonedate, cast(count(dcp_proj...
true
167b3d9df8c8625448c03936e152223b94ae9186
SQL
masudfeni301/K-Jasper-Reports
/HR/Night Allowance/Queries Jasper.sql
UTF-8
37,215
3.4375
3
[]
no_license
-------------------------------------------Offday Allowance Query Start ---------------------------------------------------- SELECT NAME, DESIGNATION, DEPARTMENT, SECTION_NAME, ATTEND_DATE , DD, EMP_ID,DUTY, BASIC_SALARY, JOIN_DT, BANK_SAL_FLAG, EMP_AC_NO, EMP_AC_DATE, MOBILE_BANK_SAL_FLAG, MOBILE_AC_NO, MOBILE_AC_DAT...
true
08e202163cc00fec5a06e00ffb3dafb5bae6696b
SQL
Fakaster/My_Kinopoisk_test2
/View/View.sql
UTF-8
966
3.875
4
[]
no_license
-- Общая информация о фильме create or replace view total_films as select f.id , f.film_name , c.country_name , date_format(fp.date_premiere, '%Y') as yer , fp.worldwide_fees , fp.russians_fees , fp.age_limit , fp.date_premiere , fp.duration , sum(fr.user_rate)/ count(fr.user_rate) as rating , fp.access_for_premium...
true
a346683627723ff9198383291d3d758a7a25ba60
SQL
Joelstraley/Employee-Tracker
/schema.sql
UTF-8
483
3.25
3
[ "Unlicense" ]
permissive
DROP DATABASE IF EXISTS employeeTrackerDB; CREATE DATABASE employeeTrackerDB; USE employeeTrackerDB; CREATE TABLE department ( id int PRIMARY KEY, name varchar(30) NOT NULL ); CREATE TABLE role ( id int PRIMARY KEY, title varchar(30) NOT NULL, salary DECIMAL(10,2) NOT NULL, department_id INT NOT NULL );...
true
a3121ee75ab31388920964bc30ede24ee5ba2ecf
SQL
vgoel38/PQET
/inputs/really_final_outputs/without_seq/with_hj/2c.sql
UTF-8
3,963
2.703125
3
[]
no_license
QUERY PLAN -----------------------------------------------------------------------------------------------------------------------------------...
true
f0cf58efffbeca148a78b65f2ac9f9a82c84b83b
SQL
ArturoAG/SQL-taller2
/New 300gym.sql
UTF-8
9,350
3.5
4
[]
no_license
/* Navicat MySQL Data Transfer Source Server : sql Source Server Version : 50530 Source Host : localhost:3306 Source Database : 300gym Target Server Type : MYSQL Target Server Version : 50530 File Encoding : 65001 Date: 2016-11-29 18:44:41 */ SET FOREIGN_KEY_CHECKS=0; -- --------...
true
18225341d43e9b9bc055015f5e0f549296fd7c81
SQL
jhkcia/chetori
/src/main/resources/db/migrate.sql
UTF-8
5,320
3.4375
3
[]
no_license
SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS branchs; DROP TABLE IF EXISTS users; DROP TABLE IF EXISTS evaluation_criterion; DROP TABLE IF EXISTS evaluation_form_type; DROP TABLE IF EXISTS evaluation_form_type_element; DROP TABLE IF EXISTS assessment_interpretation_method; DROP TABLE IF EXISTS quantitive_range_inte...
true
f887c4f0e34a53622d0259ee23b7c2e43b908ead
SQL
ahmadharminto/ci3-jquery-easyui
/database/mysql_db.sql
UTF-8
1,863
2.9375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.0.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 07, 2016 at 10:58 AM -- Server version: 5.6.20 -- PHP Version: 5.5.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
44ff7f5a5368e4b42ce7a84f0a08189ea6ae0346
SQL
guhaigg/python
/month02/day08/mysql.sql
UTF-8
2,123
4.25
4
[]
no_license
多表查询 select c.name,c.age,c.score,h.hobby,h.price from class as c,hobby as h where c.name=h.name; select name,salary,dname from person,dept where person.dept_id = dept.id; 内连接 select name,salary,dname from person inner join dept on person.dept_id = dept.id where salary>18000; 左连接 select * from person left join dept o...
true
ee9986bb70588868ba3cc1eac7ac03617249c66d
SQL
matejtarca/MasarykBOT
/database/sql/13-muni.subjects.sql
UTF-8
716
3.296875
3
[]
no_license
-- Table: muni.subjects -- DROP TABLE muni.subjects; CREATE TABLE muni.subjects ( faculty character varying COLLATE pg_catalog."default" NOT NULL, code character varying COLLATE pg_catalog."default" NOT NULL, name character varying COLLATE pg_catalog."default" NOT NULL, url text COLLATE pg_catalog."de...
true
d3de75f85550af4085c0c5d98eb6680321e98652
SQL
neostreet/poker_session_data
/mtt_nlhe_6max_utl_pct.sql
UTF-8
217
2.90625
3
[]
no_license
use poker select sum(place <= num_players),count(*),sum(place <= num_players) / count(*) from poker_sessions where poker_style = 2 and poker_flavor = 3 and num_players = 6 and place is not null and place != 0; quit
true