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
5ad47fad11ac97add6132513478d31e3ad8770d2
SQL
flygil/gilsehoon
/02_db_basic/JDBC/day01exam.sql
UTF-8
435
3.6875
4
[]
no_license
select l.city, e.first_name, e.salary from locations l inner join departments d on l.location_id = d.location_id inner join employees e on d.department_id = e.department_id where l.city like '%?%' and e.salary >= 15000; select distinct d.department_name, d.manager_id from departments d inner join employees e on ...
true
198d0a1117fc7412a51770321c2e2ed34dac9fee
SQL
JhonatasMenezes/Curso_MySQL
/Scripts MySQL/Comando select pt1.sql
UTF-8
956
3.890625
4
[ "MIT" ]
permissive
select * from gafanhotos; select * from cursos; desc cursos; -- comando SELECT pode ser classificado como DML -- ou como DQL - Date Query Language -- selecionar todas as tabelas em ordem descendente select * from cursos order by nome desc; -- selecionar apenas colunas desejadas select ano, nome, carga from cursos o...
true
47f9ed0734c3659b24de551273831f16b5cea755
SQL
smuckert/magjohansson
/member.sql
UTF-8
1,702
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Värd: localhost -- Tid vid skapande: 26 jan 2017 kl 10:27 -- Serverversion: 10.1.16-MariaDB -- PHP-version: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT...
true
ad3281c2fd11146e71bf6fde2d851f1959544a19
SQL
KenanHadzirovic/touristagency
/TouristAgency.Database/TouristAgency.Database/dbo/Scripts/Post-Deplyoment/Privileges.sql
UTF-8
856
3.609375
4
[]
no_license
USE TouristAgency; IF OBJECT_ID('tempdb..#tempPrivilege') is not null DROP TABLE #tempUserAccount; CREATE TABLE #tempPrivilege ( [PrivilegeId] INT NOT NULL, [Name] NVARCHAR (50) NOT NULL, [Description] TEXT NULL, ); INSERT INTO #tempPrivilege VALUES (1, 'Can Create User','Users with this privi...
true
fb8f87f64e9099f94545ff982e0db104de895d2f
SQL
heitorchang/reading-list
/obsolete_or_trivial/sql_cookbook/13_hierarchical.sql
UTF-8
1,043
4.03125
4
[]
no_license
-- 13.1 expressing parent-child relationship select c.ename || ' works for ' || p.ename from emp c, emp p where c.mgr = p.empno; -- 13.2 child-parent-grandparent relationship with recursive x (tree, mgr, depth) as ( select ename, mgr, 0 from emp --where ename = 'MILLER' union all select x.tree || '->' || e.ename, e...
true
f09cc78f8ee7524aed5003bbbfe65f843499de94
SQL
Lund-University-Biodiversity-data/canmove-db
/base/d_ori_experiment.sql
UTF-8
1,418
3.296875
3
[]
no_license
/* Creator: Mats J Svensson, CAnMove */ create table d_ori_experiment ( experiment_id serial primary key, animal_id integer not null references d_ori_animal (animal_id), capture_id integer not null references d_ori_capture (capture_id), setup_id integer not null references p_ori_setup (setup_id), experime...
true
6318eba8fe1b7c867c1236d66a9a27ab36fd3893
SQL
peterschriever/dotfiles
/.PhpStorm2016.1/config/consoles/.history/db/68a00f27-0dfb-415c-b592-962bb86feea3.sql
UTF-8
163,111
3.265625
3
[]
no_license
TRUNCATE TABLE SCHEDULES ;-- -. . -..- - / . -. - .-. -.-- DELETE FROM SCHEDULES WHERE 1 ;-- -. . -..- - / . -. - .-. -.-- DELETE FROM SCHEDULES WHERE 1=1 ;-- -. . -..- - / . -. - .-. -.-- DELETE FROM SCHEDULES ;-- -. . -..- - / . -. - .-. -.-- DELETE FROM STUDENTS ;-- -. . -..- - / . -. - .-. -.-- SELECT S.NAME FROM S...
true
1908a81941680d9c66f760cd5835b27f39bde797
SQL
yindashan/appmonitor
/sql/dml_1.7.sql
UTF-8
1,325
2.75
3
[]
no_license
insert into judge_rule(id,name,comment,simple_desc) values(1,'UnanimousJudgeRule','所有机器响应结果必须一致,如果不一致则认为存在服务有错误','全一致规则'); insert into judge_rule(id,name,comment,simple_desc) values(2,'UnanimousWithFilterJudgeRule','***处理目标为XML***,会将某些XML的标签过滤掉,剩余部分必须完全一致','全一致规则(带过滤)'); insert into judge_rule(id,name,comment,simple_d...
true
7807f3fb65917e7aac8ee2e1132eda1fce8d4e43
SQL
3-SDK/ImageGallery_Service
/Databas/schema.sql
UTF-8
406
2.53125
3
[]
no_license
CREATE TABLE listings ( listingid SERIAL PRIMARY KEY, listingName VARCHAR(200) NOT NULL ); CREATE TABLE image_gallery( listing_id INT , id serial PRIMARY KEY, title VARCHAR (200) NOT NULL, helpful INT NOT NULL, category VARCHAR (355) NOT NULL, imageMonth VARCHAR(300) NOT NULL, imageDate VARCHAR...
true
437731f3d0fd3a89ce3dff4d3db775b990e20139
SQL
minhax/NF18
/SQL/ViandeVsPoisson.sql
UTF-8
617
3.671875
4
[]
no_license
/* Les plats à base de viande sont-ils plus commandés que les plats à base de poisson?*/ SELECT e1.Categorie, SUM(e1.Quantite) AS QuantiteVendue FROM ( SELECT P.Categorie, sum(QE.Quantite)AS Quantite FROM Plat P, QuantiteElem QE WHERE QE.IDElement=P.ID GROUP BY P.Categorie UNION ( SELECT P.Categorie, sum(QE.Qu...
true
8470cfe38a9c989091ba528e812141383b6217ff
SQL
LeonardoCC/Model_SysFrye
/SYSFRYE_INVENT.sql
UTF-8
22,036
3.203125
3
[]
no_license
-- ----------------------------------------------------- -- Table `sysfrye_inve`.`inv_sectores` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `sysfrye_inve`.`inv_sectores` ( `PF_EMP_SEC_EMPRESA` INT(11) NOT NULL, `PK_SEC_CODIGO_SECTOR` INT(11) NOT NULL, `SEC_NOMBRE_SECTOR` VA...
true
4b8899f8bd6572977d2066926f507477d09e9273
SQL
jorgegabriel8/LaborarotioBaseDeDatos
/Practica 9 y 10 Joins Having .sql
UTF-8
2,905
3.625
4
[]
no_license
SELECT TOP (10) v.[Id_Venta] ,v.[Producto_Id] ,v.[Id_Empleado] ,v.[Dia_Venta] ,v.[Cliente_Id] ,v.[Precio_Neto] , p.* FROM [Venta] as v right join Productos as p on v.Producto_Id = p.Producto_Id SELECT TOP (5) v.[Id_Venta] ,v.[Producto_Id] ,v.[Id_Empleado...
true
83179ec54e3e5e483dbe9999f4d413faa6b8fb4a
SQL
barbalex/apf2
/sql/migration/0059-div.sql
UTF-8
3,287
2.71875
3
[ "ISC" ]
permissive
ALTER TABLE apflora.tpop DROP CONSTRAINT tpop_id_key cascade; ALTER TABLE apflora.tpopber ADD CONSTRAINT tpopber_tpop_id_fkey FOREIGN KEY (tpop_id) REFERENCES apflora.tpop (id) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE apflora.tpopmassn ADD CONSTRAINT tpopmassn_tpop_id_fkey FOREIGN KEY (tpop_id) REFERENCES apfl...
true
536167ec663f0ea22265e6770460b0f4d7c2f67a
SQL
radtek/abs3
/sql/mmfo/bars/ForeignKey/err_texts.sql
UTF-8
1,390
3.0625
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/Bars/ForeignKey/ERR_TEXTS.sql =========*** Run ** PROMPT ===================================================================================== PROMPT *** Create constrain...
true
aaea085f00f6098bc64a40faac8620f632f3afe2
SQL
ahzahed/currency-exchange
/stilexch_exchange.sql
UTF-8
15,742
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 04, 2020 at 08:34 PM -- Server version: 10.2.26-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 SET...
true
37304a0b037488830a6d7def73e40f5f0e188d39
SQL
golony6449/Board-JSP
/db.sql
UTF-8
4,298
3.609375
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: db -- 생성 시간: 19-07-22 09:56 -- 서버 버전: 10.4.6-MariaDB-1:10.4.6+maria~bionic -- PHP 버전: 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
true
fc8fb39f187463811bfff33fabc884f5cdcb554f
SQL
rodrigocgo/BANCO
/CatalogoLivro/consulta.sql
UTF-8
2,150
4.25
4
[]
no_license
-- Retorna nome, nacionalidade e email conforme o email informado select nomea, nacionalidade, email from autor where email = '%gmail.com%' -- Retorna nome, sexo e nacionalidade do autor conforme sua nacionalidade 3 PARAM select nomea, sexo, nacionalidade from autor where nacionalidade IN ('BR', 'US', 'UK') -- R...
true
be384c12c626d2eedb4e45e0cd166c14b16c6466
SQL
WebsiteBaker-modules/WB-Portable
/root/wbdemo/install/install_struct.sql
UTF-8
5,847
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Erstellungszeit: 14. Aug 2014 um 10:46 -- Server Version: 5.5.32 -- PHP-Version: 5.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; -- -------------------------------------------------------- -- Database structure for module 'n...
true
c2c031d1b6c6806bc4b643d3060d1761071226f3
SQL
gabinete-compartilhado-acredito/BQdatasase
/views/camara_v2_processed.votacoes_proposicoes_afetadas.sql
UTF-8
2,535
3.390625
3
[ "MIT" ]
permissive
/*** Tabela de proposições afetadas pelas votações. Trata-se de um unnest do campo "proposicoesAfetadas" da tabela de detalhes sobre as votações (votacoes_detalhes). As informações únicas por linha do votacoes_detalhes foram repetidas aqui (ou seja, as que não estão em outros nested). -- Parseamos as datas, sen...
true
c5967131075c0f66aa62f33c5d32baf7c5444845
SQL
sayyidisal/login-with-qrcode
/loginBarcode.sql
UTF-8
1,836
2.796875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Nov 15, 2019 at 09:15 PM -- Server version: 5.7.27-0ubuntu0.18.04.1 -- PHP Version: 7.2.24-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
08c7697d53ca806c5c4c4b590bfedb9a3a19592d
SQL
navidmalakootikhah/EmployeeSQL
/Queries.sql
UTF-8
2,599
4.65625
5
[]
no_license
--Question number 1: List the following details of each employee: employee number, last name, first name, gender, and salary SELECT employees.emp_no, employees.first_name, employees.last_name, employees.gender, salaries.salary FROM employees INNER JOIN salaries ON employees.emp_no=salaries.emp_no; --Question numb...
true
f5b4ffb1209b128583543fea2466c100ed804888
SQL
medy13/dbshell
/today_shell/CONVEYANCE_GPTMP_TODAY.sql
UTF-8
829
2.546875
3
[]
no_license
\echo ------------------CONVEYANCE---------------- select now(); \timing delete from CONVEYANCE_GPTMP; insert into CONVEYANCE_GPTMP (CMD_TYPE,SHIP_ID, TRAF_MODE) select CMD_TYPE,SHIP_ID, TRAF_MODE from CONVEYANCE_INC_EXT; delete from CONVEYANCE_GPTMP_TODAY using CONVEYANCE_GPTMP where CONVEYANCE_GPTMP.SHIP_ID=CONVEYANC...
true
dcc8afc15772d8b90fa6d48e0f27ef6010f16a2c
SQL
rsdevigo/iTrekkingIF
/database.sql
UTF-8
660
3.328125
3
[]
no_license
CREATE TABLE control_point ( id int AUTO_INCREMENT, x int, y int, z int, name varchar(256), CONSTRAINT PK_CP PRIMARY KEY (id), CONSTRAINT UC_CP UNIQUE (x,y,z) ); CREATE TABLE player_control_point ( id int AUTO_INCREMENT, x int, y int, z int, point_name varchar(256), ...
true
0db2eab904d0970040ce0c0849cda9db6eadf914
SQL
sprokushev/Delphi
/MASTER/_DATABASE/Constraints/EUL_OBJ_DEPS_FK.sql
UTF-8
376
2.84375
3
[]
no_license
-- -- Foreign Key Constraints for Table EUL_OBJ_DEPS -- ALTER TABLE MASTER.EUL_OBJ_DEPS ADD ( CONSTRAINT EUL_OD_COBJ_FK FOREIGN KEY (OD_OBJ_ID_FROM) REFERENCES MASTER.EUL_OBJS (OBJ_ID) ENABLE NOVALIDATE); ALTER TABLE MASTER.EUL_OBJ_DEPS ADD ( CONSTRAINT EUL_OD_OBJ_FK FOREIGN KEY (OD_OBJ_ID_TO) REF...
true
7994f0cb1436ede1e9f13aab43efd39f3ecd400a
SQL
Ferin79/Online-Examination-System-PHP
/online_exam.sql
UTF-8
14,211
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 27, 2020 at 09:10 AM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
6f61ec8d0d360513b0ea4c1eb5443826f21ceec0
SQL
JGonzaTeo/HSC
/Consultas Inteligentes/market.sql
UTF-8
28,520
2.78125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 27-09-2019 a las 03:35:20 -- Versión del servidor: 10.1.37-MariaDB -- Versión de PHP: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
5cc19b920c2baa2b4ea3a7199a759026a04b20a5
SQL
Bn22m/mkovpro
/mkovpro2/docs/db.sql
UTF-8
2,185
3.375
3
[ "MIT" ]
permissive
CREATE DATABASE MKOVENIDB; use mkovenidb; GRANT ALL ON MKOVENIDB.* to cool@localhost identified by 'myp6pw'; CREATE TABLE registrations ( id INT AUTO_INCREMENT PRIMARY KEY, account VARCHAR(30) NOT NULL UNIQUE, name VARCHAR(50) NOT NULL, surname VARCHAR(50) NOT NULL, utype VARCHAR(99) NOT NULL, email VARCHAR...
true
302a07834f3f84bc673b0344ac63cb6586d8e44a
SQL
barrowjacob/spring
/src/main/java/com/codeup/springblog/Models/sandwichSeeder.sql
UTF-8
748
2.796875
3
[]
no_license
USE springblog_db; INSERT INTO sandiwches(sandwich_name, who_owns_the_sandwich) VALUES ('the big cheese', 'james'), ('margherita pizza sandwich', 'drunkard'), ('ham','plain jane'), ('chicken fried steak sandwich', 'a very nice person'); INSERT INTO sandwich_details(history_of_sandwich, ingredient...
true
e380e99973c788671912e8464e994ef878fbd335
SQL
jmw5598/codewars
/sql/7kyu/GroceryStoreSupportLocalProducts.sql
UTF-8
768
3.9375
4
[]
no_license
/* You are the owner of the Grocery Store. All your products are in the database, that you have created after CodeWars SQL excercises!:) You care about local market, and want to check how many products come from United States of America or Canada. Please use SELECT statement and IN to filter out other origi...
true
fac5c6fe981dc28353a1651f2efb9234f9db2057
SQL
pedbir/Framework
/DB/DWH_3_Fact/Finance/Views/d_Project.sql
UTF-8
195
2.59375
3
[]
no_license
 CREATE VIEW [Finance].[d_Project] AS SELECT Project_key ,ProjectCode ,Project = IIF(Project_key = -1, ProjectCode, ProjectCode + ' ' + ProjectName ) FROM [Fact].[d_Project]
true
d0b0b1a26a8ce53d36e7968a8b38a8a2df71d382
SQL
didierrevolsz/MateriaEstudoSQL
/02 - Curso de PostgreSQL: Views, Sub-Consultas e Funções /cursoAluraPrimeiroScript.sql
UTF-8
2,194
4.40625
4
[]
no_license
CREATE TABLE aluno ( id SERIAL PRIMARY KEY, primeiro_nome VARCHAR(255) NOT NULL, ultimo_nome VARCHAR(255) NOT NULL, data_nascimento DATE NOT NULL ); CREATE TABLE categoria ( id SERIAL PRIMARY KEY, nome VARCHAR(255) NOT NULL UNIQUE ); CREATE TABLE curso ( id SERIAL PRIMARY KEY, nome VARCHAR(255) NOT ...
true
e606604d2b3f4c948415292bb84f37dc50d3c7c0
SQL
MithrandirD/common_schema
/views/process/slave_status.sql
UTF-8
519
3.0625
3
[ "MIT", "BSD-3-Clause", "GPL-1.0-or-later" ]
permissive
-- -- Provide with slave status info -- CREATE OR REPLACE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW slave_status AS SELECT SUM(IF(is_io_thread, TIME, NULL)) AS Slave_Connected_time, SUM(is_io_thread) IS TRUE AS Slave_IO_Running, SUM(is_sql_thread OR (is_system AND NOT is_io_thread)) IS TRUE AS Sl...
true
17ec9eba110ed6b5d43c033301b5554a931b91e6
SQL
canhnang/SE03-Group12
/database/customer.sql
UTF-8
2,906
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 19, 2019 at 05:25 AM -- Server version: 10.3.15-MariaDB -- PHP Version: 7.1.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
true
553711c0f7d09f3e65c44db6697c5b9a51c6ec10
SQL
OvidiuEDSgrup/TET
/TET/Stored Procedures/Procs2/wIaStariOportunitati.sql
UTF-8
441
2.65625
3
[]
no_license
CREATE procedure wIaStariOportunitati @sesiune varchar(50), @parXML xml as IF OBJECT_ID('tempdb..#stariop') IS NOT NULL drop table #stariop create table #stariop(cod varchar(20), denumire varchar(100), ordine int) insert into #stariop (cod, denumire, ordine) select 'C','Castigata',2 UNION ALL select 'D',...
true
c3a2dafdb62ecdaf9bd39a2b06946bd92c1480e8
SQL
DeryanAAA/GPC-PRESENTACION-MATIAS
/gpc(5).sql
UTF-8
1,786
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 17-11-2020 a las 16:03:47 -- Versión del servidor: 10.4.14-MariaDB -- Versión de PHP: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
a533c2ed0e4b31de051d9c5bc9e98f974535f6c7
SQL
nathansutton/omop
/src/migrations/public/V0002__concept_ancestor.sql
UTF-8
712
3.59375
4
[ "Apache-2.0" ]
permissive
--HINT DISTRIBUTE ON RANDOM CREATE TABLE concept_ancestor ( ancestor_concept_id INTEGER NOT NULL, descendant_concept_id INTEGER NOT NULL, min_levels_of_separation INTEGER NOT NULL, max_levels_of_separation INTEGER NOT NULL ); COPY concept_ancestor FROM '/opt/CONCEPT_ANCESTOR.csv' WITH DELIMITER...
true
1af71820f6d9b315bd61ce6226042b035a0e3686
SQL
zawzawhtwe-kta-cu/Sample-Point-Of-Sale-using-Codeigniter
/database/pos (1).sql
UTF-8
5,109
3.1875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 05, 2018 at 08:03 AM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
1f00567ba5bb3baa9bdf460d11e73ba381ef3f23
SQL
nemishzalavadiya/Canteen-Food-Ordering
/Canteen Food Ordering/SQL_Export/PhpProject.sql
UTF-8
7,050
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Apr 08, 2019 at 06:19 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
4f318234324b8c7f536353c7ffeb79e3f3e277d3
SQL
ashfaaqdesai/Real-Estate-Website
/sql/basement_type.sql
UTF-8
622
2.890625
3
[]
no_license
-- File: basement_type.sql -- Name: Group 05 -- Date: October 28, 2019 -- Description: SQL file to create basement_type property/value table DROP TABLE IF EXISTS basement_type CASCADE; CREATE TABLE basement_type( value INTEGER NOT NULL PRIMARY KEY, property VARCHAR(20) ); ALTER TABLE basement_type OW...
true
7661204d1b28a9f019732a2058690033fc37f7e8
SQL
suthakarkb/nodejs-api-classroom
/misc/db_backup.sql
UTF-8
1,635
3.1875
3
[]
no_license
DROP TABLE IF EXISTS register; CREATE TABLE register( id INT NOT NULL AUTO_INCREMENT, teacher_email VARCHAR(100) NOT NULL, student_email VARCHAR(100) NOT NULL, valid NUMBER(1) NOT NULL, PRIMARY KEY ( id ) ); DROP TABLE IF EXISTS users; CREATE TABLE user( id INT NOT NULL AUTO_INCREMENT,...
true
1e17aad2226f508ec16c4485732fc8a9357f610e
SQL
Stavros25/data_analytics_class_assignments
/June24SQLAggregates.sql
UTF-8
1,409
3.328125
3
[ "MIT" ]
permissive
SELECT COUNT (*) FROM da_pronto.trip SELECT COUNT (*), sum(tripduration) FROM da_pronto.trip SELECT to_station_name, COUNT (*), sum(tripduration) as SumTripDur FROM da_pronto.trip GROUP BY to_station_name SELECT to_station_name, COUNT (*), sum(tripduration) as SumTripDur FROM da_pronto.trip GROUP BY to_station_name...
true
73c7b64739afd0f834b8dfb25345b07c1a21041a
SQL
intCCP/CCP
/Produzione/Viste/v_mcre0_ultima_acquisizione.sql
UTF-8
582
2.53125
3
[]
no_license
/* Formatted on 17/06/2014 18:06:38 (QP5 v5.227.12220.39754) */ CREATE OR REPLACE FORCE VIEW MCRE_OWN.V_MCRE0_ULTIMA_ACQUISIZIONE ( COD_FILE, IDPER ) AS SELECT -- V1 02/12/2010 VG: Congelata cod_file, MAX (TO_CHAR (periodo_riferimento, 'YYYYMMDD')) idper ...
true
ceb658d633d3464354f2fee46e3fd85abeb698ed
SQL
Prajakta7/Two-phase-locking-protocol
/project1.sql
UTF-8
1,880
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 26, 2019 at 12:30 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.1.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
1d19ffee64cf8f93d057671d27088f9c98ad0029
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day14/select1052.sql
UTF-8
260
2.96875
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='WeMo' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['5081','3216','3081','2224','6212','1422','4099','2202','6024','1433'])
true
1279a74f76782e88e269d809d482c1becf867db8
SQL
Basharat151214/Database-Systems-CS203
/Database System Project/Art Gallery Managment system/Art Gallery Managment System/Lab/Assignment01/QNO2.sql
UTF-8
1,781
3.921875
4
[]
no_license
CREATE TABLE IF NOT EXISTS `subjects` ( `SUBJECT_ID` int(10) NOT NULL, `TITLE` varchar(10) NOT NULL, PRIMARY KEY (`SUBJECT_ID`) ); -- --------------------------------------------------------- CREATE TABLE IF NOT EXISTS `teachers` ( `TEACHER_ID` int(10) NOT NULL, `FNAME` varchar(15) NOT NULL, `LN...
true
b54e060d778831526dbd5797d3647ec5335c05d8
SQL
EgoSay/awesomelist
/awesome-mysql/newcoder-mysql/src/main/resources/51~61/53.sql
UTF-8
219
3.3125
3
[]
no_license
# 按照dept_no进行汇总,属于同一个部门的emp_no按照逗号进行连接,结果给出dept_no以及连接出的结果employees SELECT dept_no,group_concat(emp_no) AS employees FROM dept_emp GROUP BY dept_no
true
eabe7c050758a51870704b61399c857900709e44
SQL
CaiowCesah89/testecalcomp
/DUMP/Script_Banco_CalComp.sql
UTF-8
867
3.390625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS TesteCalComp DEFAULT CHARACTER SET latin1 COLLATE latin1_general_ci; USE TESTECALCOMP; CREATE TABLE IF NOT EXISTS DQCMODEL( ID INT AUTO_INCREMENT, MODEL VARCHAR(10) NOT NULL, PRIMARY KEY(ID)); CREATE TABLE IF NOT EXISTS DQC84( ID INT AUTO_INCREMENT, MODEL INT NOT NULL, FAT_PART_NO VARCH...
true
5c5824220016c6544c95a242f6d609d23e5a3c20
SQL
migue99angel/DGP
/data/BD.sql
UTF-8
3,945
3.46875
3
[]
no_license
/* PRECAUCION: Este archivo no está actualizado */ CREATE TABLE Persona( idPersona INT NOT NULL AUTO_INCREMENT PRIMARY KEY, tlfPersona VARCHAR(10) UNIQUE, nombre VARCHAR(100) NOT NULL, contraseña VARCHAR(100) NOT NULL ); CREATE TABLE Administrador( idAdministrador INT NOT NULL AUTO_INC...
true
74ac67800f96376aebcdfa5857ef581cbf1b7f5a
SQL
melnyknikolay/spr-mvc-hib-master
/src/main/resources/new_data_base.sql
UTF-8
5,008
2.875
3
[]
no_license
CREATE TABLE `user` ( `id` int(8) NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL , `age` int(11) DEFAULT NULL , `isAdmin` bit(1), `createDate` TIMESTAMP(1) DEFAULT CURRENT_TIMESTAMP(1), PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `user` (`id`, `name`, `age`, `isAdmin`, `cr...
true
6f65c232cb43208645966ea18c83fd3188099273
SQL
MW-db/DBproject
/sql/procedura_nextDay.sql
UTF-8
1,549
3.625
4
[]
no_license
DELIMITER $$ CREATE PROCEDURE nextDay() BEGIN DECLARE end INT DEFAULT 0; DECLARE done INT DEFAULT 0; DECLARE curDate DATE; DECLARE curExpense INT DEFAULT 0; DECLARE prevBalance INT; DECLARE cur CURSOR FOR SELECT Date, Expense FROM Balance WHERE Status = "Unpaid" AND WorkerID IS NULL; DECLA...
true
de93b0891501b1774e5035ba9ece138a609cd7f9
SQL
VolodymyrPavliv/hospital
/sql/db.sql
UTF-8
1,416
3.796875
4
[]
no_license
CREATE TABLE IF NOT EXISTS role ( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(45) NOT NULL UNIQUE ); CREATE TABLE IF NOT EXISTS user ( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(64), surname VARCHAR(64), email ...
true
c5f555be64824a4696b7b2f12a014a70bda94de5
SQL
gabrieltreib/estudos_sqlserver
/class_queries.sql
ISO-8859-1
6,592
4.3125
4
[]
no_license
-- apresenta valores nicos SELECT DISTINCT(CARGO) FROM dbo.funcionario; -- apresenta a estrutura de uma tabela sp_help funcionario; -- % no final, tudo que comea com aqueLA STRING SELECT * FROM funcionario WHERE nome LIKE 'Maria%'; -- "_" nesse exemplo abaixo, mostra todos os nomes que possuem "s" -- na 4 posio, e...
true
d0524e37227fc85327a4c43dff634d9d74a54e8f
SQL
device42/DOQL_scripts_examples
/Recommended DOQL/Insights SavedDOQL/D42_Adv_Disc_Success.sql
UTF-8
9,727
3.234375
3
[ "Apache-2.0" ]
permissive
/* DOQL for detailed data of Devices related to Discovery Scores and Job Scores. */ Select ds.discoveryscores_pk "Discovery Score ID" ,vsd.vserverdiscovery_pk "Job ID" ,vsd.job_name "Job Name" ,vsd.platform "Platform" ,ds.port "TCP Port" ,ds.discovery_server "Discovery Target" ,ds.username "Username" ,CASE ...
true
4f10a6d0268a96f0861284d6dbaed50aef9ecc16
SQL
gabrielSpassos/node-college-project
/data/data_gym.sql
UTF-8
2,254
4.21875
4
[]
no_license
drop database gym; create database gym; use gym; create table treino( id int auto_increment, nomeTreino varchar(100), primary key(id) ); create table exercicio( id int auto_increment, nomeExercicio varchar(100) unique, primary key(id) ); create table treino_exercicio( id int auto_increment, id_treino int not null, i...
true
f1e17c1f47d8b6f52960cd1c02ce1e37114356e5
SQL
slmoloch/db-keeper
/SampleDatabases/MicrosoftDatabaseProject/AdventureWorks2008/Schema Objects/Tables/Indexes/Production.ProductReview.IX_ProductReview_ProductID_Name.index.sql
UTF-8
373
3.265625
3
[]
no_license
CREATE NONCLUSTERED INDEX [IX_ProductReview_ProductID_Name] ON [Production].[ProductReview]([ProductID] ASC, [ReviewerName] ASC) INCLUDE([Comments]) WITH (ALLOW_PAGE_LOCKS = ON, ALLOW_ROW_LOCKS = ON, PAD_INDEX = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, IGNORE_DUP_KEY = OFF, STATISTICS_NORECOMPUTE = OF...
true
77dbeca217796b5d35fab325f2dd3a4a173a6d60
SQL
smartinez9535/python
/mySQL/introduction/users/users_commands.sql
UTF-8
498
3.0625
3
[]
no_license
INSERT INTO users (first_name, last_name, email, created_at, updated_at) VALUES ("John", "Doe", "johb@dojo.com", NOW(), NOW()), ("Jane", "Doe", "jane@dojo.com", NOW(), NOW()), ("Jim", "Bo", "jim@dojo.com", NOW(), NOW()); SELECT * FROM users; SELECT * FROM users WHERE email = "johb@dojo.com"; SELECT * ...
true
266054e42bd20dc7f51f88133caead8f1cb7ac75
SQL
raularias86/TSQL-Normal
/Scripts Tablero Constructores/project_sql_ca_covid19_cliente.sql
UTF-8
6,883
3.625
4
[]
no_license
drop table if exists proceso_bana_vghi.ca_covid19_cliente_tmp purge; create table proceso_bana_vghi.ca_covid19_cliente_tmp stored as parquet as with grls as ( select a.cifcodcliente cod_empresa, a.CIFNOMBRECLIE NOM_EMPRESA, a.cifcodareafin, c.findesareafin area_financiera, iNITC...
true
66bfcb5573f186711c5fb2093793738321e01659
SQL
IlyaMorozovM/gift_shop
/src/test/resources/db/Tags.sql
UTF-8
151
2.796875
3
[]
no_license
CREATE TABLE IF NOT EXISTS Tags ( ID int NOT NULL AUTO_INCREMENT UNIQUE, Name varchar(45) NOT NULL UNIQUE, PRIMARY KEY (ID) );
true
21682a3584d795ab0bc0fc018e759679604acafc
SQL
sthephanieso/Serratec-2021
/Produtos.sql
UTF-8
2,037
3.640625
4
[]
no_license
CREATE TABLE public.produtos (     codigo character varying(5)NOT NULL,     nome character varying(60) NOT NULL,     descricao character varying(255) NOT NULL,     valor money, categoria character varying(25), cartao double precision, boleto double precision, vista double precision,     CONSTRAINT produtos_pkey PRI...
true
d0ee6ad27a20c6fdc9d5183ba10a74240c80142f
SQL
jtpunt/sql
/MySQL/Assignment2-selection-4.sql
UTF-8
3,797
4.46875
4
[]
no_license
/******************************************* * Author: Jonathan Perry * Date: 11/05/17 * Assignment: CS 340 - Assignment 2 *******************************************/ #1 Find all films with maximum length or minimum rental duration (compared to all other films). #In other words let L be the maximum film length,...
true
97ef778b133a60ef2721a7d532130e60e62f2fe8
SQL
kristinedomingo/cs347-arl-rfe
/part1_PLSQL_code.sql
UTF-8
12,625
3.765625
4
[]
no_license
-- Page 6, "Create RFE" -- CREATE_RFE BEGIN INSERT INTO F15F1_RFE VALUES (1, 160, :P6_EXPLANATION, :P6_ALT_PROTECTIONS, :P6_APPROVAL_REVIEW_DATE, :SELECT_EMP, sysdate(), 'EMP', 3, sysdate(), 'EMP') RETURNING RFE_ID into :P6_RETURNED_RFE_ID; INSERT INTO F15F1_HISTORY(HIS_DATE...
true
4605d9d9f8a8315923066d60913be51c74d95466
SQL
jianyuhe/enterprise-develop-CA
/database/library.sql
UTF-8
1,096
3.4375
3
[]
no_license
LOAD DATA LOCAL INFILE 'C:/Users/1/Desktop/enterprise develop/sourcs/books.csv' INTO TABLE mydb.books FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' IGNORE 1 LINES (title, author, genre, height, publisher, stock, price); CREATE TABLE `mydb`.`user` ( `userid` INT AUTO_INCREMENT, `username` VARC...
true
47b8c996234db3210cfd784c08ceeac7bd4e198e
SQL
genomicsengland/af_letter_distribution_dataset
/sql_scripts/excl_withdrawals_from_pmi.sql
UTF-8
975
3.78125
4
[]
no_license
-- query to get all full or partial withdrawals from PMI select sp.identifier_value as participant_id, it_c.concept_code, dg_c.concept_code, ds_c.concept_code, fv_c.concept_code from pmi.study_participant sp join pmi.data_group dg on sp.identifier_value = dg.identifier_value and sp.identifier_type_cid = dg.identi...
true
5979faa1ba4f1b7ef7cdafe8273869dbcbfbb418
SQL
yefc/CBOE
/subprojects/Classic/Consulting/DFCI/ChemInv/config/oracle_install_scripts/Create_blank_ChemInv_DB/sql/Create/Tables/Inv_Forecast.sql
UTF-8
542
3.625
4
[]
no_license
CREATE TABLE "INV_FORECAST" ( "COMPOUND_ID_FK" NUMBER(10), "LOCATION_ID_FK" NUMBER(4), "AMOUNT" NUMBER(10), CONSTRAINT "INV_USE_LOCATION_ID_FK" FOREIGN KEY("LOCATION_ID_FK") REFERENCES "INV_LOCATIONS"("LOCATION_ID"), CONSTRAINT "INV_USE_COMPOUND_ID_FK" FOREIGN KEY("COMPOUND_ID_FK") REFERENCES "INV_COMPO...
true
2897b0c9a695735cb88a9884fd5b12c7f2ea9b38
SQL
FeikeTuinhof/THFTEST
/DIM_ANNULERING_JN_V.sql
UTF-8
534
2.75
3
[]
no_license
-------------------------------------------------------- -- DDL for View DIM_ANNULERING_JN_V -------------------------------------------------------- CREATE OR REPLACE FORCE EDITIONABLE VIEW "PIMS"."DIM_ANNULERING_JN_V" ("CODE", "OMSCHR", "ANNULERING") AS SELECT 'J' code, 'Ja' omschr, 'Wel geannuleerd' annu...
true
1b3b2ab1293b7b36f737b331b494b66e0c282174
SQL
Tulenien/Database_Course
/Lab01/CreateMyDB.sql
UTF-8
1,857
3.8125
4
[]
no_license
--drop TABLE if EXISTS re_ownership; --drop TABLE if EXISTS re_obj; --drop TABLE if EXISTS re_owner; --drop TABLE if EXISTS re_ownership_type; create table if not exists RE_Owner( Ensurance_Num bigint not null primary key, Owner_Name varchar(80), Age smallint, Gender varchar(4) ); create table if not exi...
true
a0c9247385425e9f055e28eca75068c0eda09cf7
SQL
kawabata-neolis/KATO
/KATO/SQL/A0670_SiiresakiSiirekakunin/A0670_SiiresakiSiirekakunin_SELECT.sql
UTF-8
649
3.359375
3
[]
no_license
SELECT a.伝票年月日, a.伝票番号, b.行番号, dbo.f_getメーカー名(b.メーカーコード) AS メーカー, RTRIM(ISNULL(dbo.f_get中分類名(b.大分類コード,b.中分類コード),'')) + ' ' + Rtrim(ISNULL(b.C1,'')) AS 品名型式, b.数量,b.仕入単価,b.仕入金額, b.商品コード,b.備考, dbo.f_get検収仕入フラグ(a.伝票番号,b.行番号) AS 検収状態 FROM 仕入ヘッダ AS a ,仕入明細 AS b WHERE a.削除 = 'N' AND b.削除 = 'N' AND a....
true
40ce4187b66df054bfb4f03123bbd6f6c06d050d
SQL
FlorentBecouze/Site-web-RSS
/ressources/newsScript.sql
UTF-8
491
2.671875
3
[]
no_license
CREATE TABLE TAdmin(id int(11), login varchar(200), mdp varchar(200)); INSERT INTO TAdmin VALUES(0, "root", "$2y$10$UAr2cVlAlKyxRlnkbds1re/P6Dulh87SdH5JXwV4.2ZOsg9xACU4O"); CREATE TABLE TSites(url varchar(500), name varchar(150), CONSTRAINT CPSites PRIMARY KEY(name) ); INSERT INTO TSites VALUES(...
true
ecc8a4d32071aefe56b4150d01ef7e04476c79a3
SQL
LzPedro/AC318
/test2.sql
UTF-8
684
3.296875
3
[]
no_license
create database postweb; CREATE TABLE `usuario` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(50) NOT NULL, `email` VARCHAR(50) NOT NULL UNIQUE, `password` VARCHAR(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB; CREATE TABLE `historico` ( `id` INT NOT NULL AUTO_INCREMENT, `corpo` VARCHAR(500) NOT NUL...
true
e4540e6f5aaf156ffd381e9af58bd7db3c9e39b6
SQL
0x92bf/webmaster
/sql/cyan_auth_node.sql
UTF-8
2,976
3.0625
3
[ "Apache-2.0" ]
permissive
/* Navicat MySQL Data Transfer Source Server : 本地 Source Server Version : 50553 Source Host : localhost:3306 Source Database : cyan Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2017-09-04 15:18:42 */ SET FOREIGN_KEY_CHECKS=0; -- -----------...
true
5bec3d65cb942ae545c52e8fec429a0147f20456
SQL
www-coltsmart-com/cloud
/sql/Device.sql
UTF-8
563
2.6875
3
[]
no_license
DROP TABLE IF EXISTS "public"."Device"; CREATE TABLE "public"."Device" ( "id" int4 DEFAULT nextval('"Device_id_seq"'::regclass) NOT NULL, "DeviceId" varchar(50) COLLATE "default" NOT NULL, "DeviceType" varchar(40) COLLATE "default" NOT NULL, "IsGetway" bool NOT NULL, "DeviceName" varchar(40) COLLATE "default" N...
true
1b12d89033b258bd7fa8b3998201c7d13f62d50f
SQL
jiandongc/ecommerce
/product/src/main/database/deltas/0054_create_post_table.sql
UTF-8
326
2.9375
3
[]
no_license
CREATE TABLE post ( id serial PRIMARY KEY, title varchar(255) not null, slug varchar(100) not null, summary varchar(255), image text, content text, create_date date DEFAULT CURRENT_DATE, update_date date, published boolean DEFAULT false, author_id int REFERENCES author(id) not nu...
true
10435a298b22bf4f120278073ea0d6be1aa95a82
SQL
magrai/URBAN-MV-VIE_UniBw_Study2_DB
/adtf_XX_t_adtf_dist_m_full.sql
UTF-8
1,788
2.96875
3
[]
no_license
DROP TABLE IF EXISTS t_adtf_dist_m_full CASCADE; CREATE TABLE t_adtf_dist_m_full AS SELECT "public".t_can_format.subid, "public".t_can_format.time_s, "public".t_can_format.speed_kmh, "public".t_can_format.acclat_ms2, "public".t_can_format.acclon_ms2, "public".t_can_format.yawrate_degs, "public".t_can_format.brakepress...
true
74adb9fe4d34b4fcd03c59e80f882526b9ae866a
SQL
eatchu/SQL-Handling
/chap03_select/select_exam03.sql
UTF-8
497
3.734375
4
[]
no_license
-- <연습문제3> -- 문1) hiredate가 1981년 2월 20과 1981년 5월 1일 사이 hiredate 순으로 출력 select ename,job,hiredate from emp where hiredate between '1981/02/20' and '1981/05/01' order by hiredate; select ename,job,hiredate from emp where hiredate >= '1981/02/20' and hiredate <= '1981/05/01' order by 3; -- 문2) deptno가 10,...
true
e157ed9d55f9298b8b9250918e01025171a021af
SQL
Julen-Pinar/PracticaSW
/trash/preguntas.sql
UTF-8
1,461
2.734375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 22-10-2015 a las 18:34:17 -- Versión del servidor: 5.6.26 -- Versión de PHP: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
c23e3d4851794731d5f2770b649417fb5a414a81
SQL
karthick-soolapani/code-problems
/180-sql/05-m2m/05_m2m_q07_total_income.sql
UTF-8
355
3.3125
3
[]
no_license
-- QUESTION -- Assuming that everybody in our database has a bill coming due, and that all of them will pay on time, write a query to compute the total gross income we expect to receive. -- ANSWER SELECT SUM(price) AS gross FROM services JOIN customers_services ON (services.id = service_id); -- DISCUSSION -- FURT...
true
3ce25d9afe37d8421b224ee2520acf32b20ecfff
SQL
SunilBohara/Repository-and-Template-Pattern-in-Java-using-JDBC
/student_list.sql
UTF-8
2,319
2.96875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.21, for Win64 (x86_64) -- -- Host: localhost Database: test -- ------------------------------------------------------ -- Server version 8.0.21 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;...
true
0aa2b33f8797734b58f8bfe5f51f79ff26c75cb1
SQL
zppro/SmartLifeForDotNet
/DatabaseDesign/脚本/Note/201404/SQLQuery20140404_4.sql
UTF-8
1,130
2.6875
3
[ "MIT" ]
permissive
exec SP_Cfg_GetFunctionDefinition @source_dbName='remote_dbo.[Smartlife-120300]',@dest_dbName='remote_dbo.[Smartlife-120301]' exec SP_Cfg_GetFunctionDefinition @source_dbName='remote_dbo.[Smartlife-120300]',@dest_dbName='' select * from Dey_Script where TYPE='F' select * from Cfg_ObjectVersionHistory where TYPE='F'; ...
true
a7aad3f2c3bf443faf4b123909272119e79e1a0b
SQL
lucasmunioz0/cursos
/1-Java/Java Web Services/Clase03/test.intraway.com-master/test.intraway.com-master/src/main/resources/data.sql
UTF-8
923
2.578125
3
[]
no_license
-- User insert into User values (10000, 'hsimpson@gmail.com', 'Homer', 'Simpson', 'qwerty', '+123123123', 'hsimpson', 'Active'); insert into User values (10001, 'msimpson@gmail.com', 'Marge', 'Simpson', 'qwerty', '+123123124', 'msimpson', 'Active'); insert into User values (10002, 'bsimpson@hotmail.com', 'Bart', 'Simp...
true
792924228c8bad10df5c4a5a43c785a083ee09b8
SQL
StevenGabule/Shop-V1
/db/shop (1).sql
UTF-8
18,225
2.734375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 23, 2016 at 12:10 PM -- Server version: 5.6.24 -- PHP Version: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
3444e728cccd8aef5638f39b96bd9492fd1a6b72
SQL
anthonyzakine/api-test
/partiel_silex.sql
UTF-8
18,287
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.2 -- https://www.phpmyadmin.net/ -- -- Client : localhost:3306 -- Généré le : Mer 22 Juin 2016 à 16:57 -- Version du serveur : 5.5.42 -- Version de PHP : 7.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE...
true
f4195ff8073b9ff0c0e06b37505f2362c5fae0ce
SQL
j7ng/CLFY_SA
/SA/Indexes/S_LEAD_SOURCE_LEADSRCE_NAME.sql
UTF-8
99
2.578125
3
[]
no_license
CREATE UNIQUE INDEX sa.s_lead_source_leadsrce_name ON sa.table_lead_source(source2campaign,s_name);
true
ef8768ff0d1a1dc7bab17b93815772171858f610
SQL
suraj20041995/Python_flask
/project/my_cart.sql
UTF-8
5,022
3.34375
3
[]
no_license
/* SQLyog Community v12.2.4 (32 bit) MySQL - 10.1.13-MariaDB : Database - my_cart ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN...
true
429e6c15db83f60d47d72a4d83c48b231668bc30
SQL
TekapoCart/TekapoCart
/sql/2019-05-20.sql
UTF-8
2,243
2.53125
3
[]
no_license
--- TC_VERSION 1.0.3 INSERT INTO `ps_hook` (`id_hook`, `name`, `title`, `description`, `position`, `sort`) VALUES (NULL, 'displayHomeAfter', '首頁 主內容下方滿版', '', '1', '21'); -- multi shop 特價商品 INSERT INTO `ps_meta_lang` (`id_meta`, `id_shop`, `id_lang`, `title`, `description`, `keywords`, `url_rewrite`) VALUES ('8', '2'...
true
abd1affc3bf57e234e9c909ba3c02698f78dc737
SQL
xiluhua/springBoot-06-data-jpa
/src/main/resources/jpa.sql
UTF-8
3,058
2.71875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 3308 Source Server Version : 50727 Source Host : localhost:3308 Source Database : jpa Target Server Type : MYSQL Target Server Version : 50727 File Encoding : 65001 Date: 2021-01-15 14:55:01 */ SET FOREIGN_KEY_CHECKS=0; -- ----------...
true
a4e036dd772da81a2c83b891815507fc94fbbc01
SQL
ASDAFF/kit-bitrix-packages
/kit/shs.parser/install/db/mysql/install_logs.sql
UTF-8
609
2.796875
3
[]
no_license
CREATE TABLE b_shs_parser_result ( ID int(11) NOT NULL auto_increment, PARSER_ID int(11) NULL, SETTINGS LONGTEXT NULL, START_LAST_TIME DATETIME NULL, END_LAST_TIME DATETIME NULL, STATUS int(11) NULL, PRIMARY KEY (ID) ); CREATE TABLE b_shs_parser_result_product ( I...
true
edc4ba984d5d50b4260667aa47b063966a58e29c
SQL
codeaid-dev/PHP_practice
/Exercise_database/database1_sqlite.sql
UTF-8
225
2.578125
3
[]
no_license
/* booksテーブル作成 */ CREATE TABLE books ( id INTEGER PRIMARY KEY AUTOINCREMENT, isbn VARCHAR(17) NOT NULL, name VARCHAR(255) NOT NULL, price INTEGER NOT NULL, page INTEGER NOT NULL, date TEXT NOT NULL );
true
4b545d7f0044f552bd90dc919512681942e64a94
SQL
mitto98/UNIGE-BD2
/sql/3.0_roles.sql
UTF-8
1,587
3.140625
3
[]
no_license
-- Parte D -- Allenatore semplice: puo interagire con pokemon_trainer e battles in scrittura, e con trainers, pokemons e trainer_gym in lettura -- Capopalestra: come trainer, ma può scrivere in trainer_gym -- Professore: può leggere tutto, scrivere in pokemons (nuova specie scoperta), trainers (nuovo allenatore regist...
true
303623984870885bb3c6ed885da5c409f0729b50
SQL
Dust09/less08
/3zapros.sql
UTF-8
965
3.9375
4
[]
no_license
--Определить кто больше поставил лайков (всего) - мужчины или женщины? SELECT SUM(CASE WHEN p.sex = 'f' THEN 1 ELSE 0 END), SUM(CASE WHEN p.sex='m' THEN 1 ELSE 0 END) FROM likes l LEFT JOIN profiles p ON l.user_id=p.user_id GROUP BY p.sex ORDER BY COUNT(l.id); -- Пусть задан некоторый пользователь. --Из в...
true
2e95b01c7347a90d0463043ba255e26d3e7a1f62
SQL
serhio-w02/JLNaloge
/jLesjak2017/baza/prijave.sql
UTF-8
7,562
3.0625
3
[ "BSD-2-Clause" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 11, 2017 at 11:24 PM -- Server version: 10.1.16-MariaDB -- PHP Version: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
558de6137e6084573ef240efe4ed551f5f381874
SQL
uvalib/deposit-reg-ws
/sql/depositrequest.sql
UTF-8
585
3.140625
3
[ "Apache-2.0" ]
permissive
-- drop the table if it exists DROP TABLE IF EXISTS depositrequest; -- and create the new one CREATE TABLE depositrequest( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, requester VARCHAR( 32 ) NOT NULL DEFAULT '', user VARCHAR( 32 ) NOT NULL DEFAULT '', department VARCHAR( 255 ) NOT NULL D...
true
2a079b9ecc704e6f877e134289939900effce3eb
SQL
alexand1r/SoftUni-Databases-Basics-MSSQL
/Exam Preparation/09. Exam Preparation/Exam - 1 March 2015/Exam - 1 March 2015.sql
WINDOWS-1252
1,260
3.3125
3
[]
no_license
--- Part I SQL Queries --- -- Problem 1. All Mountain Peaks -- Problem 2. Biggest Countries by Population -- Problem 3. Countries and Currency (Euro / Not Euro) -- Problem 4. Countries Holding 'A' 3 or More Times -- Problem 5. Peaks and Mountains ...
true
e221e3b970fcc070d8f31637df27b8605493cdb6
SQL
paulalcabasa/Oracle-SQL-Files
/AP-XLA-GL Invoices Query (Official).sql
UTF-8
8,755
3.421875
3
[]
no_license
select DISTINCT -- GL gjh.doc_sequence_value, gjh.posted_date, gjh.status, gjl.je_line_num, -- INVOICE aia.invoice_num, aia.doc_sequence_value ap_voucher, aia.invoice_amount, to_char(aia.invoice_date) invoice_date, to_char(aia.gl_date) invoice_gl_date, to_char(xah.gl_...
true
4c3ad09b20ea388ab1f6d91ffe40ff9026e3e707
SQL
mbeitchman/imdb-queries
/queries.sql
UTF-8
4,334
4.40625
4
[]
no_license
-- Marc Beitchman -- q1 13 rows select a.fname, a.lname from Actor a, Movie m, Casts c where m.name = 'Officer 444' and m.id = c.mid and a.id = c.pid; -- q2 113 rows select d.fname, d.lname, m.name, m.year from Genre g, Directors d, Movie_Directors md, Movie m where g.genre = 'Film-Noir' and m.year%4 = 0 ...
true
2aff0abeb9cfcefe0d294678347932e554f0b4c7
SQL
Nilianfei/Search-Street
/database/tb_person_info.sql
UTF-8
1,558
3.1875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : root Source Server Type : MySQL Source Server Version : 50723 Source Host : localhost:3306 Source Schema : search_street Target Server Type : MySQL Target Server Version : 50723 File Encoding : 65001 Date: 03/03/2019 22:...
true
5a3363558d9251e03610cb18053e38ebabadbc0a
SQL
SeanWangYS/WiseOwlHostel
/WiseOlwHostel_Lib/stock_of_rooms_insert.sql
UTF-8
4,010
2.578125
3
[]
no_license
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Author: Admin * Created: 2019/4/1 */ -- INSERT INTO `woh`.`stock_of_rooms` (`date`, `room_id`, `stock`) VALUES ('2019-06-15...
true
ceea2e809adcdf6b4d52a7be7af8b7ca1c222a5d
SQL
KarmaScripter/BudgetExecution
/data/database/sqlite/datamodels/UPDATE/CompareExternalUpdates.sql
UTF-8
1,764
3.421875
3
[ "MIT" ]
permissive
CREATE VIEW "CompareExternalUpdates" AS SELECT Allocations.PrcId, Allocations.AhCode, Allocations.BudgetLevel, Allocations.BFY, Allocations.FundName, Allocations.FundCode, Allocations.OrgCode, Allocations.AccountCode, Allocations.ActivityCode, Allocations.BocCode, Allocations.DivisionName, Allocations.RcCode, Alloca...
true
d5e99782621521167e05d3ff12d7fcdfd472f451
SQL
WillZWL/project
/database/change script/atom/20091116.sql
UTF-8
2,065
3.671875
4
[]
no_license
DROP TABLE IF EXISTS platform_courier; CREATE TABLE `platform_courier` ( `platform_id` varchar(4) NOT NULL, `courier_id` varchar(20) NOT NULL, `display_name` varchar(32) NOT NULL DEFAULT 'Standard', `platform_region_id` bigint(20) unsigned NOT NULL, `create_on` timestamp NOT NULL DEFAULT '0000-00-00 00:...
true
34159828101276269bcd0d48ec89eaeb418e36ad
SQL
xorb5693/KH
/DB/2020-03-10/TEST1.sql
UHC
6,489
4.15625
4
[]
no_license
CREATE TABLE MEMBER( MEMBER_ID VARCHAR2(20), MEMBER_PW VARCHAR2(20), MEMBER_NAME VARCHAR2(20), MEMBER_AGE NUMBER ); SELECT * FROM MEMBER; COMMENT ON COLUMN MEMBER.MEMBER_ID IS 'ȸ̵'; COMMENT ON COLUMN MEMBER.MEMBER_PW IS 'йȣ'; COMMENT ON COLUMN MEMBER.MEMBER_NAME IS '̸'; COMMENT ON COLUMN MEMBER.MEMBER...
true
32c8102b1a1aae3611ce75faf8c4c4ad16535596
SQL
zbigniewzolnierowicz/school-notes
/Klasa 4/systemy baz danych/Olejki/20191022 - 27.sql
UTF-8
235
3.8125
4
[]
no_license
SELECT COUNT(oz.IDOlejku) AS 'Ilość słodkich olejków' FROM olejki o LEFT JOIN olejkizapachy oz on o.IDOlejku = oz.IDOlejku LEFT JOIN zapachy z on oz.IDZapachu = z.IDZapachu GROUP BY Zapach HAVING Zapach = 'słodki';
true