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
5f5debf703e99129a0f4c1c9822c0def45c0fa2f
SQL
harutyunyanaram016/chat
/users.sql
UTF-8
11,750
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 05, 2018 at 04:48 PM -- Server version: 5.7.20-0ubuntu0.16.04.1 -- PHP Version: 7.0.27-1+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40...
true
501d33faddf24fa358cc96b21b95b57aee3c8acc
SQL
apple-tm/jeesite-world
/js02/db/ddl/0.0.1/js02_001_create_test_table.sql
UTF-8
620
2.875
3
[]
no_license
CREATE TABLE `test_table` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', `test_name` varchar(10) NOT NULL COMMENT '姓名', `status` varchar(1) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '状态 自定义使用', `created_time` datetime DEFAULT NULL COMMENT '创建时间', `created_by` varchar(20) COLLATE utf8_unicode_ci NOT N...
true
d2d26b05a49e1cf5ab766032e20a0269325acece
SQL
s-karpovich/JD2018-11-13
/src/by/it/naumenko/project/webapp/sql/create/create zakaz.sql
UTF-8
663
3.640625
4
[]
no_license
CREATE TABLE IF NOT EXISTS `naumenko`.`zakaz` ( `id_zakaz` INT NOT NULL AUTO_INCREMENT, `date_zakaz` DATETIME NULL, `koltort` INT NULL, `price_zakaz` DECIMAL NULL, `id_user` INT NOT NULL, `id_cake` INT NOT NULL, PRIMARY KEY (`id_zakaz`), INDEX `fk_zakaz_users1_idx` (`id_user` ASC), INDEX `fk_zakaz_cak...
true
bda365408d9e1e754359d46a5f1bb148b43a65fd
SQL
anik-chy/OnlineJudges
/URI/SQL/UOJ_2622 Legal Person.sql
UTF-8
83
2.734375
3
[]
no_license
select name from customers where id in (select id_customers from legal_person);
true
08c2093c071f3e99e10eb45280886840ee5a15ca
SQL
lt911/PL-SQL-Fundamentals-2018-
/week2_code_examples/les02_part04_codex01.sql
UTF-8
755
2.921875
3
[]
no_license
DECLARE v_bonus NUMBER(8,2) NOT NULL := 0; v_service_period NUMBER NOT NULL := 3; v_salary NUMBER(8,2) := 11000; BEGIN IF v_service_period = 10 THEN -- This employee is with the organization since its inception. v_bonus := v_salary * 0.5; DBMS_OUTPUT.PUT_LINE('Bonus amount = '||v_bonus)...
true
37dfff212d3cff982416c51cfb85b5d5fcf71363
SQL
trangnt58/int3507-2016
/NSFW/FAQ Bot V2/Sql Script/SQLQuery6.sql
UTF-8
42,834
3.0625
3
[]
no_license
insert into dbo.help(category_id,question,sub_question,answer,link) values (6,'Get online','', 'To connect to a WiFi network in Windows, select the Network icon ( or ) on the taskbar. Select the WiFi network you want > Connect, then type the password and follow the instructions. That''s it-you''re connected! This ico...
true
8cf5b452943bc5358e958a8b9c30740ffd53dc28
SQL
rockrock0850/osp
/osp-platform/src/main/resources/template/sql/order/UPDATE_ORDER_KPI_OWNER.sql
UTF-8
399
3.3125
3
[]
no_license
MERGE INTO ORDER_KPI_OWNER T1 USING ( SELECT 1 FROM dual) T2 ON ( T1.ORDER_M_ID = :ORDER_M_ID) WHEN NOT MATCHED THEN INSERT ( T1.ORDER_M_ID, T1.KPI_OWNER_ID, T1.CREATE_USER, T1.CREATE_DATE ) VALUES ( ...
true
9dada58262de29632103ca3dd3a9eabd741ee91f
SQL
Anemos/Kdac-Source
/PBL/Sql_Work/CMMS_KDAC.sql
UTF-8
320
2.546875
3
[]
no_license
SELECT PART_CODE, NORMAL_QTY,REPAIR_QTY,SCRAM_QTY,ETC_QTY,OHUQTY,OHRQTY,OHSQTY,EXQTY UPDATE PART_MASTER SET NORMAR_QTY = OHUQTY, FROM PART_MASTER, QCMMSDM12 WHERE AREA_CODE = XPLANT AND FACTORY_CODE = DIV AND PART_CODE = ITNO AND (NORMAL_QTY <> OHUQTY OR REPAIR_QTY <> OHRQTY OR SCRAM_QTY <> OHSQTY OR ETC_QTY <> EXQTY);
true
f99a0ea9715541433776f1aa06666e2dc8921883
SQL
albabalcells/Ironhack-Labs
/Labs W4/6-advanced-mysql/your-code/solutions.sql
UTF-8
2,038
4.59375
5
[]
no_license
# Challenge 1 # royalties per author SELECT `titleauthor`.`au_id`, SUM(`titleauthor`.`royaltyper`/100 * `titles`.`price` * `titles`.`royalty`/100 * `sales`.`qty`) AS 'TOTAL ROYALTIES' FROM titleauthor LEFT JOIN titles ON titles.`title_id` = titleauthor.`title_id` LEFT JOIN sales ON sales.`title_id` = titleauthor.`titl...
true
20cf7a89dfcb5a4075e21444e36477869638c393
SQL
pjcevans/openprescribing
/openprescribing/frontend/management/commands/measure_sql/opioid_total_ome.sql
UTF-8
548
3.265625
3
[ "MIT" ]
permissive
SELECT month, practice, pct, SUM(quantity*dose_per_unit*ome_multiplier) AS total_ome FROM {project}.{hscic}.normalised_prescribing_standard AS presc JOIN -- data in richard.opioid_measure comes from: -- https://docs.google.com/spreadsheets/d/1IjnHbYVszZKPmVSYydtMVzbDLPOmq8bOFq45QsSu6sE/edit?usp=sharing ...
true
9138273d72e3f6aad749144f41d8e006fdcb818e
SQL
wil2015/rota3
/sql/catalog_product_entity.sql
UTF-8
3,410
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 08, 2016 at 07:43 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
69b2e0c01a6a5fd70aacdceb584545c36a2ff214
SQL
YairPR/Oracle
/Scripts/privilegios/grant_cantidad_obj}-rol.sql
UTF-8
588
3
3
[]
no_license
-- =================================================== -- &role_name will be "enter value for 'role_name'". -- sample code: define role_name=&role_name -- sample code: where role like '%&&role_name%' -- Cantidad de objetos relacionadas al role -- =================================================== define role_nam...
true
506dea4ba2ef8b54fd2358d0d2886a65f4ec9c0f
SQL
smlsharp/smlsharp
/benchmark/benchmarks_parallel/_graph/schema.sql
UTF-8
959
3.671875
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
create table bench ( bench text, lang text, impl text, size int, cutoff int, result int, cores int, iter int, time float, maxrss int ); create view avg as select bench, lang, impl, size, cutoff, cores, avg(time) as time, min(time) as min_time, ...
true
8f27636c4a05e71a8cd26f852538913d3761b862
SQL
karlredgate/nss-sqlite
/hosts.sql
UTF-8
2,278
3.625
4
[ "MIT" ]
permissive
-- -- SQLite Hosts database -- CREATE TABLE host( id INTEGER PRIMARY KEY, address STRING COLLATE NOCASE, hostname STRING COLLATE NOCASE, zone STRING COLLATE NOCASE, ctime DATE, mtime DATE, CONSTRAINT...
true
b9ba6e5ca444db652f100e6aa573d4b72286384d
SQL
mmonizGonzaga/DatabseSysetmsProject
/pointSystem.sql
UTF-8
7,226
4.0625
4
[]
no_license
SET sql_mode = STRICT_ALL_TABLES; DROP TABLE IF EXISTS Hosted; DROP TABLE IF EXISTS Present; DROP TABLE IF EXISTS MultiOccurences; DROP TABLE IF EXISTS OneTimeOcurrences; DROP TABLE IF EXISTS OneTimeTypes; DROP TABLE IF EXISTS MultiType; DROP TABLE IF EXISTS PointValues; DROP TABLE IF EXISTS Users; CREATE TABLE User...
true
7655e9b36b903e11ba9dee9e091a9ccc610700a8
SQL
YannickCardini/Moineau-Project
/bdd/start.sql
UTF-8
354
2.625
3
[]
no_license
CREATE DATABASE miage CHARACTER SET utf8 COLLATE utf8_general_ci; CREATE TABLE `miage`.`data`( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT , `name` TEXT NOT NULL , `created` DATETIME DEFAULT CURRENT_TIMESTAMP, `last_update` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `data` JSON N...
true
e1a01b2bba6e51579975a0317015860de5becdc2
SQL
BrandenTheAnalyst/DataCleaning
/SQLQuery1.sql
UTF-8
4,017
4.03125
4
[]
no_license
/* Cleaning data in SQL SELECT * FROM NashvilleHousing..NashvilleHousing */ SELECT * FROM dbo.NashvilleHousing --Standardize Date Format SELECT SaleDate2, CONVERT(Date,SaleDate) FROM dbo.NashvilleHousing UPDATE NashvilleHousing SET SaleDate = CONVERT(Date,SaleDate) ALTER TABLE NashvilleHou...
true
376a107c318b83c8b656ec80c9ffaa70bc74ef99
SQL
Flourishing-Four/Poetry-Java
/doc/acpd_v1.0(初始化).sql
UTF-8
931
2.796875
3
[]
no_license
/* SQLyog MySQL - 5.7.28-log : Database - acpd_v1.0 ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_Z...
true
16d59d911838535c553dc97ff30660486d2cd8bd
SQL
iradmt/smarthome-webapp
/src/main/resources/db/migration/V3__insert_test_policies.sql
UTF-8
5,003
2.921875
3
[]
no_license
-- add policies insert into public.policies(name, description, catalog_id, status) values ('High temperature checks template', '', 25, 1), ('Humidity inline checks', '', 25, 1), ('Signalization', '', 25, 1), ('Complex', '', 25, 0) ; insert into public.rules(policy_id, name) values (1, 'Raise WARN'), (1, 'R...
true
46267eea146047d37acb5eb15bf101251e21af0d
SQL
Eduardojvr/ExerciciosbancoDeDados
/arquivosSemestreAnteriores/CORRIGIR_aula7exer2_AndrewSouza_16-0023921/aula7exer2Fisico_AndrewSouza_16-0023921.sql
UTF-8
2,721
3.390625
3
[]
no_license
-- -------- << aula7exer2 >> ------------ -- -- -- -- SCRIPT DE CRIACAO(DDL) -- -- -- -- Data Criacao ...........: 29/05/2018 -- -- Autor(es) ......
true
9957f6ae4f44e39af742296e3432e4aaf8406056
SQL
Ponesty/sql-intro
/invoice.sql
UTF-8
533
3.21875
3
[]
no_license
--#1 SELECT COUNT(total) FROM invoice WHERE billing_country = 'USA'; --#2 SELECT MAX(total) FROM invoice; --#3 SELECT MIN(total) FROM invoice; --#4 SELECT * FROM invoice_line WHERE unit_price > 5; --#5 SELECT COUNT(unit_price) FROM invoice_line WHERE unit_price > 5; --#6 SELECT COUNT(total) FROM invoice WHERE bill...
true
d157ca7f71a30303f25d656c7015d28fe14a32aa
SQL
vincefio/bamazon
/database.sql
UTF-8
751
2.9375
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(50) NOT NULL, department_name VARCHAR(50) NOT NULL, price INT, stock_quantity INT, PRIMARY KEY (item_id) ); SELECT * FROM products; INSERT INT...
true
ed7ad2fe2b38cb2681c058dcd0763f25f4e26605
SQL
buv3x/elo
/elo-database/src/main/resources/scripts/mysql/result.sql
UTF-8
311
3.421875
3
[]
no_license
CREATE TABLE elo.result ( id int NOT NULL AUTO_INCREMENT, person int NOT NULL, competition int NOT NULL, result int NOT NULL, PRIMARY KEY (id), UNIQUE (person, competition), FOREIGN KEY (competition) REFERENCES elo.competition (id), FOREIGN KEY (person) REFERENCES elo.person (id) )
true
cf3349e622c76a2bd5accb0f9901f613edeb5df7
SQL
s3valkov/Database-Basics-MySQL
/Lab_05_TableRelations/Problems/Problem1-5.sql
UTF-8
1,770
4.46875
4
[ "Apache-2.0" ]
permissive
USE camp; -- 1.Problem CREATE TABLE mountains( id INT PRIMARY KEY AUTO_INCREMENT, `name` VARCHAR(230) NOT NULL ); CREATE TABLE peaks( id INT PRIMARY KEY AUTO_INCREMENT, `name` VARCHAR(45) NOT NULL, mountain_id INT, CONSTRAINT fk_mountain_id FOREIGN KEY (mountain_id) REFERENCES mountains(id) ); -- 2.Problem SELECT ...
true
ae9feeddbeeffe4c40a64097ac668b672d01a5cd
SQL
CUBRID/cubrid-testcases
/sql/_23_apricot_qa/_01_sql_extension3/_05_analytic_functions/_11_var_samp/cases/var_samp_partition_range.sql
UTF-8
8,053
2.9375
3
[ "BSD-3-Clause" ]
permissive
--TEST: test with tables with range partition create table var_samp_p_range( col1 int, col2 short, col3 bigint, col4 numeric(10, 5), col5 float, col6 double, col7 monetary ) partition by range(col1) (partition p1 values less than (30000), partition p2 values less than (40000), partition p3 values less than (...
true
aca916778678371a99b76ed05946a9b2ad9d4d94
SQL
DialloThierno-hub/Flask_and_web_develeoppement
/tables.sql
UTF-8
3,925
3.8125
4
[]
no_license
DROP TABLE Coup; DROP TABLE CaseCarte; DROP TABLE Partie; DROP TABLE Carte; DROP TABLE Joueur; DROP TABLE Niveau; DROP SEQUENCE sq_idjoueur; DROP SEQUENCE sq_Npartie; DROP SEQUENCE sq_Idcoup; ------------------------------------------------------------------------------------------------------- --creation de sequence ...
true
50bfbf90d51b386e3c05c5da4c2a517010ade210
SQL
Tryford/MP_MODSPACK_VPJFD
/Mods/(JFD-4) JFD's Rise to Power (v 33)/Components/Piety/Core/Piety_PietyLevels.sql
UTF-8
8,692
2.953125
3
[]
no_license
--========================================================================================================================== -- GAME SPEEDS --========================================================================================================================== -- GameSpeed_JFD_PietyThresholds ----------------------...
true
9ab4b2cde289199fd01e51af6010191dad74d872
SQL
upputuri/Grocery-Store-Customer
/fetch_products.sql
UTF-8
5,030
4.09375
4
[]
no_license
select * from arole; select * from auser; select * from customer; select * from item_item; select * from item_item_status; select * from category; select * from item_gi_category; select * from item_item_photo; select * from item_gi_attribute; select * from item_gi; select * from item_attribute; select * from item_att...
true
7d1e0b8a40551c187c8202d7323a0ee61461611c
SQL
mrmurilo75/Data-Bases
/Ficha06/ex08.sql
UTF-8
112
2.828125
3
[]
no_license
SELECT Title, Name FROM MOVIE NATURAL JOIN MOVIE_ACTOR NATURAL JOIN ACTOR WHERE Title LIKE '%Superman%';
true
8ab6d903dbdfcae024805623a3533424e03b0ae1
SQL
bartschs/sql_admin
/xdbaerr.sql
UTF-8
1,694
2.96875
3
[]
no_license
rem NAME rem xplserr.sql rem FUNCTION rem gets info about user's stored PL/SQL objects errors rem NOTE rem start from specified user rem MODIFIED rem 19.11.97 SBartsch - made it rem set verify off; set heading on; clear columns clear breaks clear computes ttitle off btitle off column OWNER format ...
true
544c7e5de9dda7e71b511fb7ad83879270c7fbf3
SQL
HelloJinny/Study
/DataBase/21_Procedure.sql
UHC
1,794
3.46875
3
[]
no_license
-- * Ŭ - ν(procedure) -- (insert/update/delete) ʿ ٽ Է ʿ ϰ ȣ⸸ ؼ ִ. drop table emp01 purge; -- ̺ error, create table emp01 -- ̺ ( ) as select * from emp; select * from emp01; -- Ȯ -- SQL > cd C:\workspaces\01_DB\database\src\database\src (۾ϴ ҽ ִ ) -- SQL > sqlplus scott/tiger ...
true
de0abca8ab1bcf13559f08327bd0447fff467223
SQL
Victorvhn/conteudo-entra-21
/exercicios-banco-dados-master/Lista02 - 1/Exercicio05.sql
UTF-8
229
2.90625
3
[]
no_license
-- 5. Selecione altura, peso, com o cálculo do imc ordenando o imc em ordem decrescente. SELECT altura 'ALTURA', peso 'PESO', (peso/(altura*altura)) 'IMC' FROM pokemons ORDER BY 'IMC' DESC; -- TODO: FORMATAR CASA DECIMAL
true
d9d8b96477cea7caee77fb223887110227e1cae7
SQL
prameetu/sql_practice
/self_join.sql
UTF-8
198
3.328125
3
[]
no_license
SELECT e.employee_id, e.first_name, e.last_name, e.reports_to, m.employee_id, m.first_name, m.last_name FROM employees e LEFT JOIN employees m ON e.reports_to = m.employee_id
true
391f24f112ee4f43cb55d1c72f948444945a62d9
SQL
catclinic/CatClinic
/Sql/catclinic_test.sql
UTF-8
2,386
3.828125
4
[]
no_license
create database if not exists catclinic_test default character set utf8 collate utf8_general_ci; use catclinic_test; create table if not exists chat( id smallint unsigned not null auto_increment, nom varchar(30) not null, age tinyint unsigned not null, tatouage varchar(10) not null, primary key(id...
true
3797d47923968fdbb1acb1d8d0593c9171c79891
SQL
Chelo4479/AmbientesNoProp
/bimestre1/deberes/deber5/ejercisio3/s5e3.sql
UTF-8
1,167
2.703125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 24-11-2015 a las 14:24:06 -- Versión del servidor: 5.5.8 -- Versión de PHP: 5.3.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SE...
true
6f6f4fd504746c1b5447756b558a250182685535
SQL
KimyoonJIn/spring-batch-homework-1
/src/main/resources/import.sql
UTF-8
1,220
3.484375
3
[]
no_license
-- CREATE database IF NOT EXISTS mysql-standalone; drop table if exists authorities; drop table if exists users; drop table if exists BATCH_STEP_EXECUTION_CONTEXT; drop table if exists BATCH_STEP_EXECUTION; drop table if exists BATCH_STEP_EXECUTION_SEQ; drop table if exists BATCH_JOB_EXECUTION_CONTEXT; drop table ...
true
49263d17bd22a2334bd456221d1cc8311d7b5fdb
SQL
feisishui/oracle-spatial-workshop
/Workshop_Files/tools/sdo_tools/sdo_tools_body.sql
WINDOWS-1252
86,476
3.0625
3
[]
no_license
CREATE OR REPLACE PACKAGE BODY sdo_tools AS ------------------------------------------------------------------------------ function point (x number, y number, z number ) return sdo_geometry is gtype number; begin if z is null then gtype := 2001; else gtype := 3001; end if; return sdo_geom...
true
28cb9a780d7d5a7b0c23ed42e19f0074cfe403f8
SQL
NeotomaDB/Neotoma_SQL
/function/ti/getstatscolltypedatasetcount.sql
UTF-8
483
3.703125
4
[ "MIT" ]
permissive
CREATE OR REPLACE FUNCTION ti.getstatscolltypedatasetcount() RETURNS TABLE(colltype character varying, datasetcount bigint) LANGUAGE sql AS $function$ SELECT ct.colltype AS colltype, COUNT(ds.datasetid) AS datasets FROM ndb.datasets AS ds INNER JOIN ndb.collectionunits AS cu on ds.collecti...
true
7dfbfd8b22fe2f4f364131c73eadf5d53035022a
SQL
zf-air/MySQL
/数据库实验/练习6.sql
UTF-8
292
3.890625
4
[]
no_license
-- 7、查询学过"张三"老师授课的同学的信息 select distinct s.*,sc.c_id from student s,score sc where s.s_id = sc.s_id and sc.c_id in( select c.c_id from course c where c.t_id = ( select t.t_id from teacher t where t.t_name = '张三' ) );
true
6a15c89c1e75f038a33f8b953df9fb6b053041dd
SQL
JakeEntrekin/Active-ChurnByDay
/viewDimAccountDDL.sql
UTF-8
385
2.765625
3
[]
no_license
create or replace view viewDimAccount as SELECT dimaccount.AccountKey, dimaccount.account_id, dimaccount.accountdescriptrion, dimaccount.insertdate, dimaccount.updatedate FROM dimaccount UNION ALL SELECT -1 AS AccountKey, -1 AS account_id, 'N/A' AS accountdescriptrion, getdate() AS insertdate , getdate() AS updatedate;...
true
104b88370d050bc7bf0cc4e60bc58f9452c98786
SQL
EmilioMirasola/DAOS-Aarhus-Bryghus
/db/create.sql
UTF-8
1,613
3.859375
4
[]
no_license
create table ProductGroup ( name varchar(30) not null unique, productGroupId int identity (1,1) primary key, ) create table Product ( name varchar(30) not null, stock int not null, minimumStock int not null, productGroupId int foreign key references Prod...
true
59210b58b5f9fbdfba54e92589b6fe812ae50dca
SQL
arthurarts/springboot-testing-demo
/src/main/resources/data.sql
UTF-8
956
3.09375
3
[]
no_license
-- CREATE TABLE CAMPAIGN_REGISTRATION ( -- id INT NOT NULL, -- firstname VARCHAR(255), -- lastname VARCHAR(255), -- iban VARCHAR(255), -- email VARCHAR(255), -- campaignid INT NOT NULL -- ); -- ALTER TABLE PUBLIC.CAMPAIGN_REGISTRATION ADD CAMPAIGNID INT NOT NULL; -- ALTER TABLE CAMPAIGN_REGIST...
true
097cacb3fbd392844a263a0e05689ed4b5793948
SQL
CRUSADER111/SupportForm-Reinitialised
/db/supportdb.sql
UTF-8
3,268
2.9375
3
[ "Apache-2.0" ]
permissive
-- MySQL dump 10.16 Distrib 10.1.19-MariaDB, for Win32 (AMD64) -- -- Host: localhost Database: localhost -- ------------------------------------------------------ -- Server version 10.1.19-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHA...
true
49b1d8c2fab6b838b87c3e2abcb41a5786ce5a9f
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day16/select2233.sql
UTF-8
264
2.96875
3
[]
no_license
SELECT sen.name FROM SENSOR sen, SENSOR_TYPE st, COVERAGE_INFRASTRUCTURE ci WHERE sen.SENSOR_TYPE_ID=st.id AND st.name='WeMo' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['5088','4099','4206','5054','4074','3100_1','2065','2206','5100_8','3091'])
true
7c8995910de1c06389e4de1f700567d2e103cfe5
SQL
afyaehms/report-scripts
/scripts/MOH 711 Reproductive and Child Health/cervical-cancer-treated-using-cyrotherapy.pending.sql
UTF-8
153
2.71875
3
[]
no_license
-- get count of cervical cancer clients treated using cyrotherapy SELECT SUM(0) FROM obs WHERE obs.obs_datetime BETWEEN :startOfPeriod AND :endOfPeriod
true
2cc8af8674f36c85724e5720cb8288da517b4c6f
SQL
sarajensen/java_ratings
/ratings.sql
UTF-8
6,215
2.984375
3
[ "MIT" ]
permissive
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -- CREATE EXTENSION IF NOT EXISTS plpgs...
true
bd6b03519d9c99ce71d29c88f8f077a23a9aad59
SQL
BeatTheBookie/BeatTheBookie
/001_sql/006_meta/transfermarkt_market_values_config.sql
UTF-8
1,277
2.546875
3
[]
no_license
/************************************************ configuration table for import of http://www.transfermarkt.de yearly market value data v1.0: - initial *************************************************/ drop table if exists meta.transfermarkt_market_value_config; create table meta.transfermar...
true
878f6bbbf22ade58279d36d0f9dce7fc3539f103
SQL
zhengm9/spring
/web/WEB-INF/sql/view.sql
UTF-8
2,723
3.90625
4
[]
no_license
DROP TABLE IF EXISTS t_employee; CREATE TABLE t_employee( ID INT PRIMARY KEY AUTO_INCREMENT, NAME VARCHAR(30) NOT NULL, SEX VARCHAR(2) NOT NULL, AGE INT NOT NULL, DEPARTMENT VARCHAR(10) NOT NULL, SALARY INT NOT NULL, HOME VARCHAR(30), MARRY VARCHAR(10)...
true
7c35802f61bdfdc5c8c03de0552ced9f9462acde
SQL
jegv91/deliciasFuncional
/views/categoria.sql
UTF-8
1,762
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 11-12-2012 a las 21:34:09 -- Versión del servidor: 5.5.16 -- Versión de PHP: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
true
9a73aded588b71ff14fa889dcd94289e1feb3b4d
SQL
hakula139/IDBS-Spring20-Fudan
/assignments/ass1/submission/18307130104/4.sql
UTF-8
76
2.59375
3
[ "MIT" ]
permissive
SELECT name FROM employee AS X WHERE X.age >= 25 AND X.age <=30 ORDER BY id;
true
2e2e3cb86c33b30aa40acaf5c7ae7313abc6fcb4
SQL
zyw/mvnrep-parent
/doc/mvnrep-1.0.sql
UTF-8
1,930
3.359375
3
[]
no_license
CREATE DATABASE /*!32312 IF NOT EXISTS*/`mvnrep` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `mvnrep`; /*每个类型的jar文件信息*/ create table jarTypeInfo( jtiId bigint not null AUTO_INCREMENT, id varchar(100) not null, groupId varchar(100) not null, artifactId varchar(100) not null, latestVersion varchar(50) not nul...
true
9159b68579f6175e84b00b34000178df9d1dcf07
SQL
wanghaoze/mediaweb
/jingjusi.sql
UTF-8
11,412
3.5625
4
[]
no_license
drop database if exists JingJuSi; create database JingJuSi default character set utf8mb4; use JingJuSi; drop table if exists user; drop table if exists jing_auth_user; drop table if exists jing_video_info; drop table if exists jing_image_info; drop table if exists jing_course_info; drop table if exists jing_course_vide...
true
9748498e1b4d8ecb2a0c0f7debacfbb82d5ee368
SQL
louiekangaroo/excelcia
/EXCELCIA 20160529 0910.sql
UTF-8
30,819
3.203125
3
[]
no_license
-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.5.5-10.1.13-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_...
true
aa94c9cff284627ba28df066f9580d79bfa54bb8
SQL
safizaidi98/Table-Partitioning-Sliding-Partitioning
/Table partition.sql
UTF-8
2,295
3.140625
3
[]
no_license
use NugDB ------------------------ Partition Function ------------------------------------ create partition function pFunc(Date) as Range Right for values ('1/1/2016', '1/1/2017', '1/1/2018') ------------------------------------------------------------------------ ------------------------ Partition Scheme ---------...
true
1fae5e4f8f13393aec1301bce7e9f8ccc4c6bd61
SQL
kettalii/ETL-Project-Annuale-Fishing-Data
/ETL_project/Schemata.sql
UTF-8
518
3.40625
3
[]
no_license
CREATE TABLE fish ( Species CHAR(3), scientific_name VARCHAR(225), family VARCHAR(225), PRIMARY KEY (Species) ) CREATE TABLE fish_name ( Species CHAR(3), name VARCHAR(225), FOREIGN KEY (Species) REFERENCES fish(Species) ) CREATE TABLE country ( Country CHAR(2), Description VARCHAR(225), PRIMARY KEY (C...
true
189aaa71fdb07ac493bbcf6e172d4997efe5daf7
SQL
panasenco/sqltemplate
/Wrappers/Aggregate.eps1.sql
UTF-8
1,744
3.4375
3
[ "MIT" ]
permissive
<%# .Synopsis Generates a string aggregation statement for grouped queries. .Parameter Server The server to generate the aggregation statement for. .Parameter Body The SQL expression to aggregate. .Parameter GroupField SS13 ONLY. The fully qualified field to group by. The part after the last per...
true
218992d5f41aab18a4b8548e9c9b6df28314c277
SQL
loreabad6/masters-thesis-geotech
/scripts/build.sql
UTF-8
12,870
3.890625
4
[]
no_license
DROP TABLE IF EXISTS received.sa_ways_net_vert; DROP TABLE IF EXISTS received.sa_ways_net_link; -- create new tables CREATE TABLE received.sa_ways_net_vert ( vert_id SERIAL PRIMARY KEY, road_id INTEGER, vert_cost INTEGER, geom geometry(point,?sa_crs) ); CREATE TABLE received.sa_ways_net_link ( lin...
true
2d41ba722dacff16d64203942f1bd0149d4e7ab8
SQL
Nabil-Chaouki/TDI205
/Base de données/S2 - Langage SQL/Pratique Langage SQL/omar ben sabih el imrany/requete 18,23,26/requete 18.sql
UTF-8
620
3.09375
3
[]
no_license
create database GestionStagiaires; create table Groupes(id int primary key, Nom varchar(100)); Create table Stagiaires(id int, nom varchar(50), note_bac float, filiere varchar(50), id_groupe int, Constraint n_note Check(note_bac between 0 and 20), Check(filiere='tdi'or filiere='tri'), Constraint pk_stagiaire Primary...
true
a3b30ece82d05d26341610e0cb743053292434c3
SQL
samsonanami/IDAPI
/ExternalFiles/DatabaseScripts/R__Create_new_client.sql
UTF-8
2,651
3.453125
3
[]
no_license
/* * * Procedure Name : orion_createClient * * Description : procedure to use when creating a new client * * Tables Impacted : client * * Params : client_email - the email address of the client * client_name - the user name of the client * ...
true
6d16a15ba38b3c354ea345f55dfbcbdbf08a200c
SQL
suevip/wireless-order-solution
/db/scripts/update_db_v136_expired.sql
UTF-8
901
3.140625
3
[]
no_license
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; SET @OLD_SAFE_UPDATES=@@SQL_SAFE_UPDATES; SET SQL_SAFE_UPDATES = 0; SET NAMES utf8; USE wireless_order_db; -- ------...
true
5f8e1ddbd4852a2ca020e522560e62b93234215d
SQL
pingovn/pingo-webbasic-with-php
/assignment/phamtranbaonghi/baithi.sql
UTF-8
1,937
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 21, 2014 at 11:49 AM -- Server version: 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
3a80ea4657e2de32177cc2c76c06b8b90b2fff3b
SQL
pingvinen/webreplay
/sql/setup.sql
UTF-8
1,077
3.828125
4
[]
no_license
# # create the database # CREATE DATABASE IF NOT EXISTS `webreplay` /*!40100 DEFAULT CHARACTER SET utf8 */; use `webreplay`; # # the streams # CREATE TABLE IF NOT EXISTS `streams` ( `id` varchar(255) NOT NULL COMMENT 'The ID of the stream' , `description` TEXT NOT NULL DEFAULT '' COMMENT 'A description of the st...
true
e2ee01d49a5ae967292185b9512268feb02b6086
SQL
stoianov00/Databases-Basics
/Exam 19 Feb 2017/Exam 19 Feb 2017/14.The Most Positive Country.sql
UTF-8
266
4
4
[ "MIT" ]
permissive
SELECT TOP(1) WITH TIES countr.Name AS [CountryName], AVG(f.Rate) AS [FeedbackRate] FROM Feedbacks AS f INNER JOIN Customers AS c ON c.Id = f.CustomerId INNER JOIN Countries AS countr ON countr.Id = c.CountryId GROUP BY countr.Name ORDER BY [FeedbackRate] DESC
true
9fccbec63be0f7ffafb23d3901c2bab2126a4c4c
SQL
e-gov/RIHA-Storage
/src/main/resources/liquibase/update/20220601_update_main_resource_relation_view.sql
UTF-8
957
3.265625
3
[]
no_license
create or replace view riha.main_resource_relation_view as SELECT mrr.*, infosystem.json_content ->> 'short_name' AS infosystem_short_name, infosystem.json_content ->> 'name' AS infosystem_name, related_infosystem.json_content ->> 'short_name' AS related_infosys...
true
557394aa6bfa2590c1b94a8b264a76549879c726
SQL
aamir12/angular-codeigniter
/ngciblogger.sql
UTF-8
4,079
3.140625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 30, 2020 at 03:39 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
e35cd01a23b66c9c7b176995e15a580ffdb213d5
SQL
bemtorres/ForTheSegurity
/base de datos/Script.sql
UTF-8
5,750
3.640625
4
[]
no_license
DROP DATABASE IF EXISTS hackathon_achs; CREATE database hackathon_achs; use hackathon_achs; CREATE TABLE alternativa ( id_alternativa INT NOT NULL , id_pregunta INT NOT NULL , descripcion VARCHAR (255) NOT NULL , eliminado INT NOT NULL , activo INT NOT NULL ) ; ALTER TABLE ...
true
28bd5ef5fa8d875947496b05e0d148dda604341c
SQL
declanvea/PostgreSQL-Advanced-todo
/todo2.sql
UTF-8
2,446
4.125
4
[]
no_license
DROP TABLE todos; CREATE TABLE todos( id SERIAL PRIMARY KEY, title VARCHAR(255) NOT NULL, details VARCHAR(999999) NULL, priority INTEGER NOT NULL DEFAULT 1, created_at TIMESTAMP DEFAULT NOW(), completed_at TIMESTAMP NULL ); INSERT INTO todos (title, details, priority, created_at, completed_at) VALUES ('Ma...
true
2434efbe3de99bbdfec1309bc87769e28f9d2e43
SQL
JackNolan/sqlFeedBackAtron
/sqlstatements.sql
UTF-8
2,106
4.125
4
[]
no_license
-- insert into an issue -- INSERT INTO table_name (column1, column2, column3,...) -- VALUES (value1, value2, value3,...) INSERT INTO issues (author_id, status_id, created_at, content) VALUES (1, 1, datetime('now'), "I have a problem") -- new status is the default status- INSERT INTO solutions (author_id, issue_id, ac...
true
6793f2b49106bf9ba9c5371278bedadc1e2e13c0
SQL
lukeslattry/squiggle
/squiggle.sql
UTF-8
346
2.6875
3
[]
no_license
DROP TABLE IF EXISTS squiggle_pages; CREATE TABLE squiggle_pages( pageID int NOT NULL AUTO_INCREMENT, pageName VARCHAR(200) NOT NULL, pageURLCode VARCHAR(10) NOT NULL, PRIMARY KEY (pageID) ); DROP TABLE IF EXISTS squiggle_data; CREATE TABLE squiggle_data( pageID int, date DATE, visitorIP VARCHAR(100), visit...
true
e17a8c1ae3eb9bc5d7e425a83b320f4cdeb67040
SQL
yavoryankov83/Java_Web_Telerik_Academy_Alpha_May_2019
/Telerik Academy Alpha Java May All Modules - trainers solutions/6. Databases/SQL/demo_with_code.sql
UTF-8
5,702
4.5625
5
[ "MIT" ]
permissive
use northwind; /*SELECT*/ -- select all employees select * from employees; -- select all employee names; use alias select employees.first_name as 'name', employees.last_name as 'family' from employees; select e.first_name as 'name', e.last_name as 'family' from employees e; -- select all job titles; get them uniq...
true
41a2746a30709832fe4198ed9d04741555208ed0
SQL
Zeeshan91490/Payroll_sql
/EmployeePayrollSQL/payrollservice.sql
UTF-8
1,375
4.125
4
[]
no_license
#UC1 SHOW databases; CREATE DATABASE payroll_service; #Created database SHOW databases; USE payroll_service; SELECT database(); #UC2 CREATE TABLE employee_payroll ( id INT unsigned NOT NULL auto_increment, #ID is set on auto increment name VARCHAR(150) NOT NULL, salary DOUBLE NOT NULL, start DATE NOT N...
true
fbc95a65d8fdba9ba72cb178d89677369f4820ef
SQL
neelfx/sql_practice
/q2.sql
UTF-8
248
3.59375
4
[]
no_license
/* Write an SQL query to determine the 5th highest salary without using TOP or limit method. */ SELECT Salary FROM Worker W1 WHERE 4 = ( SELECT COUNT( DISTINCT ( W2.Salary ) ) FROM Worker W2 WHERE W2.Salary >= W1.Salary );
true
3702e85df5c091bc38b610ecf7075bc2040a3fe1
SQL
jiuchenzhang/python-practice
/Week12_Assignment/get_minimum_depdelay.sql
UTF-8
204
3.421875
3
[]
no_license
-- YOUR CODE HERE -- Ignore the 'NA' and compute the minimum of the departureDelay column in the flights table. SELECT MIN(f.departureDelay) FROM flights AS f WHERE f.departureDelay IS NOT "NA";
true
699d8aaed5b1038580965316a31e69fe9a2ba393
SQL
KleeTaurus/iotek-parent
/iotek-common/src/sql/2014010/gufeifei_20141027_create.sql
GB18030
1,676
3.28125
3
[]
no_license
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 2014/10/27 11:16:34 */ /*==============================================================*/ drop table if exists tb_exp_project; drop table i...
true
814139e1172a9eba0c72e03e955140c4f9210641
SQL
AASHISHAUTI/Web-Portal
/demo.sql
UTF-8
2,957
3.25
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.1.29-MariaDB - mariadb.org binary distribution -- Server OS: Win32 -- HeidiSQL Version: 9.4.0.5125 -- -------------------------------------------...
true
542231f1a8df3f6b7fe3c77630effb795aa76b4f
SQL
RailByte/Groundframe
/GroundFrame.SQL/Tables/audit/audit.TEVENT.sql
UTF-8
1,057
3.03125
3
[ "MIT" ]
permissive
/****************************** ** File: ~\GroundFrame\GroundFrame.SQL\Tables\debug\audit.TEVENT.sql ** Name: audit.TEVENT ** Desc: Table to store event information raised from debugging ** Unit Test: ** Auth: Tim Caceres ** Date: 2019-12-12 ************************** ** Change History **************************...
true
51f26a08db8f0937c63ebd23e9603cdcec2972d1
SQL
tiwarikaustav/AddressBookDBUC12ToUC13
/UC07_SizeOfAddressBookByCityOrState.sql
UTF-8
131
2.890625
3
[]
no_license
--UC7: Size of Address Book Table by city or state select city, COUNT(city) as contacts_count FROM addressBook_Table GROUP BY city;
true
d4b7fcece55885315583bb66c6290cfd18e60b37
SQL
HoriFox/Dacrover
/setup/dacrover.sql
UTF-8
2,976
3.359375
3
[]
no_license
DROP DATABASE IF EXISTS `dacrover`; CREATE DATABASE `dacrover`; USE `dacrover`; DROP TABLE IF EXISTS `modules`; CREATE TABLE `modules` ( `ModuleId` int(11) NOT NULL AUTO_INCREMENT, `ModuleName` text DEFAULT NULL COMMENT 'Название модуля', `ModuleUser` text DEFAULT NULL COMMENT 'Имя пользователя', `ModuleType` ...
true
cedb31e454b76be09e63f8ecdab0113acbaf9ed5
SQL
Snenn/pay_system
/dump_DB/bank_credit_card.sql
UTF-8
2,429
3.0625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.9, for Win32 (AMD64) -- -- Host: localhost Database: bank -- ------------------------------------------------------ -- Server version 5.7.17-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!4...
true
c193fc1c5399fa31b678a4d079b3420895487cd2
SQL
crazykane2000/iotied
/iotied (1).sql
UTF-8
6,575
2.609375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 05, 2020 at 01:47 PM -- Server version: 10.1.40-MariaDB -- PHP Version: 7.1.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
876aa29f06358035295a99cd5cd443990f712864
SQL
vchiuu/DBS301
/Lab09/L09_133088187_CHIU.sql
UTF-8
5,782
3.96875
4
[]
no_license
-- *********************************************************************** -- Name: VIVIAN CHIU -- ID: 133088187 -- Date: Wednesday, July 24th 2019 -- Purpose: Lab 9 DBS301 (DDL & DML) -- *********************************************************************** -- Question 1 - Create table L09SalesRep and load it with d...
true
31ee42f4f49a372da29794e483d859ed38d569b5
SQL
ccappetta/scratch
/taskr_proc_upsert_insights_items_per_day_merged.sql
UTF-8
886
3.703125
4
[]
no_license
DROP procedure if exists proc_upsert_insights_items_per_day_merged; create procedure proc_upsert_insights_items_per_day_merged(IN dbname varchar(128)) BEGIN SET @theSQL=CONCAT(' create or replace view ', dbname,'.insights_items_per_day_merged as select `t1`.`username` AS `username`, `t1`....
true
c29af58c694efa823d2c33481e4d246ebaec1d7b
SQL
ryanr2030/Database
/Lab 5/Lab 5 Q 1_1.sql
UTF-8
193
3.65625
4
[]
no_license
CREATE VIEW VDept_Budget(Dept_Name, Dept_Num, No_Emp) as SELECT D.dname, D.dnumber, Count(E.dno) FROM Department D Left Outer Join Employee E ON D.Dnumber = E.dno Group By D.dname, D.dnumber
true
082ec0b03d2c7d324999f53fa8ecbb1e1d0d0d37
SQL
thoslin/ELF
/db/elf.db.sql/sql/归档/20130407102857_DDL.sql
GB18030
1,605
3.25
3
[ "BSD-3-Clause" ]
permissive
--author jiangch --ִб create table SZ_EXECUTION ( INTERNAL_ID VARCHAR2(20 CHAR) not null, OMS_SEQUENCE VARCHAR2(20 CHAR), WTWTRQ VARCHAR2(8 CHAR), WTHTXH VARCHAR2(48), WTZQDM VARCHAR2(16 CHAR), WTGDDM VARC...
true
25e4ebf224a4503d11379d54d6f9a52054e0f684
SQL
Supreme-Zungula/PHP_Bootcamp
/Day05/ex08/ex08.sql
UTF-8
147
2.859375
3
[]
no_license
SELECT last_name, first_name ,DATE_FORMAT(birthdate, "%Y-%m-%d") AS birthdate FROM user_card WHERE YEAR(birthdate) = 1989 ORDER BY last_name ASC;
true
5853ab8925d168c9a7d7bceb0c7603cf94fd8519
SQL
selinkarabel/ReCapProject
/RentACar-DBCreation.sql
UTF-8
1,736
3.71875
4
[]
no_license
CREATE TABLE Cars( CarID int PRIMARY KEY IDENTITY(1,1), BrandID int, ColorID int, ModelYear int, DailyPrice decimal, Descriptions nvarchar(50), FOREIGN KEY (BrandID) REFERENCES Brands(BrandID), FOREIGN KEY (ColorID) REFERENCES Colors(ColorID) ) CREATE TABLE Colors( ColorID int PRIMARY KEY IDENTITY(1,1), Col...
true
63d875c42fcbc53c0f2f21bcb9f17ec205743d62
SQL
davegordon34/dg_sql_university_project
/dg_bottega_university_schema_courses.sql
UTF-8
2,644
3.046875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: dg_bottega_university_schema -- ------------------------------------------------------ -- Server version 8.0.22 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@C...
true
63df2866c4dc34e26f7851d1489b76ba0be13179
SQL
vikrantmane7781/SQL
/Basic-Select/WeatherObservationStation5.sql
UTF-8
856
3.96875
4
[]
no_license
/* Query the two cities in STATION with the shortest and longest CITY names, as well as their respective lengths (i.e.: number of characters in the name). If there is more than one smallest or largest city, choose the one that comes first when ordered alphabetically. Sample Input Let's say that CITY only has four ent...
true
4f8baee2089143690a7f82130a46e87e5306a05a
SQL
appnewtechs/indicadores_10_03_2017
/sql/Script modificações básicas na base de dados.sql
UTF-8
2,556
3.859375
4
[]
no_license
-- CREATE TABLE usuario(id_usuario int not null AUTO_INCREMENT , -- login varchar(20) not null, -- nome varchar(60), -- email varchar(100), -- senha varchar(30), -- dt_cadastro datetime, -- ...
true
6be32bb9e53808d69fefda1c32502258dea6c6e0
SQL
green-fox-academy/ZaitzeV16
/week-07/day-2/exercise1_1/Q4.sql
UTF-8
662
3.96875
4
[]
no_license
/* Movie ( mID, title, year, director ) English: There is a movie with ID number mID, a title, a release year, and a director. Reviewer ( rID, name ) English: The reviewer with ID number rID has a certain name. Rating ( rID, mID, stars, ratingDate ) English: The reviewer rID gave the movie mID a number of stars ratin...
true
2d98a02a2426c6e464394724ff31f03558c34d3b
SQL
HansTheRisk/BlueSign-server
/queries/createModule_Student.sql
UTF-8
251
3.515625
4
[]
no_license
use ebdb; CREATE TABLE IF NOT EXISTS module_student ( module_id int NOT NULL, student_id int NOT NULL, FOREIGN KEY (module_id) REFERENCES module(id), FOREIGN KEY (student_id) REFERENCES student(id), PRIMARY KEY(module_id, student_id) );
true
4989857877f701f1442d0bbab7a2606f95eda282
SQL
IAmMajo/Raumplanung-Backend
/RaumplanungDB.sql
UTF-8
9,438
2.5625
3
[]
no_license
CREATE TABLE `Lehrkraft` ( `LehrID` INT AUTO_INCREMENT NOT NULL, `Kuerzel` VARCHAR(3) NOT NULL, `Passwort` VARCHAR(255) NOT NULL, `Admin` BOOL NOT NULL, `Anrede`VARCHAR(10) NOT NULL, `Nachname` VARCHAR(20) NOT NULL, PRIMARY KEY (`LehrID`) ); INSERT INTO lehrkraft VALUES (0,'AJA','' , FALSE, 'Frau', 'Ajam-Schäfer'); IN...
true
3ec83269f23b90eb6e866f625c81eabd502652b7
SQL
radtek/Oracle-4
/SQL/Administração/Oracle Press - Unix Administration Handbook/0072223049_code/noparse_ratio.sql
UTF-8
329
2.921875
3
[]
no_license
column noparse_ratio format 999; SELECT 100 * (1 - A.hard_parses/B.executions) noparse_ratio FROM (select value hard_parses from v$sysstat where name = 'parse count (hard)' ) A, (select value executions from v$sysstat where name = 'execute count' )...
true
306481f39575e2364de0f125a971c8e2a3a5771f
SQL
amayla/backend
/my-sql-queries/20sept.sql
UTF-8
4,493
3.953125
4
[]
no_license
use query_practice; select * from locations; select * from employees; select * from departments; select * from countries; select * from regions; select * from jobs; select * from job_history; -- cari f name l name dan gaji karyawan yang gajinya lebihbesar dr karyawan yg nama belakangnya bull select first_name,last...
true
30fd70ece83a6d9d1925246bffa7abe67318e319
SQL
ramalaso/appSupplyManagement
/helpers/inventory.sql
UTF-8
238
2.96875
3
[]
no_license
CREATE TABLE products( product_id INT GENERATED ALWAYS AS IDENTITY, product_name VARCHAR(255) NOT NULL, product_quantity INT NOT NULL, product_price DECIMAL NOT NULL, fk_supplier_id INT REFERENCES suppliers(supplier_id) );
true
88c68faa7f800f46ca442c323b909cca70264270
SQL
br1zz/DE-101
/Module02/files/analytics.sql
UTF-8
1,241
4.1875
4
[]
no_license
/*Total Sales*/ SELECT SUM(sales) as total_sales FROM orders /*Total Profit*/ SELECT SUM(profit) as total_profit FROM orders /*Profit Ratio*/ SELECT SUM(profit)/SUM(sales) as total_ratio FROM orders /*Average discount*/ SELECT AVG(discount) as avg_discount FROM orders /*Sell per Customer*/ SELECT SUM(sales)/COUNT...
true
9233db10a2518bbe4f6a3e1d399b0fac3b4622e1
SQL
zijing2/CS561
/assignment1/express.sql
UTF-8
2,590
4.46875
4
[]
no_license
drop view IF EXISTS max_sales,min_sales,avg_sales,CT_MAX,NY_MIN,NJ_MIN ; create view max_sales as select B.prod as Product,B.quant as Max_Q,B.cust as CUSTOMER,B.day,B.month,B.year from (select prod , MAX(quant) as MAX_Q from sales group by prod) as A left join (select * from sales) as B on B.prod=A.prod and B.qua...
true
51c3b2f588aaeb145c3965aa0c372b59d6cdd4e2
SQL
danielrincon-m/MBDA
/Lab03/afterRide.sql
UTF-8
13,206
3.546875
4
[]
no_license
--CICLO 1: Tablas CREATE TABLE propiedadDe( carreraId VARCHAR(20), miembroId NUMBER(5), porcentaje NUMBER(5, 2) NOT NULL ); CREATE TABLE punto( id NUMBER(5), orden NUMBER(2) NOT NULL, nombre VARCHAR(10), tipo VARCHAR(1) NOT NULL, distancia NUMBER(8, 2) NOT NULL, tiempoLimite NUMBER(9...
true
c942fc0620a5442850e2930e45b5d53e49820b07
SQL
abiudrn/Django_Start
/test_db_1.sql
UTF-8
24,769
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 06, 2016 at 07:32 AM -- Server version: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
33e00b855e6c06ed75023912e7faf761299df145
SQL
phuclee710/Classromm_web
/sql/classroom .sql
UTF-8
2,931
3.375
3
[]
no_license
-- Adminer 4.7.3 MySQL dump DROP DATABASE IF EXISTS `classroom`; CREATE DATABASE `classroom` SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP TABLE IF EXISTS `classroom`; CREATE TABLE `classroom` ( `class_code` int(11) NOT NULL AUTO_INCREMENT, `c...
true