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
cae4d06eb6f22d01bf5e5e587198619543a7b59c
SQL
sfjsss/ExpenseReimbursementSystem
/expenseReimbursementSystem/setup.sql
UTF-8
700
3
3
[]
no_license
create table employee ( employee_id serial constraint pk_employee_id primary key, email varchar, employee_type varchar, first_name varchar, last_name varchar, pass varchar ); create table reimbursement ( reimbursement_id serial constraint pk_reimbursement_id primary key, reimbursement_type varchar, reimbursem...
true
e45cc4e4a34fc0cf7e7a93dbbefb62cba204dd58
SQL
13020180006/UAS-PBO
/UASPBO/laundry.sql
UTF-8
435
2.78125
3
[]
no_license
/* Nama : Paramadina Mulya Majid Stambuk : 13020180006 Hari/Tgl : Jumat, 26 Juni 2020 Waktu : 21.30 WITA */ create database laundry; use laundry; create table pesan(no_pesanan int primary key, nama_pemesan varchar(30), jenis_cuci enum("Cuci Basah", "Cuci Kering","Cuci Setrika"), harga_per_kilo int, ber...
true
6af9a53e9003695cff3bbadf2b56b07dbe3ad5b0
SQL
rahulnitc3003/RideOut
/rideout_old/id1068737_rideout.sql
UTF-8
8,454
2.796875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Nov 29, 2017 at 11:42 AM -- Server version: 10.1.20-MariaDB -- PHP Version: 7.0.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_C...
true
4f5d933a36194a9fb751bc6aaa9222513b033ffc
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day22/select0129.sql
UTF-8
177
2.6875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-21T01:29:00Z' AND timestamp<'2017-11-22T01:29:00Z' AND temperature>=1 AND temperature<=95
true
5227d0fcf98c4e4f057be5379722bfaccc5025e7
SQL
st34m3r/erp
/tables/can_socpeople.sql
UTF-8
2,163
2.8125
3
[]
no_license
-- ============================================================================ -- Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- Copyright (C) 2008 Laurent Destailleur <eldy@users.sourceforge.net> -- Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr> -- -- This program i...
true
818e0494b7fcf058b6bbca19c10a483575d934bd
SQL
MarcosViniciusPinho/localidadeAPI
/src/main/resources/db/migration/V03__criando_tabela_municipio.sql
UTF-8
284
3.203125
3
[]
no_license
CREATE TABLE municipio( id INTEGER NOT NULL, id_estado INTEGER NOT NULL, nome VARCHAR(50) NOT NULL ); ALTER TABLE municipio ADD CONSTRAINT pk_id_municipio PRIMARY KEY (id); ALTER TABLE municipio ADD CONSTRAINT fk_muni_id_estado FOREIGN KEY (id_estado) REFERENCES estado (id);
true
5b52680951eda29d81cd78e1dd17d6b532e24a6a
SQL
jonesyeh/SBP_TUTORIAL
/Export_Result/Task9/06.tb_file_ext_set.sql
BIG5
587
2.625
3
[]
no_license
--eyk-- select 'e' e,* from comm.tb_file_ext_set where exec_file_seq=36091 --yk-- delete from comm.tb_file_ext_set where exec_file_seq=36091 INSERT INTO comm.tb_file_ext_set with(tablock) (exec_file_seq,empty_file_check_flag,fail_file_proc_key,is_check,creator,create_time,modifier,last_update_time) select 36091...
true
6d236073b063c43838b2ccb56916f78bc4d39a1f
SQL
betancourtl/db-schemas
/pbgear/items/create.sql
UTF-8
553
2.71875
3
[]
no_license
USE pbgear_db; SET @user_id = 11; SET @model = 'M3'; SET @title = 'LNIB Dye M3'; SET @sold = FALSE; SET @description = 'Dye M3 Like New!'; SET @year = 2005; SET @price = 1200.00; SET @brand_id = 1; SET @condition_id = 1; SET @country_id = 1; SET @state_id = 1; SET @category_id = 1; INSERT INTO items (model, title, so...
true
7b84b4f1a755b02e3fd2d23b513987b11ef26748
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day23/select1925.sql
UTF-8
272
2.921875
3
[]
no_license
SELECT sen.name FROM SENSOR sen, SENSOR_TYPE st, COVERAGE_INFRASTRUCTURE ci WHERE sen.SENSOR_TYPE_ID=st.id AND st.name='WiFiAP' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['2100_5','4100_7','5074','3048','1427','4100_4','5100_1','4038','5100_5','6064'])
true
d5c622cd2c03fbabbfa8c2df70a799724f03ab87
SQL
Q-Adorable/TWS
/course-center/backend/src/main/resources/db/migration/V12__create_section_video_address_table.sql
UTF-8
263
2.65625
3
[]
no_license
CREATE TABLE `sectionVideoAddress` ( `id` int(11) NOT NULL AUTO_INCREMENT, `taskId` int(11), `sectionId` int(11), `videoAddress` VARCHAR(1000), `createTime` TIMESTAMP default current_timestamp, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
true
b72baa726d778bbebc31c9ebb92eaa40b67baac2
SQL
tflynn615/Pewlett-Hackard-Analysis
/Queries/queries.sql
UTF-8
629
3.8125
4
[]
no_license
SELECT first_name, last_name FROM employees WHERE birth_date BETWEEN '1952-01-01' AND '1955-12-31'; SELECT first_name, last_name FROM employees WHERE birth_date BETWEEN '1954-01-01' AND '1954-12-31'; -- Retirement eligibility SELECT count(first_name) FROM employees WHERE (birth_date BETWEEN '1952-01-01' AND '1955-12...
true
eac4d30097667bc57e75ededdbd8f6ac9f1b9fa4
SQL
eformanes/bamazon
/bamazon.sql
UTF-8
836
3.109375
3
[]
no_license
DROP DATABASE IF EXISTS bamazonDB; CREATE DATABASE bamazonDB; USE bamazonDB; CREATE TABLE products( item_id INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(100) NOT NULL, department_name VARCHAR(45) NOT NULL, price INT, stock_quantity INT, PRIMARY KEY (item_id) ); Insert into products (product_name, d...
true
d62e9f525724df7e37ebeb1f0e647b9451e69aca
SQL
dyancl1024/CodeGenerator
/temp/tempfolder/RH/Training/Add/Temp_BasicData_ClassAdd.sql
UTF-8
1,136
2.78125
3
[]
no_license
/* RH_Temp_BasicData_Class - 新增脚本 */ DROP PROCEDURE IF EXISTS sp_SJ_RH_Temp_BasicData_Class_Add; CREATE PROCEDURE sp_SJ_RH_Temp_BasicData_Class_Add ( IN i_SubTID int, IN i_ClassID int, IN i_YX_HW int, IN i_TJ_HW int, IN i_StudyNum int, IN i_FinishedNum int, IN i_UserNum int, IN i_ClassRate de...
true
a954f626cd40e18ac748cc04e113a186c5254060
SQL
alexfield55/cs3550
/Mod9/assignment_8_help.sql
UTF-8
1,433
4.0625
4
[]
no_license
select * from Products where Discontinued = 1 select * from Products select * from Orders -- order details for discontinued product 17 select [Order Details].ProductID, [Order Details].OrderID, Products.Discontinued, [Order Details].* from [Order Details] inner join Products on Products.ProductID = [Order Detail...
true
be38f12793b13d08cce87f74a10b2b9c9a873646
SQL
seraf7/BDA
/tema06/ejercicio-practico-05/s-01-crea-tablespaces.sql
UTF-8
1,522
3.234375
3
[]
no_license
-- @Autor: Humberto Serafín Castillo López -- @Fecha: 26/07/2021 -- @Descripción: Creación de tablespaces con distintas configuraciones --Conexión como sys CONNECT sys/system2 AS sysdba --Creación de un tablespace de tamaño fijo, manejo de extensiones local y --tamaño automático, administración de segm...
true
305bf758d67400bfee972d05266e36147249d79c
SQL
0wen26/pl-sql
/T1-avanzado/ejercicio2.sql
UTF-8
396
2.6875
3
[]
no_license
create or replace PROCEDURE UPD_JOB ( p_jobId jobs.job_id%type, p_job_title jobs.job_title%type ) IS begin update jobs set job_title=p_job_title where job_id = p_jobId; if SQL%NOTFOUND THEN RAISE_APPLICATION_ERROR(-20202,'error'); end if; end; BEGIN UPD_JOB('IT_DBA','Data Administrat...
true
5bf792eafc85e594f73289dcdf6b207032b1703f
SQL
rhpicaza/toba_apunam
/apunam/metadatos/componentes/toba_datos_tabla/dump_1000725.sql
UTF-8
7,234
2.671875
3
[]
no_license
------------------------------------------------------------ --[1000725]-- proveedores ------------------------------------------------------------ ------------------------------------------------------------ -- apex_objeto ------------------------------------------------------------ --- INICIO Grupo de desarrollo ...
true
036bfc500b929a3a8e151ae6cfe029059deb8fcc
SQL
missaouib/repo
/tadaay/data/2018_02_05/updates_2018_02_03.sql
UTF-8
1,032
3.140625
3
[]
no_license
ALTER TABLE `app_users` DROP COLUMN `qualification`, DROP COLUMN `branch`, DROP COLUMN `passoutYr`, DROP COLUMN `percentage`, DROP COLUMN `compName`, DROP COLUMN `designation`, DROP COLUMN `yrsofexp`, DROP COLUMN `skills`, DROP COLUMN `contact_person`, DROP COLUMN `contact_email`, DROP COLUMN `contact_landline`, DROP ...
true
f4256a8cb240129498a02b4f43ce72ee9ff83853
SQL
anyeluperez/-cakephp_adsi_ajpb
/cakephp_adsi_ajpb.sql
UTF-8
6,868
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 25-09-2020 a las 01:04:55 -- Versión del servidor: 10.4.8-MariaDB -- Versión de PHP: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
826ad4f42452ff7307fe701ab74be5d2c302a635
SQL
mcpawali/akka-http-rest
/core/src/main/resources/Scripts.sql
UTF-8
628
2.8125
3
[]
no_license
CREATE TABLE employee."User" ( "UserId" bigserial NOT NULL, "UserName" character varying(50) NOT NULL, "Email" character varying(50) NOT NULL, "Password" character varying(50) NOT NULL, "IsDeleted" boolean NOT NULL, "EmployeeId" bigint NOT NULL, CONSTRAINT "User_pkey" PRIMARY KEY ("UserId") ); CREATE TAB...
true
73fae19aa209e2cde2c7bd10a4f761c8b096e247
SQL
eanyanwu/mirthful-rcis
/mirthful_rcis/sql/bootstrap_db.sql
UTF-8
1,486
2.9375
3
[]
no_license
-- Setup any records that need to be present for the application to function PRAGMA foreign_keys = ON; INSERT INTO roles (role, description, permissions) VALUES ('student', 'A college student', 0); INSERT INTO roles (role, description, permissions) VALUES ('res_life_staff', 'Member of Residence Life Staff', 3); IN...
true
b8acd2e41984631cc38eb888ce8ec189359d418c
SQL
DenysPyshniuk/BootcampX
/4_queries/totalAssignmentsAndDuration.sql
UTF-8
288
3.4375
3
[]
no_license
SELECT day, count(assignments) as number_of_assignments, sum(assignments.duration) as duration FROM assignments GROUP BY assignments.day ORDER BY assignments.day; --SELECT day, count(*) as number_of_assignments, sum(duration) as duration --FROM assignments --GROUP BY day --ORDER BY day;
true
595c7c53873ffa008a8416cfb42d477a1ee76ef6
SQL
chenglezheng/lc
/lc-common/src/main/resources/数据字典/数据字典.sql
UTF-8
2,330
3.640625
4
[]
no_license
DROP TABLE IF EXISTS `USER`; --用户表 CREATE TABLE `USER` ( `USER_ID` bigint(16) unsigned zerofill NOT NULL AUTO_INCREMENT, `USER_NAME` varchar(20) DEFAULT NULL, `USER_PWD` varchar(50) NOT NULL, `USER_PHONE` decimal(11,0) DEFAULT NULL, `USER_QQ` decimal(20,0) DEFAULT NULL, `USER_WECHAT` varchar(50) DEFAULT N...
true
589cf97e4087a8c35ef3fab043ec26bfa50bde47
SQL
fabiomigliorini/MGdb
/SQLs/Totais Cobranca Externa.sql
UTF-8
448
3.546875
4
[]
no_license
select -- * tblcobranca.agendamento , tblpessoa.codpessoa , tblpessoa.pessoa , sum(tblcobranca.creditoacerto) as pagamento , sum(tbltitulo.debito) as valor from tblcobranca left join tbltitulo on (tbltitulo.codtitulo = tblcobranca.codtitulo) left join tblpessoa on (tblpessoa.codpess...
true
d81c91103d37694aa699a33435c4d596e3ea2fb9
SQL
darrell-ulm/SQL-Queries
/transit snapshot.sql
UTF-8
496
3.765625
4
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
-- In transit report -- -- Based on query from Jason Boland -- SELECT u.iii_user_group_code, l.name, COUNT(v.field_content) AS "Count" FROM sierra_view.varfield_view v JOIN sierra_view.item_view i ON v.record_id = i.id JOIN sierra_view.iii_user u ON SPLIT_PART(v.field_content, ' ', 9) = u.name JOIN sierra_v...
true
d89c3ad1a00717a080a1d9f2da53d104c07891ef
SQL
izham-azemi/involve_asia_test
/involve_asia.sql
UTF-8
2,246
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 09, 2021 at 08:41 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
03e9585a05b6e588177ed6a9eb0d9e9da888453b
SQL
kayzcrack/projects
/p_vin/Salutation.sql
UTF-8
2,324
2.8125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.37, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: DeltaSAVE -- ------------------------------------------------------ -- Server version 5.5.37-0ubuntu0.13.10.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@...
true
3915423c8ebd131acb48f67c3031cc59242b7a57
SQL
jerrenss/AWS-BuildOn-2021-Genesis
/server/migrations/001_generate_schema.sql
UTF-8
1,766
3.53125
4
[]
no_license
SET TIMEZONE = 'Asia/Singapore'; CREATE TABLE IF NOT EXISTS Users ( user_created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), user_id SERIAL PRIMARY KEY, user_name TEXT NOT NULL, email TEXT UNIQUE NOT NULL, password_hash TEXT NOT NULL ); CREATE TABLE IF NOT EXISTS Clinics ( clinic_created_at TIMESTAM...
true
b94f4d4160745d67cb73b296deee706052e5b611
SQL
RuanAlves/dba_scripts_SQLSERVER
/INSERIR PESSOA_COMPLEMENTOS.sql
ISO-8859-1
426
3.15625
3
[]
no_license
/** VERIFICA AS PESSOAS QUE NO POSSUI 'PESSOA_COMPLEMENTOS' */ SELECT P.CODIGO FROM PESSOA P LEFT JOIN PESSOA_COMPLEMENTOS PC ON (P.CODIGO = PC.CODPESSOA) GROUP BY P.CODIGO HAVING COUNT(PC.CODPESSOA) = 0 /** FAZ O INSERT PESSOA_COMPLEMENTO **/ INSERT INTO PESSOA_COMPLEMENTOS (ISADMCARTAOPDV, ISCONTRIBUINTE, CODPE...
true
b44222d47e5324bf0f45b45973493245fbbd89c6
SQL
ToborTheGreat/Repository01
/geo.om_user_remote_layers.sql
UTF-8
2,344
3.125
3
[]
no_license
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = off; SET check_function_bodies = false; SET client_min_messages = warning; SET escape_string_warning = off; SET search_path = geo, pg_catalog; ALTER TABLE ONLY geo.om_user_remote_layers DROP C...
true
b0cc881f65aabfc2da537fdd822eb3bdfa534396
SQL
MurrayCode/Cross-site-Scripting-against-PHP-Applications
/XSSApplication/App/phpapps/brim/framework/sql/create.mysql.brim_users.sql
UTF-8
235
2.53125
3
[]
no_license
create table brim_users ( user_id integer auto_increment not null primary key, loginname char (15) not null, password char (50), name char (50), email char (30), description text, when_created DATETIME, last_login DATETIME )
true
b83e9291eb7642856726964b292e96dfc6e07489
SQL
dimitar-v/DB-Basic
/16. Functions And Procedures - Exercise/BankDB.sql
UTF-8
1,430
4.53125
5
[ "MIT" ]
permissive
-- Part 2. Queries for Bank Database USE Bank -- Problem 9. Find Full Name CREATE PROC usp_GetHoldersFullName AS SELECT FirstName + ' ' + LastName AS [Full Name] FROM AccountHolders -- EXEC usp_GetHoldersFullName -- Problem 10. People with Balance Higher Than CREATE PROC usp_GetHoldersWithBalanceHigherThan @total...
true
87e0387b506fea7b3384f401d545fb709cd1d07d
SQL
naveendissanayake/vigraha
/db-setup/create_tables.sql
UTF-8
433
2.671875
3
[]
no_license
DROP TABLE IF EXISTS `voice_call`; CREATE TABLE IF NOT EXISTS `voice_call` ( `record_id` INT NOT NULL , `number_make_call` VARCHAR(11) NOT NULL , `number_receive_call` VARCHAR (11) NOT NULL , `call_start_time` VARCHAR (100) NOT NULL , `duration` VARCHAR (100) NOT NULL , `number_charged_call` VARCHAR (11) NOT NULL , `c...
true
28d92caca4bd2ba044fe30b6545b1412e92d6156
SQL
nothai2009/Hospital
/PDrugCount/sql/SQLQuery1.sql
UTF-8
1,088
3.46875
3
[]
no_license
SELECT abbr, hideSelect, RTRIM(gen_name)AS gen_name,RTRIM(dform)AS dform, RTRIM(strgth)AS strgth, RTRIM(strgth_u)AS strgth_u, LTRIM(RTRIM(opd_prc))AS opd_prc, p.ed_group, ed_list, prod_type, AutoStop FROM Med_inv i LEFT JOIN PRODTYPE p WITH (NOLOCK) ON i.prod_type=p.prdTypeCode WHERE abbr +' ' + gen_name LIKE '%%' SEL...
true
71e11b0b63eb2a2b258f188a77a72a28400372ca
SQL
sgmsgood/query
/1026_SQL/insert_subquery.sql
UHC
1,823
4.4375
4
[]
no_license
-- insert subquery -- ܼ -- cp_emp3 Ʒ ڵ带 ߰϶ -- ȣ: 1111, : ö, μȣ: 10, : -- : emp ̺ ȣ 7566 ߰ insert into cp_emp3 (empno, ename, deptno, job, sal) values (1111, 'ö', 10, '', (select sal from EMP where empno = 7566)); --  ϴ Ǹ error -- insert into cp_emp3(empno, ename, deptno, job, sal) values (1111, 'ö', ...
true
dad3777cf76c6b2c3d98d2e39b928162d0bd5c03
SQL
pietromosca1994/IBM_Data_Science_Professional_Certificate
/Databases and SQL for Data Science/Week2/Excercise2/Excercise2 Database2 Week2 Queries.sql
UTF-8
875
3.484375
3
[ "MIT" ]
permissive
-- Query A1 -- SELECT SUM(COST) FROM PETRESCUE; -- Query A2 -- SELECT SUM(COST) AS "SUM_OF_COST" FROM PETRESCUE; -- QueryA3 -- SELECT MAX(QUANTITY) FROM PETRESCUE; -- Query A4 -- SELECT AVG(COST) FROM PETRESCUE; -- Query A5 -- SELECT AVG(COST/QUANTITY) FROM PETRESCUE WHERE ANIMAL='Dog'; -- Query B1 -- SELECT ROUND...
true
64f6d3f1185d624e09994fb62c974daea5db6737
SQL
Liscp/Tabla
/ingresar_registros.sql
UTF-8
989
3.21875
3
[]
no_license
-- EJECUTAR UNO A LA VEZ!! -- Seleccionar la base de Datos USE TiendaVideojuegos; -- Ingresar registros en la tabla INSERT INTO Clientes (nombre, apellido, tipoVideojuego,celular,descripsion) VALUES ("Lisbeth","Caiza","Acción","0987535255","Balas y puras armas"); INSERT INTO Clientes (nombre, apellido, tipoVideojuego,...
true
b30bf75d01836f7fb19a3e00bab56d21ac880a5e
SQL
luotongluo/spring-boot-dubbot-test
/z-db-files/createdb.sql
UTF-8
752
3.28125
3
[ "Apache-2.0" ]
permissive
drop table if exists test_sql; CREATE TABLE `test_sql` ( `id` bigint(20) unsigned NOT NULL COMMENT '测试表id', `user_name` varchar(100) DEFAULT '' COMMENT 'user_name', `user_age` int(2) DEFAULT null COMMENT 'user_age', `user_birthday` datetime DEFAULT null COMMENT 'user_birthday', `delete_info` int(2) DEFAULT 0 COMMENT '0...
true
2949d25ab7b8aca1b69cab4318ffe82993a9f852
SQL
ajnorthouse/student-retention-webapp
/domain/MySQL/Dummy_Data.sql
UTF-8
3,055
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 06, 2020 at 11:38 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
35e77544b056cea542db15845e5b777b76980ffc
SQL
cs-cena/Model
/restaurant/restaurant.sql
UTF-8
2,140
2.875
3
[]
no_license
insert into Dishes values ("zs01", "汉堡包", 9), ("zs02", "吉士汉堡包", 9.5), ("zs03", "麦香鸡", 12), ("zs04", "双层吉士汉堡", 17), ("zs05", "麦香鱼", 17), ("zs06", "经典麦辣鸡腿汉堡", 17), ("zs07", "巨无霸", 21.5), ("zs08", "原味板烧鸡腿堡", 19), ("zs09", "培根蔬萃双层牛堡", 21.5), ("zs10", "不素之霸双层牛堡", 20), ("zs11", "双层深海鳕鱼堡", 20), ("zs12", "川辣双鸡堡", 20), ("zs13...
true
fd17a676845f4a1425afac46d72c362c55ba6e90
SQL
msalguer/mantis_email2users
/View view_permisos_proyectos.sql
UTF-8
140
2.578125
3
[ "MIT" ]
permissive
SELECT p.project_id as IdProyecto, p.user_id as IdUsuario, p.access_level from mantis_project_user_list_table as p where p.access_level=55
true
5f8c2102995812d67159c7009d9d4edd89b031b0
SQL
andreypatino/carritoCompras
/prueba.sql
UTF-8
6,554
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3606 -- Tiempo de generación: 11-11-2020 a las 17:58:38 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.2.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
true
9a5f0ea3c25b45c6680c648ab5a4a229f0f92ecf
SQL
demotivirus/365_Days_Challenge_Five_Classes_Every_Single_Day
/src/main/java/com/demotivirus/Day_024_S2/dbMigration/create-book-table.sql
UTF-8
266
3.546875
4
[]
no_license
DROP TABLE IF EXISTS book CASCADE; create table book ( id serial, title varchar(128) not null, author varchar(256) not null ); create unique index book_id_uindex on book (id); alter table book add constraint book_pk primary key (id);
true
232b83ceaa88c3cd40264ff99f55b2f26965bba0
SQL
UCLALibrary/sql-scripts
/Voyager/Cataloging/JSTOR_Print_ISBNs.sql
UTF-8
1,711
3.875
4
[]
no_license
/* Extract requested data for list of print ISBNs provided in Excel by Roxanne Peck. https://jira.library.ucla.edu/browse/RR-171 Do all work as vger_report, for temporary working table/index. Create table and import data via JDeveloper. Needed to copy/paste column from Excel to text file befo...
true
45ba963cebc429f922ba31b3a973e7e701a3e14b
SQL
Alexander33928/BS2
/exercicios-3/Ejercicio 3.sql
UTF-8
4,017
4.09375
4
[]
no_license
use world; select count(Name) from country; /*1*/ select Continent, count(Name)/*2*/ from country group by Continent; select Continent, count(Name)/*3*/ from country GROUP BY Continent ORDER BY Continent ASC; select Continent, count(Name) /*4*/ from country GROUP BY Continent HAVING count(Name) > 50; select S...
true
9f6bc67b099620ffb734cf7b1237c23bd7c9b790
SQL
adndati/KUMPULAN-PROJEK
/nasi_goreng.sql
UTF-8
2,393
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 06, 2021 at 05:20 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
bdf6da5c023a21cbe87663dbc0d8526ea9c7e0ff
SQL
wenx999/ytex
/projects/i2b2.2008/data/clean_ce_experiment.sql
UTF-8
360
2.78125
3
[]
no_license
delete e,s,i,z from classifier_eval e inner join classifier_eval_svm s on e.classifier_eval_id = s.classifier_eval_id inner join classifier_eval_ir i on e.classifier_eval_id = i.classifier_eval_id left join classifier_instance_eval z on e.classifier_eval_id = z.classifier_eval_id where e.experiment = '@kernel.expe...
true
33d2dbcbd147d444d1d2949cb67aab9870dbcaf0
SQL
zak-hassan/BusinessIntelligence
/sql/CREATESCRIPT-A1-v3.sql
UTF-8
19,199
3.765625
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'; DROP SCHEMA IF EXISTS `mydb` ; CREATE SCHEMA IF NOT EXISTS `mydb` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedis...
true
77ce8a98c898f005a7d309103a1f1a35388b8efe
SQL
brthiess/Cmput391
/html/php/Test.sql
UTF-8
483
3.8125
4
[]
no_license
--Testing ground for new query. Faster loading. SELECT (p.last_name||', '||p.first_name) AS nme, test_type, week, cnt FROM persons p RIGHT JOIN (SELECT rr.patient_id, rr.test_type, to_char(rr.test_date, 'yyyy') As week, COUNT(*) as cnt FROM radiology_record rr JOIN radiology_image pi ON rr.re...
true
0a22465f978af0fb2635629c7c63b381b669f4c6
SQL
Soroushb/DBS311
/L05_ID#152499182_Bahrami.sql
UTF-8
7,124
4.21875
4
[]
no_license
-- *********************** -- Name: Soroush Bahrami -- Student ID: 152499182 -- Date: 2020-11-11 -- Purpose: Lab 5 DBS311 -- *********************** SET SERVEROUTPUT ON; /* 1. Write a stored procedure that get an integer number and prints The number is even. If a number is divisible by 2. Otherwise, it ...
true
50671146f7d5dc2aa0d5584f7e26a427ae193516
SQL
missTam/Library-App
/resources/scripts/sqlite_create_db.sql
UTF-8
857
3.34375
3
[]
no_license
-- Autorin: Tamara T. -- am/um: 2020-05-12 -- Typ: SQLite CREATE TABLE authors ( _id INTEGER PRIMARY KEY , first_name VARCHAR NOT NULL , last_name VARCHAR NOT NULL ); CREATE TABLE genres ( _id INTEGER PRIMARY KEY , name VARCHAR NOT NULL ); CREATE TABLE books ( ...
true
e2211a39886c02f7c655a523f78dbec50af9d8bb
SQL
tsengting/CNN-Takehome
/Tests.sql
UTF-8
1,665
4.09375
4
[]
no_license
/* Top 5 pieces of content */ SELECT Content_Id, COUNT(Content_Id) AS counts FROM Content_Metadata GROUP BY Content_Id ORDER BY counts DESC LIMIT 5; /* Aggregations across a rolling 30,60,90 days */ SELECT Content_Id, Content_type, COUNT(CASE WHEN DATE_DIFF(day,Creation_Date,date) <= 30 THEN Content_id END) as Content...
true
b45a8f057280fedef9b999e8f2ba4d163a9cb529
SQL
downfang888/coffcms
/data/backup/v1.3.0/sql/v1.3.0.sql
UTF-8
3,861
3.46875
3
[]
no_license
UPDATE `ey_arcrank` SET `name` = '开放浏览', `update_time` = 1552376880 WHERE `rank` = '0'; UPDATE `ey_arcrank` SET `name` = '待审核稿件', `update_time` = 1552376880 WHERE `rank` = '-1'; ALTER TABLE `ey_admin_log` MODIFY COLUMN `log_info` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '日志描述' AF...
true
a1c9acf6cbe5def08fff65533c6b35269ea91f87
SQL
dpk3d/Hive
/EvenScores.sql
UTF-8
428
3.921875
4
[]
no_license
-- Write a query to print the name of the students who scored an even number of marks -- The Names should be listed in upper case alphabatecally ascending. -- This was asked in VISA for DEVELOPER via hackerrank. -- Schema -- NAME STRING -- MARKS INTEGER select upper(e.name), e.marks from (select name , marks, case w...
true
9866ce63c4d8708c050cc012dd1e832cca9d5c78
SQL
FWAJL/FieldWorkManager
/Database/Scripts/Updates/2015-04-27.sql
UTF-8
356
3.09375
3
[]
no_license
-- Update for 2015-04-27 -- > updates to tables to make the email value unique USE baiken_fwm_1; ALTER TABLE `user` ADD COLUMN `user_email` VARCHAR(50) NOT NULL COMMENT 'User email that is unique and must be set'; update `user` set `user_email` = `user_login` where `user_id` > 0; ALTER TABLE `user` ADD UNIQUE INDEX...
true
655cc07c762f72c6071ba1d6767e46bb802b6d20
SQL
alexrook/vio
/vio-mo/src/scripts/entangling.sql
UTF-8
924
2.8125
3
[]
no_license
/* entangling names in document table */ update document set name='Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus' where id%2=0; update document set name='Curabitur ullamcorp...
true
764efbfd61e8016726f00c9e0f3f8362487754fe
SQL
kenan2016/SQL
/记录型变量.sql
GB18030
776
2.8125
3
[]
no_license
-- ¼ͱ -- עIJѯֶλ * ᱨ set serveroutput on; declare emp_rec emp%rowtype; begin select EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, ...
true
7e4cff36e3e059ad4ef069835a97d4819d2a1b80
SQL
Borrya/pre-assignment-tasks
/task_1/request_8.sql
UTF-8
464
4.46875
4
[]
no_license
SELECT name, first_name, last_name FROM ( SELECT name, first_name, last_name, rank() OVER( PARTITION BY allNames.name ORDER BY first_name) FROM ( SELECT training_course.name, student.first_name, student.last_name FROM training_course RIGHT JOIN student_result ON training_course.id = student_result.training_course_...
true
24562a96408b35ee807a5e8354b9552f3a5544a0
SQL
tehaa/restaurant
/restaurant.sql
UTF-8
4,080
3.390625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.19, for Linux (x86_64) -- -- Host: localhost Database: restaurant -- ------------------------------------------------------ -- Server version 8.0.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; ...
true
12520a803b62cfa31a72eb54ad1c669f1a7d0bbc
SQL
npv14/Relational-Database-Systems
/marina-script.sql
UTF-8
4,169
3.1875
3
[]
no_license
drop table service; drop table slip; drop table boat_owner; drop table marina; /* Creating tables */ create table marina (id integer not null constraint check_marinaid check (id > 0), name varchar(30) not null, address varchar(50) not null, constraint pk_marina primary key (id)); create table boat_...
true
d278a6b9f1ea9aa59916adcdd9ef6da62a7bca95
SQL
ivanred6/cfg_s20rckds1
/Session 4/sql scripts/table_locking_examples.sql
UTF-8
1,222
3.6875
4
[ "MIT" ]
permissive
CREATE DATABASE practice; USE practice; -- a sample table ( can be anything) CREATE TABLE conversation_log ( id INT NOT NULL AUTO_INCREMENT, message VARCHAR(50) NOT NULL, author VARCHAR(25) NOT NULL, PRIMARY KEY (id) ); -- let's add some values to the table INSERT INTO conversation_log (message,autho...
true
891f928e3d06ab287ad5db7433a32b8305aca18e
SQL
MrD0079/portal
/sql/anketa_lang_form.sql
UTF-8
259
2.609375
3
[]
no_license
/* Formatted on 05/03/2015 11:19:20 (QP5 v5.227.12220.39724) */ SELECT l.id, l.name, al.lang_level FROM lang l, (SELECT * FROM anketa_lang WHERE tn = :tn OR h_eta = :h_eta) al WHERE l.id = al.lang_id(+) ORDER BY l.name
true
af01f41b119804630451a322a46deb731b4f046b
SQL
Moidrh/planetasBack
/src/main/resources/schema.sql
UTF-8
612
3.4375
3
[]
no_license
create table `Planeta` ( `planeta_id` integer not null AUTO_INCREMENT, `name` varchar(255) not null, `contador` integer, `rotacion` integer, `diametro` integer, `clima` varchar(255), `terreno` varchar(255), primary key (planeta_id) ) ; create table `Persona` ( `id` integer not null, `name` varchar(255) not...
true
fa1a2143af39bc01bc1672b44c356a9b952fb0c0
SQL
DaveKaito/Aurora
/aurora.sql
UTF-8
2,828
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 17, 2019 at 12:19 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
4cd815d6e12e6e0e2020aed3cce91930cc6d3796
SQL
msw822/xjny_dev
/xjny_version/dw_hadoop/table/app/edu_app_ykt_rsxfjl.sql
UTF-8
869
2.765625
3
[]
no_license
--一卡通 use app; drop TABLE IF EXISTS edu_app_ykt_rsxfjl; CREATE EXTERNAL TABLE edu_app_ykt_rsxfjl( sfrzm string comment '身份认证码' ,sflx string comment '身份类型' ,xm string comment '姓名' ,xb string comment '性别' ,rsxfsj string ...
true
bb523121c2e22262dde5444af0b3b83f3ba4841a
SQL
j7ng/CLFY_SA
/SA/Views/TABLE_RC_USER.sql
UTF-8
991
3.359375
3
[]
no_license
CREATE OR REPLACE FORCE VIEW sa.table_rc_user (user_id,rc_name,login_name,s_login_name,first_name,s_first_name,last_name,s_last_name) AS select table_user.objid, table_rc_config.name, table_user.login_name, table_user.S_login_name, table_employee.first_name, table_employee.S_first_name, table_employee.last_name, tab...
true
485be27f331faae9aa5369217cbe786b70546a68
SQL
rocketeer55/Databases-Lab3
/CARS/CARS-setup.sql
UTF-8
797
3.484375
3
[]
no_license
-- Jackson Goyette, Spencer Schurk -- Lab 2, CSC 365, CARS dataset CREATE TABLE CARMAKERS( ID INTEGER PRIMARY KEY, MAKER CHAR(30), FULLNAME CHAR(30), COUNTRY INTEGER REFERENCES COUNTRIES(COUNTRYID)); CREATE TABLE CARNAMES( MAKEID INTEGER PRIMARY KEY, MODEL CHAR(30) REFERENCES MODELLIST(MODEL), MAKEDESCRIPTION ...
true
e38dc5ae0c3a1fd313cee129f483cd8e483d717e
SQL
IvanaParrilla/Homework5
/db/init.sql
UTF-8
5,410
2.875
3
[]
no_license
CREATE DATABASE oscarData; use oscarData; CREATE TABLE IF NOT EXISTS OscarAgeFemale ( `Index` INT, `Year` INT, `Age` INT, `Name` VARCHAR(22) CHARACTER SET utf8, `Movie` VARCHAR(35) CHARACTER SET utf8, `Column_6` VARCHAR(48) CHARACTER SET utf8 ); INSERT INTO OscarAgeFemale VALUES ( 1, 1928, ...
true
cae95e5d5ff314b70866989a3bd40dffbde293dd
SQL
vineetshukla15/dusharimango
/src/data/sql/X/Temp/Temp3/1.sql
UTF-8
4,618
3.875
4
[]
no_license
DROP TABLE IF EXISTS insights.content_network_show;#content_product_brand_category_station_network_show CREATE TABLE insights.content_network_show ( content_id int(10) unsigned, INDEX(content_id),# FOREIGN KEY(content_id) references insights.contents(content_id), content_title varchar(255), INDEX(content_title), ...
true
37f3f84a18e9fa8524050048597cddc67f261f15
SQL
Flying-sparrow007/MyExercise
/MySQL/条件查询02.sql
UTF-8
6,630
4.21875
4
[]
no_license
# 1.between x and y:在某两个数值之间,包含and两边的数值 # 1.查询员工工资在500-1000的所有员工名字和工资 SELECT ename,sal FROM emp WHERE sal >= 500 AND sal <= 1000; SELECT ename,sal FROM emp WHERE sal BETWEEN 500 AND 1000; # 2.查询员工工资不在在500-1000的所有员工名字和工资 SELECT ename,sal FROM emp WHERE sal NOT BETWEEN 500 AND 1000; # like,模糊查询 _ :代表单个未知的字符 %:...
true
c949d0c2d98639e8ad6a2d056cb867a2bed9de13
SQL
apodoba/mentoring
/Shop/Dump20150628.sql
UTF-8
7,107
3.296875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `shop` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `shop`; -- MySQL dump 10.13 Distrib 5.5.43, for debian-linux-gnu (x86_64) -- -- Host: 127.0.0.1 Database: shop -- ------------------------------------------------------ -- Server version 5.5.43-0ubuntu0.14.04.1 /*!40101 SET @OLD_CH...
true
3ba58131c03c93797f9a195105c8cc4a21813fea
SQL
bpbrianpham/Database-Term-Project
/SQL_Files/Customer_End/Customers.sql
UTF-8
5,325
2.828125
3
[]
no_license
CREATE TABLE Customers ( cID INT NOT NULL, eMail VARCHAR(45) NULL, phoneNumber VARCHAR(10) NULL, cDateRegistered DATE NULL, address VARCHAR(45) NULL, CONSTRAINT customer_pk PRIMARY KEY (cID) ); INSERT INTO Customers (cID, eMail, phoneNumber, cDateRegistered, address) VALUES (01, 'abrens@gmail.c...
true
d42f1e623786fa70a2c345dd84605cf69987a4b6
SQL
1748995976/Third_year_2
/DataBase/实验源码/Lab1/Sql操作文件/lab2-select.sql
UTF-8
4,552
3.546875
4
[]
no_license
INSERT INTO taketrainrecord VALUES(1001,'130628194909274510',1,1,1,1,1,'F',1); UPDATE taketrainrecord SET SeatNo = 'A' WHERE RID = 1001; DELETE FROM taketrainrecord WHERE RID = 1001; CREATE TABLE test( data1 int, data2 text ); INSERT INTO test VALUES (1, 'hahaha'), (1, 'hahaha'), (1, 'hahaha') DELETE FROM test WHERE ...
true
4786d0385f708d6bf1fcaefb8891c3561949387d
SQL
JACD15/da-academy-sql
/martin exercices/exercice 9.sql
UTF-8
137
2.875
3
[]
no_license
# Write a query to get the number of employees working with the company. SELECT count(employee_ID) AS employees_Working FROM employees;
true
0223caf9b10acc60a571bcb1230db14f28c6e396
SQL
planaspa/Databases
/practica2/src/practica2/consultas/Obligatoria3.sql
UTF-8
2,235
4
4
[]
no_license
create view peliculasJuntos as select a.actor,b.actriz, count(*) as peliculasJuntos from ( select p.id_titulo, p.id_personal as actor from poseer p inner join ( select id_titulo from titulo where annoproduccion >= 1980 and annoproduccion <=2000) t on t.id_titulo = p.id_titulo where p.rol = 'act...
true
92f0db34f7c8f4cb7f87fb393e2b5032a2b324b6
SQL
HelloSui/answer_system
/answer_system/src/main/resources/sql/answer_system.sql
UTF-8
5,957
3.265625
3
[]
no_license
/* SQLyog Ultimate v8.32 MySQL - 5.7.11-log : Database - answer_system ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN...
true
927ebf81a1b63f55e96dde93c014d0763b1de00b
SQL
bellmit/SVNrepo
/DBScripts/GoldenSourceMasterScript/3_UIFixing/3_sp_invdb_advisor_currency.sql
UTF-8
601
2.78125
3
[]
no_license
use invdb; drop table if exists advisor_currency; CREATE TABLE advisor_currency ( advisor varchar(20) NOT NULL, supportCurrency varchar(20) NOT NULL, PRIMARY KEY (advisor,supportCurrency) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO invdb.advisor_currency (advisor, supportCurrency) VALUES ('UO...
true
be61475d7e81f730914de0aec5e6a788cbec4f0e
SQL
jaxonjames123/eureka
/Database/stored_procedures/updatePassword.sql
UTF-8
665
3.6875
4
[]
no_license
CREATE DEFINER=`administrator`@`localhost` PROCEDURE `updatePassword`( IN user_id INT(11), IN curr_password VARCHAR(100), IN new_password VARCHAR(100), OUT success SMALLINT(4)) BEGIN /* Procedure that receives user_id, current password hash, and new password hash. If current password hash match...
true
daebb69679b189cbab5e96e948bf1ea74106f0a9
SQL
SWolfMN78/bamazon
/bamazondb.sql
UTF-8
421
3.203125
3
[]
no_license
SELECT * FROM bamazondb.products; SELECT * from products; SELECT * FROM bamazondb.products INNER JOIN top_songsdb.top_5000 ON products.item_id = top_5000.postion; SELECT COUNT(*), COUNT(*) FROM bamazondb.products WHERE Item_id = 10; SELECT item_id, product_name, stock_quantity FROM bamazondb.products; UPDATE products S...
true
18ae7fa160a0f75feb87490386ab08bc8f4769a1
SQL
Khachatur86/Netology.Python-13.lesson-2.4
/Migrations/171_ELCODATA_Object_updateObjects.sql
UTF-8
1,061
2.96875
3
[]
no_license
/****************************************************************************************** Update objects in T_OBJECT *******************************************************************************************/ -- Update 'Associated Sub FIN CI' to 'Cascade Link: DS with Sub CI' in T_OBJECT IF EXISTS( SELECT * ...
true
7eb30b9e7938e99866242a3c03f7d4593002606c
SQL
theegr8dev/SocialMedia_DATABASE
/BusinessAcct/Business Following.sql
UTF-8
2,497
2.671875
3
[]
no_license
CREATE TABLE [Business].[Following]( [Business_ID] [varchar](50) NOT NULL, [User_ID] [varchar](max) NULL insert into Business.Following values (1, 'PPU1, PPU2, PPU3, PPU9, BU18, PU21, PU7, BU20, PU10, BU18, PU11, PU13, PU12, PU14, PU17') insert into Business.Following values (2, 'BU6, BU5, PU22, BU24, BU3, PU10, P...
true
cf849c8daf2c86aed3618239929d1d8db01e6107
SQL
mreysei/WilsonLine
/wilsonline_db/vistas.sql
UTF-8
1,721
3.90625
4
[]
no_license
create view v_generic_flight as select concat(city1.name, ', ', city1.country) origin, concat(city2.name, ', ', city2.country) destiny, gf2.generic_flight_id, cast(substring(gf2.arrive_time,1,2) as unsigned) arrive_hour, cast(substring(gf2.arrive_time,4,2) as unsigned) arrive_minutes, cast(substring(gf2.depar...
true
9e3bd1116f2f7d1712cc99ce20cee2648c08c9ec
SQL
michaelalbinson/332-term-project
/database/mock_data.sql
UTF-8
6,366
3.265625
3
[]
no_license
USE cmpe_332_project; -- ATOMIC TABLES MUST BE INSERTED FIRST -- i.e. room, organizer, sponsor -- Rooms INSERT INTO Room (`id`,`num_beds`) VALUES (1,2), (2,2), (3,2), (4,3), (5,2), (6,2), (7,2), (8,3), (9,3), (10,2); -- Sponsors INSERT INTO Sponsor (`id`,`tier`,`name`) VALUES (1,"platinum","Microsoft"), ...
true
79f1ebd452edf1adfd4f85630743e83300903fa8
SQL
Missnamidnight/TaskWer-V7
/taskwer.sql
UTF-8
7,617
3.109375
3
[]
no_license
-- -------------------------------------------------------- -- Host: tvcpw8tpu4jvgnnq.cbetxkdyhwsb.us-east-1.rds.amazonaws.com -- Versión del servidor: 8.0.20 - Source distribution -- SO del servidor: Linux -- HeidiSQL Versión: 11.3.0.6295 -- --------------------...
true
4ca201eeea12e84ece9239b3f06c61f6f09294f7
SQL
transcom/mymove
/migrations/app/schema/20200203200715_mto_shipments_add_rejection_reason.up.sql
UTF-8
201
2.671875
3
[ "MIT", "LicenseRef-scancode-public-domain" ]
permissive
-- Column add ALTER TABLE mto_shipments ADD COLUMN rejection_reason text; -- Column comment COMMENT ON COLUMN mto_shipments.rejection_reason IS 'TOO will provide a reason if they reject the shipment';
true
a06d6394993e13cd77f7a8f594dde54b1c3d141b
SQL
digital-asset/canton
/community/ledger/ledger-api-core/src/main/resources/db/migration/postgres/V21__Stable_offsets.sql
UTF-8
2,496
3.078125
3
[ "Apache-2.0" ]
permissive
-- Copyright (c) 2019 The DAML Authors. All rights reserved. -- SPDX-License-Identifier: Apache-2.0 --------------------------------------------------------------------------------------------------- -- V21: Stable Offsets -- -- Stable offsets are stored as bytea and can be sorted lexicographically. ------------------...
true
ac64ab22c040813ab78c9e056a95084e0a932224
SQL
KhuongVuong/CSCI-411
/emm.sql
UTF-8
1,279
3.765625
4
[]
no_license
/*For each observer, count the number of observations they recorded*/ SELECT observers.pid, COUNT(observations.pid) AS Numcount FROM observers, observations WHERE observations.pid = observers.pid GROUP BY observers.pid; /* OUTPUT PID NUMCOUNT ---------- ---------- 11567 6 88331 4...
true
89aa440fd10f0930a201bca27fac7126122e9bd7
SQL
schoollabs91/SputnikTech
/SchoolSystem/SchoolSystemUi/S_TIME_TABLE.sql
UTF-8
1,299
3.28125
3
[]
no_license
CREATE TABLE S_TIME_TABLE ( MONDAY VARCHAR2(50 BYTE) , TUESDAY VARCHAR2(50 BYTE) , WEDNESDAY VARCHAR2(50 BYTE) , THURSDAY VARCHAR2(50 BYTE) , FRIDAY VARCHAR2(50 BYTE) , SATURDAY VARCHAR2(50 BYTE) , SUNDAY VARCHAR2(50 BYTE) , T_ID VARCHAR2(20 BYTE) NOT NULL , CLASS_CODE VARCHAR2(20 BYTE) NOT NULL , SECTION_C...
true
15f88cec1dbe3c7d157bda396da3262d7d99653c
SQL
xeonye/Butterfly-1
/Butterfly.Examples/better-chat-db.sql
UTF-8
878
3.703125
4
[ "Apache-2.0" ]
permissive
CREATE TABLE user ( id VARCHAR(40) NOT NULL, name VARCHAR(40) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, PRIMARY KEY(id) ); CREATE TABLE chat ( id VARCHAR(40) NOT NULL, name VARCHAR(40) NOT NULL, join_id VARCHAR(8) NOT NULL, owner_id VARCHAR(40) NOT NULL, created_at DATETIME NOT N...
true
cbb1d19170248776335bfa18ca6b134f7fe62778
SQL
flaviolyra/wis-framework
/PostGIS/Piabanha/OriginalDatabaseDevelopment/Hidrorreferenciamento/CriaTabelaPtAHidrorref.sql
UTF-8
702
2.828125
3
[]
no_license
CREATE TABLE pt_a_hidrorref ( gid serial NOT NULL, num integer, tipo character varying(254), nome character varying(254), nome_alt character varying(254), nome_rio character varying(254), corio character varying(254), cobacia character varying(254), hr_dir_ind text, lat_pt_infl double precision, ...
true
9c7fd7d4bc1e8f81be303f5d68644199cb4592a5
SQL
andri000me/Absensi-Mahasiswa-Berbasis-Bot-Telegram
/kelompok4.sql
UTF-8
1,975
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 12, 2020 at 05:48 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
ce53ffd6ee9eb44c593a6ff58060009bf2ec26a6
SQL
AscenKeeprov/Database-Basics
/XAM24062018/TripService/RomanticGetaways.sql
UTF-8
384
4.15625
4
[ "MIT" ]
permissive
USE TripService SELECT a.Id, a.Email, c.[Name] AS [City], COUNT(t.Id) AS [Trips] FROM Accounts AS a JOIN AccountsTrips AS at ON at.AccountId = a.Id JOIN Trips AS t ON t.Id = at.TripId JOIN Rooms AS r ON r.Id = t.RoomId JOIN Hotels AS h ON h.Id = r.HotelId JOIN Cities AS c ON c.Id = h.CityId WHERE a.CityId = h.City...
true
49587aa3eb8e78f30d423c9cb917c30ce4f6d60f
SQL
AussiePete2015/SQL_statements-
/Oracle/ora_cog_camid_acc.sql
UTF-8
562
3.15625
3
[]
no_license
DROP VIEW VW_CAMID_ACCNAME; CREATE VIEW VW_CM_CAMID_ACCNAME ( CAMID, ACCOUNT_NAME ) AS Select C1021CS.CMOBJNAMES_BASE.Name CAMID, C1021CS.CMOBJPROPS33.Name from C1021CS.CMOBJNAMES_BASE, C1021CS.CMOBJECTS, C1021CS.CMOBJPROPS33, C1021CS.CMOBJPROPS26 Where C1021CS.CMOBJNAMES_BASE.cmid = C102...
true
1b4e50fd67b92a4e76a8cbfb4b7bbf07ad88361b
SQL
xianfengtuandui/FirstProject
/xianfeng.sql
UTF-8
8,369
2.890625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : First Source Server Version : 50641 Source Host : localhost:3306 Source Database : xianfeng Target Server Type : MYSQL Target Server Version : 50641 File Encoding : 65001 Date: 2018-10-19 16:56:50 */ SET FOREIGN_KEY_CHECKS=0; -- ----...
true
f0e829fa063e8234b2c3b39aca62d367bd0ae670
SQL
gsiems/tasker-schema
/schema/01_drop_database.sql
UTF-8
284
2.859375
3
[ "MIT" ]
permissive
\c postgres -- REVOKE CONNECT ON tasker FROM tasker_user ; -- Ensure that there are no other connections to the database SELECT pg_terminate_backend( pid ) FROM pg_stat_activity WHERE pid <> pg_backend_pid( ) AND datname = 'tasker'; DROP DATABASE IF EXISTS tasker;
true
c78e83d47a6ab0ebd68dd8be79e84ef612fe3b9d
SQL
TanDKY/NAIST_codereview
/SQL/select_revision.sql
UTF-8
625
3.90625
4
[]
no_license
SELECT rev.`id` as rev_id_db, rev.`rev_id`, heat.`change_id_db`, rev.`rev_patchSetNum` FROM `change_heat` heat INNER JOIN `t_revision` rev ON heat.`change_id_db` = rev.`rev_changeId` INNER JOIN (SELECT heat.`change_id_db`, COUNT(rev.`rev_patchSetNum`) FROM `change_heat` heat INNER JOIN `t_revision` rev ON heat.`chan...
true
f9d2b9d88cfd3481d61f8e6eb3669d3518e2dc4d
SQL
Jeong-hae-rim/sql
/exercise03.sql
UHC
1,166
3.46875
3
[]
no_license
select LENGTH('ѱ'), LENGTHB( 'ѱ' ) from dual; select job, substr(job, 1, 2), substr(job, 3, 2), substr(job,5) from emp; select job, length(job) from emp where length(job) >= 6; select concat(empno, ename), concat(empno, concat(', ' , ename)) from emp where ename = 'SMITH'; select sysdate, to_char...
true
46ef0e01fa3ea4ce25af46574c5215bd7e17d8e0
SQL
Sher-V/InternetProvider
/Internet_Provider_SQLscripts/createDataBase.sql
UTF-8
2,813
3.828125
4
[]
no_license
CREATE database IF NOT EXISTS InternetProvider; USE InternetProvider; create table Client ( Client_Id int primary key auto_increment, Client_FirstName varchar(255) not null, Client_LastName varchar(255) not null, Client_Passport varchar(255) not null unique, Client_Birthday date not null ); create table Mounter ( Mo...
true
20fc0efbfba94464e79b5662ea634c0deefbaa3f
SQL
ajruckman/ContraCore
/internal/provision/sql/50_clickhousemig.sql
UTF-8
540
2.796875
3
[]
no_license
SELECT * FROM contradb.public.log_details_recent; SELECT array_to_json(answers) FROM log_details_recent; SELECT array_to_string(answers, ',') FROM log_details_recent; SELECT time::DATE AS eventdate, date_trunc('second', time)::TEXT, client,...
true
716b846bb94c27403ef080e4f2c94de9332d43e7
SQL
starrail/SQL45
/19-32.sql
UTF-8
3,381
4.875
5
[]
no_license
#第五天: 19-32 # 19. 查询每门课程被选修的学生数 SELECT CId, COUNT(*) 学生数 FROM SC GROUP BY CId; # 20.查询出只选修两门课程的学生学号和姓名 select sid from sc group by sid having count(cid)=2; SELECT sid, sname FROM student WHERE sid IN (SELECT sid FROM sc GROUP BY sid HAVING COUN...
true