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
649d8b7295c18a084f7f6d085673385359cf4616
SQL
SamCosta1/Databases-exercise
/ex4/1g.SQL
UTF-8
1,448
3.359375
3
[]
no_license
-- 1g ------ SHOW ERRORS TRIGGER check_item_value SET PAGES 999; SET LONG 999999; COLUMN "Picture" FORMAT A7; CREATE OR REPLACE TRIGGER check_item_value AFTER INSERT OR UPDATE ON itemType DECLARE min_price float DEFAULT 0; max_price float DEFAULT 0; BEGIN SELECT MIN(pr...
true
b69dfe2308d8264d80e30d3c7fefbb94d714bf2c
SQL
DmitriyYugai/job4j_design
/chapter_003/src/main/sql_scripts/group_agregate.sql
UTF-8
2,228
4.125
4
[]
no_license
create table devices( id serial primary key, name varchar(255), price float ); create table people( id serial primary key, name varchar(255) ); create table devices_people( id serial primary key, device_id int references devices(id), people_id int references people(id) ); --2. Заполн...
true
62710e26d6ec0ae061f6c40cbcc86649e1450bca
SQL
killerofswan/ThaimungPHP
/thaimung.sql
UTF-8
9,983
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 30, 2013 at 01:42 PM -- Server version: 5.5.27 -- PHP Version: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
937630f122f93dd698b5a7b39ae6f383a0ab2677
SQL
adsy2010/Ticket
/SQL/printer.sql
UTF-8
251
2.90625
3
[]
no_license
CREATE TABLE `printer` ( `id` int(11) NOT NULL AUTO_INCREMENT, `make` varchar(64) DEFAULT NULL, `model` varchar(64) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `printer_id_uindex` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8
true
cb7a4a28ccbfd9724a10f5a5c0216f79fac1aba2
SQL
bartoszmaleta/codeWars
/src/sql/kyu7/Simple Fun #74: Growing Plant.sql
UTF-8
206
2.890625
3
[]
no_license
select * from growing_plant; SELECT id, CASE WHEN desired_height <= up_speed THEN 1 ELSE CEIL((desired_height - up_speed)::decimal / (up_speed - down_speed))::int + 1 END AS num_days FROM growing_plant
true
bd33a4b2fb06e41c274a4883dfd235c0aa2db021
SQL
umurgdk/soundlines
/migrations/20170808085109_add_reading_tables/up.sql
UTF-8
667
2.53125
3
[]
no_license
create table wifi_readings ( id serial primary key, user_id serial not null, created_at timestamptz not null, ssid varchar not null, level real not null, frequency real not null ); create table sound_readings ( id serial primary key, user_id serial not null, created_...
true
5429eccddd64b2979b6dc243bb6783fec815bacc
SQL
ZJiaYi/ITMO_ICT_DataBases_2020
/students/k3240/Komsomolenko/lab_3/Labour_exchange.sql
UTF-8
18,453
3.625
4
[]
no_license
-- Database: postgres -- DROP DATABASE postgres; CREATE DATABASE postgres WITH OWNER = postgres ENCODING = 'UTF8' LC_COLLATE = 'C' LC_CTYPE = 'C' TABLESPACE = pg_default CONNECTION LIMIT = -1; COMMENT ON DATABASE postgres IS 'default administrative connection database'; -- SCHEMA: L...
true
4e7949a999faa849d66d4c8e7a02c7bc7106c880
SQL
pauldunkirk/wk5_full
/createDB.sql
UTF-8
333
3.25
3
[]
no_license
CREATE TABLE emp ( id SERIAL PRIMARY KEY, firstname VARCHAR(20), lastname VARCHAR(20), idnumber NUMERIC(4), title VARCHAR, salary NUMERIC (6) DEFAULT 0 ); INSERT INTO emp (firstname, lastname, idnumber, title, salary) VALUES ('Paul', 'Dunkirk', 1234, 'boss-man', 350000); SELECT * FROM emp; SELECT round(SUM(salary)/1...
true
dcde1a61ad53bac2e47075b809325a810309e941
SQL
Ututi/ututi
/src/ututi/migration/101_group_invitation_constraint_downgrade.sql
UTF-8
179
2.53125
3
[]
no_license
alter table group_invitations drop constraint group_invitations_group_id_key; alter table group_invitations add constraint group_invitations_group_id_key unique(group_id, email);
true
08d4e907d70bb40202d70aeb869be727a2c75b13
SQL
e23z/wazausky-store
/dump.sql
UTF-8
2,387
3.390625
3
[ "MIT" ]
permissive
-- -------------------------------------------------------- -- Servidor: 127.0.0.1 -- Versão do servidor: 5.6.17 - MySQL Community Server (GPL) -- OS do Servidor: Win64 -- HeidiSQL Versão: 9.3.0.4984 -- -------------------------------------------------------...
true
9ffb7f463549d114c526240ae0ea21c63eefbc0d
SQL
negrisaco/entrega-tp-vd-backend
/src/sql/database.sql
UTF-8
7,704
3.53125
4
[]
no_license
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; DROP DATABASE IF EXISTS universidad; CREATE DATABASE universidad CHARACTER SET utf8mb4; USE universidad; CREATE TABLE materia ( codigo_materia INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, nombre VARCHAR(100) NOT NULL, legajo_pr...
true
71c37c1e4ae64fb6d71c297e8e4b1c7ca548a513
SQL
thomaskrause/cora
/src/db/coradb-data.sql
UTF-8
1,895
2.921875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- -- Copyright (C) 2015 Marcel Bollmann <bollmann@linguistics.rub.de> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy of -- this software and associated documentation files (the "Software"), to deal in -- the Software without restriction, including without limitation the rights to -...
true
9ffd7dac4a4acf53a4aea02f8436529a00dd1525
SQL
Genskill2/03-bootcamp-sql-sunilbhukya
/query2.sql
UTF-8
93
2.859375
3
[]
no_license
select b.title,p.name from books b, publisher p where b.publisher=p.id and p.country='UK';
true
1956c4ddb523cccc52c73f386d310e03f8f0a578
SQL
fzy2264664169/springboot
/400service/src/main/resources/sql/create/request.sql
UTF-8
3,234
3.671875
4
[]
no_license
--3请求管理表 关联的外部表ht_attach,ht_sys_user drop table if exists request_status; create table request_status( status_id int(1) not null auto_increment comment '请求状态表id', status_description varchar(16) default null comment '状态描述', primary key(status_id) )engine = InnoDB comment '请求状态表' default charset=utf8; drop tabl...
true
788bbfc37023832c7801ebb6ec469e14974bad2b
SQL
mjkhan/crescendo
/Crescendo/database/mysql/crescendo-site.sql
UTF-8
8,582
3.59375
4
[]
no_license
use crsnd_site; show tables; drop table if exists crsnd_dummy; create table crsnd_dummy ( dummy varchar(5) null ) comment='dummy table'; insert into crsnd_dummy (dummy) values('dummy'); drop table if exists crsnd_permission; create table crsnd_permission ( site_id ...
true
e38e9b3da96fd439e7489b4e9e6053ab22e6122f
SQL
Brightscout/mattermost-triggers
/mysql/mm-set-user-defaults.sql
UTF-8
1,353
3.125
3
[ "MIT" ]
permissive
DROP TRIGGER IF EXISTS mm_on_newuser; DELIMITER // CREATE TRIGGER mm_on_newuser AFTER INSERT ON `Users` FOR EACH ROW BEGIN IF (SELECT COUNT(*) FROM `Preferences` WHERE UserId=NEW.Id AND `Category`='theme') = 0 THEN INSERT INTO `Preferences` (`UserId`,`Category`,`Name`,`Value`) VALUES (NEW.Id, 'theme', '', '{"aw...
true
d95307bda47ca87231beecb93d9b8087aff128ea
SQL
shaun-howarth/COMP2003-2020-X
/db/stored-procedures/create-question.sql
UTF-8
422
2.84375
3
[]
no_license
CREATE DEFINER=`COMP2003_X`@`%` PROCEDURE `createQuestion`( IN question VARCHAR(1000), IN qCharLim INTEGER, IN qType VARCHAR(25) ) BEGIN DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN ROLLBACK; SELECT 'SQLException has occurred. Please try again.'; END; INSERT INTO QUESTION (question, question_charLim, quest...
true
dec0910a92c5561399bdd925c1e70ad0d62950e7
SQL
redpulse96/Gateway
/db-scripts/access_token.sql
UTF-8
481
2.765625
3
[]
no_license
CREATE TABLE `access_token` ( `access_token_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `authorization` text, `expires_in` bigint(10) NOT NULL, `status` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRE...
true
d42fdc7ae9ffc13df2b9a7d6a26f47195b7dd54c
SQL
moutainhigh/ftc
/eif-ftc-service/src/test/resources/sql/20160712.sql
UTF-8
632
3.140625
3
[]
no_license
DROP TABLE IF EXISTS `t_ftc_outer_order_rel`; create table t_ftc_outer_order_rel ( id bigint(20) not null auto_increment comment '主键', outer_sys_no char(5) not null comment '外部业务系统号', outer_order_no char(32) not null default '1970-01-01 00:00:00' comment '外部订单号', biz_sys_no ...
true
8ad00632cfb4c7e30551c66e0f9bf1568cbd013a
SQL
radtek/lister
/src/database/lister.public.tasks_r.schema.sql
UTF-8
2,282
3.53125
4
[]
no_license
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = off; SET check_function_bodies = false; SET client_min_messages = warning; SET escape_string_warning = off; SET search_path = public, pg_catalog; -- -- Name: tasks_r; Type: VIEW; Schema: publi...
true
5639a98d8c0bb76a41736fd05a63fb063d5419c0
SQL
dabisrat/frameTrap
/src/server/dataBase/schema.sql
UTF-8
812
3.21875
3
[]
no_license
-- command line mysql.server {start|stop|restart|reload|force-reload|status} -- mysql -u root -p or mysql -u root -p < filePath -- show databases, describe tableName, drop database databaseName, source filePath CREATE Database frametrap; USE frametrap; CREATE TABLE characters ( Id int NOT NULL AUTO_INCREMENT, ...
true
917933c0d5fa1b7f2bd4fff32344a8d6211fad8c
SQL
chdtu-fitis/deanoffice-backend
/src/main/resources/db/migration/V32__create_user_roles_tabels.sql
UTF-8
763
3.46875
3
[]
no_license
create table roles( id SERIAL primary key, name varchar not null ); ALTER TABLE roles ADD CONSTRAINT uk_roles_name UNIQUE (name); create table users_roles( id SERIAL primary key, user_id integer NOT NULL, role_id integer NOT NULL ); ALTER TABLE users_roles ADD CONSTRAINT uk_users_roles UNIQUE (user_id, rol...
true
2a3d15886ba5c93bfe9fbb27016bcc960101cfc5
SQL
ErikUggeldahl/GGJ16
/GGJ16Flask/GGJ16Flask/schema.sql
UTF-8
1,851
3.859375
4
[]
no_license
drop table if exists players; drop table if exists games; drop table if exists rituals; drop table if exists ritual_players; create table players ( id integer primary key autoincrement, name text not null unique ); create table games ( id integer primary key autoincrement, name text not null ); create table ...
true
003c5d544a368f7a7ad3f2c18e540ba896d87236
SQL
mettlesolutions/coverage_determinations
/src/data/NCD/Cat1/WhiteCaneForUseBy aBlindPerson/whitecane.cql
UTF-8
883
3.0625
3
[ "Apache-2.0" ]
permissive
//White Cane For use by a blind person library WhiteCaneForusebyablindperson using FHIR include FHIRHelpers version '1.8' called FHIRHelpers //include otherLibrary version 'x.x' called otherLibrary //codesystem codeSystemName : 'OID' version 'x.x' //valueset valuesetName : 'OID' version 'x.x' codesystems{codeSystem1 ,...
true
2051a232bbbe693e799ab53dbd4da4c993d3210d
SQL
wyc192273/JAVA-000
/Week_08/sql_tools/new_sql.sql
UTF-8
25,833
2.6875
3
[]
no_license
create database user_test; use user_test; CREATE TABLE `user_0` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '自增主键id', `name` varchar(50) NOT NULL DEFAULT '' COMMENT '名称', `age` int NOT NULL DEFAULT 0 COMMENT '年龄', `created_at` timestamp NOT NULL DEFAULT CUR...
true
a708d573932015d73bb5cf26bb9b2bed3dfc559e
SQL
eurospent/eurospent
/1_population/finland/query.sql
UTF-8
918
3.9375
4
[ "MIT" ]
permissive
WITH base AS ( SELECT n.*, p.*, t.*, CASE WHEN p.lau = '946' THEN '1499910000' ELSE "AREA" END AS area_fix, CASE WHEN "LAU1_NAT_CODE" IS NULL THEN '152' ELSE "LAU1_NAT_CODE" END AS lau1_code, l.name AS lau1_name FROM "1_nuts" AS n LEFT JOIN "1_population" AS p ON p.shape_lau LIKE 'FI%' AND p.shape_la...
true
3290f5c79e9e8ec6f891acfe989d4858a338fc7e
SQL
qumino2/Git_Your_SQL
/SQL_Advanced_book_MICK/Ch1/1-10_Having子句又回来了/单重集合与多重集合的一般化.sql
UTF-8
145
2.765625
3
[]
no_license
--练习题 P1-10-1 select center from Materials2 group by center having count(distinct material || orgland) != count(material || orgland);
true
9fe7bb9fe83b9ba65fa6b3354147270fdc4b6663
SQL
brave-orange/GetCars
/cars.sql
UTF-8
1,087
2.796875
3
[ "ICU" ]
permissive
/* Navicat MySQL Data Transfer Source Server : 127.0.0.1_3306 Source Server Version : 50625 Source Host : 127.0.0.1:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50625 File Encoding : 65001 Date: 2019-04-27 12:51:21 */ SET FOREIGN_KEY_CHECKS=0; --...
true
1f989bb92e665a00f391739ab73d946d2a1484fa
SQL
danieljga/react_node_final_project_backend
/DB/node_react.sql
UTF-8
2,998
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 11, 2021 at 12:19 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
dab6e3eaf4956c96f24784964f6ae52a7e3e479a
SQL
kaushikgopal/cmusv
/db/development_structure.sql
UTF-8
71,770
3.15625
3
[]
no_license
-- -- PostgreSQL database dump -- SET statement_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 plpgsql WITH SCHEMA pg_cat...
true
13c0f3a498a588d2a87bcb1b8c4abf62970c9842
SQL
hafbau/lecture_notes
/assessment-exam-proctor/exams/exam-web-05sh/solutions/06.sql
UTF-8
687
4.03125
4
[]
no_license
-- ===================== -- -- QUESTION 06 (STRETCH) -- -- ===================== -- -- -- Similar to the previous question, except we want ALL books now: -- Fetch the id and isbn for ALL books, along with the name of the store they are assigned to -- Books that are out of stock should still be included, just like befor...
true
4bf193bb446946f029d25a98f28b6626be1cd719
SQL
eenfeeneet/tunr_express
/queries.sql
UTF-8
1,026
3.703125
4
[]
no_license
/* test queries */ \! echo "\nshow artists table\n"; \! echo "\nSELECT * FROM artists;" SELECT * FROM artists; /* \! echo "\nshow songs table\n"; \! echo "\nSELECT * FROM songs;" SELECT * FROM songs; */ \! echo "\nSHOW WHO STAYED IN {apartment_id=2 (Bukit Timah)} stayed\n"; \! echo "\nshow apartment name, host name...
true
395292d34a324bc3a5990d7af2467b10dd51ed0e
SQL
SixtyCapital/equity-primitives
/sixty_security_ts/cumulative_factors.sql
UTF-8
2,795
4.03125
4
[]
no_license
WITH splits AS ( SELECT * EXCEPT (p_split_date), p_split_date AS date FROM `factset_prices_v2.fp_basic_splits`), dividends_spinoff AS ( -- these dividends adjust the price, as though they're reinvested -- e.g. if the company hits zero the next day, its return will be zero even with a large v...
true
d2d35c2c0f3ab50d0ea951f1403b1d31a59be453
SQL
char0n/datasapiens-test
/postgres-schema.sql
UTF-8
911
3.9375
4
[]
no_license
DROP DATABASE IF EXISTS datasapiens_test; CREATE DATABASE datasapiens_test; \connect datasapiens_test; CREATE SEQUENCE categories_id_seq; CREATE TABLE categories ( id integer PRIMARY KEY DEFAULT nextval('categories_id_seq'), name varchar(20) UNIQUE NOT NULL ); CREATE SEQUENCE users_id_seq; CREATE TABLE users ( ...
true
98d08bab3bb7f8c936ec4881a32bba408b0d96bc
SQL
trofiv-IFMO/IFMO-Databases
/Лабораторная 5/Запросы для защиты/SQLQuery4.sql
UTF-8
245
3.78125
4
[]
no_license
SELECT VendorID, COUNT (ProductID) FROM Purchasing.ProductVendor GROUP BY VendorID HAVING COUNT (ProductID) > (SELECT COUNT (ProductID) FROM Purchasing.ProductVendor WHERE MaxOrderQty in (SELECT MAX (MinOrderQty) FROM Purchasing.ProductVendor ))
true
f1a1cec84dd4c3f7bdd5e3da9f3c1494b119d4ba
SQL
yessenaki/phpfw
/phpfw.sql
UTF-8
1,858
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Фев 22 2019 г., 14:43 -- Версия сервера: 5.7.23 -- Версия PHP: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
cfb8662c37c03831f7cf9adae47b4865289fb07b
SQL
mcl1990/cmsAir
/inicio_airlink.sql
UTF-8
8,183
2.671875
3
[ "MIT" ]
permissive
INSERT INTO users(name,email,password,perfil_id) VALUES ('Admin','admin@admin.com','$2y$10$bWVYJMRZgleJ5jcst8JI5OzqHsYmmOIY8/9N7Q6A0YNxT6/IgiQ3m',1), ('Editor','foo@bar.com','$2y$10$bWVYJMRZgleJ5jcst8JI5OzqHsYmmOIY8/9N7Q6A0YNxT6/IgiQ3m',2); -- INSERT INTO audios(audio) VALUES ('MP3'),('AAC'); -- INSERT INTO categoria...
true
2a1c61729c25918096276d5491c736975c0578fb
SQL
GooairLeon1/Pausenmodell
/Datenbank.sql
UTF-8
3,739
3.53125
4
[]
no_license
DROP DATABASE IF EXISTS pausenmodell; CREATE DATABASE pausenmodell; USE pausenmodell; create table Tbl_Lehrer ( L_Kuerzel varchar(5), PRIMARY KEY (L_Kuerzel), L_Name varchar(20), L_Passwort varchar(20) ) ENGINE = INNODB; create table Tbl_Klassen ( K_ID int(10) NOT ...
true
e72c5bf94bc49c42251e41388b11a7fbe64be26c
SQL
AhmadJaber/postgresql-bootcamp-references
/section 8/queries/persons.sql
UTF-8
2,050
4.3125
4
[ "MIT" ]
permissive
-- Modifying table structures, add constraints -- adding columns CREATE TABLE persons ( person_id SERIAL PRIMARY KEY, first_name VARCHAR(20) NOT NULL, last_name VARCHAR(20) NOT NULL ); ALTER TABLE persons ADD COLUMN age INT NOT NULL; ALTER TABLE persons ADD COLUMN nationality VARCHAR(20) NOT NULL, ADD COLUMN email...
true
2f6d56c84ebdcc69e3ecc40813744aa7b39aaf82
SQL
renatoredes/api
/src/main/resources/db/migration/V04__criar_e_registrar_usuarios_e_permissoes.sql
UTF-8
2,252
3.71875
4
[ "MIT" ]
permissive
CREATE TABLE usuario ( codigo serial PRIMARY KEY, nome VARCHAR(50) NOT NULL, email VARCHAR(50) NOT NULL, senha VARCHAR(150) NOT NULL ); CREATE TABLE permissao ( codigo serial PRIMARY KEY, descricao VARCHAR(50) NOT NULL ) ; CREATE TABLE usuario_permissao ( codigo_usuario integer NOT NULL, codigo_permissao inte...
true
1a939ed19a4586fffc853159ac0abd7652cdaf99
SQL
TakiyaHideto/backup
/sql_ele/temp_food_tag_classification.sql
UTF-8
2,824
3.421875
3
[]
no_license
DROP TABLE temp.temp_food_tag_classification; CREATE TABLE temp.temp_food_tag_classification( key STRING, priority INT, tag STRING, flavor STRING, method STRING ) PARTITIONED BY (part STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' STORED AS TEXTFILE ; -- INSERT OVERWRITE TABLE temp.temp_food_tag_classificati...
true
251aaa7eeed8cfde256980bf4a5acee0285afd1f
SQL
pvorb/sokrates
/sokrates/src/main/resources/db/migration/V2018.03.24_1__page_and_tag.sql
UTF-8
900
3.90625
4
[ "Apache-2.0" ]
permissive
CREATE TABLE page ( id IDENTITY NOT NULL PRIMARY KEY, source_file_path VARCHAR NOT NULL UNIQUE, source_file_format VARCHAR(64) NOT NULL, url VARCHAR NOT NULL UNIQUE, title VARCHAR NOT NULL, created_at DATE NOT NULL, last_modified_...
true
f865e07b25f46cb94b911994b931abfa7e8f651e
SQL
JesperAxelsson/SeriousOrganizerLib
/migrations/2018-08-05-173713_create_files/up.sql
UTF-8
243
2.90625
3
[ "MIT" ]
permissive
-- Your SQL goes here CREATE TABLE files ( id INTEGER PRIMARY KEY NOT NULL, entry_id INTEGER NOT NULL, name TEXT NOT NULL, path TEXT NOT NULL, size BigInt NOT NULL, FOREIGN KEY(entry_id) REFERENCES entries(id) ON DELETE CASCADE );
true
b2071f59532d888a7f11afc545f4808c4ef5d95d
SQL
devigner/mysql-extract-record
/.docker/data/mysql/01.structure.sql
UTF-8
2,305
3.15625
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 5204 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.7.14) # Database: test-database # Generation Time: 2017-05-31 19:25:03 +0000 # *****************************************...
true
69841039edf0349e779b139c210127a8f141cec1
SQL
younggeun0/SSangYoung
/dev/query/date181101_pl/ifelse2.sql
UHC
1,096
3.765625
4
[]
no_license
-- , ǰ, Է¹޾ óϴ PL/SQLۼ -- 'Ư' Ǵ 'Ϲ' 쿡 α׷ Ǿ -- Ư ǰ ǰ 50%, Ϲݰ ǰ 30% Ͽ SET serveroutput ON SET verify OFF ACCEPT i_customer_grade PROMPT ' :' ACCEPT i_item PROMPT 'ǰ :' ACCEPT i_price PROMPT ' :' DECLARE customer_grade VARCHAR2(10); item VARCHAR2(30); price NUMBER; salePrice NUMBER; BEGIN cust...
true
1fee8f460b4dff9c0ca9af5adc286bb82a99a40d
SQL
ShaoxiongYuan/PycharmProjects
/2. Python高级软件开发技术/project_month02/electronic_dictionary/create_table.sql
UTF-8
441
2.90625
3
[]
no_license
create table words ( id int primary key auto_increment, word char(50) not null, meaning varchar(500), index (word) ); create table user ( id int primary key auto_increment, name varchar(30) not null, password char(20) not null ); create table history ( id int pri...
true
45a8fa8a4a226f4a1d49d0c03c9a1e95417bafcb
SQL
internetbuilder/apex
/plugins/rest-source/fixed-page-size/sample-application.sql
UTF-8
445,509
2.890625
3
[ "MIT", "UPL-1.0" ]
permissive
-------------------------------------------------------------------------------- -- Copyright (c) 2012, 2021 Oracle and/or its affiliates. -- -- Licensed under the Universal Permissive License v 1.0 as shown -- at https://oss.oracle.com/licenses/upl/ -- ----------------------------------------------------------------...
true
1c6ed7eb7c5d533db1008b1c5da911a505204312
SQL
shubham7272/python-flask-blogging_website
/codingthunder.sql
UTF-8
8,087
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 18, 2020 at 12:19 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
496da6b8e9b113dc5e3694fe5c1b472100cc54a3
SQL
YYMo/csc343automarker
/all/c4riabts/a2.sql
UTF-8
7,432
4.09375
4
[]
no_license
-- Add below your SQL statements. -- You can create intermediate views (as needed). Remember to drop these views after you have populated the result tables. -- You can use the "\i a2.sql" command in psql to execute the SQL commands in this file. -- Query 1 statements CREATE VIEW step1 AS SELECT c.cid c1id, c...
true
ea71b13736d51ecb6fb620ae01a26d28d1595eed
SQL
monobinab/RTS_ETLPipelines
/mongo/models/hive_models_tablecreate.sql
UTF-8
342
2.5625
3
[]
no_license
use real_time_scoring; drop table rts_msmmodels; create table rts_msmmodels ( modelid int, modelname varchar(50) ) row format delimited fields terminated by ',' lines terminated by '\n' stored as textfile tblproperties("skip.header.line.count"="1"); load data local inpath '/staging/modelname_modelid_mapping.csv' into...
true
3cf56f84dc2d5bc4e75717d8d5a62a86841b44c5
SQL
selossej/MySQL
/Exemples SQL/Chapitre_05 Les créations/04.UPDATE_avec_sous_requetes.sql
UTF-8
1,012
4.0625
4
[]
no_license
SELECT ClientId, COUNT(*) FROM Commande GROUP BY ClientId HAVING COUNT(*) > 100; SELECT * FROM Commande co JOIN (SELECT ClientId, COUNT(*) as cnt FROM Commande GROUP BY ClientId) AS cl ON co.ClientId = cl.ClientId WHERE cl.cnt > 100; UPDATE LigneCommandes SET Remise = 0.15 WHERE CommandeId IN ( SELECT CommandeId F...
true
9833239a6e09a95f8f5c6fd4696a64cd27f9dc3d
SQL
kirillne/FPTask
/blog/resources/migrations/20161110102311-users.up.sql
UTF-8
218
3.078125
3
[]
no_license
CREATE TABLE users (id INT PRIMARY KEY AUTO_INCREMENT NOT NULL, login VARCHAR(20) NOT NULL, password VARCHAR(255) NOT NULL, seed VARCHAR(255) NOT NULL); ALTER TABLE users ADD CONSTRAINT login_unique UNIQUE(login);
true
69f607836ea6dba64de8a70fd13db19a8f3a64c6
SQL
hitokey/twm-ecommerce
/estrutura.sql
UTF-8
618
2.703125
3
[]
no_license
CREATE TABLE tb_user( nome VARCHAR(40), sobrenome VARCHAR(100), email VARCHAR(100), senha VARCHAR(30)); CREATE TABLE tb_client( id INT AUTO_INCREMENT, nome VARCHAR(40), sobrenome VARCHAR(40), senha VARCHAR(40), cpf VARCHAR(10), cidade VARCHAR(50), rua VARCHAR(100),...
true
b4a69cf13b699e5fe915b88a87c2a84a54d331c1
SQL
RetaxMaster/StoredProcedures
/Scripts_DB/plat_survs/sp_p_set_usrplatsurvs_Create.sql
UTF-8
492
2.59375
3
[]
no_license
/* Crea una nueva plantilla de encuesta. */ /* DELIMITER $$ DROP PROCEDURE IF EXISTS sp_p_set_usrplatsurvs_Create$$ */ CREATE PROCEDURE sp_p_set_usrplatsurvs_Create ( IN titletemplatA VARCHAR (255), IN bdytemplatA TEXT, IN tipotemplatA TINYINT (1) ) BEGIN INSERT INTO tbl_tmplatsurvs ( titletemp...
true
18f8f6bc84da5023e5e571bbeb6f56aa12730ade
SQL
benimaru1/WoodArts
/sql/woodsart.sql
UTF-8
12,588
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 03, 2017 at 04:23 PM -- Server version: 10.1.22-MariaDB- -- PHP Version: 5.6.17-1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
true
2ef9e2fbe30bbfb44745629f3d0f3f6b2a7d770f
SQL
StrawSoul/motor-system
/script/sql/sys-dictionary.sql
UTF-8
978
2.53125
3
[]
no_license
CREATE TABLE `sys_dictionary` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) DEFAULT NULL, `code` varchar(100) DEFAULT NULL, `type` varchar(32), app_id varchar(32), auth_code varchar(64), description text, `version` int(11), create_time datetime, update_time datetime, create_by...
true
ab053a5a89d9bbe5b8b20e9b1fb9b67c90bc2549
SQL
ktbarr/TechElevator-Mod2
/Week1_Review/student-exercise/postgres/step-3.sql
UTF-8
3,221
4.34375
4
[]
no_license
-- CAMPGROUND TABLE ----------------------------------------------- -- select name and daily fee of all campgrounds SELECT name , daily_fee FROM campground; -- select name and daily fee of all campgrounds ordered by campground name SELECT name , daily_fee FROM campground ORDER BY name; ...
true
887062853dcb3a7b81b31a8f7390b5be6c3ac346
SQL
lromang/socailMediaMine
/dashboard/sql/db.sql
UTF-8
772
3.046875
3
[]
no_license
drop database if exists pictodash; create database pictodash; drop user if exists puser; create user puser with password 'test'; grant all privileges on database pictodash to puser; \c pictodash; set role puser; /* Usuarios */ drop table if exists usuarios cascade; create table usuarios( id serial primary key, ...
true
be99e30844952c15320196d97006c317eb59d10d
SQL
Nachtmahr91/db-public
/src/schema/CharacterXMasterLevel.sql
UTF-8
561
2.59375
3
[]
no_license
CREATE TABLE IF NOT EXISTS `CharacterXMasterLevel` ( `Character_ID` varchar(255) NOT NULL, `MLLevel` int(11) NOT NULL DEFAULT '0', `MLStep` int(11) NOT NULL DEFAULT '0', `StepCompleted` tinyint(1) NOT NULL DEFAULT '0', `ValidationDate` datetime DEFAULT NULL, `LastTimeRowUpdated` datetime NOT NULL DEFAULT '2...
true
462a7b7e945a7dfb8952dde863091b3350243509
SQL
sch3mati/photos-carousel-service
/schema.sql
UTF-8
886
4.03125
4
[]
no_license
DROP DATABASE IF EXISTS restaurant_photos; CREATE DATABASE restaurant_photos; -- Make sure we're using our `blog` database \c restaurant_photos; -- We can create our user table CREATE TABLE IF NOT EXISTS users ( id SERIAL PRIMARY KEY, username VARCHAR(50), firstname VARCHAR(15), lastname VARCHAR(15), ava...
true
63de209f5af6cdd2bdc72834471c800bc65290c3
SQL
christinium/AKI
/SQL/cohort.sql
UTF-8
2,561
4.09375
4
[]
no_license
SET search_path TO mimiciii; with order_icu as ( select icu.* ,row_number() over(partition by icu.subject_id order by icu.admittime) as rn from mimiciii.icustay_detail as icu order by subject_id ), first_icu as ( select * from order_icu where rn = 1 ), first_serv as( select ie.hadm_id, curr_servic...
true
f3081a2c8e2ade48d5ca2fa96c08a756f9f56bb5
SQL
gaterace/inventory
/sql/tb_Product.sql
UTF-8
902
3.109375
3
[ "Apache-2.0" ]
permissive
use inventory; DROP TABLE IF EXISTS tb_Product; -- inventory product CREATE TABLE tb_Product ( -- inventory product identifier inbProductId BIGINT AUTO_INCREMENT NOT NULL, -- creation date dtmCreated DATETIME NOT NULL, -- modification date dtmModified DATETIME NOT NULL, -- deletion date ...
true
4214fa02fb080e068be8786b094ff213cc1f77bc
SQL
softlog/postgresql_scripts
/portal/query_painel_status_new.sql
UTF-8
2,104
4.03125
4
[]
no_license
SELECT r.data_saida::date as data_saida, r.id_motorista, r.placa_veiculo, TRIM (c.nome_cidade) AS nome_cidade, TRIM(mot.nome_razao) as nome_motorista, COUNT(*) as qtd_entregas, SUM(CASE WHEN o.codigo_edi IN (1,2) THEN 1 ELSE 0 END) as qt_entregue, SUM(CASE WHEN o.codigo_edi NOT IN (0,1,2) TH...
true
e65057365af719935c872962cdbce4db0197bea7
SQL
shlvd/SQL
/DB5_SQL_Stanford/SQL_Movie_Rating_Query_Exercises_Extras.sql
UTF-8
4,141
4.96875
5
[]
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 sta...
true
7b3737f23d3cb15f6fd4ac775f6fe820adfdb686
SQL
arenadata/gpdb
/src/test/regress/sql/password.sql
UTF-8
5,220
3.328125
3
[ "LicenseRef-scancode-rsa-md4", "OLDAP-2.8", "HPND-sell-variant", "BSD-4-Clause-UC", "Zlib", "LicenseRef-scancode-zeusbench", "LicenseRef-scancode-openssl", "bzip2-1.0.6", "LicenseRef-scancode-ssleay-windows", "Beerware", "LicenseRef-scancode-mit-modification-obligations", "LicenseRef-scancode-...
permissive
-- -- Tests for password verifiers -- -- Tests for GUC password_encryption SET password_hash_algorithm = 'novalue'; -- error SET password_encryption = on; -- ok SET password_hash_algorithm = 'md5'; -- ok SET password_encryption = off; -- ok SET password_hash_algorithm = 'scram-sha-256'; -- ok -- consistency of passwo...
true
51c23fd062956051779c9eb76a307926a6ad577e
SQL
msnangersme/omgwtfbbq
/app/inc/db.sql
UTF-8
1,782
3.59375
4
[ "MIT" ]
permissive
-- -- Table structure for table feed -- CREATE TABLE feed ( id int(11) NOT NULL auto_increment, title varchar(255) NOT NULL default '', feedurl varchar(255) NOT NULL default '', siteurl varchar(255) default NULL, iconurl varchar(255) default NULL, description varchar(255) default NULL, created datetime ...
true
5957f4d2f5e60b9ff4b38822b50a8421274bfc15
SQL
changhee9507/study
/SQL/ORACLE/where/5_Q3_2_union.sql
UTF-8
157
2.765625
3
[]
no_license
SELECT EMPNO, ENAME, SAL, DEPTNO FROM EMP WHERE DEPTNO = 20 AND SAL > 2000 UNION SELECT EMPNO, ENAME, SAL, DEPTNO FROM EMP WHERE DEPTNO = 30 AND SAL > 2000 ;
true
08835bf4c3ffc2fb02b2a1a69c9e1f634a56761b
SQL
knuber/hc_comp
/SQL/DB2/DB2 for i/PD_UD_R0.sql
UTF-8
44,415
3.203125
3
[]
no_license
CREATE OR REPLACE PROCEDURE RLARP.PD_UD_R0(IN VPERD CHAR(4)) DYNAMIC RESULT SETS 1 LANGUAGE SQL BEGIN ------------------------------------------------------------------------------------------------------------------------------------------------------ DECLARE V_ERROR INTEGER ; DECLARE MSG_VAR VARCHAR ( 255 )...
true
a821b812f1ffa1d8a522bbd8338119c8a17878c0
SQL
qqliang/SpringTest
/src/com/resources/library_saas.sql
UTF-8
765
2.546875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : cy_mysql Source Server Version : 50716 Source Host : 192.168.102.143:3306 Source Database : library_saas Target Server Type : MYSQL Target Server Version : 50716 File Encoding : 65001 Date: 2017-05-02 22:01:52 */ SET FOREIGN_KEY_CHECK...
true
9f4f7a7982612389a332c186922bd744fa613403
SQL
PNNL-Comp-Mass-Spec/DBSchema_PgSQL_DMS
/pgwatch2_metrics/configuration_changes.sql
UTF-8
1,039
3.390625
3
[ "Apache-2.0" ]
permissive
-- -- Name: configuration_changes; Type: TABLE; Schema: public; Owner: pgwatch2 -- CREATE TABLE public.configuration_changes ( "time" timestamp with time zone NOT NULL, dbname text NOT NULL, data jsonb NOT NULL, tag_data jsonb ) PARTITION BY RANGE ("time"); ALTER TABLE public.configurati...
true
2ff23dbccfa75f14b5b3aa5f45d229ac27890e08
SQL
ShunShj/shj
/common/soa_develop/.svn/pristine/06/064b927455ee9b102cb5f52f58f091b8d429ecbf.svn-base
UTF-8
1,860
3.234375
3
[ "Apache-2.0" ]
permissive
/* Navicat Premium Data Transfer Source Server : 192.168.11.122 Source Server Type : MySQL Source Server Version : 100109 Source Host : 192.168.11.122:3306 Source Schema : erp Target Server Type : MySQL Target Server Version : 100109 File Encoding : 65001 Date: 17/07...
true
42cf26a582d1cbdccf473f4c2f0b3be5a3b7ac67
SQL
mcep/Mediclinic
/Mediclinic/App_Code/SqlInstallScripts/36a-HealthCardEPCRemainingChangeHistory.sql
UTF-8
717
2.796875
3
[]
no_license
CREATE TABLE HealthCardEPCRemainingChangeHistory ( health_card_epc_remaining_change_history_id int not null PRIMARY KEY identity, health_card_epc_remaining_id int not null FOREIGN KEY REFERENCES HealthCardEPCRemaining(health_card_epc_remaining_id), staff_id ...
true
54ae47d56f3839e8eae22d372f39b5282c358a7d
SQL
ajay2java2dev/mcs-ds
/cs427_software_engineering/local_mysql_scripts/itrust_local_mywork.sql
UTF-8
1,902
3.234375
3
[]
no_license
SELECT * FROM tutorials.coffee_purchased; use itrust; select * from patients; select * from users; select * from personnel; select * from diagnosis; select * from icdcode; select * from icdcode where name like '%Obstetrics%'; ################UC-94-SQL################################# CREATE TABLE obstetrec ( ob...
true
b0958424d286af89f859535106d08d3d19e9723b
SQL
natrockwood/Pewlett-Hackard-Analysis
/schema.sql
UTF-8
595
2.53125
3
[]
no_license
Departments - dept_no varchar pk fk - Departments.dept_no dept_name varchar Dept_Emp - emp_no pk fk >- Employees.emp_no dept_no varchar fk >- Departments.dept_no from_date date to_date date Managers - dept_no varchar pk fk - Departments.dept_no emp_no fk - Employees.emp_no from_date date to_date date Employees - emp...
true
48f340cf0684e98d6ce8d61f881ad451b8f88454
SQL
rahul-gopinath-datapsych/python_coursera
/SQL/agg.sql
UTF-8
117
2.65625
3
[]
no_license
Select * from table where upper(name) = 'TARUSH' select name, count(*) from table group by 1 having count(*) > 5
true
772d67c948e058c83ddcd1c30581551ffeb18b3d
SQL
PeterG75/Developing-Modern-Database-Applications-with-PostgreSQL
/Chapter05/QGIS queries.sql
UTF-8
427
3.4375
3
[ "MIT" ]
permissive
CREATE VIEW "ATM coordinates" AS SELECT al.*, zc."geog" FROM "ATM locations" al INNER JOIN "Zip coordinates" zc ON al."ZipCode" = zc."zip"; SELECT atm."BankName", atm."Address" FROM "ATM coordinates" atm ORDER BY geog <-> ST_SetSRID(ST_MakePoint(-74.00365, 40.709677), 4326); SELECT atm."BankName", atm."Address" FROM ...
true
3f5074bf56946dd01cb43740f45ecd48baad7695
SQL
LordHepipud/icingaweb2-module-windows
/schema/mysql.sql
UTF-8
13,680
3.34375
3
[]
no_license
CREATE TABLE windows_schema_migration ( schema_version SMALLINT UNSIGNED NOT NULL, migration_time DATETIME NOT NULL, PRIMARY KEY(schema_version) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_bin; CREATE TABLE version( `schema` INT(3) NOT NULL default 1 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE...
true
40a13b9197c5c8d178b7252f3590711395c6e023
SQL
radtek/abs3
/sql/mmfo/bars/Sequence/s_bank_mon_upd.sql
UTF-8
1,062
2.671875
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Sequence/S_BANK_MON_UPD.sql =========*** Run PROMPT ===================================================================================== PROMPT *** Create sequence ...
true
44a15bdcef8bc13b688372a93267c6dd7ae4720e
SQL
linmao1995/file
/202008/mysql/20200902/sina_new.sql
UTF-8
1,119
3.265625
3
[]
no_license
# set names utf8; drop database if exists sina; create database sina charset=utf8; use sina; create table sina_news( id int primary key auto_increment, nid int, title varchar(64), ctime varchar(64), orgin varchar(64), detail varchar(256) ) default charset=utf8; #插入数据 insert into sina_news(nid,title,ctime,orgin,detail) ...
true
16486ccfa494db84a2e289013e3ab0249074d451
SQL
chukaio/Comanda_Pablo_Torretta
/DB/3073018_lacomanda.sql
UTF-8
9,586
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 12, 2020 at 06:03 AM -- Server version: 10.4.16-MariaDB -- PHP Version: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
e0992dffb1ef262fa088293f72ac2e10c5dbec7f
SQL
alldatacenter/alldata
/olap/doris/regression-test/suites/delete_p0/test_delete_sign_mow.sql
UTF-8
1,130
2.890625
3
[ "OpenSSL", "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-facebook-patent-rights-2", "PSF-2.0", "dtoa", "MIT", "GPL-2.0-only", "LicenseRef-scancode-public-domain" ]
permissive
DROP TABLE IF EXISTS delete_sign_test_mow; CREATE TABLE IF NOT EXISTS delete_sign_test_mow ( `uid` BIGINT NULL, `v1` BIGINT NULL ) UNIQUE KEY(uid) DISTRIBUTED BY HASH(uid) BUCKETS 3 PROPERTIES ( "enable_unique_key_merge_on_write" = "true", "replication_num" = "1...
true
4a893aceeac94c6f23a2b3a48de528e470c5b9ac
SQL
ArctosDB/DDL
/functions/getPreferredNameFromUsername.sql
UTF-8
808
3.25
3
[]
no_license
CREATE OR REPLACE FUNCTION getPreferredNameFromUsername(u IN varchar) RETURN varchar AS n varchar(255); c number; BEGIN if u = 'UAM' then n:='DBA'; else SELECT /*+ RESULT_CACHE */ count(*) INTO c FROM agent,agent_name WHERE agent.agent_id=agent_name.agent_id and agent_name_type='login' and...
true
0f445dcaac8d7ccaf381b2468ee739c9b7c059d5
SQL
jason-paulose/NBA-Free-Agency-Analysis
/Data Cleaning_NBA.sql
UTF-8
2,761
3.546875
4
[]
no_license
--------------------------------------------------------------------------------------------- -- Necessary data cleaning --------------------------------------------------------------------------------------------- -- Remove unecessary columns ALTER TABLE nba.dbo.games DROP COLUMN GAME_STATUS_TEXT, HOME_TE...
true
137c891b13475ce71619e728897894de7abf7726
SQL
NetGhostMan/TestJDBC
/sql.sql
UTF-8
4,031
3.359375
3
[ "Apache-2.0" ]
permissive
CREATE TABLE `TestJDBC`.`user` ( `Id` INT NOT NULL AUTO_INCREMENT, `username` VARCHAR(45) NULL, `password` VARCHAR(45) NULL, `account` INT NULL, `sex` INT NULL, PRIMARY KEY (`Id`)); INSERT INTO `TestJDBC`.`user` ( `username`, `password`, `account`, `sex`) VALUES ('ZhangSan', '123456', '0', '0');...
true
c0c56a018a82a1c26c79ef36d08a408ea8cb132d
SQL
pjungwir/range_agg
/sql/with_unnest.sql
UTF-8
399
3.5625
4
[ "MIT" ]
permissive
-- It combines with UNNEST -- to implement the temporal database "coalesce" function -- (see Snodgrass 6.5.2): SELECT room_id, t2.booked_during FROM ( SELECT room_id, range_agg(booked_during, true, true) AS booked_during FROM reservations GROUP BY room_id ) AS t1, U...
true
5dcb733a653c0ffee9fe1dcb41e0d1837d0e4c8a
SQL
PrimedSoftLimited/oophp-assignment
/Dump20190213.sql
UTF-8
3,154
3.09375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `crud` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `crud`; -- MySQL dump 10.13 Distrib 5.7.25, for Linux (x86_64) -- -- Host: localhost Database: crud -- ------------------------------------------------------ -- Server version 5.7.25-0ubuntu0.18.10.2 /*!40101 SET @OLD_CHARACTER_SET...
true
3a2bb5614c6bf3ca7a56f8d11dc88b51cbf9bac2
SQL
WillZWL/project
/database/change script/valuebasket.com/20130829.sql
UTF-8
1,495
3.625
4
[]
no_license
CREATE TABLE `ra_group_content` ( `group_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT , `group_display_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , `lang_id` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , `create_on` timestamp NOT NULL DEFAULT '0000-00-00 00:00:...
true
94bcfc84a3dc63469916f1b743cba31be4d06090
SQL
mattydemaasi/pastassignments
/ISYS224 - Database Systems/Assignment 2/De-Masi_Matthew_test_script.sql
UTF-8
2,358
3.390625
3
[]
no_license
/************ Matthew De Masi ***********/ /*********** 45585342 **********/ INSERT INTO `customer` (`CUSTOMER_ID`, `COMPANYNAME`, `ADDRESS`, `STAFF_STAFFNO`) VALUES ('2', 'ANU', 'Eastwood', '3'); INSERT INTO `customer` (`CUSTOMER_ID`, `COMPANYNAME`, `ADDRESS`, `STAFF_STAFFNO`) VALUES ('4', 'UNSW', 'Sydney', '5');...
true
2382b6d9362a0790a91d9ba0d7e031a5f3c5493f
SQL
giampieer/mobilelearning_jsp
/bd/bdcampus.sql
UTF-8
13,664
3.375
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Wed Oct 25 14:28:10 2017 -- 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
81b4ed9b57852bded32c9e4587dd66e4d80778e0
SQL
miqueiasgo/PrefeituraJD
/pmjd.sql
UTF-8
10,157
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.10.1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tempo de Geração: 04/03/2013 às 19h33min -- Versão do Servidor: 5.5.20 -- Versão do PHP: 5.3.10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_C...
true
86b11c5232676b89fe27a328b514e24befef7ff1
SQL
cash2one/cj
/trunk/apps/voa/src/sql/campaigns/structure.sql
UTF-8
5,840
3.265625
3
[]
no_license
CREATE TABLE `{$prefix}campaigns{$suffix}` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `uid` int(10) unsigned NOT NULL COMMENT '发起人UID', `username` varchar(54) NOT NULL COMMENT '发起人用户名', `typeid` int(10) unsigned NOT NULL COMMENT '分类', `subject` varchar(255) NOT NULL COMMENT '主题', `cover` int(10) unsig...
true
50411be9b9f3a7f155f4d312ba78124d050e2c71
SQL
bbookk/OaralHealth_mobile
/student.sql
UTF-8
4,859
2.609375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 07, 2018 at 05:00 PM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
3818e8a5fa8b8e4ae946c7f3d9e2f5fc0b3fb211
SQL
jdejager89/Capstone
/code.sql
UTF-8
1,629
4.15625
4
[]
no_license
--2.1 Quiz Funnel SQL Select * From survey Limit 10; --2.2 Quiz Funnel SQL SELECT question, Count(Distinct user_id) FROM survey Group by question; --3.1 Home Try- On Funnel SQL Select * From quiz Limit 5; Select * From home_try_on Limit 5; Select * From purchase Limit 5; --3.1.a Home Try- On Funnel SQL Select * From...
true
802f617f0b5827f7421d0b640ed9e179e74b8e2a
SQL
jawssame7/movies
/app/Config/movies_2014-01-02.sql
UTF-8
3,441
3.390625
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # バージョン 4096 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # ホスト: 127.0.0.1 (MySQL 5.6.13) # データベース: movies # 作成時刻: 2014-01-02 13:15:52 +0000 # ************************************************************ /*!...
true
7b4a7c520ac76504541eec32205c648d1f367a6c
SQL
hasankrsd/City-selection-based-on-country-selection-with-AJAX
/sql/ulkeler.sql
UTF-8
8,239
2.9375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Anamakine: localhost -- Üretim Zamanı: 12 Ağu 2021, 11:44:10 -- Sunucu sürümü: 8.0.17 -- PHP Sürümü: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER...
true
515965698bfe2ee866e50c67288f5344ac0db32a
SQL
MaxHsieh0615/Project2
/models/schema.sql
UTF-8
816
3.421875
3
[]
no_license
DROP DATABASE IF EXISTS Piggy_BusinessDB; CREATE DATABASE Piggy_BusinessDB; USE Piggy_BusinessDB; Create TABLE tbl_jobs ( id INT auto_increment name VARCHAR description VARCHAR adult_user_id INT child_id INT earning_amount DECIMAL status VARCHAR piggy_bank_id INT ) Create TABLE tbl_piggy_bank ( id INT auto...
true
26f522639167d9fea5f4fbfaa87e0537103e6d75
SQL
ruanlas/TADS2015
/banco-de-dados-2/Aula09_Entrega-da-atividade/RelatorioExecucaoScriptDeadlock.sql
ISO-8859-1
1,704
3.03125
3
[]
no_license
/* Relatrio de Execuo --------------------- Primeiro verificado se existe a tabela 'DeadlockTest' e o procedimento 'sp_simulatedeadlock'. Caso no existam, executado um comando sql para a criao destes dois objetos. O procedimento 'sp_simulatedeadlock' criado para se tornar uma vtima de deadlock em uma situao on...
true
236037ac2c97d13674a8d94b63544ce0d9408848
SQL
Schamnad/Data-Science
/Intro to Data Science /Assignment-2/assignment2_f.sql
UTF-8
273
3.71875
4
[ "MIT" ]
permissive
-- Write a SQL statement to count the number of unique documents that -- contain both the word 'transactions' and the word 'world' -- Select Count(distinct docid) from frequency where term is 'transactions' and docid in (Select docid from frequency where term is 'world');
true
d241cef95ab2787a3383c7f1ad750238c4eb0f1a
SQL
jasmeet17/bcdevtest
/db.sql
UTF-8
1,637
3.4375
3
[]
no_license
-- -- Table structure for table `books` -- DROP TABLE IF EXISTS `books`; CREATE TABLE `books` ( `isbn` int(11) NOT NULL COMMENT 'uniquely identifies a book', `title` varchar(45) NOT NULL COMMENT 'Title of book', `author` varchar(45) NOT NULL COMMENT 'Writer of the book', `genre` varchar(45) NOT NULL COMMENT 'c...
true
44d0233d17b72c20b9656e7da8a17663b55ed861
SQL
Ghezak-git/crud_laravel5_reactjs
/db_blog_react.sql
UTF-8
6,319
3.25
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 28, 2020 at 07:13 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.1.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true