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
1804402da79c3591472f8ec71db9cd2210cd8cb4
SQL
webdeeva/thinkful
/sql_06_01.sql
UTF-8
1,300
4.15625
4
[]
no_license
-- Name: Tavonia Evans -- Select all fields & records from the houseprices table. SELECT * FROM houseprices; -- How many records are there? SELECT COUNT(*) FROM houseprices; -- number of records - 1460 -- Return only records for the 'OldTown' neighborhood SELECT * FROM houseprices WHERE neighborhood='O...
true
ab8d4cf6b50a04e5c0a5d3279dd5d49ce34f5f18
SQL
lpillmann/covid19-vaccination-data-pipeline
/plugins/sql/dimensional/dim_facilities.sql
UTF-8
718
3.28125
3
[]
no_license
drop table if exists dim_facilities; create table dim_facilities distkey(facility_sk) as ( with vaccinations as ( select * from staging_vaccinations ), facilities as ( select facility_sk, max(facility_code) as facility_code, max(facility_regis...
true
7c30fe83c352340008c8b0c397196fbbda92fe44
SQL
fathanakmal/inventaris-barang
/inventaris-barang/inventaris-barang.sql
UTF-8
4,213
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 07, 2021 at 08:15 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
376c914769a20cff784a7fe61d2b604fd8132e5d
SQL
fenago/Oracle12cCourse
/ora12labs/EXPLTP~1.SQL
WINDOWS-1258
419
2.71875
3
[]
no_license
PACKAGE get_user_details As FUNCTION osuser RETURN VARCHAR2; END; PACKAGE BODY get_user_details AS Xosuser VARCHAR2(30); FUNCTION osuser RETURN VARCHAR2 AS CURSOR C1 IS SELECT v.osuser FROM v$session v WHERE v.audsid = userenv(SESSIONID); BEGIN If xosuser is NOT NULL then OPEN C1; FETCH C1 INTO xosuser...
true
01d16216778eed100a54d25aeb4ab145f3bcacff
SQL
RPR-2019/rpr20-projekat-abegovic6
/projectdatabase.db.sql
UTF-8
893
3.125
3
[]
no_license
BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "label" ( "id" INTEGER, "accountId" INTEGER, "labelName" TEXT, "description" TEXT, "labelColor" TEXT, PRIMARY KEY("id") ); CREATE TABLE IF NOT EXISTS "groups" ( "id" INTEGER, "accountId" INTEGER, "groupName" TEXT, "description" TEXT, "groupColor" TEXT, PRIMARY K...
true
398d1d8649f14d79ca373f2ccda8705fc6b9c828
SQL
DmytroOrlov/library-management-system
/conf/evolutions/default/1.sql
UTF-8
615
2.984375
3
[ "Apache-2.0" ]
permissive
# --- !Ups CREATE TABLE "visitor" ( "id" BIGSERIAL PRIMARY KEY, "first_name" VARCHAR NOT NULL, "last_name" VARCHAR NOT NULL, "middle_name" VARCHAR, "extra_name" VARCHAR, "created" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ); CREATE TABLE "book" ( "id" BIGSERIAL PRIMAR...
true
0279edb8a8293e9dbbd2b4fdda9f748952942325
SQL
MSR19/BDAD-FEUP-19
/FEUP-BDAD-TRABALHO/Entrega3/int11.sql
UTF-8
778
3.65625
4
[]
no_license
.mode columns .headers on .nullvalue NULL SELECT Doente.codigo AS Codigo_Doente, Funcionario.codigo AS Codigo_Func, Enfermaria.NomeDep, Estadia.Cod_Enfermaria, Estadia.cama, Estadia.Data_inicio AS DATA_INICIAL_ESTADIA, Estadia.Data_final A...
true
02551ba91898f03772613f805fdd425bec4c9f9d
SQL
SerTelnov/database-course
/week2/university.sql
UTF-8
1,035
3.875
4
[]
no_license
/* Создание базы данных*/ create database UNIVERSITY; /* Смена базы данных */ \c university; /* Создание таблиц */ create table groups ( id int PRIMARY KEY, name char(5) NOT NULL ); create table students ( id int PRIMARY KEY, first_name varchar(15) NOT NULL, last_name varchar(15) NOT NULL, group_id int R...
true
d5b1d97746812ef87229bfff25d94d8e58583e0f
SQL
blankcry/graphql-url-shortner
/prisma/migrations/20210412200931_unique/migration.sql
UTF-8
538
3
3
[]
no_license
/* Warnings: - A unique constraint covering the columns `[full_url]` on the table `shortenedUrls` will be added. If there are existing duplicate values, this will fail. - A unique constraint covering the columns `[short_url]` on the table `shortenedUrls` will be added. If there are existing duplicate values, thi...
true
76cbbd9259591417acc9c00648fd8e1848ccebb3
SQL
adityatoshniwal/pgadmin4
/web/pgadmin/browser/server_groups/servers/databases/schemas/packages/templates/packages/ppas/12_plus/count.sql
UTF-8
138
2.5625
3
[ "PostgreSQL" ]
permissive
SELECT COUNT(*) FROM pg_catalog.pg_namespace nsp WHERE nspparent = {{scid}}::oid AND nspobjecttype = 0 AND nspcompoundtrigger = false
true
4022d24bc54a578ecb63e8c70e7be7846defd9ea
SQL
lshy1993/pcr_database
/sql/shop_static_price_group.sql
UTF-8
566
2.71875
3
[]
no_license
DROP TABLE IF EXISTS shop_static_price_group; CREATE TABLE IF NOT EXISTS `shop_static_price_group` (`id` INTEGER NOT NULL,`price_group_id` INTEGER NOT NULL,`buy_count_from` INTEGER NOT NULL,`buy_count_to` INTEGER NOT NULL,`count` INTEGER NOT NULL,PRIMARY KEY(`id`)); INSERT INTO `shop_static_price_group` VALUES (1,1,1,2...
true
bd64cba6fb12873129c8917492bbdc84398c17fb
SQL
augustars/xmall
/xmall-entity/target/classes/doc/xmall.sql
UTF-8
8,197
3.171875
3
[]
no_license
/* SQLyog Ultimate v12.09 (64 bit) MySQL - 5.5.15 : Database - xmall ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@...
true
8d54639c3e2c17a6ba4e5a78fc4650b075059d05
SQL
SayantoRoy/PRATIBHAPOP
/PRATIBHAPOP/ORG/StructureRelationship.sql
UTF-8
1,191
3.078125
3
[]
no_license
CREATE TABLE [ORG].[StructureRelationship] ( [Id] VARCHAR (10) NOT NULL, [CompanyGroupId] VARCHAR (10) NOT NULL, [CompanyId] VARCHAR (10) NULL, [RType] VARCHAR (30) NOT NULL, [Sequence] INT NOT NULL, [StandardName] VARCHAR (50) NOT NULL, [Use...
true
2938f3875abe3a7a4064522a4d940223e5a61583
SQL
rsshishir/W205_exercise1
/investigations/best_hospitals/best_hospitals.sql
UTF-8
580
3.484375
3
[]
no_license
DROP TABLE procedures_score; CREATE TABLE procedures_score AS SELECT hospital_id, count(score) as N, avg(score) as Average, stddev_pop(score) as Sigma, (avg(score)-stddev_pop(score)) as Lower_quality_score from Tbl_procedures GROUP BY hospital_id ORDER BY Lower_quality_score desc LIMIT 10; set hive.cli.print.header=t...
true
6fdd81e45bc16eeacae6abee027e8f1e3aace943
SQL
Vidhan/iFestSite
/funda2012/db/goolockquestions.sql
UTF-8
36,684
2.53125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Sep 28, 2012 at 08:22 PM -- Server version: 5.5.8 -- PHP Version: 5.3.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SE...
true
318ec16b3755cb05631a9d418fd5d50677251665
SQL
poechsel/prequel
/tests/integration/integration-4.sql
UTF-8
435
2.828125
3
[ "MIT" ]
permissive
SELECT e.dpt, e.nom FROM "employes.csv" e WHERE e.dpt IN ( SELECT s.dpt FROM "employes.csv" s, "departements.csv" ds WHERE ds.directeur = s.ide AND e.dpt = ds.idd ); [normal] dpt, nom 1,Hamish Fulton 1,Gemma Calhoun 1,Devin Bolton 1,McKenzie Jensen 1,Kieran Weaver 10,Tatyana Becker 2,Kenyon Hood 10,Hoyt Als...
true
f337c5d27825b0c9a1763f165b2099519c003f6e
SQL
nandolrs/sge
/dados/modelos/script/sge/Relational_1/SQL Server 2012/DataObjects/FKIndexAssociation/MATEMBALAGEM_MATUNIDADEMEDIDA_FK.sql
UTF-8
210
2.8125
3
[]
no_license
ALTER TABLE MATEMBALAGEM ADD CONSTRAINT MATEMBALAGEM_MATUNIDADEMEDIDA_FK FOREIGN KEY(CD_UNIDADE_MEDIDA) REFERENCES MATUNIDADEMEDIDA(CD_UNIDADE_MEDIDA) ON DELETE NO ACTION ON UPDATE NO ACTION GO
true
03b8b1bcbcd0a2d3d2d2f3452cc554e8cbde8401
SQL
GaborCsikos/todo-app
/src/main/resources/migration/V0.005__oneToMany.sql
UTF-8
389
3.640625
4
[]
no_license
CREATE TABLE IF NOT EXISTS NOTE( ID INT PRIMARY KEY AUTO_INCREMENT, DESCRIPTION VARCHAR(256) ); INSERT INTO NOTE (ID, DESCRIPTION) VALUES (1, 'Must do today'); INSERT INTO NOTE (ID, DESCRIPTION) VALUES (2, 'I need coffee'); ALTER TABLE NOTE ADD COLUMN TODO_ID INT; UPDATE NOTE SET TODO_ID = 1; ALTER TABLE NOTE ADD...
true
482d8dc5127270e4963c50dc84ae5d9dc326fabd
SQL
VictorIstratii151/Databases
/course_work/mssql/create_books.sql
UTF-8
211
3.0625
3
[]
no_license
CREATE TABLE books( id INT NOT NULL IDENTITY(1, 1) PRIMARY KEY, name VARCHAR(25) NOT NULL, price SMALLMONEY NOT NULL, currency VARCHAR(10) NOT NULL, publisher_id int FOREIGN KEY REFERENCES publishers(id) );
true
24e001d978897ae679b439c86aab0ec6ba51e7fc
SQL
Djordje-98/PIiVT-2021
/02-resources/aplikacija.sql
UTF-8
16,009
3.609375
4
[]
no_license
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_N...
true
adc9e70976f01f45d8d5acf5d4fa8e5960b3a1e8
SQL
p-victor/bootcampx
/3_queries_group-by/large_cohorts.sql
UTF-8
210
4.0625
4
[]
no_license
SELECT cohorts.name AS name, count(students.*) AS student_count FROM cohorts JOIN students ON students.cohort_id = cohorts.id GROUP BY cohorts.name HAVING count(students.*) >=18 ORDER BY count(students.*);
true
acbf7bf59fcb89c83529a201ba8d9ca051b94795
SQL
sknabniai/karbase
/Sungero.Docflow/VersionData/2.6.16.5/Script/convert_after_mssql.sql
UTF-8
339
2.78125
3
[]
no_license
if exists (select * from information_schema.tables where table_name = 'LeadingDocumentToContract') begin update Sungero_Content_EDoc set Sungero_Content_EDoc.LeadDocument_Docflow_Sungero = ldtc.Document from LeadingDocumentToContract ldtc where Sungero_Content_EDoc.Id = ldtc.Id drop table LeadingDocument...
true
bc62db9e99d31b7dc7565ecbc0e515d92e1582cb
SQL
iamrajatrana/Placement_management_system
/placement_system_database.sql
UTF-8
8,364
2.984375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 23, 2016 at 03:15 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
be861d76681ed249c076a68a491372b41dfb3e32
SQL
coolronex/SQL_Navy
/navy_schema.sql
UTF-8
549
2.953125
3
[]
no_license
CREATE TABLE fleets ( id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL ); CREATE TABLE ships ( id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, date_built DATE, fleets_id INTEGER ); CREATE TABLE duties ( id INTEGER PRIMARY KEY AUTOINCREMENT, start_date DATE, end_da...
true
388f938066f0057e01c8c4b252674332f04809b4
SQL
arthurpcs/cee_database
/cee.sql
UTF-8
6,668
3.640625
4
[]
no_license
/* criar o Banco de dados não roda no postgresql pq usa float*/ /* criar o Banco de dados não roda no mysql pq usa boolean*/ create database cee /* usar o banco de dados */ use cee -- criar a tabela usuario CREATE TABLE usuario ( id INT not null primary key, cpf CHAR (11), nome VARCHAR (50), telefone VARCHAR(20),...
true
b68ecabbd1729be935cd174ae93e443dda124c85
SQL
DanielRoman11/URI-reto-soluci-n-de-problemas
/SQLQuery2742.sql
UTF-8
216
3.59375
4
[]
no_license
SELECT l.name, round((l.omega * 1.618), 3) AS "The N Factor" FROM life_registry l INNER JOIN dimensions d ON l.dimensions_id = d.id WHERE d.name in ('C875', 'C774') AND l.name LIKE 'Richard%' ORDER BY l.omega ASC
true
be8d8bd7fb0a750d042cf40260d0feef12ac5465
SQL
michlmyers/bamazon
/bamazonSchema.sql
UTF-8
290
3.109375
3
[]
no_license
DROP DATABASE IF EXISTS bamazon; CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products ( item_id INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(100) NOT NULL, department_name VARCHAR(100) NOT NULL, price INT(100) NOT NULL, quantity INT NULL, PRIMARY KEY (item_id) );
true
4325e3863cea23aa1eadb31d78cec00a535b7758
SQL
goyalankit/mbdb
/project1.sql
UTF-8
4,961
4.625
5
[]
no_license
-- query 1: what is the price of the part named "Dirty Harry"? select price from parts where pname='Dirty Harry'; -- query 2: What orders have been shipped after date '03-feb-95'? select * from orders where TO_DATE(SHIPPED) >TO_DATE('03-feb-95'); --CHECK THIS ONE -- query 3: What are the ono and cname values of custo...
true
a4b39271248d986dd0629790bd2c1a2d2580d1e6
SQL
Yanzu-zz/New-retail-db-design
/sql/分类与品牌关联表.sql
UTF-8
195
3.171875
3
[]
no_license
CREATE TABLE t_category_brand( category_id INT UNSIGNED COMMENT "分类ID", brand_id INT UNSIGNED COMMENT "品牌ID", PRIMARY KEY(category_id, brand_id) ) COMMENT = "分类与品牌关联表";
true
07c7609289c3856f39d8c0476e8f8243287486e1
SQL
faisalarkan21/blog-react-api
/reactblog.sql
UTF-8
12,969
3.046875
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.8 -- Dumped by pg_dump version 9.6.8 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', f...
true
2c180abbd799daaf2a8f3c10551b82b7d9f10600
SQL
zcrosby/GoodNeighbor
/sql/neighborDB2.sql
UTF-8
5,058
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 02, 2014 at 10:26 PM -- Server version: 5.5.32 -- PHP Version: 5.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
a5ce88671926e3a1f9298b58a9c5c7a008218f4a
SQL
anuljain23/project_management
/rajsamma_dev_db3.sql
UTF-8
16,619
3.0625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Oct 21, 2020 at 05:00 AM -- Server version: 5.6.41-84.1 -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
e2ea84e9ff0d300050ab1e190a6d0bc1544f5d0d
SQL
bprewit/album-app
/create_album_db.sql
UTF-8
6,870
3.1875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.49, for debian-linux-gnu (x86_64) -- -- Host: 0.0.0.0 Database: album_db -- ------------------------------------------------------ -- Server version 5.5.49-0ubuntu0.14.04.1 /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS...
true
fb8bb5f650eb907b392e2dd250f50bf1af14f1fb
SQL
danMartin21/erp_hr
/System/database/erp.sql
UTF-8
24,164
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 17, 2018 at 11:06 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
1d12410822e7b39084fea4debd54b4a42de77b2e
SQL
khassanovrakhat/mindbox
/query.sql
UTF-8
128
3.25
3
[]
no_license
SELECT Products.name, Category.name FROM Products LEFT JOIN Category ON Products.id=Category.productId ORDER BY Products.name;
true
135ebfe20d8b66e8b67d267a481172423553f590
SQL
ets/maatkit
/mk-archiver/t/samples/tables7-9.sql
UTF-8
555
3.546875
4
[]
no_license
use test; -- This table and table_8/9 designed to check that ON DUPLICATE KEY UPDATE can -- work okay with the before_insert functionality. drop table if exists table_7; create table table_7( a int not null, b int not null, c int not null, primary key(a, b) ) type=innodb; drop table if exists table_8; cr...
true
496caefbca7fafc385a66e8f2162eca15bb850fa
SQL
17629029075/WitmedProjectFiles
/witmed-document/病历概要信息表/outpatientPrescriptionDataSet_communication(门(急)诊处方数据集-通信信息表).sql
UTF-8
940
3.09375
3
[]
no_license
drop table if exists outpatientPrescriptionDataSet_communication; create table outpatientPrescriptionDataSet_communication( id varchar(100) not null comment '主键', medicalRecordSummary varchar(100) comment '病历摘要信息', phoneCategory varchar(100) comment '联系电话-类别', phoneCategoryCode varchar(100) comment '联系电话-类别代码', ph...
true
789f8ac59e08b564bd2eb81d1738781a222705ed
SQL
StevenGarc/DrogueriaEspecial
/BaseDeDatos/es_codigo_consistente.sql
UTF-8
1,521
3.53125
4
[]
no_license
set sql_mode=ORACLE; DELIMITER // DROP FUNCTION IF EXISTS es_codigo_consistente // CREATE FUNCTION es_codigo_consistente(r_consistentes_tmp consistentes_tmp%RowType, r_consolidado consolidado%rowtype) RETURN INTEGER AS consistente INTEGER DEFAULT FALSE; r_Codigo_barras Codigo_barras%rowtype; CURSOR c_Codigo_b...
true
f4bd7cd4467499158c17d504124848a5537be28c
SQL
lord-med/Data-Analyst-Track--One_Million_Arab_Coders--Udacity
/Lesson 4/19-ORDER BY.sql
UTF-8
216
2.765625
3
[]
no_license
SELECT id, occurred_at, total_amt_usd FROM orders LIMIT 10; SELECT id, occurred_at, total_amt_usd FROM orders ORDER BY total_amt_usd DESC LIMIT 5; SELECT id, occurred_at, total FROM orders ORDER BY total LIMIT 20;
true
02b17256d6be3dfb143e02a2bc64fef7763c2f0a
SQL
bazzooka/medic-prix-pharma
/sql/denomination-prix.sql
UTF-8
227
2.75
3
[]
no_license
SELECT arti_cip_acl, arti_num, arti_inti_long, arti_codeb2, tarif.PV_TTC -- , cntf.cntf_acte FROM p01arti arti LEFT JOIN tari_pv tarif on arti.arti_num = tarif.ARTI_pv WHERE arti_inti_long LIKE "DOLIP%" AND PV_TTC IS NOT NULL
true
66200a37f95e33745ba3bf46eb2f490eca73447d
SQL
tamaki094/SILODISA_PortalProveedores_TEST
/SILODISA_PortalProveedores_TEST/BD/SP/usp_CargarCitasXId.sql
UTF-8
655
3.421875
3
[]
no_license
ALTER PROCEDURE usp_CargarCitasXId @IdCitaDetalle int AS BEGIN SELECT SUBSTRING(CAST(c.Hora AS varchar), 0, 9) [Hora Cita] ,cd.Id [IdCitaDetalle] ,cd.Tipo [Tipo] ,cd.Tarimas [Tarimas] ,cd.DobleEstiba [Doble Estiba] ,cd.Cajas [Cajas] ,cd.Refrigerado [Refrigerado] ,cd.Seco [Medicamento Seco] ,cd.Mat...
true
0586be617f26907a369b77c717b13eb1e8b56bd4
SQL
Ensembl/ensembl
/sql/patch_67_68_e.sql
UTF-8
2,316
3.421875
3
[ "GPL-1.0-or-later", "Artistic-2.0", "Artistic-1.0", "Apache-2.0", "Artistic-1.0-Perl" ]
permissive
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- Copyright [2016-2023] EMBL-European Bioinformatics Institute -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may ob...
true
cce88d24fc552d70425a8c19750dd7f2f111872e
SQL
bullowski/hyperlivre
/hyperlivre_database.sql
UTF-8
7,495
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 26, 2011 at 08:19 -- Server version: 5.5.8 -- PHP Version: 5.3.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_...
true
32f4493cbcf812c5554c10fa43144f4669b55208
SQL
dunnmj42/prime-group-joins
/joins-solution.sql
UTF-8
2,879
4.34375
4
[]
no_license
-- Tasks -- 1. Get all customers and their addresses. SELECT * FROM "customers" JOIN "addresses" ON "customers".id = "addresses".customer_id; -- 2. Get all orders and their line items (orders, quantity and product). SELECT * FROM "orders" JOIN "line_items" ON "orders".id = "line_items".order_id JOIN "products" ON "li...
true
d5e5a8a63838953ec4b7505ee5345d2067b20c71
SQL
imran103019/advance_mysql_demo
/trigger_function_procedure_view/function.sql
UTF-8
292
3.609375
4
[]
no_license
/* FUNCTION */ DELIMITER // DROP FUNCTION IF EXISTS GetTotalSaleByUserId // CREATE FUNCTION GetTotalSaleByUserId( u_id INT ) RETURNS INT BEGIN DECLARE total_sale INT; SELECT sum(amount) into total_sale from orders where user_id = u_id; RETURN total_sale; END // DELIMITER ;
true
f2e42e909e0223052dc716533316d09bcc8b48eb
SQL
altamira/visualstudio
/Sistema de Informação Altamira/EGISSQL.Database/dbo/Stored Procedures/Procs2/pr_geracao_necessidade_programacao_entrega.sql
UTF-8
7,716
3.484375
3
[]
no_license
 ------------------------------------------------------------------------------- --sp_helptext pr_geracao_necessidade_programacao_entrega ------------------------------------------------------------------------------- --pr_documentacao_padrao ----------------------------------------------------------------------------...
true
685850219612c54a5a3bb99a51bcaf8b87dae727
SQL
maase0/Yaks2019
/database/procedures/update_clin.sql
UTF-8
1,100
3.609375
4
[]
no_license
CREATE DEFINER=`root`@`localhost` PROCEDURE `update_clin`(CLINVID int, CLINID int, clinIndex VARCHAR(45), versionNumber VARCHAR(45), projectType VARCHAR(45), clinDescription VARCHAR(1000), popStart DATE, popEnd DATE) BEGIN #store CLINs current version number for comparison SELECT Version_Number FROM CLINVersion ...
true
11abfbdc27417c990c05da16b7169655e49b9bf3
SQL
carenbriones/Node-and-MySQL
/seeds.sql
UTF-8
988
2.515625
3
[]
no_license
INSERT INTO products (product_name, department_name, price, stock_quantity) VALUES ("3ft Iphone Lightning Cable", "Electronics", 8.50, 12), ("John Wick Blu-ray DVD", "Movies & TV", 11.99, 4), ("Kitchenaid Stand Mixer", "Home & Kitchen", 350.00, 7), ("Passion Planner Medium", "Office Supplies", 30.00, 20), ...
true
dc85f25001442f0bafd3bd3a429e10e9737d9414
SQL
TimSparrow/DemoBanner
/sql/db_final_dump.sql
UTF-8
3,130
3.296875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.22, for Linux (x86_64) -- -- Host: localhost Database: demo_banner -- ------------------------------------------------------ -- Server version 5.7.22-0ubuntu18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_...
true
955cc9260f3c6d0c94ab77a4f48ecfebaad60b63
SQL
jonteneander/JonatanN
/database.sql
UTF-8
20,863
3.1875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `jonten` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `jonten`; -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: jonten -- ------------------------------------------------------ -- Server version 5.7.21-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
true
641b4e00ea0ab880ede9a7508a62c77e56b0a3eb
SQL
PaulThomasWI/EmployeeTracker
/seeds.sql
UTF-8
2,325
2.75
3
[]
no_license
-- departments INSERT INTO department (department_name) VALUES ('Human Resources'); INSERT INTO department (department_name) VALUES ('Information Technology'); INSERT INTO department (department_name) VALUES ('Operations'); INSERT INTO department (department_name) VALUES ('Maketing'); INSERT INTO department (department...
true
bcdb97d42bd192db4afc023bbb6b21660f144ad7
SQL
henry701/AppBikeServer
/db_app.sql
UTF-8
5,586
3.59375
4
[ "Unlicense" ]
permissive
/* CREATE SCHEMA IF NOT EXISTS `app_mobilidade`; USE `app_mobilidade`; */ /* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------...
true
336b157fd4cd303b25cc004980d9564d3bf02837
SQL
elemental13/DarkCloud2Inventor
/CreateSqlDatabase.sql
UTF-8
3,272
3.203125
3
[]
no_license
 CREATE TABLE inventions ( id INT NOT NULL DEFAULT 0 , name VARCHAR(20) NULL DEFAULT NULL , chapter INT NULL DEFAULT NULL , description TEXT NULL DEFAULT NULL , pic VARCHAR(20) NULL DEFAULT NULL , PRIMARY KEY (id) ); -- ----------------------------------------------------- -- Table inventions_have_inven...
true
241c46084472bccccd8466d9d218f61a20e376f3
SQL
vekonyz/bmhmc-sql
/Readmissions/Readmit Comparative Report/Psych Readmits for Linda M.sql
UTF-8
961
3.90625
4
[]
no_license
WITH CTE AS ( SELECT Med_Rec_No , PtNo_Num , Adm_Date , Dsch_Date , Days_Stay , hosp_svc , vst_start_dtime , RN = ROW_NUMBER() OVER(PARTITION BY MED_REC_NO ORDER BY VST_START_DTIME) FROM smsdss.BMH_PLM_PtAcct_V WHERE hosp_svc = 'PSY' AND Dsch_Date >= '2016-01-01' AND Dsch_Date < '2016-08-0...
true
d3da1d719d69c61a1d7bc79b19537ff5dab957a3
SQL
Mgla96/HappyCows
/sql/milking_at_4am.sql
UTF-8
792
3.609375
4
[]
no_license
CREATE EVENT IF NOT EXISTS `milking_at_4am` ON SCHEDULE EVERY 4 DAY_HOUR COMMENT 'Milk the cows at 4AM everyday' DO INSERT INTO UserWealths (wealth, type, createdAt, updatedAt, CommonId, UserId) SELECT (SELECT milkPrice FROM Configs AS conf WHERE conf.CommonId = cw.CommonId) * ...
true
cc868f3f6de595e6bb2e45c31d9d5a40069604a0
SQL
yanoandri/SalesOrder-Pro
/PFSHelper.DataAccessLayer/dbFrameworkPFS/dbFrameworkPFS/dbo/Stored Procedures/uspCOM_ProductGet.sql
UTF-8
1,557
3.296875
3
[]
no_license
 /*********************************************************************************************************************** Copyright (c) 2015 PT Profescipta Wahanatehnik. All Rights Reserved. This software, all associated documentation, and all copies DESCRIPTION Name : uspCOM_ProductGet Desc : Thi...
true
e855998adb58adf2e4e76873036f291e0d7d26c2
SQL
dt222cc/1dv608-dt222cc
/project/install/quiz_game.sql
UTF-8
3,846
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.7 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Oct 26, 2015 at 01:37 AM -- Server version: 5.5.41-log -- PHP Version: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
251b219f78d1a4bf4cd9b2a6ee1f47c0496a37e3
SQL
kkremski-DI/Challenge-Questions
/NYC311_Query.sql
UTF-8
1,745
3.5625
4
[]
no_license
SELECT * FROM ( SELECT 'AgencyName', 'Frequency' UNION ALL ( SELECT REPLACE(AgencyName, ',', '') AS AgencyName, Count(AgencyName) AS Frequency FROM NYC311 WHERE AgencyName IS NOT NULL AND TRIM(AgencyName) <> '' GROUP BY AgencyName ORDER BY COUNT(AgencyName) DESC ) ) resulting_set INTO OUTFILE 'C:/ProgramData/MySQL...
true
f6af6ce921936bab13799a1e1802067e52ebc431
SQL
RVdeported/MySQL_basic
/Lesson_3.sql
UTF-8
1,362
3.953125
4
[]
no_license
USE vk; # list of user's music DROP TABLE IF EXISTS audio; CREATE TABLE audio( id SERIAL, owner_id BIGINT UNSIGNED NOT NULL, band VARCHAR(255), song_name VARCHAR(255), created_on DATE COMMENT 'date of the song was written', filename VARCHAR(255), created_at DATETIME DEFAULT NOW(), lengh...
true
f0a9e4e681b854d73537c6212f35e3e06dbbdb05
SQL
MrMM1989/MMParcs
/database-scripts/install-database.sql
UTF-8
14,716
3.671875
4
[]
no_license
-- MySQL Workbench Forward Engineering for table DDL -- Stored Procedures, Views, Triggers and Init by Maarten Marreel -- ----------------------------------------------------- -- Schema MMParcs -- ----------------------------------------------------- DROP DATABASE IF EXISTS MMParcs; CREATE DATABASE MMParcs; USE `MMPa...
true
438c7cb64374d34783fc757f4cfb05c76a6781d2
SQL
poornachandu88/AngularRestSpringHibernate
/country.sql
UTF-8
1,918
2.796875
3
[]
no_license
--h2Datebase; create table COUNTRY (id integer generated by default as identity, countryName varchar(255), population bigint, primary key (id)) -- <beans:bean id="dataSource" -- class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> -- <beans:property name="driverClassName" --...
true
90a804d3cdc3d20b336eed2715488b7fcfc20285
SQL
insung93/mariadb_practices
/sql-practices/sql연습/수학함수.sql
UTF-8
743
3.6875
4
[]
no_license
-- 수학 함수 -- abs() : 절대값 select abs(-1), abs(1); -- mod() : 나머지 값 select mod(10,3); -- floor(x) : x보다 작은 가장 큰 정수 select floor(3.14); -- ceil(x) : x보다 큰 가장 작은 정수 select ceil(3.14), ceiling(3.14); -- round(x) : x에 가장 근접한 정수 반환 -- round(x, d) : x 값 중에서 소수점 d자리에 가장 근접한 실수 반환 select round(3.14), round(3.14, 1); -- pow(x...
true
243cbfacdd3bc2e326321c146f1fd487f76183e6
SQL
fruscil/AFScripts
/DDL_Split_From_Terry/EMOC3_Script-20140219100142_converted/Base_Objects_Statements/DDL_other.sql
UTF-8
10,589
2.546875
3
[]
no_license
--<ScriptOptions statementTerminator="@"/> COMMENT ON COLUMN "EMOC3"."AIRCRAFT"."ACFT_CONFIG_ID" IS 'AIRCRAFT CONFIGURATION ID FROM CAMS' @ COMMENT ON COLUMN "EMOC3"."AIRCRAFT"."AIRCONFIGDATETIME" IS 'Date of Aircraft Configuration Needed for CAMS Screen 335' @ COMMENT ON COLUMN "EMOC3"."AIRCRAFT"."ASSIGNCOMDATETIM...
true
e016ab483358cf08f0dd6418e3c653cc39416bfb
SQL
tonypee/whatmoji
/server/src/tables.sql
UTF-8
1,087
4.09375
4
[]
no_license
-- Drop table DROP TABLE if exists public.users cascade; -- DROP TABLE if exists public.names cascade; DROP TABLE if exists public.votes cascade; CREATE TABLE public."users" ( id serial PRIMARY KEY, fbid varchar NOT NULL, name varchar NOT NULL, joined timestamp with time zone NOT NULL default CURRENT_TIMEST...
true
4e0eefb150dd38955dcc7bf7882ff20858311ad4
SQL
ambitious-aegean/local-voice
/schema.sql
UTF-8
8,171
3.40625
3
[]
no_license
-- --- -- Globals -- --- -- SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- SET FOREIGN_KEY_CHECKS=0; -- to use this file to set up your database do the following: -- 1. log into your msql database -- 2. run this command: set global local_infile=true; -- 3. log out -- 4. run this command mysql -u [your mysql username] < sch...
true
b7e31bbfb3128dedaf29ddb5502fa0f0fadd48f8
SQL
Mridul-Agarwal/IndianTrustBank.github.io
/customer.sql
UTF-8
3,900
2.828125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 19, 2021 at 09:08 AM -- Server version: 10.4.20-MariaDB -- PHP Version: 8.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
e78084ec2f202cc6676e5f0ae6ef4a972ea42188
SQL
manlan2/SecondHandMarket
/secondhand.sql
UTF-8
2,703
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2015-07-11 17:29:01 -- 服务器版本: 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 */; /*!40101 SET ...
true
a7f477f31ee55823a8d85617c51d32b0d843bfed
SQL
vasylivandriy/SQL
/HW6_SQL4/src/7level_model.sql
UTF-8
1,844
3.609375
4
[]
no_license
drop database if exists librarymodel_six; create database if not exists librarymodel_six; create table librarymodel_six.producing_country ( producing_country_id int not null unique, producing_country varchar(30) not null ); create table librarymodel_six.car_country( country_id int not null unique, country_registe...
true
4abeea0707ad32d59abdaacaa110c4740232d788
SQL
Faraon-ua/benefit
/DB/refactor/temp.sql
UTF-8
1,685
3.921875
4
[]
no_license
select ru.id_user, ((SELECT sum(amount) FROM benefitcompany.oc_affiliate_transaction where affiliate_id = bu.affiliate_id and order_id = 0) + (SELECT sum(ct.amount) FROM benefitcompany.oc_customer_transaction ct where cu.customer_id = ct.customer_id) ) as Bonuses, ( ifnull((SELECT sum(amount) FROM benefitcompany.oc_af...
true
ce70b69231516a0c1d7960b40b7bfb565a31c6dc
SQL
gbartoczevicz/social-network
/prisma/migrations/20210402155816_create_posts_profiles_and_users/migration.sql
UTF-8
1,195
4.1875
4
[ "MIT" ]
permissive
-- CreateTable CREATE TABLE "posts" ( "id" SERIAL NOT NULL, "title" VARCHAR(255) NOT NULL, "content" TEXT, "published" BOOLEAN NOT NULL DEFAULT false, "author_id" INTEGER NOT NULL, "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updated_at" TIMESTAMP(3) NOT NULL, PRIMARY ...
true
1849c8c00f672d5878bf55ced1af9da9a88debbe
SQL
nijynot/typegit
/sql/tables/hashtags.sql
UTF-8
327
3.0625
3
[]
no_license
create table hashtags ( hashtag varchar(255) not null, repository_id char(12) collate utf8mb4_bin not null, created datetime not null default now(), primary key (hashtag, repository_id), foreign key (repository_id) references repositories(repository_id) on update cascade on delete cascade ) engine=i...
true
5ad1fa3c09aaf7677af203d802bc83ed7c402611
SQL
ixsxi/SQL
/Practice/Practice02_2.sql
UTF-8
1,621
4.15625
4
[]
no_license
select count(manager_id) "haveMngCnt" from employees; select max(salary) 최고임금, min(salary) 최저임금, max(salary) - min(salary) "최고임금-최저임금" from employees; select to_char(max(hire_date),'YYYY"년"MM"월"DD"일"') from employees; select replace(hire_date, '/','.') from employees; select avg(salary), m...
true
8ab884da148f46ff23bc4dc1634e639581927dc1
SQL
josepitteloud/VESPA
/Data Governance/Data Definitions/Sky_Definitions/Household_Missed_Payment_SAV.sql
UTF-8
358
2.9375
3
[]
no_license
select account_number, acct_latest_active_block_dt, case when ACCT_COUNT_ACTIVE_BLOCKED_IN_12m > 0 then 'Yes' else 'No' end cust_active_blocked_last_12_months into #sav_acct_latest_active_block_dt from sk_prod.cust_single_account_view where cust_active_dtv = 1 and ACCT_COUNT_ACTIVE_BLOCKED_IN_12m > 0 select count(1) ...
true
a2b01372ed309bfb54012ceb6226814b93e87615
SQL
xuedapeng/jbiz-core
/doc/t_access_stats.sql
UTF-8
998
2.75
3
[ "Apache-2.0" ]
permissive
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for `t_access_stats` -- ---------------------------- CREATE TABLE `t_access_stats` ( `id` int(10) NOT NULL AUTO_INCREMENT, `domainId` varchar(80) DEFAULT NULL, `client_ip` varchar(80) DEFAULT NULL, `user_agent` ...
true
e57e32071cb5e8bb24bc9d360e9f30f34a6bde7c
SQL
guo521jun/seckill
/src/main/sql/schema.sql
UTF-8
1,674
3.78125
4
[]
no_license
--数据库初始化脚本 --连接数据库控制台 mysql -uroot -p123456 --创建数据库 CREATE DATABASE seckill; --使用数据库 USE seckill; --创建秒杀库存表 CREATE TABLE seckill( `seckill_id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '商品库存id', `name` VARCHAR(120) NOT NULL COMMENT '商品名称', `number` INT NOT NULL COMMENT '库存数量', `start_time` TIMESTAMP NOT NULL COMMENT '秒杀开始...
true
c24d81ee5900c0221d2fb749c1ebd335a0a0bda3
SQL
happy6eve/cap-other
/cap-webapp/src/main/webapp/top/workbench/platform/db/table.sql
GB18030
6,398
3.53125
4
[]
no_license
--΢ SELECT * FROM WORKBENCH_PORTLET p order by p.portlet_create_time asc ,p.portlet_tag desc --ģѯ΢ select t.portlet_tag, count(t.portlet_tag) count from (select p.portlet_tag from workbench_portlet p where p.portlet_id not in (select distinct tpr.portlet_id ...
true
49d1bfc5e02ff02e62bb0bcbf044ed9dcbd0bef1
SQL
glasseyes42/kubernaut
/server/lib/components/store/sql/list-registries.sql
UTF-8
208
3.53125
4
[ "MIT" ]
permissive
SELECT r.id, r.name, r.created_on, cb.id AS created_by_id, cb.display_name AS created_by_display_name FROM active_registry__vw r, account cb WHERE r.created_by = cb.id ORDER BY r.name ASC ;
true
99aa35cec6e1de8674e785644d1820c81df05e5e
SQL
alexmatusg/MySQL
/n°3.sql
UTF-8
212
3.796875
4
[]
no_license
SELECT countries.name, cities.name, cities.population FROM countries JOIN cities ON countries.id = cities.country_id WHERE countries.name = 'mexico' AND cities.population > 500000
true
fddb65ddf9c0637f447bdbe54584444e1b95637f
SQL
gradido/gradido_community_server
/skeema/gradido_community/state_errors.sql
UTF-8
354
2.578125
3
[]
no_license
CREATE TABLE `state_errors` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `state_user_id` int(10) unsigned NOT NULL, `transaction_type_id` int(10) unsigned NOT NULL, `created` datetime NOT NULL, `message_json` text COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=ut...
true
d07aa82c8cc9ba29afc5df7a47fe3aede324618e
SQL
keatonBraith/chola-market
/db/reviews/get_recent_reviews.sql
UTF-8
134
3.234375
3
[]
no_license
SELECT * FROM ratings r FULL OUTER JOIN products p ON p.product_id = r.product_id WHERE review IS NOT NULL ORDER BY r.review_id DESC;
true
168c05707dbb5d698238d4614d8b3c14123cc0a8
SQL
leqg/leqg
/sql/person-search-tags.sql
UTF-8
512
3.375
3
[]
no_license
SELECT `id` FROM `people` WHERE `tags` LIKE :search OR `id` IN ( SELECT `contact_id` FROM `historique` WHERE `historique_objet` LIKE :search OR `historique_notes` LIKE :search ) OR `id` IN ( SELECT `contact_id` FROM `fich...
true
e2e020851f931a2e5ccb35daa4c83418130f5cc9
SQL
RedPillAnalytics/transcend
/adhoc/load_tables_query.sql
UTF-8
1,294
3.5
4
[]
no_license
SET termout off COLUMN disable_ddl format a130 COLUMN enable_ddl format a130 COLUMN target_name_old format a35 var p_owner VARCHAR2(30) var p_source_owner VARCHAR2(30) var p_source_regexp VARCHAR2(100) var p_suffix VARCHAR2(30) var p_part_tabs VARCHAR2(3) var p_source_type VARCHAR2(10) EXEC :p_source_owner := 'testlo...
true
6436a0eb3a215503fc436918cb30e447bdae436b
SQL
LucaContri/dataanalysis
/SFReportEngine/resources/asia.operational.dashboard.sql
UTF-8
9,415
4.25
4
[]
no_license
select distinct Metric from analytics.sla_arg_v2; #ARG rejection rate select 'Performance' as 'Type', 'ARG rejection rate' as 'Metric', sp.Program_Business_Line__c as 'Stream', if(r.Reporting_Business_Units__c like 'AUS%', 'Australia', substring_index(r.Reporting_Business_Units__c,'-',-1)) as 'Country', r.Name as 'Own...
true
232b80ebc2f9c1e57c235da9c16de842098a6f1e
SQL
moutainhigh/cnsoft
/0.3.2.1/JFP-Common-Web/src/main/java/org/isotope/jfp/persistent/LogLoginer/LogLoginer.sql
UTF-8
853
2.828125
3
[ "Apache-2.0", "BSD-3-Clause-Clear" ]
permissive
CREATE TABLE log_loginer ( puk VARCHAR(40) NOT NULL COMMENT '系统数据唯一识别ID(固定主键)', account VARCHAR(40) COMMENT '登录账户名', uid BIGINT(12) COMMENT '用户ID', user_type TINYINT(1) DEFAULT '0' COMMENT '用户种类', is_admin TINYINT(1) DEFAULT '1' COMMENT '超级管理员', ip_adress VARCHAR(40) COMMENT 'IP地址', client_t...
true
f444106061bf38441c43e4ba7d8aa1f34c00c708
SQL
Shepelzz/java-jdbc-grom
/sql/lesson7/hw1/CREATE_HOTEL_TABLE.sql
UTF-8
308
3
3
[]
no_license
--DROP TABLE HOTEL; CREATE TABLE HOTEL( ID NUMBER, CONSTRAINT HOTEL_PK PRIMARY KEY(ID), HOTEL_NAME NVARCHAR2(50) NOT NULL, HOTEL_COUNTRY NVARCHAR2(50), HOTEL_CITY NVARCHAR2(50), HOTEL_STREET NVARCHAR2(50) ); --DROP SEQUENCE HOTEL_PK_SEQ; CREATE SEQUENCE HOTEL_PK_SEQ START WITH 1 INCREMENT BY 1;
true
609d71af4985fbd6751de16ca322f54c1501af2f
SQL
drohanreddy/deltax-imdb
/sql scripts/Actors.sql
UTF-8
252
3.203125
3
[]
no_license
USE DeltaX; CREATE TABLE Actor ( Id INT IDENTITY(1,1) PRIMARY KEY, [Name] NVARCHAR(100) NOT NULL, Sex CHAR(1) NOT NULL, DOB DATE NOT NULL, Bio VARCHAR(2000), ImageFileName VARCHAR(100), CONSTRAINT CHK_SEX_ACTOR CHECK (SEX = 'M' OR SEX = 'F') );
true
633b5c6dfe1273d37ac08d2b5c806b28e3674011
SQL
Falmarilion/spp-classics-cmangos
/sql/wotlk/website.sql
UTF-8
21,286
3
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.7.26 - MySQL Community Server (GPL) -- Server OS: Win32 -- HeidiSQL Version: 10.2.0.5599 -- -------------------------------------------------------- /...
true
51bfd54cc901b06f11680f2148fbca9e8e1607bd
SQL
nrsimonelli/scythe-league
/database.sql
UTF-8
601
3.53125
4
[]
no_license
CREATE TABLE player ( id SERIAL PRIMARY KEY, name VARCHAR (50) NOT NULL ); CREATE TABLE league ( id SERIAL PRIMARY KEY, division VARCHAR (50) ); CREATE TABLE game ( id SERIAL PRIMARY KEY, league_id INT REFERENCES league, game_number INT, finished BOOLEAN ); CREATE TABLE league_player ( league_id INT REFERE...
true
8ebf63d811b86bd3fff67f079b73cfd600315b4e
SQL
radtek/abs3
/sql/mmfo/msp/View/v_msp_envelopes_match2_hist.sql
WINDOWS-1251
4,105
3.453125
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /sql/msp/view/v_msp_envelopes_match2_hist.sql =========*** Run *** = PROMPT ===================================================================================== PROMPT *** Create ...
true
a5e076a5d055f9065c8bda1e98e59717df817aa9
SQL
syswarp/traslados
/modules/core/db/update/postgres/21/08/210820-2-createTraslados.sql
UTF-8
547
3.15625
3
[]
no_license
alter table TRASLADOS add constraint FK_TRASLADOS_ON_LANCHA foreign key (LANCHA_ID) references TRASLADOS_LANCHAS(ID); alter table TRASLADOS add constraint FK_TRASLADOS_ON_PUERTO foreign key (PUERTO) references TRASLADOS_PUERTOS(ID); alter table TRASLADOS add constraint FK_TRASLADOS_ON_PRACTICO foreign key (PRACTICO_ID)...
true
a55ab536639df29cd71b735839a4c4b6283bf5f4
SQL
adsgray/tilde.club-crawler
/schema/schema.sql
UTF-8
480
3.34375
3
[]
no_license
create table site( id INTEGER PRIMARY KEY, name varchar(100), baseurl varchar(100), recentmodpath varchar(100) ); -- tilde.club and affiliated users. create table user( id INTEGER PRIMARY KEY, site_id INTEGER, name varchar(100), FOREIGN KEY(site_id) REFERENCES site(id) ); create table tweet( id INTEGER PR...
true
0fbf2d0c7e1c2df1fc3c9c099ab016dc66b9d65a
SQL
AlexAegis/elte-web-2
/wf2zh1/resources/sql/database.sql
UTF-8
677
2.8125
3
[]
no_license
CREATE TABLE `alakzatok` ( `id` int(11) NOT NULL, `nev` varchar(30) COLLATE utf8_hungarian_ci NOT NULL, `szelesseg` int(11) NOT NULL, `magassag` int(11) NOT NULL, `kedvenc` tinyint(1) NOT NULL, `alakzat` text COLLATE utf8_hungarian_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLA...
true
8b5e1048d7bffc058008554e255c89db20c10f7c
SQL
chaerulumam/simple_invoice
/esb_test.sql
UTF-8
6,603
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Nov 11, 2020 at 06:07 PM -- Server version: 5.7.28-0ubuntu0.18.04.4 -- PHP Version: 7.2.24-0ubuntu0.18.04.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
b83b27b2ba2b91bc5d9e7e6c80707bb302506c01
SQL
hidayanto56/KKP
/Script/t01jual.sql
UTF-8
1,052
3.828125
4
[ "Apache-2.0" ]
permissive
SELECT t01_id, tanggal, m03.kd_tabung AS kd_tabung, m03.jenis_tabung AS jenis_tabung, m03.harga AS harga, m05.kdcust AS kdcust, m05.nmcust AS nmcust, jumlah, t01.keterangan FROM kkp.t01jual t01 INNER JOIN m03tabu m03 ON m03.kd_tabung = t01.kd_tabung INNER JOIN m05cust m05 ON m05.kdcust = t01.kdcust; SELECT t01_...
true
9640ec3b03def17a7f01654c3d1b232e2884f876
SQL
deckerrj/marcomage
/scripts/r223-forum.sql
UTF-8
1,723
3.4375
3
[]
no_license
ALTER TABLE `logins` ADD `UserType` char( 10 ) collate utf8_unicode_ci NOT NULL default 'user' AFTER `SessionID`; CREATE TABLE `forum_posts` ( `PostID` int(10) unsigned NOT NULL, `Author` char(20) collate utf8_unicode_ci NOT NULL, `Content` text collate utf8_unicode_ci NOT NULL, `Thread` int(10) NOT NULL, `...
true
5e11d8a125c3eabc87da0bfa7954fcb695e65135
SQL
patricknaka/Nova
/Views LN/VW_NFR_Ultimo_Recebimento.sql
UTF-8
4,626
3.109375
3
[]
no_license
-- #FAF.257 - 11-aug-2014, Fabio Ferreira, Correção duplicidade --********************************************************************************************************************************************************** SELECT LTRIM(RTRIM(whina112.t$item)) CD_ITEM, CAST((FROM_TZ(TO_TIMESTAMP(TO_CHAR(whina1...
true
a27470062fedd0a2db7fa0198b0590b52647df10
SQL
cdrosalita/datama2_assign01
/mysql__many_to_many_view_exercise_rccadungan/bacsilog.sql
UTF-8
17,498
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 30, 2019 at 12:02 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
b20184b86a8615c6e8e1af92f696191fbba4a9ae
SQL
centreon/centreon-broker
/bam/postgresql_v3/mod_bam_reporting_kpi_events.sql
UTF-8
415
2.625
3
[ "Apache-2.0" ]
permissive
-- -- KPI events. -- CREATE TABLE mod_bam_reporting_kpi_events ( kpi_event_id serial, kpi_id int NOT NULL, start_time int NOT NULL, end_time int default NULL, status smallint default NULL, in_downtime boolean default NULL, impact_level smallint default NULL, first_output text default NULL, first_perf...
true
3edc26f3ac70fadde993a090698cf1b2cf638299
SQL
Tagarela76/voc
/vwm/migrations/2012-09-07.sql
UTF-8
785
3.734375
4
[]
no_license
ALTER TABLE `accessory` ADD FOREIGN KEY ( `jobber_id` ) REFERENCES `jobber` ( `jobber_id` ) ON DELETE CASCADE ON UPDATE RESTRICT; CREATE TABLE IF NOT EXISTS `pfp2pfp_types` ( `pfp_id` int(11) NOT NULL, `pfp_type_id` int(11) NOT NULL, PRIMARY KEY (`pfp_id`,`pfp_type_id`), KEY `pfp_id` (`pfp_id`), KEY `pfp_ty...
true
44905a9a86dbc4558a73c60b4cff3fe12226c0a7
SQL
rich-zavala/MayabEvaluaciones
/db_info/MayabEvaluaciones/mayab_evaluaciones/respuestas_evaluacion_detalle.sql
UTF-8
983
3.625
4
[]
no_license
DROP VIEW IF EXISTS respuestas_evaluacion_detalle; CREATE VIEW respuestas_evaluacion_detalle AS SELECT ree.evaluacion, ef.empleado, ef.n empleado_nombre, ree.fechaRegistro, cc.titulo competencia, ccs.titulo seccion, ccsc.descripcion pregunta, cvp.etiqueta respuesta_etiqueta, cvp.titulo respuesta_valor FROM respuestas_e...
true