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
0ce4d1202ef2053d33c446c5023f13c20e19bfdb
SQL
shiqiang4521/QJ
/01-document/03-设计/00-数据模型/database/migrate_bss.sql
UTF-8
5,974
3.09375
3
[]
no_license
DROP PROCEDURE MIGRATE_BSS; CREATE PROCEDURE MIGRATE_BSS(IN IN_PROVINCE_CODE VARCHAR(2),IN IN_CITY_CODE VARCHAR(4),IN IN_CPN_OPERATOR_ID INTEGER) BEGIN DECLARE V_CUST_NAME VARCHAR (50); DECLARE V_PROVINCE_CODE VARCHAR (2); DECLARE V_CITY_CODE VARCHAR (4); DECLARE V_CUST_STATE VARCHAR (2); DECLARE V_CREATE_TIME DAT...
true
26aebb90aded58bfd9241b6266f9a1c092214b20
SQL
ejosip93/HomeRepair
/target/classes/schema.sql
UTF-8
767
3.84375
4
[]
no_license
DROP TABLE IF EXISTS USERS; DROP TABLE IF EXISTS ROLES; DROP TABLE IF EXISTS USERS_ROLES; DROP TABLE IF EXISTS JOB; CREATE TABLE IF NOT EXISTS USERS ( id int NOT NULL AUTO_INCREMENT, username VARCHAR(30), email VARCHAR(50), password VARCHAR(30), picture VARBINARY(MAX), PRIMARY KEY (id) ); CREATE TABLE IF ...
true
6b6967c18921412382e0b321f83a98e75f2278b2
SQL
gialnet/collect_tax
/089_INGRESOS_PAQUETE.sql
ISO-8859-1
38,426
3.296875
3
[]
no_license
-- ----------------------------------------------------------- -- Euro. Revisado el 30-11-2001. Lucas Fernndez Prez -- Se han realizado cambios.Rounds en inserciones y updates. -- ----------------------------------------------------------- -- -- Saber el pendiente de un valor en un momento determinado -- Se descuentan...
true
79501679dfc3a69564813191ef558e14ab80e841
SQL
kangyonggan/app2
/src/main/resources/schema.sql
UTF-8
20,975
3.1875
3
[]
no_license
CREATE DATABASE app DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; USE app; CREATE TABLE user ( id BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL COMMENT '主键, 自增', email VARCHAR(128) NOT NULL COMMENT '电子邮箱', is_verified TINYINT ...
true
ba1d2ca9b9bcd7d35fdfa8f67d2661059cbf1cc7
SQL
MelindaGreene/database-exercises
/select_exercises.sql
UTF-8
535
3.203125
3
[]
no_license
USE codeup_test_db; -- albums from Pink Floyd SELECT name as "Albums by Pink Floyd"FROM albums WHERE artist = 'Pink Floyd'; -- SELECT release_date AS "Beetles srg pepper" FROM albums WHERE name = 'Sgt. Pepper\'s Lonely Hearts Club Band'; SELECT genre as 'Nirvana Nevermind Genere' FROM albums WHERE name ='Nevermind';...
true
6eb9a40e9fbe58a54c4ef567e349162c4b315c12
SQL
herfian/logbook
/dbti5_log_book.sql
UTF-8
12,750
2.703125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 26, 2019 at 03:50 AM -- Server version: 10.1.35-MariaDB -- PHP Version: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
ced06a5cbe603ea42a806e9e5d5911c6b7af4a20
SQL
sasidharan10/MySQL
/time.sql
UTF-8
593
2.875
3
[]
no_license
select curtime(),current_timestamp(),localtime(), time("2021-08-02 02:30:45:52") as "time()", hour("2021-08-02 02:30:45:52") as "hour()", minute("2021-08-02 02:30:45:52") as "minute()", second("2021-08-02 02:30:45:52") as "second()", timediff("06:56:03:12","02:30:45:52") as "timediff()"; select addtime("06:56:03:12","...
true
c990f442a49deea0889d651cbcc65e58a710dc65
SQL
shiplix/shiplix
/db/structure.sql
UTF-8
22,756
3.09375
3
[]
no_license
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: - -- CREATE EXTENSION IF NOT EXISTS plpg...
true
86f43d246301bdf5b39ab15f75e3936c6707ffe9
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/02131_used_row_policies_in_query_log.sql
UTF-8
2,211
3.3125
3
[ "Apache-2.0", "BSL-1.0" ]
permissive
DROP TABLE IF EXISTS 02131_rqtable; CREATE TABLE 02131_rqtable (x UInt8) ENGINE = MergeTree ORDER BY x; INSERT INTO 02131_rqtable VALUES (1), (2), (3), (4); DROP ROW POLICY IF EXISTS 02131_filter_1 ON 02131_rqtable; DROP ROW POLICY IF EXISTS 02131_filter_2 ON 02131_rqtable; DROP ROW POLICY IF EXISTS 02131_filter_3 ON ...
true
670546dde52bbb5db6efc8cfe3f6d81d745a7724
SQL
ashishjsharda/omop_distro
/drop_postgresql_indexes.sql
UTF-8
5,470
2.703125
3
[ "Apache-2.0" ]
permissive
ALTER TABLE concept DROP CONSTRAINT xpk_concept CASCADE; ALTER TABLE vocabulary DROP CONSTRAINT xpk_vocabulary CASCADE; ALTER TABLE domain DROP CONSTRAINT xpk_domain CASCADE; ALTER TABLE concept_class DROP CONSTRAINT xpk_concept_class CASCADE; ALTER TABLE concept_relationship DROP CONSTRAINT xpk_concept_relationshi...
true
2d0068060f97f3dbf3d359dacc769a7a71350992
SQL
rostykerei/newslab
/persistence/src/main/resources/db/migration/V1__init.sql
UTF-8
2,801
3.453125
3
[]
no_license
CREATE TABLE publisher ( id SERIAL NOT NULL, canonical_name CHARACTER VARYING(255) NOT NULL, title CHARACTER VARYING(255) NOT NULL, url CHARACTER VARYING(255) NOT NULL, description CHARACTER VARYING(1024), active BOOLEAN NOT NULL DEFA...
true
d7c7606be7ae32a644cc179abf5ae48a49e05d75
SQL
AcruxPDE/SIGEIN50
/SistemaSIGEIN/SIGE.DataBase/IDP/Stored Procedures/SPE_REP_RESULT_PUESTO_COMPETENCIAS_PERFIL.sql
UTF-8
710
3.265625
3
[]
no_license
-- ============================================= -- Proyecto: Sigein 5.0 -- Copyright (c) - Acrux - 2016 -- Author: GABRIEL VAZQUEZ -- CREATE date: 21/01/2016 -- Description: Obtiene los datos de las competencias del perfil de ingreso del puesto -- ============================================= CREATE PROCEDURE IDP.SPE...
true
5b17169c588fc8b655c369c8e828846b552f03f8
SQL
GuerraXY/SID
/PHP migration/script_tabelas_museu_PHP.sql
UTF-8
3,698
3.609375
4
[]
no_license
CREATE DATABASE IF NOT EXISTS MuseuPHP; USE MuseuPHP; CREATE TABLE if not exists Utilizador ( email varchar(100) PRIMARY KEY, nome varchar(100) NOT NULL, tipo varchar(3) NOT NULL, morada varchar(400) ); CREATE TABLE if not exists RondaExtra ( email varchar(100), dataHoraInicio timestamp, dataHor...
true
1988c5575df933f3d53a7a1153956953dbde1d68
SQL
veronika-vashkevich/speaker
/backend/src/main/resources/db/migration/V09_create_tasks.sql
UTF-8
235
2.515625
3
[ "MIT" ]
permissive
CREATE TABLE `speaker`.`tasks` ( `id` INT NOT NULL AUTO_INCREMENT, `lesson_id` INT NOT NULL, `order_index` INT NOT NULL, `text` VARCHAR(45) NOT NULL, `url` VARCHAR(45) NULL, `notes` VARCHAR(45) NULL, PRIMARY KEY (`id`));
true
8aaa2d037afa8acaf0df0721c421f3c6712bdca5
SQL
keoneill/team5
/updateDB.sql
UTF-8
1,220
4.25
4
[]
no_license
/* This procedure updates the table 'user_info' from data in the table 'dow_stocks' DROP PROCEDURE IF EXISTS updateDB; DELIMITER // CREATE PROCEDURE updateDB() BEGIN DECLARE done TINYINT DEFAULT FALSE; DECLARE update_count INT DEFAULT 0; DECLARE user_var VARCHAR(30); DECLARE stock_pick_var VARCHAR(10); DECLARE ...
true
551fdfb6babe3d446793ce5eea15ffb4b484bca3
SQL
jbredow/sql-queries
/price book/02 PR_NONBR_PRICE_BOOK SEL DPI MAIN BRANCH.sql
UTF-8
4,798
3.140625
3
[]
no_license
--STEP 2 --BUILD OUT PRICING FROM DIST MATRIX --CHANGE TO PERSONAL SCHEMA --SPECIFY MAIN BRANCH ACCOUNT IN WHERE CLAUSE TRUNCATE TABLE AAD9606.PR_NONBR_PRICE_BOOK; INSERT INTO AAD9606.PR_NONBR_PRICE_BOOK (SELECT PR_DIM.PRICE_COLUMN, --PR_DIM.DISC_GROUP, --PR_DIM.MASTER_PRODUCT_NK, ...
true
1a9d55adac5c1cacf0fe9c387d8d7a69339b1f70
SQL
jmanning1/sql_useful_notes
/Create_Dummy_Data_Polygons_Points.sql
UTF-8
2,947
2.71875
3
[]
no_license
create table nearest_house_test (id number,geom sdo_geometry); create table nearest_asset_test (id number,geom sdo_geometry); ----- truncate table nearest_house_test; truncate table nearest_asset_test; insert into Nearest_House_test values ( 1, SDO_GEOMETRY( 2003, 27700, null, SDO_ELEM_INFO_A...
true
40d726a5cc9869520c24738e4c2324dba5d0cf9d
SQL
mmabc/wh
/sql/test-query.sql
UTF-8
498
2.796875
3
[]
no_license
SELECT ip ,count(*) requestCount from schema1.log where request_time between '2017-01-01.15:00:00' and '2017-01-01.15:59:59' group by ip order by requestCount desc; SELECT ip ,count(*) requestCount from schema1.log where request_time between '2017-01-01.00:00:00 ' and '2017-01-01.23:59:59' group by ip order by request...
true
bd55936c992ee0367b62d955d64460e010f9be66
SQL
Zsterman/SQL-II
/sql-2/subqueries.sql
UTF-8
1,093
3.984375
4
[]
no_license
-- Subqueries -- Get all invoices where the unit_price on the invoice_line is greater than $0.99. SELECT * FROM invoice WHERE invoice_id IN ( SELECT invoice_id FROM invoice_line WHERE unit_price > 0.99 ); -- Get all playlist tracks where the playlist name is Music. SELECT * FROM playlist_track WHERE play...
true
06c38e7146579f301c0a4f58acf4215926c5afe1
SQL
datasets-br/public-person
/src/tse-mk02-inserts.sql
UTF-8
3,861
3.765625
4
[ "JSON", "LicenseRef-scancode-public-domain", "CC0-1.0" ]
permissive
/** * TSE inserts for PubPerson. * run after core. * @version 1.0.0 * @see https://github.com/datasets-br/public-person */ /** * Scans all CSV filenames and show its properties. */ DROP VIEW IF EXISTS pubperson.vw_tmp_sources; CREATE VIEW pubperson.vw_tmp_sources AS SELECT row_number() OVER () as id, ...
true
7a477060092245be887c194a3d53483b0bdf70fc
SQL
linksuccess/linksuccess
/parsingframework/sql/links_features.sql
UTF-8
4,997
3.53125
4
[ "MIT" ]
permissive
CREATE TABLE link_features LIKE links; ALTER TABLE `link_features` DROP INDEX `source_article_id_2`, DROP INDEX `target_article_id_2`, DROP INDEX `target_article_id`, DROP INDEX `source_article_id`, DROP PRIMARY KEY, ADD PRIMARY KEY (`id`); ALTER TABLE link_features ADD COLUMN counts DOUBLE, ADD COLUMN source_article...
true
270267740a9a5f7ade942f25cadde3fd8504253d
SQL
coolsnow77/virMachine
/virMachineExtension/mylibvirt.sql
UTF-8
2,445
2.734375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 10.66.32.18 Source Server Version : 50538 Source Host : 10.66.32.18:3306 Source Database : mylibvirt Target Server Type : MYSQL Target Server Version : 50538 File Encoding : 65001 Date: 2014-11-18 17:09:41 */ SET FOREIG...
true
3093171f88bb75b8a0f4c73bf1e62b8ea83834cb
SQL
DmitrijR13/billAuk
/Main/DATA/PG/SQL/patches/0017/create_files_selected_1.sql
UTF-8
268
2.609375
3
[]
no_license
--CENTRAl_DATA CREATE TABLE if not exists fXXX_data.files_selected ( nzp_file INTEGER, nzp_user INTEGER, pref CHARACTER(20), num INTEGER, comment VARCHAR(100) ); CREATE INDEX fi_sel_1 ON fXXX_data.files_selected(nzp_file, nzp_user, pref);
true
6ca79936d2d18299606a88655e85c4aa5a8bffae
SQL
gurpreet19/ec198392_wht
/Database/configuration/03_02_headless_tool/Delta_WST/TargetPackageDefinitions/ECBP_WELL_POTENTIAL_HEAD.sql
UTF-8
6,412
2.65625
3
[]
no_license
CREATE OR REPLACE PACKAGE EcBp_Well_Potential IS /**************************************************************** ** Package : EcBp_Well_Potential, header part ** ** $Revision: 1.16 $ ** ** Purpose : Finds well potential using source-method ** ** Documentation : www.energy-components.com ** ** Creat...
true
b08aeb3ffe7830c351ae02154d225594e3d7f388
SQL
dreammarker/PL_SQL
/pl_sql_10.sql
UTF-8
477
2.640625
3
[ "MIT" ]
permissive
declare v_empno emp.empno%type := &eid; v_sal emp.sal%type; v_count emp.sal%type; a1 char(100); begin select sal into v_sal from emp where empno = v_empno; dbms_output.put_line(v_sal); v_count:=round(v_sal/1000,0); dbms_output.put_line(v_count); sele...
true
2a46f1f10cd10495cb9b939ea7cc7bc0112acf9a
SQL
TYPO3-svn-archive/categories
/ext_tables.sql
UTF-8
1,858
2.890625
3
[]
no_license
# # Table structure for table 'tx_categories' # CREATE TABLE tx_categories ( uid int(11) NOT NULL auto_increment, pid int(11) DEFAULT '0' NOT NULL, tstamp int(11) DEFAULT '0' NOT NULL, crdate int(11) DEFAULT '0' NOT NULL, cruser_id int(11) DEFAULT '0' NOT NULL, sys_language_uid int(11) DEFAULT '0' NOT NULL, l18n...
true
a9c6f0579e7b6a5dcd8e7d96068ffa40ab8d8008
SQL
krlosoul/cotizacion-back
/Query/Tables/1 - DEPARTAMENTOS.sql
UTF-8
322
3.5
4
[]
no_license
DO $$ BEGIN IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'departamentos') THEN CREATE TABLE DEPARTAMENTOS ( DEP_CODIGO SERIAL, DEP_NOMBRE VARCHAR(100) NOT NULL, CONSTRAINT PK_DEPARTAMENTOS PRIMARY KEY(DEP_CODIGO) ); RAISE NOTICE 'SE HA CREADO LA TABLA DEPARTAMENTOS'; END IF; END $...
true
8d41731b89efff6d0e8de64e08ce6b5b97c97d61
SQL
jesard/HospitalApp
/sql/hospital.sql
UTF-8
4,362
3.96875
4
[]
no_license
DROP DATABASE IF EXISTS hospital; CREATE DATABASE hospital; USE hospital; CREATE TABLE user ( id INT(11) NOT NULL AUTO_INCREMENT, firstName VARCHAR(50) NOT NULL, lastName VARCHAR(50) NOT NULL, patronymic VARCHAR(50) DEFAULT NULL, login VARCHAR(50) NOT NULL, password VARCHAR(50) NOT NULL, descriptor ENUM('admin','doct...
true
01a11cb67b040cfc6156eecd33e92493950bd4b6
SQL
syousif94/clubby
/api/migrations/V1__create_users_table.sql
UTF-8
285
3.53125
4
[]
no_license
CREATE TABLE IF NOT EXISTS users ( id BIGSERIAL PRIMARY KEY, name VARCHAR NOT NULL, phone VARCHAR NOT NULL, photo VARCHAR, created_at TIMESTAMP WITH TIME ZONE DEFAULT (NOW() AT TIME ZONE 'utc'), city_id INTEGER NOT NULL ); CREATE UNIQUE INDEX users_phone ON users (phone);
true
d3a0ee2cc8ac8f8537b0aeda85e7ba6e7a456a24
SQL
stimms/CQRSDemo
/CQRSDemo.Database/Script.PostDeployment1.sql
UTF-8
851
2.859375
3
[]
no_license
/* Post-Deployment Script Template -------------------------------------------------------------------------------------- This file contains SQL statements that will be appended to the build script. Use SQLCMD syntax to include a file in the post-deployment script. Example: :r .\myfile.sql ...
true
252c4f93f8947c0970916deb95226f992c6b80ed
SQL
keorapetse32/sql-dating_db
/dating_join.sql
UTF-8
402
3.125
3
[]
no_license
select my_contacts.first_name, my_contacts.last_name, zip_code.postal_code, status.status, interests.interest, seeking.seeking from my_contacts left join zip_code on my_contacts.zip_code = zip_code.zip_code left join status on my_contacts.status_id = status.status_id left join interests on my_contacts.contact_id = inte...
true
0668cd93451209d75f69c0a14cd1b18508e31c6f
SQL
pedro-iftm/Banco_2-Prova_1-2020_2
/2619.sql
UTF-8
219
3.59375
4
[]
no_license
select p1.name, p2.name, p1.price from products p1 inner join providers p2 on p1.id_providers = p2.id inner join categories c on p1.id_categories = c.id where p1.price > 1000 and c.name = 'Super Luxury'
true
50202068c8b3c3e8cc05a6a4f5dc27303efc20bb
SQL
acvinicius/mba-devops
/netflix/src/main/resources/schema.sql
UTF-8
1,568
3.59375
4
[]
no_license
DROP TABLE IF EXISTS movies; CREATE TABLE movies ( name TEXT NOT NULL, details TEXT NOT NULL, type TEXT NOT NULL, hasProblem BIT NOT NULL, countWatched BIGINT NOT NULL countLiked BIGINT NOT NULL, countDisliked BIGINT NOT NULL); INSERT INTO MOVIES (name, details, type, hasP...
true
be0d08f37c2be686f3db5578386a0a946641b737
SQL
occam1/Items
/Area57Database/a57/Tables/ItemPictures.sql
UTF-8
576
2.578125
3
[]
no_license
CREATE TABLE [a57].[ItemPictures] ( [Id] BIGINT IDENTITY (1, 1) NOT NULL, [DealerId] BIGINT NOT NULL, [ItemId] BIGINT NOT NULL, [altText] NVARCHAR (40) NULL, [Caption1] NVARCHAR (200) NULL, [Caption2] NVARCHAR (200) NULL, [Path] NVARCHAR (MAX) NO...
true
c79498f0104ee4432ba43bf271bab61cae036bdc
SQL
hening191/saleManagement
/sale.manage.sql
UTF-8
4,229
3.625
4
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50513 Source Host : localhost:3306 Source Database : sale.manage Target Server Type : MYSQL Target Server Version : 50513 File Encoding : 65001 Date: 2018-03-16 09:27:02 */ SET FOREIGN_...
true
f8ee6b942fa408a0e09366de5d39e35bfa9c08e5
SQL
abookStore/bookStore
/bookStore/doc/sql/order.sql
UTF-8
1,321
3.65625
4
[]
no_license
SET NAMES utf8; CREATE DATABASE IF NOT EXISTS bookstore; USE bookstore; CREATE TABLE IF NOT EXISTS `order` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id', `order_id` bigint(20) NOT NULL COMMENT '订单编号', `user_id` int(11) NOT NULL COMMENT '用户编号', `quantity` int(11) NOT NULL DEFAULT '0' COMMENT ...
true
6080375184724e1caed85e918d766aa0c75685c0
SQL
MarkGao11520/spring-boot-mybatis-with-redis
/src/test/resources/sql/schema.sql
UTF-8
808
2.890625
3
[]
no_license
CREATE TABLE `sys_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `password` varchar(256) COLLATE utf8_bin DEFAULT NULL, `username` varchar(256) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8 COLLATE=utf8_bin CREATE TABLE `sys_role` ( `id` int(11) NOT ...
true
db99793aa73aa3c306208b4035eb657f65c9487a
SQL
crystal-ctrl/EDA_MTA_Turnstile
/4_mta_merged.sql
UTF-8
176
3.3125
3
[]
no_license
CREATE TABLE merged_data AS SELECT DISTINCT m.STATION, s.ADA FROM mta_data m LEFT JOIN id_data i ON m.UNIT =i.remote LEFT JOIN station_data s ON i.complex_id=s."Complex ID";
true
34cbc01ae49779b306e40c10acaf5245da0446c1
SQL
ChikaKanu/Week_3_day_1_homework
/marvel.sql
UTF-8
13,212
3.0625
3
[]
no_license
DROP TABLE movies; DROP TABLE people; CREATE TABLE movies ( id SERIAL8 PRIMARY KEY, title VARCHAR(255), year INT2, show_time VARCHAR(255) ); CREATE TABLE people ( id SERIAL8 PRIMARY KEY, name VARCHAR(255) ); INSERT INTO people (name) VALUES ('Gábor Budai'); INSERT INTO people (name) VALUES ('Abigaila Ekiert');...
true
c90de6c2750b0b26b664b21d6d66679bb3bb4b59
SQL
BVier/TaskanaAdapter
/taskana-adapter-camunda-tasklistener/src/main/resources/sql/taskana-schema-postgres.sql
UTF-8
364
2.953125
3
[ "Apache-2.0" ]
permissive
CREATE SCHEMA IF NOT EXISTS %schemaName%; SET search_path TO %schemaName%; CREATE TABLE IF NOT EXISTS event_store ( id integer GENERATED ALWAYS AS IDENTITY (START WITH 1), type text COLLATE pg_catalog."default", created timestamp(4) without time zone, payload text COLLATE pg_catalog."default", CONS...
true
3e0af9fa5dda85888e22d7d6a16e2071c4391b2a
SQL
teoitinga/api-esloc-manager
/bin/src/main/resources/db/migration/V6__eslocdb_arquivos_enviados.sql
UTF-8
839
3.265625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.16, for Win64 (x86_64) -- -- Host: localhost Database: eslocdb -- ------------------------------------------------------ -- Server version 8.0.16 -- -- Table structure for table `arquivos_enviados` -- CREATE TABLE `eslocdb`.`arquivos_enviados` ( `id` bigint(20) NOT NULL AUTO_INCRE...
true
ce4e1b6777ca7122964ee4ee42450f52fc40cd19
SQL
8w/PHP.Gt
/PageTool/Blog/Database/_CreateTable-002-Blog_User.sql
UTF-8
651
3.59375
4
[ "Apache-2.0" ]
permissive
CREATE TABLE IF NOT EXISTS `Blog_User` ( `ID` INT NOT NULL AUTO_INCREMENT , `FK_User` INT NOT NULL , `username` VARCHAR(32) NOT NULL , `firstName` VARCHAR(64) NULL , `lastName` VARCHAR(64) NULL , `dateTimeCreated` DATETIME NOT NULL , `bio` TEXT NULL , `url` VARCHAR(256) NULL , `twitter` VARCHAR(32) N...
true
0c4dcba1394b79d9c27df8626b534b66defdb641
SQL
9X9NETWORK/nncloudtv
/mysql/schema/nncloudtv_analytics.sql
UTF-8
4,473
2.734375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.34, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: nncloudtv_analytics -- ------------------------------------------------------ -- Server version 5.5.34-0ubuntu0.12.04.1-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER...
true
e52725aba43271d60cc156412b640152b40bf7ef
SQL
risingnote/analytics-engine
/exampledb/createAcmeInsurance.sql
UTF-8
3,622
3.140625
3
[ "BSD-2-Clause" ]
permissive
#================================== # Run as root # Imaginary insurance private schema #================================== drop database if exists acmeinsurance; create database acmeinsurance; use acmeinsurance; drop table if exists salary; create table salary ( id int unsigned auto_increment not null primary key...
true
46f6e61cf4fa0f86c9e7964b0c1d4baa76926426
SQL
opengauss-mirror/openGauss-server
/src/test/regress/sql/update.sql
UTF-8
12,838
4.1875
4
[ "LicenseRef-scancode-mulanpsl-2.0-en", "LicenseRef-scancode-unknown-license-reference", "PostgreSQL", "BSD-3-Clause", "LGPL-2.0-or-later", "LicenseRef-scancode-unicode", "LicenseRef-scancode-warranty-disclaimer", "curl", "GPL-1.0-or-later", "LGPL-2.1-or-later", "LGPL-2.1-only", "CC-BY-4.0", ...
permissive
-- -- UPDATE syntax tests -- CREATE TABLE update_test ( a INT DEFAULT 10, b INT, c TEXT ); INSERT INTO update_test VALUES (5, 10, 'foo'); INSERT INTO update_test(b, a) VALUES (15, 10); SELECT * FROM update_test ORDER BY a, b, c; UPDATE update_test SET a = DEFAULT, b = DEFAULT; SELECT * FROM updat...
true
371730520976f530380ca89fc8e85994a3c1fd1c
SQL
prettyhe/alpha-coding4j
/coding-common/src/main/conf/static/META-INF/scripts/create_table.sql
UTF-8
1,631
3.46875
3
[ "Apache-2.0" ]
permissive
CREATE TABLE `message_monitor` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'PK', `biz_no` varchar(64) NOT NULL DEFAULT '' COMMENT '业务标识', `topic` varchar(255) NOT NULL DEFAULT '' COMMENT '消息主题', `tag` varchar(255) DEFAULT NULL COMMENT '消息标签', `content` varchar(10240) DEFAULT NULL COMMENT '消息文本'...
true
9191a6d18cf008015dfa348759b7aa0fea47f7e0
SQL
renlikang/xcx
/app/common/ddl/activity.sql
UTF-8
744
3.140625
3
[]
no_license
set autocommit=0; create database woof_content charset=utf8mb4; use woof_content; CREATE TABLE `woof_activity` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户Id', `userNo` VARCHAR(128) NOT NULL DEFAULT '' COMMENT '用户工号', `userName` VARCHAR(128) NOT NULL DEFAULT '' COMMENT '用户名称', `ticketNo` VARCHAR(128) COM...
true
f1e4db04b82e344307b12e784f10f1b67142f39b
SQL
listenviolet/clcHW
/mysql/trigger.sql
UTF-8
1,876
3.734375
4
[]
no_license
delimiter / drop procedure if exists resubHW; create procedure resubHW( in classID int, in stuID int ) begin declare existed int; set existed=(select count(*) from stu_class where stu_class.class_id=classID and stu_class.stu_id=stuID); if existed>0 then update stu_class set active=0 where stu_class.class_id=cla...
true
aef607d6e74e70daaad8005f7525e8be0afb04e0
SQL
buttonpol/MoodleImpulso
/Consultas a la base/reporte macrohabilidades.sql
UTF-8
1,509
3.6875
4
[]
no_license
SELECT qc.id as mhid, qc.name as mhnombre, q.id as idquiz, truncate((qa.maxmark * qas.fraction*100/maxmark ),1) as notaporcentaje, (Select case notaporcentaje=truncate((qa.maxmark * qas.fraction*100/maxmark ),1) WHEN notaporcentaje<40 THEN 'D' WHEN (40.0<=notaporcentaje) and (notaporcentaje<50.0) THEN 'R' WHEN (...
true
8dac7fff8464bd1334b7795bbb37e68b58c56f63
SQL
MishaAvizhen/ServiceStation
/dao/src/main/resources/sql/initAvizhenSto.sql
UTF-8
7,222
3.0625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: localhost Database: avizhen_nc_sto -- ------------------------------------------------------ -- Server version 5.7.12-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESUL...
true
bbd99b4d965777cc75c8d9d23ec061dd1e2cfb36
SQL
nisheeth84/prjs_sample
/reference-code/esr/esale-employees/src/main/resources/db_script/V1_5__add_cognito_settings_and_alter_employees_departments.sql
UTF-8
1,875
3.25
3
[]
no_license
-- tao tam 2 table de co the login duoc. khi nao xong login thi se chuyen sang database tenants sau DROP SEQUENCE IF EXISTS "cognito_settings_sequence_generator"; CREATE SEQUENCE "cognito_settings_sequence_generator" INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 1 CACHE 1; DROP TABLE IF EXISTS "cognito_s...
true
99d2377b1bb24e4903bf913eea21aca765bf8f8f
SQL
clurgen/NSB-gestion-stage
/BDD/NSBBDD.sql
UTF-8
37,248
3.6875
4
[]
no_license
drop database if exists NSBBDD; create database NSBBDD; USE NSBBDD /* création des tables */ create table LesPays( id_les_pays int NOT NULL auto_increment, pays varchar(255), Primary Key(id_les_pays) )ENGINE=InnoDB; create table Dossiers( id_dossier int NOT NULL auto_increment, delai_de_creation varc...
true
4d72354a7fb5a4e648316ab8b4ba695aa011ed00
SQL
TOBACCOCN/docker-example
/glasses_mysql/sql/smart_glass.sql
UTF-8
8,327
3.75
4
[]
no_license
create database smart_glass character set utf8; -- you must change user and password with yourself -- dev create user 'test'@'%' identified by 'test'; grant all PRIVILEGES on smart_glass.* to 'test'@"%"; -- fat -- create user 'smart_glass'@'%' identified by 'smart_glass'; -- grant all PRIVILEGES on smart_glass.* to 's...
true
5128ed25ce0ad3b0df4e46c988613a749f0e39e3
SQL
curious24by7/PayrollSQL
/Payroll.sql
UTF-8
1,766
3.890625
4
[]
no_license
create database payroll_service select * from sys.databases; use payroll_service select DB_NAME(); create table employee_payroll ( id int identity(1,1) primary key, name varchar(100) not null, salary money not null, start date not null ); select * from employee_payroll; insert into employee_payroll values ('B...
true
64c7cd40103c7f2cb0049d70968dcf2e0fecf047
SQL
jamestiotio/dbsys
/labs/lab3/lab3_answers.sql
UTF-8
2,801
4.09375
4
[ "MIT" ]
permissive
create table weather ( date date not null, max_temp real, mean_temp real, min_temp real, max_visibility_miles real, mean_visibility_miles real, min_visibility_miles real, max_wind_speed_mph real, mean_wind_speed_mph real, max_gust_speed_mph real, cloud_cover real, events text, wind_dir_degrees real, zip_code varchar(5)...
true
27ceb5e3c8ef4e2fd0e5cac2967ae3848c27a62f
SQL
daviMustafa/interview-calendar-api
/src/main/resources/db/migration/V1.0.0__create-tables-and-insert-data.sql
UTF-8
4,750
3.765625
4
[]
no_license
CREATE SEQUENCE IF NOT EXISTS candidate_id_seq; CREATE TABLE IF NOT EXISTS candidate ( id BIGINT DEFAULT nextval('candidate_id_seq') NOT NULL, firstName varchar(20) NOT NULL, lastName varchar(20) NOT NULL, PRIMARY KEY (id) ); insert into candidate(id, firstName, lastName) values (1,'Da...
true
3e7108756ce4e89729c19e36f1f80c09b053c527
SQL
Mahamudul-Nobi-Mohon/MealManagement
/meal.sql
UTF-8
4,375
3.15625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 26, 2017 at 07:42 PM -- Server version: 5.6.20 -- PHP Version: 5.5.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
70368675dbd7d4d88edf39c97d8e667cb70580ed
SQL
BigFinger494/bigfinger494.github.io
/dantist/docplomb_mysql_create.sql
UTF-8
680
2.90625
3
[]
no_license
CREATE TABLE `staff` ( `empID` int NOT NULL AUTO_INCREMENT, `surname` varchar(50) NOT NULL, `name` varchar(50) NOT NULL, `patronym` varchar(50) NOT NULL, `speciality` varchar(50) NOT NULL, `picture` varchar(255) NOT NULL, PRIMARY KEY (`empID`) ); CREATE TABLE `services` ( `serID` bigint NOT NULL AUTO_INCREMENT...
true
d061a12b68d7eb316964fd767bb3e0a9940f9329
SQL
michaelrodriguez23/SoftwareGuildBootCamp
/Summatives/M4/DB/heroDB.sql
UTF-8
1,918
3.828125
4
[]
no_license
DROP DATABASE IF EXISTS heroDB; CREATE DATABASE heroDB; USE heroDB; CREATE TABLE superpower ( superpowerId INT PRIMARY KEY AUTO_INCREMENT , power VARCHAR(40) NOT NULL); CREATE TABLE hero( heroId INT PRIMARY KEY AUTO_INCREMENT NOT NULL, heroName varchar(20) NOT NULL, heroDescription VARCHAR(...
true
60cdd704df3a88b754897ac1f78c48405555b971
SQL
BackupTheBerlios/v-q-svn
/tags/3/doc/pgsql/log.sql
UTF-8
466
2.609375
3
[ "BSD-2-Clause" ]
permissive
CREATE TABLE "log" ( "type" character(1) not null, "msg" text default '' not null, "ip" text default '' not null, "domain" text default '' not null, "login" text default '' not null, "time" timestamp with time zone DEFAULT now() not null, "msg1" text default '' no...
true
ba19a8d853de7b1cab13e8e3ac47478978455aa3
SQL
changyeon2/Algorithm
/leetcode/problem 181/Oracle/solution 1.sql
UTF-8
258
4
4
[ "MIT" ]
permissive
-- Using INNER JOIN SELECT Name AS "Employee" FROM ( SELECT Emp1.Name AS Name, Emp1.Salary AS Salary, Emp2.Salary AS ManagerSalary FROM Employee Emp1 INNER JOIN Employee Emp2 ON Emp1.ManagerId = Emp2.Id ) WHERE Salary > ManagerSalary;
true
fec3c91c90e8917ee13b43e89fe349d3ab9d1fd4
SQL
JitenderJoshi/CodingAssessment
/Assessment1/sql/queris.sql
UTF-8
1,732
3.21875
3
[]
no_license
create table Tb_Batch( Batch_Id int NOT NULL, Requestor varchar(10) NOT NULL, Request_Date_Time date NOT NULL, Request_Status varchar(10) NOT NULL, Reqeust_For_System varchar(10) NOT NULL, primary key (Batch_Id) ); create table Tb_Batch_Item( Batch_Id int NOT NULL, Item int NOT NULL, Name nvarchar2(30) NOT N...
true
c4120c2f5426e5250d0024edb06bf240c4da3076
SQL
xianminzhou/ykb
/src/main/java/com/seecen/dd/xxxsys/doc/ykb.sql
UTF-8
40,050
2.921875
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : MySQL Source Server Type : MySQL Source Server Version : 80011 Source Host : localhost:3306 Source Schema : ykb Target Server Type : MySQL Target Server Version : 80011 File Encoding : 65001 Date: 06/01/2020 14:44:37 *...
true
b77ec01134b1c058f6395b68889a543c34882041
SQL
Vaghasiyayash/students-marks-management-system
/Student Marks Management System/svmit.sql
UTF-8
5,100
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 06, 2018 at 08:49 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
2a7bc62054d579786c6fb353b87fb7be5d7d6b10
SQL
gurpreet19/ec198392_wht
/Database/configuration/03_02_headless_tool/Delta_WST/TargetPackageDefinitions/ECDP_STREAM_ANALYSIS_BODY.sql
UTF-8
18,036
2.578125
3
[]
no_license
CREATE OR REPLACE PACKAGE BODY EcDp_Stream_Analysis IS /**************************************************************** ** Package : EcDp_Stream_Analysis ** ** $Revision: 1.21 $ ** ** Purpose : This package is responsible for data access to ** stream analysis properties. ** ** Documen...
true
aca803fb4b51fc3c7a8b0f5cb17085bf1f7f43ed
SQL
julienshim/sql-playground
/SubQueries/correlated_subqueries.sql
UTF-8
339
4.09375
4
[]
no_license
SELECT name, department, price FROM products as p1 WHERE p1.price = ( -- p1. is being explicit SELECT MAX(price) FROM products AS p2 WHERE p2.department = p1.department ); SELECT p1.name, ( -- p1.name to eliminate ambiguity SELECT COUNT(*) FROM orders as o1 WHERE o1.product_id = p1.id ) AS num_orders FR...
true
440aaf0dd94724fce3eaf36381d28cb9163beff2
SQL
vargapatrikadam/com.storeapp
/storeappdb.sql
UTF-8
8,295
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 20, 2019 at 12:50 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
3774f89b3209d2b543155474468bbd18add50722
SQL
niaid/python_biologist
/10_databases/Other/taxonomy_lab/database_ncbi_taxon_demo.sql
UTF-8
1,689
3.21875
3
[]
no_license
DROP SCHEMA IF EXISTS ncbi_taxon; CREATE SCHEMA ncbi_taxon; USE ncbi_taxon; DROP TABLE IF EXISTS `ncbi_names`; CREATE TABLE `ncbi_names` ( `tax_id` int unsigned NOT NULL, `name_txt` varchar(255) NOT NULL, `unique_name` varchar(255) NOT NULL DEFAULT '', `name_class` varchar(63) NOT NULL ); LOAD DATA LOCAL ...
true
6ba69310e57ae453e9e68a573a61c810327d1e9e
SQL
cfauch/horcrux
/src/test/resources/dataset/v2/upgrate_to_v2.sql
UTF-8
358
2.796875
3
[ "Apache-2.0" ]
permissive
-- apply all changes on database to upgrade it to v2 CREATE TABLE IF NOT EXISTS HORCRUX_USERS ( id UUID PRIMARY KEY, name VARCHAR(64), profile VARCHAR(32) ); -- set to true the current version of the database --UPDATE horcrux_versions SET active = TRUE WHERE number = 2; --UPDATE horcrux_versions S...
true
b6699f0be3a4b0e398fd08d723cf0b6e98d21a8d
SQL
forgotten2323/project_web_dpw
/project_web.sql
UTF-8
1,822
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 07, 2021 at 09:37 AM -- Server version: 10.4.19-MariaDB -- PHP Version: 8.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
d8c7379233c3bb71a4cc62a505807aadcefe9bb3
SQL
sisdev/web-crm
/sales_target.sql
UTF-8
1,833
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Aug 18, 2018 at 12:49 PM -- Server version: 5.7.19 -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
97f1ae53ae142f030232ebe66db9cd1fa690259e
SQL
NTXpro/NTXbases_de_datos
/DatabaseNTXpro/ERP/Tables/OrdenServicioReferencia.sql
UTF-8
584
2.765625
3
[]
no_license
CREATE TABLE [ERP].[OrdenServicioReferencia] ( [ID] INT IDENTITY (1, 1) NOT NULL, [IdOrdenServicio] INT NULL, [IdReferenciaOrigen] INT NULL, [IdReferencia] INT NULL, [IdTipoComprobante] INT NULL, [Serie] VARCHAR...
true
263da16eff9f86e0e6346e95ca9cbab2f1069065
SQL
kmbbeltran/Fake-Grocery-Database
/grocery.sql
UTF-8
16,267
3.5
4
[]
no_license
-- Project Database -- Katherine Beltran -- 100939080 -- SQL Grocery Database -- Drop old versions drop table if exists products; drop table if exists departments; drop table if exists employees; drop table if exists equipments; drop table if exists equipment_employee; BEGIN TRANSACTION; -- Create the Database Tabl...
true
0c595b9ce5dce08aa1546235a902595be356cd98
SQL
bpasbuddies/buddies2
/MyProjects/eEMRT/EEMRT/Procedures/SP_GET_SUB_CLIN.sql
UTF-8
999
3.5625
4
[]
no_license
CREATE OR REPLACE PROCEDURE eemrt.SP_GET_SUB_CLIN( p_UserId varchar2 DEFAULT NULL , P_CLIN_ID NUMBER DEFAULT 0 , P_SUB_CLIN_ID NUMBER DEFAULT 0 , REC_CURSOR OUT SYS_REFCURSOR) AS BEGIN SP_INSERT_AUDIT(p_UserId, 'SUB_CLIN_ID Get SUB Clin details for CLIN_ID= '||P_CLIN_ID||' P_SUB_CLIN_ID='||P_S...
true
b61f4c9e8da5b908dda95f6f88a901075271c05c
SQL
WinningLiu/SCU
/COEN/coen178/Labs/Lab 4/test5.sql
UTF-8
388
3.078125
3
[]
no_license
Create or Replace Procedure setSalaries(low in INTEGER, high in INTEGER) As Cursor Emp_cur IS Select * from AlphaCoEmp; -- Local variables l_emprec Emp_cur%rowtype; l_salary AlphaCoEmp.salary%type; BEGIN for l_emprec IN Emp_cur loop l_salary := ROUND(dbms_random.value(low,high)); update AlphaCoEmp set salary = l_salary...
true
2872f922628670d94b7a7c031350190ae4b26fd6
SQL
yusufnb/cs-410-project
/schema.sql
UTF-8
490
2.953125
3
[]
no_license
/* Blogs table for the visualization. This table is loaded by the script create-blog-corpus.js */ CREATE TABLE `blogs` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `gender` varchar(20) DEFAULT NULL, `age` int(11) DEFAULT NULL, `text` text, `date` date DEFAULT NULL, `lat` float DEFAULT NULL, `lon` flo...
true
945a34c455b42531e3ac9094161cba6d80c22d78
SQL
fernandofogliato/auth-service
/src/main/resources/db/migration/V1.0.0__create_initial_tables.sql
UTF-8
1,441
3.21875
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS "user" ( username VARCHAR(50) NOT NULL PRIMARY KEY, email VARCHAR(50), password VARCHAR(500), activated BOOLEAN DEFAULT FALSE, activation_key VARCHAR(50) DEFAULT NULL, reset_password_key VARCHAR(50) DEFAULT NULL ); CREATE TABLE IF NOT EXISTS authority ( name VARCHAR(50) NOT NUL...
true
b3a128f6c140861c865300d4d119284d48c67683
SQL
Amargupta12345/Easy-Apptitude-Test
/db/aptitude.sql
UTF-8
8,298
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 04, 2018 at 03:29 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
1fd83b96b64cb8e2a75d96bd35499ff436edfe12
SQL
MarcoWilhelm/Ubifeed
/DB_sql_tables_v3.sql
UTF-8
10,959
3.671875
4
[]
no_license
DROP SCHEMA if exists ubifeed; CREATE SCHEMA ubifeed; CREATE TABLE ubifeed.countries ( country_id SERIAL PRIMARY KEY, nme VARCHAR(30) NOT NULL ); CREATE TABLE ubifeed.cities ( city_id SERIAL PRIMARY KEY, nme VARCHAR(30) NOT NULL, country_id INT N...
true
a626afb5dbe72aea369a1eacd6c34d4caf966c17
SQL
Igor147/InfoPharma
/infopharma.sql
UTF-8
99,869
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 01-Jun-2020 às 01:42 -- Versão do servidor: 10.4.11-MariaDB -- versão do PHP: 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
true
3554194095fc1e6c3a1b90ee1551475850b11208
SQL
satria71/Hotel-Reservation
/db_hotel.sql
UTF-8
14,132
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 25, 2019 at 06:48 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
ba55e0cb70e796aa68db803d3dcb2ee1ca0993bf
SQL
TchokoApps/OracleSql
/referent_31082018/Einfaches_SELECT.sql
ISO-8859-1
3,057
3.765625
4
[]
no_license
--Einfaches SELECT SELECT empno ,ename ,job ,hiredate ,deptno FROM EMP; ---------------------------------------------- SELECT emp.EMPNO ,emp.ename ,emp.deptno FROM emp; -------------------------------------------------- --DISTINCT unterscheidbare werte select ALL --zei...
true
31aa5cdbafdcb4d778e392dda6707af3dd21571a
SQL
nbena/LibraryManager
/Docker/fill_tables.sql
UTF-8
2,736
3.34375
3
[]
no_license
-- LibraryManager a toy library manager -- Copyright (C) 2018 nbena -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your opt...
true
84a7e2c3cf48cdbe2edb33dd1b6a53b2bd6e9e55
SQL
Leshy4/SQL-Database-Design
/4. Intro to SQL/exercise_SOLUTIONS/SQL scripts/ch14/fig14-02.sql
UTF-8
855
2.515625
3
[]
no_license
SAVEPOINT before_invoice; INSERT INTO invoices VALUES (115, 34, 'ZXA-080', '30-AUG-06', 14092.59, 0, 0, 3, '30-SEP-06', NULL); SAVEPOINT before_line_item1; INSERT INTO invoice_line_items VALUES (115, 1, 160, 4447.23, 'HW upgrade'); SAVEPOINT before_line_item2; INSERT INTO invoice_line_item...
true
70291a3bacec772af5ebab67a4bd7a5466775fec
SQL
allpushkin/486323-doingsdone
/schema.sql
UTF-8
1,026
3.703125
4
[]
no_license
CREATE DATABASE IF NOT EXISTS doingsdone_486323 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; USE doingsdone_486323; CREATE TABLE IF NOT EXISTS users ( user_id INT AUTO_INCREMENT PRIMARY KEY, date_registration TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, email VARCHAR(128) NOT NULL UNIQUE, ...
true
8bb9da29f82aa6276249cdc912569dc5ecc12eda
SQL
c-j-lh/weiqi
/weiqi.sql
UTF-8
2,474
3.828125
4
[]
no_license
drop database if exists weiqi; create database weiqi; use weiqi; create table Country( name varchar(100), flag varchar(1000), -- image url history text, primary key (name) ); create table Player( name varchar(100) not null, countryName varchar(100) null, ranking varchar(5), DOB ...
true
6df12bad790b818b4fb7dc687a085465ac1ba4f5
SQL
microservices-course-itmo/designing_microservices_course
/order-management-service/ordermanagement-app/src/main/resources/db/migration/V1.0.0__init.sql
UTF-8
661
3.21875
3
[]
no_license
CREATE SCHEMA IF NOT EXISTS order_management; CREATE TABLE order_management.order_details ( id INT NOT NULL PRIMARY KEY, order_id INT NOT NULL, weight INT NOT NULL, tariff_id INT, duration BIGINT, price NUMERIC(6, 2) ); CREATE TABLE order_management.orders ( id ...
true
3822c293cf0dcd9c14b6d09e852287b5164c2d60
SQL
nwillems/adventure-reader
/setup-scripts/rsstat-create.sql
UTF-8
1,077
4.125
4
[]
no_license
PRAGMA foreign_keys = ON; CREATE TABLE IF NOT EXISTS blogs ( blog_id INTEGER PRIMARY KEY, blog_url TEXT ); CREATE TABLE IF NOT EXISTS logs ( log_id INTEGER PRIMARY KEY, blog_id INTEGER DEFAULT 0 REFERENCES blog(blog_id) ON DELETE SET DEFAULT, log_start INTEGER, log_end INTEGER ); CREATE INDEX...
true
b4c976fcff18db7a4959c854ce2dc50559e2d264
SQL
molokovskikh/af_reportsystem
/migrations/572_00_addReportFiles.sql
UTF-8
598
3.609375
4
[]
no_license
create table reports.FilesSendWithReport ( Id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, FileName VARCHAR(255), Report BIGINT UNSIGNED, primary key (Id) ); alter table reports.FilesSendWithReport add index (Report), add constraint FK_reports_FilesSendWithReport_Report foreign key (...
true
fb266288e2a4325c836b41f68f77d3ad4faae443
SQL
Alxtss/Portal_project
/bd_portal.sql
UTF-8
670
3.375
3
[]
no_license
create database bd_portal; use bd_portal; -- tablas: usuarios, Login, Notas, Materias, -- drop database bd_portal; create table usuario( id int auto_increment primary key, usuario varchar(25), clave varchar(25) ); create table alumno( carnet int primary key not null, nombre varchar(50), carrera varchar(50), ...
true
3ab72ffa811e54c5ef714fe05aa981007d9eebe5
SQL
lyntco/wdi_melb_homework
/gumballs/robert_will/w3d1/memetube/memetube.sql
UTF-8
293
2.671875
3
[]
no_license
DROP TABLE videos; CREATE TABLE videos ( id SERIAL4 PRIMARY KEY, title VARCHAR(40), description TEXT, url VARCHAR(100), genre VARCHAR(20) ); INSERT INTO videos (title,description,url,genre) VALUES ('Old Spice','A famous TV commercial','https://www.youtube.com/watch?v=owGykVbfgUE','Comedy');
true
68213795cb152e4ba8438451a5df9bccf3c22199
SQL
ArturFortunato/SGIF-Database
/schema.sql
UTF-8
6,145
3.265625
3
[]
no_license
--------------------------------------------- --- CREATE TABLES --- --------------------------------------------- drop table if exists Solicita cascade; drop table if exists SegmentoVideo cascade; drop table if exists Video cascade; drop table if exists Vigia cascade; drop table if exists Camar...
true
14a1343b7c9efa802e370144c89a437178ac1318
SQL
msingh97/fullstack-nanodegree-vm
/vagrant/tournament/tournament.sql
UTF-8
480
3.34375
3
[]
no_license
-- Table definitions for the tournament project. -- -- Put your SQL 'create table' statements in this file; also 'create view' -- statements if you choose to use it. -- -- You can write comments in this file by starting them with two dashes, like -- these lines here. -- Name-id mappings create table players (id int pr...
true
1b198a5569fd3d017191b637bc1c0a4ca2e4346b
SQL
infrastructurebuilder/ibdata-reference-root
/ibdata-maven-plugin/src/test/resources/file.sql
UTF-8
298
3.234375
3
[]
no_license
DROP TABLE IF EXISTS TEST; CREATE TABLE TEST( ID INT PRIMARY KEY, NAME VARCHAR(255), BIRTHDAY DATE, AGE INT); INSERT INTO TEST VALUES(1, 'Hello', '2001-01-02', 18); INSERT INTO TEST VALUES(2, 'World', '2000-02-01', 19); SELECT * FROM TEST ORDER BY ID; UPDATE TEST SET NAME='Hi' WHERE ID=1;
true
b1e7eb3ef6eb7a1cde703eb143c1018083910808
SQL
ousseinetech/DWWM5
/40-vendredi/requetes-3.sql
UTF-8
3,073
4.21875
4
[]
no_license
/* Clés étrangères */ /* Syntaxe globales CREATE TABLE table1 ( id INT AUTO_INCREMENT, ... PRIMARY KEY(id) ); CREATE TABLE table1b ( id INT AUTO_INCREMENT, ... PRIMARY KEY(id) ); CREATE TABLE table2 ( id INT AUTO_INCREMENT, ... id_table1 INT, id_table1b ...
true
abe5ddfa9410ca667740de037b4d74706bac7dba
SQL
Tobbe/kbf-v2
/backup/karlskronabergs.sql
UTF-8
27,690
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.8.1 -- http://www.phpmyadmin.net -- -- Host: karlskronabergsport.se.mysql:3306 -- Generation Time: Mar 23, 2017 at 09:48 PM -- Server version: 5.5.54-MariaDB-1~wheezy -- PHP Version: 5.4.45-0+deb7u7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
71942affedb58fadb67d6924bb6e1216a57a52f7
SQL
Robert-025/SENAI_2S
/2021-1S-2D/sprint_2_backend/SpMedicalGroup/Banco de dados/senai_spmedgroup_01_DML.sql
ISO-8859-1
1,814
3.359375
3
[]
no_license
USE SPMEDICALGROUP; --VALORES TRANSFERIDOS PELA IMPORTAO DE DADOS -- Inserindo horario de abertura e de fechamento na tabela clinicas UPDATE clinicas SET horarioAbertura = '09:00:00', horarioFechamento = '18:00:00' WHERE idClinica = 1; -- Atualizando as consultas no-atualizadas UPDATE consultas SET idSituacao = 2 WH...
true
1764c3b0c88666e27124ebe5445bbf7c163b215f
SQL
chjoy/test
/doc/人行模型评分卡所需sql/4.sql
UTF-8
2,516
3.5
4
[]
no_license
-- 匹配查询企业之过去12个月/13-24个月各收款人名称收款金额的相关系数 create table tmp_4_1 as ( select B.*,C.year_count as year_count1 from (select distinct CRDTORNAME,DEBTORNAME from psdas_o_pay_fact where DEBTORNAME in ('长沙冰风之洋酒业有限公司','长沙烁铪信息科技有限公司','长沙万印通印刷材料有限公司','湖南天穗农业科技有限公司','湖南博林高科股份有限公司','湖南汇富医疗器械有限公司','湖南紫博纸业有限责任公司','长沙民顺纸业有限公司',...
true
f519dee26364c7637a6bae7fe5099e8d22f43803
SQL
joyhurlburt/hoothousing
/dbBackup/hoothousingdb_routines.sql
UTF-8
16,016
2.84375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.19, for osx10.7 (i386) -- -- Host: hoothousing.cvkyicyt5jgc.us-west-2.rds.amazonaws.com Database: hoothousingdb -- ------------------------------------------------------ -- Server version 5.6.19-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_...
true
0ac90e099b2a05952e47b59996c3d70c91c5cce8
SQL
andreagranados/designa
/metadatos/componentes/toba_asistente_abms/dump_146.sql
UTF-8
5,910
2.859375
3
[]
no_license
------------------------------------------------------------ --[146]-- Entidades Otorgantes ------------------------------------------------------------ ------------------------------------------------------------ -- apex_molde_operacion ------------------------------------------------------------ --- INICIO Grupo ...
true