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
99453f5ffdc11f96f3c50f1e63b58668bb78fd7c
SQL
rnkled/APS-04-Lanchonete-Online-em-Java
/banco.sql
UTF-8
4,922
3.359375
3
[]
no_license
CREATE DATABASE lanchonete ENCODING = 'UTF-8' TEMPLATE template0 --------------------------------------------- CREATE TABLE tb_funcionarios( id_funcionario SERIAL, nome VARCHAR(30) CONSTRAINT nn_tb_func_nome NOT NULL, sobrenome VARCHAR(30) CONSTRAINT nn_tb_func_sobrenome NOT NULL, usuario VARCHAR(20) CONSTRA...
true
291ff51abf9caf0365cf971782159462a525cf63
SQL
pdp10/db_lanwan
/lanwan_script/insert.sql
ISO-8859-1
100,888
2.65625
3
[ "MIT" ]
permissive
--insert.sql -- Basi di dati e sistemi informativi 2 -- Progetto Lan/Wan, A.A. 2004/2005 -- Gruppo: g013 -- Studente: Piero Dalle Pezze -- Matricola 486228-sin -- Contents: script SQL dei comandi DML per la popolazione del database. --stati insert into STATI(stato) values ('Funzionante'); insert into STATI(stat...
true
ae43adfcf158dfcc21dc6ac4bf4585d8b631cff8
SQL
PNNL-Comp-Mass-Spec/DBSchema_PgSQL_DMS
/dms/v_enzymes_list_report.sql
UTF-8
997
3.046875
3
[ "Apache-2.0" ]
permissive
-- -- Name: v_enzymes_list_report; Type: VIEW; Schema: public; Owner: d3l243 -- CREATE VIEW public.v_enzymes_list_report AS SELECT t_enzymes.enzyme_id, t_enzymes.enzyme_name, t_enzymes.description, t_enzymes.p1 AS left_cleave_residues, t_enzymes.p1_exception AS left_exception, t_enzymes....
true
9b38342c4abda1d51405bb930ad4a04ebda0cdff
SQL
djextensions/dj-league
/administrator/install/sqlupdates/1.0.0.sql
UTF-8
1,038
3.21875
3
[]
no_license
ALTER TABLE `#__djl_leagues` ADD `season_id` INT(11) NOT NULL DEFAULT 0 AFTER `id`, ADD `tournament_id` INT(11) NOT NULL DEFAULT 0 AFTER `id`; CREATE TABLE IF NOT EXISTS `#__djl_tournaments` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `alias` varchar(255) NOT NULL, `description` text,...
true
d701ce11d356288a93ca2f4d6725b877c6046327
SQL
s6fikass/BCD-UI
/Server/wellKnownBindingSets/bcd_log_pageperformance.sql
UTF-8
2,136
2.78125
3
[ "Apache-2.0" ]
permissive
/* Copyright 2010-2017 BusinessCode GmbH, Germany Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
true
359106d56c2b34119ac6aa167350a031f8b0ef3c
SQL
RyanXu0-0/textannotion
/src/main/resources/sql/doTask.sql
UTF-8
8,341
3.75
4
[]
no_license
-- ---------------------------- -- 做任务表 -- task -- ---------------------------- use textannotation; DROP TABLE IF EXISTS `d_task`; CREATE TABLE `d_task` ( `tkid` int(11) NOT NULL AUTO_INCREMENT COMMENT '做任务唯一标识ID', `user_id` int(11) DEFAULT NULL COMMENT '做任务的用户ID', `task_id` int(11) DEFAULT NULL COMMENT '任务ID', ...
true
40f5050437aa5cabc4b6fedab2189b28a304ea9c
SQL
SarahMyriam/Employee-Tracker
/db/Employee_Schema.sql
UTF-8
844
4
4
[]
no_license
-- Drops the favorite_db if it exists currently -- DROP DATABASE IF EXISTS EmployeeTracker_db; -- Creates the "favorite_db" database -- CREATE DATABASE EmployeeTracker_db ; USE EmployeeTracker_db; -- Make it so all of the following code will affect favorite_db -- -- Creates the table "favorite_foods" within favorite_...
true
793fd27b6f5b7194de37eb7b00ad9bf68f0d3132
SQL
sergionet17/codigoJava
/Movilidad/trunk/src/deploy/liquibase/migrations/baseline/tables/audiencia_comparendo.sql
UTF-8
1,196
3.296875
3
[]
no_license
--liquibase formatted sql --changeset converter:baseline dbms:mysql CREATE TABLE `audiencia_comparendo` ( `id` int(11) NOT NULL, `fecha` datetime NOT NULL, `abogado_id` varchar(36) NOT NULL, `comparendo_id` varchar(36) NOT NULL, `documento_id` varchar(36) NOT NULL, `fallo_id` int(11) NOT NULL, `tipo_id` ...
true
f1ca7c299fa8b8946ed5d3fcc938a4cc6868f971
SQL
gridl/advent-of-code
/2017/Day06/script.sql
UTF-8
1,663
4.09375
4
[ "MIT" ]
permissive
CREATE TABLE day06 (rownum serial, input text); /* The delimiter is just something other than TAB */ \COPY day06 (input) FROM 'input.txt' (DELIMITER ';') /* * PostgreSQL is not very good at arrays of arrays, so `seen` tracks the * textual representation. Eww. */ WITH RECURSIVE awale AS ( SELECT 1 AS steps, ...
true
3035a0155512403d7aa141af2a8c0e6ce7c3361a
SQL
ssong6735/sql_basic_study
/1. 예제 - sqld/7. JOIN 학습2.sql
UHC
5,620
3.875
4
[]
no_license
SELECT COUNT(*) FROM tb_emp A, tb_dept B, tb_emp_certi C; -- 3 ̺ -- INNER JOIN SELECT A.emp_no, A.emp_nm, A.addr, B.dept_cd, B.dept_nm, C.certi_cd FROM tb_emp A, tb_dept B, tb_emp_certi C WHERE A.dept_cd = B.dept_cd AND A.emp_no = C.emp_no AND (B.dept_nm = '' OR B.dept_nm = '') AND A.addr l...
true
b73011cfc1dbe36cfa4a4626676757fc7ad54f22
SQL
stickpro/php-jwt-auth
/api_db.sql
UTF-8
2,208
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Хост: localhost -- Время создания: Май 29 2019 г., 16:56 -- Версия сервера: 10.1.39-MariaDB -- Версия PHP: 7.1.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
87717548850b21091dd020c410f7a6612898e6cc
SQL
idelpivnitskiy/test-play
/conf/evolutions/default/2.sql
UTF-8
802
2.609375
3
[]
no_license
# --- Sample dataset # --- !Ups INSERT INTO employee (first_name, last_name, second_name, age, experience, description) VALUES ('John', 'Smith', '', 25, 7, 'Java developer'); INSERT INTO employee (first_name, last_name, second_name, age, experience, description) VALUES ('Mike', 'White', '', 31, 5, 'DB...
true
6574fbc0ad3ed699dc6ec05536a170585fe0c8c5
SQL
ramilyamar/Message_App
/src/main/resources/db/migration/V1__Add_subscriptions_table.sql
UTF-8
181
2.703125
3
[]
no_license
create table user_subscriptions ( channel_id integer not null references usr, subscriber_id integer not null references usr, primary key (channel_id, subscriber_id) )
true
e4321041a499e8d0a8d29394a975198db3fa19b7
SQL
DanielBernate/-660678-trimestre-5
/Mysql/Procedimientos/domiprovedor_proce.sql
UTF-8
703
2.578125
3
[]
no_license
-- procedimiento DELIMITER / create procedure tiendaenlinea.inser_domicprovedor(Proveedor_idProveedor varchar(20),Proveedor_tipoDeIdentificacion varchar(20), telefono varchar(20),direccion varchar(45),barrio varchar(45),localidad varchar(45),Municipio_idMunicipio varchar(4)) begin INSERT INTO tiendaenlinea.domicilio_p...
true
58247ed9cf80fa137baf79757958cf948c0779ff
SQL
sethsondenaa/MySQL
/MySQL_practice/lead_gen_business/5_leads_Jan1_to_Feb15_2011.sql
UTF-8
259
3.875
4
[]
no_license
SELECT domain_name, count(leads.leads_id), DATE_FORMAT(leads.registered_datetime, "%b %d, %Y") FROM sites JOIN leads ON sites.site_id = leads.site_id WHERE leads.registered_datetime BETWEEN "2011-01-01 00:00:00" AND "2011-02-15 11:59:59" GROUP BY domain_name
true
cce812b053550d436acfd2b602c719ee66f74917
SQL
kongyew/gpdb
/src/test/tinc/tincrepo/mpp/gpdb/tests/queries/basic/external_partition/sql/range.sql
UTF-8
1,078
3.375
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
-- -- @created 2015-07-11 12:00:00 -- @modified 2015-07-11 12:00:00 -- @tags external_partition -- @gpdiff true -- @description Tests for range partition --start_ignore drop table if exists pt_ext; CREATE TABLE pt_ext ( col1 int, col2 decimal, col3 text, col4 bool ) distributed by (col1) partition by ra...
true
9c0b64e846559b5431af4ee7e79fd8db5f6c0b97
SQL
phaneendra4u/SBA1
/eLoan.sql
UTF-8
2,991
3.359375
3
[]
no_license
-- MySQL Workbench Forward Engineering 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='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SU...
true
45b81448f56f2e8a1239ea6525ed72a2de3dbf6f
SQL
tbbr/tbbr-api
/migrations/0007_create_users_table.up.sql
UTF-8
738
3.765625
4
[]
no_license
CREATE TABLE users ( id integer NOT NULL, name text, email text NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone, deleted_at timestamp with time zone, external_id text, gender text, avatar_url text ); CREATE SEQUENCE users_id_seq START ...
true
dc1e9721f6da18cf16369db6a5c8c86b0297a09a
SQL
davidharris006/Pub-Crawl
/app/db/schema.sql
UTF-8
525
2.734375
3
[]
no_license
CREATE DATABASE pubcrawl_db; USE pubcrawl_db; CREATE TABLE `pubcrawl_db`.`beer` ( `idbeer` INT NOT NULL AUTO_INCREMENT, `abv` DECIMAL NOT NULL, `id` INT NOT NULL, `beer_name` VARCHAR(45) NOT NULL, `style` VARCHAR(45) NOT NULL, `brewery_id` VARCHAR(45) NOT NULL, `ounces` INT NOT NULL, PRIMARY KEY (`idb...
true
f963c23d406f1160995b02822d1cf7da39259d30
SQL
Krupal821/Database
/views/Track_smoking.sql
UTF-8
597
3.296875
3
[]
no_license
-- Designate Room Types with a standard rate, room description, and if smoking is allowed Create or replace view Designate_room as SELECT roomtype.RoomTypeRate as STANDARD_RATE,roomtype.RoomTypeDescription as Room_description,roomtype.SmokingPermission from rooms join roomtype on roomtype.RoomTypeId=rooms....
true
a09362387ad318e650ee84995dd8c5bd34d6f2d0
SQL
Gu-Youngfeng/EfficiencyMiner
/src/main/resources/projs/JSQL_parent/src/test/resources/net/sf/jsqlparser/test/oracle-tests/function07.sql
UTF-8
258
3.15625
3
[ "Apache-2.0" ]
permissive
select cust_gender, count(*) as cnt, round(avg(age)) as avg_age from mining_data_apply_v where prediction(dt_sh_clas_sample cost model using cust_marital_status, education, household_size) = 1 group by cust_gender order by cust_gender
true
8983bc5f90725ef0347245be257c07a86ce4e5b3
SQL
anangnovriadi/front-end-desa
/desa_digital.sql
UTF-8
8,805
2.796875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 11, 2019 at 10:56 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
fbafc9cc3e6e7dc43f8c225beb48c642b3e7c52c
SQL
vivekvidyarthi99/GranTrade
/HTML/database/database_create.sql
UTF-8
837
3.09375
3
[]
no_license
USE gt_database; CREATE TABLE IF NOT EXISTS slabs ( `id` int NOT NULL AUTO_INCREMENT, `slab_type` VARCHAR(30), `slab_title` VARCHAR(30), `slab_lot` VARCHAR(30), `slab_dimension` VARCHAR(10), `slab_thickness` VARCHAR(10), `slab_image` LONGBLOB, PRIMARY KEY (id) ); CREATE TABLE IF NOT EXISTS tiles ( ...
true
3075d96bfa4cad25b2e537ca90827d2728a5e887
SQL
bfzheng/todo-list-user-service
/src/main/resources/db/migration/V201809292317__create_table_user.sql
UTF-8
181
2.546875
3
[]
no_license
CREATE TABLE IF NOT EXISTS user ( id bigint(20) NOT NULL AUTO_INCREMENT, name varchar(40), password varchar(40), PRIMARY KEY (id) ) ENGINE = InnoDB DEFAULT CHARSET = utf8;
true
d88ec76f85438a8bbd43a87e9a52befc553bd7ee
SQL
radtek/abs3
/sql/mmfo/bars/ForeignKey/skrynka_menu.sql
UTF-8
3,700
3
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/Bars/ForeignKey/SKRYNKA_MENU.sql =========*** Run PROMPT ===================================================================================== PROMPT *** Create constrain...
true
588409cb533e85f1dd8fd5e1d5737ba4a56be363
SQL
momchilovv/SoftUni
/C# DB Fundamentals/C# Databases Basics/Functions and Stored Procedures/12.CalculatingInterest.sql
UTF-8
386
3.71875
4
[ "MIT" ]
permissive
CREATE PROC usp_CalculateFutureValueForAccount (@accountId INT, @interestRate FLOAT) AS BEGIN SELECT a.Id AS [Account Id], ah.FirstName AS [First Name], ah.LastName AS [Last Name], a.Balance, dbo.ufn_CalculateFutureValue(balance, @interestRate, 5) AS [Balance in 5 years] FROM AccountHolders AS ah...
true
7542ba41e2ca748e532f2220c10ed76213dd80d8
SQL
SuWenCheng/data-refill-center
/sql/credit.sql
UTF-8
627
2.96875
3
[]
no_license
CREATE TABLE `credit` ( `id` int NOT NULL AUTO_INCREMENT COMMENT '主键', `user_account_id` int NOT NULL COMMENT '用户账号id', `point` decimal(10,2) NOT NULL COMMENT '积分', `created_time` timestamp NOT NULL DEFAULT CURRENT_T...
true
ed296529d0862b9f50424e5fc302919cb5d0568b
SQL
alexfanjn/library
/library/library.sql
UTF-8
2,771
3.25
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50630 Source Host : localhost:3306 Source Database : library Target Server Type : MYSQL Target Server Version : 50630 File Encoding : 65001 Date: 2017-06-13 21:47:09 */ SET FOREIGN...
true
beffcbb03fa521542f2bf453eb80adcd803aa867
SQL
ProyectoHLC/baloncestoAdmin
/baloncesto.sql
UTF-8
4,951
3.09375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 05-03-2020 a las 21:42:20 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
2c5fe5d947f19654e77055a290a485bdb746e964
SQL
galaxyAbstractor/thesis
/test_db.sql
UTF-8
2,333
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- Värd: localhost -- Skapad: 19 apr 2014 kl 19:32 -- Serverversion: 5.6.12-log -- PHP-version: 5.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
f38e04adc705b6dbcb9a1df5198756e21d6be1ab
SQL
JulianMark/employee-osc-service
/src/main/resources/schema-h2.sql
UTF-8
2,157
3.578125
4
[]
no_license
CREATE TABLE EMPLOYEE_TYPES ( ID INT NOT NULL IDENTITY (1,1) PRIMARY KEY, TYPE_EMPLOYEE VARCHAR (20) ); CREATE TABLE OSC ( ID INT NOT NULL IDENTITY (1,1) PRIMARY KEY, DESCRIPTION VARCHAR (100) ); CREATE TABLE LOCATIONS ( ID INT NOT NULL IDENTITY (1,1) PRIMARY KEY, DESCRIPTION VARCHAR (30) ); CREATE TABLE CAMPAIGN_TY...
true
a4336dd11dafe422f2014e6a80bbe17ed87f540b
SQL
tuhra/dica
/dicaProcedure.sql
UTF-8
559
3.65625
4
[ "MIT" ]
permissive
call search("m"); DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `search`( IN query Varchar(100) ) BEGIN SELECT c.* FROM companies as c join company_product as cp on c.id = cp.company_id join products as p on p.id = cp.product_id join company_processing as cpr on cpr.company_id = c.id join processing...
true
6ee85b505787fed416b92f7dc6a2cc00f89536c1
SQL
edenolam/bilsoc
/sql/Procedures-stockees/apa2cons/V1_1__IND-111.sql
UTF-8
1,921
4.03125
4
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS apa2cons_ind111 $$ CREATE PROCEDURE apa2cons_ind111(idBilaSociCons INT, idColl INT, idEnqu INT) COMMENT '' LANGUAGE SQL NOT DETERMINISTIC CONTAINS SQL SQL SECURITY DEFINER BEGIN ### Création et remplissage de la table temporaire DROP TEMPORARY TABLE IF EXISTS temp_apa2cons_in...
true
c8d3114756615bd4e4ad93c195e8fe8b60e54dfa
SQL
DemoTovar5/database-exercises
/order_by_exercise.sql
UTF-8
1,150
4.0625
4
[]
no_license
SHOW DATABASES; USE employees; # Modify your first query to order by first name. SELECT * FROM employees WHERE first_name IN ('Irena', 'Vidya','Maya') ORDER BY first_name; SELECT * FROM employees WHERE last_name LIKE 'E%'; SELECT * FROM employees WHERE last_name LIKE '%q%'; # Update the query to order by first name...
true
42a04eefc083dc904392afbe6e2d54258870a79b
SQL
darrelnoronha/Air-Travel-Insurance-System
/Air-Travel-Insurance-System/Project/bagclaim.sql
UTF-8
2,215
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 25, 2019 at 03:26 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.0.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
5840774e943e0cb4909027ac07bbba10bb127434
SQL
DiegoSusviela/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/100-not_my_genres.sql
UTF-8
356
3.765625
4
[]
no_license
-- 3 first students in the Batch ID=3 -- because Batch 3 is the best! SELECT tv_genres.name FROM tv_genres WHERE tv_genres.id NOT IN ( SELECT tv_genres.id FROM tv_genres INNER JOIN tv_show_genres ON tv_genres.id = tv_show_genres.genre_id INNER JOIN tv_shows ON tv_show_genres.show_id = tv_shows.id WHERE tv_shows.title =...
true
77604cab2da291c407891b1b888f27dc1614fc6e
SQL
cdesmarais/WebDB-Test
/WebDB/StoredProcedures/Common/dbo.procExtractUserVIPStatusReportToBV.PRC
UTF-8
3,278
3.859375
4
[]
no_license
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[procExtractUserVIPStatusReportToBV]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[procExtractUserVIPStatusReportToBV] go Create procedure dbo.procExtractUserVIPStatusReportToBV as Declare @LastExtractedReportDate datetime, ...
true
d7ff039571d504bcacd82875876c76d646e26abe
SQL
chardw/subway
/sql/schema.sql
UTF-8
1,424
3.234375
3
[]
no_license
create type borough as enum ( 'Manhattan', 'Brooklyn', 'Queens', 'Bronx' ); drop table if exists stations cascade; create table stations ( code text primary key, alt text, name text, short text, line text, borough borough, complex text, x integer, y integer ); create type direction as enum ('N','S'); dr...
true
c57fed8b6226e44dfd957307fa393fb1762a6820
SQL
1ogica1/fullQuiver
/Database/fullquiver.sql
UTF-8
25,015
3.421875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 04, 2014 at 09:58 PM -- Server version: 5.6.20 -- PHP Version: 5.5.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
90f93f8ed58c5ba5b2d4216c4d33b051cf5d905f
SQL
filipeoliveirah/php-default-project
/res/sql/tables/tb_orderslogs.sql
UTF-8
482
3.25
3
[]
no_license
CREATE TABLE `tb_orderslogs` ( `idlog` int(11) NOT NULL AUTO_INCREMENT, `idorder` int(11) NOT NULL, `iduser` int(11) NOT NULL, `dtregister` timestamp NULL DEFAULT NULL, PRIMARY KEY (`idlog`), KEY `idorder` (`idorder`), KEY `iduser` (`iduser`), CONSTRAINT `tb_orderslogs_ibfk_1` FOREIGN KEY (`idorder`) RE...
true
fb76712a24c7b554f8b19b7062de377f1381a23b
SQL
Matiii347/Base-de-Datos-Sakila
/Curso Udemy 100 Ejercicios Practicos.sql
UTF-8
10,865
3.796875
4
[]
no_license
select * from sakila.actor; select actor_id,first_name,last_name,last_update from sakila.actor; select actor_id, first_name as Nombre, last_name as Apellido from sakila.actor; select distinct(store_id) from sakila.customer;/* Datos Unicos */ select distinct(customer_id) from sakila.payment; /* Order by */ select * f...
true
c4a5978018c0252f871e82731ff4345080c3efd1
SQL
lissa-sonoda/NodeJS_MySQL
/script_mysql/script_aula.sql
UTF-8
2,065
4.375
4
[ "MIT" ]
permissive
create database if not exists db_hospital; use db_hospital; create table if not exists tb_medico( crm int, nome varchar(100) not null, primary key(crm) ); create table if not exists tb_paciente( cpf bigint, nome varchar(100) not null, idade smallint not null, primary key(cpf) ); create table i...
true
56493e0d2e7e8affa9b7cdd37c612e3b48210b58
SQL
lubnin/java-projects
/holidays/sql/5. insert_neg_statuses.sql
UTF-8
2,409
3.171875
3
[]
no_license
-- Please, be sure that table 'employee' is EMPTY before running this script! --delete from employee; ALTER SEQUENCE seq_hol_period_neg_status_id RESTART WITH 1; commit; INSERT INTO public.holiday_period_neg_status (hol_period_neg_status_id,created,negotiation_status_type,status_description,status_name,updated) VALU...
true
f2b4a728818593b1ead7768d1e9c6282264262ad
SQL
ly164608001/sharding-db
/sharding-db/src/main/resources/une_cbill_20180101.sql
UTF-8
905
2.703125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 172.16.100.* Source Server Version : 80018 Source Host : localhost:3306 Source Database : db0 Target Server Type : MYSQL Target Server Version : 80018 File Encoding : 65001 Date: 2019-10-23 20:21:46 */ SET FOREIGN_KEY_CHECKS=0; -- --...
true
e22b3a1d44fffdee10e8de17521cb2863c10abe8
SQL
DruxaVoron/EasaprSqlQuerys
/sql/_log/log.que_list.sql
UTF-8
354
2.90625
3
[]
no_license
select top 1000 * from interface_buff.dbo.que_list where 1=1 --and gueueID in (17,13) -- and messageID in (36019) and aofID in (158617675) -- and messageStation = '88510' order by id desc --update aof_oper.dbo.aof set Status = 4 where AktOfNum in (142486849, 142487201 , 142488121) select * from arg.db...
true
d0b6a537eb48470c5c68e391777bb36d476d6d99
SQL
gdsoumya/hang-man-duel
/HangMan-Database.sql
UTF-8
2,016
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 29, 2017 at 08:20 AM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
01a488654e5abeb6edc23b9cc42e6b4c83b10fc2
SQL
XingXing2019/LeetCode
/Database/LeetCode 1211 - QueriesQualityAndPercentage/QueriesQualityAndPercentage_MySQL.sql
UTF-8
189
3.1875
3
[]
no_license
SELECT query_name, ROUND(AVG(rating / POSITION), 2) quality, ROUND(SUM(case when rating < 3 then 1 ELSE 0 END) / COUNT(*) * 100, 2) poor_query_percentage FROM queries GROUP BY query_name;
true
a18a2fe0ac28374966445098ae5505820485b80d
SQL
zzcontinent/CliffBase
/sqls/db_config.sql
UTF-8
3,304
3.15625
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50724 Source Host : localhost:3306 Source Schema : metadata Target Server Type : MySQL Target Server Version : 50724 File Encoding : 65001 Date:...
true
067fef36777e57ba63decc7d2c6e16c56f73436d
SQL
jakechadwell/database-exercises
/join_exercises.sql
UTF-8
1,131
4.375
4
[]
no_license
USE employees; SELECT CONCAT(e.first_name, ' ', e.last_name) AS Department_Manager, d.dept_name FROM employees as e JOIN dept_manager as dm ON dm.emp_no = e.emp_no JOIN departments as d ON d.dept_no = dm.dept_no; SELECT CONCAT(e.first_name, ' ', e.last_name) AS Department...
true
9426b41225b8b746ec12a570a44c4e70988a984b
SQL
sahilofficial671/Student-Management-with-Java-Swing
/lib/studentmanagement.sql
UTF-8
2,476
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 07, 2021 at 11:08 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.3.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
d09893682e91e7f7f39bf730ffd3681ee081715c
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day17/select1352.sql
UTF-8
178
2.65625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-16T13:52:00Z' AND timestamp<'2017-11-17T13:52:00Z' AND temperature>=24 AND temperature<=59
true
8ac84c977479042524ff63771b663ffda80c0c2f
SQL
runarberg/reykjavik-chautauqua
/init.sql
UTF-8
1,592
3.828125
4
[]
no_license
CREATE TABLE themes ( name varchar PRIMARY KEY, year integer, month integer ); CREATE TABLE posts ( id serial, theme varchar REFERENCES themes, title varchar NOT NULL, content varchar NOT NULL, author varchar, datetime timestamp, ...
true
6bb7d49631c4899276a154ceece1e7f0b10ebbc7
SQL
Leonardo-Antonio/golang-echo
/model/database/mysql.sql
UTF-8
379
2.515625
3
[]
no_license
DROP DATABASE BD_GO_ECHO; CREATE DATABASE BD_GO_ECHO; USE BD_GO_ECHO; CREATE TABLE tb_users( id INT AUTO_INCREMENT PRIMARY KEY NOT NULL, email VARCHAR(30) NOT NULL, pass VARCHAR(50) NOT NULL ); CREATE TABLE tb_courses( id INT AUTO_INCREMENT PRIMARY KEY NOT NULL, name VARCHAR(30) NOT NULL, acti...
true
9f733a8a03b50fb53e6a62d57e014cbbdc8c0923
SQL
huiwangui/springboot-dubbo-interface
/src/sql/springboot.sql
UTF-8
807
2.78125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50721 Source Host : localhost:3306 Source Database : springboot Target Server Type : MYSQL Target Server Version : 50721 File Encoding : 65001 Date: 2019-10-13 20:40:22 */ SET FOREIGN_KEY_CHECKS=...
true
1e0cbb4b74399e82f610d44ade60c4bd37adabbb
SQL
markkimsal/nifty-modules
/forum/setup/install.sql
UTF-8
3,505
3.4375
3
[ "Apache-2.0" ]
permissive
DROP TABLE IF EXISTS `cgn_forum`; CREATE TABLE `cgn_forum` ( `cgn_forum_id` integer (11) NOT NULL auto_increment, -- `name` varchar (255), -- `is_locked` tinyint (1), -- `is_visible` tinyint (1), -- `is_moderated` tinyint (1), -- `allow_uploads` tinyint (1), -- `description` varchar (255), ...
true
e1c2d0b8166a551821317e7e6f31c76e708ecf02
SQL
blackscorpionster/buneli
/buneli/bdd/Oracle/2.App_options.sql
UTF-8
867
2.90625
3
[]
no_license
CREATE OR REPLACE FUNCTION FN_APPOPTIONS ( pty_app BUNELI_APP.COD_APP%type, pty_lang BUNELI_LANGUAGES.COD_LANGUAGE%type ) RETURN BUNELI_TYPES.type_cursor IS ltc_return BUNELI_TYPES.type_cursor; BEGIN OPEN ltc_return FOR SELECT a.COD_APP, a.TXT_NAME, a.COD_STATE, a.DAT_BEGIN, a.DAT_END, ...
true
b94c24834cd36b936e1b3f2ecbce6190737162e9
SQL
roytuts/spring-jdbc
/spring-jdbc-preparedstatement-auto-generated-id/user.sql
UTF-8
657
2.921875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `roytuts`; USE `roytuts`; CREATE TABLE IF NOT EXISTS `user` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `phone` int...
true
6e054fbe45069e0b803e3b9ca126127d83a3837a
SQL
gouldju1/r2sql
/cosql/resources/database/flight_1/schema.sql
UTF-8
10,799
3.390625
3
[]
no_license
-- drop table flight cascade constraints; -- drop table aircraft cascade constraints; -- drop table employee cascade constraints; -- drop table certificate cascade constraints; create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departu...
true
1b2a4f1c480391811abe4fcc5a79ad7818c976fe
SQL
feastbeast/sidebar
/database/postGresSeed.sql
UTF-8
652
2.5625
3
[]
no_license
-- psql -U yogitasheth apateezside -f /Users/yogitasheth/desktop/feastbeastsidebar/sidebar/database/postGresSeed.sql CREATE DATABASE apateez IF NOT EXISTS; \CONNECT apateez; DROP TABLE IF EXISTS apateezside; CREATE TABLE apateezside ( "id" int, "name" text, "menu_url" text, "address" text, "locat...
true
a9394b83d18b02fd6ecb1f840ed1fd41cb5069a8
SQL
jeffveg/SQL_Scripts
/Check Resource Pool.sql
UTF-8
1,147
3.609375
4
[]
no_license
SELECT r.session_id, r.request_id as session_request_id, s.group_id,rg.name as pool_name, r.status, s.host_name, CASE WHEN s.login_name = s.original_login_name THEN s.login_name ELSE s.login_name + ' (' + s.original_login_name + ')' END as login_name, s.program_name, db_name(r.database_...
true
76d0e164e5184b6839b72745ab3716f4f3c8c6b1
SQL
cormacio100/googleMapsAPI_bootstrapped
/old/db/old/controller.sql
UTF-8
2,616
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 25, 2015 at 03:45 AM -- Server version: 5.5.20 -- PHP Version: 5.3.9 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
b6476d629e94e2fdcf826de40f2e687dead64091
SQL
giathurton/SQL-Workshops
/Thurton_Assignment#3.sql
UTF-8
5,408
3.8125
4
[]
no_license
CREATE DATABASE IF NOT EXISTS movie_tracker; USE movie_tracker; CREATE TABLE IF NOT EXISTS movies( movie_id INT AUTO_INCREMENT PRIMARY KEY, title varchar(200), release_date datetime, plot_description varchar(4000) ); CREATE TABLE IF NOT EXISTS actors( actor_id INT AUTO_INCREMENT PRIMARY KEY, first_name varchar(100),...
true
4e04cfa3a2c8d9f5e206a891afee09ab23b3b29e
SQL
massimiliano76/fit-journey
/database/data.sql
UTF-8
8,463
3.046875
3
[]
no_license
insert into "users" ("username", "hashedPassword") values ('demoUser', '$argon2i$v=19$m=4096,t=3,p=1$cvolV1H+iPIT2dVvqEFpYw$gBozwSKQBY+cJNdweEEmMzFXNdUS/Ovt1pfUha7cZVA'); insert into "muscleGroups" ("muscleName") values ('Arms'), ('Back'), ('Chest'), ('Core'), ('Legs'), ('Shoulders')...
true
6dad717e19adf4f030462e97df97b64a9e3c0599
SQL
DebugKing-GoGoGo/mysql
/queryuser/ngoss/table.sql
UTF-8
883
3.234375
3
[]
no_license
-- select * from information_schema.tables -- where TABLE_SCHEMA='ngoss' -- AND TABLE_NAME = 't_sys_mnguserinfo'; -- -- SELECT sum(DATA_LENGTH)+sum(INDEX_LENGTH) FROM information_schema.TABLES -- where TABLE_SCHEMA='ngoss'; -- 按字段名查表 SELECT * FROM information_schema.columns WHERE 1=1 -- and COLUMN_COMMENT like '...
true
be38ec3be83dceb49ba94ef4feaaca6f6d157aa8
SQL
weedkiller/angular-i18n
/StrataPortal/Communicator.DAL/SQL/notNeeded_/ExistingDBS_Only.DatabaseVersionScriptsRun_Insert.sql
UTF-8
6,445
3.375
3
[]
no_license
-- Note: This file was originally generated by Genie /**** Purpose: Creates ALL records in DatabaseVersionScriptsRun. i.e. Assumes the table is empty. This isn't really a script which would be added to the build. Notes: Script is created from existing records. Author: ...
true
88a3cb7a8cc79a78ba971d70b0e199c66670d855
SQL
tushitarc/DBMS---Learning-Management-System
/Database/DBMSProject/DBMSProject/dbo/Tables/TopicQuestionMapping.sql
UTF-8
261
2.546875
3
[]
no_license
create table TopicQuestionMapping(topic_id integer foreign key references Topic(id) ON DELETE CASCADE ON UPDATE CASCADE, question_id integer foreign key references Question(id) ON DELETE CASCADE ON UPDATE CASCADE );
true
d872472cf27bf9590497e174280fdee9793c0b0e
SQL
calliebensel/joins-solutions.sql
/joins-solution.sql
UTF-8
1,392
4.59375
5
[]
no_license
-- 1. Get all customers and their addresses. SELECT * FROM addresses JOIN customers ON addresses.customer_id = customers.id; -- 2. Get all orders and their line items. SELECT * FROM orders JOIN line_items ON orders.id = line_items.order_id; -- 3. Which warehouses have cheetos? SELECT warehouse.id, warehouse.warehouse...
true
2c261b711b952d5e443682da47fa0431d328a9b4
SQL
Vojkan-Cvijovic/PBP-Hotel
/scripts/triggers/AssignRoomToStaff.sql
UTF-8
585
3.875
4
[]
no_license
USE `mydb`; DELIMITER | CREATE DEFINER = CURRENT_USER TRIGGER `mydb`.`Assign_Room_To_Staff` BEFORE INSERT ON `DodeljenaSoba` FOR EACH ROW BEGIN SET NEW.idSobe = ( select s.id from Soba s where not exists(select * from DodeljenaSoba ds where ds.idSobe = s.id) and...
true
a9a1b1333ba56610f2e9a438117f23550721463b
SQL
13110992819/csw
/docs/schema/schema_base.sql
UTF-8
2,629
3.140625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 148 Source Server Version : 50545 Source Host : 121.43.101.148 Source Database : csw_std_base Target Server Version : 50545 File Encoding : utf-8 Date: 09/17/2016 15:07:43 PM */ SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; -- ---...
true
9b3b86a8e2e64a91e2abf5e45994c5ae3aefb859
SQL
waldheinz/mdb
/files/sql/create-table-file.sql
UTF-8
383
2.640625
3
[ "Apache-2.0" ]
permissive
CREATE TABLE file ( file_id INTEGER PRIMARY KEY AUTOINCREMENT , file_sha1 BINARY(20) , file_name TEXT NOT NULL UNIQUE , file_size INTEGER NOT NULL , file_mime TEXT NOT NULL , file_last_modified TIMESTAMP NOT NULL , file_add_ti...
true
cd7c8aeb481f0c57fb4010f4e11ee8b17a1acaac
SQL
singh1114/mikro-orm
/tests/mysql-schema.sql
UTF-8
4,965
3.578125
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
SET NAMES utf8; SET FOREIGN_KEY_CHECKS=0; DROP TABLE IF EXISTS `author2`; CREATE TABLE `author2` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `created_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), `updated_at` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), `name` varchar(255) NOT NULL, `em...
true
caf8c1882f39ec108365020e654480727401ebd2
SQL
gabrielepaternicsistemi/JacobHubetichette
/JacobHub/JacobHub/Resources/ArticolidaFile.sql
UTF-8
528
3.0625
3
[]
no_license
select ar_codart, ar_descr, bc_code, qta, isnull((select lc_prezzo from listini where lc_codart = ar_codart and lc_listino = 2 and lc_conto = 0),0) as prezzo, isnull((select so_scont1 from sconti where so_codart = ar_codart and so_conto = 0 and so_clscan = 2),0) as sconto1, isnull((select so_scont...
true
a9f8981894384525d41c9b71412f428cb84df76f
SQL
jamayfieldjr/iem
/database/upgrade/iem/11.sql
UTF-8
1,348
4.03125
4
[ "MIT" ]
permissive
-- Create the 2017 tables while we are messing around here create table hourly_2017( CONSTRAINT __hourly_2017_check CHECK(valid >= '2017-01-01 00:00+00'::timestamptz and valid < '2018-01-01 00:00+00'::timestamptz)) INHERITS (hourly); CREATE INDEX hourly_2017_idx on hourly_2017(station, network, valid); CR...
true
5d6913af52d377fa46f9c8191babb5e9a5c30b3b
SQL
SergeyKrivohatskiy/tiny_database
/testData/grammar/createIndex.sql
UTF-8
212
3.375
3
[ "MIT" ]
permissive
CREATE INDEX names_hash ON students(last_name, first_name) USING HASH; CREATE UNIQUE INDEX id_btree ON students(student_id ASC) USING BTREE; CREATE INDEX avg_point_btree ON students(avg_point DESC) USING BTREE;
true
b554ce0cfd80c5b23ab0260f44a0b2421fe36d0e
SQL
harumochi/checkout03
/models/INSERT_PC_history.sql
UTF-8
301
3.546875
4
[]
no_license
INSERT INTO users_extract01.postcode_history SELECT a.id, a.postcode, pageview_datetime FROM users_extract01.users_extract a LEFT JOIN users_extract01.pageviews_extract b ON a.id = b.id WHERE DATE(pageview_datetime) >= DATE_SUB(CURRENT_DATE, INTERVAL 1 DAY);
true
84449bc0a2e93d6058becdcae3eed26569009fa8
SQL
albertocampero/guiaautometrica
/vrumm_db.sql
UTF-8
5,048
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.1 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 31-01-2017 a las 21:12:38 -- Versión del servidor: 5.6.34 -- Versión de PHP: 7.1.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
true
29b0ffa18b523eb612417e1ace51c722636bad5f
SQL
wlh18-littlehiawatha/massive-sql
/db/seed.sql
UTF-8
684
3.609375
4
[]
no_license
create table users ( id serial primary key, email varchar(255), hash text ); create table user_info ( id serial primary key, first_name varchar(100), middle_name varchar(10), last_name varchar(100), phone_number varchar(50), user_id int unique references users(id) ); create table products ( id ser...
true
cfd2e5c1af2e5467edb63afd7806f961080e3af3
SQL
MayaraDantas/turma19java
/MYSQL/Lista1/exercicio2.sql
UTF-8
1,329
3.109375
3
[]
no_license
create database db_ecommerce ; use db_ecommerce; create table tb_produtos ( id bigint auto_increment, nome varchar (255) not null, descricao varchar (255) not null , valor float, quantidade int (3), primary key (id) ); insert into tb_produtos( nome, descricao, valor, quantidade) values("batom", "pigmento para os la...
true
f3ddd7ed495a4da3167d325f23e0f6d36b44753b
SQL
vr-f/sqlparser
/src/test/resources/com/github/vr_f/sqlparser/select/big.sql
UTF-8
1,056
4.25
4
[ "MIT" ]
permissive
SELECT Y.OrderMonth, Y.TotalOrders, Y.TotalAmount, Z.OrdCustFK, Z.CustCompany, Z.CustOrdTotal, Z.CustSalesTotal FROM (SELECT OrdDate, DATE_FORMAT(OrdDate,'%M %Y') AS OrderMonth, COUNT(OrderID) AS TotalOrders, SUM(OrdGrandTotal) AS TotalAmou...
true
ff642dddfcc6217fac5555f836f171e72984dc60
SQL
putriisabellaa/inventory
/db_medis.sql
UTF-8
7,671
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 13 Jun 2019 pada 08.51 -- Versi Server: 10.1.25-MariaDB -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
bbf7a6ecdcae849a607a0689d7e96f84fbbc0d3f
SQL
muddasani/poliana_schema
/tables/pacs/jobs/timestamped_pac_to_candidate_contributions.sql
UTF-8
4,669
3.734375
4
[]
no_license
#################################################################### # # Timestamped PAC to Candidate contributions # #################################################################### DROP TABLE IF EXISTS fec.pac_to_candidate_contributions; CREATE TABLE fec.pac_to_candidate_contributions ( cmte_id STRING CO...
true
0481d94eba291982c131d48041ed2e7daffb5e96
SQL
way2joy/kdd2015
/final output query.sql
UTF-8
3,586
3.15625
3
[]
no_license
CREATE TABLE final_output AS ( SELECT DISTINCT a.*, c.about, c.chapter, c.course, c.course_info, c.html, c.outlink, c.problem AS num_problems, c.sequential, c.static_tab, c.vertical, c.video AS num_videos, c.combinedopenended, c.p, d.navigate, d.access, d.problem, d.page_close, d.video, d.discussion, d.wiki, e.navigate...
true
be1c98c3227a0a32afcef543c9a8a297a059fdb1
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/02235_add_part_offset_virtual_column.sql
UTF-8
3,065
3.953125
4
[ "Apache-2.0", "BSL-1.0" ]
permissive
DROP TABLE IF EXISTS t_1; DROP TABLE IF EXISTS t_random_1; CREATE TABLE t_1 ( `order_0` UInt64, `ordinary_1` UInt32, `p_time` Date, `computed` ALIAS 'computed_' || cast(`p_time` AS String), `granule` MATERIALIZED cast(`order_0` / 0x2000 AS UInt64) % 3, INDEX `index_granule` `granule` TYPE minma...
true
919bbeafa3391078cce007204950200b4a7f0b8b
SQL
Meet-Turakhia/Laravel_ToDo
/todos.sql
UTF-8
5,570
3.125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 03, 2020 at 06:55 PM -- 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
a9aa36b15e87771fef8a50e0d1732691b2b1456b
SQL
jmflee/website
/db/schema.sql
UTF-8
6,534
3.453125
3
[ "MIT" ]
permissive
--- drop tables if there exist tables drop table if exists users; drop table if exists adminkeys; drop table if exists stats; drop table if exists user_stats; --- User table create table users ( username varchar(34) PRIMARY KEY NOT NULL UNIQUE, password varchar(50) NOT NULL, firstName varchar(50), lastName varcha...
true
cd4fe24e22f49d1ff63f0e112e40e3a615d0f86f
SQL
abdhins29/telaga-murni
/database/telaga-murni.sql
UTF-8
8,237
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 26 Okt 2019 pada 12.03 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
5984e32f5cd23662844cc2c4ccb903b9b47cf32d
SQL
aprofetb/dbviews
/Model/src/dbviews.sql
UTF-8
10,829
3.609375
4
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.5.16 - MySQL Community Server (GPL) -- Server OS: Win32 -- HeidiSQL Version: 8.0.0.4396 -- -------------------------------------------------------...
true
126d2d60d2809698cc06d4ded4c911f8a402c90f
SQL
nidhisankhesara/nids
/back.sql
UTF-8
22,652
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 05, 2017 at 06:21 PM -- Server version: 10.1.25-MariaDB -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
63d2fc2d368f452336c891ce8f642742e2d282b0
SQL
MBayuKhrisnaMurthi/umphs
/database/hms.sql
UTF-8
15,075
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 16, 2018 at 07:18 PM -- Server version: 10.1.25-MariaDB -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
79ac3eb071e78c7e677be732c30df9b86db69e26
SQL
kiands/Newebpay_donation
/donation.sql
UTF-8
1,579
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- 主机: 127.0.0.1:3306 -- 生成日期: 2020-04-02 12:30:26 -- 服务器版本: 5.7.26 -- PHP 版本: 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+08:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_S...
true
d2d5b6e2c70cd9ebca5d9561362cd88790ffd0a0
SQL
MarshallOfSound/forge-server
/db/structure.sql
UTF-8
769
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.10.1deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 29, 2016 at 11:22 AM -- Server version: 5.5.22 -- PHP Version: 5.3.10-1ubuntu3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `forge` -- CREATE DATABASE IF NOT EX...
true
63b1694d368fff5bad271ef4cb82934443f394a2
SQL
edigonzales/arp_npl_export_ai
/schema/arp_npl.sql
UTF-8
298,296
3.09375
3
[ "MIT" ]
permissive
CREATE SCHEMA IF NOT EXISTS arp_npl; CREATE SEQUENCE arp_npl.t_ili2db_seq;; -- SO_Nutzungsplanung_20171118.Rechtsvorschriften.Dokument CREATE TABLE arp_npl.rechtsvorschrften_dokument ( T_Id bigint PRIMARY KEY DEFAULT nextval('arp_npl.t_ili2db_seq') ,T_basket bigint NOT NULL ,T_datasetname varchar(200) NOT NULL ...
true
fbacf04e2b6e1f76d6038c31addb0888f534760f
SQL
ebentil/sargs
/assessment_db_190813.sql
UTF-8
17,031
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 19, 2013 at 10:07 AM -- Server version: 5.1.44 -- PHP Version: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
true
44b3304e9feaa9ea09d1af14ad6b43591e214e81
SQL
Dominique83/helpcenter
/sprinkles-schema.sql
UTF-8
2,966
3
3
[ "MIT" ]
permissive
-- MySQL dump 10.10 -- -- Host: localhost Database: sprinkles -- ------------------------------------------------------ -- Server version 5.0.27 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTIO...
true
bd760a49cd1e6ffc8c690de19a0f6fe3e5117702
SQL
apkretov/Queries
/Uploading 04.sql
UTF-8
518
3.6875
4
[]
no_license
USE Timber SELECT Total_Full_McpfeDb.UN_COUNTRY_CODE, Country_Codes.Country, YEAR, Total_Full_McpfeDb.DIMENSION_ID, Dimensions.TERM_NAME, Value FROM Total_Full_McpfeDb LEFT OUTER JOIN Dimensions ON Total_Full_McpfeDb.DIMENSION_ID = Dimensions.DIMENSION_ID LEFT OUTER JOIN (SELECT Country, Country_code FROM La...
true
71f295913ba877b13f68679e922cabbc040b4742
SQL
MahmoudSoliman922/online-shop
/backend/db/views/offers_v01.sql
UTF-8
412
3.515625
4
[]
no_license
SELECT d.name as departement_name, prod.name as product_name, prod.price as product_price, prom.code as promotion_code, prom.active as promotion_active, prom.discount as promotion_discount FROM products prod INNER JOIN departements d ON prod.departement_id = d.id INNER JOIN product_promotions prod_prom ON p...
true
1d0ea34d1c0d38385e79387144d137c3038823d6
SQL
SvetlovDmitriy/MyNet
/sql/mynetdb_select.sql
UTF-8
1,667
3.546875
4
[]
no_license
USE mynetdb; INSERT INTO `user` (login, password, role_id, cash) VALUES ("ivan", "ivan", 1, 0); INSERT INTO `user` (login, password) VALUES ("ivan", "ivan"); SET @p_id = 7; INSERT INTO service (user_id, product_id, category_id, status_id) VALUES(1, 1, (SELECT category_id FROM product WHERE @p_id = id), (SELECT id FROM...
true
cec706a7d0fe94eb877451408e6a8da13839d6e1
SQL
salehseu/Control-Panel-for-Six-Motors
/robot.sql
UTF-8
2,691
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 27, 2021 at 03:35 AM -- Server version: 10.4.19-MariaDB -- PHP Version: 8.0.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
d0eee9d5f234521cc7ec8b253c8d5f9d59260d94
SQL
romulovieira777/Curso_Mysql
/Aula_06.sql
UTF-8
350
3.21875
3
[]
no_license
/* Escolhendo um Banco de Dados */ USE db_biblioteca; /* Selecionando Dados da Tabela */ SELECT * FROM tbl_livro ORDER BY Nome_Livro ASC; SELECT * FROM tbl_livro ORDER BY Nome_Livro DESC; SELECT Nome_Livro, ID_Editora FROM tbl_livro ORDER BY ID_editora; SELECT Nome_Livro, Preco_Livro FROM tbl_li...
true
375b56948be5a5368393d5f23ca0ec32071a3886
SQL
kowalewskitomasz/MSSQL_Database_Project
/select7.sql
WINDOWS-1250
308
3.421875
3
[]
no_license
--ile byo wizyt w danej poradni i przy ilu z nich wydano diagnoze SELECT Rodzaj, COUNT(Rodzaj) as ilosc_wizyt, COUNT(Diagnoza.Id) as ilosc_diagnoz FROM Wizyty JOIN Poradnie ON Wizyty.id_poradni=Poradnie.Id LEFT JOIN Diagnoza ON Wizyty.id = Diagnoza.id_wizyt GROUP BY Rodzaj ORDER BY ilosc_wizyt DESC
true