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
2f6a3914f746c3982a629a8464e81081dfdf3778
SQL
duilee/workspace
/SQL/consecutive_numbers.sql
UTF-8
224
3.578125
4
[]
no_license
# Write your MySQL query statement below SELECT DISTINCT t1.num AS ConsecutiveNums FROM Logs AS t1 INNER JOIN Logs AS t2 ON t2.id = t1.id +1 INNER JOIN Logs AS t3 ON t3.id = t1.id +2 WHERE t1.num = t2.num AND t2.num = t3.num
true
e02d20feea687e6bbe7f96c71915958507ea09a4
SQL
teager/Spring3MVC
/src/main/webapp/WEB-INF/classes/META-INF/sqlScript/init.sql
UTF-8
1,655
2.9375
3
[]
no_license
/** Create Table **/ CREATE TABLE `anonymity` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `clientDeviceId` varchar(100) DEFAULT NULL, `clientDeviceName` varchar(100) DEFAULT NULL, `clientDeviceToken` varchar(100) DEFAULT NULL, `clientVersion` varchar(20) DEFAULT NULL, `clientOS` varchar(20) DEFAULT NULL, `...
true
320e3d6ed54543546a87d785c7fa17b573f16bed
SQL
Ariah-Group/Research
/db_scripts/main/KC-RELEASE-3_1_SP4-SCRIPT/MYSQL/CONSTRAINTS/KC_FK_KC_QRTZ_TRIGGER_LISTENERS.sql
UTF-8
190
2.9375
3
[ "Apache-2.0", "ECL-2.0" ]
permissive
ALTER TABLE KC_QRTZ_TRIGGER_LISTENERS ADD CONSTRAINT FK_KC_QRTZ_TRIGGER_LISTENERS FOREIGN KEY (TRIGGER_NAME,TRIGGER_GROUP) REFERENCES KC_QRTZ_TRIGGERS(TRIGGER_NAME,TRIGGER_GROUP);
true
359829687632cfaacb33225cce2357b2f3ede049
SQL
aramnatsyan/restaurantCheckSystem
/restourantcheckingsystemDB.sql
UTF-8
4,977
3.03125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Dec 08, 2020 at 07:59 AM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.4.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
true
5e2d138220dfe8cdb09c15e050c6e31f18404661
SQL
NCIP/ctms-commons
/suite/authorization/src/test/resources/csm-sql/oracle/seeddata.sql
UTF-8
21,731
2.75
3
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
INSERT INTO csm_application(application_name, application_description) VALUES ('CTMS_SUITE', 'CTMS_SUITE') / INSERT INTO csm_group(group_name, group_desc, application_id) VALUES ('system_administrator', 'Configures the technical system level properties and behavior of the applications (i.e. the password policy, e...
true
7525084414f3e328725d36c61645940442941740
SQL
Longek/J2SE-Shoes-Cash
/shoescash.sql
UTF-8
15,908
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 17, 2020 at 02:55 AM -- Server version: 5.7.24 -- PHP Version: 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
true
dadc98a0eff5b26420eee9f128b463df974f341e
SQL
vchapple17/hometown-heroes
/hometown_heroes_data.sql
UTF-8
9,691
3.3125
3
[]
no_license
DROP TABLE IF EXISTS `hh_event_time`; DROP TABLE IF EXISTS `hh_event_register`; DROP TABLE IF EXISTS `hh_event_review`; DROP TABLE IF EXISTS `hh_event_date`; DROP TABLE IF EXISTS `hh_tag_event`; DROP TABLE IF EXISTS `hh_tag_user`; DROP TABLE IF EXISTS `hh_event`; DROP TABLE IF EXISTS `hh_tag`; DROP TABLE IF EXISTS `hh_...
true
034065c25f2e1bb0ff952d6cf7fb5b7f24d51ff7
SQL
yonelT/essaie-2-open-food-facts-javaEE
/bin/1 - Recherche 100 produits selon la catégorie, marque, nom, grade nutritionnel, énergie, graisse.sql
UTF-8
314
3.25
3
[]
no_license
use openfoodfacts; select categories.nom as CATEGORIE, marques.nom as MARQUE, produits.nom as NOM_PRODUIT, produits.grade as GRADE_NUTRITIONEL, produits.energie as ENERGIE, produits.graisse as GRAISSE from categories, marques, produits where categories.id=produits.id_cat and marques.id=produits.id_mrq limit 100;
true
23c924ccd8be4c0498ba1dfb00d9b5b8944ef142
SQL
tilluhlig/ostepu-core
/DB/DBNotification/Sql/DeleteNotification.sql
UTF-8
559
2.78125
3
[]
no_license
<?php /** * @file DeleteNotification.sql * deletes an specified Notification from %Notification table * * @license http://www.gnu.org/licenses/gpl-3.0.html GPL version 3 * * @package OSTEPU (https://github.com/ostepu/system) * @since 0.4.3 * * @author Till Uhlig <till.uhlig@student.uni-halle.de> * @date 2015 ...
true
1192fe529580d1bfa934048b06233e911556040c
SQL
arpitpardesi/Advance-Analytics
/RDBMS/Day 9 (SQL)/TRIGGER.sql
UTF-8
1,524
4.09375
4
[]
no_license
CREATE TABLE TAB1(A INTEGER); CREATE TABLE TAB2(B INTEGER); CREATE TABLE TAB3(C INTEGER); DROP TABLE tab3 ----------------------------------- CREATE TRIGGER TRIG1 ON TAB1 FOR INSERT AS BEGIN INSERT INTO TAB2 SELECT * FROM INSERTED END ------------------------- select * from tab1 select * from tab2 insert into tab1 ...
true
d44dacf1ace50fc1c0654fe1802a6c0615f41653
SQL
hitoshidevx/SQLServer
/ClinicaVet/DML/ClinicaVet.sql
ISO-8859-1
833
3.515625
4
[]
no_license
/*DML - Data Manipulation Language*/ USE clinica; /*INSERT - insero de dados*/ INSERT INTO clinica (Nome, Endereco) VALUES ('PetMania', 'Vila Mogilar'); INSERT INTO veterinario (Nome, IdClinica) VALUES ('Elaine Y.', 2); INSERT INTO dono (Nome) VALUES ('Breno'); INSERT INTO espcie (Especie) VALUES ('Vira-Lata'); IN...
true
4700835f4ca594dbc1fd7ab2e74ef1c1c793dd65
SQL
Ramkavanan/easybpm
/src/main/resources/bpmFunctions/GetFamilyTree.sql
UTF-8
1,721
3.5625
4
[]
no_license
CREATE DEFINER=`root`@`%` FUNCTION `GetFamilyTree`(GivenID VARCHAR(1024),needChild BOOLEAN) RETURNS VARCHAR(1024) CHARSET latin1 DETERMINISTIC BEGIN DECLARE rv,q,queue,queue_children,front_id VARCHAR(1024); DECLARE queue_length,pos INT; SET rv = ''; SET queue = GivenID; SET queue_length ...
true
b422ff909be5fc23f9ec01071782cb3647390a3b
SQL
amednin/monitor-service
/sql/monitor_service_backup_2019-06-05.sql
UTF-8
20,257
3.09375
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.7.10) # Database: monitor_service # Generation Time: 2019-06-08 04:16:48 +0000 # ***************************************...
true
c2ec0da35db949f957ffd56a02585c3d256eb454
SQL
htamakos/oracle_samples
/partition/partitioning_enhancement_oracle_11g/interval_partitioning/create_partitioning.sql
UTF-8
267
3.28125
3
[]
no_license
CREATE TABLE interval_tab ( id NUMBER, code VARCHAR2(10), description VARCHAR2(50), created_date DATE ) PARTITION BY RANGE (created_date) INTERVAL (NUMTOYMINTERVAL(1, 'MONTH')) ( PARTITION part_01 VALUES LESS THAN (TO_DATE('01-NOV-2007', 'DD-MON-YYYY')) );
true
dc6e049e476d52b9fd973b297abf013c86cc4ec5
SQL
Mehdikossir/Projects
/Projets/ Automaton learning application/data/init.sql
UTF-8
2,688
3.5
4
[]
no_license
CREATE TABLE "Users" ( id SERIAL PRIMARY KEY, firstName VARCHAR NOT NULL, lastName VARCHAR NOT NULL, pseudo VARCHAR NOT NULL, password VARCHAR NOT NULL, suspendedAccount BOOLEAN NOT NULL DEFAULT FALSE, isAdmin BOOLEAN NOT NULL DEFAULT FALSE ); INSERT INTO "Users" (firstName, lastName, pseudo, password, ...
true
3603c6cec4dfaeb0672b7d7ad504c6497a59fabc
SQL
Greenfin17/chinook-sql-exercises
/line_item_track_artist.sql
UTF-8
278
3.1875
3
[]
no_license
select InvoiceLine.InvoiceId as [Invoice], Track.Name as [Track Name], Artist.Name as [Artist] from InvoiceLine join Track on InvoiceLine.TrackId = Track.TrackId join Album on Track.AlbumId = Album.AlbumId join Artist on Album.ArtistId = Artist.ArtistId Order by Artist.Name;
true
968cb2387fd1fed07a725d5a698c0daad3310fe9
SQL
sketchband/test29
/test31/SQL.sql
UTF-8
453
3.203125
3
[]
no_license
CREATE TABLE MEMBER12( zipcode char(6), address char(50) )engine=innodb charset=utf8; select * from MEMBER12; drop table MEMBER12; create table tblZipcode2( zipcode char(8) not null, area1 char(10) default null, area2 char(20) default null, area3 char(40) default null, area4 char(20) default null )engin...
true
41654af304e8d1188568310ad9bd59824805e2ad
SQL
WhySeven/Education-Repository
/Базы данных/БД_ЛАБЫ/Labs_4sem/Lab_3/Lab_3_3.sql
UTF-8
550
2.8125
3
[]
no_license
Drop Table Air_Price; Create Table Air_Price ( Код_Рейса int not null IDENTITY(1,1), Цена money, Дата_покупки Date, Дата_вылета Date ) insert into Air_Price (Цена,Дата_Покупки,Дата_вылета) values (5000,'01.11.2020','01.11.2020'), (5500,'02.11.2020','01.11.2020'), (6000,'03.11.2020','01.11.2020'), (6500,'04.11.2020','0...
true
41edf7165e5c889341f65b5de7620dbb704428c5
SQL
HaydenTaylor/practice3
/W3D1 - SQL/notes/notes.sql
UTF-8
1,635
4.5625
5
[]
no_license
-- RDBMS -- SELECT, FROM, WHERE SELECT fname FROM characters WHERE lname = 'Baratheon' -- ORDER, LIMIT SELECT * FROM characters WHERE lname = 'Baratheon' ORDER BY fname LIMIT 3 -- LIKE, IN, NULL SELECT * FROM characters WHERE lname LIKE 'S%' SELECT * FROM characters WHERE lname IN ...
true
3251792579bc831626fb05702c1478a42876ef1d
SQL
dabarc/DabarcStrategyNewDesignMabe
/DabarcStrategyNewDesign/dabarc/Stored Procedures/sp_SSIS_ReadListOfTDM_Reg.sql
UTF-8
1,299
3.125
3
[]
no_license
CREATE PROCEDURE [dabarc].[sp_SSIS_ReadListOfTDM_Reg] @IsRegister INT, @table_id INT AS ----------------------------------------------------------------------- -- Tabla Interfaz de Trabajo ----------------------------------------------------------------------- CREATE TABLE #t_Objeto( Object_id int NULL...
true
5f9c0feec2a8fa5e136795560d05614da5a74881
SQL
krishnaaddala/MyFirstBootCampRepo
/course-content/11-mysql/activities/11-popQuiz/popquiz.sql
UTF-8
368
2.84375
3
[]
no_license
DROP DATABASE IF EXISTS popquiz_db; CREATE DATABASE popquiz_db; USE popquiz_db; CREATE TABLE quiz( id INTEGER(10) NOT NULL AUTO_INCREMENT, name VARCHAR(30), bidValue INTEGER(10) ); INSERT INTO quiz(name, bidValue) VALUES ("Krishna", 100); INSERT INTO quiz(name, bidValue) VALUES ("Jerome", 1000); INSERT ...
true
47f4da1caaf371e94d6c5dd14a9d898cca5a1aff
SQL
happyjianguo/cap-root
/cap-paf-service/db/paf_batch_crdt_detail_oracle.sql
UTF-8
2,320
3.328125
3
[]
no_license
drop table PAF_BATCH_CRDT_DETAIL; create table PAF_BATCH_CRDT_DETAIL ( BATCH_NO VARCHAR2(20 CHAR) not null, SEQ_NO VARCHAR2(20 CHAR) not null, TX_AMT NUMBER, CR_ACCTNO VARCHAR2(32 CHAR), CR_ACCTNAME VARCHAR2(255 CHAR), CR_CHGNO VARCHAR2(12 CHAR), CR_OPNCHGNO VARCHAR2(12 CHAR), C...
true
5d4410e0be3c3b0149c0b8562057b1382509e0f8
SQL
raviladhar/BostonCrimes_KaggleData
/SQL Quries for data exploration.sql
UTF-8
2,556
3.90625
4
[]
no_license
select * from dbo.tmp5kbon6z6 -- total offenses reports during all five years select crimeData.YEAR, count(crimeData.OFFENSE_CODE) as total_offense from dbo.tmp5kbon6z6 as crimeData group by crimeData.YEAR order by total_offense desc -- frequently reported offenses in the particular streets select crimeDa...
true
34b16df102d5c81fae35fd74261a5160d7e251cf
SQL
VERTICA-FAST/FAST
/vsql/SFDC/SF_Event.sql
UTF-8
11,908
2.921875
3
[]
no_license
/**** ****Script Name : SF_Event.sql ****Description : Incremental data load for SF_Event ****/ /*Setting timing on */ \timing /**SET SESSION AUTOCOMMIT TO OFF;**/ \set ON_ERROR_STOP on CREATE LOCAL TEMP TABLE Start_Time_Tmp ON COMMIT PRESERVE ROWS AS select count(*) count, sysdate st from "swt_rpt_...
true
a5cf8bf4446fc7bc442fdc2ea8db181b914f64ce
SQL
2Nifty/PFC
/_My Workorders/_Closed/WO 1913 - Duplicate ItemBranchUsage records/IBU duplicates.sql
UTF-8
5,128
3.59375
4
[]
no_license
select count(*) from ItemBranchUsage --2025728 --select * from ItemBranchUsage --606 records select IBU.* from ItemBranchUsage IBU inner join ( select * from (select Count(*) as reccount, Location, ItemNo, CurPeriodNo from ItemBranchUsage ---2025375 group by Location, ItemNo, CurPeriodNo) tmp where reccount > 1 ) dup...
true
d2645454c89a7a58fc9b04eee0a9d629cf64f47e
SQL
anykarolyne/crud-nodejs-mysql
/user.sql
UTF-8
1,330
2.75
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Inang: localhost -- Waktu pembuatan: 02 Mei 2014 pada 12.05 -- Versi Server: 5.5.34 -- Versi PHP: 5.4.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40...
true
21b7aa105ea6a1b1cf4afa89d89f6f3b443deecf
SQL
maataka/CappacitaDEV_Desafio_Final
/postagem_postagens.sql
UTF-8
2,724
3
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.26, for Win64 (x86_64) -- -- Host: localhost Database: postagem -- ------------------------------------------------------ -- Server version 8.0.26 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS...
true
46de0d3e990afc065aa7e44a9568de4b0feef648
SQL
nickprys/QALight-SQL-Home-work
/6-HW.sql
UTF-8
7,802
4.375
4
[]
no_license
-- 1. Напишите запрос с EXISTS, позволяющий вывести данные обо всех студентах, -- обучающихся в вузах с рейтингом не попадающим в диапазон от 488 до 571 select * from STUDENTS s where exists ( select rating from UNIVERSITIES u where rating not between 488 and 571 and u.id = s.UNIV_ID) -- 2. Напишите запрос ...
true
67a2e9d6ac26591147603b2cc9c63b89064887b8
SQL
roerjo/custom-php-framework-todo-app
/migrations/sqlite/create_tasks_table_20190924072400.sql
UTF-8
300
2.578125
3
[]
no_license
CREATE TABLE IF NOT EXISTS `tasks` ( `id` INTEGER PRIMARY KEY, `title` TEXT NOT NULL, `description` TEXT NOT NULL, `completed` INTEGER NOT NULL DEFAULT 0, `created_at` TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, `completed_at` TEXT );
true
da23cb6772511939603e25ba09d432565bf5620e
SQL
dalida/Sites
/wipsea/protected/data/wipsea.sql
UTF-8
4,069
4
4
[]
no_license
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema wipsea -- ---------------------------------------...
true
52e7eb5df7013884d69222c0559a479e37287b2e
SQL
PrasananTrainer03/MphasisData
/sql1/MySql_Exam_Prep_3.sql
UTF-8
436
2.984375
3
[]
no_license
select * from bank.accounts; select * into accounts from bank.accounts; use hexanew; create table accounts as select * from bank.accounts; select * from accounts; select A.AccountNo,FirstName,LastName,City,TransAmount,TransDate from accounts A INNER JOIN Bank.Trans T ON A.AccountNo=T.AccountNo; select A.Account...
true
e926786a42fb12d2cc44822ef02613576d112776
SQL
jdguevara/CS-HU310
/project/FinalSubmission/Final_Project.sql
UTF-8
10,192
4.46875
4
[]
no_license
create database cs310project; use cs310project; -- 1. Create a table for Concession Items create table Item ( ID int auto_increment, ItemCode varchar(5) unique, ItemDescription varchar(50) not null, Price decimal(4,2) default 0, primary key (ID)); -- couldn't create the table without defining the auto_increment as a ...
true
2c523aa46ead8dd1080dc7ebc3cbec3b5791a75a
SQL
JordanReiter/django-geonames
/gis/mysql/distance.sql
UTF-8
398
3.359375
3
[ "MIT" ]
permissive
DELIMITER $$ DROP FUNCTION IF EXISTS `distance` $$ CREATE FUNCTION distance(a POINT, b POINT) RETURNS double DETERMINISTIC COMMENT 'Spatial distance function using the great-circle distance formula (in km)' RETURN ( 6378.7 * acos( sin( radians(X(a)) ) * sin( radians(X(b)) ) + cos( radians(X(a)) ) * co...
true
c690c53b5f7f4fced1104c2d009003f603d5861a
SQL
msecret/openFEC
/data/sql_updates/create_linkage_names_vw.sql
UTF-8
2,129
3.578125
4
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
drop materialized view if exists ofec_name_linkage_vw; create materialized view ofec_name_linkage_vw as select l.linkages_sk as linkage_key, l.cand_sk as candidate_key, l.cmte_sk as committee_key, l.cand_id as candidate_id, (select max(cand_election_yr) from dimlinkages dl where dl.cand_id = l.cand_...
true
0c1311ad89cb4048108b00cd8817e2d0faeb9e95
SQL
cxq-chuxq/studyroom
/studyroom/docs/studyroom.sql
UTF-8
2,178
3.78125
4
[]
no_license
create database `studyroom`; -- 用户 CREATE TABLE `user` ( `id` INT(10) NOT NULL AUTO_INCREMENT, `username` VARCHAR(64) UNIQUE DEFAULT '' COMMENT '用户名', `password` VARCHAR(64) DEFAULT '' COMMENT '密码', `authority` TINYINT(1) UNSIGNED DEFAULT 0 COMMENT '是否是管理员权限 : 1 -> 是,0 -> 否', ...
true
05bdbc5afb0353b744ad2fc4a2b364b2b8bbcaf4
SQL
01pshe/notes
/src/main/resources/database.sql
UTF-8
1,098
4.25
4
[]
no_license
-- id sequence create sequence id_seq; -- users table create table users( id integer default nextval('id_seq'::regclass) not null constraint users_pkey primary key, name varchar(255) not null, password varchar(255) not null, datecreate date default CURRENT_DATE not null, locked boolean default true, ...
true
9e49f4ec606eeadd28829b6ff7aceb80265d2506
SQL
sksoh/mcdonalds-queries
/Customer Base/new_customers.sql
UTF-8
1,134
3.609375
4
[]
no_license
DECLARE start_date DATE DEFAULT '2021-01-01'; DECLARE end_date DATE DEFAULT '2021-03-31'; DECLARE start_utc date DEFAULT '2020-12-31'; DECLARE end_utc date DEFAULT '2021-08-01'; DECLARE chains ARRAY <STRING> DEFAULT ['cm4kh', 'cz5ud', 'cz8ck', 'co5oz']; select count(distinct case when acq.is_first_order_with_this_chai...
true
ae3055f27ffb0976adb1da5368866f8040988d06
SQL
stevenanderson37/macbook-personalProject
/db/initialize/user_table_initialize.sql
UTF-8
268
2.53125
3
[]
no_license
CREATE TABLE IF NOT EXISTS users ( id SERIAL PRIMARY KEY, email VARCHAR(100) UNIQUE, password VARCHAR(100), first_name VARCHAR(100), last_name VARCHAR(100), birthday DATE, country VARCHAR(100), announcements BOOLEAN, media BOOLEAN, news BOOLEAN );
true
477075d1eecd016e8d848349702081f8639185fb
SQL
scchess/LabKey
/server/customModules/ehr/resources/schemas/dbscripts/sqlserver/obsolete/EHR-12.350-12.351.sql
UTF-8
596
3.125
3
[]
no_license
/* * Copyright (c) 2013-2016 LabKey Corporation * * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 */ --NOTE: this change is not applied to postgres ALTER TABLE ehr.snomed_tags DROP PK_snomed_tags; ALTER TABLE ehr.snomed_tags ADD CONSTRAINT PK_snomed_tags PRIMARY K...
true
4973bbad3337db20a33e8fa9fbf28c618dc806d1
SQL
Franzanella/ControleBancario
/banco.sql
UTF-8
606
3.015625
3
[]
no_license
create database dbbanco; use dbbanco; create table tb_conta( cd_banco varchar(50) not null, nm_banco varchar(100) not null, cd_agencia varchar (50) not null, nm_agencia varchar(100) not null, cd_contacorrente varchar(45)not null, nm_titular varchar(50) not null, cd_cpf char(15) not null, cd_saldo varchar(100)not null...
true
6c7f389b426a21f3937f37e69380d99199cb4f93
SQL
whatisjavascript/workspace
/sql/attence.sql
UTF-8
1,596
3.546875
4
[]
no_license
/* Navicat Premium Data Transfer Source Server : workspace Source Server Type : MySQL Source Server Version : 50721 Source Host : localhost:3306 Source Schema : company Target Server Type : MySQL Target Server Version : 50721 File Encoding : 65001 Date: 22/05/2018 07...
true
3d1207182acb4f478ae375a2e9e73a137d41e089
SQL
souravidea/OOAD_MWP_Solver
/MWPDB.sql
UTF-8
75,589
2.734375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10deb1ubuntu0.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 05, 2019 at 06:47 PM -- Server version: 5.5.62-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
true
c3651bf35707cdb78822ebb65a73c6c17d6d0293
SQL
Xenothium/AlumniConnect
/database.txt
UTF-8
4,523
3.5625
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 08, 2012 at 07:25 PM -- Server version: 5.5.16 -- PHP Version: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_C...
true
28fdecaad8a39cbe7fa520008eb1089068ee4f94
SQL
Muqriz1010/FootballLeagueDataAnalytics
/dw_pl.sql
UTF-8
2,659
3.25
3
[]
no_license
delimiter $$ CREATE TABLE `dim_club` ( `dim_clubid` int NOT NULL, `clubid` char(3) NOT NULL, `clubname` varchar(50) DEFAULT NULL, PRIMARY KEY (`dim_clubid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci$$ delimiter $$ CREATE TABLE `dim_clubmatch` ( `dim_clubmatchid` varchar(3) NOT NUL...
true
34416a844d4b84039609096f27208fffe27ed7fa
SQL
mingael/Analytics
/collect.sql
UTF-8
1,564
3.15625
3
[]
no_license
-- Main create table collect ( idx integer not null auto_increment comment '일련번호', save_date date comment '저장일자', ip character varying(15) comment 'IP', app_time integer not null comment '접속일시', close_time integer not null comment '종료일시', primary key (idx) ) comment = '사용자정보수집'; -- Browser 정보 c...
true
a03189390889bb92640aab21e6dd7a683c14679c
SQL
FilipeVoges/SQL_Scripts
/mysql/Date Dimension.sql
UTF-8
2,114
4.28125
4
[ "MIT" ]
permissive
-- Define o Valor Pt-BR para o banco SET lc_time_names = 'pt_BR'; -- Verifica se a Tabela já não existe DROP TABLE IF EXISTS numbers_small; -- Cria a Tabela CREATE TABLE numbers_small (number INT); INSERT INTO numbers_small VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9); -- Verifica se a Tabela já não existe DROP TAB...
true
7c186f885b8b53cd624b267ef3aa9337d79b693f
SQL
SprintatGH/store
/prod/database/querys/cliente/ca_cliente_contacto.sql
UTF-8
807
2.953125
3
[ "MIT" ]
permissive
-- Creador: Juan pablo Basualdo -- Fecha: 19-07-2020 -- version: cliente -- Menu: administrador -- Estructura de tabla para la tabla `ca_cliente_ contacto` -- CREATE TABLE `ca_cliente_contacto` ( `id` bigint(20) UNSIGNED NOT NULL, `estado` int(1) NOT NULL, `nombre` varchar(255) COLLATE utf...
true
9906195a92f209ff717e571ad02299ccad857c76
SQL
mh-malekpour/DB-Course
/final_project/warehouse.sql
UTF-8
8,119
3.328125
3
[]
no_license
/* ___________________________________________ Create tables ___________________________________________ */ CREATE TABLE "translator" ( "translator_id" integer NOT NULL UNIQUE, "first_name" varchar(35) NOT NULL, "last_name" varchar(35) NOT NULL, "birth_date" DATE NOT NULL, "created_at" TIMESTAMP DEFAULT NOW(), ...
true
25f538fa3b50213326a588797bdae2fd2f8516c3
SQL
znjRoLS/pia
/dbdump/pia_conference.sql
UTF-8
3,040
3.109375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: localhost Database: pia -- ------------------------------------------------------ -- Server version 5.7.17-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!...
true
ef458d7d25261964c90b11d0cda6fe5e8b83e5f2
SQL
SebearChen/Capcom.shopping.ssm
/WebContent/capcom.shopping.ssm.sql
UTF-8
3,550
3.109375
3
[]
no_license
-- -------------------------------------------------------- -- 主机: localhost -- 服务器版本: 5.7.24 - MySQL Community Server (GPL) -- 服务器OS: Win64 -- HeidiSQL 版本: 10.2.0.5599 -- -------------------------------------------------------- /...
true
5c6cf0a5bd8d27e23bf7e2c98b7edfdae07b3792
SQL
jamesfulford/tutoring-database-scripts
/initialization/4reports/subjectList/whatDoTutorsTutor.sql
UTF-8
601
3.171875
3
[ "MIT" ]
permissive
clear screen clear columns clear break set linesize 66 set pagesize 50000 set underline = spool "whatDoOutTutorsTutor.txt" TTITLE LEFT 'What Do Our Tutors Tutor' RIGHT 'page' SQL.PNO SKIP 2- COLUMN CONTACT_ID HEADING 'ID' COL FIRSTNAME HEADING 'First|Name' FORMAT A12 COL LASTNAME HEADING 'Last|Name...
true
1a9f3c9be55ab99d40f2f1fd5fe20ed44f97b80a
SQL
ikioresko/job4j_design
/scripts/inner_students.sql
UTF-8
1,133
3.828125
4
[]
no_license
create table course( id serial primary key, num int ); create table students( id serial primary key, name varchar(100), age int, course_id int references course(id) ); insert into course(num) values ('1'); insert into course(num) values ('2'); insert into course(num) values ('3'); insert into cour...
true
aa238215db324617fa8c02d32ad433b38d73874d
SQL
vinitshahdeo/team-9
/care.sql
UTF-8
4,295
2.8125
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
-- MySQL dump 10.13 Distrib 5.7.22, for Linux (x86_64) -- -- Host: localhost Database: careworks -- ------------------------------------------------------ -- Server version 5.7.22-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_...
true
37a195717691762d2f26b7678c3c322e4d25d690
SQL
tran0202/thuviendulieu
/scripts/AFC Asian Cup/aac_kuwait1980.sql
UTF-8
6,694
3.453125
3
[]
no_license
# Insert new tournament # Replace all the tournament_id # 1980 AFC Asian Cup Kuwait INSERT INTO tournament (name, start_date, end_date, tournament_type_id, logo_filename, golden_goal_rule, points_for_win) VALUES ('1980 AFC Asian Cup Kuwait', '1980-09-15', '1980-09-30', 15, 'AFC.png', null, 2); INSERT INTO group_tour...
true
32aa42d2bbda4ba4a8837e41f43e18004ff2793e
SQL
MadLluks/wandee
/config/wandee.sql
UTF-8
5,016
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Client: localhost -- Généré le: Lun 19 Août 2013 à 20:28 -- Version du serveur: 5.5.24-log -- Version de PHP: 5.4.3 -- -- Base de données: wandee -- -- -------------------------------------------------------- SET time_zone = "+02:00"; -- -- St...
true
6b2f8d7016b4144da53145e96b675cbb3d1f7e4c
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/tables/MIG_GARANSEG.sql
ISO-8859-1
4,356
2.9375
3
[]
no_license
-------------------------------------------------------- -- DDL for Table MIG_GARANSEG -------------------------------------------------------- CREATE TABLE "AXIS"."MIG_GARANSEG" ( "NCARGA" NUMBER, "CESTMIG" NUMBER, "MIG_PK" VARCHAR2(50 BYTE), "MIG_FK" VARCHAR2(50 BYTE), "CGARANT" NUMBER(4,0), "NRIESG...
true
42cc8276784e77ab26feefc9a2fda4e20987368a
SQL
dulumary/java_web
/database/06_mysql_join/test/test03/test03.sql
UTF-8
5,147
3.296875
3
[]
no_license
# 1. 테이블 생성 CREATE TABLE `company` ( `id` int NOT NULL AUTO_INCREMENT primary key, `name` varchar(32) NOT NULL, `business` varchar(16) NOT NULL, `scale` varchar(8) NOT NULL, `headcount`int NOT NULL, `createdAt`timestamp DEFAULT CURRENT_TIMESTAMP, `updatedAt`timestamp DEFAULT CURRENT_TIMESTA...
true
89a507b168a430bd3e839cf1155b4caba4f55c43
SQL
dimitrivitulin/mycave
/mycave.sql
UTF-8
6,513
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : jeu. 01 juil. 2021 à 21:58 -- Version du serveur : 5.7.31 -- Version de PHP : 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
325d79265aa673037f3d810252c213cdbf5e54d5
SQL
pccode21/PythonLearn
/src/spider/football_player.sql
UTF-8
1,851
2.953125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : 114.67.111.196(京东云Docker) Source Server Type : MySQL Source Server Version : 50728 Source Host : 114.67.111.196:3306 Source Schema : test Target Server Type : MySQL Target Server Version : 50728 File Encoding : 65001 D...
true
6a7a0eeba63f910a13c7625311883c8f960a0ee2
SQL
AlexWattt/WPF_Demo
/query.sql
UTF-8
3,762
3.84375
4
[]
no_license
-----------GETS THE PLAYERS With names like X ('B' in this case)----------------- Select PLAYER_NAME as Name FROM player WHERE Name LIKE 'B%'; -----------GETS THE PLAYERS WITH RANK HIGHER THAN X (48 in this case)------------ Select P.player_name AS Name, Player_Attributes.overall_rating AS Rating FROM Player AS ...
true
7762ddd5d942f907141add9d8b60d7825bc91c35
SQL
georgetown-cset/ai-definitions-for-policymaking
/sql/wos_arxiv_categories.sql
UTF-8
930
4.125
4
[]
no_license
/* Identify the WoS category associated with each WoS publication in the analysis. Determine whether it's a category we've coded as having overlap with arXiv's coverage of fields. These codings are in `oecd_for_james.arxiv_wos_coverage`. */ with subject as ( select id, subject, cast(arxiv_over...
true
617dad2f612b438422c820e17656a80f9bec19c7
SQL
MaiconLan/aarf
/src/main/resources/flyway/V1__1.0.1.sql
UTF-8
21,747
3.421875
3
[]
no_license
-- Database generated with pgModeler (PostgreSQL Database Modeler). -- pgModeler version: 0.8.2 -- PostgreSQL version: 9.5 -- Project Site: pgmodeler.com.br -- Model Author: --- -- Database creation must be done outside an multicommand file. -- These commands were put in this file only for convenience. -- -- object:...
true
64ea764c78fd734f9d32e896a9d2ec42de065943
SQL
pgadea/Learn-T-SQL
/5.Where with Like/Where Like.sql
UTF-8
1,545
3.859375
4
[]
no_license
--Using the where clause with LIKE operator examples: --The like operator is used with the Where clause to find patterns Select * FROM [AdventureWorks2012].[Production].[Product] --filter the data using the column names Select Name, ProductNumber, Color, ListPrice FROM [AdventureWorks2012].[Production].[Product] ...
true
03e2a4602463f675ad61a1cedee4b59c89d131a5
SQL
gcnonato/secode
/application/modules/Ynfullslider/settings/my.sql
UTF-8
2,396
3
3
[]
no_license
-- -- Module insertion -- INSERT IGNORE INTO `engine4_core_modules` (`name`, `title`, `description`, `version`, `enabled`, `type`) VALUES ('ynfullslider', 'YN - Full Slider', '', '4.01', 1, 'extra') ; -- -- Admin menu items -- INSERT IGNORE INTO `engine4_core_menuitems` (`name`, `module`, `label`, `plugin`, `params`,...
true
da6a49e57913abe624f27a5eb01503f503c78563
SQL
kunxinlin/Banking-Application
/sql/bankapp-database-creation.sql
UTF-8
714
3.125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `bankapp`; USE `bankapp`; DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `first_name` VARCHAR(100) NOT NULL, `last_name` VARCHAR(100) NOT NULL, `balance` DECIMAL(12,2) NOT NULL, ...
true
6dc6aa573ff32d95dd82f6c347b934f0213cc1c3
SQL
AleksDik/SQL_RAB
/1.102 1.115 1.125 1.90 Выверка/1.102 Доработка интерфейса АРМ Выверка для статуса отсканировано/verify_rep_vyv_users.~prc
WINDOWS-1251
3,520
3.59375
4
[]
no_license
CREATE OR REPLACE PROCEDURE verify_rep_vyv_users (begin_date_ VARCHAR2, end_date_ VARCHAR2, cur_ IN OUT kurs3.curstype, type_ NUMBER := 1) AS -- -- , type_: 1 - -- -- 28.11.2011 BlackHawk -- #24.06.2013 Dikan -- BEGIN CASE WHEN type_ = 1 THEN OPEN cur_ FOR SELECT DECODE ( ...
true
c1ca26f3448caf68b32a7e823813cca652e25972
SQL
genbodev/jilfond
/sql.sql
UTF-8
1,359
2.953125
3
[]
no_license
-- -------------------------------------------------------- -- Хост: 127.0.0.1 -- Версия сервера: 5.5.45 - MySQL Community Server (GPL) -- ОС Сервера: Win32 -- HeidiSQL Версия: 9.3.0.4984 -- -------------------------------------------------------- /*...
true
050c9550927b416312fd3616fadfd5c34df0cbad
SQL
AdedejiArt/Adedeji_Sankoh_databasesql
/mwscdb (3).sql
UTF-8
8,448
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 15, 2020 at 06:31 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
9acd95ad5c6cadd66f1b1f66cd40d29492f52651
SQL
cristian-bedoya/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/7-cities.sql
UTF-8
559
4.1875
4
[]
no_license
-- Creates the database hbtn_0d_usa and the table cities (in the database hbtn_0d_usa). -- cities description: id INT unique, auto generated, can’t be null and is a primary key -- state_id INT, can’t be null and must be a FOREIGN KEY that references to id of the states table -- name VARCHAR(256) can’t be null CREATE DA...
true
3d8b524e28a233c36390887031983f31e0fc7a7c
SQL
andreammgcol/AirBnB_clone_v2
/setup_mysql_test.sql
UTF-8
364
2.59375
3
[]
no_license
-- script that creates a database hbnb_test_db with a user hbnb_test -- CREATE DATABASE IF NOT EXISTS hbnb_test_db; CREATE USER IF NOT EXISTS hbnb_test@localhost IDENTIFIED BY 'hbnb_test_pwd'; GRANT USAGE ON * . * TO hbnb_test@localhost; GRANT ALL PRIVILEGES ON hbnb_test_db. * TO hbnb_test@localhost; GRANT SELECT ON pe...
true
33d2d675efc906c2327b31e3cae8ea67540765d3
SQL
ayaz/MCollectiveAgentActionBackground
/bg.ddl
UTF-8
1,279
2.734375
3
[]
no_license
metadata :name => "Bg", :description => "Demonstrate a technique to run agent actions in background.", :author => "Ayaz Ahmed Khan", :license => "GPLv2", :version => "0.1", :url => "", :timeout => 25 action "run_bg", :description => ...
true
b3bbc84e3316871a65c27eb473c4393ca71aadc3
SQL
dev-shine/Protocol-Backend
/schemas/bridges.sql
UTF-8
481
2.90625
3
[]
no_license
CREATE TABLE bridges ( "id" INT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY (START WITH 1021 INCREMENT BY 97), "from" INT NOT NULL REFERENCES "elements" ("id"), "to" INT NOT NULL REFERENCES "elements" ("id"), "relation" SMALLINT NOT NULL REFERENCES "relations" ("id"), "tags" VARCHAR(300) DEFAULT '', "desc"...
true
212b56020b667cfb118a86a03c82b0e27800ab1b
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/02565_update_empty_nested.sql
UTF-8
700
3.1875
3
[ "Apache-2.0", "BSL-1.0" ]
permissive
DROP TABLE IF EXISTS t_update_empty_nested; CREATE TABLE t_update_empty_nested ( `id` UInt32, `nested.arr1` Array(UInt64), ) ENGINE = MergeTree ORDER BY id SETTINGS min_bytes_for_wide_part = 0, index_granularity = 8192, index_granularity_bytes = '10Mi'; SET mutations_sync = 2; INSERT INTO t_update_empty_nest...
true
b05a98161db1b7ed732ecfe72f50da4185fd0dbe
SQL
tdwwzxy/BBS
/bbs.sql
UTF-8
3,647
3.21875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : test Source Server Version : 50623 Source Host : 127.0.0.1:3306 Source Database : bbs Target Server Type : MYSQL Target Server Version : 50623 File Encoding : 65001 Date: 2015-06-07 19:13:41 */ SET FOREIGN_KEY_CHECKS=0; -- ----------...
true
d29abbc6abfef7e8f10e85948528db5ec9f52980
SQL
matt-winkler/demo-subdirectories
/dbt/tests/models/marts/core/dim_customers.sql
UTF-8
904
3.4375
3
[]
no_license
{{ config( materialized = 'table', transient=false ) }} with customer as ( select * from {{ ref('stg_tpch_customers') }} ), nation as ( select * from {{ ref('stg_tpch_nations') }} ), region as ( select * from {{ ref('stg_tpch_regions') }} ), final as ( select custo...
true
af4a1252898fff58b90c740b464f5dcd521eadbd
SQL
Jauhar-Wibisono/stand-by-dorayaki-backend
/setup.sql
UTF-8
782
3.609375
4
[]
no_license
DROP DATABASE IF EXISTS stand_by_dorayaki_db; CREATE DATABASE stand_by_dorayaki_db; USE stand_by_dorayaki_db; CREATE TABLE IF NOT EXISTS dorayaki( id_dorayaki BIGINT AUTO_INCREMENT, rasa VARCHAR(255) UNIQUE NOT NULL, deskripsi VARCHAR(255), gambar VARCHAR(255) NOT NULL, # karena mau nyimpen path PRIMARY KEY (id_d...
true
fc911c7a9c2ae98163a3755b2bbc43ad5b92f482
SQL
sircanist/clipper
/clipper-cli/src/test/scripts/v_Subj19Course.sql
UTF-8
204
2.859375
3
[ "Apache-2.0" ]
permissive
DROP VIEW v_Subj19Course CASCADE; CREATE OR REPLACE VIEW v_Subj19Course AS SELECT innerRel.x1 AS att1 FROM ( SELECT ca_0.individual AS x1 FROM concept_assertion ca_0 WHERE ca_0.concept=71 ) as innerRel
true
44464c27860dcfebf52a55e816063ef636c9d2e0
SQL
juanmetalmolina89/invent
/DB_IVE/35_PK_IVE_INVENTARIO.sql
UTF-8
10,437
2.640625
3
[]
no_license
create or replace PACKAGE "PK_IVE_INVENTARIO" is /******************************************************************************** DESCRIPCION : Paquete utilizado para agrupar todos los procedimientos y funciones para la administraci?n de inventarios REALIZADO POR : Luis Felipe Rue...
true
e7643bcb15856ae6f7f03fc650e0fc6d7f9766b8
SQL
jhekasoft/jhekasoft0
/inf/jhekasoft_structure.sql
UTF-8
4,972
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Июн 24 2013 г., 04:07 -- Версия сервера: 5.5.31-MariaDB-log -- Версия PHP: 5.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
true
d1bd8862e28aabeac97b86b7ae4192c6b2358e92
SQL
danielacapassi/projetobancodedados
/pedido.sql
UTF-8
2,075
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 24-Out-2020 às 20:15 -- Versão do servidor: 10.4.14-MariaDB -- versão do PHP: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
0a969a01c95ac0ca42efacf82a931e43ef894fb9
SQL
P79N6A/fast
/install/efast365/pro_report_base_order_collect.sql
UTF-8
8,867
3.921875
4
[]
no_license
DROP PROCEDURE IF EXISTS pro_report_base_order_collect; CREATE PROCEDURE `pro_report_base_order_collect`(kh_id INT,biz_date varchar(30) , OUT out_respones INT) mypro:BEGIN declare start_date varchar(30); declare end_date varchar(30); SET start_date = CONCAT(biz_date,' 00:00:00'); ...
true
68c72d0e46cbbb9b789ef4f6437eccd7a2f14f99
SQL
andkovs/railroadcompany
/src/main/resources/db/migration/V16__createTableRole.sql
UTF-8
198
2.53125
3
[]
no_license
CREATE TABLE `role` ( `role_id` bigint NOT NULL, `role_name` varchar(45) DEFAULT NULL, PRIMARY KEY (`role_id`), UNIQUE KEY `role_name_unq` (`role_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
true
30ea070263fd4bf29fe25ec36fa93a70a24684a6
SQL
wl1982ss/flask-tutorial
/flaskr/schema.sql
UTF-8
428
3.4375
3
[]
no_license
DROP TABLE IF EXISTS user; DROP TABLE IF EXISTS post; CREATE TABLE user( id INTEGER PRIMARY KEY AUTOINCREMENT, username TEXT UNIQUE NOT NULL, password TEXT NOT NULL ); CREATE TABLE post( id INTEGER PRIMARY KEY AUTOINCREMENT, author_id INTEGER NOT NULL, created TIMESTAMP NOT NULL DEFAULT CURRENT_T...
true
a883092f66d9e2fa166445860132ebf6d6a458e3
SQL
EdOber-DA/sql-challenge
/EmployeeSQL/Code/EmployeeSQL_Schema.sql
UTF-8
1,607
4.0625
4
[]
no_license
-- Schema for sql-challenge - EmployeeSQL -- Create tables that other tables are dependent on first to avoid foreign key creation in dependent tables CREATE TABLE Title ( Title_ID varchar(5) NOT NULL PRIMARY KEY, Title varchar(20) NOT NULL ); CREATE TABLE Department ( Department_Number v...
true
652d2d9357274e2129faa56125254992d624cd95
SQL
KazminAA/Cinema
/src/main/resources/cinema_schema.sql
UTF-8
5,905
3.71875
4
[]
no_license
-- MySQL Script generated by MySQL Workbench -- 09/22/16 13:32:08 -- 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
8f63494cf92024cd72eba794009e29968ef69060
SQL
Letractively/chunksofcode
/web-wings-mines/db/setup-db.sql
UTF-8
643
2.953125
3
[]
no_license
DROP TABLE tminesweeperhighscore; CREATE TABLE tminesweeperhighscore ( player_name VARCHAR (15) NOT NULL, game_millisecs INT8 NOT NULL ); INSERT INTO tminesweeperhighscore (player_name, game_millisecs) VALUES ('andre', 15000); INSERT INTO tminesweeperhighscore (player_name, game_millisecs) VALUES ('andre', 14...
true
d2e99f690b894b57493760baabc70d3052173133
SQL
Zamanro/lab-ci
/BBB/application/registers.sql
UTF-8
2,501
2.890625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- โฮสต์: localhost -- เวลาในการสร้าง: -- เวอร์ชั่นของเซิร์ฟเวอร์: 5.6.12-log -- รุ่นของ PHP: 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 */; /*!40101 SE...
true
6ffb7df26c62d7951a1f96e080e5094d3fe60ca7
SQL
blockchain-etl/bitcoin-etl-airflow
/dags/resources/stages/enrich/sqls/outputs.sql
UTF-8
442
2.71875
3
[ "MIT" ]
permissive
SELECT transactions.hash as transaction_hash, transactions.block_hash, transactions.block_number, transactions.block_timestamp, outputs.index, outputs.script_asm, outputs.script_hex, outputs.required_signatures, outputs.type, outputs.addresses, outputs.value FROM `{{params.de...
true
6adad465a12ed954808b5caadfb1e5a3d2eefc94
SQL
XingXing2019/LeetCode
/Database/LeetCode 612 - ShortestDistanceInAPlane/ShortestDistanceInAPlane_MySQL.sql
UTF-8
210
3.125
3
[]
no_license
select distinct min(round(sqrt(abs(p1.x - p2.x) * abs(p1.x - p2.x) + abs(p1.y - p2.y) * abs(p1.y - p2.y)), 2)) as shortest from point_2d p1 cross join point_2d p2 where abs(p1.x - p2.x) + abs(p1.y - p2.y) <> 0
true
23b2c7416e5c22c0b19f242a90e9e5a57e8b7f81
SQL
charliejharrison/elefriends
/src/SQL/flagged_posts_with_unique_types.sql
UTF-8
501
3.953125
4
[]
no_license
SELECT DISTINCT posts.id post_id, content_flag_types.name flag_type, posts.text post_text FROM content_flaggings INNER JOIN content_flag_types ON content_flaggings.content_flag_type_id = content_flag_types.id INNER JOIN content_flags ON content_flaggings.content_flag_id ...
true
53bc1399ab41545677caffb3e26a872b5e4149ca
SQL
dev-with-dave/sql-course
/update.sql
UTF-8
1,717
4.21875
4
[]
no_license
/* La commande UPDATE permet d’effectuer des modifications sur des lignes existantes. Très souvent cette commande est utilisée avec WHERE pour spécifier sur quelles lignes doivent porter la ou les modifications. */ -- La syntaxe basique d’une requête utilisant UPDATE est la suivante : UPDATE nom_de_table ...
true
f2c501dd2393c570acb1a5956b5d6d15c9347f45
SQL
deanlxvii/ci
/app/delicious/db/sqlite/delicious.ddl
UTF-8
2,515
3.546875
4
[]
no_license
CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL UNIQUE, "created_at" datetime, "updated_at" datetime); CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url" v...
true
70438d9fa94e99af40f66fbfe09c4011afecd270
SQL
denini08/Youtube
/php-webapp-mvc/sql.sql
UTF-8
803
3.75
4
[]
no_license
create database mydb; use mydb; create table if not exists users ( id int auto_increment primary key, nickname varchar(15) not null unique, email varchar(40) not null unique, password varchar(60) not null, created_at timestamp default current_timestamp(), updated_at timestamp default current_timestamp() ); creat...
true
10eef799e3bde646b902abf11fcd706f37186478
SQL
danielmuxel/sqlite-express-api
/database/database.sql
UTF-8
1,531
3.640625
4
[]
no_license
CREATE TABLE IF NOT EXISTS projects ( id integer PRIMARY KEY NOT NULL, name text NOT NULL ); CREATE TABLE IF NOT EXISTS customers ( id integer PRIMARY KEY NOT NULL, firstname text NOT NULL, lastname text NOT NULL, phone text, email text ); CREATE TABLE IF NOT EXISTS addresses ( id integer PRIMARY KEY ...
true
f4a1a310d12116dbce03fd2ff6037708a90f801e
SQL
luutruonghailan/hoc-lap-trinh-online-zendvn
/khoa-hoc-lap-trinh-php/ch07/sql/02-where.sql
UTF-8
1,604
4
4
[]
no_license
-- 07. Hiển thị tất cả thông tin của kiến trúc sư "le thanh tung" SELECT * FROM architect WHERE name = "le thanh tung"; -- 08. Hiển thị tên, năm sinh các công nhân có chuyên môn hàn hoặc điện SELECT name, birthday, skill FROM worker WHERE skill = "han" OR skill = "dien"; -- 09. Hiển thị tên các công nhân có chuyên ...
true
de48cc0f34b56e176a5f1bc45960e424607cbcd4
SQL
snowplow-starter-aws/5-data-modeling
/src/main/resources/db/migration/V1_0__atomic-def.sql
UTF-8
5,107
3.21875
3
[ "Apache-2.0" ]
permissive
-- Copyright (c) 2013-2018 Snowplow Analytics Ltd. All rights reserved. -- -- This program is licensed to you under the Apache License Version 2.0, -- and you may not use this file except in compliance with the Apache License Version 2.0. -- You may obtain a copy of the Apache License Version 2.0 at http://www.apache.o...
true
09f42f30c095f03e01b5fa085ffa85e3a854f36c
SQL
ftsaylon/infohive-server
/db/schema.sql
UTF-8
9,424
3.21875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.22, for Linux (x86_64) -- -- Host: localhost Database: dabar -- ------------------------------------------------------ -- Server version 5.7.22 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40...
true
4c20f1a0b1585ac3bddaeaa74850964522283078
SQL
neWorld864/Oracle
/PRACTICE.sql
UHC
1,173
3.25
3
[]
no_license
SELECT EMP_ID, EMP_NAME, DEPT_CODE, SALARY FROM EMPLOYEE WHERE DEPT_CODE IS NULL; /* 213 ϵ 2320000 218 ̿ 2890000 */ SELECT EMP_ID, EMP_NAME, DEPT_CODE, SALARY FROM EMPLOYEE WHERE (DEPT_CODE, SALARY) IN (SELECT DEPT_CODE, MAX(SALARY) FROM EMPLOYEE ...
true
ee0261ea0548f63539f47e6db1b3ff865fb7905f
SQL
nadiasfmh/10119278Nadiasitifatimah
/10119278_kepegawaian.sql
UTF-8
4,155
3.078125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 14 Agu 2021 pada 12.51 -- Versi server: 10.4.20-MariaDB -- Versi PHP: 7.3.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
76810acd3301e9dbd0b6c6574870b24baf9ce8d0
SQL
baozong-gao/ubs_mag
/control-service/src/test/resources/后台表.sql
UTF-8
11,301
3.71875
4
[]
no_license
--1. 创建系统资源表 create table TBL_BTS_SYS_FUNCTION ( func_id VARCHAR2(20) not null, func_name VARCHAR2(20), func_father_id VARCHAR2(20), func_desc VARCHAR2(100), func_remark VARCHAR2(255), func_disable_tag CHAR(1) default 1, ...
true