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
d84d4536e79bd6b0ab0b13bd6376eaebeb0e925e
SQL
ketnh/KLTN
/kateteddy.sql
UTF-8
13,643
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 19, 2014 at 11:00 AM -- Server version: 5.5.32 -- PHP Version: 5.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
f2e2932ded75c260bedad1502797c8edb509e27e
SQL
bozobjekovic/KnowledgeBasedSys
/webshop_script.sql
UTF-8
7,601
2.8125
3
[]
no_license
set foreign_key_checks = 0; drop table action_event; drop table category_actions; drop table consumption_limit; drop table customer_category; drop table customer_category_consumption_limit; drop table general_discount; drop table invoice; drop table invoice_item; drop table item_discount; drop table invoice_invoice_it...
true
dcd99cc8a8a02fdacbd5b6ef26b4e636c0b0dae4
SQL
hiroki0430/skill_check
/sql/members (1).sql
UTF-8
2,073
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: 2018 年 8 月 24 日 03:57 -- サーバのバージョン: 10.1.30-MariaDB -- PHP Version: 5.6.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
true
9468f581c8cf94edc7bd09c783d7ac85fc3cef59
SQL
cirdec113/AppFinder
/src/main/resources/sql/tables/class_feats.sql
UTF-8
315
2.8125
3
[]
no_license
DROP TABLE IF EXISTS CLASS_FEATS; CREATE TABLE CLASS_FEATS ( CLASS_FEAT_ID INT NOT NULL UNIQUE AUTO_INCREMENT, CLASS_ID INT NOT NULL, NAME VARCHAR (255), TYPE INT NOT NULL, PRIMARY KEY (CLASS_FEAT_ID) ); /* INSERT THIS FOR A TEST CLASS FEAT */ INSERT INTO CLASS_FEATS VALUES (1, 1, 'Stunning Fist', 1);
true
9201203480ff9da5ac7e4de28ef3e52748cf516f
SQL
H1bro/Hackerrank-Problem-Solving-Solutions
/SQL/Basic Select/Weather Observation Station 7.sql
UTF-8
889
3.390625
3
[]
no_license
SELECT DISTINCT CITY FROM STATION WHERE CITY REGEXP '[aeiou]$'; -- Pattern (Шаблон) | What the pattern matches (Что соответствует шаблону) --------------------------------------- -- $ | End of string (Конец строки) -- [...] | Any character listed between the square brackets (Любой символ указанный в...
true
f6cf870474579f829bc50b00b98342874b555d70
SQL
yongdk1/CS50
/XN/pset7/movies/9.sql
UTF-8
302
3.734375
4
[]
no_license
SELECT name -- Cannot use DISTINCT here as some people share the same names FROM people WHERE id IN ( SELECT DISTINCT person_id -- Differentiate people by their id FROM stars JOIN movies ON stars.movie_id = movies.id WHERE year = 2004) ORDER BY birth
true
589159fb9915290e0d47dfd0b0868832fdb696c7
SQL
dangvannhang/backend-vote-web
/mySql.sql
UTF-8
921
3.515625
4
[]
no_license
drop database if exists backend_vote_web; create database backend_vote_web; use backend_vote_web; create table users( id int auto_increment, email varchar(100), pass varchar(50), rolee varchar(20), remember_token varchar(255), primary key(id) ); create table topics ( id int auto_increment, t...
true
dd8397fe042ea92df71e34183faa8919491eaa37
SQL
gpipperr/OraDBASQLScripts
/awr_os_stat.sql
UTF-8
982
3.640625
4
[]
no_license
--============================================================================== -- GPI - Gunther Pippèrr -- Desc - display the OS statistic of the last days --============================================================================== prompt prompt !!!!You need the Tuning Pack for this feature!!!! prompt ...
true
9953b672f87f3bf6c1e195bd46c49dc976667310
SQL
iambodi/piscine-php
/j05/ex11/ex11.sql
UTF-8
267
3.703125
4
[]
no_license
SELECT UPPER (last_name) AS NAME, first_name, price FROM user_card INNER JOIN member ON user_card.id_user = member.id_user_card INNER JOIN subscription ON subscription.id_sub = member.id_sub WHERE price > 42 ORDER BY user_card.last_name ASC, user_card.first_name ASC;
true
de03bc9bd3527aeb7dcb200d691e6e2e7a5049b8
SQL
Faserfso/SQL_EMIAS
/Общие скрипты для алтрернатив по схемам.sql
UTF-8
644
2.90625
3
[]
no_license
-- alter session set current_schema=parus; alter session set current_schema=emias_cluster; -- alter session set current_schema=etd2 --select * from dba_tables; -- WHERE TABLE_TYPE='BASE TABLE' --select * from parus.TR_SVMR_COMPANIES --parus.SUPP_SKUU -- select * from district_adress da where lpu_district_id i...
true
1fc95c788748454712869f86de2b68fac640230c
SQL
touyouHacker/CrawlerZweiBinary
/DDL/MySQL/contents.ddl
SHIFT_JIS
1,808
2.953125
3
[]
no_license
CREATE TABLE `?` ( `CONTENT_ID` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID-PK', `DAT_ID` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'SUBJECTe[uID', `URL` varchar(2048) DEFAULT NULL COMMENT 'RecURL', `FIRST_HIT_THREAD_NUM` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'ŏɃqbgX̔ԍ(1-1001)', `CON...
true
95f482d91ed1e6413b2773e91d1afeab80ff903c
SQL
DiegoAmores/Vinyl-Record-Database
/Views/label_count.sql
UTF-8
400
4.0625
4
[ "MIT" ]
permissive
USE project; CREATE OR REPLACE VIEW label_count AS SELECT label_name AS "Label Name", label_city AS "Label City", label_country AS "Label Country", COUNT(label_id) AS "Amount of Labels in Database" FROM vinyllabel vl JOIN labels l USING(label_id) JOIN vinyl v ON vl.vinyl_id = v.vinyl_id GROUP BY label_i...
true
490d88bfd21717ec84097981003bfab28707cb53
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day19/select1916.sql
UTF-8
178
2.640625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-18T19:16:00Z' AND timestamp<'2017-11-19T19:16:00Z' AND temperature>=48 AND temperature<=89
true
0ee0b38a6801806030f0cc922d6cfb6c445e5425
SQL
radtek/abs3
/sql/mmfo/bars/View/v_staff_chk_xrm.sql
UTF-8
428
2.640625
3
[]
no_license
prompt create view v_staff_chk_xrm create or replace force view v_staff_chk_xrm as select ad.active_directory_name logname, ch.idchk, ch.name , s.logname logname_abs from staff_chk t, staff$base s, staff_ad_user ad, chklist ch where t.id = s.id and s.id = ad.user_id and ch.idchk = t.chkid...
true
23c6362c40f44b69d0065dbfa717db79abe4d300
SQL
AlperKocaman/METU-CENG
/CENG352 - Database Management Systems /Flight Database-SQL/q9.sql
UTF-8
701
4.15625
4
[]
no_license
select flights.tailNum as plane_tail_number, avg(fr2.flight_distance / fr2.flight_time ) as avg_speed from flight_reports fr2, ((select fr.plane_tail_number as tailNum from flight_reports fr where fr.is_cancelled = 0 and fr."month" = 1 and fr."year" = 2016 and (fr.weekday_id = 6 or fr.weekd...
true
9e3444020598907cfbcbfaea5b109ce1e73ba9d7
SQL
xycpand/my-lemon
/src/main/resources/dbmigrate/h2/pim/V1_6_0_7__pim_device.sql
UTF-8
495
2.6875
3
[ "Apache-2.0" ]
permissive
------------------------------------------------------------------------------- -- pim device ------------------------------------------------------------------------------- CREATE TABLE PIM_DEVICE( ID BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL, CODE VARCHAR(64), NAME VARCHAR(64...
true
dfd20eec9e757c4bcea7750353fb8d3447549022
SQL
upcjmi19/portal
/support_files/07_06_2018.sql
UTF-8
1,884
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jun 07, 2018 at 01:26 PM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
ae76648072e440ade73f0fb22a33728a951d6cc4
SQL
Interactive-Board/board
/database/schemaTablesViewsAndData.sql
UTF-8
25,635
3.4375
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.13, for Win64 (x86_64) -- -- Host: localhost Database: board -- ------------------------------------------------------ -- Server version 8.0.13 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40...
true
d4d96df9e1786260a8f1d781fbe2f83c35b2980a
SQL
Alionides/formtask
/formtask.sql
UTF-8
1,722
3.0625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Авг 20 2020 г., 23:20 -- Версия сервера: 10.4.11-MariaDB -- Версия PHP: 7.3.17 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@...
true
06236df2d79df0c3785ef18cd3cf4eb69612caeb
SQL
zeroseekyou/MobilityDB
/test/queries/26_temporal_boolops_tbl.test.sql
UTF-8
954
2.828125
3
[ "PostgreSQL" ]
permissive
----------------------------------------------------------------------- -- Boolean functions and operators -- N.B. The names and, or, not are reserved words ----------------------------------------------------------------------- SELECT count(*) FROM tbl_tbool WHERE TRUE & temp IS NOT NULL; SELECT count(*) FROM tbl_t...
true
383ca25f41617313582ad38a308c6de39383edf4
SQL
AndreiApostoiu/OracleDocs
/SQL1/Day2/cursor.sql
UTF-8
1,016
3.5625
4
[]
no_license
--set serveroutput on declare --declarare cursor cursor departments_curs is select dp.department_id,dp.department_name from departments dp; -- obiect cursor departments_rec departments_curs%rowtype; begin if departments_curs%isopen=false then open departments_curs; end if; loop fetch departments_curs into department...
true
87291f8c4c2ef02062e08cec53e6ec44a8c39e3d
SQL
zamo09/Carrito
/sql/carrito.sql
UTF-8
3,383
3.59375
4
[]
no_license
CREATE DATABASE carrito; use carrito; CREATE TABLE Categoria( id_categoria INT NOT NULL AUTO_INCREMENT COMMENT 'Clave Primaria', nombre VARCHAR(255) COMMENT 'Nombre de la categoria', activo BOOLEAN COMMENT 'Estado de la categoria', temporada VARCHAR(100) COMMENT 'Tiempo de venta', PRIMARY KEY (id_categoria) ); ...
true
8cfe06fdb35b39dec32507fcf74448658be3f361
SQL
ivanprokopets/Database-Task
/Task_4/Task_4.sql
UTF-8
1,473
4.21875
4
[]
no_license
CREATE PROCEDURE dbo.zadania1 AS BEGIN SELECT o.imię AS imie, o.nazwisko AS nazwisko, o.*, e.pensja, e.id_firmy, m.id_miasta FROM osoby o JOIN miasta m ON (o.id_osoby = m.id_miasta) JOIN etaty e ON o.id_osoby = e.id_osoby JOIN (SELECT ew.id_firmy, MAX(ew.pensja) AS maksymalnapensja FROM e...
true
9b3e791a7987eb56138df1afb6ceb8434e73d5a4
SQL
Neilai/sjtu-ipv6
/ipv6-backend/dnsmaldomain/init/sql/init.sql
UTF-8
1,006
2.953125
3
[]
no_license
create user zjc@'%' IDENTIFIED by 'zjc13120709021'; grant all privileges on *.* to 'zjc'@'%' identified by 'zjc13120709021'; create database dns; use dns; create table amallog(domain varchar(255), ip varchar(255), time varchar(255), srcip varchar(255)); create table log1(domain varchar(255),ip varcha...
true
21f6a8c6d9b9ff4f999470ae9539d082380c0606
SQL
wink94/FMC-LAB
/sql/lab_appointment_limit.sql
UTF-8
253
2.84375
3
[]
no_license
create table lab_appointment_limit( ID int not null auto_increment, SetDate Datetime not null default CURRENT_TIMESTAMP, appointment_limit int , primary key(ID) ); SELECT CURDATE(); insert into lab_appointment_limit(appointment_limit) values(10);
true
81dc22614fff5aa9dead2ef978bc9ebb5495e88f
SQL
xyzarivera/lihamph
/database/tables/core/person.sql
UTF-8
499
2.921875
3
[]
no_license
CREATE TABLE core.person ( person_id SERIAL NOT NULL, username VARCHAR(50) NOT NULL, hashed_password VARCHAR(500) NOT NULL, email_address VARCHAR(255) NULL, about_me TEXT NULL, is_moderator BOOLEAN NOT NULL DEFAULT false, is_enabled BOOLEAN NOT NULL DEFAULT true, created_date TIMESTAMPTZ NOT NULL DEFAUL...
true
7d1df5a64e19e62371520b4b11df4b36d5525860
SQL
puritanlife/ApplyNow
/ApplyNow/dss/Stored Procedures/GetSubscriptionById.sql
UTF-8
482
2.890625
3
[]
no_license
CREATE PROCEDURE [dss].[GetSubscriptionById] @subscriptionid uniqueidentifier AS SELECT sub.[id], sub.[name], sub.[creationtime], sub.[lastlogintime], sub.[tombstoneretentionperiodindays], sub.[policyid], sub.[WindowsAzureSubscriptionId], sub.[Ena...
true
d4ef954926b82e0b7c3164573678cd9c17996e3c
SQL
xueyubingsen/palsplitpartition
/ATTRIB_MDAY_NUMBER_VAL_DSOS_2019.SQL
UTF-8
20,570
3.265625
3
[]
no_license
ALTER TABLE ATTRIB_MDAY_NUMBER_VAL_DSOS SPLIT PARTITION AM_NUM_VAL_DSOS_MAXX AT (2019) INTO (PARTITION AM_NUM_VAL_DSOS_2018 TABLESPACE part_tbs, PARTITION AM_NUM_VAL_DSOS_MAXX TABLESPACE part_tbs); begin for csr in ( select partition_name, 'ALTER TABLE ATTRIB_MDAY_NUMBER_VAL_DSOS RENAME SUBPARTITION '|| SUBPA...
true
df72b2afb88606320b449b20de83b6d6d0746496
SQL
mohammed-fakhry/acc
/db/accountings_ali.sql
UTF-8
14,654
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 07, 2020 at 03:47 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.3.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
dcc0e48351bdab3ce7c723d56b6ad5fb9fcece08
SQL
tomwaters/HiveMonitor
/Receiver/DB/bees/data_received.sql
UTF-8
566
3.046875
3
[]
no_license
-- Dumping structure for table bees.data_received CREATE TABLE IF NOT EXISTS `data_received` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ReceivedAt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `Source` smallint(5) unsigned DEFAULT NULL, `LQI` tinyint(3) unsigned DEFAULT NULL, `RSSI` tinyint(3) unsigned DEFAULT ...
true
fb1bf0efca27d12d1573d7412e9ebb35c298bba0
SQL
jabautista/GeniisysSCA
/src/main/resources/sql/procedures/populate_personnels.prc
UTF-8
11,080
3.0625
3
[]
no_license
DROP PROCEDURE CPI.POPULATE_PERSONNELS; CREATE OR REPLACE PROCEDURE CPI.POPULATE_PERSONNELS( p_item_no IN NUMBER, p_old_pol_id IN gipi_polbasic.policy_id%TYPE, p_new_par_id IN gipi_wcasualty_personnel.par_id%TYPE ) IS v_line_cd gipi_polbasic.line_cd%TYPE; -- line_cd of po...
true
3d0b8d616b14960be5123c50376a34fd2c5f35fa
SQL
andybryant/progression
/database/setup.sql
UTF-8
4,336
3.796875
4
[]
no_license
CREATE DATABASE progress; GRANT ALL ON progress.* TO buildadmin@localhost IDENTIFIED BY 'build123'; GRANT INSERT, DELETE, UPDATE, SELECT ON progress.* TO buildapp@localhost IDENTIFIED BY 'build123'; USE progress; CREATE TABLE Person (id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(...
true
d757b537ea8293e7489d76a9d4543932dbcc2bb2
SQL
MohamedSondo/ACE_HackerRank
/SQL/Basic Join/Average Population of Each Continent.sql
UTF-8
251
3.328125
3
[ "MIT" ]
permissive
-- Author: Rodney Shaghoulian -- Github: github.com/rshaghoulian -- HackerRank: hackerrank.com/rshaghoulian SELECT COUNTRY.CONTINENT, FLOOR(AVG(CITY.POPULATION)) FROM CITY INNER JOIN COUNTRY ON CITY.COUNTRYCODE = COUNTRY.CODE GROUP BY COUNTRY.CONTINENT;
true
20500b50347fed8c9d87314f957a8e403a2c4d9a
SQL
bcongdon/ingredients_bot
/setup.sql
UTF-8
512
2.75
3
[ "MIT" ]
permissive
CREATE TABLE food( "fdc_id" INTEGER, "data_type" TEXT, "description" TEXT, "food_category_id" TEXT, "publication_date" TEXT ); CREATE TABLE branded_food( "fdc_id" INTEGER, "brand_owner" TEXT, "gtin_upc" TEXT, "ingredients" TEXT, "serving_size" TEXT, "serving_size_unit" TEXT, "household_serving_...
true
400ca94fe1bd0098826584b116903158adae94c6
SQL
EnterpriseOrganization/enterprise
/database/db.sql
UTF-8
20,992
3.109375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: enterprice -- ------------------------------------------------------ -- Server version 5.6.24 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; ...
true
3961aaa561af1833f8a3c89605572416f7bdcccf
SQL
john-orr/kerbal-space-tourism
/database/04_Backup180216.sql
UTF-8
3,920
2.875
3
[]
no_license
UPDATE TOURIST_ITINERARY SET PREREQUISITE=null; DELETE FROM TOURIST_ITINERARY; DELETE FROM MISSION; DELETE FROM VESSEL; DELETE FROM FLIGHT; DELETE FROM TOURIST; INSERT INTO TOURIST VALUES('CALDEN', 'SUBSEQUENT'); INSERT INTO TOURIST VALUES('ERFEL', 'SUBSEQUENT'); INSERT INTO TOURIST VALUES('FERMORE', 'SUBSEQUENT');...
true
942d1315aa2f1669bb80ba0546607de0534a7acd
SQL
codecollection/cms
/data/struct_weixin.sql
UTF-8
1,535
3.34375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- 微信关注用户表 create table if not exists `weixin_user`( `user_id` int(11) unsigned not null auto_increment comment '自增id', `open_id` varchar(200) not null default '' comment '发送方帐号openid', `cdate` int(11) not null default 0 comment '创建时间', `status` tinyint(2) not null default 1 comment '是否关注或取消,1=关注,2=取消', primary ke...
true
881954808f7befed2cc78c82272a05dfd8ea548f
SQL
man5757/codeigniter-login-register-with-captcha
/Term_project_C0642703/cpd2374project.sql
UTF-8
4,663
2.921875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 02, 2014 at 11:03 PM -- Server version: 5.6.16 -- PHP Version: 5.5.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
e304ab97ab72c6469626f84e20bc5f2c95655518
SQL
davidrozipanjaitan/stockbit-test
/1.sql
UTF-8
282
2.75
3
[]
no_license
SELECT id, user_name, CASE WHEN parent='1' THEN (SELECT user_name FROM `user` WHERE id='1') WHEN parent='2' THEN (SELECT user_name FROM `user` WHERE id='2') WHEN parent='3' THEN (SELECT user_name FROM `user` WHERE id='3') ELSE NULL END AS 'ParentUserName' FROM `user`;
true
bb0d403d8ded1ec479268dd3648908eee889ed3b
SQL
Umeshkumar27101998/Crud-API
/Umesh Crud API using Gradle Build Tool/umeshCrudOperations/sql/schema.sql
UTF-8
386
2.65625
3
[]
no_license
create database Umesh_Crud; use Umesh_Crud; CREATE TABLE `Umesh_Invoice` ( `user_id` varchar(100) NOT NULL, `amount` int NOT NULL, `name` varchar(100) NOT NULL, `mobile_no` varchar(100) NOT NULL, `created_at` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` TIMESTAMP NOT NULL DEFAULT NOW() ON UPDATE NOW...
true
4f2df3fbf5ef6e2efe51f3fa2df2f378a830e78f
SQL
oneCoder16/douchat_addons
/Order/install.sql
UTF-8
1,014
2.78125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : web Source Server Version : 50173 Source Host : 119.29.68.201:3306 Source Database : wei Target Server Type : MYSQL Target Server Version : 50173 File Encoding : 65001 Date: 2017-05-15 16:05:54 */ SET FOREIGN_KEY_CHECKS=0; -- -------...
true
043199b5fd570e37cd99834037465ab8fcb04d5b
SQL
yiwensong/btc-db
/sql/dbsetup.sql
UTF-8
796
3.109375
3
[]
no_license
CREATE SCHEMA IF NOT EXISTS rawdata AUTHORIZATION postgres; CREATE SCHEMA IF NOT EXISTS research AUTHORIZATION postgres; CREATE ROLE gdax_md LOGIN PASSWORD 'gdax_md'; GRANT CONNECT ON DATABASE mddb TO gdax_md; -- GRANT SELECT ON ALL TABLES IN SCHEMA rawdata TO gdax_md; -- GRANT INSERT ON ALL TABLES IN SCHEMA rawdata T...
true
5be4ccdf4a020c3d1a2aded783b798fd4a986e25
SQL
nortonlifelock/aegis
/init/procedures/Organization/GetOrganizationsForUser.sql
UTF-8
627
3.859375
4
[ "Apache-2.0" ]
permissive
/* RETURN Organization ID NVARCHAR(36) NOT Code NVARCHAR(150) NOT Description NVARCHAR(500) NULL TimeZoneOffset FLOAT NOT */ DROP PROCEDURE IF EXISTS `GetLeafOrganizationsForUser`; CREATE PROCEDURE `GetLeafOrganizationsForUser` (_UserID VARCHAR(36)) #BEGIN# ...
true
2d7350f8bedef4f7e315065acc2d83c1934b2d8e
SQL
carliros/retros
/Application/Schema.sql
UTF-8
3,130
3.859375
4
[]
no_license
-- Your database schema. Use the Schema Designer at http://localhost:8001/ to add some tables. CREATE TABLE retros ( id UUID DEFAULT uuid_generate_v4() PRIMARY KEY NOT NULL, created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL, updated_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL, title TEXT...
true
5866e91b49cf4da032e27d983b830570e200d3fd
SQL
umit-turk/SQL-homework
/Odev12.sql
UTF-8
1,101
4.34375
4
[]
no_license
--1)film tablosunda film uzunluğu length sütununda gösterilmektedir. Uzunluğu ortalama film uzunluğundan fazla kaç tane film vardır? SELECT length, (SELECT ROUND(AVG(length), 3) FROM film) from film WHERE length > ( SELECT AVG(length) FROM film ) --2)film tablosunda en yüksek rental_rate değerine sahip kaç tane film v...
true
e62d816b8a9b1482a24520e89741131f7187d2d3
SQL
giannifontanot/employee-management-system
/db/schema.sql
UTF-8
1,136
4.09375
4
[ "MIT" ]
permissive
-- Drops the company_db if it exists currently -- DROP DATABASE IF EXISTS company_db; -- Creates the "company_db" database -- CREATE DATABASE company_db; -- Makes it so all of the following code will affect company_db -- USE company_db; -- Creates the table "department" within company_db -- CREATE TABLE department ( ...
true
f87098be7fedf3f5c481442588a4b7425035d454
SQL
Hguedez/BDII
/QUERYS/Simulacion.sql
UTF-8
20,388
3.671875
4
[]
no_license
CREATE OR REPLACE PROCEDURE Simulacion(dias number) IS codigoFecha number; fechaActual date; BEGIN Infecciones(dias); Recuperaciones(dias); Viajes(dias); SELECT MAX(codigo_fecha) INTO codigoFecha FROM fecha_actual; SELECT fecha_actual INTO fechaActual FROM fecha_actual WHERE cod...
true
9a615b3620afa8f422b7eae9dce5eebe40b366c0
SQL
AxelDevelop/All_Programming_Code
/SQL/Filtering, Functions, Subqueries/LIKE and MIN/The_MIN_Function.sql
UTF-8
351
3.34375
3
[]
no_license
-- The MIN function is used to return the minimum value of an expression in a SELECT statement. -- For example, you might wish to know the minimum salary among the employees. SELECT MIN(Salary) AS Salary FROM employees; -- the result is in an image called "MIN" -- All of the SQL functions can be combined together t...
true
761e5342e5bab4940f59909441e02e07c3ceb1f4
SQL
gnewpg/node-pgp-postgres
/lib/structure.sql
UTF-8
7,993
4.125
4
[]
no_license
CREATE TABLE "keys" ( "id" CHAR(16) PRIMARY KEY, -- Long ID of the key "fingerprint" VARCHAR(40) NOT NULL UNIQUE, -- Fingerprint of the key, 32 chars for v2/v3 keys, 40 chars for v4 keys "binary" bytea NOT NULL, "date" TIMESTAMP WITH TIME ZONE NOT NULL, "expires" TIMESTAMP WITH TIME ZONE DEFAULT NULL, "revoked" C...
true
1b043affec2576810fd976f948d2e756cd893a7e
SQL
canhnqpd01197/Assignment-dien-toan-dam-may
/cloud.sql
UTF-8
3,713
3.21875
3
[]
no_license
CREATE DATABASE QLBH; USE QLBH; CREATE DATABASE QLBH ; USE QLBH; CREATE TABLE ChiTietHoaDon ( maChiTietHoaDon varchar(10) NOT NULL, maHoaDon varchar(10) NOT NULL, maSP varchar(10) NOT NULL, soLuong int NULL, giaTien float NULL, CONSTRAINT ChiTietHoaDon_pk PRIMARY KEY (maChiTietHoaDon) )...
true
73c5927914b6d59fef329f4eb5c79c6835262eca
SQL
SkTasnimBari/Web-Technology--Real-Estate-Company
/LAB TASK 5/product_db.sql
UTF-8
1,635
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 12, 2020 at 11:36 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
34f3e9e7dfdf5ede688abc3c47103314831a96ea
SQL
leorusso2300/MySQL
/lista1/Atividade1/ex1 - rh.sql
UTF-8
1,033
3.28125
3
[]
no_license
create database db_rh; use db_rh; create table tb_funcionarios( id bigint(5) auto_increment, Nome varchar (20) not null, Idade int, Filhos boolean, Turno varchar (20) not null, Salário decimal(15,3), primary key (id) ); select * from tb_funcionarios; insert into tb_funcionarios(nome,idade,filhos,turno,salário) Value...
true
d9682edfc137b6084112e04c85d84abad67db80e
SQL
enamba/janamesa
/application/data/update/done/2011/upgrade-1.08-branch-done.sql
UTF-8
4,706
4.15625
4
[]
no_license
/** * Increase version */ INSERT INTO `version` VALUES (NULL, NULL); /** * Database upgrade v1.8 Branch * Triggers to speed up calling on landing page * @author Matthias Laug */ alter table restaurants drop servicetypeId; CREATE TABLE `restaurant_servicetype` ( `id` int(11) NOT NULL auto_increment, `restaur...
true
92f29f5a9ebb8aca7de74c29880f9117848fb5e2
SQL
simadri-ganta/student_admission-repo
/dump.sql
UTF-8
4,599
3.015625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.27, for Linux (x86_64) -- -- Host: localhost Database: StudentAdmission -- ------------------------------------------------------ -- Server version 5.7.27-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHA...
true
54f170626726c1dceb5f5b6fd9cb5609e9d835d4
SQL
valeriaguttilla/progetti
/2_SQL/problem_4/DMBI Project_ex_4.sql
UTF-8
806
4.6875
5
[]
no_license
-- Problem 4. --A product id is female-specific if the number of distinct women customers who bought the product is at least 1.5 times the number --of distinct male customers who bought it. It is required to produce a CSV with all female-specific product id's. with Gender_Products_Count as( select s.product_id, ...
true
3611cf9f06bfb9fb7aedc4bd6eee3e80f9e265e3
SQL
Hungqbqc/ServerChamSocSucKhoe
/thongtinthanhvien_Final_v0.1_20200103.sql
UTF-8
2,368
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jan 03, 2020 at 04:25 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.1.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
5e11d684981d2b0837f02a574a0f9c3ac0707664
SQL
Dragomitch/halibaba
/SQL/src/global_create.sql
UTF-8
3,378
4.28125
4
[]
no_license
-- Supprimer toutes les données existantes DROP SCHEMA IF EXISTS marche_halibaba CASCADE; -- Schema CREATE SCHEMA marche_halibaba; -- Users CREATE TABLE marche_halibaba.users ( user_id SERIAL PRIMARY KEY, username VARCHAR(35) NOT NULL CHECK (username <> '') UNIQUE, pswd VARCHAR(255) NOT NULL CHECK (pswd <> '') ...
true
219383f242226b9c65d06a3d97461dfbd64f21b1
SQL
algebrateam/phpdev2018
/public/bskenderovic/mysql/Zadaca 3.4/zadaca3.4.sql
UTF-8
7,009
4.15625
4
[ "MIT" ]
permissive
-- Zadatak 3.2 -- Ispišite matične brojeve te imena i prezimena svih studenata. Ime i prezime treba ispisati zajedno, -- u jednom stupcu. SELECT stud.mbrStud, CONCAT(stud.imeStud,' ',stud.prezStud) AS `Ime i prezime` FROM stud; -- Zadatak 3.3 -- Ispišite sva imena studenata tako da se ni jedno ne pojavi dva puta. Sort...
true
1de85f4dd470f159f875e2a1f7371c5d7612469d
SQL
inf430/GestionNoteUy1
/BDPROJET_FINAL.SQL
UTF-8
30,686
3.78125
4
[]
no_license
-- ----------------------------------------------------------------------------- -- TABLE : DROIT -- ----------------------------------------------------------------------------- CREATE TABLE DROIT ( IDDROIT serial NOT NULL , IDADMIN int NOT NULL , NOM varchar(50) NULL , CONSTRAINT PK_DROIT...
true
bdd3d08148b083f7e8792f70e0d1aa55ae48981c
SQL
radtek/abs3
/sql/mmfo/bars/Table/ver_doc_maket.sql
WINDOWS-1251
3,521
2.8125
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/VER_DOC_MAKET.sql =========*** Run *** PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
c7011337c532531c30a8e9b63cf37919d51d085c
SQL
katzgrau/notes
/database-data/scheme-2009-09-10.sql
UTF-8
21,929
3.375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 2.11.6 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Sep 10, 2009 at 11:39 PM -- Server version: 5.0.51 -- PHP Version: 5.2.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `notes` -- -- -------------------------------------------------...
true
433d5b1f06b8489db63cfcc3bc2411171e4ba6e7
SQL
gilbertog07/CodeSamplesGilbertoG
/Oracle/PLSQL_Examples/creating_xmlquery.sql
UTF-8
661
2.515625
3
[]
no_license
DECLARE queryCtx dbms_xmlquery.ctxType; result CLOB; BEGIN -- set up the query context queryCtx := dbms_xmlquery.newContext( 'SELECT codigo_cliente "EMP_NO" , nombres "NAME" , primer_apellido "DEPT_NO" FROM mg_clientes WHERE codigo_cliente = 390' ); dbms_xmlquery.setRow...
true
379876e35a22ecea88537b15efcc8f7e240e88c3
SQL
Nico2P/P4
/Config/blog.sql
UTF-8
4,390
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.1 -- https://www.phpmyadmin.net/ -- -- Client : localhost:3306 -- Généré le : Mar 12 Septembre 2017 à 21:21 -- Version du serveur : 5.6.34 -- Version de PHP : 7.1.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
72faa411de8d294ea5e1725c2fa5b1b1c42104bf
SQL
victormruiz/ASIR
/BD2/hipódromo/Fase 2/oracle.sql
UTF-8
25,756
3.5
4
[]
no_license
-- Creación de tablas create table jockeys ( DNI VARCHAR2(9), Nombre VARCHAR2(25), Peso NUMBER(3, 1), Altura VARCHAR2(3), Telefono VARCHAR2(9), constraint pk_jockeys PRIMARY KEY(DNI), constraint uu_tlfj UNIQUE(Telefono), constraint ck_dni CHECK((REGEXP_LIKE(DNI, '[0-9]{8}[A-Z]')) OR (REGEXP_LIKE(DNI...
true
5ec54f3d520d30dabc872a9d9d9ef48f9b198bfa
SQL
anjingbin/starccm
/postgresql/src/test/regress/sql/float8.sql
UTF-8
2,990
3.46875
3
[ "PostgreSQL", "BSD-2-Clause" ]
permissive
-- -- FLOAT8 -- CREATE TABLE FLOAT8_TBL(f1 float8); INSERT INTO FLOAT8_TBL(f1) VALUES ('0.0'); INSERT INTO FLOAT8_TBL(f1) VALUES ('1004.30'); INSERT INTO FLOAT8_TBL(f1) VALUES ('-34.84'); INSERT INTO FLOAT8_TBL(f1) VALUES ('1.2345678901234e+200'); INSERT INTO FLOAT8_TBL(f1) VALUES ('1.2345678901234e-200'); SELE...
true
c2619c0d3bd009951762bf90c5292bf12911860e
SQL
kentsang45/sqlStudy
/1/1-3-2.sql
UHC
142
2.84375
3
[]
no_license
-- NULL ϱ (NULL̸ , ׸ ȸ) SELECT EMP_NAME FROM TEMP WHERE NVL(HOBBY, '') = '';
true
a1d04def15217d8c11a06d63e9e1cebb23550084
SQL
tedddy/ying
/proc/d1_TMPL/proc_s_xts_adj_sma_amount120_d1.sql
UTF-8
3,187
3.5625
4
[]
no_license
-- start: 13:29 2015-11-02 `s_xts_adj_sma` `amount120` d1 end: update d1 of field amount120 for table `s_xts_adj_sma` -- -- going to replace `tableTMPL` with `s_xts_adj_sma`, `idTMPL` with `ids`, `dtTMPL` with `dt`, `fieldTMPL` with `amount120` -- save file proc_tableTMPL_idTMPL_dtTMPL_fieldTMPL_d1.sql as proc_s_xt...
true
0914625cdcd657df749d85722c110f87ac4cb8d0
SQL
pantczak/SudokuFx
/Sql_Scripts/sudoku.sql
UTF-8
345
2.921875
3
[]
no_license
CREATE DATABASE Sudoku; USE Sudoku; CREATE table SudokuBoards( savename varchar(15) NOT NULL, board varbinary(max), PRIMARY KEY (savename) ); INSERT INTO SudokuBoards VALUES ('Tester Baz', 7312); SELECT * FROM SudokuBoards; DELETE FROM SudokuBoards WHERE savename = 'Tester Baz'; SELECT * FROM SudokuBo...
true
1cad7f7428f38dc4f3c5dac7f6eff47b3bf7af53
SQL
wf-oadenaike/TestProject
/TestDBProject/Organisation/Tables/BrokerAttestation.sql
UTF-8
1,799
2.9375
3
[]
no_license
CREATE TABLE [Organisation].[BrokerAttestation] ( [BrokerAttestationId] INT IDENTITY (1, 1) NOT NULL, [Year] VARCHAR (10) NOT NULL, [BloombergId] VARCHAR (40) NULL, [BrokerServiceType] ...
true
dc67c0355896f32444363833c5b31501e10831e0
SQL
rpizarrog/Taller-de-BD-MySql
/boutique/argegar registros a tablas de boutique.sql
UTF-8
3,561
3.265625
3
[]
no_license
# AGREGAR REGISTROS use boutique; # colonias insert into colonias (colonia, nombre, cpostal) values (1, "CENTRO", 34000); insert into colonias (colonia, nombre, cpostal) values (2, "INSURGENTES", 34090); insert into colonias (colonia, nombre, cpostal) values (3, "2 DE SEPTEMBRE", 34830); insert into...
true
74e98931adb9073fabe03cf79dae18a1a4920ab0
SQL
marcwright/WDI_ATL_1_Instructors
/REPO - DC - Students/w03/d02/Matt/hw_models/photo_manager.sql
UTF-8
593
3.3125
3
[]
no_license
CREATE TABLE photographers ( id serial PRIMARY KEY, name varchar(100) NOT NULL, password varchar(80) NOT NULL ); CREATE TABLE albums ( id serial PRIMARY KEY, title varchar(100) NOT NULL, description varchar(9000), slug varchar(120) NOT NULL UNIQUE, permission boolean, REFERENCES tags(id) ); CREATE T...
true
cccfe25e292b556248389f01a2b78d5d9fe23af3
SQL
imhenoch/bd_stuff
/class/02_11_inheritance.sql
UTF-8
1,575
3.46875
3
[]
no_license
create database ejemplo; create user usuario with password 'pass'; grant all privileges on database ejemplo to usuario; create table pelicula( id_pelicula serial primary key, pelicula varchar(100), duracion int, sinopsis varchar(100), id_genero int, id_clasificacion int, id_idioma int, ...
true
2539d1d67a09dc4eaa0b1682f3ba819ddfd1b0da
SQL
ge-xin/585-1
/Q5_v2.sql
UTF-8
453
3.90625
4
[]
no_license
-- Database: MySQL 5.7.17 CREATE TABLE `menu` ( `dish` varchar(45) NOT NULL, PRIMARY KEY (`dish`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `chef_skills` ( `chef` varchar(45) NOT NULL, `dish` varchar(45) NOT NULL, PRIMARY KEY (`chef`,`dish`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; select chef from c...
true
6fa45aaa1de843e29b042ec8ca06c5657a464e0c
SQL
BlueButterflies/PHP-Web-Development-Basics
/Database Relations and Design - Exercise/Employee Summary.sql
UTF-8
368
3.90625
4
[]
no_license
USE soft_uni; SELECT e.employee_id, CONCAT (e.first_name, ' ', e.last_name) AS employee_name, CONCAT(em.first_name, ' ', em.last_name)AS manager_name, d.name AS department_name FROM employees AS e INNER JOIN employees AS em ON e.manager_id = em.employee_id INNER JOIN departments AS d ON e.department_id = d.de...
true
67a346a3acc93a3d68f475febaef0e07a6e1f066
SQL
huuquynh142/fashion_store.vn
/database/fashion_store.sql
UTF-8
5,156
3.34375
3
[]
no_license
-- -------------------------------------------------------- -- Host: localhost -- Server version: 5.7.17-log - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 9.4.0.5125 -- --------------------------------------------------------...
true
635540954308005297e511b312b157dbe0b775b8
SQL
epiii/sister
/shared/db/@tables/aka_semester.sql
UTF-8
931
3.046875
3
[]
no_license
# Host: localhost (Version: 5.6.20) # Date: 2015-01-29 04:51:26 # Generator: MySQL-Front 5.3 (Build 4.187) /*!40101 SET NAMES utf8 */; # # Structure for table "aka_semester" # DROP TABLE IF EXISTS `aka_semester`; CREATE TABLE `aka_semester` ( `replid` int(10) unsigned NOT NULL AUTO_INCREMENT, `nama` varchar(5...
true
a448085295a52e791274cc487b0b9a69cc1139dd
SQL
Farhat-Lamisa-Rahman/Game-Card-Buy-Sell
/Code/database/cse-482.sql
UTF-8
5,058
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 17, 2021 at 05:38 PM -- 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
1b773305be3eb95288d92cd81fc03b1fe7c9ff0f
SQL
jstiago/sql
/tools/spool_table_definitions.sql
UTF-8
1,534
2.921875
3
[]
no_license
BEGIN DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'STORAGE',false); DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'PARTITIONING',false); DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'SEGMENT_ATTRIBUTES',false); DBMS_METADATA.SET_TRANSFORM_PARAM(DBM...
true
f51da442ed5824c465ce3ba8b8f39fc9447732db
SQL
rmontg84/SQL
/Jeremy SQL problem 4.sql
UTF-8
1,516
3.65625
4
[]
no_license
----CREATE TABLE #MyResults (NumberofLetters int, Po_CropYear int); ----Insert into #MyResults (NumberofLetters, Po_CropYear) ----Select Count (*) as num, Po_CropYear ----From tblAccountingLetterHistory join tblPolicies ----on tblAccountingLetterHistory.Al_PolicyID = tblPolicies.Po_ID ----Group by Al_PolicyID, Po_Crop...
true
891accc6f50557cd8a17a67ff679de7b291afc1e
SQL
viszi/codes
/CodeWars/7kyu/SQL/015-sql-with-sailor-moon-thinking-about-joins-dot-dot-dot.sql
UTF-8
847
3.65625
4
[ "MIT" ]
permissive
-- https://www.codewars.com/kata/5ab7a736edbcfc8e62000007 -- Practise some SQL fundamentals by making a simple database on a topic you feel familiar with. Or use mine, populated with a wealth of Sailor Moon trivia. -- Return a results table - sailor_senshi, real_name, cat and school - of all characters, containing each...
true
9f998c3339fa61c200d16103d79861d92ba0e2d0
SQL
tonussi/data-mart-video-locadora
/datawarehouse_videoteca/models/raw/raw_locadora_distribuidores.sql
UTF-8
205
2.609375
3
[]
no_license
with source as ( select * from {{ source('datawarehouse_videoteca', 'locadora_distribuidores') }} ), raw_locadora_distribuidores as ( select * from source ) select * from raw_locadora_distribuidores
true
272df58a47f6b9c21cade8d0abd7f9206ce8061c
SQL
VictorChin/AdvancedDevAndTuning
/PLSQLSamples/tbfs.rw/body.sql
UTF-8
28,421
3.21875
3
[]
no_license
connect / as sysdba; create or replace package body tbfs as /* * Lookup store features (see dbms_dbfs_content.feature_XXX). Lookup * store id. * * A store ID identifies a provider-specific store, across * registrations and mounts, but independent of changes to the store * contents....
true
6809a429f41ebf9c62a48ccb7ba3569c207d6bce
SQL
NeverLAN-CTF/r00tz_forgotThePass2
/other/db.sql
UTF-8
2,544
3.765625
4
[]
no_license
-- Database: blog -- Table structure for table `users` -- Table structure for table `posts` -- NeverLAN CTF <info@neverlanctf.com> -- Author : Zane Durkin -- Create user for web CREATE USER 'blog'@'localhost' IDENTIFIED BY '<password_web>'; CREATE USER 'blog'@'%' IDENTIFIED BY '<password_web>'; GRANT SELECT ON blog.* ...
true
66c8aee3546a278f5cd556d827b2d43af4578cfb
SQL
szakalwarszawa/aktywny_dyrektor
/setup/13_poprawic_wnioski_ibi.sql
UTF-8
522
2.578125
3
[ "MIT", "BSD-3-Clause" ]
permissive
update wniosek_editor set samaccountname = 'grzegorz_bialowarczu' where wniosek_id IN ( select id from wniosek where status_id in (select id from wniosek_status where nazwaSystemowa = '04_EDYCJA_IBI') ) and deletedAt is null; insert into wniosek_viewer(wniosek_id, samaccountname, deletedAt) select wniosek_id, 'gr...
true
4ee2a919039129a9ef46aec0dc51fb41dbd51f75
SQL
danz50of/DZCommandLibrary
/SQL/Tax_Code_Qry.sql
UTF-8
515
3.40625
3
[]
no_license
select A.CUSTOMER_ID, A.LIABILITY_TYPE, B.DATE_DEL, C.FEE_CODE from customer_info_vat A, CUST_ORD_CUSTOMER_ENT B, DELIVERY_FEE_CODE C where A.liability_type = 'TAX' AND A.CUSTOMER_ID = B.CUSTOMER_ID AND A.CUSTOMER_ID = C.IDENTITY AND C.FEE_CODE <> ' ' ORDER BY A.CUSTOMER_ID SELECT * FROM DELIVERY_FEE_CODE WHERE ID...
true
7a52d080c551383f7643c99f906e2b5209498442
SQL
LouLeBlanc/spring-mvc
/src/main/resources/sql/ddl.sql
UTF-8
306
2.609375
3
[]
no_license
CREATE USER IF NOT EXISTS 'prospring5' IDENTIFIED BY 'prospring5'; DROP DATABASE IF EXISTS publishing_mvc; CREATE SCHEMA publishing_mvc; GRANT ALL PRIVILEGES ON publishing_mvc.* TO 'prospring5'; FLUSH PRIVILEGES; /* Clarify timezone in case of java.sql.SQLException */ SET GLOBAL time_zone = '+5:00';
true
6f279f50eb5c7d596e129b880d95df2c4765ef56
SQL
ashokforgithub/ETLTool
/DBScripts/hksrctrgmap.sql
UTF-8
859
3.234375
3
[]
no_license
-- DROP SCHEMA hksrctrgmap; CREATE SCHEMA hksrctrgmap AUTHORIZATION postgres; -- Drop table -- DROP TABLE hksrctrgmap."SrcTrgFldMapping"; CREATE TABLE hksrctrgmap."SrcTrgFldMapping" ( "fldMappingId" bigserial NOT NULL, "trgFldId" int8 NOT NULL, "trgFldName" varchar(30) NOT NULL, "srcFldId" int8 NOT NULL, "srcF...
true
848f321bc84c33b331e9286d740220cf606861ae
SQL
FRTYZ/Photo-Upload-Feature-CRUD-Operation-with-PHP-MYSQL-PDO
/database.sql
UTF-8
2,017
3.25
3
[]
no_license
-- -------------------------------------------------------- -- Sunucu: 127.0.0.1 -- Sunucu sürümü: 10.4.19-MariaDB - mariadb.org binary distribution -- Sunucu İşletim Sistemi: Win64 -- HeidiSQL Sürüm: 11.2.0.6289 -- -----------------------------------------------...
true
a5df05d21dd9e8df758e51ef18a763cf2f7bdfd8
SQL
Wipersee/db_second_lab
/sql/V6__Inserting_student_data.sql
UTF-8
873
3.15625
3
[]
no_license
INSERT INTO Student( student_id, Birth, SexTypeName, ExamYear, RegTypeName, ClassProfileName, ClassLangName, region_id, school_id) SELECT re...
true
846058131100309644ccb1c524cb12ef7512d0cb
SQL
DnsZhou/Individual-Project-on-Enterprise-Middleware
/src/test/resources/scripts/import.sql
UTF-8
2,522
3.25
3
[ "Apache-2.0" ]
permissive
-- -- JBoss, Home of Professional Open Source -- Copyright 2014, Red Hat, Inc. and/or its affiliates, and individual -- contributors by the @authors tag. See the copyright.txt in the -- distribution for a full listing of individual contributors. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- y...
true
b96fc667603b2e860100054e3c830f33d6bb05de
SQL
TomekKasprzycki/warsztat2krkw03
/sql/db.sql
UTF-8
818
3.828125
4
[]
no_license
create database warsztat2krkw03 charset utf8mb4 collate utf8mb4_unicode_ci; CREATE TABLE users( id int AUTO_INCREMENT, username VARCHAR(255) UNIQUE NOT NULL, email VARCHAR(255) UNIQUE NOT NULL, password VARCHAR (255) NOT NULL, PRIMARY KEY (id) ); ALTER TABLE users ADD groupID int; CREATE TABLE groupsTable( id int AU...
true
dec1beca9f22261dfea2c60e9ff0ccc9679f927e
SQL
lochmueller/tagger
/ext_tables.sql
UTF-8
456
3.09375
3
[]
no_license
# # Table structure for table 'tx_tagger_tag_mm' # CREATE TABLE tx_tagger_tag_mm ( uid int(11) NOT NULL auto_increment, uid_local int(11) unsigned DEFAULT '0' NOT NULL, uid_foreign int(11) unsigned DEFAULT '0' NOT NULL, tablenames varchar(100) DEFAULT '' NOT NULL, sorting int(11) unsigned DEFAULT '0' NOT NULL, so...
true
0346e2d5f097b3c46b25c778e41cc6bacfee3286
SQL
Maralysa/homework4
/build/web/sql/homework4.sql
UTF-8
432
2.875
3
[]
no_license
DROP DATABASE IF EXISTS livelaughlove; CREATE DATABASE livelaughlove; USE livelaughlove; CREATE TABLE users(firstName VARCHAR(40), lastName VARCHAR(40), email VARCHAR(40) NOT NULL PRIMARY KEY, bookTitle VARCHAR(100), dueDate DATE); INSERT INTO users VALUES('Dave', 'Powell', 'dpowell2...
true
bb9b68fc5f8efb40707c1eed1242643634579df4
SQL
JoseMorente98/Web-API-University-Club
/University Club DB/DDL.sql
UTF-8
11,963
4.15625
4
[]
no_license
-- DROP DATABASE UniversityClub; DROP DATABASE IF EXISTS UniversityClub; CREATE DATABASE UniversityClub; USE UniversityClub; CREATE TABLE TipoUsuarios( TipoUsuarioID INT AUTO_INCREMENT NOT NULL, nombre VARCHAR(30) NOT NULL, PRIMARY KEY(TipoUsuarioID) ); CREATE TABLE Usuarios( UsuarioID INT AUTO_INCREMENT NOT NUL...
true
d9d7aa59406d82354f0f35176ce3213d8517d649
SQL
leoluzh/shopping-microservices-with-spring-cloud
/order-service/src/main/resources/db/migration/V2__CREATE_TABLE_ORDERS_ITEMS.sql
UTF-8
322
3.390625
3
[]
no_license
CREATE TABLE orders_items ( id BIGSERIAL PRIMARY KEY , sku TEXT NOT NULL , price DECIMAL(12,4) NOT NULL , quantity INTEGER NOT NULL , item_id BIGINT NOT NULL , CONSTRAINT fk_orders FOREIGN KEY (item_id) REFERENCES orders(id) ON DELETE CASCADE )...
true
9445dc39f40455b22c0a8d0c414fa2a71fe4cc9a
SQL
ggkanas/softeng19b
/DB/AggregatedGenerationPerType.sql
UTF-8
2,490
3.4375
3
[]
no_license
CREATE TABLE AggregatedGenerationPerType ( Id int(11) NOT NULL AUTO_INCREMENT, EntityCreatedAt timestamp(6) NOT NULL, EntityModifiedAt timestamp(6) NOT NULL, ActionTaskID bigint(20) NOT NULL, Status varchar(2), Year int(11) NOT NUL...
true
24ea4e2726a68a4df4845af613e1fe17544bb56d
SQL
FinOCE/CP2404
/Week 9/queries/37.sql
UTF-8
165
2.90625
3
[]
no_license
SELECT AU_ID, BOOK.BOOK_NUM, BOOK_TITLE, BOOK_SUBJECT FROM BOOK JOIN WRITES ON BOOK.BOOK_NUM = WRITES.BOOK_NUM ORDER BY BOOK.BOOK_NUM, AU_ID;
true
0e5d327e45be5734603dbd8e5b09658affa320fe
SQL
Pelozo/LabV_Final
/BaseDeDatos/indexes.sql
UTF-8
1,369
4.21875
4
[]
no_license
-- indice por id de residencia CREATE INDEX idx_measurements_residence ON measurements (residence_id) USING HASH; -- indice por fecha de la medicion CREATE INDEX idx_measurements_date ON measurements (`date`) USING BTREE; -- esto demuestra que el indice existe y puede ser utilizado EXPLAIN SELECT * FROM measuremen...
true
52d3cc0bf74b548057531a983158a4c80c450f03
SQL
xkx0717/rude-java
/project-practice/money/sql/money.sql
UTF-8
1,013
3.1875
3
[ "Apache-2.0" ]
permissive
/* Navicat Premium Data Transfer Source Server : 本地 Source Server Type : MySQL Source Server Version : 50725 Source Host : localhost:3306 Source Schema : money Target Server Type : MySQL Target Server Version : 50725 File Encoding : 65001 Date: 27/01/2021 14:04:05 */...
true
a68d0199d9d374f4502496e19b5e67b3ee11fdbf
SQL
wehrwolf217/NIXEducation_TRAINEE-Python.-Level-2
/task19(sqlQuery).sql
UTF-8
810
3.765625
4
[]
no_license
--Написать представление --для таблицы products, --для таблиц order_status и order, --для таблиц products и category CREATE VIEW count_prod (cat_id, count_prod) AS SELECT products.category_id, COUNT(*) FROM products GROUP BY category_id; CREATE VIEW ord_id_stat_name (order_id, carts_cart_id, status_name) AS SEL...
true