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
b2b3811a7e6ec11fba9884088d3e73e39e1322aa
SQL
bgulbis/pci_antiplatelets
/qry/emma/vitals.sql
UTF-8
3,950
3.765625
4
[]
no_license
WITH ICD AS ( SELECT DISTINCT NOMENCLATURE.NOMENCLATURE_ID FROM NOMENCLATURE WHERE REGEXP_INSTR(NOMENCLATURE.SOURCE_IDENTIFIER, '^027[0-3]') > 0 AND NOMENCLATURE.SOURCE_VOCABULARY_CD = 641836527 -- ICD-10-CM AND NOMENCLATURE.PRINCIPLE_TYPE_CD = 761 -- Procedure ), PATIENTS AS ( SELECT DISTINCT ENCOUNTE...
true
31728b4dbfac018542ed04310f1151a1291439d6
SQL
MaitRaidmae/AppAnalyzerPLSQL2
/UT_STARTUPS_CONSTRAINT.sql
UTF-8
1,147
3.140625
3
[]
no_license
-------------------------------------------------------- -- Constraints for Table UT_STARTUPS -------------------------------------------------------- ALTER TABLE "HUNDISILM"."UT_STARTUPS" MODIFY ("STARTUP_ID" NOT NULL ENABLE); ALTER TABLE "HUNDISILM"."UT_STARTUPS" MODIFY ("INDEX_NO" NOT NULL ENABLE); ALTER TAB...
true
557fa5501c2523f76537d8a2529c5dfc94d124dd
SQL
CamBrown101/inventory-control-BE
/db/schema/06_storage_area.sql
UTF-8
148
2.5625
3
[]
no_license
CREATE TABLE storage_area ( id SERIAL PRIMARY KEY NOT NULL, name VARCHAR(255) NOT NULL, venue INTEGER REFERENCES venue(id) ON DELETE CASCADE )
true
94ca5b4aa4833bdcbb1e48830dab227567ab606f
SQL
hulk-baba/SplitSense
/split.sql
UTF-8
6,735
3.1875
3
[]
no_license
-- MySQL dump 10.15 Distrib 10.0.27-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: splitwise -- ------------------------------------------------------ -- Server version 10.0.27-MariaDB-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARA...
true
8de425f7418a6596349a4172cb750d330cde4930
SQL
23jonathan23/aspect-oriented-programming-unipampa-2021
/Scripts/Database/Table/Customer.sql
UTF-8
275
3.03125
3
[]
no_license
CREATE TABLE Customer ( CustomerId SERIAL PRIMARY KEY, Name VARCHAR(100) NOT NULL, Email VARCHAR(100) NOT NULL, BirthDate DATE NOT NULL, AddressId INTEGER NOT NULL REFERENCES Address(AddressId), CreatedAt TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP )
true
425898224516d65dd14646850768c8dad4f13992
SQL
AbrQ/PLSQL-Course
/Colecciones/Colecciones1.sql
ISO-8859-10
505
2.53125
3
[]
no_license
--Colecciones declare type l_empleados is table of varchar2(50); v_tamano number; v_empleados l_empleados := l_empleados('Juan','Pedro','Carlos'); begin v_empleados.extend; --agregar nuevo slot de memoria v_empleados(4) := 'Marcelo'; v_empleados.extend; v_empleados(5) := 'Fernando'; dbms_output.p...
true
d36f447c09a3f4104db81ed39de06f40c589e45c
SQL
patelamalk/SQL-Tutorial
/Intro/select.sql
UTF-8
156
2.671875
3
[]
no_license
/* Get the name, state and zip code of the company that have complaints filed against them. */ SELECT company, zip_code, state_name FROM consumer_complaints
true
117ebcc114234827ec7efd2b8350f90d41a5f937
SQL
Rqwannn/Pendataan_Surat
/public/database/simail.sql
UTF-8
4,632
3.21875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 11 Okt 2021 pada 11.15 -- Versi server: 10.4.17-MariaDB -- Versi PHP: 8.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
true
db9d9c0a335175f7ac28aea3f04133d2adc90ade
SQL
fernandOlle/Scripts-sql
/apostila7BancoDeDados.sql
ISO-8859-1
9,450
4.03125
4
[]
no_license
-- Exercicio 1 SELECT funcionario.nome, departamento.id, departamento.sigla FROM funcionario JOIN departamento ON departamento.id = funcionario.id_departamento; -- ----------------------------------------------------------------------------------------------------- -- Exercicio 2 SELECT funcionario.no...
true
639b6cd3a98b4eac9918ee0ddf67fccb9b1bc150
SQL
quentin-pla/Gestion-Bibi-Hotels
/Base de données/Functions.sql
UTF-8
327
2.65625
3
[]
no_license
/* Fonction permettant d'avoir la promotion pour les clients réguliers */ DELIMITER $$ CREATE OR REPLACE FUNCTION getRegularClientDiscount() RETURNS INTEGER(2) RETURN 20; $$ /* Fonction permettant d'avoir la promotion de groupes */ DELIMITER $$ CREATE OR REPLACE FUNCTION getGroupDiscount() RETURNS INTEGER(2) RETURN 10...
true
a4fcb91d0034b25c3b867becf08d82af136b64b9
SQL
SethJohnsonPDX/database-sql-coursework
/SQL_Server_LMS_Project/LMS_Project_QueryFour.sql
UTF-8
540
3.546875
4
[]
no_license
USE db_lms_seth; SELECT * FROM tbl_borrower; SELECT * FROM tbl_library_branch; SELECT * FROM tbl_book_loans; SELECT * FROM tbl_book; CREATE PROC LMS.usp_queryFour AS SELECT c.BranchName, a.DueDate, e.Title, b.BorrowName, b.BorrowAddress FROM tbl_book_loans a INNER JOIN tbl_borrower b ON b.CardNo = a.CardN...
true
88a6b5dbceb1d24e48653ce526e2cc182dafa10c
SQL
calvin-liang/CalDevSupplyChain
/src/main/resources/db/migration/V001_1__company.sql
UTF-8
172
2.640625
3
[]
no_license
CREATE TABLE IF NOT EXISTS companies ( id BIGINT AUTO_INCREMENT NOT NULL, company_name VARCHAR(255), PRIMARY KEY (id) ) ENGINE = InnoDB DEFAULT CHARSET = utf8;
true
e967dc0ecf5a65c0098947f2e8dd2b8c350e6838
SQL
KirstynNatavio/RailroadSystem
/RailroadSQL_Files/FILL_SPECIALFARE.sql
UTF-8
871
2.5625
3
[]
no_license
DELIMITER // CREATE PROCEDURE FILL_SPECIALFARE() BEGIN INSERT INTO `SPECIAL_FARE` (`TYPE`, `FACTOR`) VALUES ('10 Days', '1.15'); INSERT INTO `SPECIAL_FARE` (`TYPE`, `FACTOR`) VALUES ('15 Days', '1.1'); INSERT INTO `SPECIAL_FARE` (`TYPE`, `FACTOR`) VALUES ('3 Days', '1.4'); INSERT INTO `SPECIAL_FARE` (`TYPE...
true
174213c2d930f3599ef82c39d10b6d92bc5611af
SQL
MikeRena77/sdlw
/SQL/Database/Listpackages.sql
UTF-8
529
3.03125
3
[]
no_license
SET NEWPAGE 0 SET SPACE 0 SET LINESIZE 80 SET PAGESIZE 0 SET ECHO ON SET FEEDBACK ON SET HEADING ON SET MARKUP HTML ON SET ESCAPE \ spool log/packages_120201.html select hp.PACKAGENAME, hp.PACKAGEOBJID, he.environmentname, he.envobjid, hs.statename, hs.stateobjid from harenvironment he, harstate hs, harpackage hp...
true
dc49f681ada58530e229edb88df5772b1ff6e720
SQL
PNNL-Comp-Mass-Spec/DBSchema_PgSQL_DMS
/dms/ont/ont.t_cv_pato.sql
UTF-8
1,330
3.328125
3
[ "Apache-2.0" ]
permissive
-- -- Name: t_cv_pato; Type: TABLE; Schema: ont; Owner: d3l243 -- CREATE TABLE ont.t_cv_pato ( entry_id integer NOT NULL, term_pk public.citext NOT NULL, term_name public.citext NOT NULL, identifier public.citext NOT NULL, is_leaf smallint NOT NULL, parent_term_name public.citext NOT ...
true
c66a8f485b3ffb43489a4177e3d5e84982321c5b
SQL
wkdalswn11/jsp20201103
/WebContent/WEB-INF/sql/functionEx3.sql
UHC
1,629
4.15625
4
[]
no_license
SELECT sysdate FROM dual; SELECT sysdate + 1 FROM dual; SELECT sysdate - 1 FROM dual; SELECT ename, hiredate, sysdate - hiredate FROM employee; SELECT ename, hiredate, ROUND(sysdate - hiredate) FROM employee; SELECT ROUND(sysdate) FROM dual; SELECT ROUND(sysdate, 'YEAR') FROM dual; SELECT ROUND(sysdate, 'MONTH') FROM...
true
f69d7f79ce7b82f36e2951799d118159d997e5d3
SQL
AroundMir/DailyMail
/dailymail-portlet/target/dailymail-portlet-0.0.1-SNAPSHOT/WEB-INF/sql/tables/tables-oracle.sql
UTF-8
610
2.90625
3
[]
no_license
create table article ( articleId number(30,0) not null primary key, authorId number(30,0), name VARCHAR2(75 CHAR) null, text_ VARCHAR2(75 CHAR) null, date_ timestamp null, status VARCHAR2(75 CHAR) null, editorComment VARCHAR2(75 CHAR) null ); create table dailymail_Articles_Reviews ( articleId number(30,0) not...
true
97b9e334ffcb3ec363e99adf11e0e8dcb5c34777
SQL
grohr91/gpt
/DB/15-06-2016-gpt.sql
UTF-8
22,480
3.1875
3
[]
no_license
/* SQLyog Community v12.2.4 (64 bit) MySQL - 5.7.9-log : Database - gpt ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECK...
true
37ecaff0bb5ff4cd0ba417acc9ceb5eaf189968a
SQL
adomoreira/1BLC---Trabalho-WEB-DEVELOPMENT
/cadastro.sql
UTF-8
1,636
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 13-Jan-2020 às 03:09 -- Versão do servidor: 10.4.10-MariaDB -- versão do PHP: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
true
c1c183cadce2d7198802385b819d983cc7cf5c3c
SQL
KaterynaTrushko/sql
/10/SQLQuery5.sql
UTF-8
600
3.03125
3
[]
no_license
/*ЗАДАНИЕ 5. Используя функцию substring() добавьте в запрос из задачи 4 столбец c подстрокой из столбца os которая начинается с номера позиции символа «.» плюс 1 длиной 1 символ. Дайте название столбцу*/ select os ,CHARINDEX('.',os) as symbol ,CHARINDEX('v',os) as symbol_V ,SUBSTRING(os,CHARINDEX('v',os)+1,CHARINDEX...
true
fb64315c388a195093242f2f83f02f58b0e72ec8
SQL
samszo/jardindesconnaissances
/bdd/query/excodeGetListeBook.sql
UTF-8
507
3.4375
3
[]
no_license
SELECT d.doc_id, d.titre, d.tronc, d.url, dB.doc_id bIdDoc, dB.titre bTitre, dB.tronc bTron, dB.data bData, dB.url bUrl FROM flux_doc d INNER JOIN flux_rapport r ON r.src_id = d.doc_id AND r.src_obj = 'doc' AND r.dst_obj = 'tag' INNER JOIN flux_tag t ON t.code = 'liste' ...
true
ba9d99baf2b91c5d5ad49af2fa52b1dfbd58b285
SQL
estafette/estafette-ci-db-migrator
/migrations/00081_add_organizations_and_groups_columns_to_releases_table.sql
UTF-8
513
3.140625
3
[ "MIT" ]
permissive
-- +goose NO TRANSACTION -- +goose Up -- SQL in this section is executed when the migration is applied. ALTER TABLE releases ADD organizations JSONB, ADD COLUMN groups JSONB; CREATE INDEX releases_organizations ON releases USING GIN (organizations); CREATE INDEX releases_groups ON releases USING GIN (groups); -- +goos...
true
f9aa99d5fb26b0c28f942a1413d0a30b7b0c5aad
SQL
gluefinance/PgLog
/views/View_PgLog_Last.sql
UTF-8
818
2.546875
3
[]
no_license
CREATE VIEW View_PgLog_Last AS SELECT PgLogRows.PgLogRowID, PgLogRows.LogTime, PgLogRows.Username, PgLogRows.DatabaseName, PgLogRows.ProcessID, PgLogRows.ConnectionFrom, PgLogRows.SessionID, PgLogRows.SessionLineNum, PgLogRows.CommandTag, PgLogRows.SessionStartTime, PgLogRows...
true
97cef11699fd2f359136f8ad5aea64c048bfa474
SQL
pacmad/Cinema-3
/resources/cinema.sql
UTF-8
1,962
3.109375
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; CREATE TABLE `movies...
true
e9da9cf57c02d6ba7b7e2fa735f4224cf78122fe
SQL
gullinbursti/VolleyBackend
/bin/data_schemas/hotornot-dev-schema-sc0005-01.sql
UTF-8
330
2.859375
3
[]
no_license
ALTER TABLE tblChallengeParticipants ADD id INT PRIMARY KEY AUTO_INCREMENT FIRST; CREATE TABLE `tblChallengeParticipantSubjectMap` ( `challenge_participant_id` int(10) unsigned NOT NULL, `subject_id` int(10) unsigned NOT NULL, PRIMARY KEY (`challenge_participant_id`, `subject_id`) ) ENGINE=InnoDB DEFAULT CHARS...
true
840c64012e075545efb910574f817eabd9ace87b
SQL
mizuo/201806-blogit
/conf/evolutions/default/2.sql
UTF-8
305
2.625
3
[ "MIT" ]
permissive
# --- !Ups create table applicant ( email_address varchar(255) not null, password varchar(64) not null, applied_at timestamp not null, constraint pk_applicant primary key (email_address) ); # --- !Downs drop table if exists applicant;
true
04455aed092b12f806aae8dd61bc02791224fb4e
SQL
CUBRID/cubrid-testcases
/sql/_23_apricot_qa/_03_i18n/ko_KR/_11_data_type/_03_time/cases/time001.sql
UTF-8
532
2.515625
3
[ "BSD-3-Clause" ]
permissive
--+ holdcas on; set names utf8; set system parameters 'intl_number_lang = ko_KR'; set system parameters 'intl_date_lang = ko_KR'; create table t( a time); insert into t value(time '1:15:45 pm' ); insert into t value(time '16:08:33 am' ); insert into t value(time '1:15' ); insert into t value('16:08:33' ); insert into t...
true
a14491add3e3aaff16f861c95bf72916d7ef3aed
SQL
onozaty/attendance-recorder
/src/main/resources/db/migration/V001__create-schema.sql
UTF-8
196
2.5625
3
[ "Apache-2.0" ]
permissive
CREATE TABLE attendances ( id INT PRIMARY KEY AUTO_INCREMENT, user_name VARCHAR(100) NOT NULL, type VARCHAR(10) NOT NULL, -- COME / LEAVE date DATE NOT NULL, time TIME NOT NULL );
true
7db5fed60bbddc97693f5c17ff04fa7fcdb06125
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/01926_bin_unbin.sql
UTF-8
1,405
3.421875
3
[ "Apache-2.0", "BSL-1.0" ]
permissive
select bin(''); select bin(0); select bin(1); select bin(10); select bin(127); select bin(255); select bin(256); select bin(511); select bin(512); select bin('0'); select bin('10'); select bin('测试'); select bin(toFixedString('测试', 10)); select bin(toFloat32(1.2)); select bin(toFloat64(1.2)); select bin(toDecimal32(1.2,...
true
e3283790d76fb1335e58a868f2b3c5e58bcba231
SQL
rodrigo100/proyectoBiblioteca
/proyectolaravel.sql
UTF-8
6,785
3.015625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 06-04-2017 a las 00:34:15 -- Versión del servidor: 5.7.14 -- Versión de PHP: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
true
685cda8c803d6d4c049a80f42d3da5d8945909c1
SQL
a-morsalin/node-js-crud
/node_db.sql
UTF-8
1,957
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 07, 2018 at 06:37 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
02b051d3493777576851bb55be6cac1e04f06969
SQL
WyzaXX/CSharp_Programmer_SoftUni
/DataBases_Basics/1.Introduction/UsersTableWithManipulations.sql
UTF-8
1,400
3.796875
4
[]
no_license
CREATE TABLE Users( Id BIGINT PRIMARY KEY IDENTITY NOT NULL, Username VARCHAR(30) UNIQUE NOT NULL, [Password] VARCHAR(26) UNIQUE NOT NULL, Picture VARBINARY(MAX) CHECK(DATALENGTH(Picture) <= 900*1024), LastLoginTime DATETIME2 NOT NULL, IsDeleted BIT NOT NULL ) INSERT INTO Users(Username,[Password],La...
true
0179ed66b638e3d1d2532ec55379dea89b88319c
SQL
WillZWL/project
/database/change script/itechdynamic.com/20110808.sql
UTF-8
1,099
3.46875
3
[]
no_license
CREATE TABLE `country_state` ( `country_id` char(2) NOT NULL COMMENT 'International country code (2 characters)', `lang_id` varchar(16) NOT NULL COMMENT 'e.g. zh-cn, zh-tw, en and etc.', `name` varchar(64) NOT NULL DEFAULT '' COMMENT 'State/Possession Name', `state_id` varchar(5) NOT NULL COMMENT 'State/Pos...
true
c070b060bbd48fb91626700a0e9ac94e266a5873
SQL
hngerebara/bigquery-etl
/sql/moz-fx-data-shared-prod/stripe/subscription_volume/view.sql
UTF-8
1,013
4.125
4
[]
no_license
CREATE OR REPLACE VIEW `moz-fx-data-shared-prod.stripe.subscription_volume` AS WITH subscriptions AS ( SELECT DATE(start_date) AS start_date, DATE(trial_end) AS trial_end, COALESCE(DATE(ended_at), CURRENT_DATE) AS end_date, products_v1.name AS product, FROM `moz-fx-data-shared-prod`.stripe_der...
true
a93ec2f86ea8411626a15dbd3c61724b670af108
SQL
Kathia1999/teste02
/create table disciplinas.sql
UTF-8
283
3.015625
3
[]
no_license
create table disciplinas( id int not null auto_increment, nome varchar(200) not null, cd_curso int not null, conteudo varchar(500), cargahoraria int, nomeprofessor varchar(200), semestre int, primary key (id), constraint disciplina_curso FOREIGN key (cd_curso) references curso(id) )
true
5626963e859d8d67cc8f438363ba7c16eaa5bfc5
SQL
garridocheny/Trabajos
/EasyGarden/WebContent/db/EasyGardenDB.sql
UTF-8
7,603
3.296875
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Thu Nov 9 11:58:23 2017 -- 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='TR...
true
60559f218d60c10e12889dfa1a4f704b86c4b0d8
SQL
carlosferdon83/PruebaWebServiceSOAP
/src/main/resources/scripts/2 - backup.sql
UTF-8
12,978
3.015625
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: Carlos Fernando * Created: 1/10/2019 */ -- -- PostgreSQL database dump -- -- Dumped from database ve...
true
d4c60b8fd3fd320cd7843c6506dbd4c4b0878f6f
SQL
likelion-syu/syu_clubs_api
/db/queries/clubs.sql
UTF-8
6,736
3.125
3
[]
no_license
-- 동아리 분류 삽입 -- 문화 / 체육 분과 insert club_types (club_type_name) values('음악'); insert club_types (club_type_name) values('체육'); insert club_types (club_type_name) values('문화'); insert club_types (club_type_name) values('공연'); -- 종교 / 봉사 분과 insert club_types (club_type_name) values('봉사'); insert club_types (club_type_nam...
true
68a6d0734c370fb3afe7da545798d688d4ad9f60
SQL
Jodiel-Briesemeister/trybe-exercises
/exercises/bloco_21/exercises[21.1].sql
UTF-8
1,928
3.875
4
[]
no_license
SELECT * FROM sakila.film; SELECT film_id, title, IF(title = 'ACE GOLDFINGER', 'Já assisti a esse filme', 'Não conheço o filme') AS 'TEST' FROM sakila.film; -- -- -- -- ----------- SELECT title, rating, CASE WHEN rating = 'G' THEN 'Livre para todos' WHEN ra...
true
315bb06e788a0aa79928d326bf68884525f0cc0b
SQL
zszxz/study-mybatis
/sql/plugin.sql
UTF-8
256
2.6875
3
[]
no_license
CREATE TABLE `order` ( `id` int(11) NOT NULL COMMENT '订单编号', `order_name` varchar(255) DEFAULT NULL COMMENT '订单名称', `create_time` datetime DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
true
16e1b832c15d44617cda38d47a7fadf72322538a
SQL
testusuke/Man10Mail
/src/main/resources/mail_block_list.sql
UTF-8
175
2.890625
3
[ "Apache-2.0" ]
permissive
create table mail_block_list ( id int auto_increment, to_player VARCHAR(36) not null, from_player VARCHAR(36) not null, constraint mail_block_list_pk primary key (id) );
true
f5641d9ccc8cbb602999778bd254ddc0283e28c5
SQL
petarbasta/Database-Research
/McGill/db2 queries TEMP/q10.1.sql
UTF-8
179
3.140625
3
[]
no_license
SELECT ccode, term, grade FROM enroll e WHERE e.sid = 12345678 AND EXISTS ( SELECT * FROM course WHERE dept = 'computer science' and ccode = e.ccode ) ORDER BY ccode, term;
true
f222761aba21b7234d59f241e098cc7a3b4cb78d
SQL
ITISummer/SpringFamily
/Spring4/MySQL/users.sql
UTF-8
1,200
2.953125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 80012 Source Host : localhost:3306 Source Schema : spring_family Target Server Type : MySQL Target Server Version : 80012 File Encoding : 65001 Date: 06/06/2...
true
789922cff6b2ca8c70e65249900ea4afc4b24322
SQL
dickanirwansyah/SIMPLE_CRUD_PHP
/crud_mysqli.sql
UTF-8
1,172
3
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='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema crud_mysq...
true
60223696520f058951a9bfd75cebaa7e59c42ff5
SQL
LiamBirt/dpc-app
/dpc-go/dpc-attribution/migrator/migrations/2_create_group_table.up.sql
UTF-8
384
3.125
3
[ "CC0-1.0" ]
permissive
CREATE TABLE "group" ( id uuid DEFAULT gen_random_uuid() PRIMARY KEY, organization_id uuid NOT NULL, version bigint DEFAULT 0, created_at timestamp with time zone DEFAULT now(), updated_at timestamp with time zone DEFAULT now(), info jsonb NOT NULL, CONSTRAINT fk_organization FOREIGN...
true
24fe1b011ebe7f3511f3d539f1ff8ced314c0ff2
SQL
akash-ht/Shine_Reports
/Sale Activation Report/sale_activation.sql
UTF-8
1,602
3.84375
4
[]
no_license
SELECT REPLACE(B.name, ',', ';') AS 'Package Name', DATE_FORMAT(A.created_date, "%d-%b-%Y") AS 'Sale Activation Date', DATE_FORMAT(A.expiry_date, "%d-%b-%Y") AS 'Sale Valid for use Date', C.first_name AS 'Account Manager Name', A.id AS 'Transaction ID', REPLACE(A.sales_order_no, " ","") AS 'Sales Order No.', A.company_...
true
b3ef5c814adfc383d87ec899af4c3d5e6e3684a4
SQL
cpf-se/dalico-admin
/schema/login_attempts.sql
UTF-8
459
3.359375
3
[]
no_license
drop table if exists login_attempts restrict; drop sequence if exists login_attempts_id_seq restrict; create sequence login_attempts_id_seq; create table login_attempts ( id integer not null default nextval('login_attempts_id_seq'), ip_address inet not null, login varchar(50) not null, time timestamp ...
true
db20e5a9943a40c99cf6f44858f9687fa74fbb37
SQL
codeisperfect/aht
/php/sql/q6.sql
UTF-8
946
3.828125
4
[]
no_license
select temp2.*,apphistory.num_applied from ( select temp1.* from ( select temp.*,(rcmnd.cid) as isrcm from ( select users.name,company.cid,company.canappinall,company.positions,student.sid, student.deptt as mydept,company.deptt as depallowed ,company.num_round , (student.10thmarks-company.10thmarks) as 10th...
true
92b1c0adb5f17d61d77773c055799014e670f2c0
SQL
jubaetjeasun/supply-Chain-Management
/PackageBody.sql
UTF-8
3,230
3.390625
3
[]
no_license
SET SERVEROUTPUT ON; CREATE OR REPLACE PACKAGE BODY features IS PROCEDURE localTransparency_read( id IN INT) IS sup_name VARCHAR(20); sup_name1 VARCHAR(20); flag INT; BEGIN flag :=1; IF (flag = 1) THEN SELECT name INTO ...
true
56292a78a4b24f4919ab0c664d1cc5b9330d82ad
SQL
GregoMac1/EjerciciosDBD
/p4ej3D.sql
UTF-8
4,344
4.25
4
[]
no_license
/* Ejercicio 3 Club=(codigoClub, nombre, anioFundacion, codigoCiudad(FK)) Ciudad=(codigoCiudad, nombre) Estadio=(codigoEstadio, codigoClub(FK), nombre, direccion) Jugador=(DNI, nombre, apellido, edad, codigoCiudad(FK)) ClubJugador(codigoClub, DNI, desde, hasta) 1. Reportar nombre y anioFundacion de aquellos clubes de...
true
ebbb0c40e200094b00c77b79258c2c368780d4d3
SQL
fenago/Oracle12cCourse
/ora12labs/LAB62.SQL
UTF-8
391
3.25
3
[]
no_license
create cluster clus_deptno (deptno number(2)) storage (initial 10k next 10K PCTINCREASE 0) pctfree 50 pctused 30; CREATE INDEX DEPTNO_INDX ON CLUSTER CLUS_DEPTNO; CREATE TABLE NEWDEPT CLUSTER CLUS_DEPTNO (DEPTNO) AS SELECT * FROM DEPT; CREATE TABLE NEWEMP CLUSTER CLUS_DEPTNO (DEPTNO) AS SELECT * FROM EMP; ALTER TA...
true
c48d136346e50196fb80e51875d42eb88942bc9c
SQL
Sasquire/Furry-Database
/sites/furry_network/init.sql
UTF-8
2,650
3.53125
4
[ "Unlicense" ]
permissive
do $$ begin if not exists (select 1 from information_schema.schemata where schema_name = 'fn') then create schema fn; end if; end$$; do $$ begin -- https://stackoverflow.com/questions/9540681/list-postgres-enum-type create temporary view enum_info as ( select n.nspname as enum_schema, t.typname as enum_...
true
e210075a00c76e28c3a6f291589c45e7c251477d
SQL
roediger/distributed-tpch
/impala/queries/allqueries.sql
UTF-8
11,828
3.578125
4
[]
no_license
select l_returnflag, l_linestatus, sum(l_quantity) as sum_qty, sum(l_extendedprice) as sum_base_price, sum(l_extendedprice * (1 - l_discount)) as sum_disc_price, sum(l_extendedprice * (1 - l_discount) * (1 + l_tax)) as sum_charge, avg(l_quantity) as avg_qty, avg(l_extendedprice) as avg_price, avg(l_di...
true
4402e037fb976e946242a7bf69c025de7ef16eac
SQL
CarlosMecha/mqlite
/schema.sql
UTF-8
231
2.84375
3
[ "Apache-2.0" ]
permissive
CREATE TABLE messages( uuid TEXT NOT NULL PRIMARY KEY, timestamp INTEGER NOT NULL, format TEXT NOT NULL, topic TEXT NOT NULL, payload TEXT ); CREATE INDEX messages_index ON messages (uuid, timestamp, topic);
true
b51a1c7ca4ca18f6d7f02036fe1fbbe788b604d4
SQL
lga37/lojaphp1
/scriptmysql.sql
UTF-8
4,099
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 26-Ago-2015 às 03:51 -- Versão do servidor: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
b0a26a415f56df8549c1c706571441b3278749f5
SQL
nsouff/supermarket-database
/REQ/allRequests.sql
UTF-8
8,693
4.21875
4
[ "MIT" ]
permissive
-- I) -- Contrainte : requête sur trois tables -- Trouve le prix total des paniers de chaque client connecté -- Remarque : On peut complexifier la requête en incluant les paniers des visiteurs. SELECT C.ID_compte, C.nom, C.prenom, SUM(PA.quantite * PR.prix) FROM comptes C, panier PA, produits PR WHERE PA.id_produit = P...
true
2b2d9fa96e33a43a386805a2135a6554ec1aa94d
SQL
xiaoyuyouci/DataPlatform
/dp-pgweb/src/main/resources/sql/t_dc_factoryrealtime.sql
UTF-8
7,793
2.546875
3
[]
no_license
drop table if exists reportplatform.dc_factoryrealtime; /*==============================================================*/ /* Table: dc_factoryrealtime */ /*==============================================================*/ create table reportplatform.dc_factoryrealtime ( r_bu ...
true
eae6fcc4db1bc543138a1865eae963dfc41a2ce9
SQL
KDDS/BI_Reporting
/Work/Database/Dimension.sql
UTF-8
4,485
3.453125
3
[]
no_license
----------------------------------- -- CREATE THE DIMENSION TABLES -- ----------------------------------- CREATE TABLE DIM_AGENT ( AGENT_ID VARCHAR2(100) NOT NULL UNIQUE, AGENT_NAME VARCHAR2(100) NOT NULL ); CREATE TABLE DIM_WORK_KPI ( KPI_ID NUMBER UNIQUE, TYPE_DESC VARCHAR2(100) NOT NULL ); INSERT...
true
6e993fad0ab034bf8d4c70881f7d30e9e201e337
SQL
cckmit/xinfu
/ccms/WebContent/WEB-INF/action/project/fitness/trains/task/detail/term_query.sql
UTF-8
578
4
4
[]
no_license
SELECT q.tuid AS question_id, q.showorder AS question_order, q.question_name, q.question_score, (CASE q.question_type WHEN 0 THEN '单选' WHEN 1 THEN '多选' ELSE '文本输入' END) AS question_type, coalesce(i.tuid,0) AS item_id, coalesce(i.showorder,0) AS item_order, coalesce(i.item_name,'NULL') AS ite...
true
e585f936a70872d3874929e935caa0927a64d376
SQL
baskaraid/IotTopic12-Narutama-Phinda-Baskara
/simkasu.sql
UTF-8
4,007
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 23, 2021 at 02:10 PM -- Server version: 10.4.19-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
029407619c24596761aa818268fadbed19e30259
SQL
kkirillmk/Course-for-college
/dns_auction.sql
UTF-8
11,536
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Июн 09 2020 г., 06:36 -- Версия сервера: 5.7.25-log -- Версия PHP: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
4f3fb7660ba7879afa795ead6ea5fbb84b67d678
SQL
javiercbk/jayoak
/schema.sql
UTF-8
2,888
4.21875
4
[ "Unlicense" ]
permissive
-- CREATE DATABASE jayoak WITH OWNER 'jayoak' ENCODING 'UTF8'; CREATE TYPE note AS ENUM ('A', 'B', 'C', 'D', 'E', 'F', 'G'); CREATE TABLE organizations( id BIGSERIAL NOT NULL PRIMARY KEY, name TEXT NOT NULL, created_at TIMESTAMPTZ, updated_at TIMESTAMPTZ ); CREATE INDEX organizations_name_idx ON orga...
true
17ff3bd1258e823d76fff37c42de567d4a2dc241
SQL
Lawrence-Amurao/Exercises
/module-2/03_Joins/exercise-final/postgres/Exercises/05_title_release_comedy.sql
UTF-8
330
4.15625
4
[]
no_license
-- 5. The titles and release dates of all the movies that are in the Comedy genre. Order the results by release date, earliest to latest. (220 rows) SELECT title, release_date FROM movie m JOIN movie_genre mg ON m.movie_id = mg.movie_id JOIN genre g ON g.genre_id = mg.genre_id WHERE genre_name = 'Comedy' ORDER BY rele...
true
2e81d8a6da99a3206d2ce2360cb69a11902add71
SQL
guisedassari/kairos
/application/config/schema.sql
UTF-8
2,161
2.875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Tempo de geração: 28/09/2016 às 19:10 -- Versão do servidor: 10.1.17-MariaDB -- Versão do PHP: 5.6.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
true
9a3fea2593367917e0436d9fc9aa54f8a1140018
SQL
teixeira308/fiapcreditcardclientbatch
/src/main/resources/schema-all.sql
UTF-8
295
2.53125
3
[]
no_license
drop table if exists TB_ALUNO; create table tb_aluno ( id bigint generated by default as identity, nome varchar(255), numero_cartao varchar(255), ativo boolean, data_atualizacao timestamp, data_criacao timestamp not null, saldo decimal(19, 2), primary key (id) )
true
7718109c669f1e21c36233d7629c5f7520f7a787
SQL
fpbarthel/GLASS
/sql/neutrality/original_submission/neutralitytestr-input-aliquot-level.sql
UTF-8
408
3.203125
3
[ "MIT" ]
permissive
/* Prepare aliquot-level input for use with Neutrality Testr */ SELECT gtc.aliquot_barcode, gtc.case_barcode, gtc.chrom::character varying(2), gtc.pos, gtc.alt, gtc.ref_count, gtc.alt_count, ROUND(gtc.alt_count::decimal / (gtc.alt_count + gtc.ref_count),4) AS vaf FROM analysis.genotypes ...
true
09b0c929e478f42ae7a3881327dc818e7b30d758
SQL
revolage/HealthLog
/spring_security_app.sql
UTF-8
9,471
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Апр 13 2018 г., 23:43 -- Версия сервера: 10.1.21-MariaDB -- Версия PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
5c07af4d128d5bafc0be5f6ce5ca3bd3c439ba29
SQL
VitorDiniz1907/ifgoiano
/tecInformática/pedroLucas/farmacia.sql
UTF-8
11,206
3.203125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 02-Jul-2019 às 01:20 -- Versão do servidor: 10.1.40-MariaDB -- versão do PHP: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
7d4fe47853f02a61210771ce28f91b4253c09f74
SQL
gofrankhan/Web
/Coderhousebd/coderhousebd.sql
UTF-8
2,278
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 01, 2019 at 09:17 PM -- Server version: 5.6.26 -- PHP Version: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
93b4a18cd2a6af4ac28bcc495fd375205a255a7a
SQL
manasesortez/Parcial2_PDB
/Ejercicio3.sql
UTF-8
1,965
4.1875
4
[ "MIT" ]
permissive
/** La tabla PRODUCTO contiene informacion general de los productos y la tabla PEDIDO contiene la informacion del pedido que se realiza de un cierto producto, llenar las tablas con informacion. */ CREATE DATABASE Bodega; USE Bodega; CREATE TABLE producto( idprod char(7) UNIQUE PRIMARY KEY, descripcio...
true
216e3fc1976e48062ecd54cb65bd9c639abc3f00
SQL
kdnk/tatsuzin-sql
/chap5/Personnel.sql
UTF-8
826
3.734375
4
[]
no_license
-- CREATE TABLE Personnel -- (employee varchar(32), -- child_1 varchar(32), -- child_2 varchar(32), -- child_3 varchar(32), -- PRIMARY KEY(employee)); -- -- INSERT INTO Personnel VALUES('赤井', '一郎', '二郎', '三郎'); -- INSERT INTO Personnel VALUES('工藤', '春子', '夏子', NULL); -- INSERT INTO Personnel VALUES(...
true
ada5ff021c9e091bcb611d4481460dce122adc91
SQL
pacrooks/Munro_Bagger
/db/initialise.sql
UTF-8
268
2.875
3
[]
no_license
DROP TABLE users; DROP TABLE bagged; CREATE TABLE users ( id INTEGER PRIMARY KEY, username TEXT ); CREATE TABLE bagged ( id INTEGER PRIMARY KEY AUTOINCREMENT, user_id INTEGER REFERENCES users(id) ON DELETE CASCADE, mtn_id INTEGER(2), bagged INTEGER(1) );
true
e44906955f96d099dfb9ae97699cbe2fab50018f
SQL
mechanicalgirl/openFEC
/data/sql_updates/election_outcome.sql
UTF-8
1,462
3.453125
3
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
-- See discussion in https://github.com/18F/openFEC-web-app/issues/514 drop materialized view if exists ofec_election_result_mv_tmp; create materialized view ofec_election_result_mv_tmp as ( select fec_election_yr - 4 as election_yr, * from disclosure.cand_valid_fec_yr where cand_ici = 'I' and ...
true
3e9e947401f00f78b2d6cd79e86c67288b6af3e2
SQL
sahildoshi013/SDJIC
/SDJIC.sql
UTF-8
7,022
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 11, 2018 at 03:47 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
1604a13f483d43807097cae8bb653b1d1db0083c
SQL
ou8zz/bkm
/src/main/resources/oracle.sql
UTF-8
11,383
3.28125
3
[]
no_license
-- ---------------------------- -- Table structure for fund_info -- ---------------------------- --DROP TABLE fund_info; CREATE TABLE fund_info ( id NUMBER(11) NOT NULL , fcode VARCHAR2(50) NULL , fname VARCHAR2(50) NULL , userid NUMBER(11) NULL ); COMMENT ON TABLE fund_info IS '基金产品信息表'; COMMENT ON COLUMN fund_info.i...
true
d82747d1d7f9dfed94d19ecc48a2afcf7f75feab
SQL
rcgordon49/cs445-project
/sql/testQueries_sql/query8_result_table.sql
UTF-8
388
3.546875
4
[]
no_license
CREATE TABLE Best_Movies (mid int NOT NULL, title CHAR(250) CHARACTER SET latin1 COLLATE latin1_general_cs, year INT(4) NOT NULL, avg_rating DOUBLE, UNIQUE (title, year), PRIMARY KEY (mid)); INSERT INTO Best_Movies(mid, title, year, avg_rating) SELECT DISTINCT R.mid, R.title, R.year, R.avg_rating FROM Avg_...
true
43e418ee41c91e2ac0fb6c8d730c97542add6f82
SQL
llcoolmxdx5/frond-end-demo
/koa-demo/09-mysql/init.sql
UTF-8
1,149
3.828125
4
[]
no_license
-- 创建数据库 CREATE SCHEMA `gp16` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ; -- 创建表 CREATE TABLE `gp16`.`student` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(45) NULL, `address` VARCHAR(45) NULL, `age` INT NULL, PRIMARY KEY (`id`) ); -- crud (create retrive update delete) -- 添加数据 INSERT INTO st...
true
c6c153d3964eefc20acebdc1f03c51f92967c409
SQL
e-a-h/level09
/MySQL structure.sql
UTF-8
3,777
3.15625
3
[ "MIT" ]
permissive
# ************************************************************ # Sequel Pro SQL dump # Version 4529 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: localhost (MySQL 5.6.35) # Database: journey_meshes # Generation Time: 2017-06-30 05:09:38 +0000 # ****************************************...
true
848190a717f0c17b9a6a4c40b475cb18ab274bd6
SQL
AlexjHeat/Cookbook-Database-Project
/project-queries.sql
UTF-8
3,279
4.625
5
[]
no_license
-- retrieves relevant information written of all reviews written by food critics that -- the user GreatDane does not already follow -- (Username GreatDane could be switched out for any user to see all reviews from critics they follow) SELECT u.firstName as Critic_First_Name, u.lastName as Critic_Last_Name, r.name as R...
true
cd6d53899ae4026795e2b2b61ed2db6a122b2954
SQL
ergmyth/sql-labs
/сопровождение/Запросы SQL/4 лаба/Запрос на получение наименований всех факультетов и количества преподавателей на каждом из них с сортировкой количества преподавателей по возрастанию.sql
UTF-8
229
3.734375
4
[]
no_license
SELECT FACULTY_NAME,COUNT(DISTINCT TEACHER_NAME) from FACULTY,TEACHER,PULPIT where "FACULTY"."FACULTY"="PULPIT"."FACULTY" AND "PULPIT"."PULPIT"="TEACHER"."PULPIT" GROUP BY FACULTY_NAME ORDER BY COUNT(DISTINCT TEACHER_NAME) ASC;
true
6311d951b85d1f04b1667d7a445aff1c382dae5c
SQL
hillerlab/CESAR2.0
/kent/src/hg/lib/peptideAtlasPeptide.sql
UTF-8
749
2.953125
3
[ "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
# peptideAtlasPeptide.sql was originally generated by the autoSql program, which also # generated peptideAtlasPeptide.c and peptideAtlasPeptide.h. This creates the database representation of # an object which can be loaded and saved from RAM in a fairly # automatic way. #PeptideAtlas peptide description CREATE TABL...
true
71ddf8b800bcffa004123a1d7e4ef91a4cd2c0ed
SQL
HotTornadoes/Reddit_Clone_Server
/src/main/resources/tablescript.sql
UTF-8
8,357
3
3
[]
no_license
ALTER TABLE SubRedditMonitor DROP FOREIGN KEY FKSubRedditM670013; ALTER TABLE SubRedditMonitor DROP FOREIGN KEY FKSubRedditM440551; ALTER TABLE SubRedditMember DROP FOREIGN KEY FKSubRedditM666300; ALTER TABLE SubRedditMember DROP FOREIGN KEY FKSubRedditM534752; ALTER TABLE Post DROP FOREIGN KEY FKPost964424; ALTER TABL...
true
804fcd01b52ecb85ba8e6501eba9fccb76e08e27
SQL
Ribery2020/intes
/music.sql
UTF-8
2,297
3.375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : localhost_3306 Source Server Type : MySQL Source Server Version : 50734 Source Host : localhost:3306 Source Schema : music Target Server Type : MySQL Target Server Version : 50734 File Encoding : 65001 Date: 14/09/2021...
true
d991276bd2a646a9d4102ceaabfc46804bf99c90
SQL
janiniraj/cloudpanda
/cloudpanda.sql
UTF-8
2,533
3.125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 22, 2018 at 11:43 PM -- Server version: 5.7.21-0ubuntu0.16.04.1 -- PHP Version: 7.0.22-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
true
ccaa4fa36fd86509a444fac690c7772efca7649b
SQL
stanislaviv/Databases-Basics---MS-SQL-Server---2017
/12_Exam_22.10.2017/12_Exam_22.10.2017/Exam_22.10.2017/z11.EmergencyPatrol.sql
UTF-8
412
3.65625
4
[ "MIT" ]
permissive
SELECT r.OpenDate AS OpenDate,r.Description,u.Email AS [Reporter Email] FROM Reports AS r JOIN Categories AS c ON c.Id = r.CategoryId JOIN Departments AS d on d.Id = c.DepartmentId JOIN Users AS u ON u.Id = r.UserId WHERE r.CloseDate IS NULL AND (LEN(r.Description))>20 AND r.Description LIKE '%str%' AND d.Name IN('...
true
2589752d01bc7e180d7c968ab2b26032e89b3d22
SQL
gabydd/promptly
/server/prisma/migrations/20210717041618_change_date_to_datetime/migration.sql
UTF-8
939
3.53125
4
[]
no_license
/* Warnings: - You are about to drop the column `token` on the `User` table. All the data in the column will be lost. - You are about to drop the `Date` table. If the table is not empty, all the data it contains will be lost. - Added the required column `date` to the `Event` table without a default value. This...
true
801f7eebba71900200aadf54abdd12e45d8dd417
SQL
kobipa/DBT_New_kobipan
/tests/dim_customer_LifeTimeValue.sql
UTF-8
293
3.671875
4
[]
no_license
select * from ( select c.CUSTOMER_ID,c.LIFETIME_VALUE,sum(order_AMOUNT) total_order_AMOUNT from {{ref('Dim_customers')}} c left join {{ref('fct_orders')}} o on c.CUSTOMER_ID=o.CUSTOMER_ID group by c.customer_id,c.LIFETIME_VALUE ) q where abs(LIFETIME_VALUE-total_order_AMOUNT)>0 and 1=2
true
6726d6d10bbcc581cc926a37228824df9c14925f
SQL
Pamelapxaylink/postgresql-course
/170/n13e3.sql
UTF-8
475
4.28125
4
[ "MIT" ]
permissive
--Do the following using the database movies: --use JOIN to --return the first name of all employees, and if applicable, show the employee's department name. --can you use a subquery to get the same result? SELECT employees.ename, department.dept FROM employees LEFT JOIN department USING (eid); SELECT ...
true
b81f1f7850f412668bd6bdc8bdb4a8c50ad7bd7f
SQL
andriRoll/PharmacyManagement
/db_apotek.sql
UTF-8
4,591
3.40625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 13, 2015 at 05:13 PM -- Server version: 5.6.11 -- PHP Version: 5.5.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
724abf7c0d215b3257ab90b1d8452e5a9e8f1c37
SQL
yolvictorres/proyecto
/ing_software/ing_soft_bd.sql
UTF-8
7,763
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 30, 2017 at 04:06 PM -- Server version: 5.7.13-log -- PHP Version: 5.6.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
283137694d28c5742fb679c59f18d89bd7c02404
SQL
fabivelosa/fastandfoodius
/DatabaseSetup/restaurantDML.sql
UTF-8
9,690
2.84375
3
[]
no_license
USE Restaurant; /* Data for the table accessType */ INSERT INTO accessType VALUES (1,"sys-admin"); INSERT INTO accessType VALUES (2,"customer"); INSERT INTO accessType VALUES (3,"staff"); INSERT INTO accessType VALUES (4,"delivery"); INSERT INTO accessType VALUES (5,"manager"); /* Data for the table person */ INSERT ...
true
3e518b5b871f0c804e29f189603360304e83c9d0
SQL
ndaleksey/Dashboard
/schema.sql
UTF-8
5,686
3.8125
4
[]
no_license
drop database if exists dashboard; create database dashboard; use dashboard; #------------------- REGION ---------------------------- create table if not exists region ( id bigint not null auto_increment, name varchar(255) not null unique, primary key (id) ); insert into region (id, name) values (1, 'М...
true
b9ee3b740b0e90a03bec4bc531feaaea7c67a627
SQL
cesarams/gamifications
/sql/install/activity_history_entity.sql
UTF-8
540
2.703125
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS `PREFIX_gamifications_activity_history` ( `id_gamifications_activity_history` INT(11) AUTO_INCREMENT, `id_customer` INT(11) UNSIGNED NOT NULL, `id_reward` INT(11) UNSIGNED NOT NULL, `id_shop` INT(11) UNSIGNED NOT NULL, `activity_type` INT(11) UNSIGNED NOT NULL, `reward_type` INT(1...
true
229b8f694f10e895677dbaecb252c480f1e0726d
SQL
heet2107/SQL-Basics
/sql-intro/person.sql
UTF-8
1,037
3.859375
4
[]
no_license
-- #1 CREATE TABLE person ( person_id SERIAL PRIMARY KEY, name VARCHAR(200), age INTEGER, height INTEGER, city VARCHAR(200), favorite_color VARCHAR(200) ); -- #2 INSERT INTO person ( name, age, height, city, favorite_color ) VALUES ( 'First Last', 21, 182, 'City', 'Color' ); -- #3 SELEC...
true
0ed40a8a189e9abc7356c2e8ec0412835252c9c8
SQL
PMikhail/SQL-Reports
/contracts/fact contract rates.sql
UTF-8
3,865
3.890625
4
[]
no_license
select * from all_col_comments where table_name = 'FACT_CONTRACT_RATE1' select * from all_col_comments where table_name = '' select * from all_col_comments where table_name = 'X_CONT_SRV' select * from all_col_comments where table_name = 'X_CONT_SRV_RATES_P1' SELECT * FROM STAGING.X_CONT_SRV select count...
true
76cee92d4b4a64aedf6d2c71bf148f0c9d5c2ff8
SQL
AdlerHu/AIBigData_Seminar
/Banana/crawler/price/Banana_database.sql
UTF-8
1,221
3
3
[]
no_license
CREATE TABLE banana( `b_id` integer primary key auto_increment, `transaction_date` VARCHAR(20), `crop_number` varchar(5), `crop_name` varchar(20), `market_number` varchar(5), `market_name` varchar(20), `high_price` varchar(10), `middle_price` varchar(10), `low_pric...
true
17db11122e96df49f012240c72961e9526a9f0c3
SQL
odrack0/CLLAIntelligent
/CLLAETL/SysExpert/ConsultasExtraccion/Pedimento/PedimentoContenedor.sql
UTF-8
506
3.34375
3
[]
no_license
SELECT PC.idPedContenedor, PC.idReferencia, PC.NumeroContenedor, PC.idContenedor, C.Clave AS ClaveContenedor, C.Descripcion AS DescripcionContenedor, PCC.Candado, PCC.Color AS CandadoColor FROM BitacoraExtraccionSysExpertPedimento BEP JOIN Ped_Contenedores PC ON (BEP.idReferencia = PC.idR...
true
d2c99f04081413015bdfc458128514e5b21bbb56
SQL
xstefank/pv260-sta-performance
/task2/derby/tables-create.sql
UTF-8
1,982
3.59375
4
[]
no_license
-- df statuscodes: word=C:/tmp/dict/file-with-status-codes -- df names: word=C:/tmp/dict/names.txt -- df booktitles: word=C:/tmp/dict/booktitles.txt -- df words: word=C:/tmp/dict/words.txt -- Derby connection CONNECT 'jdbc:derby:testdb;create=true'; CREATE TABLE Status ( -- df: nogen size=3 id int NOT...
true
3e2f59dab74569a96eea30446a8b2208a40c8c14
SQL
pmtarantino/tinymvc
/examples/models/books.sql
UTF-8
530
3.390625
3
[]
no_license
-- -- Table structure for table `books` -- CREATE TABLE `books` ( `id` int(11) NOT NULL, `title` varchar(128) NOT NULL, `author` varchar(32) NOT NULL, `isbn` int(11) NOT NULL, `publisher` varchar(32) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Indexes for dumped tables -- -- -- Indexes for table...
true
fca232092f75949276a0f06af94c2a29029d069a
SQL
sshyran/gpdb
/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uaocs_ddl/sql/update_select_ao_tab_distrib.sql
UTF-8
3,643
3.703125
4
[ "Apache-2.0", "PostgreSQL", "LicenseRef-scancode-rsa-md4", "OLDAP-2.8", "HPND-sell-variant", "BSD-4-Clause-UC", "BSD-3-Clause", "Zlib", "LicenseRef-scancode-zeusbench", "LicenseRef-scancode-mit-modification-obligations", "OpenSSL", "MIT", "LicenseRef-scancode-other-copyleft", "bzip2-1.0.6"...
permissive
-- @description : update UAO tables , with different distributions -- -- create select uao table with No distribution (hence hash distribution) DROP TABLE IF EXISTS uao_tab_distrib_none_upd cascade; CREATE TABLE uao_tab_distrib_none_upd with (appendonly=true, orientation=column ) AS ( SELECT GENERATE_SERIES::nume...
true