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
1ab332d3f4238c5dcc4953fa7f1f36319e11e40f
SQL
mxdjz/MyBBS
/data/create_table.sql
UTF-8
4,580
3.453125
3
[]
no_license
drop table if exists T_BBS_USER; drop table if exists T_BBS_MEMBER; drop table if exists T_BBS_ADMINISTRATOR; drop table if exists T_BBS_PLATE; drop table if exists T_BBS_POST; drop table if exists T_BBS_REPLY; drop table if exists T_BBS_NOTICE; create table T_BBS_USER ( USER_ID char(36) no...
true
e7b826ab05300b688a6716e1f3a301d188025fac
SQL
pacificpelican/lovebird
/lovebird4.sql
UTF-8
33,458
3.03125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Dec 27, 2016 at 09:27 AM -- Server version: 5.6.33 -- PHP Version: 7.0.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
true
e23c879b1d9d6bf1111dbc27141f936ab67bfccb
SQL
kongyew/gpdb
/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/filerep_end_to_end/ct/sql/skip/ct_heap_alter_part_split_partlist.sql
UTF-8
3,767
3.109375
3
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "PostgreSQL", "LicenseRef-scancode-other-copyleft", "metamail", "BSD-3-Clause", "LicenseRef-scancode-openssl", "LicenseRef-scancode-other-permissive", "ISC", "Python-2.0", "bzip2-1.0.6", "LicenseRef-scancode-ssleay-windows", "LicenseRef-scanco...
permissive
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore -- -- CT HEAP TABLE 1 -- create table ct_heap_alter_part_split_partlist1 (i int) partition by list(i) (partition a values(1, 2, 3, 4), partition b values(5, 6, 7, 8), default partition default_part); -- -- Insert few records into the tab...
true
f59cd5626593b106828a5dafdde0bcd8b83f5b37
SQL
Ivan-Zavalin/laravel-ecommerce-game
/app/VspPHPKit/demo/sagepay.sql
UTF-8
3,994
3.1875
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS `payment`; DROP TABLE IF EXISTS `product`; DROP TABLE IF EXISTS `customercard`; DROP TABLE IF EXISTS `customer`; -- -- Table structure for table `payment` -- CREATE TABLE `payment` ( `vendorTxCode` varchar(40) NOT NULL, `addressResult` varchar(20) DEFAULT NULL, `addressStatus` varchar(20) D...
true
51f60c5c9c9a4eb7fc642c842ea92f7d279c2948
SQL
ejkennelly/EmployeeTracker
/schema.sql
UTF-8
2,385
4.125
4
[ "MIT" ]
permissive
--CREATING OUR DATABASE -- DROP DATABASE IF EXISTS employee_trackerDB; CREATE DATABASE employee_trackerDB; USE employee_trackerDB; -- DEPARTMENT TABLE ---- CREATE TABLE department ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(40) ); -- DEPARTMENT TABLE ---- CREATE TABLE role ( id INT NOT NULL A...
true
3230c0fdc3e8f062430f85ea76a909eeec371efa
SQL
CC-Show/CC-Show-API-Server
/src/main/resources/com/boxfox/core/store/select/select.sql
UTF-8
85
2.59375
3
[]
no_license
SELECT * FROM `asset` as a RIGHT JOIN `asset_code` as c on a.id = c.id WHERE a.id = ?
true
2f4e5cfdb330e32bdd1f496403339916b2b91775
SQL
TrocaTudo95/SINF-FEUP
/backend-python-mysql/src/sff/db/populate.sql
UTF-8
1,061
2.515625
3
[]
no_license
USE salesforcefeup; SET foreign_key_checks = 1; INSERT INTO Role(name, description) VALUES('sales_person', 'A Sales person'); INSERT INTO Role(name, description) VALUES('sales_leader', 'A Sales leader, it is the leader of a sales team'); INSERT INTO User(salesmanCode,password,fullname) values('generic','generic','gen...
true
5c1dc089fc5643ee19ee925eb2d4379d581a617e
SQL
IBARTI2019/api-ibarti
/utils/config_placa.sql
UTF-8
3,844
3.25
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 04-05-2020 a las 20:59:25 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
25153b5432420711f7330174d1a06945d0688fd9
SQL
Eng-HebaEssam/Databases
/main_db (1).sql
UTF-8
31,149
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 26, 2021 at 11:41 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.3.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
cd78e5d3ee9aac5af11733e0d988dccf929eaab0
SQL
NoMagicAi/bq-api
/sql_queries/kpis_in_lab.sql
UTF-8
672
3.546875
4
[]
no_license
CREATE OR REPLACE VIEW `staging-nomagic-ai.api.kpis_in_lab` AS WITH records AS ( SELECT evaluation_id, MIN(voyage) AS voyage, run_id, COUNT(*) AS attempts, COUNTIF(is_success) AS successes, COUNTIF(is_excluded) AS excluded, COUNTIF(hard_failure) AS hard_failures, COUNTIF(soft_failure) AS soft_failures, COUNTIF(is_two_i...
true
d8d1df89a683ae9984d15e21c222c8ac130c3ac2
SQL
szeged/TyGL
/Websites/test-results/init-database.sql
UTF-8
2,186
3.890625
4
[]
no_license
DROP TABLE results CASCADE; DROP TABLE tests CASCADE; DROP TABLE build_revisions CASCADE; DROP TABLE builds CASCADE; DROP TABLE slaves CASCADE; DROP TABLE repositories CASCADE; DROP TABLE builders CASCADE; CREATE TABLE builders ( id serial PRIMARY KEY, master varchar(64) NOT NULL, name varchar(64) NOT NULL...
true
ff4dd3cc046a9918cfe19e8382a84cfa9cb8a4b3
SQL
RobertWSmith/TD_SQL
/Order Management/Delivery In Process Comparison.sql
UTF-8
6,263
3.09375
3
[]
no_license
SELECT CAST('DIP' AS VARCHAR(25)) AS QRY_TYP , CASE WHEN ODMS_PMW.ORDER_ID IS NOT NULL THEN ADD_MONTHS((CURRENT_DATE - 1) - EXTRACT(DAY FROM CURRENT_DATE - 1) + 1, - 1) WHEN ODS.ORDER_DT <= (CURRENT_DATE - 1) - EXTRACT(DAY FROM CURRENT_DATE - 1) OR ODS.ORDER_DT IS NULL ...
true
3b2a941c8a77f8a62520ad0f9559c77da9303c2e
SQL
anjali13942/Training
/postgres/information_schema/tables/information_schema_data_type_privileges.sql
UTF-8
430
2.515625
3
[]
no_license
CREATE TABLE IF NOT EXISTS information_schema.data_type_privileges ( object_catalog character varying , object_schema character varying , object_name character varying , object_type character varying , dtd_identifier character varying ); GRANT INSERT, SELECT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER on informatio...
true
c3d3dc02ff4a380fdc5c44e3616003b12ef75c71
SQL
limbert08/SinglePageApp_FullStackHandleBar
/db/SchemaSeeds.sql
UTF-8
599
3.53125
4
[]
no_license
CREATE DATABASE IF NOT EXISTS burgers_db; USE burgers_db; # If the table already exists, remove it before trying to create the table again DROP TABLE IF EXISTS burgers; # Create the burgers table CREATE TABLE burgers ( id int NOT NULL AUTO_INCREMENT, burger_name varchar(255) NOT NULL, devoured BOOL DEFAULT false, PRI...
true
23654a872309f9207b7d5da777178f6ffe64b981
SQL
ptopping/DepthandTaxes
/DepthandTaxes/nfl_passing.sql
UTF-8
3,201
3.796875
4
[]
no_license
SELECT abbreviation AS abbreviation ,SUM(attempts) AS attempts ,SUM(attempts_inc_sacks) AS attempts_inc_sacks ,SUM(completions) AS completions ,gsisplayer_id AS gsisplayer_id ,SUM(interceptions) AS interceptions ,opponent ...
true
f1f426f76bdd1c31d83cb2fea8e02f267b276279
SQL
microsoft/Azure_Synapse_Toolbox
/TSQL_Queries/Current_Activity/RecentQueries.sql
UTF-8
1,213
3.703125
4
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
--Recently ran queries still in exec_requests SELECT r.[session_id] ,r.[request_id] ,r.[status] ,s.[login_name] ,r.[command] ,r.[submit_time] ,r.[end_time] --,r.[end_compile_time] ,datediff(ms,r.[submit_time], r.[end_compile_time]) AS [compile_time_ms] ,datediff(ms,r.[end_compile_time],r.[start_time]) AS [wait...
true
5520db5f8e4b444660588555caf1ae9d9a003ef4
SQL
AyeshaKulsum/MyProject
/scripts/003_queries_07_07_2021.sql
UTF-8
3,425
4.15625
4
[]
no_license
--Fetch all data from teacher table SELECT p.people_first_name || ', ' ||p.people_last_name as full_name, p.people_address, p.people_phone_number,d.designation_name, string_agg(distinct (s.subject_name) ,',') as subjects_handled_by_teacher,string_agg(distinct (c.class_name) ,',') as classes_teacher, cl.class_name as c...
true
64ae8bf0dcc7f14e99ea2aabece5668efa800f6e
SQL
GustavoHekel/sirge
/app/sql/Ddjj/listarImpresiones.sql
UTF-8
602
3.4375
3
[]
no_license
SELECT id_impresion, fecha_impresion, s.lote AS "Lote(s)", '<a class="imprimir" id_impresion="' || id_impresion || '"><i class="halflings-icon print"></i></a>' AS reimprimir FROM ddjj.sirge s LEFT JOIN sistema.lotes l ...
true
34189f608d5bff118b6cca310ac16ea69d563187
SQL
cdesmarais/WebDB-Test
/WebDB/StoredProcedures/Common/dbo.Admin_UpdateEmailTemplate.prc
UTF-8
1,999
3.578125
4
[]
no_license
if exists (select * from dbo.sysobjects where ID = object_ID(N'[dbo].[Admin_UpdateEmailTemplate]') and OBJECTPROPERTY(ID, N'IsProcedure') = 1) drop procedure [dbo].[Admin_UpdateEmailTemplate] GO -- Returns list of specific email template -- This proc is cloned as Admin_UpdateEmailTemplateForLanguageID, please repeat -...
true
616eeb5b80fcce9fbdd25bc2250d56ae8ed4a386
SQL
ErickZc/examenfinal
/examenfinal/Script/dbfinal.sql
UTF-8
2,762
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 24-05-2018 a las 04:01:02 -- Versión del servidor: 10.1.25-MariaDB -- Versión de PHP: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
2d6a13baedf9a62a85e70e616a8a29a42bd4c777
SQL
x-ahmed/gizmoz
/database/gizmoz.sql
UTF-8
13,473
2.84375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 01, 2020 at 06:01 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
825daecf8e7c6a4df4491d4f4e782526bb2d5b70
SQL
saidali/DatabaseObjects-DSS
/Tables/dss_error_log.sql
UTF-8
1,720
3.34375
3
[]
no_license
ALTER TABLE DSS.DSS_ERROR_LOG DROP PRIMARY KEY CASCADE; DROP TABLE DSS.DSS_ERROR_LOG CASCADE CONSTRAINTS; CREATE TABLE DSS.DSS_ERROR_LOG ( LOGID NUMBER, ERRORID NUMBER, ERROR_LEVEL VARCHAR2(200 BYTE), ERROR_ON VARCHAR2(100 BYTE), ERROR_MESSAGE VARCHAR2(1000 BYTE), ERRO...
true
215167373fb8e491785a2a7f799dbf866bcc8619
SQL
gggso/todo
/document/sql/create.sql
UTF-8
3,010
3.03125
3
[ "MIT" ]
permissive
CREATE TABLE `user` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户ID', `passport` varchar(45) NOT NULL COMMENT '账号', `password` varchar(45) NOT NULL COMMENT '密码', `nickname` varchar(45) NOT NULL COMMENT '昵称', `create_time` timestamp NOT NULL COMMENT '创建时间/注册时间', PRIMARY KEY (`id`) ) ENGINE=Inno...
true
ac07dc01a4451e9c9fcb14304709359bd0e6b7d5
SQL
Thingsthatinspireme/DataVisualizationProject
/Presentation/sql완성본.sql
UTF-8
4,113
3.8125
4
[]
no_license
CREATE TABLE board_list ( `blno` INT AUTO_INCREMENT COMMENT 'blno', `bname` VARCHAR(45) NOT NULL COMMENT 'bname', PRIMARY KEY (blno) ); CREATE TABLE members ( `mno` INT AUTO_INCREMENT COMMENT 'mno', `id` VARCHAR(45) NOT NULL COMMENT 'id', `email`...
true
f1aa4617000236d55f2a128216ab81ce621fdae4
SQL
tulioliveira/pokedex
/migrations/2017-06-17-Database-Create.sql
UTF-8
2,393
3.90625
4
[ "MIT" ]
permissive
CREATE DATABASE IF NOT EXISTS pokedex; CREATE TABLE IF NOT EXISTS pokemon ( id int NOT NULL, weight float NOT NULL, height float NOT NULL, name varchar(255) NOT NULL, baseXP float NOT NULL, image LONGBLOB, generation int NOT NULL, type1Id int NOT NULL, type2Id int, PRIMARY KEY (id) ); CREATE TABLE IF NO...
true
fbf43b08c32221807b5e984bab63631ac8f2c0c2
SQL
imposimon/smap
/samples/ibm/wsrr/ibm_wsrr.sql
UTF-8
247,252
3.015625
3
[]
no_license
-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.0.67-community-nt /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CO...
true
b88977ccef3436d84a44bac00f95914c266ba788
SQL
SavStanis/KPIJavaTrack
/part2/lab234/exhibitionservice/sql/tables.sql
UTF-8
845
3.640625
4
[ "MIT" ]
permissive
create table users ( id serial primary key, name varchar(50), email varchar(150), password varchar(300), role varchar(20) ); create table exhibitions ( id serial primary key, title varchar(300), ticket_price numeric(18, 2), ...
true
58071d4c723b6239aee93cb67a724d7a3f7b0d25
SQL
jjburke3/fantasyFootball
/databaseFunctions/createModelTable.sql
UTF-8
2,600
3.25
3
[]
no_license
drop table if exists leagueSims.weeklyModelPlayerData; create table leagueSims.weeklyModelPlayerData ( predictionSeason smallint, playerId int, playerName varchar(50), fantasyPosition varchar(15), age tinyint, experience tinyint, playerRating tinyint, playerSpeed tinyint, playerAgility tinyint, playerCa...
true
5a8e00a72a386db52a47e151e86907a0ecef957f
SQL
jacquessham/sfotraffic
/Part4/ELT/stg_transform.sql
UTF-8
1,571
2.984375
3
[]
no_license
-- Transform pax stats data INSERT INTO STG__SFO_STATS.UNIQUE__PASSENGER_STATISTICS ( ACTIVITY_PERIOD, OP_AIRLINES, OP_CODE, PUB_AIRLINES, PUB_CODE, GEO_SUMM, GEO_REGION, ACTIVITY_TYPE, PRICE, TERMINAL, BOARDING_AREA, PAX_COUNT ) SELECT DISTINCT ACTIVITY_PERIOD, OP_AIRLINES, OP_CODE, PUB_AIRLINES, PUB_...
true
8a8ea630e963925516d886bdc88dc48ea5adcbc1
SQL
thanethomson/lifetracker-iter3
/src/main/resources/db/migration/V001__Initial.sql
UTF-8
1,405
3.921875
4
[]
no_license
-- -- Initial database/table creation for LifeTracker -- CREATE TABLE users ( id BIGSERIAL PRIMARY KEY, email VARCHAR(512) UNIQUE NOT NULL, first_name VARCHAR(512), last_name VARCHAR(512), password_hash VARCHAR(200), email_con...
true
ac1f83516ca764f3ed159475b1b5ca04e973b1c3
SQL
Iuliana2016/shop
/shop.sql
UTF-8
4,203
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jan 12, 2020 at 07:10 PM -- Server version: 10.2.27-MariaDB -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 S...
true
a677b447d44bd3fdf02f0b4d52f9cb1d63256e35
SQL
windygu/wms-2
/Dddml.Wms.Services.Tests/Sql/hbm2ddl_update.sql
UTF-8
2,053
2.578125
3
[]
no_license
alter table AttributeSetInstances add column Deleted TINYINT(1); alter table InventoryItemEntries add column Deleted TINYINT(1); alter table InventoryItemRequirementEntries add column Deleted TINYINT(1); alter table SellableInventoryItemEntries add column Deleted TIN...
true
884bb882f1bd2e588967ed57771080c3c9fb060a
SQL
hienninh/RAIWALL5
/SQL/Assignment 3/BTVN Testing System 3.sql
UTF-8
3,088
4.21875
4
[]
no_license
-- G:\My Drive\EPD_03\SQL_Document\Assignment\Testing System\SQL – Assignment 3 -- Question 2: lấy ra tất cả các phòng ban SELECT * FROM Department; SELECT DEPARTMENT_NAME FROM Department; -- Question 3: lấy ra id của phòng ban "Sale" SELECT DEPARTMENT_ID FROM Department where DEPARTMENT_Name ='sale'; -- Question ...
true
a4321715de62545f0710fb9fbd81c43be196eee8
SQL
flowable/flowable-sql
/sql/upgrade/common/flowable.oracle.upgradestep.6.4.2.to.6.5.0.common.sql
UTF-8
2,257
2.671875
3
[ "Apache-2.0" ]
permissive
update ACT_GE_PROPERTY set VALUE_ = '6.5.0.6' where NAME_ = 'common.schema.version'; update ACT_GE_PROPERTY set VALUE_ = '6.5.0.6' where NAME_ = 'entitylink.schema.version'; alter table ACT_HI_IDENTITYLINK add SUB_SCOPE_ID_ NVARCHAR2(255); create index ACT_IDX_HI_IDENT_LNK_SUB_SCOPE on ACT_HI_IDENTITYLINK(SUB_SCOPE_...
true
aad1fa1f856999691e818e81143a192f2eaa33f6
SQL
ebean-orm/ebean
/ebean-test/src/test/resources/migrationtest/dbmigration/oracle11/1.2__dropsFor_1.1.sql
UTF-8
734
2.65625
3
[ "Apache-2.0" ]
permissive
-- Migrationscripts for ebean unittest -- apply alter tables alter table migtest_e_basic drop column description_file; alter table migtest_e_basic drop column old_boolean; alter table migtest_e_basic drop column old_boolean2; alter table migtest_e_basic drop column eref_id; alter table migtest_e_history2 drop column ob...
true
fb3e091fc0d9b1854b01d211f2cb8b8599151626
SQL
lespinoza1/yablog
/app/v0.2/sql/tb_language_items.sql
UTF-8
45,768
2.734375
3
[]
no_license
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE */; /*!40101 SET SQL_MODE='' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES */; /*!40103 SET SQL_NOTES='ON' */; DROP TABLE IF EXISTS `tb_language_items`; CREATE TABLE `tb_language_items` ( `item_id` smallint(3) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id', `module_id`...
true
85c8d0280d79c2fe849bcdc26406b84902ac15fc
SQL
victorkowalski/spring-rest-data-library
/src/main/resources/data.sql
UTF-8
587
2.765625
3
[]
no_license
INSERT INTO students(student_id, name) VALUES (1, 'Иванов'),(2, 'Петров'),(3, 'Сидоров'); INSERT INTO books(book_id, serial_num, name) VALUES (1, 'A11-11', 'Student Workbook Java in a Nutshell'), (2, 'B11-12', 'The Complete Reference, Ninth Edition'), (3, 'C11-13', 'The Java Language Specification'), (4, 'D1...
true
d62e03a8c09cca1c16b3febb4fe96dfb23ab5678
SQL
lanle98/Le_Kandych_Le_Calderon_Romanko_Hackathon
/database/db_hackathon.sql
UTF-8
2,672
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Oct 08, 2019 at 05:20 AM -- Server version: 5.7.26 -- PHP Version: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
a87fbfc9d8baf6676d98a1d72c3d29c974e3f049
SQL
renays2000/ProjetJeeDauphine
/secondMarketDatabase/sql/script.sql
UTF-8
656
3.203125
3
[]
no_license
-- -- Base de données : `secondmarket` -- DROP DATABASE `secondmarket`; CREATE DATABASE IF NOT EXISTS `secondmarket` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `secondmarket`; -- -------------------------------------------------------- -- -- Structure de la table `users` -- DROP TABLE ...
true
4bef286b528c8b26f330d7ef112bad83f361a08d
SQL
edwardnguyen225/DBMS-Assignment-01
/DML/STUDENT.sql
UTF-8
3,147
4.34375
4
[]
no_license
USE Learning_Teaching; /* Xem danh sách môn học, lớp học, và các giảng viên phụ trách cho mỗi lớp của mỗi môn học ở học kỳ được đăng ký. */ SELECT CNAME, SID, MOEU.Lname, ASemester FROM SubClass SC, Lecturer L, Employee E, MemberOfEducationUnit MOEU, Subject SJ, Attend AT,...
true
c800e08ee116503bf96579ce5ae73c3e7f28367c
SQL
modabimbi/cat-migrate
/Store/PROD/source.sql
UTF-8
3,510
3.515625
4
[]
no_license
CREATE INDEX ACCOUNT_SUBSCRIBER_INDEX1 ON ACCOUNT_SUBSCRIBER (RANGE_MAP_EXTERNAL_ID); CREATE INDEX ACCOUNT_SUBSCRIBER_INDEX2 ON ACCOUNT_SUBSCRIBER (ADDTL_NOTIF_EXTERNAL_ID); CREATE INDEX MVNO_ASSIGNED_NUMBER_INDEX1 ON MVNO_ASSIGNED_NUMBER (TN); CREATE INDEX MVNO_ASSIGNED_NUMBER_INDEX2 ON MVNO_ASSIGNED_NUMBER (MODI...
true
d0f54ffde3975d6eda3cca9cb7cf72249951db18
SQL
danstoyanov/CSharp-Databases
/01 - [MS SQL Problems]/10 - [Subqueries and Joins - Exercise]/P08_Employee24.sql
UTF-8
331
3.5625
4
[ "MIT" ]
permissive
SELECT e.EmployeeID, e.FirstName, CASE WHEN YEAR(p.StartDate) >= 2005 THEN NULL ELSE p.Name END AS [ProjectName] FROM Employees AS e JOIN EmployeesProjects ep ON e.EmployeeID = ep.EmployeeID JOIN Projects p ON ep.ProjectID = p.ProjectID WHERE e.Employe...
true
014d9546e92612a01e4eae87501029a87a12db56
SQL
sayurusamarasinghe/SANDEP
/db/sandep.sql
UTF-8
12,126
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 12, 2016 at 11:52 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
59fd3de3aa2460daf34b15fa909b65dc1bc00b7a
SQL
nikolajlauridsen/DataBaseTasks
/Ex26/Ø5/TaskCreate.sql
UTF-8
158
2.921875
3
[]
no_license
CREATE TABLE Task( TaskID INT IDENTITY(1,1), Type NVarChar(100) Null, Hours Decimal(3,2) NOT NULL, -- PK CONSTRAINT TASK_PK PRIMARY KEY(TaskID) );
true
afd21bc2f4232864ece887c63e77ae312cd6a7e3
SQL
sklyaaaaarova/27102018_sklyarova
/27102018_3progect.sql
UTF-8
3,079
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Мар 03 2019 г., 18:58 -- Версия сервера: 10.1.35-MariaDB -- Версия PHP: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
e5385af2f408b3c05edb164443372e01d8d4c203
SQL
sdivision/CarService
/modules/core/db/init/postgres/10.create-db.sql
UTF-8
2,733
3.1875
3
[]
no_license
-- begin CARSERVICE_CAR_SERVICE_CENTER create table CARSERVICE_CAR_SERVICE_CENTER ( ID uuid, 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), ...
true
5c1f74c55dd89feab6b40774a7f8febaae501cc4
SQL
ANWADOSOH/Amanahbus
/amanahbus.sql
UTF-8
13,787
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 05, 2021 at 04:43 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
8dd33589cd1323106aac7b92bda15febf65ab1aa
SQL
xiaobxiaWarehouse/laolaiqiao
/laolaiqiao-tools/ddl_mysql.sql
UTF-8
8,400
2.578125
3
[]
no_license
drop table if exists t_activity; drop table if exists t_agreement; drop table if exists t_art_team; drop table if exists t_banner; drop table if exists t_fans; drop table if exists t_like_star; drop table if exists t_rember_me_token; drop table if exists t_sms_code; drop tab...
true
53cf486ef65d4ce097b5e02a480645197c648c60
SQL
Hakim2016/30EBS
/R12/3.HaiLi/R12/1.CUX programs/1.CUX Drill Down Report/6.CST RCV.sql
GB18030
5,885
2.8125
3
[]
no_license
/*CURSOR cur_rcv_data IS*/ SELECT DISTINCT xal.ae_header_id xal_header_id, xal.ae_line_num xal_line_id, (xal.ae_header_id || '-' || xal.ae_line_num) sla_flag, --slaʶ gjh.period_name, -- ڼ, gjs.user_je_source_name, -- Դ, gjc.user_je_cat...
true
f56ec7047b3b0bd4356b762481039ccde1f14790
SQL
ptamburu/PratComp05
/paises.sql
UTF-8
372
2.84375
3
[]
no_license
Drop schema if exists `Aula04`; CREATE SCHEMA IF NOT EXISTS `Aula04` DEFAULT CHARACTER SET utf8 ; USE `Aula04` ; CREATE TABLE IF NOT EXISTS `Paises` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `nome` VARCHAR(100) NOT NULL, `populacao` bigint(10) NULL DEFAULT NULL, `area` int(7) NOT NULL UNIQUE, PRIMARY KEY (`id`...
true
51128d00396400622c2df900d844cf7e12e177bf
SQL
FallenAngelX/Infinity_MaNGOS
/IsQl/Development/World/creature_model_race.sql
UTF-8
2,169
3.140625
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.0.45-community-nt - MySQL Community Edition (GPL) -- Server OS: Win32 -- HeidiSQL Version: 9.3.0.4984 -- ----------------------------------------------...
true
d83613733b595f08085915ceaeb63f37beeefd4c
SQL
JerryTanxiao/Jerry
/rice.sql
UTF-8
14,170
3.296875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : owen Source Server Version : 50717 Source Host : 192.168.0.237:3306 Source Database : rice Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2018-07-21 17:37:41 */ SET FOREIGN_KEY_CHECKS=0; -- -----...
true
fbd99230a6f1c10045b56b7e5d60e9f5559265bf
SQL
RoMalms10/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/16-shows_by_genre.sql
UTF-8
276
3.796875
4
[]
no_license
-- Show all titles and their genres SELECT tv_shows.title AS title, tv_genres.name AS name FROM tv_show_genres RIGHT OUTER JOIN tv_genres ON tv_genres.id = tv_show_genres.genre_id RIGHT OUTER JOIN tv_shows ON tv_shows.id = tv_show_genres.show_id ORDER BY title ASC, name ASC;
true
edf1cd2d4fae7a3f7a0181f5214db730f27fe94b
SQL
Tigerdile/tigerdile
/sql/legacy_sql/td-to-sd-migrate.sql
UTF-8
6,334
3.375
3
[ "BSD-3-Clause" ]
permissive
-- Migrate the data - Create a profile for everyone that's not in there. -- But first merge data in from people who *are* there. UPDATE sd_profiles sdp JOIN tigerd_posts tdp ON tdp.post_author = sdp.owner_id SET title = tdp.post_title, is_visible = IF(tdp.post_status = 'publish', 1, 0), aspec...
true
f235ffcae1e93fb4a1c6527d31c16df89b5c31fa
SQL
mthq/p
/sql.sql
UTF-8
1,646
3.484375
3
[]
no_license
CREATE TABLE `users` ( `user_id` int(11) NOT NULL AUTO_INCREMENT, `firstname` varchar(12) NOT NULL, `surname` varchar(12) NOT NULL, `acc_type` int(11) NOT NULL, `username` varchar(10) NOT NULL, `password` varchar(10) NOT NULL, `email` varchar(40) NOT NULL, PRIMARY KEY (`user_id`) ) ENGINE=MyISAM AUTO_IN...
true
6e6d9fd58f7dc769cba0b6243b013479b3c9683e
SQL
yankitsis/loanapp
/create_table.sql
UTF-8
444
2.703125
3
[]
no_license
Create Table CREATE TABLE `application` ( `id` int(11) NOT NULL AUTO_INCREMENT, `loan_amount` decimal(10,0) DEFAULT NULL, `property_value` decimal(10,0) DEFAULT NULL, `ssn` varchar(50) DEFAULT NULL, `date_created` varchar(15) DEFAULT NULL, `application_id` varchar(50) DEFAULT NULL, `loan_statu...
true
645db64ed06c8d91f3dc9ec7aeb0ef3e65cf24d4
SQL
labakadam/SafeFlyEU
/build/zavrsniRad.sql
UTF-8
6,696
3.203125
3
[]
no_license
drop database if exists zavrsniRad; create database zavrsniRad character set utf8 collate utf8_general_ci; # mysql -uedunova -pedunova --default_character_set=utf8 < c:\users\labak\documents\adam\zavrsniradedunova\zavrsnirad.sql use zavrsniRad; create table avioKompanija( id int not null primary key auto_incre...
true
e8f8351e198cb57f2d8c898596480ed2bc98df86
SQL
ghas-results/Message-Hub
/Routing-Rules-Service/postgres_schema.sql
UTF-8
2,129
3.1875
3
[ "BSD-3-Clause", "JSON", "MIT", "ISC", "Apache-2.0" ]
permissive
-- DDL generated by Postico 1.5.8 -- Not all database features are supported. Do not use for backup. -- Table Definition ---------------------------------------------- CREATE TABLE routing_rules ( id SERIAL PRIMARY KEY, organization_id integer NOT NULL REFERENCES organizations(id) ON DELETE CASCADE, data_...
true
00f3ce224b4d53655335ea7cadeb6ada6c948029
SQL
thiagobfb/pi2-repository
/sel/src/main/webapp/WEB-INF/sql/pi2project-db/pi2project-db_tb_item.sql
UTF-8
2,673
2.921875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `pi2project-db` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `pi2project-db`; -- MySQL dump 10.13 Distrib 5.6.17, for Win64 (x86_64) -- -- Host: localhost Database: pi2project-db -- ------------------------------------------------------ -- Server version 5.6.21-log /*!40101 SE...
true
edd61eb9d952c93d96efea535ed2ac76636cdfa3
SQL
cdthomp1/cs3131-main
/team-activities/week-06/week06.sql
UTF-8
560
3.765625
4
[]
no_license
CREATE TABLE topic ( id serial PRIMARY KEY, name varchar(255) NOT NULL ); INSERT INTO topic (name) VALUES ('Faith'); INSERT INTO topic (name) VALUES ('Sacrifice'); INSERT INTO topic (name) VALUES ('Charity'); CREATE TABLE scripture_links ( scriptureId int NOT NULL REFERENCES scriptures(id), topicId int NOT NUL...
true
e5ba393e6c8f24842743ddd0e14fde941ec6aa91
SQL
Sesshoumarusama/craft
/doc/sys_users.sql
UTF-8
2,495
3.015625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : local_mysql Source Server Version : 50713 Source Host : localhost:3306 Source Database : rms Target Server Type : MYSQL Target Server Version : 50713 File Encoding : 65001 Date: 2017-08-22 20:51:25 */ SET FOREIGN_KEY_CHECKS=0; -- ---...
true
9690be6b86faac15184b642481489f91f39d4e8c
SQL
emilianoLarrea/sistemaTurnos
/prueba4.sql
UTF-8
8,552
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 19, 2018 at 09:21 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
dd036dd2498f4f9a6a82712f09bd8c02d2377317
SQL
mbits-os/DLNA
/server/schema_v1.sql
UTF-8
1,255
3.265625
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS covers; DROP TABLE IF EXISTS entries; CREATE TABLE entries ( _id INTEGER PRIMARY KEY AUTOINCREMENT, filepath TEXT, item_class INTEGER NOT NULL DEFAULT(0), parent INTEGER NOT NULL DEFAULT(0), last_write_time INTEGER NOT NULL, org_pn TEXT, mime TEXT, title TEXT NOT NULL, artist TEXT, album...
true
a30eedfc7c4c2e3507e746c54fa4ad2581d35348
SQL
btiwatches/Website
/.idea/DATABASE/BTI Watches Datenbank.sql
UTF-8
23,033
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Erstellungszeit: 18. Nov 2020 um 20:15 -- Server-Version: 10.4.14-MariaDB -- PHP-Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
true
b9e0d046a49e654fd3affbeb06b903e0699c0851
SQL
AlfredPianist/holbertonschool-higher_level_programming
/0x0D-SQL_introduction/101-avg_temperatures.sql
UTF-8
240
3.390625
3
[]
no_license
-- Prints average temperature by city in descending order from the temperatures -- table from database passed as argument of the mysql command. SELECT city, AVG(value) AS avg_temp FROM temperatures GROUP BY city ORDER BY avg_temp DESC;
true
8bdef7a902d8bf1ae17de5793ffcc3d8471a9edb
SQL
spacewalkproject/spacewalkproject.github.io
/documentation/schema-doc/db-schema/sql_sources/table/rhnactionvirtstart.sql
UTF-8
565
2.84375
3
[]
no_license
-- created by Oraschemadoc Wed Jan 9 15:06:54 2019 -- visit http://www.yarpen.cz/oraschemadoc/ for more info CREATE TABLE "SPACEUSER"."RHNACTIONVIRTSTART" ( "ACTION_ID" NUMBER NOT NULL ENABLE, "UUID" VARCHAR2(128) NOT NULL ENABLE, "CREATED" TIMESTAMP (6) WITH LOCAL TIME ZONE DEFAULT (current_timestamp) NOT NUL...
true
a14226bc74423eb667491f941189b166eba4ad6c
SQL
jeis018/Catalogo
/Proyecto/sql/database.sql
UTF-8
2,705
3.484375
3
[]
no_license
-- =============================================================== -- Base de datos CATALOGO -- =============================================================== USE Catalogo; -- =============================================================== -- Producto -- =============================================================== ...
true
c0404d758baf42444b74582680a37236c97f1637
SQL
macdougt/perl-examples
/info_db/tbl_schema.sql
UTF-8
502
3.671875
4
[ "Apache-2.0" ]
permissive
CREATE TABLE tbl_info ( id INTEGER PRIMARY KEY AUTOINCREMENT, title TEXT, info TEXT, user TEXT, time_added TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); CREATE TABLE tbl_tag ( id INTEGER PRIMARY KEY AUTOINCREMENT, tag TEXT ); CREATE TABLE tbl_info_tag_ref ( id INTEGER PRIMARY KEY AUTOINCREMENT, info_id I...
true
77b88217dd1f554245f205dc581f94879db66a50
SQL
Pramodnagarajarao/DatabaseSystems-RDMS
/RDMS - Code/USEROF.sql
UTF-8
806
3.125
3
[]
no_license
CREATE TABLE "SYSTEM"."USEROF" ( "USER_ID" VARCHAR2(40 BYTE) NOT NULL ENABLE, "USER_FIRSTNAME" VARCHAR2(40 BYTE), "USER_LASTNAME" VARCHAR2(40 BYTE), "USER_EMAILID" VARCHAR2(40 BYTE), "USER_DOB" DATE, PRIMARY KEY ("USER_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE...
true
367cddb9f4df38742548b58c6a2b33f2f5db4b6f
SQL
ragnathurdx/dbds
/cw4-2.sql
UTF-8
521
3.375
3
[]
no_license
/*2.Do poprzedniego skryptu dodaj instrukcje zmieniającą location_id (3000) dla dodanego departamentu.*/ DECLARE numer_max NUMBER; dept_name departments.department_name%TYPE:='EDUCATION'; BEGIN SELECT MAX(department_id) INTO numer_max FROM departments; DBMS_OUTPUT.put_line(numer_max); INSERT INTO departments (departm...
true
f9bc5f47aa29f6f58a314cf76f62524f9cfac538
SQL
jrmiller82/pathfinder-2-sqlite
/deprecated/deprecated-sql-schema-files/armor.sql
UTF-8
1,149
3.546875
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
CREATE TABLE armorgroup ( grp_id INTEGER PRIMARY KEY, sources_id INTEGER NOT NULL, sources_pages TEXT NOT NULL, short_name TEXT NOT NULL UNIQUE, descr TEXT NOT NULL, FOREIGN KEY (sources_id) REFERENCES sources(sources_id) ); CREATE TABLE armorcategory ( armor_category_id INTEGER PRIMARY KEY, short_name ...
true
2920a8ef3d297dd9b6c946957ac8c2ab843f09eb
SQL
sunkickr/Astronomer
/dags/sql/FETCH_BEST_MODEL.sql
UTF-8
155
3.234375
3
[]
no_license
SELECT ml_id FROM ml.accuracies WHERE accuracy = ( SELECT MIN(accuracy) FROM ml.accuracies WHERE ml_date='{{ ds }}' ) AND ml_date='{{ ds }}'
true
0013916627d7a96dd7b1c9ebf434c9b946463c63
SQL
PNNL-Comp-Mass-Spec/DBSchema_PgSQL_DMS
/dms/v_dataset_files_list_report.sql
UTF-8
868
3.375
3
[ "Apache-2.0" ]
permissive
-- -- Name: v_dataset_files_list_report; Type: VIEW; Schema: public; Owner: d3l243 -- CREATE VIEW public.v_dataset_files_list_report AS SELECT df.dataset_id, ds.dataset, df.file_path, df.file_size_bytes, df.file_hash, df.file_size_rank, instname.instrument, df.dataset_file_id ...
true
70a6644aa0997f7be78ff40d7b6db7ef4e3736e2
SQL
angelinapavynska/ange-applicationProject
/italian_parks_sql.sql
UTF-8
5,980
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Jun 29, 2020 at 08:00 PM -- Server version: 5.7.26 -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
1d56ded490648184b654dda40cfe7990e14158d3
SQL
JadaShipp/Database-Exercises
/3.6_functions_exercises.sql
UTF-8
2,099
4.46875
4
[]
no_license
USE employees; SELECT * FROM employees; #all employees with first names 'Irena', 'Vidya', or 'Maya' SELECT * FROM employees WHERE (first_name = 'Irena' OR first_name = 'Vidya' OR first_name = 'Maya') AND gender = 'M' ORDER BY last_name, first_name DESC; #all employees whose last name starts with 'E' SELECT * FROM emp...
true
27afb00b832f4c59c095653b40256af896b3dc89
SQL
ossrndc/QP-Portal
/uptu.sql
UTF-8
93,118
3.21875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : wampo Source Server Version : 50617 Source Host : localhost:3306 Source Database : uptu Target Server Type : MYSQL Target Server Version : 50617 File Encoding : 65001 Date: 2015-10-14 00:31:34 */ SET FOREIGN_KEY_CHECKS=0; -- --------...
true
71d4a2d3b1727bd99a4638c045ee65313e96d0e6
SQL
MaximeDouylliez/DUT-Info
/projet/php vaccance/test.sql
UTF-8
351
3.203125
3
[]
no_license
drop database inventaire; create database inventaire; use inventaire; create table Salle( idsalle serial PRIMARY KEY, nomsalle varchar(20), descriptionsalle varchar(100)); create table objet( idobjet serial , nomobjet varchar(20), descriptionobjet varchar(50), idsalle int, PRIMARY KEY(idobjet,idsalle), FOREIGN K...
true
7387bb4abf5424e5cec968a4516eaf48b1a6d894
SQL
luCAOrx/banco-de-dados
/DB_LOCADORA_DADOS.sql
ISO-8859-1
1,480
2.828125
3
[]
no_license
insert into db_locadora.tb_ufs (ufs_uf, ufs_sigla) values ('Acre', 'AC'), ('Alagoas', 'AL'), ('Amazonas', 'AM'), ('Amap', 'AP'), ('Amap', 'AP'), ('Bahia', 'BA'), ('Cear', 'CE'), ('Distrito Federal', 'DF'), ('Esprito Santo', 'ES'), ('Maranho', 'MA'), ('Minas Gerais', 'MG'), ('Mato Grosso do Sul', 'MS'), ('Mato G...
true
35ea01f4b139067c95ebfe9ed3fb81b83bc1112c
SQL
jairosousa/cadeia-iucara
/Iucara/src/java/br/com/ufra/docs/Iuçará.sql
UTF-8
7,635
3.734375
4
[]
no_license
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='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema cadeia_iucara -- --------------------------...
true
e7ce30f27e474fee83ccf68bc659cb28a29f4705
SQL
chadmyers/testswarm
/config/reset.sql
UTF-8
374
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- Resets the entire database TRUNCATE clients; TRUNCATE jobs; TRUNCATE run_client; TRUNCATE run_useragent; TRUNCATE runs; TRUNCATE users; -- Optional -- Resets just the results from clients UPDATE jobs SET `status`=0 WHERE 1=1; UPDATE run_useragent SET `runs`=0, `completed`=0, `status`=0 WHERE 1=1; UPDATE runs SET `s...
true
f3edcf6f02bf3bfc02fc49f0515e1507106237e5
SQL
Lobey86/WebRSA
/app/Config/sql/webrsa.SCHEMA-20090525.sql
UTF-8
36,251
3.59375
4
[]
no_license
/* TODO: - NULL, pas NULL -> voir xls - voir si des INT peuvent passer en TINYINT - nataccosocfam et diflog: faire les tables associées - vérifier types pour dossiers et personnes */ CREATE TABLE groups ( id SERIAL NOT NULL PRIMARY KEY, name VARCHAR(50), ...
true
a45561a90ac7eef3c5e24f9bd9140ff094e932aa
SQL
haryanto44/PAWC_KELOMPOK
/laravel.sql
UTF-8
7,314
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 26, 2021 at 11:10 AM -- Server version: 10.4.19-MariaDB -- PHP Version: 7.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
29a90bd0452f07d669626e6df4ff6e9677b0ac23
SQL
parasuc/eMarket
/database/InsertData(数据).sql
UTF-8
11,366
2.65625
3
[]
no_license
-- 商家插入数据 INSERT INTO `business` (`bid`, `username`, `password`, `email`, `tel`) VALUES (1, 'shophuang', '123456', '1060031655@qq.com', '123456789'), (2, 'aaa', '123456', '123@qq.com', '123'), (3, 'bbb', '123456', '456@qq.com', '456'), (4, 'ccc', '123456', '789@qq.com', '789'), (5, 'ddd', '123456', '159@qq.com', '56789...
true
c2f316d5fb20f5a145003f8e0ffb54c9c24759b4
SQL
RheeKyeongKyu/voisin
/src/main/webapp/WEB-INF/doc/dbms/member.ddl
UHC
2,556
3.375
3
[]
no_license
DROP TABLE member CASCADE CONSTRAINTS; /**********************************/ /* Table Name: ȸ */ /**********************************/ CREATE TABLE member( mno NUMBER(6) NOT NULL PRIMARY KEY, email VARCHAR2(50) NOT NULL, passwd ...
true
dbb55f382b9b4e704d9d39dacb38509e98dc2f01
SQL
jiwidi/ETSINF3
/SemesterA/BDA/lab1/15.sql
UTF-8
317
3.4375
3
[]
no_license
SELECT P.COD_PELI, P.TITULO FROM CS_PELICULA P WHERE P.COD_PELI IN (SELECT AT.COD_PELI FROM CS_ACTUA AC WHERE AT.COD_ACT IN (SELECT A.COD_ACT FROM CS_ACTOR A WHERE A.NOMBRE = P.DIRECTOR));
true
cf3d2865b48ddf60e2e8314f2b99a68b6ca240da
SQL
MithrandirD/common_schema
/tests/root/run__split/66/test.sql
UTF-8
308
2.640625
3
[ "MIT", "BSD-3-Clause", "GPL-1.0-or-later" ]
permissive
-- since PK is textual, starting with 900 only ends up with ten rows. SET @s := ' set @counter := 0; update test_cs.test_split_text set nval = 1; split({start: 900}: update test_cs.test_split_text set nval = nval + 1) { set @counter := @counter + 1; } '; call run(@s); select @counter = 1;
true
274ddcbeda44323e377d7bc25e793807c0fbda86
SQL
asv765/aConverter
/aConverterClassLibrary/Resources/StoredProcs/CC/CNV_CC_CCHARSDUPLICATION.sql
WINDOWS-1251
2,258
3.625
4
[]
no_license
SET TERM ^ ; create or alter procedure CNV$CC_CCHARSDUPLICATION ( ACTIONTYPE smallint) returns ( ID integer, LSHET varchar(10), CHARCD integer, CHARNAME varchar(50), VALUE_ numeric(11,4), DATE_ timestamp) as declare variable CURID integer; declare variable CURLSHET varchar(10);...
true
57d2a057a7ae749ff82e4f38b388a649dbb5c2ef
SQL
TechWZ/SQL
/CreateUserHistoryInsertTrigger.sql
UTF-8
374
3.15625
3
[]
no_license
DELIMITER || CREATE TRIGGER userhistory_insert_trigger AFTER INSERT ON u_c_user_history_nidtga FOR EACH ROW BEGIN IF (NEW._status_ = 0) THEN INSERT INTO campus6.c_user_history(manual_id,nid,ip,hwaddr,action_time,status) VALUES (NEW.manual_id,NEW.nid,NEW.ip,NEW.hwaddr,NEW.acti...
true
7e11ea7a1be2b20a7f97c5ce90a50b756a2dba9d
SQL
peterluzl/sql-challenge
/EmployeeSQL/Queries.sql
UTF-8
2,566
4.59375
5
[]
no_license
--Select to see all the tables SELECT* FROM employees SELECT* FROM salaries SELECT* FROM dept_emp SELECT* FROM dept_manager SELECT* FROM departments SELECT* FROM titles -- 1. List the following details of each employee: employee number, last name, first name, gender, and salary. SELECT emp.emp_no,emp.first_name,emp.l...
true
8fca5c58ee76edfbda480e966e362a7c5c52a117
SQL
joytywu/ICU_frequent_flyer
/ICU_FF_SQL/Drgevents.sql
UTF-8
1,589
4.03125
4
[]
no_license
WITH temp AS (SELECT DISTINCT adm1.subject_id , adm1.hadm_id as first_adm , adm1.admit_dt as first_dt , adm2.hadm_id as subsequent_adm , adm2.admit_dt as second_dt FROM MIMIC2V26.admissions adm1 JOIN mimic2v26.admissions adm2 ON adm1.subject_id = adm2.subject_id AND adm2.admit_dt BETWEEN adm1.admit_dt AND DATE(a...
true
b2badcb165200578a07902a051be78c29b44ab6b
SQL
tuxinjie/weibo
/spray.sql
UTF-8
8,697
3.3125
3
[ "MIT" ]
permissive
/* Navicat MySQL Data Transfer Source Server : 1 Source Server Version : 50505 Source Host : localhost:3306 Source Database : spray Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2017-07-03 14:09:08 */ SET FOREIGN_KEY_CHECKS=0; -- -----------...
true
f4532719f6132ad766e24a59474859b8c9b9913a
SQL
henryyang1993/minisql2014
/test.sql
UTF-8
455
3.140625
3
[]
no_license
create table t1 ( a1 int unique, a2 float, a3 char(20), primary key(a2) ); insert into t1 values(1, 1.0, 'abc'); insert into t1 values(2, 0.5, 'fuck'); insert into t1 values(3, 10.88, 'you'); select * from t1; select a1,a2 from t1; select * from t1 where a1 > 2; select * from t1 where a1 > 1 and a1 <3; select * f...
true
4525cdd9b6e043691889622927c4e74cb0c22e71
SQL
chinhlk81/PL-SQL
/ams_rep_ambs_2016.sql
UTF-8
951
2.84375
3
[]
no_license
drop table ams_rep_ambs_2016; create table ams_rep_ambs_2016 ( record_date date, outlet_ams_id varchar2(16), outlet_name varchar2(255), branch_ams_id varchar2(16), branch_name varchar2(255), agency_ams_id varchar2(16), agency_name varchar2(255), location_ams_id varchar2(16), rege...
true
178a5fcd987bddc39a20c0d13f0634e97978695b
SQL
clarkdev700/patients_follow_up
/Optica/obj/Debug/tmp29A0.sql
UTF-8
1,029
2.734375
3
[]
no_license
ALTER TABLE "dbo"."Traitements" DROP CONSTRAINT IF EXISTS "FK_dbo.Traitements_dbo.Medecins_MedecinRecommandantId" ; DROP INDEX IF EXISTS dbo."Traitements_IX_MedecinRecommandantId" ; ALTER TABLE "dbo"."Patients" ADD "Titre" int4 NOT NULL DEFAULT 0 ; ALTER TABLE "dbo"."Traitements" ALTER COLUMN "MedecinRecommandantId"...
true
4431e84fc8b690769c7a9be7c0bf1e313ff74e56
SQL
ireapps/census
/tools/sql/ire_export/ire_PCT13D.sql
UTF-8
2,941
2.734375
3
[ "MIT" ]
permissive
-- PCT13D. SEX BY AGE FOR THE POPULATION IN HOUSEHOLDS (ASIAN ALONE) -- designed to work with the IRE Census bulk data exports -- see http://census.ire.org/data/bulkdata.html CREATE TABLE ire_pct13d ( geoid VARCHAR(11) NOT NULL, sumlev VARCHAR(3) NOT NULL, state VARCHAR(2) NOT NULL, county VARCHAR(3), cbsa VAR...
true
9d18dca349aa4c590a8008bc150d34b6e4901cdf
SQL
Gbrad1/DataGrip.PokemonSqlLab
/answers/part2.sql
UTF-8
537
2.984375
3
[]
no_license
What are all the types a pokemon can have? $ SELECT * FROM types; 1. Normal 2. Water 3. Grass 4. Rock 5. Fire 6. Ground 7. Poison 8. Bug 9. Electric 10. Dragon 11. Steel 12. Dark 13. Fighting 14. Psychic 15. Ghost 16. Fairy 17. Ice 18. Flying What is the name of the pokemon with id 45? Eevee $ SELECT * FROM pokemons ...
true
aec359fd420084ee26e7afc06082270a827a3596
SQL
s17168/cw4
/Cw3WebApplication/Cw3WebApplication/sql_queries/MS_SQL_Insert_data.sql
UTF-8
2,312
3.09375
3
[]
no_license
--INSERT DATA --MS SQL -- Insert data into Studies INSERT INTO Studies (IdStudy, Name) VALUES (1, 'Architektura') INSERT INTO Studies (IdStudy, Name) VALUES (2, 'Budownictwo') INSERT INTO Studies (IdStudy, Name) VALUES (3, 'Informatyka') INSERT INTO Studies (IdStudy, Name) VALUES (4, 'Zarzadzanie') -- Insert data...
true
47ba19c4beba2dce0c4f8b4490f04dec79e2d195
SQL
radtek/abs3
/sql/mmfo/nbu_gateway/Type/t_core_person_address.sql
WINDOWS-1251
5,862
3.015625
3
[]
no_license
create or replace type t_core_person_address force as object ( codregion varchar2(2 char), -- area varchar2(100 char), -- zip varchar2(10 char), -- city varchar2(254 char), -- streetaddress ...
true
643c495ffd85863ba68b540f6c6e067a856ca20d
SQL
mzatielr/DBProject
/UPDATED_BUILD_DB/DB_CREATION_QUERIES/CREATE_PLACE_TABLE.sql
UTF-8
186
3.0625
3
[]
no_license
CREATE TABLE Place ( id INT PRIMARY KEY, name VARCHAR(25) NOT NULL, city_id INT REFERENCES City(id), country_id INT REFERENCES Country(id), latitude REAL, longitude REAL );
true
00d17a8a75219f3a6c8815e5e9684efe25ef130b
SQL
lulugyf/HSS4G
/offon/scripts/base_tables.sql
UTF-8
12,875
3.0625
3
[]
no_license
-- drop table cbossuserinfo; -- drop table cqueryparse; -- drop table cqueryrevise; -- drop table corderresend; -- drop table corderreplyparse; -- drop table ccmdtoorder; -- drop table cmaincfginfo; -- drop table sphonecomm; -- drop table shlrcodemap; -- drop table cloginuser; -- drop table cphonehlrcode; -- drop table...
true