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
2502fba145ff7354d0b622d9d5d326397f7bf4a1
SQL
shohidulhaque/Financial-Transfer-Rest-API-Demo
/src/main/resources/demo.sql
UTF-8
2,049
3.71875
4
[]
no_license
--This script is used for unit test cases, DO NOT CHANGE! --SET REFERENTIAL_INTEGRITY FALSE; DROP TABLE IF EXISTS AccountHolder; CREATE TABLE AccountHolder ( Id LONG PRIMARY KEY AUTO_INCREMENT NOT NULL, FirstName VARCHAR(30) NOT NULL, LastName VARCHAR(30) NOT NULL, AccountHolderId VARCHAR(30) NOT NULL ); CR...
true
7ab214d422f438684b93648fc9f28710fc075def
SQL
tiffmaelite/hotel-precheck
/src/Database/postgresql/1-dbCrea-TraineesMain-pgSQL.sql
UTF-8
521
2.796875
3
[]
no_license
CREATE TABLE TRAINEES ( ID SERIAL, LOGIN VARCHAR(20) NOT NULL, ENCRYPTEDPASS VARCHAR(255) NOT NULL, ISACTIVATED BOOLEAN DEFAULT '1' NOT NULL, CONSTRAINT PK_TRAINEES_ID PRIMARY KEY (ID), CONSTRAINT UQ_TRAINEES_LOGIN UNIQUE (LOGIN) ) WITH (autovacuum_enabled = 'true', autovacuum_vacuum_threshold = 5); --supp...
true
f3eb380e52890dcc6a109cb197b3691ebc811933
SQL
Nicolazz92/sql-ex
/sql_learn_pg/83.sql
UTF-8
1,214
3.9375
4
[]
no_license
-- Определить названия всех кораблей из таблицы Ships, которые удовлетворяют, по крайней мере, комбинации любых четырёх критериев из следующего списка: -- numGuns = 8 -- bore = 15 -- displacement = 32000 -- type = bb -- launched = 1915 -- class=Kongo -- country=USA with name_conditions as (select name, ...
true
1a7d4300160a5cea80205b1a346d50b041c311c2
SQL
nesvila2017/ParqueoAppUT
/Parqueo.sql
UTF-8
7,444
3.15625
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- 11/23/17 17:46:31 -- Model: New Model Version: 1.0 -- 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='TRADITION...
true
c4ae0807d68b9cbd38b0d0f40fb2235d44714512
SQL
HenriqueMDC/Exercicios-BancoDeDados
/Venda de carros.sql
UTF-8
1,493
3.71875
4
[]
no_license
CREATE TABLE pessoas( id INT IDENTITY(1,1), nome VARCHAR(200), cpf VARCHAR(15) PRIMARY KEY(id) ); CREATE TABLE carros( id INT IDENTITY(1,1), id_pessoa INT, marca VARCHAR(150) NOT NULL, modelo VARCHAR(150) NOT NULL, ano_lancamento INT NOT NULL, ano_fabricacao INT NOT NULL, motor VARCHAR(1...
true
3a01cbacb6860f7603905bbbac346c655359a8f8
SQL
EpistemikPython/chadwick
/sql/lookup_team_name.sql
UTF-8
1,527
3.140625
3
[]
no_license
/* SQLyog Community Edition- MySQL GUI v8.15 Beta1 MySQL - 5.1.28-rc-community : Database - retrosheet ********************************************************************* */ USE retrosheet; /*Table structure for table 'lkup_id_park' */ DROP TABLE IF EXISTS 'lkup_id_park'; CREATE TABLE 'lkup_id_park' ( 'VALUE_CD'...
true
57163f1a185f7e2d3a8692a3d381584147cbdbd6
SQL
adricardenas7890/Debunking-Vaccine-Adverse-Events
/simple-queries.sql
UTF-8
6,625
3.703125
4
[]
no_license
--VACCINES QUERIES --Milestone #2 --vaccines2006.csv --Organon Teknika seemed to produce many TB vaccines. This query confirmed they only produced TB vaccines in 2006. select * from dataset1.vaccine2006 where UPPER(vax_manu) = 'ORGANON-TEKNIKA' order by vax_type --vaccines2007.csv --Sanofi Pasteur had a good year in...
true
0d7ade41ff5429eae60af9ca93c065d182ea5658
SQL
ufbmi/ccda
/sql/20150715/create_reportFormsAndSectionsByProjectsId_proc.sql
UTF-8
829
4.15625
4
[ "Apache-2.0" ]
permissive
USE `ccdaa`; DROP procedure IF EXISTS `reportFormsAndSectionsByProjectsId`; DELIMITER $$ USE `ccdaa`$$ CREATE DEFINER=`ccdaa`@`localhost` PROCEDURE `reportFormsAndSectionsByProjectsId`(IN `deleted_at` text, IN `languages_id` bigint, IN `object_id` bigint) BEGIN SELECT pt.title as form_title, pt_child.title as...
true
8d7b72fd2e1e8853b0b6670cd3bd717fa11f8816
SQL
swarm64/s64da-benchmark-toolkit
/benchmarks/htap/stats_schema.sql
UTF-8
542
3.328125
3
[ "MIT" ]
permissive
CREATE TABLE oltp_stats( id UUID , ts TIMESTAMP NOT NULL , current_ok_rate INT NOT NULL , current_err_rate INT NOT NULL ); ALTER TABLE oltp_stats ADD PRIMARY KEY(id, ts); CREATE INDEX oltp_stats_ts_idx ON oltp_stats USING brin(ts); CREATE TABLE olap_stats( id UUID , ts TIMESTAMP NOT NULL , worker_id...
true
a3600386efee2f2145e4640f328acc2ceb5608be
SQL
ufzc3mj8/cas_nc_enterprise_controller
/20_DDL_EC_PSM_ASSET.sql
UTF-8
3,330
3.359375
3
[]
no_license
CREATE TABLE "PS"."EC_PSM_ASSETFOLDER" ( "ID" NUMBER(19,0) NOT NULL ENABLE, "NAME" VARCHAR2(255 CHAR) NOT NULL ENABLE, "PARENTASSETFOLDER_ID" NUMBER(19,0), "LASTMODIFIED_BY" VARCHAR2(64 CHAR) NOT NULL ENABLE, "LASTMODIFIED_TS" TIMESTAMP (0) NOT NULL ENABLE, "CREATED_BY" VARCHAR2(64 CHAR) NOT NULL ENABLE, ...
true
252cb7db95324b1ddf71886acb520a4d980edf9d
SQL
ArionDeno/Grafos_e_DB_advan
/DB_ADV/banco_padaria.sql
ISO-8859-13
1,932
3.484375
3
[]
no_license
/* estudo de banco de dados */ CREATE DATABASE IF NOT EXISTS Padaria; Use Padaria; /* CRia tabela produto */ CREATE TABLE Produto ( Cod_produto INT NOT NULL PRIMARY KEY AUTOINCREMENT, nome VARCHAR(50), desc VARCHAR(80), tipo VARCHAR(10), preco_prod DECIMAL(10,2), data_compra DATE ); /*Cr...
true
4ddaf804cd88ff870b1b8959924eecd4477c18f1
SQL
s-tamiya/spring-secuity-auth-ex
/spring-secuity-auth-ex/src/main/resources/scripts/sql/create_memo_table.sql
UTF-8
252
2.765625
3
[]
no_license
CREATE TABLE IF NOT EXISTS memo ( id BIGINT AUTO_INCREMENT, title VARCHAR(255) NOT NULL, description TEXT NOT NULL, done BOOLEAN NOT NULL DEFAULT FALSE, updated TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), PRIMARY KEY (id) )
true
a313f43a5a95d5b468adfc41fec688e723cb8750
SQL
wislanlamounier/vekttor
/__desenvolvedor/cep.sql
UTF-8
770,116
2.734375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.10deb2 -- http://www.phpmyadmin.net -- -- Servidor: 187.45.196.182 -- Tempo de Geração: Mar 29, 2012 as 10:52 AM -- Versão do Servidor: 5.1.54 -- Versão do PHP: 5.3.3-7+squeeze8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT *...
true
ce8ab2ea2951022e961c3ca727911545ee97799f
SQL
Roseau/SpringBoot-aplikasiBPR
/src/main/resources/db/migration/V0_0_8__CreateRealtionsExtend.sql
UTF-8
615
2.5625
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: St0rm * Created: Feb 9, 2018 */ CREATE SCHEMA nasabah; CREATE TABLE nasabah.data_nasabah ( tipe_nasabah CHARAC...
true
8da610592b6ef428019a1e1db88467f0ff2cd8e7
SQL
holderms/Serpens-Capstone-Fall-2018
/admins/report_queries.sql
UTF-8
3,480
4.375
4
[]
no_license
#Get all USERS (ADMINS + NON-ADMINS) select * from users; #Get all ADMINS select * from users where isAdmin = 1; #Get all NON-ADMINS select * from users where isAdmin = 0; #Get both awards & user-awards tables select * from `awards` left join `user-awards` on awards.award_id = `user-awards`.award_id; #USERS US...
true
00d3ca79d609aa076ba2863b4e145b705bb18ee6
SQL
wahyujati14/ci4crud
/sql.sql
UTF-8
1,536
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 10, 2021 at 03:01 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.3.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; -- -- Database: `ci4crud` -- -- ----...
true
2e0e4a00fcaca98d034c917888edc802472ffba8
SQL
altoid/hackerrank
/sql/contest_leaderboard/q.sql
UTF-8
394
4.21875
4
[]
no_license
\W use hackerrank; select h.hacker_id, `name`, total from hackers h inner join ( select hacker_id, sum(max_score) total from ( select hacker_id, challenge_id, max(score) max_score from submissions group by hacker_id, challenge_id order by hacker_id, challenge_id ) max_scores_by_challenge group by hacker_id ) th on h....
true
6653344ae729aa34862c404b3b8386cabdb7f31b
SQL
ashrafshovo/mamaskitchen
/mamaskitchen.sql
UTF-8
27,720
3.03125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.2.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Sep 02, 2022 at 06:42 PM -- Server version: 5.7.33 -- PHP Version: 8.0.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
true
440d6b5cd1f80758bd5606265c0bd07e4a8abfd4
SQL
xxxiangyi/Leetcode_Database
/1141_User_Activity_for_the_Past_30_Days_I.sql
UTF-8
167
3.328125
3
[]
no_license
SELECT activity_date AS 'day', COUNT(DISTINCT user_id) AS 'active_users' FROM Activity WHERE activity_date BETWEEN '2019-06-28' AND '2019-07-27' GROUP BY activity_date
true
33dbf4129465007be18bcfd615e21c357207a240
SQL
zitec/CodePaxCLI
/app/db/db_versions_sqlsrv.sql
UTF-8
370
2.953125
3
[]
no_license
IF (EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'z_db_versions')) DROP TABLE z_db_versions; CREATE TABLE z_db_versions ( id smallint NOT NULL IDENTITY(1,1), major TINYINT NOT NULL, minor TINYINT NOT NULL, point TINYINT NOT NULL, script_type TINYINT NOT NULL DEFAULT 0, date_added DATETIME N...
true
38036a0f52de34c9348bc40c8cfbe5d84ec87b72
SQL
drelocatelli/chat-php-ajax
/sql/comentarios.sql
UTF-8
1,493
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Tempo de geração: 07/05/2021 às 04:48 -- Versão do servidor: 10.4.18-MariaDB -- Versão do PHP: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
true
cac9682adbd60631d485e879cc0a56a00fbcbf21
SQL
brnunn00/burgerLogger
/db/schema.sql
UTF-8
570
3.390625
3
[]
no_license
/* This file is intended to help developers get their SQL Databases setup correctly. It is important since other developers will be unlikely to have the same database or tables setup already. */ /* Create and use the starwars db */ DROP DATABASE IF EXISTS `burgers_db`; CREATE DATABASE `burgers_db`; USE `burgers_db`; ...
true
7ccaf4b4d556823eb09b9a55eee515d4f5ba08e8
SQL
JermeySen/lyf_2021
/dm_bigscreen/schema/product_inventory_bigscreen.sql
UTF-8
2,361
3.3125
3
[]
no_license
drop table dm.product_inventory_bigscreen; create table dm.product_inventory_bigscreen ( date_key int comment '日期yyyyMMdd' ,total_inventory_amount decimal(20,6) comment '库存总金额' ,shop_inventory_amount decimal(20,6) comment '门店库存总金额' ,warehouse_inventory_amount decimal(20,6) ...
true
e9ee3ba9117381195637a4d432622db422e395b1
SQL
budirec/SimpleWeb
/db.sql
UTF-8
8,324
3.1875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.2.12deb2+deb8u1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 17, 2015 at 08:20 PM -- Server version: 5.5.46-0+deb8u1 -- PHP Version: 5.6.14-0+deb8u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
f6cf73772e276ff8e03fae5981b2214ef17fd85d
SQL
ferdousanam/Pizza-Shop
/DATABASE/db_pizza.sql
UTF-8
4,073
3.328125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 20, 2019 at 12:00 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
9e3ddb557da77f77153273527b42165678d30c62
SQL
SuperCapra/epjp
/scripts/oracle/s53exercize.sql
UTF-8
1,244
3.90625
4
[]
no_license
select max(salary) as Maximum from employees; select min(salary) as Minimum from employees; select sum(salary) as Sum from employees; select avg(salary) as Average from employees; select job_id, max(salary) as Maximum from employees group by job_id; select job_id, min(salary) as Minimum from e...
true
d68e157c787abaa4ba5513070445e87c7e6b8dea
SQL
nsethi17/Railway-System-Database
/RailwaySystem.sql
UTF-8
9,998
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Dec 16, 2019 at 09:50 PM -- Server version: 5.7.25 -- PHP Version: 7.1.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
f19acc366f0aea9d2d39872793d201e69ec35954
SQL
khajehosseini/placement
/placement(3).sql
UTF-8
58,108
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 12, 2014 at 05:15 AM -- Server version: 5.6.12-log -- PHP Version: 5.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
b389264de798dd356f86a162e84b47f76383cf01
SQL
Luigi-PastorePica/w4111-Databases
/HW_Assignments/HW2F19_Template/SQL_Tests/Part3(HW2_TEMPLATE.sql)Tests.sql
UTF-8
7,116
4.375
4
[]
no_license
select * from johns; #select * from collegeplaying #where schoolID like 'fordham%'; /*Q2*/ DROP TABLE IF EXISTS JOHNS; CREATE Table JOHNS as SELECT DISTINCT nameFirst, nameLast, concat(nameFirst, ' ', nameLast) AS nameFull, people.playerID, birthState FROM people INNER JOIN CollegePlaying ON people.playerID = College...
true
72120376dd63170521a666034152af30822c6574
SQL
icommstudentmedia/icomm_equipments
/script/equip_fac_db_mysql.sql
UTF-8
3,137
3.671875
4
[]
no_license
-- I~Comm - Equipments and Facilities -- Description: -- Script to populate the database -- Can be used to reset the database also -- Author: -- Isaac Andrade (isaac.nic@gmail.com) -- Log the scritp output TEE /Applications/MAMP/htdocs/icomm-bootstrap/icomm_equipments/script/equip_facilities_log.txt -- ------...
true
cbd07eb5ac28ab2e8fca1250e77e3975f63ec894
SQL
NathanDSimpson/wanderlist-2.0
/db/register.sql
UTF-8
206
2.796875
3
[]
no_license
insert into users (firstname, lastname, email, hashed_password) values ( ${firstname}, ${lastname}, ${email}, ${hashed_password} ); select user_id from users where email = ${email};
true
d4b33d42bbc8099175bb733996f608b4651daf6a
SQL
amun-re/HSW_PROJ1
/doc/hswproj1_db.sql
UTF-8
5,948
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Erstellungszeit: 08. Mai 2017 um 13:00 -- Server-Version: 10.1.21-MariaDB -- PHP-Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_C...
true
c97d8e5fc268327ed4f0dbd9047fc696d4078c42
SQL
commit-live-students/sql-resources
/sql scripts/import data.sql
UTF-8
2,194
3.328125
3
[]
no_license
LOAD DATA LOCAL INFILE "C:\\ProgramData\\MySQL\\MySQL Server 5.7\\Uploads\\Categories.csv" INTO TABLE greyatom.Categories FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\r\n' IGNORE 1 ROWS; LOAD DATA LOCAL INFILE "C:\\ProgramData\\MySQL\\MySQL Server 5.7\\Uploads\\Customers.csv" INTO TABLE greyatom....
true
aee860551486ce7f875ff965828585098089f3d1
SQL
josemdelvalle/Project2
/sql_scripts/Script-7.sql
UTF-8
1,650
3.75
4
[]
no_license
drop table user_credentials ; create table user_credentials( user_id serial primary key not null, username varchar(50) unique not null, password_ varchar(50) not null, customer_id serial REFERENCES customers(customer_id) ON DELETE cascade ); drop table customers ; create table customers( customer_id ...
true
9d0d3cc6c9629f55fa659524a0b252b6412ed19e
SQL
vijaydairyf/TimelyFish
/CFDataStore/stage/Views/stage.vw_RemovalEvent.sql
UTF-8
1,181
3.875
4
[]
no_license
CREATE VIEW stage.vw_RemovalEvent AS SELECT RemovalEventKey = isnull( re.RemovalEventKey, 0 ) , FarmAnimalKey = fa.FarmAnimalKey , EventDateKey = CAST( CONVERT( varchar(08), ev.eventdate, 112 ) AS INT ) , RemovalTypeKey = CASE WHEN ev.destroyed > 0 THEN euth.LookupCodesKey ELSE death...
true
6e33728f56a501ad0756c94280e5f990a4a3dc6a
SQL
ClaireChoi/authority_Test
/authority/src/org/scit/dao/authority_query.sql
UTF-8
1,356
3.484375
3
[]
no_license
--회원정보 테이블(테이블 명:seschool) CREATE TABLE seschool( userid varchar2(30) primary key, --회원아이디 userpassword varchar2(30) not null, --비밀번호 username varchar2(50) not null, --이름 sex varchar2(20) not null, --성별 email varchar2(100) not null, --이메일 birth date not null, --생년월일 phone varchar2(100) not null, -- 전화번호 ...
true
5b5591b023794f53bb1f38bda9beef7d5baee237
SQL
phasic/project
/BedrijfNV/creatie.sql
UTF-8
2,143
3.515625
4
[]
no_license
DROP TABLE Onkosten PURGE; DROP TABLE Kredieten PURGE; DROP TABLE Users PURGE; CREATE TABLE Users( functie varchar2(50), usernr int, baasnr int, paswoord varchar2(50), PRIMARY KEY (usernr), FOREIGN KEY (baasnr) REFERENCES Users(usernr), CONSTRAINT chk_functie CHECK (functie IN ('werknemer...
true
af87e43584bd49193ffbaddb69c63ce73e4ba29b
SQL
15131066253/ElasticSearchHouse
/src/main/resources/db/role.sql
UTF-8
1,270
3.265625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : mysql Source Server Version : 50721 Source Host : localhost:3306 Source Database : house Target Server Type : MYSQL Target Server Version : 50721 File Encoding : 65001 Date: 2018-06-22 21:11:20 */ SET FOREIGN_KEY_CHECKS=0; -- -------...
true
3e844641706f3ada6908895c785358bc85c2d514
SQL
lkhalid0095/WebApplications
/Lab#10/mySQLfile.sql
UTF-8
1,188
4.5
4
[]
no_license
-- Lubna Khalid Lab#10 /* Tutorial #1, we use the WHERE clause to display the population in the specific country */ SELECT population FROM world WHERE name = 'Germany' /* Uses IN to check the population of multiple countries from the list provided.*/ SELECT name, population FROM world WHERE name IN ('Sweden', '...
true
15798b83664f0b0deffd1d40352006e2bbd1cad2
SQL
milindhg/NewspaperApp
/DatabaseScript/BonusDB.sql
UTF-8
6,172
2.953125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `bonusdb` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `bonusdb`; -- MySQL dump 10.13 Distrib 5.6.17, for Win32 (x86) -- -- Host: localhost Database: bonusdb -- ------------------------------------------------------ -- Server version 5.6.23-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
true
163c21454ec3aac66c710cc51e7dcf8570a76667
SQL
christianadianto/indo-gamer-mall
/indogamermall.sql
UTF-8
9,446
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 03, 2019 at 02:20 PM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
21d50b8b590c27b090ccebf2a1ad131c0a8a7ede
SQL
MAortize/ADN_Autocinema
/src/main/resources/db/migration/DDL/V1.0__schema.sql
UTF-8
653
3.1875
3
[]
no_license
create table usuarios ( id_usuario int(11) not null auto_increment, nombre varchar(100) not null, correo varchar(100) not null, tipo_carro varchar(100) not null, placa varchar(100) not null, primary key (id_usuario) ); create table reservas ( id_reserva int(11) not null auto_increment, codigo varchar(15) not n...
true
104e096f1e4620c6837691fb57a188608a60404c
SQL
mflood/s3_music_player
/app/migrate.sql
UTF-8
1,002
3.125
3
[]
no_license
set search_path='music'; drop table if exists music.test_table; drop table if exists music.profile; drop schema if exists music; create schema music; create table music.song ( song_id serial not null primary key, title text not null ); insert into song (title) values ('test'); insert into song (title) val...
true
1fa3fed965ed1b1c2c47dd4335926d4d06e81ae1
SQL
megs-rs/analfiles
/search-dups.sql
UTF-8
167
3.3125
3
[]
no_license
select * from ( select data, tamanho, md5sum, count(*) as total from arquivos group by data, tamanho, md5sum ) a where a.total > 1 order by total desc, tamanho desc
true
0045d94b2854971055b8272e4829df3a58769015
SQL
Thrackerzood/ktpd
/login.sql
UTF-8
3,926
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Мар 19 2021 г., 18:05 -- Версия сервера: 8.0.12 -- Версия PHP: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
ab52b9cd232a4f1085f072b4a510d044815e3978
SQL
kumaresankandasamy/corejava
/week 7 Assignment 1/DDL and DML queries.sql
UTF-8
1,740
3.328125
3
[]
no_license
create database twitter; use twitter; show databases; use twitter; create table if not exists user( id int, name varchar(10) ); insert into user values(1,'ram'); create table if not exists user_tweet( user_id int, tweet varchar(100)); insert into user_tweet values(10,'first tweet'); create table if not exists user_post...
true
50ac11c441d588c735380edbfcc2e2972f13375a
SQL
gbelote/eventsar
/conf/db/t_eventdetail.sql
UTF-8
282
3.125
3
[]
no_license
DROP TABLE IF EXISTS t_eventdetail; CREATE TABLE t_eventdetail ( id varchar(36) NOT NULL PRIMARY KEY, -- GUID eventid varchar(36) NOT NULL, name varchar(255) NOT NULL, value varchar(1023), INDEX (eventid(8)), FOREIGN KEY (eventid) REFERENCES t_event (id) );
true
2485f48a231ac1609ed0b9c66277286ffc98cff6
SQL
NtivaProdM/ConnectWiseAutomateSQLqueries
/GetDatabaseSizeAndRows.sql
UTF-8
343
3.453125
3
[]
no_license
SELECT table_schema "Database Name", SUM(data_length+index_length)/1024/1024 "Database Size (MB)" FROM information_schema.TABLES GROUP BY table_schema; SELECT table_name "Table Name", table_rows "Rows Count", ROUND(((data_length + index_length)/1024/1024),2) "Table Size (MB)" FROM information_schema.TABLES WHERE tabl...
true
3f18aa6a53215624eba98c5cc64e7da2ecb6bf4b
SQL
ITyanpeng/Workflow
/db/activiti.oracle.create.identity.sql
GB18030
1,047
3.3125
3
[]
no_license
CREATE OR REPLACE FORCE VIEW act_id_user (id_, rev_, first_, last_, email_, ...
true
887058bf2908a45af5b1062632a1244b3c002de3
SQL
AndreGtz/sql-scripts
/pagarMultiplesPagos.sql
UTF-8
2,716
3.171875
3
[]
no_license
############################################################################################################################ #Pagar multiples pagos. set @noSolicitud = 3544;#2521 set @cveContratacion = (select cveContratacion from contratacion where noSolicitud = @noSolicitud); set @pagoFrom = 9; set @pagoTo = 9; set @...
true
6a5725f18106d4782bb0f6608b6128b2c2c4e748
SQL
Gerts19/SpoiledBeans
/src/main/resources/SpoiledBeans_Table_Setup.sql
UTF-8
2,671
3.546875
4
[]
no_license
--SpoiledBeans table setup --CREATE TABLE users ( -- -- id serial, -- username varchar(25) UNIQUE NOT NULL, -- password varchar(256) NOT NULL, -- email varchar(256) UNIQUE NOT NULL, -- firstname varchar(25), -- lastname varchar(25), -- bio varchar(256), -- -- CONSTRAINT user_id -- PRIMARY KEY (id) -- -- --); ...
true
523c27b2c0c7e4aa0ee0c82081e6938719e7596b
SQL
NyuTartaros/tiksys
/resource/tiksys_SetupTbl.sql
UTF-8
1,801
2.546875
3
[]
no_license
create database tiksys; use tiksys; create table ticketRecord ( time datetime, name varchar(20), phoneNo varchar(20), haveMeal bool ); create table train ( time datetime, remainTicketNum int ); insert into train values('2017-12-16 8:00:00',100); insert into train values('2017-12-16 9:00:00',100); i...
true
64e6ccd8a1d80b1ce34cdc325639d70edbb4849b
SQL
ThomasHAOD/record-store-solo-project
/db/record_store.sql
UTF-8
889
3.171875
3
[]
no_license
DROP TABLE tracks_records; DROP TABLE tracks; DROP TABLE records; DROP TABLE artists; DROP TABLE genres; CREATE TABLE genres ( id SERIAL8 primary key, name VARCHAR(255), bpm INT2 ); CREATE TABLE artists ( id SERIAL8 primary key, name VARCHAR(255) ); CREATE TABLE records ( id SERIAL8 primary key, title...
true
9cb3d05e0194bf9b1dee9117d743fde6ece2e1d8
SQL
aielhakim/smu
/Q3/dbInsertionQuery.sql
UTF-8
1,221
2.546875
3
[]
no_license
Insert Into Student Values('00012', 'John Smith', '902-5556'); Insert Into Student Values('00014', 'Raj Sharma', '902-8596'); Insert Into Student Values('00015', 'Lee Wang', '902-7845'); Insert Into Student Values('00016', 'Anan Obj', '902-8974'); Insert Into Course Values('001', 'Mathematics'); Insert Into Course V...
true
139c249edf6eea5a22e492b00f1ce7aa8ab1d781
SQL
msaifrobbani/pegawai
/dbpegawaipegawai.sql
UTF-8
8,690
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.0.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 30, 2018 at 09:11 -- Server version: 5.1.37 -- PHP Version: 5.3.0 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
true
69f194f852c0664b33e4dc2419cba70937891b90
SQL
Megha067/Basic-Banking-System
/sparks_bank.sql
UTF-8
2,104
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 18, 2021 at 02:25 PM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
65cb471d042215cd72a20e0caf436c28c7c51535
SQL
JSQLParser/JSqlParser
/src/test/resources/net/sf/jsqlparser/statement/select/oracle-tests/analytic_query04.sql
UTF-8
459
2.6875
3
[ "Apache-2.0", "LGPL-2.1-only" ]
permissive
--- -- #%L -- JSQLParser library -- %% -- Copyright (C) 2004 - 2019 JSQLParser -- %% -- Dual licensed under GNU LGPL 2.1 or Apache License 2.0 -- #L% --- select deptno , ename , hiredate , listagg(ename, ',') within group (order by hiredate) over (partition by deptno) as employees from emp --@FAILURE: Encountered u...
true
4918d95c010e4f06a261d643d7cd88df017a6969
SQL
introby/reactive
/server/src/main/resources/db_data.sql
UTF-8
1,817
3.015625
3
[]
no_license
CREATE TABLE vw ( id SERIAL, name varchar(100), creation_date timestamp, count int, PRIMARY KEY (id) ); INSERT INTO vw (name, creation_date, count) VALUES ('VW Golf', '2004-10-19 10:23:54', 1), ('VW Polo', '2012-02-10 17:34:00', 4), ...
true
ba35f967776ffd09bd3d06a20902f54e82564c74
SQL
chamith/gatekeeper
/db/gatekeeper/scripts/install/indexes/UserRoleAssignment.sql
UTF-8
368
2.546875
3
[]
no_license
CREATE INDEX `fk_UserRoleAssignment_User` ON `UserRoleAssignment` (`UserId` ASC) ; CREATE INDEX `fk_UserRoleAssignment_Role` ON `UserRoleAssignment` (`RoleId` ASC) ; CREATE INDEX `fk_UserRoleAssignment_Application` ON `UserRoleAssignment` (`ApplicationId` ASC) ; CREATE INDEX `fk_UserRoleAssignment_SecurableObject` ON `...
true
cf84e87d66fee6c89b6865814935847c54cc0045
SQL
bitgittry/BaseCodeAnalysis
/trunk/dbv/stored_routines/CommonWalletGeneralCancelWin.sql
UTF-8
10,082
3.796875
4
[]
no_license
DROP procedure IF EXISTS `CommonWalletGeneralCancelWin`; DELIMITER $$ CREATE DEFINER=`bit8_admin`@`127.0.0.1` PROCEDURE `CommonWalletGeneralCancelWin`( gameSessionID BIGINT, clientStatID BIGINT, gameManufacturerName VARCHAR(80), cancelTransactionRef VARCHAR(80), transactionRef VARCHAR(80), roundRef BIGINT, gameRe...
true
275c26186afde58f27f4fad6cc3b868755b993bf
SQL
Amalbekov96/Flash_cards
/flashcards.sql
UTF-8
3,735
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Dec 06, 2017 at 10:26 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
fbc2e8cfacada4f946e2236e6b7da8c57a77dcf5
SQL
IshwaryaAsokan/DBExporter
/src/sql/KPNA_full/keyword-types.sql
UTF-8
259
3.1875
3
[]
no_license
select distinct KT.KEYWORD_TYPE_UC as TYPE from CB02KPNA.KEYWORDS k, CB02KPNA.KEYWORD_TYPES kt, CB02KPNA.KEYWORD_PHRASES kp, CB02KPNA.ITEM_INFO ii where II.ITEM_INFO_ID = K.ITEM_INFO_ID and K.KEYWORD_TYPE_ID = KT.KEYWORD_TYPE_ID and K.PHRASE_ID = KP.PHRASE_ID
true
b1f5db8d3c498b138c662333310c125dddd800e5
SQL
datalytyx/dlx-test-sources
/mysql-flex/jaffle/1_create_and_load.sql
UTF-8
884
2.984375
3
[ "Apache-2.0" ]
permissive
drop table if exists raw_customers ; create table raw_customers ( id int, first_name varchar(200), last_name varchar(200), email varchar(200) ); drop table if exists raw_orders; create table raw_orders ( id int, user_id int, order_date DATE, status varchar(200) ); drop table if exists raw_payments; create table raw_pay...
true
c5f3121c5c5b6db271129ab844e2c7b253f1a347
SQL
SabaTD/PMedia
/administrator/components/com_comments/install.mysql.sql
UTF-8
676
3.0625
3
[]
no_license
DROP TABLE IF EXISTS `#__comments`; CREATE TABLE IF NOT EXISTS `#__comments` ( `id` int(11) NOT NULL auto_increment, `ip` varchar(23) character set utf8 NOT NULL, `article_id` int(11) NOT NULL, `userid` int(11) NOT NULL, `author` text character set utf8 NOT NULL, `mail` varchar(255) collate utf8_unicode_ci ...
true
4d4663251d529eff0c027753576c76257f801b03
SQL
CUBRID/cubrid-testcases
/sql/_13_issues/_12_1h/cases/bug_bts_6586.sql
UTF-8
1,270
3.703125
4
[ "BSD-3-Clause" ]
permissive
drop table if exists t1,t2,t3; create table t1 (id int not null auto_increment, parent_id int default null, primary key (id), key parent_id (parent_id)); create table t2 (id int , primary key (id)); insert into t1 values(NULL,1),(NULL,NULL),(NULL,2); insert into t2 values(1),(3),(2); alter table t1 partition by hash (i...
true
bf349f10b675843ee1d243aea44a746b0321b8df
SQL
xdanielsb/pgSql
/oracle/package.sql
UTF-8
1,301
3.46875
3
[]
no_license
/* * author: Daniel Santos @xdanielsb * date: 9.feb.2021 */ -- Header of the package students create or replace package pkg_students as -- The signature of the functions is shown below /** * purpose: Get the name of a student given its id * * @param id_estudiante id of the student * @return nam...
true
c5a47ba5d0bff012a590e0ad173b3416c9540a0d
SQL
Nikita-Poltavets/Raincoat
/src/main/resources/db/migration/V1__Init__DB.sql
UTF-8
990
3.625
4
[]
no_license
create sequence hibernate_sequence start 1 increment 1; create table advert ( id int8 not null, creation_date timestamp, description text, details varchar(1024), job boolean not null, title varchar(512), user_id varchar(255), primary key (id) ); create table comment ( id int8 not n...
true
913f6b03e872a57de8b16d518d68f503634d8a51
SQL
Waleed122/Prize_banker
/Prize-Banker/sql/prize-banker.sql
UTF-8
5,577
2.984375
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 23, 2013 at 12:30 PM -- Server version: 5.1.41 -- 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
8ea801da75d95b0049132b203bf78acbb9b9c211
SQL
babetteblanquet/The-projections-of-households-until-2036
/7-schema.sql
UTF-8
974
3
3
[]
no_license
CREATE TABLE households_type ( id SERIAL PRIMARY KEY, stat_date DATE NOT NULL, sa2_code VARCHAR(9) NOT NULL, sa2_name VARCHAR(50) NOT NULL, couple_family_with_children INTEGER NOT NULL, couple_family_without_children INTEGER NOT NULL, one_parent_family INTEGER NOT NULL, other_family INTEGER NOT NULL, group_hou...
true
ae86ec4bdc634261f48bc8ea11c630665b0367e7
SQL
aidanmccoy/Databases_Lab_2
/INN/INN-setup.sql
UTF-8
444
3.25
3
[]
no_license
-- aimccoy CREATE TABLE Rooms ( RoomID VARCHAR(5) PRIMARY KEY, RoomName VARCHAR(30), Beds INTEGER, BedType VARCHAR(10), maxOccupancy INTEGER, BasePrice INTEGER, Decor VARCHAR(20) ); CREATE TABLE Reservations ( Code INTEGER PRIMARY KEY, Room VARCHAR(10), CheckIn DATE, CheckOut DATE, Rate NUMERIC(6,2), Las...
true
b270419b4a9830636a637d0bdfc04d46df7380b8
SQL
OndrejVane/AntiPatternDetection
/src/anti_pattern_views/long_or_non_existant_feedback_loops.sql
UTF-8
4,033
3.90625
4
[]
no_license
/* Anti-pattern name: Long Or Non-Existant Feedback Loops (No Customer feedback) Description: Long spacings between customer feedback or no feedback. The customer enters the project and sees the final result. In the end, the customer may not get what he really wanted. With long intervals of f...
true
6e627b072cf1e7b8922e6741b0aca02dcb9c19d1
SQL
AshishSheoran/DBS301
/labs/lab5/L5_162543177_sheoran.sql
UTF-8
5,712
4.65625
5
[]
no_license
-- *************************************** -- Name: Ashish Sheoran -- ID: 162543177 -- Date: October 2, 2019 -- Purpose: Lab 5 DBS 301 -- *************************************** -- PART-A: Simple Joins -- Question 1. -- Display the department name, city, street address and postal code for departments. -- S...
true
86b077c4664d7e442b77cdbded246903a122c343
SQL
guidomrauber/sistemadocentepuntaje
/phplogin.sql
UTF-8
3,260
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 28-09-2020 a las 17:45:56 -- Versión del servidor: 10.1.36-MariaDB -- Versión de PHP: 5.6.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
ec4f5200928f5c7e43e6941008ab67e6dc2699e3
SQL
Alex19-91/MySQL
/БД Климат столиц мира/DDL Курсового.sql
UTF-8
4,770
3.703125
4
[]
no_license
DROP DATABASE IF EXISTS climate; CREATE DATABASE climate; USE climate; -- Таблица стран и городов (также указывается широта города) DROP TABLE IF EXISTS names; CREATE TABLE names( id SERIAL PRIMARY KEY, country varchar(50), city varchar(50), latitude FLOAT ); -- Влажность и осадки (среднегодовые значения) DROP...
true
5c81d6d9cbd8e855333331d8833a2b3ae85dfd1b
SQL
NathanBarbet/OC_Projet_4
/express_food.sql
UTF-8
14,909
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : mer. 06 nov. 2019 à 07:29 -- Version du serveur : 5.7.26 -- Version de PHP : 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
true
6ee50b06eca1d5d681a483a300b838b6a1791033
SQL
MiquelJavi-Java-Proyecto4/JAVA-PHP
/bd_estoc.sql
UTF-8
14,292
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 16, 2016 at 03:57 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 7.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
42ba9bcf28f2b65d45b8540663ad6544e3d10df3
SQL
whehdwns/CSE_111
/Lab_8/index/8.sql
UTF-8
212
2.546875
3
[]
no_license
SELECT s_name, s_acctbal FROM supplier_index, nation, region WHERE s_acctbal > '1000.0' AND s_nationkey=n_nationkey AND n_regionkey=r_regionkey AND r_name='ASIA' --[20:04:03] Query finished in 0.008 second(s).
true
c06b9c4b8f8810858c415e608f4c11b6e4134f36
SQL
backoffbelief/jcoc
/src/main/resources/t_db.sql
UTF-8
2,355
3.03125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : local Source Server Version : 50511 Source Host : localhost:3306 Source Database : t_db Target Server Type : MYSQL Target Server Version : 50511 File Encoding : 65001 Date: 2015-11-13 18:37:42 */ SET FOREIGN_KEY_CHECKS=...
true
a9edfa7a5e665aea0722bc26e5e342314236a14f
SQL
robkoltai/DBA_scripts
/RAT/demo/DBREPLAY_workflow/replay.sql
UTF-8
3,818
2.609375
3
[]
no_license
------------------------------------- --- REPLAY LEPESEK ------------------------------------- /* most nem masolgatok, mint az elesben most nem kell shared storage nem kell uj directory */ -- process -- Check alert.log tail -f. Nincs ott semmi -- check OS directory /oradata/RAT_CAPDIR/pp19.3.0.0.0 set timi on se...
true
6e02d5aba66866eaf266ec7fd69d3904342347f5
SQL
lbonacina/myQuiz
/src/main/sql/quiz_schema.sql
UTF-8
7,064
3.46875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.5 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generato il: 07 mar, 2013 at 04:11 AM -- Versione MySQL: 5.1.36 -- Versione PHP: 5.3.14 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_...
true
018763745eb59ab45caa7805b7b5a8a411d7c9e9
SQL
daren990/EOA
/src/cn/oa/model/mapper/ReimburseType.sql
UTF-8
254
2.78125
3
[]
no_license
/* ReimburseType.count */ select count(*) from conf_reimburse_type r $condition /* ReimburseType.index */ select r.* from conf_reimburse_type r $condition limit @first, @size /* ReimburseType.query */ select r.* from conf_reimburse_type r $condition
true
48e130590462466182593ad9093c176b5840414d
SQL
thierrydecker/learning_postgresql
/documents/sql/joins_001.sql
UTF-8
1,915
4.0625
4
[]
no_license
CREATE TABLE basket_a ( id INT PRIMARY KEY, fruit VARCHAR(100) NOT NULL ); CREATE TABLE basket_b ( id INT PRIMARY KEY, fruit VARCHAR(100) NOT NULL ); INSERT INTO basket_a (id, fruit) VALUES (1, 'Apple'), (2, 'Orange'), (3, 'Banana'), (4, 'Cucumber'...
true
668d0009b82824c24fc819fc3894475a4395a6a4
SQL
n4cer/estockkarte
/conf/evolutions/default/4.sql
UTF-8
852
3.703125
4
[ "Apache-2.0" ]
permissive
# --- !Ups create table stand ( id bigserial not null, name varchar(255), first_name varchar(255), last_name varchar(255), street varchar(255), zip_code varchar(255), city v...
true
274e1bbc1b6c2f97c4752b3423d294fd9ca6609b
SQL
lymos/guitar-site
/sql/ms_posts.sql
UTF-8
708
3.265625
3
[ "MIT" ]
permissive
# table posts drop table if exists ms_posts; create table ms_posts ( posts_id unsigned int(11) not null auto_increment comment "id", guid varchar(26) not null default "" comment "guid", from_userid unsigned int(11) not null default 0 comment "from userid", title ...
true
073d53b53be65390e422da73560379065c66d8ac
SQL
sitemule/noxDB
/examples/sql/clob.sql
UTF-8
367
2.828125
3
[ "MIT" ]
permissive
-- Table using clob create schema noxdbdemo; set schema noxdbdemo; create or replace table noxdbdemo.clobs ( id bigint not null generated always as identity primary key, myclob clob (16M) ); label on column noxdbdemo.clobs ( id is 'Id', myclob is 'Clob Data' ); insert into noxdbdemo.clobs (myclob) va...
true
c0d08687471eb0561867920da9f61ee5acf241e5
SQL
Jamie0810/grpc-api
/migration/14_add_payment.sql
UTF-8
2,278
3.078125
3
[]
no_license
-- +goose Up -- SQL in this section is executed when the migration is applied. CREATE TABLE `payment_params` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `merchant_product_id` bigint(20) unsigned NOT NULL, `channel_id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `channel_name` var...
true
11ce8a7b3be322ad03e8798e2ba88cb9faf733c2
SQL
Voidgodhand/Desenvolvimento-WEB-em-Multiplas-Camadas
/Videogames/jogo.sql
UTF-8
277
2.65625
3
[]
no_license
Create table `jogo`( `codigo` int NOT NULL AUTO_INCREMENT, `nome` varchar(100) DEFAULT NULL, `numero` int NOT NULL, `cnpj` int NOT NULL, PRIMARY KEY (`codigo`), FOREIGN KEY (`numero`) REFERENCES `console` (`numero`), FOREIGN KEY (`cnpj`) REFERENCES `desenvolvedora` (`cnpj`) );
true
422a4a1c52298cccaaebb68f603604603e853472
SQL
BINARYCOMP/dbo
/database/db_online_V.0.8.sql
UTF-8
7,735
3.015625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 18, 2018 at 12:22 AM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
1f699cad40793aa45654fe5b7d5dfc0340715e17
SQL
webextant/workorders
/src/_installation/02-create-and-fill-users-table.sql
UTF-8
1,088
3.375
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS `formsdb`.`users` ( `user_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'auto incrementing user_id of each user, unique index', `user_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL COMMENT 'user''s name, unique', `user_password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMME...
true
d325065bf9c99fe5f72c7b9ac444a5d20e7795e8
SQL
ElianNasatto/Entra21-C-Sharpe-Trabalho-CRUD-Projetos
/SistemaGerenciaProjetos/Repository/Estrutura.sql
UTF-8
1,254
3.21875
3
[]
no_license
 CREATE TABLE estados( id INT PRIMARY KEY IDENTITY(1,1), nome VARCHAR(50), sigla VARCHAR(2) ); CREATE TABLE cidades( id INT PRIMARY KEY IDENTITY(1,1), id_estado INT, FOREIGN KEY(id_estado) REFERENCES estados(id), nome VARCHAR(50), numero_habitantes INT ); CREATE TABLE clientes( id INT PRIMARY KEY IDENTITY(1,1), id...
true
0d0b3e3dc317286bde53346a566823fe091f3a33
SQL
Stiller13/portal_olimp
/dump/portal_olimp.sql
UTF-8
31,448
3.609375
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.5 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Мар 24 2014 г., 00:14 -- Версия сервера: 5.1.40-community -- Версия PHP: 5.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
ba04360189457673aa00339f059e6481ac9e129a
SQL
lalaji12/shopping
/BSonlineshoppingBackEnd/databaseQueries.sql
UTF-8
5,140
3.5625
4
[]
no_license
CREATE TABLE category ( id IDENTITY, name VARCHAR(50), description VARCHAR(255), image_url VARCHAR(50), is_active BOOLEAN, CONSTRAINT pk_category_id PRIMARY KEY(id) ); CREATE TABLE user_detail( id IDENTITY, first_name VARCHAR(50), last_name VARCHAR(50), role VARCHAR(50), enabled B...
true
00e47de8610799e5739406210aa3802b297d8e11
SQL
fanjieqi/LeetCodeRuby
/101-200/184. Department Highest Salary.sql
UTF-8
470
4.125
4
[ "MIT" ]
permissive
# Write your MySQL query statement below select d.Name as Department, e1.Name as Employee, e1.Salary as Salary from Employee e1 left join Department d on e1.DepartmentId = d.Id left join ( select e2.DepartmentId as DepartmentId, max(e2.Salary) as Salary from Employee e2 group by e2.DepartmentId ) e3 on e1....
true
fdd1e0851d862e1225c378bb5b18bfd07e651f36
SQL
ilyas72/AssetTracker2019
/database/system_loan.sql
UTF-8
15,339
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.11.2.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 23, 2019 at 12:50 AM -- Server version: 5.0.45 -- PHP Version: 5.2.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `system_loan` -- -- --------------------------------------------------------...
true
3b7b236ff4e8392d789d1bae488cafed526ae208
SQL
ericlin05/secret-message
/data/database.sql
UTF-8
1,014
3.5
4
[]
no_license
-- Create syntax for TABLE 'image' CREATE TABLE `image` ( `id` int(10) NOT NULL auto_increment, `uniq_id` varchar(13) NOT NULL, `filename` varchar(255) default NULL, `type` varchar(255) default NULL, `data` longblob NOT NULL, `version` tinyint(1) unsigned NOT NULL default '1', `notify_email` varchar(255) ...
true
9456a5a2c767e0b8d0c000fc759b73bfbf7e9e60
SQL
danstoyanov/CSharp-Databases
/01 - [MS SQL Problems]/[MS SQL Server Exams]/07 - [Databases MSSQL Server Retake Exam - 11 August 2020]/Section01_DDL.sql
UTF-8
1,938
3.953125
4
[ "MIT" ]
permissive
CREATE DATABASE Bakery CREATE TABLE Countries ( Id INT PRIMARY KEY IDENTITY, Name NVARCHAR(50) UNIQUE NOT NULL ) CREATE TABLE Customers ( Id INT PRIMARY KEY IDENTITY, FirstName NVARCHAR(25) NOT NULL, LastName NVARCHAR(25) NOT NULL, Gender CHAR(1), CHECK (Gender IN ('M'...
true
4e34d29abe6cf820ec4e14bb65d2b7840a07b4fa
SQL
radtek/abs3
/sql/mmfo/cdb/Table/currency.sql
UTF-8
2,662
3.28125
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/CDB/Table/CURRENCY.sql =========*** Run *** ===== PROMPT ===================================================================================== PROMPT *** Create table CUR...
true
f4d3d7943a03b31467afd5094ecf8564ca2b8522
SQL
wdxzs1985/tongrenlu
/mysql-sql/v_music_comment_count.sql
UTF-8
821
3.25
3
[ "MIT" ]
permissive
CREATE VIEW `v_music_comment` AS select `m_comment`.`id` AS `id`, `m_comment`.`content` AS `content`, `m_comment`.`upd_date` AS `createDate`, `v_user`.`id` AS `userBean.id`, `v_user`.`nickname` AS `userBean.nickname`, `v_music`.`id` AS `articleBean.id`, `v_m...
true
c674de8666e7d48380c576d33d05e4f2ea84db8b
SQL
jade053/202007_itw_bd18
/lab_oracle/sql07.sql
UTF-8
5,344
4.59375
5
[]
no_license
-- 다중행 함수(multi-row function, group function) -- 여러개의 행이 함수의 인수(argument)로 입력되고, -- 하나의 값이 반환(출력)되는 함수 select sal from emp order by sal; -- 합계, 평균, 최댓값, 최솟값, 분산, 표준편차, 중앙값 select sum(sal) as 합계, round(avg(sal), 2) as 평균, -- average, mean max(sal) as 최댓값, min(sal) as 최솟값, round(...
true
36e52a7eef6fea05b8a6ea10961716b3d97a54c6
SQL
Bruslan/Go_lang_Management
/management.vanilla/WEBSERVER/data/user_keyspace.cql
UTF-8
735
4
4
[]
no_license
DROP KEYSPACE IF EXISTS user_keyspace; CREATE KEYSPACE IF NOT EXISTS user_keyspace WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 1}; USE user_keyspace; CREATE TABLE IF NOT EXISTS users ( user_id UUID, username TEXT, email TEXT, pass TEXT, created_at TIMESTAMP, PRIMARY KEY ((user_id)) );...
true