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
659691b2cb4486634b42f5aaea4355de8f1056e0
SQL
MrinmoyBhaumik/Database-Class
/Project - Database/Project.sql
UTF-8
2,039
4.21875
4
[]
no_license
Create Table Books AS (Select * From WSProjectData WHERE Location = 'New York, NY'); Select * From Books; Alter Table Books Drop Column Location; Alter Table Books Drop Column Current_Stock; Alter Table Books Drop Column Number_Sold; Alter Table Books ADD Primary Key(BookID); Create Table St...
true
58b814f749cca9e29e638e124c2a8bdb19c62645
SQL
T-o-s-s-h-y/Learning
/Ruby/progate/rails5_dojo_2/tweet_app/db/.backup.sql
UTF-8
736
2.9375
3
[]
no_license
PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY); INSERT INTO schema_migrations VALUES('20170512024421'); CREATE TABLE IF NOT EXISTS "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT N...
true
4f51dc9c95d4214b39292b8c422cb106bc7b0fda
SQL
msoehnchen/DSV_Inventory_SQL
/SERIAL_serials_of_SKU_in_Stock.sql
UTF-8
212
2.953125
3
[]
no_license
Select i.tag_id TAG, i.SKU_id SKU, i.Location_id LOCATION, s.serial_number SERIAL, s.status from V_INVENTORY i, V_SERIAL_NUMBER s where i.SKU_id = :SKU and i.TAG_id = s.tag_id
true
4c8be11523dca95b1e47e567ea517af4c1ac6d5f
SQL
jkehl2/okanban
/data/create_data.sql
UTF-8
3,036
4.40625
4
[]
no_license
/* On crée une transaction * une transaction, c'est un bloc d'instructions, qui commence par BEGIN * et qui finit soit par COMMIT (pour valider) soit par ROLLBACK (pour annuler) * Si une erreur se produit (ou qu'on appelle ROLLBACK), alors c'est tout le bloc qui est annulé. * Les instructions ne sont validées QUE si o...
true
14216be256c12d9139cd3d8d5c4905d6ef793d46
SQL
jabautista/GeniisysSCA
/src/main/resources/sql/procedures/giacs035_bank_dep_return_btn.prc
UTF-8
4,304
3.46875
3
[]
no_license
DROP PROCEDURE CPI.GIACS035_BANK_DEP_RETURN_BTN; CREATE OR REPLACE PROCEDURE CPI.giacs035_bank_dep_return_btn(p_pay_mode IN GIAC_DCB_BANK_DEP.pay_mode%TYPE, p_gacc_tran_id IN GIAC_DCB_BANK_DEP.gacc_tran_id%TYPE, p_dcb_no IN GIAC_DCB_BANK_DEP.dcb_no%TYPE, p_item_no IN GI...
true
c29e5d5bed6f82a049f92677e881a6eb188cab7d
SQL
VictorDeza/demo-jsf
/script.sql
UTF-8
542
3
3
[]
no_license
create database bd_test; use bd_test; create table students( id serial primary key, first_name varchar(100) not null, last_name varchar(100) not null, dni char(8) not null, email varchar(100) not null ); INSERT INTO students(first_name, last_name, dni, email) VALUES ('Mary','Public', '72638892','mary@luv2code...
true
c25f3c5204f47a4c4771579c20863394f3e178f6
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day24/select1022.sql
UTF-8
176
2.609375
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-23T10:22:00Z' AND timestamp<'2017-11-24T10:22:00Z' AND temperature>=2 AND temperature<=8
true
0a3f25b9376686b188b292302022b9d258ef1c27
SQL
hudeveng/emdeveng
/emdbsql/easymeddb-28-july.sql
UTF-8
15,253
3.234375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.25, for Win64 (x86_64) -- -- Host: localhost Database: easymeddb -- ------------------------------------------------------ -- Server version 5.6.25-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RE...
true
865d949db9b4522c293eb6652b8f76e0ad0d0500
SQL
vedrannub/GitHubCV
/DataBasesProject/Inserts_Tables_Queries.sql
UTF-8
5,411
3.21875
3
[]
no_license
select * from tabela; select * from ima; select * from tim; select * from natprevar; select * from lifce; select * from tip; insert into ima(liga,ime) values('Premier League','Chelsea'); insert into ima(liga,ime) values('TH','Barcelona'); insert into ima(liga,ime) values('CA','Manchester United'); insert into ima(li...
true
634b57d806dbfae78413a04afcd5d740c34577e6
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day16/select0056.sql
UTF-8
178
2.65625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-15T00:56:00Z' AND timestamp<'2017-11-16T00:56:00Z' AND temperature>=37 AND temperature<=50
true
ab5173bd51503680206eb25794c697a38915870d
SQL
LiVertical/POCO
/POCO/dbFile/create.sql
UTF-8
1,805
3.625
4
[]
no_license
/* 我的收藏 2018-03-01 */ CREATE TABLE myCollect( productId VARCHAR(32) NOT NULL, userId VARCHAR(32) NOT NULL, createTime DATETIME NULL, curStatus VARCHAR(3) NULL COMMENT '当前收藏内容的状态,1:收藏 ,0:取消收藏', primary key (productId) ) /*系统通知 2018-03-01*/ CREATE TABLE notifiaction( notifiactionId VARCHAR(32) NOT N...
true
03a462d1d2541002b2d36a3d92c277110963955d
SQL
impresspages-plugins/SimpleProduct
/Setup/activate.sql
UTF-8
1,676
3.125
3
[]
no_license
CREATE TABLE IF NOT EXISTS `ip_simple_product_country` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) NOT NULL, `deliveryCost` int(11) NOT NULL COMMENT 'in cents', `currency` varchar(3) NOT NULL, `priority` DOUBLE NOT NULL, `isDefault` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) EN...
true
29f78ab3a934c2d0e8142ab8e3d5add8f516269f
SQL
github188/interface
/ddl/.svn/text-base/3-patch.sql.svn-base
UTF-8
475
2.640625
3
[]
no_license
--2013.01.04 add by HBJ-- --用户表添加是否内网用户标识,用于区分用户登录时选择的客户端网关IP alter table t_user add is_inner_user number(1); comment on column t_user.is_inner_user is '是否内网用户,0-外网用户,1-内网用户'; update t_user set is_inner_user = '1'; --2013.01.04 end-- --2013.01.05 add by HBJ-- --员工地址字段从31位长度修改为255 alter table ac_employees modify addres...
true
e6b0bab3fd0a2796fb74be790d9ad45a8facb004
SQL
patelkr07/TacoBroze
/db/schema.sql
UTF-8
259
2.546875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS tacos_db; USE tacos_db; CREATE TABLE tacos( id INTEGER NOT NULL AUTO_INCREMENT, taco_name VARCHAR(30) NOT NULL, shell VARCHAR(30) NOT NULL, vegetarian BOOLEAN DEFAULT false, picked_up BOOLEAN DEFAULT false, PRIMARY KEY (id) )
true
938b95b267225171a9e42adde0100e92c8d5a999
SQL
Boon-Jun/CS3223_Project
/COMPONENT/testcases/required/exp2.sql
UTF-8
200
2.703125
3
[]
no_license
SELECT EMPLOYEES.eid FROM EMPLOYEES, CERTIFIED, SCHEDULE, AIRCRAFT, FLIGHTS WHERE EMPLOYEES.eid = CERTIFIED.eid, CERTIFIED.aid = AIRCRAFT.aid, AIRCRAFT.aid = SCHEDULE.aid, SCHEDULE.flno = FLIGHTS.flno
true
65cdbdae14b5e2ab3d4c2ca4880099edd198cb8b
SQL
ardavanhashemzadeh/SQL-OpenDental
/ActivePatsInZipCodes.sql
UTF-8
205
2.96875
3
[]
no_license
/* Ardavan Hashemzadeh August 22nd 2018 List the number of active patients per each zip code */ SELECT Zip AS ZipCode, COUNT(*) AS Patients FROM patient WHERE patstatus=0 GROUP BY ZipCode ORDER BY Patients DESC;
true
3edc661b18992e71ba18d1b65c629e7e2e57a6e1
SQL
Mura0273/Anmeldelse-SSP-Projekt-SQL
/Anmeldelse - SSP Projekt SQL.sql
UTF-8
279
2.859375
3
[]
no_license
DROP TABLE UserReport CREATE TABLE UserReport ( ReportID INT IDENTITY (1, 1) NOT NULL, UserID INT NOT NULL, [DateTime] DateTime2 NOT NULL, [Location] NVARCHAR (MAX) NOT NULL, ReportText NVARCHAR (MAX) NOT NULL CONSTRAINT ReportID_PK PRIMARY KEY (ReportID) )
true
1949da8962c1b293af857a5b49258ff1bf055101
SQL
dingning1098/yt-demo
/target/test-classes/testdata/h2/import-basicdata.sql
UTF-8
3,341
2.703125
3
[]
no_license
--插入公司信息 Insert into TRAIN_CORP (CODE, NAME, PIN_YIN) Values ('558', '信息通信公司', 'xxtxgs'); --职位表 create table V_POST (POST_COD varchar(10) ,POST varchar(20),POST_TYP_COD varchar(1),primary key (POST_COD)); Insert into V_POST (POST_COD, POST, POST_TYP_COD) Values ('05031210', '技术员', '0'); Insert into V_PO...
true
f390387a39e536bff9342d32a1b7dfec1274ab04
SQL
HTTPArchive/almanac.httparchive.org
/sql/2019/media/04_09b.sql
UTF-8
752
3.5625
4
[ "Apache-2.0" ]
permissive
#standardSQL # 04_09b: Top Accept-CH SELECT client, chHTML, chHeader, COUNT(0) AS hits FROM ( SELECT client, page, replace(regexp_extract(regexp_extract(body, r'(?is)<meta[^><]*Accept-CH\b[^><]*'), r'(?im).*content=[&quot;#32"\']*([^\'"><]*)'), '#32;', '') AS chHTML, regexp_extract...
true
04ca798ccb25c78cdaf5ae9846504635d0daf8ef
SQL
Tech4covid19/trackovid19-backend
/db/migrations/002.schema-videos.sql
UTF-8
2,850
3.9375
4
[ "MIT" ]
permissive
-- videos ------------------------------------ CREATE SEQUENCE public.videos_id_seq INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 2147483647 CACHE 1; ALTER SEQUENCE public.videos_id_seq OWNER TO postgres; CREATE TABLE public.videos ( id integer NOT NULL DEFAULT nextval('public.videos_id_seq':...
true
1ebee5af488e6e98ec8dbe850be0ca2e293b5b6e
SQL
mahi-aust/DDS_Project-
/site/insert_order.sql
UTF-8
4,141
3.34375
3
[]
no_license
SET SERVEROUTPUT ON; SET VERIFY OFF; DECLARE BEGIN PC_PARTS_PACKAGE.SHOW_PRODUCTS; DBMS_OUTPUT.PUT_LINE(' '); DBMS_OUTPUT.PUT_LINE(''); DBMS_OUTPUT.PUT_LINE('Add two products : '); END; / ACCEPT c_name char prompt 'Enter customer name :'; ACCEPT c_contact char prompt 'Enter customer contact no :'; ACCEPT c_add...
true
1a9bfae834588d0587b43e5131d53b108cfe873f
SQL
yushuailiu/MarsBase
/docs/database/comment.sql
UTF-8
800
2.921875
3
[]
no_license
create table if not exists `app_comment_info`( `id` int not null auto_increment comment '自增id', `body` varchar(1024) charset utf8mb4 not null comment '评论内容', `bodyHtml` varchar(2014) charset utf8mb4 not null DEFAULT '' comment '评论内容html结构', `user_id` int not null comment '用户id', `business` varchar(128) not nu...
true
974357b723bf344e4425bd16c8c0c4dfe8bcf0ca
SQL
TmanishaT/Functional-Programming
/raiseGuardTrigger.sql
UTF-8
419
2.8125
3
[]
no_license
CREATE OR REPLACE TRIGGER RaiseGuard AFTER UPDATE ON MyEmployees FOR EACH ROW DECLARE t_sal_diff NUMBER:=0; BEGIN t_sal_diff := :new.Salary - :old.Salary; IF t_sal_diff > 400 THEN t_sal_diff := :old.Salary + 400; INSERT INTO HW2Log (Message) VALUES('Salary update for employee ' || :new.employee_...
true
8110a0cb8273ce4400b37247112b08192a8042e1
SQL
molotof/Snoopy
/snoopy/server/setup/db_setup.sql
UTF-8
3,575
3.375
3
[ "MIT" ]
permissive
DROP database IF EXISTS snoopy; CREATE database snoopy charset=utf8; use snoopy; GRANT ALL on snoopy .* TO snoopy@'localhost' IDENTIFIED BY 'RANDOMPASSWORDGOESHERE'; FLUSH PRIVILEGES; CREATE TABLE sslstrip( timestamp DATETIME, secure TINYINT, host VARCHAR(50), domain VARCHAR(50), src_ip VARCHAR(16), url VARCHA...
true
3933d01945c5f98d97721b74e36a085b7ff4b5d5
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day21/select1400.sql
UTF-8
269
3.046875
3
[]
no_license
SELECT sen.name FROM SENSOR sen, SENSOR_TYPE st, COVERAGE_INFRASTRUCTURE ci WHERE sen.SENSOR_TYPE_ID=st.id AND st.name='Thermometer' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['4042','5048','3042','6039','5211','2243','3228','3100_7','6064','2234'])
true
f095da34c9fe94e4c948a720a79e8d5ff23e0ad5
SQL
gitgsundar/sql
/non-indexed-fk.sql
UTF-8
2,648
4.25
4
[]
no_license
col table_name format a30 col constraint_name format a30 col columns format a30 select owner,table_name, constraint_name, cname1 || nvl2(cname2,','||cname2,null) || nvl2(cname3,','||cname3,null) || nvl2(cname4,','||cname4,null) || nvl2(cname5,','||cname5,null) || nvl2(cname6,','||cname6,null) || nv...
true
9ccc3cf20c3b124ce64ea8e5c55731a3bb6469d4
SQL
Enterprise-System-Management-Solutions/Data-pipeline-scripts
/dwhnode02/database/procedures/P_L2_TO_L3_CONTENT.sql
UTF-8
4,026
3.21875
3
[]
no_license
-- -- P_L2_TO_L3_CONTENT (Procedure) -- CREATE OR REPLACE PROCEDURE DWH_USER.P_L2_TO_L3_CONTENT (P_PROCESS_DATE VARCHAR2) IS VCOUNT NUMBER; VDATE_KEY NUMBER; VL2STATUS NUMBER; VL3STATUS NUMBER; VDATE DATE := TO_DATE(TO_DATE(P_PROCESS_DATE,'YYYYMMDD'),'DD/MM/RRRR'); BEGIN SELECT COUNT(STATUS) I...
true
2670008c2908209106580083f70d3abea1ae89e3
SQL
GrynyshynRoman/RailwayService
/src/ua/nure/hrynyshyn/core/DBSupport/dbinit.sql
UTF-8
5,640
4.375
4
[]
no_license
/*Script for crating all tables for application functionality.*/ CREATE DATABASE IF NOT EXISTS RAILWAY; USE RAILWAY; CREATE TABLE STATIONS ( station_ID INT NOT NULL AUTO_INCREMENT, name VARCHAR(50), city VARCHAR(50), state VARCHAR(50), country VARCHAR(50), PRIMARY KEY (station_ID) ); ...
true
e06bbb81e3fe15066a314610df286dc9ffe9183f
SQL
martindelloro/encuestas2
/sqls/mail_usuarios.sql
UTF-8
850
3.46875
3
[]
no_license
-- Table: mail_usuarios -- DROP TABLE mail_usuarios; CREATE TABLE mail_usuarios ( id serial NOT NULL, mail_id integer, usuario_id integer, created timestamp without time zone, modified timestamp without time zone, estado integer, CONSTRAINT "MailUsuarios.primaryKey" PRIMARY KEY (id) ) WITH ( OIDS=FALS...
true
81c89e2e39480b76a2435f7b3c2773b7cbee078f
SQL
rmnbnd/hunter-backend
/src/main/resources/db/migration/V3__Change_entities_for_security.sql
UTF-8
82
2.625
3
[]
no_license
ALTER TABLE customer ADD UNIQUE (email); ALTER TABLE performer ADD UNIQUE (email);
true
3c6a5f5ea08a78c4b74eef995cecdc3f089e05f4
SQL
feliciaangelinee/gamerika-db
/Database Systems Project/CreateDB.sql
UTF-8
2,995
3.59375
4
[]
no_license
CREATE DATABASE GameRika USE GameRika CREATE TABLE Users( userId CHAR (6) Primary key NOT NULL, userNickname VARCHAR (255) NOT NULL, userFullname VARCHAR (255) NOT NULL, userEmail VARCHAR (255) NOT NULL, userCountry VARCHAR (255) NOT NULL, userDescription VARCHAR (255) NOT NULL, CONSTRAINT cekId CHECK (userI...
true
a416038597ce755381d9977ff4ebf9f92d5a599f
SQL
bitmarc/Recomendautos_Server
/sqlDb/recomendautosDB.sql
UTF-8
28,195
3.515625
4
[]
no_license
/* BASE DE DATOS PARA EL SISTEMA "RECOMENDAUTOS" SCRIPT 4.0 febrero 2021 */ # -------------------------------------------------------------------- CREACION E IMPLEMENTACION USE recomendautosdb; # -------------------------------------------------------------------- TABLA USUARIOS CREATE TABLE usuarios( id_usuario ...
true
3477a91eff99bbcdf1ebd2a464b648e383204069
SQL
Crone1/College-SQL
/Lab #5/Q1.sql
UTF-8
387
3.890625
4
[]
no_license
SELECT e.firstname, e.lastname, COUNT(o.ordernumber), e.employeenumber, SUM(od.quantityOrdered * od.priceeach) AS tot_amount FROM employees e JOIN customers c ON e.employeenumber = c.salesrepemployeenumber JOIN orders o ON o.customernumber = c.customernumber JOIN orderdetails od ON o.ordernumber =...
true
8db66ce1d7f5cdad0e749ade8bac5f337909f90c
SQL
silogos/SKS
/artificial_intelegen.sql
UTF-8
7,903
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 16, 2018 at 02:48 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
025abbdea0c488fbce476cfd54ba178e1fc6a377
SQL
MeravJoseph/AppointmentsManagementProgram
/src/server/bakupPatients.sql
UTF-8
2,832
2.953125
3
[]
no_license
-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.0.67-communipatientspatientsty-nt /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTIO...
true
2eea32537476385bbc1b93c5ad9cc47be812cbb1
SQL
HaylsDpy/SQL
/10-Sub queries & nested selects.sql
UTF-8
1,700
4.5625
5
[]
no_license
/* Sub-queries allow you to perform more powerful queries than would have been possible otherwise. E.g. */ SELECT column1 FROM table WHERE column2 - (SELECT MAX(column2) FROM table); /* To retrieve the list of employees who earn more than the average salary: */ SELECT * FROM employees WHERE salary > AVG(salar...
true
9e0b808f24be7138fe5bf6a6dfcc9046cf226dd1
SQL
absk786/assignment10
/db/seed.sql
UTF-8
736
3.109375
3
[ "MIT" ]
permissive
USE employeedb; INSERT INTO department (name) VALUES ("Sales"), ("Engineering"), ("Finance"), ("legal"); INSERT INTO role (title,salary,department_id) VALUES ("Sales lead", 1000,1), ("Sales Person", 2000,1), ("lead engineer", 3000,2), ("SW engineer", 4000,2), ("Legal intern Lead", 5000,4), ("Lawyer", 6000,4), ("accou...
true
9e3db1d3d4d27689c1ebc19cfbc662b789442349
SQL
darthnater007/sql
/prs/prs_create_database.sql
UTF-8
7,501
3.703125
4
[]
no_license
DROP DATABASE IF EXISTS prs; CREATE DATABASE prs; USE prs; -- table definition CREATE TABLE User ( ID INT PRIMARY KEY AUTO_INCREMENT, UserName VARCHAR(20) NOT NULL, Password VARCHAR(10) NOT NULL, FirstName VARCHAR(20) NOT NULL, LastName VARCHAR(20) ...
true
d7ecb82136b5b8565f1334ed14b73be0d39a690a
SQL
adityanandaaa/TA_B_7
/ruangan.sql
UTF-8
2,791
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Nov 08, 2019 at 01:57 PM -- Server version: 10.4.6-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 @O...
true
ba5e7960ff7e192161d83820cee4d612c5f4c385
SQL
Crigerprogrammer/Escuela
/sql/creates_tables.sql
UTF-8
1,341
3.890625
4
[]
no_license
-- Crear base de datos CREATE DATABASE escuela USE escuela -- Tabla de profesores CREATE TABLE profesor ( id_profesor INT PRIMARY KEY IDENTITY(1,1) NOT NULL, nombres NVARCHAR(50), apellidos NVARCHAR(50), fecha_alta DATE, salario INT ) --- Tabla de grados CREATE TABLE grado ( id_grado INT PRIMARY KEY IDE...
true
fd2898310100b52920285821652c189b40e6c4c8
SQL
Breadator258/trelleperrier
/trelleperrier_db.sql
UTF-8
3,668
3.140625
3
[]
no_license
-- -------------------------------------------------------- -- Hôte : 127.0.0.1 -- Version du serveur: 5.7.24 - MySQL Community Server (GPL) -- SE du serveur: Win64 -- HeidiSQL Version: 10.2.0.5599 -- ------------------------------------------------------...
true
19070339fcfdb94fda9db6cd15d2a4ee03192bd2
SQL
lmergner/contrivers-migrations
/sql/queries.sql
UTF-8
481
3.15625
3
[]
no_license
/* * queries.sql * Copyright (C) 2014 lmergner <gmail.com> * * Distributed under terms of the MIT license. */ /* Select all writings and tags */ select writing.title, tag.name from writing, tag, tag_to_writing where tag_to_writing.tag_id = tag.id and tag_to_writing.writing_id = writing.id; select title from wri...
true
e82934d7c5eb7f7cc47f964c0618182aaffd3ce1
SQL
tomraian/ED-Learning
/trung-tam.sql
UTF-8
12,315
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th8 03, 2021 lúc 07:34 AM -- Phiên bản máy phục vụ: 10.4.19-MariaDB -- Phiên bản PHP: 8.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
6f0c8f63af9bf6c09e25204db8d9937d6c12a547
SQL
tanateros/big-data-devices
/data/sql/backup-scheme.sql
UTF-8
4,695
3.09375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.61, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: test.new -- ------------------------------------------------------ -- Server version 5.5.61-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@...
true
059560c0efe097232d3a83bf99cc64e2f0fcd954
SQL
IMM-470-03-Spring-2015/databases
/incidents.sql
UTF-8
506
3.1875
3
[]
no_license
/* incidents.sql */ /* drop the table if it already exists*/ DROP TABLE IF EXISTS incidents.incident; /* and create a new one */ CREATE TABLE incidents.incident(id SERIAL PRIMARY KEY, name TEXT, latitude DOUBLE PRECISION, longitude DOUBLE PRECISION); /* insert a starter record into the incidents table */ INSERT INTO...
true
edc45dc03a1d16f31fa7a59c2cefc41f8d1fb59b
SQL
PublicVar/agreement-wall
/database/migrations/agreement.sql
UTF-8
891
3.390625
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Base de données : `agreement` -- -- -------------------------------------------------------- -- -- Structure de la table `people` -- CREATE TABLE `people` ( `id` int(11) UNSIGNED NOT NULL, `firstname` varchar(45) NOT NULL, `lastname` var...
true
faa99b965000b249c4f73ff89516c71bfe3b966d
SQL
Genskill2/03-bootcamp-sql-OjaswiSingh
/query1.sql
UTF-8
99
2.625
3
[]
no_license
SELECT title FROM books, publisher WHERE books.publisher=publisher.id AND publisher.name='PHI';
true
638fddf9ca564bb2ad84c447bf4e089988604c98
SQL
anshrusia200/movie-booking-system
/questions/Queries/Q2/query.sql
UTF-8
92
2.59375
3
[]
no_license
SELECT cust_name, cust_phone, cust_age FROM customer NATURAL JOIN ticket WHERE price < 925;
true
b70a6e1aba785c893cee48ae2bc6b2ab3e379d03
SQL
ardan09/Database_KIB_2021
/Week3/solutions/hw2_dorzhiev_ardan/hw2_task7.sql
UTF-8
2,757
3.796875
4
[]
no_license
/* Вывести компании, которые приобрели больше всех композиций по каждому из жанров. * При этом указать самую популярную композицию по жанру у данной компании. * (популярность определяется по количеству покупок) (company_name, track_name) */ with genre_company_cnt_tracks as (-- выведем все заказы с треками, кото...
true
fbc53cdb56513967ab3cbd87c4639e16490b8e56
SQL
kzaow/cc_recommender_back
/db/db.sql
UTF-8
1,146
3.484375
3
[]
no_license
DROP TABLE IF EXISTS issuers CASCADE; CREATE TABLE issuers ( id SERIAL NOT NULL PRIMARY KEY, name TEXT NOT NULL UNIQUE DEFAULT '' ); DROP TABLE IF EXISTS payment_networks CASCADE; CREATE TABLE payment_networks ( id SERIAL NOT NULL PRIMARY KEY, name TEXT NOT NULL UNIQUE DEFAULT '' ); DROP TABLE IF EXISTS cards...
true
db737fa9a398cd7a4a731d0b7ae37a56258b3b58
SQL
shimaomao/itac
/phase1-data/src/main/database/013_extend_proposals_to_incorporate_joints.sql
UTF-8
390
2.9375
3
[]
no_license
ALTER TABLE "public"."proposals" ADD COLUMN "proposal_type" text NULL; ALTER TABLE "public"."proposals" ADD COLUMN "joint_proposal_id" int NULL; COMMENT ON COLUMN "public"."proposals"."proposal_type" IS 'Discriminator column for Proposal / JointProposal inheritance' ; COMMENT ON COLUMN "public"."proposals"."joint_pro...
true
39a6103204057b8bef8a3a9e9e8f25128b58ce84
SQL
ianyong/todo-backend-with-auth
/migrations/20211019193254-create-users-table.sql
UTF-8
253
2.578125
3
[]
no_license
-- +migrate Up CREATE TABLE users ( id BIGSERIAL PRIMARY KEY, email VARCHAR UNIQUE NOT NULL, hashed_password VARCHAR NOT NULL, role VARCHAR NOT NULL DEFAULT 'user' ); -- +migrate Down DROP TABLE users;
true
fee57ec2c4572ad5baf5e37528ea16599dd0810a
SQL
TeodorTonev/final_project_dominos
/Dominos_DB/dominos_restaurants.sql
UTF-8
2,188
2.921875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.13, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: dominos -- ------------------------------------------------------ -- Server version 8.0.13 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!...
true
ae82ce475b8c07dddd97e9aad219bebca605c182
SQL
nguio/SIINCO_web
/FormasOracleForms/Repautw95/SQL/Docs/TABLREPA.SQL
ISO-8859-1
10,965
3.546875
4
[]
no_license
--***************************** -- PARAME: Parametros -- CREACION: 97/05/20 --***************************** CREATE TABLE PARAME ( PARAME_DIANORMAL_B NUMBER(5), PARAME_RAZOSOCI__B VARCHAR2(255), PARAME_NIT_______B VARCHAR2(255) ) TABLESPACE RPADAT; --***************************** -- ALMACEN: Almacen -- CREACION: 97/...
true
f14afa2b51230620c3bf36a56dcdb7c1cb485514
SQL
phoniex-fly/wkscrm-cloud
/wkscrm-cloud/sql/wk_nacos/wkscrm_nacos_roles.sql
UTF-8
156
2.640625
3
[ "MIT" ]
permissive
create table roles ( username varchar(50) not null, role varchar(50) not null, constraint idx_user_role unique (username, role) );
true
aebbdc5e426b08d1de1c78dd9cc46cd62b279afa
SQL
homerdp/working
/SQLQuery1.sql
UTF-8
652
3.75
4
[]
no_license
select count(Employes.EmployeId) as counts from Employes join ProjectEmployes on Employes.EmployeId = ProjectEmployes.Employe_EmployeId join Projects on ProjectEmployes.Project_ProjectId = Projects.ProjectId where Projects.Name = 'Project1' and ProjectEmployes.Date_Start > '2016-11-11' and ProjectEmployes.Date_En...
true
651eb2af0206d879add7e01391b115c2a6629e9b
SQL
kissthink/greasyfork
/db/structure.sql
UTF-8
58,058
3.15625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.37, for debian-linux-gnu (x86_64) -- -- Host: 127.0.0.1 Database: greasyfork -- ------------------------------------------------------ -- Server version 5.5.37-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=...
true
7c961a3d4bb198fd689705277600551477603059
SQL
RoberthFallas/UNAeropuertoWS
/Grupo3_UNAeropuertoDBS2.sql
UTF-8
21,412
3.515625
4
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Fri Sep 18 22:27:47 2020 -- 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='ON...
true
aa244b73d40220aedef023f019e3357e1bad8c49
SQL
aruizcanton/MySQL
/gen_ctls_stagin_area_UTF8_ne_1.sql
UTF-8
70,270
2.90625
3
[]
no_license
DECLARE /* CURSOR QUE NOS DARA TODAS LAS TABLAS QUE HAY QUE CREAR EN EL STAGING AREA */ CURSOR dtd_interfaz_summary IS SELECT TRIM(CONCEPT_NAME) "CONCEPT_NAME", TRIM(SOURCE) "SOURCE", TRIM(INTERFACE_NAME) "INTERFACE_NAME", TRIM(COUNTRY) "COUNTRY", TRIM(TYPE) "TYPE", TRIM(S...
true
ddb01c43dd197c60b6d9bb49c9754c230c16357a
SQL
heyu20180313007/onebook-java
/onebook_java.sql
UTF-8
3,828
3.09375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : MySQL 8.0.11 Source Server Type : MySQL Source Server Version : 80011 Source Host : localhost:3306 Source Schema : onebook_java Target Server Type : MySQL Target Server Version : 80011 File Encoding : 65001 Date: 17/12...
true
f4022acbcf88098dc59a41f8f2cf6c62456d89f9
SQL
syn-arch/vsga-ujikom
/db_psbonline.sql
UTF-8
2,915
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 27, 2021 at 11:09 AM -- Server version: 10.1.40-MariaDB -- PHP Version: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
563482436fe61d785d1f8c665837f7134d291510
SQL
pimpjay/test.local
/www/kohana.sql
UTF-8
8,055
3.3125
3
[ "BSD-3-Clause" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.4.13.1deb1 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Май 06 2016 г., 13:42 -- Версия сервера: 5.6.30-0ubuntu0.15.10.1 -- Версия PHP: 5.6.11-1ubuntu3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
9d46ca9cc00b652363d7e81e01250adf33d6dd36
SQL
feisishui/oracle-spatial-workshop
/Workshop_Files/labs/11-georaster/14-manage/03-statistics/01-show_statistics.sql
UTF-8
945
2.96875
3
[]
no_license
set serveroutput on declare v_raster sdo_georaster; v_stats sdo_number_array; v_window sdo_geometry; begin -- Process rasters one by one for g in ( select * from us_rasters order by georid ) loop -- Read the raster object (metadata only) v_raster := g.georaster; -- Get th...
true
bc79029e37edd5b80ceb356165746b42e8fb927c
SQL
liudianpeng/FireflowEngine20
/fireflow-demo-nutz/dbscript/ddl/04_security.sql
UTF-8
11,514
3.140625
3
[]
no_license
DROP TABLE IF EXISTS fireflowdemo.T_security_permissions; DROP TABLE IF EXISTS fireflowdemo.T_security_user; DROP TABLE IF EXISTS fireflowdemo.T_security_group; DROP TABLE IF EXISTS fireflowdemo.T_security_organization; DROP TABLE IF EXISTS fireflowdemo.T_security_user_role; DROP TABLE IF EXISTS fireflowdemo.T_sec...
true
fe2d0e0407a55cea8a5c8294c91cb37ed24e3ced
SQL
tayduivn/Rhomicom-DB-Scripts
/ORACLE_SQL/SHARED_FUNCTIONS/18_PRS/18F013_prs.is_date_weekend.sql
UTF-8
1,152
3.53125
4
[ "MIT" ]
permissive
/* Formatted on 12-19-2018 6:21:35 PM (QP5 v5.126.903.23003) */ CREATE OR REPLACE FUNCTION PRS.IS_DATE_WEEKEND (P_DATE VARCHAR2) RETURN VARCHAR2 AS VALAMNT NUMERIC := 0.00; PDAY VARCHAR2 (21) := ''; BEGIN SELECT TRIM (UPPER (TO_CHAR (TO_DATE (P_DATE, 'YYYY-MM-DD'), 'DAY'))) INTO PDAY FR...
true
73fdde2efbda774beacdda23987809ad4856d6ed
SQL
anupamsurbhi/ordermanagement
/src/main/resources/schema.sql
UTF-8
6,957
3.046875
3
[]
no_license
CREATE TABLE pizza ( code INT8 PRIMARY KEY, description VARCHAR(128), price DECIMAL(20, 2), inventory INT8, lastchangets TIMESTAMP ); insert into pizza(code,description,price,inventory,lastchangets) values (1001,'Large - Hand Tossed - Alfardo Sause ',10.25,100,CURRENT_TIMESTAMP); insert into pizza...
true
a869f48351dc60d21826fdd336706202d42adc03
SQL
AyouBuinany/Simplon_Brief_Application_pour_la_gestion_des_r-servations_des_vols_a-riens_Partie-2
/database_Air/reservation.sql
UTF-8
474
2.84375
3
[]
no_license
/* sql */ create table reservation(id_reservation int primary key auto_increment, FullName varchar(80), numeroTel varchar(50), email varchar(60), numeroPassport varchar(50), departingDate date default CURDATE(), returningDate date, Adult int, children int, travel_class varchar(25), price varchar(80), id_flight int, ...
true
4dc635a36f35795ed0c4b827ceb237268f3a0c6d
SQL
billy1arm/rus-udb
/update/r31_from_r28/r31_from_r28_scriptdev2_script_texts.sql
UTF-8
908
2.921875
3
[]
no_license
-- Date: 2009-08-05 -- Time: 12:24:48 -- Rev.: From 28 to 31 UPDATE `script_texts` SET `content_loc8` = 'Ваша смерть будет гораздо страшнее.' WHERE `entry` = -1568053; UPDATE `script_texts` SET `content_loc8` = '<ScriptDev2 Text Entry Missing!>' WHERE `entry` = -1000000; UPDATE `script_texts` SET `content_defa...
true
299a2a62a1aa1fb984d11cc29307b7f1817637e0
SQL
Rinenia/Digitiket
/digi/database/db_pgw.sql
UTF-8
2,151
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 29 Des 2020 pada 07.56 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.2.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
bef116c5ddefaeb92b2393f25e1443ec5e96156a
SQL
Fermene96/telemarketing
/telemarketing.sql
UTF-8
3,390
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 02-Nov-2019 às 18:00 -- Versão do servidor: 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
467bffc5bad66100bed42c4f7c5f88934cd14747
SQL
roshantavhare/librarylogin
/libraryweb/library_db.sql
UTF-8
2,011
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 09, 2018 at 04:27 PM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
3f1003a6b557f0ac8285a84487d805f1670e0e82
SQL
RupaliBawa/SethiCars
/sethicars.sql
UTF-8
5,070
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 25, 2021 at 06:49 AM -- Server version: 10.4.20-MariaDB -- PHP Version: 8.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
8f619696647eb087a09b42bc6ce95268c455c96f
SQL
FOSSEE/xcos_on_cloud
/resources/scilab_tbc.sql
UTF-8
4,246
3.078125
3
[ "MIT" ]
permissive
-- Adminer 4.6.2 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; CREATE TABLE `list_of_category` ( `id` int(11) NOT NULL AUTO_INCREMENT, `category_name` varchar(50) NOT NULL, `category_id` int(30) DEFAULT NULL, `maincategory` varchar(255...
true
c9b3ccf75b9654895ca66ffeb47b343a6213de66
SQL
ProfDema/uam
/pam/examples/anon_data/group_0062/q7.sql
UTF-8
248
2.53125
3
[]
no_license
truncate query7; INSERT INTO query7 SELECT cast(TO_CHAR (odate, 'YYYYMM') as int) AS period, SUM(quantity * price) AS sales, SUM(cost*quantity) AS cost FROM orders JOIN product USING(pid) GROUP BY period ORDER BY period; select * from query7;
true
a9114279cad108ab3c444e3d28167de67ff3fb13
SQL
AndrejsB86/java2_thursday_online_2021_spring
/team_front_of_engineers_hardcore/database/dbCreationScript.sql
UTF-8
2,054
4.1875
4
[]
no_license
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=1; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=1; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; CREATE SCHEMA IF NOT EXISTS `Auction` DEFAULT CHARACTER SET utf8 ; USE `Auction` ; SET SQL_MODE=@OLD_SQL_MODE; SET F...
true
bb225647c7ff0a9a4ba58bc77582bce360151af8
SQL
mervecaglarer/DB
/dblab2019/week9/week9.sql
UTF-8
658
3.96875
4
[]
no_license
create view usa_customers as select CustomerID , CustomerName , ContactName from Customers where Country = "USA"; select * from usa_customers; select * from usa_customers join Orders on usa_customers.CustomerID = Orders.CustomerID; create or replace view products_below_avg_price as select ProductID , ProductName , ...
true
196246fffdf1f7b5c8153de6cb8c0afd9a99b50a
SQL
sdbs-uni-p/usage-of-not-replication
/sql-queries/query_43.sql
UTF-8
1,618
4.21875
4
[ "CC-BY-4.0" ]
permissive
--counting anyOf with a not arguments, number of not arguments, number of total --arguments (select count(distinct p2dewey) as countAnyOf, count(distinct pdewey) as countArg from anyOfArgs a join flattree using (p2dewey)) union (select count(distinct p2dewey) as countAnyOf, count(distinct pdewey) as countArg from anyOf...
true
2a99ba1a8b742b96d8d5ce02573ddd82450a6367
SQL
ft2000/release-validation-framework
/importer/src/main/resources/scripts/component-centric/component-centric-snapshot-inferred-isa-relgroup.sql
UTF-8
626
2.875
3
[ "Apache-2.0" ]
permissive
/******************************************************************************** component-centric-snapshot-inferred-isa-relgroup Assertion: All inferred is-a relationships have relationship group of 0. ********************************************************************************/ insert into qa_result (ru...
true
cf63067aa99f41a3068603ebe501778a00842182
SQL
greensk/reg
/protected/reg.sql
UTF-8
4,782
3.78125
4
[]
no_license
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; CREATE SCHEMA IF NOT EXISTS `reg` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ; USE `reg` ; -- -------------...
true
af5d18b69b6fbb5de7f792a3c56a2f622948d4bd
SQL
MariyamB/Big-Data-Management
/Hive/Hive_HW copy/Hive_TestScript.sql
UTF-8
1,715
4.375
4
[]
no_license
-- Name: Mariyam Rajeev George -- Hive Assignment /*Write a set of Hive scripts that load these files into a staging external table called, Teller. Create a managed partitioned table, called PtTeller that partitions the rows in the table Teller dynamically based on the teller’s name.*/ drop table hive1; drop ...
true
553468da251d7b599bf9120520bf2ab8ab63fefd
SQL
bart74/www
/securoute.sql
UTF-8
2,164
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Client : 127.0.0.1 -- Généré le : Ven 28 Avril 2017 à 16:29 -- Version du serveur : 5.7.14 -- Version de PHP : 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_S...
true
4a8df20afb3022b416d4b534e72f305f1aebb52a
SQL
sisebi/PHP-CHAMADOS-Mysql
/app/database/Chamados.sql
UTF-8
33,565
3.421875
3
[]
no_license
-- -------------------------------------------------------- -- Servidor: 127.0.0.1 -- Versão do servidor: 10.1.21-MariaDB - mariadb.org binary distribution -- OS do Servidor: Win32 -- HeidiSQL Versão: 9.2.0.4947 -- -------------------------------------------...
true
3ef6814a78e2659f294f2a3eaf4a87902934d0ff
SQL
radtek/abs3
/sql/mmfo/bars/View/obpc_acc_acc.sql
UTF-8
1,386
2.65625
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/View/OBPC_ACC_ACC.sql =========*** Run *** = PROMPT ===================================================================================== PROMPT *** Create view OBPC...
true
a77f4b81facaf82ce33357322733d5d40be58b42
SQL
f11h/alumni-mv-tool
/db/amvt_transaction.sql
UTF-8
482
3.109375
3
[]
no_license
create table transaction ( id varchar(36) not null primary key, description varchar(255) not null, created datetime(6) default current_timestamp(6) not null, amount int not null, m...
true
b9c2e420dc257b476f34f42be8ce985cd3eaa3b8
SQL
dickynovanto1103/GolangExperiments
/database/mysql/test.sql
UTF-8
289
2.859375
3
[]
no_license
DROP DATABASE IF EXISTS testDB; CREATE DATABASE testDB; USE testDB; CREATE TABLE Person ( ID INT NOT NULL AUTO_INCREMENT, Name VARCHAR(100), Age INT, PRIMARY KEY(ID) ); INSERT INTO Person(Name, Age) VALUES('dicky', 22); INSERT INTO Person(Name, Age) VALUES('angel', 20);
true
ad3704171ae785569a28524f7aac0ec29a0b0cd7
SQL
joshirushikesh141/Rushikesh_Joshi_E-dac2020
/assignment 3.sql
UTF-8
2,342
4.4375
4
[]
no_license
create database assignment3; use assignment3; CREATE TABLE department( id integer, dept_no integer, dept_name varchar(50), CONSTRAINT dept_pk PRIMARY KEY(id) ); CREATE TABLE employee( id integer, emp_name varchar(100), dept_id integer, ...
true
ca88491bf5fc3898e27b01f6d7061ef90bec6aaf
SQL
dhak0027/flindersweb
/src/main/sql/com/flinders/poc/tutor.sql
UTF-8
197
2.53125
3
[]
no_license
create table tutor (tutorid int,name varchar(20), Department varchar(20), Phone int,email varchar(30), CONSTRAINT tutor_pk PRIMARY KEY (tutorid)); CREATE OR REPLACE PUBLIC SYNONYM tutor FOR tutor;
true
3e57d069d30e87b77bb29d1f7b1434dc9f069e8c
SQL
kittors/fistproject
/MySQL/01_sina.sql
UTF-8
2,005
3.828125
4
[]
no_license
/*练习: 编写一个脚本文件01_sina.sql, 先丢弃再创建数据库sina,设置编码为utf-8,进入数据库, 创建保存新闻数据的表news,包含编号为nid,标题title,发表时间ctime,来源origin,详情内容detail; 插入若干条数据,删除一条,修改一条。 在交互模式下查询数据 */ #设置客户端连接服务器端的编码为编码为utf8,不要加-,在程序中为减去符号,如果这里不设置,依然会导致乱码 set names utf8; #丢弃数据库,如果存在sina数据库 DROP DATABASE IF EXISTS sina; #创建数据库sina,设置编码格式为utf-8 CR...
true
1bcb35e5aa4918a5769f2dad6729da5ca593591f
SQL
michustarter/LoanDataBase
/4. Queries.sql
UTF-8
3,327
4.59375
5
[]
no_license
-- a SELECT first_name, last_name, NOW() AS actual_time, birth_date, YEAR(NOW())-YEAR(birth_date) - (DATE_FORMAT(NOW(), '%m%d') < DATE_FORMAT(birth_date, '%m%d')) AS age FROM employee WHERE (YEAR(NOW())-YEAR(birth_date) - (DATE_FORMAT(NOW(), '%m%d') < DATE_FORMAT(birth_date, '%m%d'))>25); -- b SELECT first_name, las...
true
a6efec5eab84c95060dc29a9ac461232b7a2d80f
SQL
zhangmingfeiHub/bubalus-file
/sql/init-table/sys_role_auth_rela.sql
UTF-8
498
3.375
3
[]
no_license
DROP TABLE IF EXISTS `sys_role_auth_rela`; CREATE TABLE IF NOT EXISTS `sys_role_auth_rela` ( `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键ID', `role_code` varchar(60) NOT NULL DEFAULT '' COMMENT '角色码(唯一性)', `auth_code` varchar(60) NOT NULL DEFAULT '' COMMENT '权限码(唯一性)', PRIMARY KEY (`id`), KE...
true
cbf858e1bd78fe7fb61e1665e3954e9fdb9db8dd
SQL
jadahbakar/nginx-mastri
/nginx/html/ereport-2019/backup data/tabel tanda tangan.sql
UTF-8
822
2.71875
3
[]
no_license
/* SQLyog Ultimate v12.09 (64 bit) MySQL - 5.7.19-0ubuntu0.16.04.1 ********************************************************************* */ /*!40101 SET NAMES utf8 */; create table `tanda_tangan` ( `id` int (11), `status` char (33), `tanggal` date , `pejabat_penanda_tangan_1` varchar (765), `pejabat_penanda_tang...
true
36d5552535bbb3e19e41d6f798437b15a11f9c73
SQL
dsignlife/Lex
/W31/Northwind Övningar/ex16.sql
WINDOWS-1250
237
3.578125
4
[]
no_license
--16. Give the name of customers who bought all products purchased by the customer whose identifier is LAZYK select distinct c.ContactName from Customers c join Orders o on c.CustomerID = o.CustomerID where c.CustomerID = 'LAZYK'
true
2bd15085d1fd2afac059adf9a79f12c9616821f9
SQL
FQAIN/SOAM-Sullimar-Academy-of-Music-Enigma-Crackers
/CI(SAOM)/DBScript.sql
UTF-8
1,411
3.234375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- Database : addressBookDB CREATE TABLE master_name( master_id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, date_added DATETIME, date_modified DATETIME, f_name VARCHAR(75), l_name VARCHAR(75) ); CREATE TABLE address( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, master_id INT REFERENCES master_...
true
ea00f877389994eeecd75a8ab4ae42d3c64a88e5
SQL
dbsupport/dbs-reports
/app/src/test/resources/pl/com/dbs/reports/domain/builders/test/Zbiorowka PRDB/definicja.sql
UTF-8
1,617
3.390625
3
[]
no_license
INIT: SELECT TO_CHAR(SYSDATE,'yyyy-mm-dd') INGENDAT, TO_CHAR(TO_DATE('^$IN_DATA^','YYYYMM'),'YYYYMM') INDATA, NVL('^$IN_FIRMA^', 'AUCHAN') INFIRMA, NVL('^$IN_CENPLA^', '%') INCENPLA, NVL('^$IN_LOK^', '%') INLOK, CASE '^$IN_TOP^' when 'TAK' then 'true' when 'NIE' then 'false' else 'false' END AS INTOP FROM D...
true
3c989b1fad12827800172877567c8f0ce9ce6015
SQL
bsgelley/AfcResearch
/ExploreCreation.sql
UTF-8
7,129
4.09375
4
[]
no_license
'command that created the original subsetregrel' CREATE TABLE subsetregrel select * FROM subset_creation INNER JOIN subset_stats USING(user_id) WHERE DATE_ADD(subset_stats.user_registration, INTERVAL 30 DAY) >= subset_creation.rev_timestamp; 'subsetregrel2 with page table included' CREATE TABLE subsetregrel (UNIQUE(re...
true
02b6e3ca3fc7b5c374a65e65fc1b222618cac258
SQL
Guoqiangxu1992/SeHandCarManager
/second_hand.sql
UTF-8
11,669
3.40625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : xuguoqiang Source Server Version : 50713 Source Host : localhost:3306 Source Database : second_hand Target Server Type : MYSQL Target Server Version : 50713 File Encoding : 65001 Date: 2016-08-31 20:25:57 */ SET FOREIGN...
true
07b13556c7954408f6629d02853ec8511124a0fc
SQL
JaeguKim/SQL-Challenge
/Hackerrank/Interview.sql
UTF-8
1,258
4.5
4
[]
no_license
#Colleges 테이블과 Challenges 테이블을 조인 #항상 ON 뒤에 field말고 등식을 넣는것을 잊지말자! # For Each Contest # join Challenges and Colleges to get Colleges,Challenge pair -> Challenge_Colleges Table # JOIN WITH CONTESTS TABLE WITH CONTEST_ID COLUMN # sums of total submissions, total accepted submissions : join submission_stats and Challenge_...
true
97a844a830c7de507cef7e7a48ac8b287ea4ba1f
SQL
admariner/eda_user_churn
/churn_analysis.sql
UTF-8
12,949
3.859375
4
[ "MIT" ]
permissive
-- get columns: SELECT count(distinct column_name) , (select count(*) from `your-project.staging.churn`) FROM `your-project.staging.INFORMATION_SCHEMA.COLUMNS` WHERE table_name = 'churn' -- You can now use INFORMATION_SCHEMA - a series of views that provide access to metadata about datasets, tables, and views SE...
true
069771fd0a57792a9d6465828ea9e97a8c78d8d4
SQL
mcep/Mediclinic
/Mediclinic/App_Code/SqlInstallScripts_StubDB/29a-ContactTypeGroup-And-ContactType.sql
UTF-8
1,341
3.0625
3
[]
no_license
CREATE TABLE ContactTypeGroup ( contact_type_group_id int not null PRIMARY KEY identity, descr varchar(50) not null ); SET IDENTITY_INSERT ContactTypeGroup ON; INSERT ContactTypeGroup (contact_type_group_id,descr) VALUES (1,'Mailing'), (2,'Telecoms'), (3,'Facility'), (4,'Inter...
true
2d83523964289bd6aff5c67821dcaa66f6aa0439
SQL
fishercoder1534/Leetcode
/database/_1495.sql
UTF-8
245
3.0625
3
[ "Apache-2.0" ]
permissive
--# Write your MySQL query statement below select title from Content where Kids_content = 'Y' and content_id in ( select content_id from TVProgram where program_date between '2020-06-01 00:00' and '2020-06-30 23:59' ) and content_type = 'Movies'
true