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
7299966d7e35200fe356249299051ba3c457fbb1
SQL
revado/scrapy-spider
/sql/lagou.sql
UTF-8
1,266
3.125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `scrapy_spider` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; USE `scrapy_spider`; CREATE TABLE IF NOT EXISTS `lagou_job` ( `id` INT NOT NULL AUTO_INCREMENT, `page_url` VARCHAR(512) NOT NULL COMMENT '页面URL', `page_url_object_id` VARCHAR(128) NOT NULL COMMENT '页面UR...
true
ab46d13c2b5ea314ad11f80e17974cfa749b8102
SQL
apuc/school
/school.sql
UTF-8
13,137
3.34375
3
[ "BSD-3-Clause" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Хост: localhost:3306 -- Время создания: Дек 12 2017 г., 18:02 -- Версия сервера: 5.7.20-0ubuntu0.17.10.1 -- Версия PHP: 7.1.8-1ubuntu1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLI...
true
ff4f5367f0da7b2677414129e944ee0bb88a4b91
SQL
JoaoGustavoRogel/Transdrone
/banco/drone.sql
UTF-8
4,970
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Máquina: localhost -- Data de Criação: 16-Set-2016 às 12:46 -- Versão do servidor: 5.5.34 -- versão do PHP: 5.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT...
true
a7832b645fb972a856f975e57dcc48f6ee77bd55
SQL
luisfelipeSB/GardenMarket
/Code/SQL/create_cart.sql
UTF-8
935
4.34375
4
[]
no_license
DELIMITER // CREATE PROCEDURE `create_cart` (IN bid INT) BEGIN START TRANSACTION; -- Creating the (GardenMarket) transaction INSERT INTO transactions(buyer_id) values (bid); -- Getting that GM transaction SET @tid = ( SELECT t.transct_id FROM transactions t LEFT JOIN transactionstate ts ON t...
true
3fe7e49d48c67812ce442fc2209fecf8275ee619
SQL
illiasmolii/springlab
/dao/src/main/resources/sql/schema.sql
UTF-8
800
3.828125
4
[]
no_license
CREATE TABLE USERS ( ID NUMBER NOT NULL PRIMARY KEY AUTO_INCREMENT, FIRST_NAME VARCHAR(32) NOT NULL, LAST_NAME VARCHAR(32) NOT NULL, AGE NUMBER ); CREATE TABLE PRODUCTS ( ID NUMBER NOT NULL PRIMARY KEY AUTO_INCREMENT, NAME VARCHAR(64) NOT NULL, PRICE NUMBER NOT NULL, CATEGORY VARCHAR(16) NOT NULL, GE...
true
e787d33d78b6d90aad81a2a55006c6fc1166c942
SQL
GrandComicsDatabase/gcd-historical-archive
/database/0.6_kin_der_kids/post-reprint-migrate-1.sql
UTF-8
229
2.921875
3
[]
no_license
-- if reprint notes stay the same during migration confirm their status UPDATE migration_story_status i INNER JOIN gcd_story h ON h.id = i.story_id SET i.reprint_confirmed=1 where h.reprint_notes = i.reprint_original_notes;
true
755559fa8101cd4d874c4fe5db1e3b53cbda3e27
SQL
KardanovIR/waves-voting
/v1-backend/init.sql
UTF-8
5,751
3.6875
4
[]
no_license
DROP TABLE IF EXISTS tokens CASCADE; DROP TABLE IF EXISTS voters CASCADE; CREATE TABLE tokens ( id SERIAL PRIMARY KEY, name TEXT NOT NULL UNIQUE, description TEXT NULL DEFAULT NULL, price text NULL DEFAULT NULL, icon text null ...
true
679e16c9e164a8496e7363aea36d195f9e0bba9d
SQL
aravind-honey/dbt-tutorial
/models/orders.sql
UTF-8
263
3.46875
3
[]
no_license
WITH orders as ( select id as order_id, user_id as customer_id from raw.jaffle_shop.orders ), payments AS( Select "orderID" AS order_id, amount from raw.stripe.payment) SELECT * FROM orders JOIN payments using(order_id)
true
5df46ef3ecfc0aa10cf85077b6ba91e8694b37a0
SQL
Luckzman/Fast-Food-Fast
/server/model/db/db.sql
UTF-8
1,698
3.328125
3
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS db_fastfoodfast; CREATE DATABASE db_fastfoodfast; db_fastfoodfast; CREATE TYPE order_status AS ENUM ('new', 'processing', 'cancelled', 'complete'); CREATE TYPE user_status AS ENUM ('regular', 'admin'); CREATE TYPE state AS ENUM ('lagos', 'abuja', 'portharcourt'); CREATE TABLE users( id U...
true
333034097133191d4fe1e67f5fe0e1458a4e16a7
SQL
dangeloandrea14/GestioneTirocini
/DBCreation.sql
UTF-8
5,515
3.34375
3
[]
no_license
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SU...
true
e603d5955420913c4557b2505d5fd72ef68226de
SQL
Haffizh/aplikasi-notifikasi
/src/main/resources/db/migration/V1.0.0.2018011601__Initial_Data_new.sql
UTF-8
4,156
3
3
[ "Apache-2.0" ]
permissive
DELETE FROM notification_configuration_variable WHERE id = 'pmb-registrasi-rekening'; DELETE FROM notification_configuration_variable WHERE id = 'pmb-registrasi-biaya'; DELETE FROM notification_configuration_variable WHERE id = 'keu-tagihan-tenggat'; update template_sms set template_content = 'Salam. Yth Sdr/i {{nama...
true
722007156a5acf350c847b7130ba0b9fc2de40e9
SQL
congweijing/hls_rent
/tables(新)/hls_hsm入住人员信息表.sql
GB18030
2,151
3.671875
4
[]
no_license
WHENEVER SQLERROR EXIT FAILURE ROLLBACK; WHENEVER OSERROR EXIT FAILURE ROLLBACK; spool hls_hsm.log prompt prompt Creating table hls_hsm prompt =========================== prompt whenever sqlerror continue drop table hls_hsm; whenever sqlerror exit failure rollback -- Create table create table hls_hsm ( people_id nu...
true
78dfc119a35206521846a039d492710b6d355801
SQL
abhishek1202/master
/customer_product.sql
UTF-8
1,730
3.71875
4
[]
no_license
CREATE DATABASE IF NOT EXISTS `Products_customer` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `Products_customer`; DROP TABLE IF EXISTS `customer`; CREATE TABLE `customer` ( `id` int(11) NOT NULL AUTO_INCREMENT, `first_name` varchar(45) DEFAULT NULL, `last_name` varchar(45) DEFAULT NULL, `email` varchar(45)...
true
357b6fd482beded109c159a0d664a94a8f8bc453
SQL
atlascodeio/Edukt
/database/android_api.sql
UTF-8
15,610
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10.7 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 03-10-2015 a las 14:38:58 -- Versión del servidor: 5.5.42-cll-lve -- Versión de PHP: 5.4.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
e77e9f127b67cd307624f269e1feb664dfcf3814
SQL
BinAff/School
/Development/Source Code/Sparkle/Sparkle/Database/Admission/Tables/SubjectScore.sql
UTF-8
500
3.578125
4
[]
no_license
CREATE TABLE [Admission].[SubjectScore] ( [Id] BIGINT IDENTITY (1, 1) NOT NULL, [TestId] BIGINT NOT NULL, [TestSubjectId] BIGINT NOT NULL, [MarksScored] BIGINT NULL, CONSTRAINT [PK_SubjectScore] PRIMARY KEY CLUSTERED ([Id] ASC), CONSTRAINT [FK_SubjectScore_Subject] FOR...
true
2d8894ffc733297623c217013ebdeada3eb29d07
SQL
edgar-code-repository/spring-boot-movies-rest-api
/sql/procedures/update_movie_by_id.sql
UTF-8
293
3
3
[]
no_license
CREATE PROCEDURE update_movie_by_id (IN movieId INT, IN title VARCHAR(255), IN year int, IN poster VARCHAR(255), IN plot VARCHAR(255), IN genreId INT) BEGIN update tbl_movie set title = title, year = year, poster = poster, plot = plot, genre_id = genreId where movie_id = movieId; END
true
d6863b556854def0c078f238d88a5f4a73912563
SQL
JohnathanALves/Siagri-ERP-Database
/contasapagar.sql
UTF-8
2,059
3.375
3
[]
no_license
SELECT CAB.CODI_EMP AS COD_EMPRESA, CAB.CODI_TRA AS COD_FORNECEDOR, TRANSAC.RAZA_TRA AS RAZAO_FORNECEDOR, CAB.CODI_TDO, TIPDOC.DESC_TDO AS TIPO_DOCUMENTO, CAB.DOCU_CPG AS DOCUMENTO, CAB.DMOV_CPG AS DATA_DOCUMENTO, CAB.COND_CON AS COD_CONDICAO, CONDICAO.DESC_C...
true
bc63e74b06f1c34c8a2491ec90228bee393ffaad
SQL
vasilvalkov/Databases
/Exam/SQLQuery01.sql
UTF-8
276
3.9375
4
[ "MIT" ]
permissive
-- 01. List all superheroes in Earth USE SuperheroesUniverse SELECT s.Id, s.Name FROM Superheroes s INNER JOIN PlanetSuperheroes ps ON s.Id = ps.Superhero_Id INNER JOIN Planets p ON ps.Planet_Id = p.Id GROUP BY p.Name, s.Name, s.Id HAVING p.Name = 'Earth' ORDER BY s.Id
true
a0b69233ce6086fabb78f8b129916ab13ea52276
SQL
ayeV/sql-server-samples
/TutorialSql/Ejercicio.sql
UTF-8
5,481
3.96875
4
[ "MIT" ]
permissive
drop table if exists empleado drop table if exists departamento create table empleado( codigo int, nombre varchar(50), edad smallint, oficio varchar(20), direccion varchar(30), fecha_alt date, salario float, comision int, depto_nro smallint, primary key(codigo) ); insert into empleado(codigo,nombre,ed...
true
4c80c18ea16fab6acd980492f1b0031f5747ca34
SQL
rodricadaval/sirge3
/queries_guardadas/fc_007.sql
UTF-8
1,515
3.484375
3
[ "MIT" ]
permissive
INSERT INTO estadisticas.fc_007(id_provincia,periodo,periodo_prestacion,cantidad_dr,cantidad_total_dr,cantidad) ( SELECT * FROM dblink('dbname=sirge host=192.6.0.118 user=postgres password=PN2012\$', 'SELECT p.id_provincia as "PROVINCIA" , extract(''year'' from l.fecha_cierre_lote)::varchar || lpad(...
true
5415bb581062dfeec250d8e1700b8d284f291882
SQL
FeatureToggleStudy/cmc-claim-store
/src/main/resources/db/migration/claimstore/V2017_08_18_1156__Migrate_data_model_for_party_type.sql
UTF-8
2,599
3.328125
3
[ "MIT" ]
permissive
/* * Changing schema for Claim */ -- update all rows and add type: individual to JSON of claimant UPDATE claim c SET claim = JSONB_SET(claim, '{claimant,type}', '"individual"' :: JSONB); -- update all rows and add type: individual to JSON of defendant UPDATE claim c SET claim = JSONB_SET(claim, '{defendan...
true
b4e7824859b6e01ccb1b9cb4476b818a373790fa
SQL
siddharthagupta20/AddressBookDB
/AddressBookDB.sql
UTF-8
7,608
3.203125
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64) -- -- Host: localhost Database: address_book -- ------------------------------------------------------ -- Server version 8.0.22 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */...
true
c1bad88812411458b78d2c5bf90dd2d82ea91e62
SQL
feinoah/bc-system
/src/main/resources/db/bcdata.update.v1.9.3-v1.9.4/template/bs/unitCarQuantityStat4Year.sql
UTF-8
321
3.765625
4
[]
no_license
select u.id uid, u.name uname, q.year_ as year, to_char(avg(q.quantity),'FM999.0') quantity from bs_motorcade_carquantity q inner join bs_motorcade m on m.id=q.motorcade_id inner join bc_identity_actor u on u.id=m.unit_id $if{condition != null}where ${condition}$end group by u.id,u.name,q.year_ order by q.year_,u.order...
true
f5291c496e753bee66da8b6a404130b0cad2c7e2
SQL
VijayMVC/Synergy
/User/Debbie Ann Chavez/PULL ELEMENTARY GRADES.sql
UTF-8
1,412
4.15625
4
[]
no_license
BEGIN TRANSACTION UPDATE rev.EGB_REPORTCARDSCORES SET MARK = '' /* select stu.STUDENTID ,T1.SIS_NUMBER ,T1.ORGANIZATION_NAME ,(tch.LASTNAME + ', ' + tch.FIRSTNAME) as TEACHER ,(stu.LASTNAME + ', ' + stu.FIRSTNAME) as STUDENT , rci.ITEM , rcs.MARK ,per.PERIOD */ from rev.EGB_REPORTCARDSCORES rcs ...
true
93c35764856a32738c114b91ea6d1cedfbdd3c13
SQL
effine/shopping
/docs/shopping.sql
UTF-8
2,782
3.640625
4
[ "MIT" ]
permissive
CREATE DATABASE IF NOT EXISTS `shopping` DEALLOCATE CHARACTER=UTF8; USE `shopping`; CREATE TABLE `product` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(60) NOT NULL COMMENT '商品名称', `nameEN` varchar(180) DEFAULT '商品英文名称' COMMENT '商品名称(英)', `code` varchar(20) NOT NULL COMMENT '商品编码', `alias` varchar...
true
e45df3c3a14886c961309bb321ff366dba095ae7
SQL
tilosamantha/travel-planner
/db/database.sql
UTF-8
682
2.859375
3
[]
no_license
CREATE DATABASE travel_planner; \c travel_planner; CREATE TABLE stuff( stuff_id SERIAL PRIMARY KEY, title VARCHAR(100) NOT NULL, link VARCHAR, description VARCHAR ); INSERT INTO stuff (title, link, description) VALUES ('Paris Catacombs', 'https://www.catacombes.paris.fr/en', 'Underground ossuaries in Paris, ...
true
f52cbf2b5c3ef78cc836dacc77cf9f4328f360ea
SQL
innovaccer/Buildsheet-Automation
/Buildsheet_1.x/deployment/buildsheet_semont_report.sql
UTF-8
2,015
4.03125
4
[]
no_license
DROP PROCEDURE IF EXISTS `buildsheet_semont_report`; DELIMITER $$ CREATE PROCEDURE `buildsheet_semont_report` ( IN aco_id_var varchar(20), IN source_id_var varchar(20), IN meta_var varchar(20) ) BEGIN IF aco_id_var = '' then set aco_id_var = '%'; end if; IF source_id_var = '' then set source_id_var = '%'; end if; I...
true
275caf9e11aaf484688e813ed49d6ef2c161a801
SQL
tvitcom/rest-recipe
/data/recipe_mysql_version.sql
UTF-8
2,728
3.390625
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.4.15.10 -- https://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Фев 23 2018 г., 05:14 -- Версия сервера: 5.5.59-0+deb8u1 -- Версия PHP: 5.6.33-0+deb8u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACT...
true
2780a1bddc8a1b313bb3f1ec0a2edceebdcc0119
SQL
Blackbaud-RakeshGarg/fenxt-npi-dev
/DDL/ADD_views/out_vw_accountbudgets_attr.sql
UTF-8
784
3
3
[]
no_license
CREATE OR REPLACE VIEW out_vw_accountbudgets_attr AS select AccountBudgetAttrId::VARCHAR(512) as cp__accountbudgetattrid, ScenarioId::VARCHAR(512) as r__budgetscenario, AccountBudgetId::VARCHAR(512) as a__accountbudgetid, TenantId::VARCHAR(128) as x__client_id FROM out_AccountBudgets_attr a where _sys_t...
true
f38efe885cbfcbc5e9d3376edad0b5a7d68681a1
SQL
carlosglmt/ProyectoBD
/sql/s-14-p-llena-temp-estadistica-prueba.sql
UTF-8
560
2.8125
3
[]
no_license
--@Autores: Andrés López Martínez y Carlos Gamaliel Morales Téllez --@Fecha creación: 09/06/2019 --@Descripción: Prueba Procedimieno Virtual Travel set serveroutput on Prompt ======================================= Prompt Prueba 1. prompt Insertando cálculos de cliente con id = 1. Prompt =============================...
true
6dab1eeec6ab52ac5e0e91f68a381bc4513daf56
SQL
hussien10/whoops
/api/db.sql
UTF-8
1,017
3.4375
3
[]
no_license
CREATE TABLE users( id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, username VARCHAR(255) NOT NULL UNIQUE, email VARCHAR(255) NOT NULL UNIQUE, password VARCHAR(100) NOT NULL, api_token VARCHAR(255) UNIQUE , profile_pic VARCHAR(255) , created_at DATETIME NOT NULL DEFAULT NOW(), PRIMARY KEY(...
true
f083a8e025ae1a30823604bbc769cb030cef1812
SQL
a21230536/ISEC
/BD/P08/P08.13.sql
UTF-8
951
3.90625
4
[]
no_license
-- FICHA 8 -- 13 -- Actualize o campo GENERO_PREFERIDO da tabela AUTORES_BACKUP de modo a -- referir-se ao género de livros que o autor mais escreveu. UPDATE autores_backup SET genero_preferido = ( SELECT favorito.genero FROM ( SELECT A.codigo_autor, A.genero FROM (SELECT codigo_autor, genero, count(ge...
true
9ae3ff5b5a6a6d5479170b53e5ad5d4db8de9ca7
SQL
daofuzhang/WantPy
/CODE/WantData/01-MariaDB/05-AP1/APDC/03-FN_GET_YMD.sql
UTF-8
1,122
3.28125
3
[]
no_license
DROP FUNCTION IF EXISTS APDC.FN_GET_YMD; CREATE FUNCTION APDC.FN_GET_YMD(VAR_YMD CHAR(8), VAR_YEAR_ADD INT, VAR_MONTH_ADD INT, VAR_DAY_ADD INT, IS_END_DAY CHAR(1)) RETURNS CHAR(8) BEGIN DECLARE VAR_RETURN_YMD CHAR(8); DECLARE VAR_ADD_YMD CHAR(8); SET VAR_ADD_YMD = DATE_FORMAT(DATE_ADD(DATE_ADD(DATE_ADD(C...
true
c0a6a509e2dba0aa6365b2999d7530323a8385a6
SQL
LukasHDyreborg/NordicMotorhomeRental
/Nordic Motohome Rental DATABASE.sql
UTF-8
3,408
3.875
4
[]
no_license
--Lavet af alle medlemmer DROP DATABASE IF EXISTS nordicMotorhome; CREATE DATABASE nordicMotorhome; USE nordicMotorhome; CREATE TABLE customers ( id INT PRIMARY KEY AUTO_INCREMENT, `name` VARCHAR(45) NOT NULL, age INT NOT NULL, email VARCHAR(45) NOT NULL, cpr VARCHAR(20) NOT NULL UNIQUE, phone...
true
fb0fd63045fd350720d7340994d627fbc6a17d63
SQL
woshani/INternAppv2
/internshipapp.sql
UTF-8
9,746
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 08, 2017 at 06:37 PM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.0.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
06e0b63b44c7c3bf2f788ff4194e2518a2fda1af
SQL
ryym/fores
/migrations/2018-12-06-130053_add_deletion_cascading/down.sql
UTF-8
310
3.140625
3
[]
no_license
ALTER TABLE file_assocs DROP CONSTRAINT file_assocs_child_id_fkey, ADD CONSTRAINT file_assocs_child_id_fkey FOREIGN KEY (child_id) REFERENCES files (id); ALTER TABLE file_owners DROP CONSTRAINT file_owners_file_id_fkey, ADD CONSTRAINT file_owners_file_id_fkey FOREIGN KEY (file_id) REFERENCES files (id);
true
561d02d3dd0c5214ad935d421d5f7e2e1a4722ae
SQL
codeformuenster/verkehrsunfaelle
/csv/csv-export.sql
UTF-8
2,133
2.9375
3
[]
no_license
COPY ( SELECT id, data->'source_file' AS source_file, data->'import_timestamp' AS import_timestamp, data->'source_file_hash' AS source_file_hash, data->'source_row_number' AS source_row_number, data->'place' AS place, data->'place_near'AS place_near, data->'day_of_week' AS day_of_week,...
true
f9275a9d67e9e772a6f48ee5b71bcf2ff315b72a
SQL
RemyaP/cet-pt-cse-2018
/DB/real_db_structure.sql
UTF-8
11,934
3.09375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: localhost Database: real_estate -- ------------------------------------------------------ -- 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
d1274faf838cf1ac582f11a5f6083493673c7161
SQL
rolandoquiroz/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/103-rating_genres.sql
UTF-8
605
3.90625
4
[]
no_license
-- Script that lists all genres in the database hbtn_0d_tvshows_rate by their rating. -- Import the database dump from hbtn_0d_tvshows_rate to your MySQL server -- Each record should display: tv_genres.name - rating sum -- Results must be sorted in descending order by their rating -- You can use only one SELECT stat...
true
9e851fe90ee634e9b4f703c44046e653f0acf438
SQL
nss-day-cohort-46/rare-server-devious-dragons
/reset.sql
UTF-8
6,110
3.5
4
[]
no_license
DROP TABLE IF EXISTS Users; DROP TABLE IF EXISTS DemotionQueue; DROP TABLE IF EXISTS Subscriptions; DROP TABLE IF EXISTS Posts; DROP TABLE IF EXISTS Comments; DROP TABLE IF EXISTS Reactions; DROP TABLE IF EXISTS PostReactions; DROP TABLE IF EXISTS Tags; DROP TABLE IF EXISTS PostTags; DROP TABLE IF EXISTS Categories; ...
true
636378884a19a1b461882bcbf66dbd8ea59f2cb7
SQL
dmitrilacour/ClientProject
/DB Tables/tblTask.sql
UTF-8
1,566
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.10 -- http://www.phpmyadmin.net -- -- Host: localhost:8889 -- Generation Time: Apr 20, 2015 at 02:11 AM -- Server version: 5.5.38 -- PHP Version: 5.6.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `dbGreenSquads` -- -- -----------------------...
true
914ecc81a5f9acccd40870b599332c95b08842df
SQL
MiriamNasarre/Pokemon
/pokemon.sql
UTF-8
52,574
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 06-07-2019 a las 07:41:21 -- Versión del servidor: 10.1.36-MariaDB -- Versión de PHP: 5.6.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
27ca36d1de42f940622c7c418b303ae7c80f1b8e
SQL
rsidhu10/estimate
/sql/create table village_c.sql
UTF-8
1,599
2.625
3
[]
no_license
CREATE TABLE `villages_c` ( `Id` int(11) NOT NULL, `vcode_mis` varchar(5) CHARACTER SET latin1 NOT NULL, `zone_id` varchar(3) CHARACTER SET latin1 NOT NULL, `circle_id` varchar(3) CHARACTER SET latin1 NOT NULL, `district_id` varchar(3) CHARACTER SET latin1 NOT NULL, `division_id` varchar(5) CHARACTER SET la...
true
d87e92a4c34fa3d7147b3c752dc7242d9a075242
SQL
navikt/helse-spleis
/sykepenger-mediators/src/main/resources/db/migration/V10__oppretter_personer.sql
UTF-8
168
2.921875
3
[ "MIT" ]
permissive
insert into unike_person (fnr,aktor_id) select p.fnr, p.aktor_id from person p left join unike_person up on up.fnr = p.fnr where up.fnr is null on conflict do nothing;
true
be74a2370b5234cf2e6b1ee4c62a9266e0a5598e
SQL
esmaeil-jafary/ecom
/ecom.sql
UTF-8
8,096
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 28, 2020 at 03:38 PM -- 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
40f1cc7f98045f53f25eb1fa8f76bff1bce2d894
SQL
BredikhinAlexander/data_base
/Lab_4/Dop_new_version.sql
UTF-8
494
3.875
4
[]
no_license
UPDATE CAPTAIN SET CAPTAIN.Qualification_ID = (TAb.New_Qualification) FROM (SELECT CAPTAIN.Last_name, CAP.Num_trip, Num_trip / 5 + 1 as [New_Qualification] FROM CAPTAIN JOIN (SELECT CAPTAIN.Last_name, COUNT(*) as [Num_trip] FROM TRIP JOIN SHIP on TRIP.Ship_ID = SHIP.Ship_ID JOIN CAPTAIN on SHIP.Captai...
true
3942881c604db6072532a60ef815bb6b8e5d3770
SQL
EnsemblGenomes/ensemblgenomes-api
/modules/t/test-genome-DBs/escherichia_coli/core/analysis.sql
UTF-8
2,004
2.9375
3
[ "BSD-2-Clause" ]
permissive
-- MySQL dump 10.14 Distrib 5.5.33a-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: test_escherichia_coli_core_21_74_1 -- ------------------------------------------------------ -- Server version 5.5.33a-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTE...
true
b6dc23f5fc777756580f393b71fc9a68fa864523
SQL
PrestaShop/PrestaShop-1.4
/install-dev/sql/db.sql
UTF-8
63,972
3.3125
3
[]
no_license
SET NAMES 'utf8'; CREATE TABLE `PREFIX_access` ( `id_profile` int(10) unsigned NOT NULL, `id_tab` int(10) unsigned NOT NULL, `view` int(11) NOT NULL, `add` int(11) NOT NULL, `edit` int(11) NOT NULL, `delete` int(11) NOT NULL, PRIMARY KEY (`id_profile`,`id_tab`) ) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;...
true
54a0303709c71e7a4d526faee99b75e4ddc0c07c
SQL
paularnaud2/CAPC5
/Python/reqlist/queries/e_RL.sql
UTF-8
1,321
3.671875
4
[]
no_license
SELECT * FROM( SELECT seg.PRM_ID POINT , srv.SERVICE_ID SRV_ADAM, srv.SERVICE_TYPE, srv.ETAT_CODE , TO_CHAR(srv.DATE_DEBUT, 'DD/MM/YYYY') DATE_DEBUT , TO_CHAR(srv.DATE_FIN, 'DD/MM/YYYY') DATE_FIN , TO_CHAR(srv.DATE_MODIFICATION, 'DD/MM/YYYY') DATE_MODIF , srv.MOTIF_FIN_LIBELLE, srv.PERIODICITE_TRANSMISSION ...
true
69f577f3eab0d98ad7818d7ec7cfb1627faff2db
SQL
jalcoforado/PontoSeas
/back/scripts/migrations.sql
UTF-8
21,743
3.609375
4
[]
no_license
CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" ( "MigrationId" character varying(150) NOT NULL, "ProductVersion" character varying(32) NOT NULL, CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId") ); CREATE SCHEMA IF NOT EXISTS business; CREATE SCHEMA IF NOT EXISTS general; CREATE SEQU...
true
81ef0306630c4b1ad2cfefa4716e8b50948c9abc
SQL
antuone/dream
/Dream/Запросы для адресов/Requests.sql
UTF-8
18,983
3.953125
4
[]
no_license
SELECT REGIONCODE, AREACODE FROM `addrobj` WHERE ACTSTATUS=1 AND AOLEVEL=3 AND REGIONCODE=59 GROUP BY AREACODE SELECT OFFNAME, REGIONCODE, AREACODE, CITYCODE FROM `addrobj` WHERE ACTSTATUS=1 AND AOLEVEL=4 AND REGIONCODE='59' AND AREACODE='027' SELECT OFFNAME, REGIONCODE, AREACODE, CITYCODE FROM `addrobj` WHERE ACTSTA...
true
5ba553d2de044d6ad63abd3f8b88e2f305f28b3d
SQL
BeatrizGomesAbreu/turma30java
/mysql/Lista2/exerc.5.sql
UTF-8
1,313
3.90625
4
[]
no_license
CREATE DATABASE db_construindo_a_nossa_vida; USE db_construindo_a_nossa_vida; CREATE TABLE tb_categoria ( id INT NOT NULL AUTO_INCREMENT, tipo VARCHAR(25) NOT NULL, peso VARCHAR(25) NOT NULL, PRIMARY KEY (id) ) ENGINE=INNODB; INSERT INTO tb_categoria(tipo, peso) VALUES ("Ferragem","Médio/Pesado"),(...
true
da7ed79b84030227856d595ec9e8b67262b5d9f4
SQL
SupreethSudhakaranMenon/Scorecard-for-Credit-Risk-Assessment
/scorecard/database/script.sql
UTF-8
1,503
2.90625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `springbootdb` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */; USE `springbootdb`; -- Table structure for table `product` -- DROP TABLE IF EXISTS `c_feature`; CREATE TABLE `configuration` ( `id` int(11) NOT NULL AUTO_INCREMENT, `version` varchar(512) CH...
true
cff31fa7e36b5ffddec3717bc6dd7d5a4e676063
SQL
dingjinhui821/julive_database
/sql/julive_topic/topic_lable_user_lifecycle_base.sql
UTF-8
10,118
3.859375
4
[]
no_license
-- 核心事件标签表 -- --------------------------------------------------------------------------------------------------------- -- --------------------------------------------------------------------------------------------------------- -- --------------------------------------------------------------------------------------...
true
a3c7691cd43fe654a5de7cf948a94d97fb01459b
SQL
SitiKomalasari14/pw2021_203040078
/kuliah/pertemuan11/pw_203040078.sql
UTF-8
2,021
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 30, 2021 at 10:13 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
ba130e7fad26f300a1ae48f660c26f1e2deba300
SQL
Pathik1973Git/MyFirstRepo
/db_Test/db_Test/ARC/Tables/ARCHIVE_ARTIFACT_CTRL_MASTER.sql
UTF-8
2,190
2.765625
3
[]
no_license
CREATE TABLE [ARC].[ARCHIVE_ARTIFACT_CTRL_MASTER] ( [CHG_ID] INT NOT NULL, [CHG_LOAD_ID] INT NOT NULL, [CHG_DATETIME] DATETIME NOT NULL, [ART_CTRL_MASTER_ID] INT NOT NULL, [ART_NME] ...
true
1e1b25774c54f6007fadfd9ddbdc0d96b2f409c6
SQL
vsyboy/vsyChat
/SQL-Initialisierungen/Datenbank 2/user.sql
UTF-8
1,125
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.3.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Erstellungszeit: 09. Okt 2012 um 12:44 -- Server Version: 5.0.77 -- PHP-Version: 5.2.17 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
8925255981dbcc13ea34f72f8cf997b042cde365
SQL
splinterzealotDEV/UEFA
/SQL/2_sprint/luisa/triggers_uefa.sql
UTF-8
7,761
3.171875
3
[]
no_license
-- ----------------------------------------------------- -- TRIGGERS Pais from UEFA -- ----------------------------------------------------- CREATE TRIGGER insert_Pais after insert on Pais FOR EACH ROW BEGIN IF NEW.id_db = 1 THEN insert into Pais_Liga values(new.id_pais,new.id_db,new.nombre); END IF; END;// CREATE T...
true
bce1a5b91707a095aa61607462627b2255b88e35
SQL
spencerrecneps/pfb
/streetlight/streetlight_destinations.sql
UTF-8
735
3.25
3
[]
no_license
---------------------------------------- -- INPUTS -- location: neighborhood -- proj: 3857 ---------------------------------------- DROP TABLE IF EXISTS neighborhood_streetlight_destinations; CREATE TABLE generated.neighborhood_streetlight_destinations ( id SERIAL PRIMARY KEY, geom geometry(multipolygon,4326), ...
true
bb9dd82a2d19619b90eeaf6c709d40d117dd4337
SQL
BooksWorms/Project_5
/db/Schema.sql
UTF-8
2,392
3.671875
4
[]
no_license
Drop DATABASE books_worms; CREATE DATABASE books_worms; USE books_worms; CREATE TABLE roles ( role_id INT AUTO_INCREMENT NOT NULL, role VARCHAR(255) NOT NULL, PRIMARY KEY (role_id) ); CREATE TABLE users ( user_id INT AUTO_INCREMENT NOT NULL, firstName NVARCHAR(255), lastName NVARCHAR(255), ...
true
43393f79d38a4e5100db46d3a10a6516d81562ea
SQL
miwgu/Project_Shoes_Webshop
/src/main/java/sqlCode/functions.sql
UTF-8
2,042
4.0625
4
[]
no_license
-- *********************************************************** -- updates the stock based on status. -- ************************************************************ drop function if exists getCategoryNameById; DELIMITER // create function getCategoryNameById (categoryId int) returns varchar(50) reads sql d...
true
25de031b09456a055874077532cca126a9c1e39c
SQL
ilevmedis/alters
/alters/alters_2013/ALTER_2013_08_20_PBL_DAPY.sql
UTF-8
1,189
2.8125
3
[]
no_license
create table pbl_dapy( companyid number(38) not null, reqheaderid number(38) not null, visitid number(38) not null, visitfyearid number(38) not null, visitmnemonic varchar2(20) not null, lastname varchar2(50) not null, firstname varchar2(50) not null, insurancecode varchar2(20), insurancenumber varcha...
true
b046730c297a72b5f9577027236a8454cd5f1594
SQL
Outofsynx/Plastic-tea
/test.sql
UTF-8
11,296
3.375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Gegenereerd op: 15 jun 2021 om 14:08 -- Serverversie: 10.4.11-MariaDB -- PHP-versie: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
96a854cb7c2f6f86603236348d00d97483b85283
SQL
jiankian/AnnZone
/AnnZone-Serve/db_export/mysql/ann_zone_serve_2018-01-25.sql
UTF-8
27,507
3.09375
3
[ "MIT" ]
permissive
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: localhost (MySQL 5.6.35) # Database: ann_zone_serve # Generation Time: 2018-01-25 10:09:56 +0000 # ****************************************...
true
7feae7b894ffa4d886847d48c390ed339138dc2b
SQL
sriavr/student-profile-team4
/StudentProfile/SQL/StudentProfile.sql
UTF-8
10,911
3.109375
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.5.8 - MySQL Community Server (GPL) -- Server OS: Win32 -- HeidiSQL version: 7.0.0.4053 -- Date/time: 2013-01-28 16:07:43 -- --...
true
fe0f8d3e5675ca417e1193946894d915c9f500f2
SQL
Leshy4/SQL-Database-Design
/4. Intro to SQL/exercise_SOLUTIONS/SQL scripts/ch18/fig18-11.sql
UTF-8
1,124
3.640625
4
[]
no_license
-- use the EX connection CONNECT ex/ex; CREATE OR REPLACE PROCEDURE compare_blobs ( blob1 IN OUT NOCOPY BLOB, blob2 IN OUT NOCOPY BLOB, compare_result OUT NUMBER ) AS blob1_offset NUMBER := 1; blob2_offset NUMBER := 1; buffer_size NUMBER := 32768; BEGIN com...
true
82dddeda97b64ee6883295391cc1022d4f8a70ea
SQL
Kryspo/L2jRamsheart
/dist/tools/sql/server/HWID_info.sql
UTF-8
364
2.59375
3
[ "MIT" ]
permissive
CREATE TABLE `hwid_info` ( `HWID` varchar(32) NOT NULL default '', `HWIDSecond` varchar(32) NOT NULL default '', `WindowsCount` INT UNSIGNED NOT NULL DEFAULT 1, `Account` varchar(45) NOT NULL default '', `PlayerID` INT UNSIGNED NOT NULL DEFAULT 0, `LockType` enum('PLAYER_LOCK','ACCOUNT_LOCK','NONE') NOT NULL default 'N...
true
1230771d52f279aece0efe3c91885731b06f1831
SQL
chenchongyuang/WedHoxing
/t_shopping.sql
UTF-8
2,095
2.671875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 本地 Source Server Version : 50714 Source Host : localhost:3306 Source Database : hoxing Target Server Type : MYSQL Target Server Version : 50714 File Encoding : 65001 Date: 2018-01-22 10:01:22 */ SET FOREIGN_KEY_CHECKS=0; -- ---------...
true
b63d737659ffbd286995b552c9e86266cdabca5c
SQL
MattHeffNT/database_webapp
/lib/sql/create.sql
UTF-8
1,167
3.796875
4
[]
no_license
USE darwinArt_db; DROP TABLE IF EXISTS Customer,Purchase,PurchaseItem,Product; CREATE TABLE Customer ( CustEmail Char (30), id INT(11) NOT NULL, CustFname CHAR(50) NOT NULL, CustLName CHAR(50) NOT Null, Title CHAR(50), Address CHAR (50), City CHAR(40) NOT NULL, State CHAR (40) NOT NULL, Country CHAR(30) NOT...
true
5e255b8fcace98b30fdd789aa0d3cd14fcf88604
SQL
AndrewD14/bamazon
/sql scripts/mock_data.sql
UTF-8
2,079
3.078125
3
[]
no_license
#mock data for produt USE bamazon; #departments INSERT INTO departments (department_name,department_desc,over_head_cost) VALUES ('Foods', '', 12000); #Products INSERT INTO products (product_name,department_id,price,stock_quantity) VALUES ("Banana", 1, .79, 15); INSERT INTO products (product_name,department_id,price,...
true
f43c05927414fe0cca00235c2e2a8583b8492cad
SQL
AppWerft/Tierstimmenarchiv
/Resources/model/init.sql
UTF-8
837
2.8125
3
[]
no_license
BEGIN TRANSACTION CREATE TABLE IF NOT EXISTS records (species TEXT, erstbeschreibung TEXT, subspecies TEXT, deutscher_name TEXT, english_name TEXT, ort TEXT, country TEXT,latitude NUMBER,longitude NUMBER,altitude NUMBER,recording_date TEXT,recording_time TEXT,sex TEXT,age TEXT,Beschreibung TEXT,Description TEXT,sound_t...
true
6adbb2926b9a268f78b57e07dfa37fb5274b1680
SQL
gtorinsd/LibrarianTool_MyVersion
/sql/main.sql
UTF-8
426
3.59375
4
[]
no_license
SELECT B.rowid as _id, B.Name as BookName, A.Name as AuthorName, G.Name as GenreName, B.Publishing as Publishing, B.BookEditionYear as BookEditionYear, B.Photo as Photo, B.Comments as Comments, T.Client_ID as Client_ID FROM "tblBooks.db" B LEFT OUTER JOIN "tblAuthors.db" A ON B.Author_ID = A._ID LEFT OUTER JO...
true
ffa70c839e217ca0e1caaf507528963a7f06d7cb
SQL
anaruzz/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/10-genre_id_by_show.sql
UTF-8
289
3.375
3
[]
no_license
-- lists all shows contained in hbtn_0d_tvshows that have at least one genre -- linked. SELECT `tv_shows`.`title`, `tv_show_genres`.`genre_id` FROM tv_show_genres INNER JOIN tv_shows ON `tv_show_genres`.`show_id` = `tv_shows`.`id` ORDER BY `tv_shows`.`title`, `tv_show_genres`.`genre_id`;
true
43b62807c93dc537a1ec7c7b6035f77cd51d4c9a
SQL
Andres-Deza/BibliotecaJavaSwing
/ScriptCreacionTablas.sql
ISO-8859-1
21,768
3.1875
3
[]
no_license
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 05/06/2018 10:32:10 */ /*==============================================================*/ drop table if exists ARRIENDO; drop table if exis...
true
3643d599ff2aab86dfe159d0b348b3a7f5d64e8a
SQL
HKevinH/JadeCore-Fix-Scripst
/sql/fix_sql/2858_misc.sql
UTF-8
1,032
2.515625
3
[]
no_license
-- Norushen DELETE FROM `areatrigger_template` WHERE `spell_id`=144479; INSERT INTO `areatrigger_template` (`spell_id`, `eff_index`, `entry`, `type`, `scale_x`, `scale_y`, `flags`, `move_curve_id`, `scale_curve_id`, `morph_curve_id`, `facing_curve_id`, `data0`, `data1`, `data2`, `data3`, `data4`, `data5`, `data6`, `d...
true
008f0e257cc07445d112670e79b542d116c5c01d
SQL
tanghomvee/insurance-octopus
/src/main/resources/init.sql
UTF-8
3,589
2.953125
3
[]
no_license
drop schema if exists ins_octopus; create schema ins_octopus collate utf8mb4_general_ci; use ins_octopus; drop table if exists t_req_cfg; /**请求配置*/ create table t_req_cfg ( id bigint auto_increment primary key, uri varchar(255) not null , param varchar(500) not null , ins_company varchar(255) not nu...
true
cbd4b1c3b05fc334b07a5d9ba31ae5254c460f72
SQL
smailkaddi/uploadimage
/image_upload.sql
UTF-8
1,469
2.796875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 31, 2020 at 04:01 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
508bb0e2f0c4a2187b18e11dd122899b8a67ce1c
SQL
Issa992/CustomerRestServiceEx
/SQLQuery1.sql
UTF-8
300
3.40625
3
[]
no_license
--SELECT dbo.customer.Id,dbo.customer.FirstName,dbo.customer.LastName,dbo.customer.Year FROM dbo.customer INNER JOIN dbo.orders ON orders.CustomerId = customer.Id; --select * from dbo.customer where dbo.orders.CustomerId=dbo.customer.Id ORDER BY FirstName; Select * from orders where CustomerId=3
true
fa9bbae840c81eabb7709e812c9d8a3db3ef3ca5
SQL
Jennas-Lee/personal-project
/Math-Planner/sql/query.sql
UTF-8
22,598
3.03125
3
[]
no_license
CREATE DATABASE math; USE math; CREATE TABLE yeonma_math1 ( BigMem VARCHAR(50) NULL, BigNum NUMBER, SmlMem VARCHAR(50) NULL, SmlNum NUMBER; CompleteDate DATE, CompleteTrue BOOLEAN ); CREATE TABLE ssen_math1 ( BigMem VARCHAR(50) NULL, BigNum NUMBER, MidMem VARCHAR(50) NULL, MidN...
true
2b0ffdf9aebaf31b36555ba31517c1434594b23c
SQL
atb00ker/ideation-portal
/src/models/migrations/ideationdb/1628323887053_create_view_topics_count_by_department/up.sql
UTF-8
122
3.140625
3
[ "MIT" ]
permissive
CREATE VIEW topics_count_by_department AS SELECT department, count(department) FROM topics GROUP BY department;
true
0736e3c079fe634349c1b3a1490f43e2042f6fff
SQL
muhtutorials/ijdb
/sql_tables.sql
UTF-8
666
3.6875
4
[]
no_license
CREATE DATABASE ijdb; CREATE TABLE `joke` ( `id` INT PRIMARY KEY AUTO_INCREMENT, `text` LONGTEXT NOT NULL, `timestamp` DATETIME DEFAULT CURRENT_TIMESTAMP, `author_id` INT NOT NULL ); ALTER TABLE `joke` ADD INDEX(`author_id`); CREATE TABLE `author` ( `id` INT PRIMARY KEY AUTO_INCREMENT NOT NULL, `name` VARCHAR(...
true
5ae3a7ea0071d34f3b662b3350b5b2dd9f01dc42
SQL
ivaylogochev/MSSQL_SoftwareUniversity
/Ex02_CRUD/CRUDOperations.sql
WINDOWS-1252
3,163
4.21875
4
[ "MIT" ]
permissive
--1. Examine the Databases --Download and get familiar with the SoftUni, Diablo and Geography --2. Find All Information About Departments SELECT * FROM Departments; --3. Find all Department Names SELECT [Name] FROM Departments; --4. Find Salary of Each Employee SELECT [FirstName], [LastName], [Salary] FROM Emplo...
true
cd22a3504a73211de21adffcc43bb567e3b30263
SQL
MikuSugar/LeetCode
/sql/N1142_user_activity_for_the_past_30_days_ii.sql
UTF-8
2,464
4.46875
4
[ "Apache-2.0" ]
permissive
select ifnull(round(avg(session),2),0) average_sessions_per_user from ( select count(distinct session_id) session from Activity where datediff('2019-07-27', activity_date) <= 29 group by user_id ) a --SQL架构 --Table: Activity -- --+---------------+---------+ --| Column Name | Type | --+-------------...
true
f9e0ffc0ccdb0103dd6d9fa527108e7184bf2d63
SQL
zhangmingfeiHub/bubalus-file
/sql/init-table/sys_menu.sql
UTF-8
916
3.609375
4
[]
no_license
DROP TABLE IF EXISTS `sys_menu`; CREATE TABLE IF NOT EXISTS `sys_menu` ( `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键ID', `menu_code` varchar(60) NOT NULL DEFAULT '' COMMENT '菜单码(唯一性)', `menu_name` varchar(100) NOT NULL DEFAULT '' COMMENT '菜单名称', `menu_link` varchar(100) NOT NULL DEFAULT '' CO...
true
9e3817b84add2c9ef4e681bb40a7ef6dd6952aac
SQL
authomps/Bookshelf
/init_db.sql
UTF-8
2,442
3.84375
4
[]
no_license
DROP DATABASE IF EXISTS team15; CREATE DATABASE team15; use team15; DROP TABLE IF EXISTS users; DROP TABLE IF EXISTS books; DROP TABLE IF EXISTS friends; DROP TABLE IF EXISTS usersBooks; CREATE TABLE books ( isbn VARCHAR(13) NOT NULL PRIMARY KEY, title VARCHAR(50) CHARACTER SET utf8, author_first_name VARCHAR(2...
true
88195360d8bc7dcb1af186207a799af636be39c0
SQL
fivetran/dbt_fivetran_log3
/dbt_modules/fivetran_utils/macros/dummy_coalesce_value.sql
UTF-8
828
2.71875
3
[ "Apache-2.0" ]
permissive
{% macro dummy_coalesce_value(column) %} {% set coalesce_value = { 'STRING': "'DUMMY_STRING'", 'BOOLEAN': 'null', 'INT': 999999999, 'FLOAT': 999999999.99, 'TIMESTAMP': 'cast("2099-12-31" as timestamp)', 'DATE': 'cast("2099-12-31" as date)', } %} {% if column.is_float() %} {{ return(coalesce_value['FLOAT']) }} ...
true
cfa178cf16323361636d0fcbe4598758da2e9556
SQL
FeiZhan/Algo-Collection
/answers/leetcode/Trips and Users.sql
UTF-8
467
3.640625
4
[ "MIT" ]
permissive
# 9 / 9 test cases passed. Status: Accepted Runtime: 291 ms Submitted: 1 minute ago You are here! Your runtime beats 7.34% of mysql submissions. # Write your MySQL query statement below SELECT Request_at DAY, ROUND(SUM(IF(Status = 'completed', 0, 1)) / COUNT(*), 2) 'Cancellation Rate' FROM Trips t LEFT ...
true
ed1ceba75b01789eef1050e628fe650bd1bf41ae
SQL
Khanmauzi/LabWork
/DBMS LAB/ASSIGNMENT1/p14.sql
UTF-8
104
2.84375
3
[]
no_license
select salespersonnumber,sum(quantity) from sales group by salespersonnumber order by salespersonnumber;
true
3d944a8bfac8b267db130b3c56af46398022e14c
SQL
mugiwarachmat/belajar_ci
/belajar_ci.sql
UTF-8
4,100
2.828125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.0.4.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 26, 2015 at 03:49 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
30522848ea790f7d0ec9676030340eaea6f6ae93
SQL
Ariah-Group/Research
/db_scripts/main/KC-RELEASE-3_0-CLEAN/mysql/kcrelease/datasql/KC_DML_01_SPONSOR_TYPE.sql
UTF-8
2,399
2.640625
3
[ "Apache-2.0", "ECL-2.0" ]
permissive
delimiter / TRUNCATE TABLE SPONSOR_TYPE / INSERT INTO SPONSOR_TYPE (SPONSOR_TYPE_CODE,DESCRIPTION,UPDATE_USER,UPDATE_TIMESTAMP,OBJ_ID,VER_NBR) VALUES ('0','Federal','admin',NOW(),UUID(),1) / INSERT INTO SPONSOR_TYPE (SPONSOR_TYPE_CODE,DESCRIPTION,UPDATE_USER,UPDATE_TIMESTAMP,OBJ_ID,VER_NBR) VALUES ('1','State...
true
04e6a5df7429294cb8cead9011f1cd11ea686edd
SQL
peterjgordon/sql-pet-shop
/create.sql
UTF-8
2,297
3.421875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS petshop; USE petshop; DROP TABLE IF EXISTS pet_keeper,pet,keeper,species; CREATE TABLE species ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(20) NOT NULL ); insert into species(name) values('Dog'); insert into species(name) values('Cat'); insert into species(name) values('S...
true
e6621cf663f8cbb64cd8fc35472e31a10b271f82
SQL
JcGaara/SGA-PLSQL-OPE
/SGA-OPERACION/Tables/Table_RegLogApk.sql
ISO-8859-1
2,288
3.375
3
[]
no_license
--operacion.maestro_Series_equ_det -- Create table create table OPERACION.REG_LOG_APK ( idseq number not null, tipo VARCHAR2(100), cod_resp VARCHAR2(100), msg_resp VARCHAR2(500), param_envio CLOB, estado_log NUMBER, usureg VARCHAR2(30) default USER,...
true
13b4560ff6791d2c62849a581084deac98e2fe3b
SQL
P79N6A/hd
/.svn/pristine/13/13b4560ff6791d2c62849a581084deac98e2fe3b.svn-base
UTF-8
7,151
3.625
4
[]
no_license
CREATE TABLE `supplies` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID', `source_id` int(11) unsigned NOT NULL COMMENT '数据源', `supply_category_id` int(11) unsigned NOT NULL COMMENT '供应分类ID', `origin_content` text COMMENT '原始数据', `created_at` int(11) unsigned NOT NULL COMMENT '创建时间', `updated_at...
true
42b40d33c25939f19496eefe5d613974daa0f6f9
SQL
LeoHesting/CodeSamples
/01-ProdQuery.SQL
UTF-8
827
2.8125
3
[]
no_license
insert into mlx_plot_stg(document_no, doc_class_name, doc_state, mlx_printer_name, plot_server, priority, program_name, program_revision, requested_by, return_name, revision, sheet_no, vax_filename, file_id, doc_infos, doc_elid) select id_no, 'USTN_DRAWING', state, 'nullprt', 'P-P-UAU', '2', program_name, program_re...
true
64f79c1d0d4383877653dd7fc97ad061c93c3f21
SQL
nguyenquoccuong2110/simple2
/db_simplehome (2).sql
UTF-8
7,210
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th4 04, 2020 lúc 06:08 AM -- Phiên bản máy phục vụ: 10.4.11-MariaDB -- Phiên bản PHP: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
true
652b4eb03e7f193b68570bc05389fffd14520ad0
SQL
dtalbert3/nemo
/data_mart/DatamartCreationScript.sql
UTF-8
23,423
3.09375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `NEMO_DATAMART_PROD` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `NEMO_DATAMART_PROD`; -- MySQL dump 10.13 Distrib 5.5.46, for debian-linux-gnu (x86_64) -- -- Host: codyemoffitt.com Database: NEMO_DEV -- ------------------------------------------------------ -- Server version 5.5.46-0...
true
426c924b47d13136e15fd6cb6f84d281c69c367b
SQL
olshevskiy87/check_digits
/test/sql/check_digits.ogrn.sql
UTF-8
411
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
CREATE EXTENSION IF NOT EXISTS check_digits; -- should be true select check_digits_ogrn('1037739010891'); select check_digits_ogrn('304500116000157'); -- should be false select check_digits_ogrn('302500116000353'); -- should fail with error -- by length select check_digits_ogrn('30450011600015712'); select check_dig...
true
b838ab4c10661b6c6341caf6d09bd60452d6167a
SQL
Elizabeth-E/HaarlemFestivalYear2
/_dev/database.sql
UTF-8
10,013
3.5625
4
[]
no_license
-- MySQL Workbench Synchronization -- Generated: 2018-12-03 16:09 -- Model: New Model -- Version: 1.0 -- Project: Name of the project -- Author: Elizabeth 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_M...
true
d00eea9ba702678c6f399873a42fe88d3c1b581d
SQL
mrgrayhat/Khodkar-Platform
/KS.WebSiteUI/SourceCode/Codes/Databasce/SqlServer/SystemQuery/c896cc863944453a97d8e037ebe1e819/storedprocedures.sql
UTF-8
1,267
3.625
4
[]
no_license
-- Stored Procedures SELECT @@Servername AS ServerName , DB_NAME() AS DBName , o.name AS StoredProcedureName , o.[Type] , sch.name as 'schema', o.create_date FROM sys.objects o inner join sys.schemas sch on o.schema_id= sch.schema_id WHERE o.[Type] = 'P' -- Stored P...
true
47728ebd23008aebca9872ae6db57794582e4a2e
SQL
darias321/employee_tracker_hw
/seed.sql
UTF-8
1,623
3.3125
3
[]
no_license
DROP DATABASE IF EXISTS employee_db; CREATE DATABASE employee_db; USE employee_db INSERT INTO employees (first_name, last_name, role_id) VALUES ("Danielle", "Arias", 4); INSERT INTO employees (first_name, last_name, role_id, manager_id) VALUES ("Ever", "Patindol", 7,2); INSERT INTO employees (first_name, last_n...
true