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
d3b7112143bf7ff65a784a4b35db36b92430cd9f
SQL
folio-org/folio-install
/alternative-install/kubernetes-rancher/TAMU/ldp-derived-tables/sql/derived_tables/users_departments_unpacked.sql
UTF-8
1,468
3.984375
4
[ "Apache-2.0" ]
permissive
DROP TABLE IF EXISTS folio_reporting.users_departments_unpacked; -- Create a derived table that takes the user_users table and joins -- in the group information CREATE TABLE folio_reporting.users_departments_unpacked AS WITH departments_array AS ( SELECT uu.id AS user_id, departments.data #>> '{}' ...
true
3595be934efe0d9c6b373441d2323deeee888062
SQL
bigdatashrikant/CRSRepository
/CommerceReferenceStore/Store/WCSExtensions/International/sql/db_components/mysql/storecontent_i18n_ddl.sql
UTF-8
2,020
2.78125
3
[]
no_license
-- @version $Id: //hosting-blueprint/B2CBlueprint/version/11.1/WCSExtensions/International/sql/ddlgen/storecontent_i18n_ddl.xml#1 $$Change: 883241 $ create table crs_image_xlate ( translation_id varchar(40) not null, external_id varchar(40) null, name nvarchar(255) not null ,constraint crs_image_xlate_p primary...
true
f2217acc8798664af8d9944cd6149e8cbad41fe8
SQL
RodrigoFrancaBR/desafio-dev-java
/documentos/sql.sql
UTF-8
1,361
3.296875
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Fri Apr 2 20:02:18 2021 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TR...
true
dad462bdf53d3eeaa18fd64697b575d633981edc
SQL
strr0/simple-mall-server
/src/main/resources/sql/simple_mall.sql
UTF-8
14,098
2.984375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : MySQL Source Server Type : MySQL Source Server Version : 80013 Source Host : localhost:3306 Source Schema : simple_mall Target Server Type : MySQL Target Server Version : 80013 File Encoding : 65001 Date: 17/04/2021 14...
true
9a847e006c6ca047f5a05661b28ac4e32c034723
SQL
yunhao-tech/market-occasion
/occasion_market.sql
UTF-8
6,518
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- 主机: 127.0.0.1 -- 生成日期: 2021-03-14 18:11:36 -- 服务器版本: 10.4.13-MariaDB -- PHP 版本: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
e40fddc2450190e4a8b26c75f4851cc332788a79
SQL
Ricardo-FM/PlantyFeelzDatabase.github.io
/schema.sql
UTF-8
570
3.359375
3
[ "MIT" ]
permissive
CREATE DATABASE botani_dex; Use botani_dex; CREATE TABLE plants ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(50) NOT NULL); CREATE TABLE genus ( genus_id INT AUTO_INCREMENT NOT NULL, genus_name VARCHAR(30), PRIMARY KEY (genus_id), FOREIGN KEY (genus_id) REFERENCES plants(id) ); CREATE TABLE mainten...
true
025d8c9c193a9c5dfdf0b55fda76d3082f888081
SQL
GJQP/ReporteriaDelivery
/proyecto/ROL_EMPRESA.sql
UTF-8
1,885
3.0625
3
[]
no_license
---- Lecturas autorizadas SELECT * FROM APLICACIONES_DELIVERY; SELECT * FROM PLANES_DE_SERVICIO; SELECT * FROM UBICACIONES_APLICABLES; SELECT * FROM CONTRATOS; SELECT * FROM EMPRESAS; SELECT * FROM SUCURSALES; SELECT * FROM ALMACENES; SELECT * FROM EVENTOS; SELECT * FROM PRODUCTOS; SELECT * FROM PEDIDOS; SELECT * FROM ...
true
f80c906b35cf04e7e96823f5cb8b971918e7c597
SQL
valennntine/Valya-Anton
/MMF_9_13/upgrade/upgrade001/create_season.sql
UTF-8
355
3.390625
3
[]
no_license
CREATE TABLE SEASON ( ID NUMBER GENERATED ALWAYS AS IDENTITY INCREMENT BY 1 START WITH 1 MINVALUE 1 NOT NULL, NAME VARCHAR2(100), year number, CONSTRAINT PK_SEASON PRIMARY KEY (ID) ENABLE ); COMMENT ON COLUMN SEASON.ID IS 'Unique identifier'; COMMENT ON COLUMN SEASON.NAME IS 'Season name'; comment on c...
true
0b632ec5661fde4453be5793eae7abd328273254
SQL
agnicore/agni
/src/Agni.Social/Graph/Server/Data/Scripts/Node/FindSubscriberVolumes.mys.sql
UTF-8
142
3
3
[ "Apache-2.0" ]
permissive
SELECT G_OWN AS G_Owner , G_VOL AS G_SubscriberVolume , CNT AS Count , CDT AS Create_Date FROM tbl_subvol WHERE G_OWN = ?pNode ORDER BY CDT
true
2135e9aec748f01d55436be98da354a06af7c80d
SQL
TiEdamn/Shopby_parser
/sql/mailbase.sql
UTF-8
1,639
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Время создания: Авг 11 2016 г., 17:23 -- Версия сервера: 5.6.21 -- Версия PHP: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40...
true
ca0f2343e04bcfa11863e3c8718fbcd068e81a77
SQL
webhacking/FulfillmentService
/FulfillmentService/SQL/11.order.sql
UTF-8
365
2.828125
3
[]
no_license
CREATE TABLE p_order ( o_id int(8) unsigned NOT NULL AUTO_INCREMENT, o_adminId int(5) unsigned NOT NULL, o_quantity int(200) unsigned NOT NULL, o_price int(10) unsigned NOT NULL, o_totalPrice int(10) unsigned NOT NULL, o_date datetime, PRIMARY KEY (o_id), FOREIGN KEY (o_adminId) REFERENCES admins(a_id) ) ...
true
d1e26ca5d1f6b1fed324c2d723b6ff12dd99f8e6
SQL
jsoby/mediawiki-trunk-extensions
/BadImage/badimage.pg.sql
UTF-8
263
2.765625
3
[]
no_license
-- Postgres version CREATE TABLE bad_images ( bil_name TEXT NOT NULL, bil_timestamp TIMESTAMPTZ NOT NULL, bil_user INTEGER NOT NULL, bil_reason TEXT NOT NULL ); CREATE UNIQUE INDEX bil_name_unique ON bad_images (bil_name);
true
ff5004ab3cb7fb1915df8c4587d4237eeec21725
SQL
KatiuscaH/CondorLabs-DataBaseTest
/Katiusca H F/mydb.sql
UTF-8
3,649
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 22-04-2018 a las 11:16:03 -- Versión del servidor: 10.1.31-MariaDB -- Versión de PHP: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
94526c962b9b6f9fd47e5b8818502d0a0327912c
SQL
ggurevich/Java9Inv
/bin/schema.sql
UTF-8
799
3.359375
3
[]
no_license
CREATE SCHEMA IF NOT EXISTS penultimo; USE penultimo; CREATE TABLE IF NOT EXISTS penultimo.products ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, upc VARCHAR(30) NOT NULL, product_name VARCHAR(30) NOT NULL, product_manufacturer VARCHAR(30) NOT NULL, product_price DECIMAL NOT NULL, PRIMARY KEY (id)); CREATE...
true
a5d0dff7d222c5453e361dd6781281217d228aa6
SQL
SrinivasNedunuri/SQL-Queries
/Queries/13recursive_join.sql
UTF-8
1,517
4.5
4
[]
no_license
/*Assuming a title is a node and a promotion is an edge between nodes. e.g. And promotion from Engineer to Senior Engineer means their is a path from Node ’Engineer’ to Node ’Senior Engineer’. Find out pairs of node of source and destination (src, dst) which there is no such path in the database. Sort the result by src...
true
778372f7cc53187233ad9a33382d18c5ffaa5276
SQL
thanh17/nba
/NBA database/nba_1981_records.sql
UTF-8
2,751
3.015625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.20, for Win64 (x86_64) -- -- Host: localhost Database: nba -- ------------------------------------------------------ -- Server version 8.0.20 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!4010...
true
995a2c3808741db34f4a1a248c52f1394978ecf8
SQL
Woodu/sg_f
/fox_sv/socialsv/sql/fox_udb/data_tbl/tbl_user_battle_data.sql
UTF-8
7,728
3.25
3
[]
no_license
-- バトルピース所持データ DROP TABLE IF EXISTS user_battle_data; CREATE TABLE user_battle_data ( battle_id BIGINT AUTO_INCREMENT PRIMARY KEY, -- ID -- 基本情報 user_id INTEGER NOT NULL, -- ユーザーID quest_id INTEGER NOT NULL, -- クエストID chapter INTEGER NOT NULL, -- チャプター -- 出撃前に決まるもの party_no I...
true
1fba5a3a363a833b235d70e304e54f17530e43b6
SQL
lukmanac21/SI-Kominfo
/db_pengajuan.sql
UTF-8
28,734
2.65625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 20 Jul 2020 pada 03.29 -- Versi server: 10.4.6-MariaDB -- Versi PHP: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
b221a6f91142a4f887025a1be834558ed87d70c7
SQL
ndtxt/Oracle-SQL-course_workbook
/04 Grouping Functions.sql
UTF-8
3,462
4.28125
4
[]
no_license
------------------------------------------------------------------------------- ---------------- 016 Grouping Functions MIN MAX AVG COUNT etc ----------------- ------------------------------------------------------------------------------- -- Grouping function get many rows and return one row. Many inputs, one output...
true
e05a711d10371354620175eb244575cadb577e1e
SQL
h-4vok/uai-ssc-backend
/SSC.Database/Programmability/Stored Procedures/sp_ProductQuestion_getOne.sql
UTF-8
454
3.453125
3
[]
no_license
CREATE PROCEDURE sp_ProductQuestion_getOne @Id INT AS BEGIN SELECT pq.Id, pq.PostedDate, pq.Question, pq.QuestionBy, pq.RepliedDate, pq.Reply, pq.ReplyBy, ReplyByDescription = pu.UserName, pq.PricingPlanId, PricingPlanName = pp.Name, PricingPlanCode = pp.Code FROM ProductQuestion PQ INNER...
true
9d46fdb975a7ea97d3f320ae3a03047cb0df8a48
SQL
yavindu99/MySQL-Sample-Work
/MySQL-Sample-Work/Divisions_Districts_Markets.sql
UTF-8
1,117
3.515625
4
[]
no_license
SELECT ou3.name FROM orgunitgroupmembers ogm INNER JOIN orgunitgroup og ON ogm.orgunitgroupid = og.orgunitgroupid INNER JOIN _orgunitstructure os ON ogm.organisationunitid=os.organisationunitid INNER JOIN organisationunit ou ON ou.organisationunitid = os.idlevel3 INNER JOIN organisationunit ou3 ON ou3.organisationuniti...
true
06763bfeb2e226775c34a3ae7134a742047192d5
SQL
MirSzabo/hyf-homework
/databases/week2/week2exercise2.sql
UTF-8
1,226
4.5
4
[]
no_license
-- Create a new database containing the following tables: -- Class: with the columns: id, name, begins (date), ends (date) -- Student: with the columns: id, name, email, phone, class_id (foreign key) CREATE DATABASE school; USE school; CREATE TABLE `class` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar...
true
b204865e8c7bcbb0c0ea055f916ecc012c5622ec
SQL
hrvicas/IWA
/ProjektV0.5/Baza_podataka/IWA_2008_KZ_PROJEKT_KORISNI_UPITI.SQL
UTF-8
1,175
3.09375
3
[]
no_license
#popis robe select r.roba, r.naziv, r.kolicina from roba r; #informacije u jednom predmetu u skladištu select r.roba, r.naziv, v.naziv, r.kolicina from roba r, vrsta_robe v where r.roba ='1' and r.vrsta = v.vrsta; #otvorene narudžbe select n.narudzbenica, k.ime, k.prezime, n.naruceno, n.status from narudzbenica n, k...
true
f9695da88818c1537424f2185c332c4fa71a7898
SQL
SeanAnica/GestionPromotions
/assets/bdd/jeetp1_bdd_de_tests.sql
UTF-8
7,618
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : lun. 10 mai 2021 à 10:37 -- Version du serveur : 5.7.17 -- Version de PHP : 7.1.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
cd10ebcc4d99f97ed6f096aeb5e31639e7bf21b6
SQL
Nandomir/codeclan_homework
/Week_3/music_collection/db/music_collection.sql
UTF-8
235
2.828125
3
[]
no_license
DROP TABLE albums; DROP TABLE artists; CREATE TABLE artists ( id SERIAL4 PRIMARY KEY, name VARCHAR(255) ); CREATE TABLE albums ( id SERIAL4 PRIMARY KEY, name VARCHAR(255), genre VARCHAR(255), artists_id INT4 REFERENCES artists(id) );
true
1f507accdd83d485816939dde8333e45588d08d3
SQL
lackoxygen/SRPHP
/app/InstallDb/system_menu_lang.sql
UTF-8
1,084
3.09375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : 蓝卡线上 Source Server Type : MySQL Source Server Version : 50616 Source Host : rm-2zeo1o8454uv23zjb.mysql.rds.aliyuncs.com:3306 Source Schema : swofttext Target Server Type : MySQL Target Server Version : 50616 File Encoding ...
true
01dd12264ccd32c37325971d636b43bd95b5f0f3
SQL
NataliaAbramova/my_examples
/MySQL_example.sql
UTF-8
13,514
4.3125
4
[]
no_license
/*Задание 1. Пусть в таблице users поля created_at и updated_at оказались незаполненными. Заполните их текущими датой и временем.*/ DROP TABLE IF EXISTS users; CREATE TABLE users ( id SERIAL PRIMARY KEY, name VARCHAR(255), created_at date, updated_at date ) ; INSERT INTO users (name) VALUES ('Геннадий'), ...
true
7ff4adb400ca56c4aa6a9e5adcd5d93b06997815
SQL
drizzlethemes/resume-cv-uploader-osclass-plugin
/struct.sql
UTF-8
414
2.765625
3
[]
no_license
CREATE TABLE /*TABLE_PREFIX*/t_resume_uploader ( fk_i_user_id INT(10) UNSIGNED NOT NULL, name VARCHAR(255), code VARCHAR(255), ext VARCHAR(150), views int(10) NOT NULL, date date NOT NULL, INDEX (fk_i_user_id), PRIMARY KEY (fk_i_user_id), FOREIGN KEY (fk_i_user_id) REFERENCES /*TABLE_PR...
true
57a75272b84f0dcaeea3c289ffe22333b39b4868
SQL
Alvearie/cql_engine
/engine/src/test/resources/org/opencds/cqf/cql/engine/execution/ElmTests/Regression/qdm/IPSSorAUASIChange612MonthsAfterDiagnosisofBenignProstaticHyperplasia-1.4.000.cql
UTF-8
8,007
3.140625
3
[ "Apache-2.0" ]
permissive
library InternationalProstateSymptomScoreIPSSorAmericanUrologicalAssociationSymptomIndexAUASIChange612MonthsAfterDiagnosisofBenignProstaticHyperplasia version '1.4.000' using QDM version '5.4' codesystem "LOINC": 'urn:oid:2.16.840.1.113883.6.1' codesystem "ICD10CM": 'urn:oid:2.16.840.1.113883.6.90' codesystem "Admini...
true
407f4e9a0c556c81995ee481287db0275536b651
SQL
Salsabila-firdausi/praktikum_pw_203040028
/praktkum_pw_203040028_Tugas4/Latihan4a/lightstick.sql
UTF-8
1,497
3.078125
3
[ "BSD-3-Clause" ]
permissive
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -...
true
e84d7b52fd84126362ce794ed3f2011fd88746e2
SQL
Zapfly/cohort3
/src/postgress/Assesment-Test-1-1.sql
UTF-8
113
3.046875
3
[]
no_license
SELECT customer_id, SUM(amount) FROM payment WHERE staff_id = 2 GROUP BY customer_id HAVING (SUM(amount) > 110);
true
cd6059929705f6be46b5afee497bd38e548d03f7
SQL
ilder948/anticipos
/sql/create_table_inconsistency_type.sql
UTF-8
337
2.53125
3
[]
no_license
CREATE TABLE IF NOT EXISTS infomega_inconsistency_type ( inc_type_id INT AUTO_INCREMENT PRIMARY KEY, inc_type_name VARCHAR(50) NOT NULL )ENGINE=INNODB DEFAULT CHARACTER SET utf8; INSERT INTO `infomega_inconsistency_type` VALUES (1,'Errores de causación'), (2,'Incumple requisitos de ley'),(3,'Inconsisten...
true
67ce72caaf34d25a939d5fd5d1f3380ac8979621
SQL
yauritux/hcms-api
/hcms-core/src/main/resources/db/migration/V100201601180003__Create_table_T5R06.sql
UTF-8
311
2.859375
3
[]
no_license
CREATE TABLE T5R06 ( ICTYP character varying(5) NOT NULL, ICTXT character varying(255) NOT NULL ); ALTER TABLE T5R06 ADD PRIMARY KEY (ICTYP); COMMENT ON TABLE T5R06 IS 'Master data for type of Personal IDs'; COMMENT ON COLUMN T5R06.ICTYP IS 'IC Type'; COMMENT ON COLUMN T5R06.ICTXT IS 'IC Description';
true
4438bc3935a19151839b4b69e7ad9eece50d04d4
SQL
hec-montreal/opensyllabus
/osyl-admin/osyl-admin-sakai-impl/impl/src/sql/create_table_HEC-EVENT.sql
UTF-8
1,271
3.171875
3
[]
no_license
-- Script de création des tables nécessaires à la synchro des événements (séances de cours et examens) CREATE TABLE HEC_EVENT_EXTRACT ( "CATALOG_NBR" VARCHAR2(10 BYTE) NOT NULL ENABLE, "STRM" VARCHAR2(4 BYTE) NOT NULL ENABLE, "SESSION_CODE" VARCHAR2(3 BYTE) NOT NULL ENABLE, "CLASS_SECTION" VARCHAR2(4 BYTE) NOT NUL...
true
de856b7f0c09e6b667f161ddea93f91788c38615
SQL
dragosconst/proiect-SGBD
/ex6.sql
UTF-8
1,804
3.4375
3
[]
no_license
-- Un subprogram care determina in care librarii se gaseste cartea introdusa ca parametru si ce abonamente o includ. CREATE OR REPLACE PROCEDURE ex6 (v_nume_carte carti.denumire%TYPE )IS TYPE string_tabel IS TABLE OF VARCHAR2(60) INDEX BY PLS_INTEGER; TYPE number_tabel IS TABLE OF NUMBER INDEX BY PLS_INTEGER; ...
true
12bbbc6c19fb8f7f8841be367467d6ea2aa2e25a
SQL
SmelcorS/MySQL-Basics
/7-Functions-Triggers-And-Transactions/future_value_function.sql
UTF-8
380
2.59375
3
[]
no_license
DELIMITER $$ CREATE FUNCTION ufn_calculate_future_value(input_sum DOUBLE, input_interest_rate DECIMAL(19,4), input_num_years INT) RETURNS DECIMAL(19,4) BEGIN DECLARE output DECIMAL(19,4); SET output := input_sum * POW((1 + input_interest_rate), input_num_years); RETURN output; END $$ DELIMITER ; ...
true
c6bc2c318e8c857ddf20c8467c1c94a062ff0d90
SQL
P79N6A/fast
/install/efast365/api_bserp_colors.sql
UTF-8
460
2.875
3
[]
no_license
DROP TABLE IF EXISTS `api_bserp_colors`; CREATE TABLE `api_bserp_colors` ( `id` int(11) NOT NULL AUTO_INCREMENT, `erp_config_id` int(10) NOT NULL COMMENT 'erp配置id', `GGDM` varchar(50) NOT NULL COMMENT '颜色代码', `GGMC` varchar(100) DEFAULT NULL COMMENT '规格描述', `updated` datetime NOT NULL, PRIMARY KEY ...
true
a61f361547184108a1588aeab7186100d3329ddc
SQL
Hreherch/auto-registration-system
/sqlTest.sql
UTF-8
820
3.390625
3
[]
no_license
/* SELECT P.name, L.licence_no, P.addr, P.birthday, L.class, DC.description, L.expiring_date FROM People P, drive_Licence L, driving_condition DC, restriction R WHERE P.sin = L.sin AND L.licence_no = R.licence_no AND R.r_id = DC.c_id; SELECT P.name, L.licence_no, P.addr, P.birthday, L.class, L.expiring_...
true
c92a5cfc23ee914f0110340df9548ee99c5c05be
SQL
B3to-ARK/exerc-cios-faculdade
/atividade tema 03 sql/dump inicial.sql
UTF-8
4,700
3.34375
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64) -- -- Host: localhost Database: tema03 -- ------------------------------------------------------ -- Server version 8.0.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!4...
true
85cc0271bac4bff62100571827365fc861807a01
SQL
dibaliqaja/SiakadKampus
/db/kampus.sql
UTF-8
8,808
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 30, 2019 at 02:06 AM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
f41a89f0a44c300191a9b9fb09d7a60b5340a999
SQL
powehuda/docker-env
/.docker/db/db/flarepoint.sql
UTF-8
25,626
3.46875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : docker_flarepoint Source Server Version : 50725 Source Host : 192.168.99.100:3306 Source Database : flarepoint Target Server Type : MYSQL Target Server Version : 50725 File Encoding : 65001 Date: 2019-02-13 23:50:55 */ SET FOREIGN_KEY...
true
1266b44a051773218dd98eb0936f7154e60c2adb
SQL
Maurice-Roy/sql-library-lab-web-121117
/lib/update.sql
UTF-8
214
2.953125
3
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
-- UPDATE table_name -- SET column1 = value1, column2 = value2, ... -- WHERE condition; UPDATE characters SET species = "Martian" WHERE id = (SELECT MAX(id) FROM characters); -- (SELECT MAX(id) FROM characters)
true
856cf6bf5d0184def7178bf2a63643b3aed63e8b
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day19/select1846.sql
UTF-8
178
2.625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-18T18:46:00Z' AND timestamp<'2017-11-19T18:46:00Z' AND temperature>=26 AND temperature<=53
true
088aba68a3b8ec5ad043a6b7bab705ff3fa072e3
SQL
dkf4199/vfgcontact
/SQL/getPassword.sql
UTF-8
128
2.75
3
[]
no_license
SELECT a.rep_id, a.vfgrepid, b.password FROM reps a INNER JOIN rep_login_id b ON a.rep_id = b.rep_id WHERE a.vfgrepid = '29CRM';
true
a443565d6b031a2dfc01c3ef30cd6cbdb0d3bd49
SQL
BuckyTheBoss/week6project
/data/seed.sql
UTF-8
1,219
3.8125
4
[]
no_license
DROP TABLE IF EXISTS user; DROP TABLE IF EXISTS customer; DROP TABLE IF EXISTS phone_call; CREATE TABLE user ( user_id INTEGER PRIMARY KEY AUTOINCREMENT, username TEXT NOT NULL, password TEXT NOT NULL ); CREATE TABLE customer ( customer_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, first_name TEXT, last_name T...
true
65d90bedd3d97f1cb953cb88e7b2327cff0bd628
SQL
sunsunjackson/CSE111-Database-System-SQL
/lab6/6.sql
UTF-8
460
3.8125
4
[]
no_license
SELECT DISTINCT s_name, c_name FROM supplier s, customer c, orders o, lineitem l WHERE c.c_custkey = o.o_custkey AND l.l_suppkey = s.s_suppkey AND l.l_orderkey = o.o_orderkey AND o.o_totalprice = ( SELECT MAX(o.o_total...
true
39c3744517b629dc61de87164636c2efb18d852e
SQL
stkytomas/java-web-dev-techjobs-persistent
/queries.sql
UTF-8
457
3.84375
4
[]
no_license
## Part 1: Test it with SQL column names : id, employer, name, skills data types : int, varchar(255), varchar(255), varchar(255) ## Part 2: Test it with SQL SELECT * FROM Employer WHERE location = 'St. Louis City' ## Part 3: Test it with SQL DROP TABLE job ## Part 4: Test it with SQL SELECT s.name, s.skill_description ...
true
6631b2da0e6cc3255b88bad3b18475e3d795873b
SQL
trentdavis78/bamazon
/bamazon.sql
UTF-8
1,042
3.421875
3
[]
no_license
-- DROP DATABASE IF EXISTS bamazon; -- CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products ( id INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(50) NULL, department_name VARCHAR(50) NULL, price DECIMAL (10,2) NULL, stock INT NULL, PRIMARY KEY (id) ); INSERT INTO products (product_name, department_name, pr...
true
2489c15cdb79e89f6bd590f9da357c6af54113a2
SQL
Zendooosbka/ZendShop
/sql/admin-products-table.sql
UTF-8
1,461
3.765625
4
[]
no_license
-- Показывает таблицу продуктов CREATE OR REPLACE VIEW AdminProductsTable AS SELECT P.ProductId AS id, P.ProductName AS Name, P.Price, P.PictureURL, P.CreateDate AS Date, C.CategoryName, B.BrandName FROM Products AS P INNER JOIN Categories AS C ON C.CategoryId = P.CategoryId LEFT JOIN Brands AS B ON B.BrandId = P.Brand...
true
f3861f5355830ddcf5e044d6f4d93021fee348c9
SQL
kanonir25/Distributed-and-Parallel-computing
/Hive/request2.sql
UTF-8
499
3.0625
3
[]
no_license
add jar /opt/cloudera/parcels/CDH/jars/hive-contrib-1.1.0-cdh5.9.0.jar; add jar /opt/cloudera/parcels/CDH/jars/hive-serde-1.1.0-cdh5.9.0.jar; USE osipinius; DROP TABLE if exists prequer; CREATE TABLE prequer as SELECT region, count(1) as amount FROM user_logs logs JOIN ip_data dat ON (logs.ip = dat.ip) GROUP BY regio...
true
d65958aaa0522b465ac6408683c352cc4fe1c14d
SQL
qyh/studio
/sqlscript/dor_user_trigger.sql
UTF-8
400
2.84375
3
[]
no_license
use dormitory; /* delimiter | create trigger dor_user_add_trigger after insert on tbl_user for each row begin update tbl_dormitory set d_stu_num=d_stu_num+1 where id=new.d_id; end | delimiter ; delimiter | create trigger dor_user_del_trigger before delete on tbl_user for each row begin update tbl_d...
true
545f9db65e30ea3ffbf612fce4ff55cdf5db423c
SQL
raflyrrr/golf-booking
/letsgolf.sql
UTF-8
5,012
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 12, 2021 at 04:26 PM -- Server version: 5.7.24 -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
f7d1865fa714108fd46b440bc27d4d198c669dfd
SQL
spookylukey/haskellblog
/schema/install.sql
UTF-8
1,765
3.65625
4
[]
no_license
CREATE TABLE metainfo ( key TEXT, value TEXT ); CREATE TABLE formats ( id INTEGER PRIMARY KEY, name TEXT, posts_enabled INTEGER, comments_enabled INTEGER ); CREATE TABLE posts ( id INTEGER PRIMARY KEY AUTOINCREMENT, title TEXT, slug TEXT, post_raw TEXT, post_form...
true
0959eea08be210fead4ec064208f13e1b3533500
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day27/select2224.sql
UTF-8
177
2.65625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-26T22:24:00Z' AND timestamp<'2017-11-27T22:24:00Z' AND temperature>=5 AND temperature<=38
true
99049c9e2f289d934c73130c6923597ecd969360
SQL
iboyarinov/wbdrvbasisc
/src/test/resources/SQLScripts/product_variants.sql
UTF-8
464
2.59375
3
[]
no_license
CREATE TABLE PRODUCT_VARIANTS( ID INT NOT NULL, PRODUCT_ID INT, variation1_type CHAR(50), variation1_value CHAR(50), variation2_type CHAR(50), variation2_value CHAR(50), variation3_type CHAR(50), variation3_value CHAR(50), variation4_type CHAR(50), variation4_value CHAR(50), variation5_type CHAR(50), variation5_value C...
true
fb4a23a85856000c8457dc62743a6f2019df3a30
SQL
LucasH-Paz/mysql-one-for-all
/desafio4.sql
UTF-8
249
3.625
4
[]
no_license
CREATE VIEW top_3_artistas AS SELECT a.artist_name AS artista, COUNT(u.user_id) AS seguidores FROM SpotifyClone.user_likes AS u INNER JOIN SpotifyClone.artists AS a ON u.artist_id=a.id GROUP BY u.artist_id ORDER BY seguidores DESC, artista LIMIT 3;
true
b520dc1886f9c1446a7a27e49d84801889043fca
SQL
greatschism/quizzy
/schema/R0.9/br-182.sql
UTF-8
1,090
2.984375
3
[]
no_license
CREATE TABLE IF NOT EXISTS `set_speller_temp` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `correct` varchar(1024) CHARACTER SET utf8 DEFAULT NULL, `failed` varchar(1024) CHARACTER SET utf8 DEFAULT NULL, `user_id` bigint(20) NOT NULL, `set_id` bigint(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET...
true
8b0035c766ad948802a0e856180ba0e4d64dec4d
SQL
matthewfarant/bigquery-dti-ecommerce
/performance.sql
UTF-8
918
3.734375
4
[]
no_license
SELECT cat.*, plist.v2ProductName as product_name, COALESCE(sal.total_ordered,0) as total_ordered, prod.stockLevel, CASE WHEN prod.stockLevel = 0 THEN NULL ELSE ROUND(COALESCE(sal.total_ordered,0)/prod.stockLevel,4) END as stockRatio, CASE...
true
0732bec7fc07b0fd5a9237f81f34ff187c64904e
SQL
mallenswe/Microsoft_SQL_2012_Exam_70-461
/GROUPBY_Clause.sql
UTF-8
355
3.5625
4
[]
no_license
/* GROUP BY: -Groups a selected set of rows into a set of summary rows. -One row is returned for each group. -Every column that is not part of GROUP BY clause must be using an aggregate function so it will return a value */ SELECT CountryRegionCode, SUM(SalesYTD) FROM Sales.SalesTerritory WHERE SalesYTD > ...
true
1c828c30250cdd75f75b7a1546a5ffea06a562a0
SQL
SlavaLymar/job4j.ru
/chapter_008/src/main/java/ru/yalymar/query/createTables.sql
UTF-8
396
2.984375
3
[]
no_license
create table Filter ( id serial not null primary key, name char(20), user_id integer references Usertable(id) ); create table Operators( id serial not null primary key, operator char(7) ); create table Fields ( id serial not null primary key, field char(10), filter_id integer references Filter(...
true
d08cb56daf61486c1505bbb35ff7c22e20301c45
SQL
lgdelacruz92/koko-server
/scripts/sql-commands/general-commands.sql
UTF-8
143
2.9375
3
[]
no_license
select * from GeographicFeatures join Tag_Feature join Tags where name in ("How","many","20","to","24","in","florida") group by feature_id;
true
35b8a93487a6eb9cc7ce870eec1602f674497c34
SQL
brianmd/rampart
/resources/sql/queries.sql
UTF-8
1,212
4.1875
4
[]
no_license
-- :name create-customer! :! :n -- :doc creates a new user record INSERT INTO customers (id, first_name, last_name, email, pass) VALUES (:id, :first_name, :last_name, :email, :pass) -- :name update-customer! :! :n -- :doc update an existing user record UPDATE customers SET first_name = :first_name, last_name = :last_n...
true
58f460d2b05cdf65c73e01d109f912bfaff08949
SQL
JeonghoonWon/ddit
/DDIT_Oracle_DB_SQL/workspace/2020-12-10/2020.12.10_01.sql
UHC
12,623
4.03125
4
[]
no_license
2020-12-10_01) SELECT * FROM emp,dept; мԼ 1. : OVER, PARTITION BY, ORDER BY Լ : RANK, DENSE_RANK, ROW_NUMBER, Լ SUM, AVG, MAX, MIN, COUNT мԼ (windowԼ) ׷쳻 LAG(col) - ƼǺ 쿡 ÷ LEAD(col) - ƼǺ 쿡 ÷ ȣ, ̸, Ի, ޿, ڽź ޿ Ѵܰ ޿ ޿ : 1. ޿ 2. ޿ Իڰ SELECT empn...
true
6712230f0e4baab5786bc21b0871527ea2123cd7
SQL
LaMenteLoca/MinTIC_Ciclo2_Reto_6
/reto6_g42.sql
UTF-8
11,427
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 18-08-2021 a las 05:05:02 -- Versión del servidor: 10.4.18-MariaDB -- Versión de PHP: 7.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
c066228c9369b11fdcf1b3c9e39892a22ca3aef1
SQL
bigdataconsult/Oracle
/utilityScripts/stc.sql
UTF-8
109
2.546875
3
[]
no_license
SELECT OWNER, COUNT(*) FROM DBA_TABLES WHERE OWNER LIKE '%FCRM%' AND NUM_ROWS >0 GROUP BY OWNER ORDER BY 1 /
true
46463df2a00147ef4c51545e7b32a87001da9066
SQL
RyanKirkland86/employee-tracker
/db/schema.sql
UTF-8
817
3.96875
4
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS employees_db; CREATE DATABASE employees_db; USE employees_db; CREATE TABLE departments ( id INT AUTO_INCREMENT NOT NULL, Department VARCHAR(30) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE roles ( id INT AUTO_INCREMENT NOT NULL, Title VARCHAR(30) NOT NULL, Salary DECIMAL...
true
cbec34db7e29a970b9cbce62bd253b44e4c86dd2
SQL
ogaillard63/base
/db.sql
UTF-8
580
3.109375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `base` USE `base`; -- Export de la structure de table base. contacts CREATE TABLE IF NOT EXISTS `contacts` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `firstname` varchar(50) DEFAULT NULL, `lastname` varchar(50) DEFAULT NULL, `email` varchar(100) DEFAULT NULL, PRIMARY KEY...
true
ee94bfea9b0730ee2e1add2e3572bb0c0546c300
SQL
phpcodertop/todolist
/todo.sql
UTF-8
3,863
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 08, 2015 at 01:22 AM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
1d4d9fe829959f85c6a2f6d4ae07d29b6431de4a
SQL
nishantparmar/jbpm
/jbpm-installer/src/main/resources/db/upgrade-scripts/postgresql/bpms-6.4-to-7.0.sql
UTF-8
899
3.390625
3
[ "Apache-2.0" ]
permissive
alter table RequestInfo add column priority int4; ALTER TABLE ProcessInstanceLog ADD COLUMN processType int4; update ProcessInstanceLog set processType = 1; update RequestInfo set priority = 5; create table CaseIdInfo ( id int8 not null, caseIdPrefix varchar(255), currentValue int8, primary key (id) )...
true
23b6ded268c496f1d3e7cd9c6af3fcefd743339f
SQL
iwona-user/zadania-sk
/1. db/task_2.1.sql
UTF-8
4,065
3.546875
4
[]
no_license
-- -- ------------------------------------------------------------------------------- -- -- Zadanie 1 -- -- ------------------------------------------------------------------------------- -- -- ------------------------------------------------------------------------------- -- Section: setting sql_mode -- -- ----------...
true
4f2d2d74116b2251e4d3e3a1548c7772b7529e20
SQL
luckyzwei/UnityProject
/web/router/router.sql
UTF-8
3,020
3.375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
use router; CREATE TABLE if not exists `router_server`( `index_id` int(10) NOT NULL AUTO_INCREMENT COMMENT '索引ID', `agent_id` int(4) NOT NULL DEFAULT 0, `server_id` int(6) NOT NULL DEFAULT 0, `name` varchar(15) NOT NULL DEFAULT '', `ip` varchar(20) NOT NULL DEFAULT '', `port` int(5) NOT NULL DEFAULT 0, `...
true
05efad519bc260476ad6b299a66699f3ccb0b019
SQL
npsasiapac/dataload
/scripts/drop_gather_stats.sql
UTF-8
846
2.8125
3
[]
no_license
set echo off verify off showmode off feedback off; whenever sqlerror exit sql.sqlcode begin if user != 'SYS' then raise_application_error(-20101, 'Must be logged in as the SYS user to run this script.'); end if; end; / @@?/rdbms/admin/spdrop DECLARE CURSOR c_job IS SELECT job FROM dba_jobs WHERE schema_u...
true
4cc232a359f99a3c9080c3e242e282e795d650d7
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day09/select1859.sql
UTF-8
177
2.609375
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-08T18:59:00Z' AND timestamp<'2017-11-09T18:59:00Z' AND temperature>=7 AND temperature<=35
true
2d15373ae8fdf37fcf2d68633c89ab9f481050c0
SQL
vdiomidov/go_task
/init.sql
UTF-8
1,771
3.96875
4
[]
no_license
CREATE DATABASE IF NOT EXISTS `adv_db` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */; USE `adv_db`; CREATE TABLE IF NOT EXISTS `adv` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT...
true
30369bb91000a51d6fc1a4ea22d6635ef08204aa
SQL
NikolaiLyssogor/Data-Go-Round
/SQLFillerData.sql
UTF-8
4,922
3.3125
3
[]
no_license
CREATE TABLE surveys ( survey_id SERIAL PRIMARY KEY, creator_id SERIAL NOT NULL, title text, description text, credits integer DEFAULT 0, created timestamp with time zone DEFAULT now(), timeout timestamp with time zone ); ALTER SEQUENCE surveys_survey_id_seq RESTART WITH 41620; ALT...
true
fb643d4fe91c7799a7fa59cf1c08df345d083b4e
SQL
kasheban/RegistrationForm
/registrationform.sql
UTF-8
3,677
2.71875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 02, 2021 at 05:06 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
02b7c66243321771dc973a07db9af6d88106e191
SQL
sunnyzhy/spring-boot-project
/user/src/db/zhy.sql
UTF-8
2,952
3.40625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: 2018-06-06 06:52:06 -- 服务器版本: 5.7.22-log -- PHP Version: 7.2.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
aefe8876874c7c24602a1ccf20feb62fef9d9d9d
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day11/select0304.sql
UTF-8
191
2.6875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-10T03:04:00Z' AND timestamp<'2017-11-11T03:04:00Z' AND SENSOR_ID='054989a6_8476_4c89_bf01_8afc0302d53b'
true
3ae66763c24bab0ab77789d086c2c54bab7bf2a9
SQL
thelifeisimple/PP3_Final
/nahualmodule/nahual_modulo_inscripciones/create_inscripciones_nahual.sql
UTF-8
5,389
3.203125
3
[]
no_license
---------------Tablas parametrizaciones CREATE TABLE pais ( pais_id INTEGER PRIMARY KEY AUTOINCREMENT, pais_nombre VARCHAR(50) NOT NULL, pais_nacionalidad VARCHAR(50) NOT NULL ); INSERT INTO main.Pais (pais_id, pais_nombre, pais_nacionalidad) VALUES ('1', 'Argentina','argentina'); INSERT INTO main.Pais (pa...
true
d67e49dd4219ec6a9d350565dbac503dfc1a3152
SQL
jonathansn/LaraAdmin
/sql/db.sql
UTF-8
7,779
3.296875
3
[ "MIT" ]
permissive
-- MySQL Script generated by MySQL Workbench -- Seg 15 Jan 2018 17:42:15 -02 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE...
true
9721cca12ad5d58c1d47f6ade0a660e5181cb735
SQL
avinash431/snowflake
/copy-options-Rejected_records.sql
UTF-8
2,089
3.4375
3
[]
no_license
---- Use files with errors ---- CREATE OR REPLACE STAGE COPY_DB.PUBLIC.aws_stage_copy url='s3://snowflakebucket-copyoption/returnfailed/'; LIST @COPY_DB.PUBLIC.aws_stage_copy; COPY INTO COPY_DB.PUBLIC.ORDERS FROM @aws_stage_copy file_format= (type = csv field_delimiter=',' skip_header=1) pat...
true
5e013f31bf38d67fb2cbf6e740289b258422fe94
SQL
VijayMVC/JsMain
/web/sql_builds/JSC-220.sql
UTF-8
2,517
2.84375
3
[]
no_license
CREATE TABLE `NET_BANK` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `VALUE` char(20) NOT NULL DEFAULT '', `LABEL` varchar(100) NOT NULL DEFAULT '', `ORDER_ID` tinyint(2) NOT NULL, PRIMARY KEY (`ID`), UNIQUE KEY `VALUE` (`VALUE`) ) ENGINE=MyISAM; INSERT INTO `NET_BANK` VALUES ('', 'AND_N', 'Andhra Bank','7'); INSERT ...
true
ba7c7244300f78aab79d33530637bde14ea807a0
SQL
ebeilmann/DixieStateUniversity
/cs4307/sql_vqs3_files/listing0829.sql
UTF-8
143
3.765625
4
[]
no_license
SELECT pub_id, AVG(sales) AS "AVG(sales)" FROM titles GROUP BY pub_id HAVING AVG(sales) > (SELECT AVG(sales) FROM titles);
true
a84c157d0a583fad21fc28a1867296bf1fe986bd
SQL
lbz320/Stanford-DB-Class-Exercises-and-Notes
/DB5_SQL/social_q9.sql
UTF-8
128
3.765625
4
[]
no_license
SELECT h.name, h.grade FROM Highschooler h, (SELECT ID2 FROM Likes GROUP BY ID2 HAVING COUNT(ID2)>1) AS IDS WHERE h.ID = IDS.ID2
true
8e0413c4e512276f8ba85188091b2a2491f59286
SQL
DontChewOnChewie/Recipe-Site
/Recipe Site/Database_Structure.sql
UTF-8
2,048
3.125
3
[]
no_license
CREATE TABLE tbl_account ( ID INTEGER PRIMARY KEY AUTOINCREMENT, USERNAME VARCHAR2(100) NOT NULL, PASSWORD VARCHAR2(128) NOT NULL, SIGNUP_DATE VARCHAR2(50), LAST_SIGNIN VARCHAR2(50), CURRENT_SESSION_KEY VARCHAR2(100), EMAIL_AUTH BIT DEFAULT 0, EMAIL VARCHAR2(255), EMAIL_RESET_LINK VARCHAR2(10), CAN_EDIT_SETTI...
true
a30900f31cd0dae1c13418bb38cc68eb63270407
SQL
vipulnaik/donations
/similarity/similarity-incremental-donee-one-off.sql
UTF-8
3,439
4.21875
4
[ "CC0-1.0" ]
permissive
drop table if exists two_donees_one_donor; drop table if exists donee_summary; drop table if exists donee_summary_2; drop table if exists donee_sim_pre; drop table if exists donee_sim; drop table if exists donee_similarity; set @dne = "Machine Intelligence Research Institute" COLLATE utf8_unicode_ci; # BEGIN testing ...
true
276c29b5a90243fc0f351640992a8eff558b32dd
SQL
driftluo/Web-Crawler
/bookshelf/bookinformation.sql
UTF-8
543
3.484375
3
[]
no_license
 CREATE TABLE `bookinformation` ( `number` tinyint(4) NOT NULL AUTO_INCREMENT, `bookname` char(50) DEFAULT NULL, `latestchapter` char(100) DEFAULT NULL, `bookmark` char(100) DEFAULT NULL, `updatetime` datetime DEFAULT CURRENT_TIMESTAMP, `url` tinytext, `ts` datetime DEFAULT CURRENT_TIMESTAMP, `dr` tiny...
true
5324033a1661de69498647031328c681fd126a29
SQL
plytadauzys/Uzsienio-kalbu-zodziu-mokinimosi-aplinka
/vartvalds.sql
UTF-8
10,200
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 10, 2019 at 05:38 PM -- Server version: 5.7.24-0ubuntu0.16.04.1 -- PHP Version: 7.2.12-1+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!...
true
8451a236b6ee642741c916be405ec17541e31c2e
SQL
rphammy/atm_app
/sql/addAccountsValues.sql
UTF-8
4,327
2.625
3
[]
no_license
INSERT INTO Accounts(atype,status,bankname,balance,interest,aid,taxid) VALUES ('student-checking','open','San Francisco',0,3.0,17431,344151573); INSERT INTO Accounts(atype,status,bankname,balance,interest,aid,taxid) VALUES ('student-checking','open','Los Angeles',0,3.0,54321,212431965); INSERT INTO Accounts(atype,sta...
true
098278d21bd7b0aed269bb2963059e89ed3e17f2
SQL
erikabalbino/codecore_may2018
/week3/Day12_Associations/sql_associations/demo.sql
UTF-8
4,542
4.4375
4
[]
no_license
-- ASSOCIATIONS -- DEMO: Students From Courses -- SELECT * FROM projects WHERE student_id = 2; -- Exercise: -- SELECT id, student_id, score FROM enrolments WHERE course_id= 1; -- JOINS -- CROSS JOIN -- Demo: Students with Projects -- SELECT * -- FROM students -- CROSS JOIN projects; -- INNER JOINS -- Demo: Fi...
true
af3e3065961b1b7efc6309dc2d2239d31e665e57
SQL
daluojinxian3/test01
/baipiaostore.sql
UTF-8
17,664
3.09375
3
[]
no_license
/* SQLyog Ultimate v13.1.1 (64 bit) MySQL - 5.5.40 : Database - baipiaostore ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOR...
true
62c939904080c62910c2a3038e5520f4aea2c1a5
SQL
ahotal01/SPH-2018
/puzzle-hunter.sql
UTF-8
4,018
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.15.5 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1:8889 -- Generation Time: June 18, 2018 at 10:07 PM -- Server version: 5.6.34-log -- PHP Version: 7.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
true
cf61fb264e2b54b75ab93b2eeeb7bce8e9c75e3e
SQL
Vas-iliy/writeSite
/write_registrations.sql
UTF-8
2,168
2.796875
3
[]
no_license
create table registrations ( id_login int auto_increment primary key, userName varchar(30) not null, surname varchar(30) not null, country varchar(30) not null, email varchar(30) ...
true
ed5f9e3fbeeca84f802fb50fe20d8335870dc718
SQL
julien-roux/bgee_pipeline
/pipeline/db_creation/bgeeForeignKey.sql
UTF-8
21,541
3.109375
3
[ "CC0-1.0" ]
permissive
-- this file contains the foreign key constraints. -- **************************************************** -- GENERAL -- **************************************************** /*!40000 ALTER TABLE `dataSourceToSpecies` DISABLE KEYS */; alter table dataSourceToSpecies add foreign key (dataSourceId) references dataSourc...
true
247bab9bcc67079c74bacf498e22442f459e8b29
SQL
sergiomm116/DAMGit
/BASES DE DATOS/EJERCICIOS/TEMA 3 - CONSULTAS SQL/2-CONSULTAS CON FUNCIONES/EJERCICIOS PPT.sql
UTF-8
221
2.6875
3
[]
no_license
-- GRUPOS VALORES 1 SELECT COUNT(APELLIDO) FROM EMPLE WHERE APELLIDO LIKE 'A%' -- GRUPO VALORES 2 SELECT APELLIDO FROM EMPLE WHERE APELLIDO LIKE 'A%' AND SALARIO=(SELECT MAX(SALARIO) FROM EMPLE WHERE APELLIDO LIKE 'A%')
true
2ac4be1132cafbec36955d95c373086398024e7f
SQL
Iamttp/SQLTest
/5.sql
UTF-8
1,183
3.828125
4
[]
no_license
-- 题目描述 -- 查找所有员工的last_name和first_name以及对应部门编号dept_no,也包括展示没有分配具体部门的员工 -- CREATE TABLE `dept_emp` ( -- `emp_no` int(11) NOT NULL, -- `dept_no` char(4) NOT NULL, -- `from_date` date NOT NULL, -- `to_date` date NOT NULL, -- PRIMARY KEY (`emp_no`,`dept_no`)); -- CREATE TABLE `employees` ( -- `emp_no` int(11) NOT NULL, -- ...
true
3135bd84173a3d53e22b8cf87ca6da0ecb3772f4
SQL
ssoooo/Kosta162
/WebContent/db/ledger.sql
UTF-8
2,676
3.359375
3
[]
no_license
--DROP TABLE member_table; --DROP TABLE group_table; --DROP TABLE comment_table; --DROP TABLE record_table; --DROP TABLE event_table; --DROP TABLE message_table; --DROP TABLE invite_table; --DROP TABLE request_table; --DROP TABLE groupMember_table; --DROP TABLE eventMember_table; --DROP TABLE messageMember_table; --DRO...
true
b82116ddd004b92ec48aa67cab884cf153a0e927
SQL
XanderBy/Agenda-Basica
/Agenda-Basica/bbdd/AgendaBBDD.sql
UTF-8
1,922
3.3125
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Sun May 13 16:03:18 2018 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TR...
true
1e0b58ebd78623a00c2091c2b8f3377cf55a6b07
SQL
mohoromitch/goblast
/a5/a_queries.sql
UTF-8
3,829
4.78125
5
[]
no_license
SELECT SEASON_ID, TEAM_ID, TEAMS.NAME AS "Team Name", SEASONS.YEAR AS "Season Year", SEASONS.TYPE AS "Season Type", sum(SCORE_SUM) AS "Team Runs Per Season" FROM ( SELECT SEASON_ID, HOME_TEAM_ID AS TEAM_ID, sum(HOME_SCORE) AS SCORE_SUM FROM GAMES GROUP BY SEASON_ID, HOME_TEAM_ID UNION ...
true
f9d6a15f2579aedd72b58b5f62ac072b5e9d476f
SQL
DincerDogan/Data-Science-Learning-Path
/Data Scientist Career Path/14. SQL for Interview Prep/3. Window/1. Window/8. rank.sql
UTF-8
160
2.53125
3
[ "MIT" ]
permissive
SELECT RANK() OVER ( PARTITION BY week ORDER BY streams_millions DESC ) AS 'rank', artist, week, streams_millions FROM streams;
true