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
a3639e293fecf0f3c681b8d7255788a235754346
SQL
SameerKhan-Dev/BootcampX
/3_queries_group-by/5_average_completion_time.sql
UTF-8
601
4.28125
4
[]
no_license
/* Get currently enrolled students' average assignment completion time. - Select the students name and average time from assignment submissions. - Order the results from greatest duration to least greatest duration. - A student will have a null end_date if they are currently enrolled. */ SELECT students.name...
true
2f6d6e2bc3994084ec4770e40adab8ada6b9ec8f
SQL
MirkoC/penkala
/test/com/verybigthings/penkala/test_db_scripts/updatables/schema.sql
UTF-8
1,502
4.0625
4
[ "MIT" ]
permissive
CREATE SCHEMA public; CREATE EXTENSION IF NOT EXISTS pgcrypto; CREATE TABLE normal_pk ( id serial NOT NULL PRIMARY KEY, field1 text NOT NULL, field2 text, json_field jsonb, array_field text[], array_of_json json[] ); CREATE TABLE uuid_pk ( id uuid NOT NULL PRIMARY KEY DEFAULT gen_random_uuid (), fiel...
true
7edc7bf879639a9c219cca708546ac6befc28a2b
SQL
daijiale/DaiJiale-ProfessionalNotes
/DaiJiale-PHP/Php_Lecture_Demo/samples.sql
UTF-8
6,598
3.328125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 2.11.6 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2008 年 12 月 10 日 08:05 -- 服务器版本: 5.0.51 -- PHP 版本: 5.2.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_R...
true
c6526b22edab301c1c5740e3308f08a3dc293ba9
SQL
danz50of/DZCommandLibrary
/OracleSQL Commands/FUNCTION_Get_total_qty.sql
UTF-8
356
2.796875
3
[]
no_license
CREATE OR REPLACE FUNCTION Get_total_qty(OP_ID_ IN VARCHAR2) RETURN NUMBER IS scrap_qty number; cursor Get_Scrap_Qty IS select get_total_scrap_qty(op_id_) + get_total_prod_qty(op_id_) from dual; BEGIN OPEN Get_Scrap_Qty; fetch Get_Scrap_Qty into scrap_qty; close Get_Scrap_Qty; return(scrap_qty); END; --grant execu...
true
b068ff9ade1ea6e33c7d66282e0c4f1a8668151e
SQL
JHBlackburn/UNF2020
/UNF2020/UNF2020/Scripts/PostDeploy/SeedFullMoon.sql
UTF-8
102,176
3.140625
3
[]
no_license
GO --SOURCE: Kaggle.com https://www.kaggle.com/lsind18/full-moon-calendar-1900-2050/tasks Accessed 09.16.2020 DROP TABLE IF EXISTS #tempFullMoon CREATE TABLE #tempFullMoon ( FullMoonDate DATE NOT NULL PRIMARY KEY, FullMoonDayOfWeek VARCHAR(100) NOT NULL, FullMoonTimeOfDay TIME NOT NULL, ) INSERT INTO #tempFullMo...
true
e9bf8b56e717a60c3f81ccfda920a4b5f410e05d
SQL
felixalguzman/base-de-datos-1
/Proyecto Final/Proyecto final/Proyecto final/Preguntas/Pregunta #2.sql
UTF-8
13,347
3.390625
3
[]
no_license
2. ¿Cuál es el navegador más usado para realizar las reservas de las boletas? select n.Nombre, n.Cantidad_Ventas_Online from (select N.Nombre, count(*) as Cantidad_Ventas_Online from Navegadores N, Dispositivos D, Dispositivos_Navegadores DN, Boletas_Ventas_Online BVO where N.codigo = DN.Codigo_Navegador AND D...
true
3e5ab934f922be67e43f137f774a7cc5f4c4b12a
SQL
cbsProcessMining/E-H
/IBC Backup/Transformations/SAP ECC Order to Cash/Transformation/Backup of Transformation - Create View O2CKNKK.sql
UTF-8
1,665
3.359375
3
[]
no_license
/*DESCRIPTION: 1. Transformation Description: This transformation creates a view with the following name: "O2C_KNKK" 2. Required Tables: KNKK VBAK _CEL_O2C_CASES 3. Required Columns: C.MANDT C.VBELN KNKK.AEDAT KNKK.AETXT KNKK.CASHD KNKK.DBMON KNKK.DTREV KNKK.ERDAT KNKK.KKBER KNKK.KNKK KNKK.KUNNR KNKK.MAND...
true
e4d26a9fc06c825b8f23038f083de1bdd8c44d70
SQL
captaink4821/ClassProject1_back-end
/DBScripts/ClassProject_160304_160838.sql
UTF-8
1,590
2.984375
3
[]
no_license
-- Device [Device] create table "APP"."DEVICE" ( "OID" integer not null, "DEVICE_ID" varchar(255), "NOTIFICATION_DEVICE_ID" varchar(255), "MODEL" varchar(255), "PLATFORM" varchar(255), "PLATFORM_VERSION" varchar(255), "BROWSER" varchar(255), "CREATEDAT" timestamp, "UPDATEDAT" timest...
true
3705e2a47fdbebd289e8df6dc0a55cf52f3251fb
SQL
Oneimu/my_repo
/My_sql1.sql
UTF-8
1,374
2.921875
3
[]
no_license
use `lucky`; create table `Situation_report`( `S/N` INT(72) NOT NULL AUTO_INCREMENT, `Date` varchar(30), `Confirmed cases` int(30), `Death` int(30), `Recovered Cases` int(30), primary key (`S/N`) ); insert into `Situation_report` Values (1,'MAR1',87137,2977, 42700); insert into `Situation_report` Values ...
true
2c70f59dc6358a0d96bd910f54c8ac87d6b4ebbf
SQL
TooFast27/TooFast27-GCDHWProj
/DWH/DB.WebAgencyDWH/Fact/Tables/PageViews.sql
UTF-8
808
2.984375
3
[]
no_license
CREATE TABLE [Fact].[PageViews] ( [PageViewsSurrogateSurrogateKey] INT IDENTITY (1, 1) NOT NULL, [UserSurrogateKey] INT NOT NULL, [LocationMiniSurrogateKey] INT NOT NULL, [PageViewID] INT NOT NULL, [PageviewDatetime] ...
true
6c9178ab037d4182db982478f1cb0ec33ba42aed
SQL
rohit-dsouza/cs6083
/db_pro_1.sql
UTF-8
23,258
3.28125
3
[]
no_license
CREATE TABLE `Student` ( `sid` INT NOT NULL AUTO_INCREMENT, `sname` VARCHAR(45), `uni` VARCHAR(45), `degree` VARCHAR(45), `major` VARCHAR(45), `gpa` FLOAT(2), `spwd` VARCHAR(100), PRIMARY KEY (`sid`) ); CREATE TABLE `StudInfo` ( `sid` INT NOT NULL, `keyword` VARCHAR(45), PRI...
true
e941e64ff7ec45f189cbbc5bf607b9d43982ad8e
SQL
felipereis12/smarterp
/oic_db/schema/oic_db_plan_from_to_version.sql
UTF-8
3,804
2.84375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `oic_db` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `oic_db`; -- MySQL dump 10.13 Distrib 8.0.17, for Win64 (x86_64) -- -- Host: oic-db.cluster-cgzshounia8v.us-east-1.rds.amazonaws.com Database: oic_db -- ------------------------------------------------------ -- Server version 5.6....
true
718baa3ba0851d2e0d37d2946e6a5db1f2ddde8c
SQL
abhishekDeshmukh74/code-signal-challenges
/arcade/database/welcome-to-the-table/4.sql
UTF-8
221
2.921875
3
[]
no_license
CREATE PROCEDURE projectsTeam() BEGIN SELECT DISTINCT name FROM projectLog ORDER BY name ASC; END -- Best Solution CREATE PROCEDURE projectsTeam() BEGIN SELECT DISTINCT name FROM projectLog ORDER BY name; END
true
7226d7296564b05f694d11787cd613f6b49f1437
SQL
tangaot/gmall
/src/ca/tangaot/gamll/ads/ads_user_action/insert_ads_user_action.sql
UTF-8
1,398
3.703125
4
[]
no_license
-- 用户行为漏斗分析 USE gmall; with tmp_page as ( select '2021-06-16' dt, sum(if(array_contains(pages, 'home'), 1, 0)) home_count, sum(if(array_contains(pages, 'good_detail'), 1, 0)) good_detail_count from...
true
4c2fd2729d02c2eb6fe385d076516b4a59142b0e
SQL
bellmit/origin
/family_order/sql/.svn/pristine/28/2803180e96776ad11b11fed43cdd583e3f7e7088.svn-base
UTF-8
771
3.5
4
[]
no_license
--IS_CACHE=N SELECT DEPART_KIND_CODE 部门类型, ACCEPT_DATE 受理月份, UPDATE_DEPART_ID 受理部门, RELATION_TRADE_ID 台账标识 FROM (SELECT E.DEPART_KIND_CODE, TO_CHAR(A.ACCEPT_DATE, 'YYYYMM') ACCEPT_DATE, A.UPDATE_DEPART_ID, A.RELATION_TRADE_ID FROM TF_F_USER_SALE_ACTIVE A, TD_M_DEPART E ...
true
e880ad782e9c73b25bdebda0cb4d9bd00b1712e8
SQL
YiZhan0410/PhotoPresentationMaker
/prototype.sql
UTF-8
830
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Apr 21, 2021 at 10:31 PM -- Server version: 5.7.32 -- PHP Version: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `prototype` -- -- -------------------------...
true
99fe0e6d3b3e927519b085bc6597a58cbeb0bb2b
SQL
nckdorsett/Dev10GitRepo
/LabHotelFunStyle.sql
UTF-8
4,103
3.484375
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Fri Oct 16 10:49:19 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
15439374608ab651f2ac4e8439b8afb339f2b754
SQL
alanzhong/predictit-explorer
/src/backend/postgres/sql/create_daily_aggregation_table.sql
UTF-8
566
3.78125
4
[]
no_license
/** Daily aggregation table */ create table if not exists observation_day as select contract_id, avg(buy_yes) as buy_yes, avg(buy_no) as buy_no, avg(sell_yes) as sell_yes, avg(sell_no) as sell_no, avg(last_close) as last_close, avg(last_trade) as last_trade, date_trunc('day', hour)...
true
6ed128863e7144ab7ac81b9a6b741d664b7c6749
SQL
tayduivn/training
/rdbms/update/sacwis_615.sql
UTF-8
762
2.75
3
[]
no_license
--STGAP00015604 - Release(3.4) DBCR: Correct whitespace in message --The attached SQL updates an existing message to remove white space from the message which is causing a JavaScript error on the Portal Login page, preventing users from accessing the Registration page. UPDATE CAPS.MESSAGE SET TXT_MESSAGE = 'The...
true
e09707ed9bca1715eb74584d0061004c773605a9
SQL
cuba-labs/bpm-samples
/modules/core/db/init/hsql/10.create-db.sql
UTF-8
1,331
3.1875
3
[]
no_license
-- begin BPMSAMPLES_CONTRACT create table BPMSAMPLES_CONTRACT ( ID varchar(36) not null, VERSION integer not null, CREATE_TS timestamp, CREATED_BY varchar(50), UPDATE_TS timestamp, UPDATED_BY varchar(50), DELETE_TS timestamp, DELETED_BY varchar(50), -- NUMBER_ varchar(255) not nu...
true
9d57f59b84a42a2833bc0fe7de658cc7ee5d740f
SQL
mahmoodfoysal/Web-engineering-project-3.2
/vs_project.sql
UTF-8
8,629
2.734375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 17, 2019 at 05:57 AM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.1.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
fd561d2634edc9dba002322191b173105bca3ede
SQL
Fourteen-579/oracle
/test2/fourteen_pdborcl.sql
UTF-8
255
2.71875
3
[]
no_license
show user; CREATE TABLE mytable (id number,name varchar(50)); INSERT INTO mytable(id,name)VALUES(1,'zhang'); INSERT INTO mytable(id,name)VALUES (2,'wang'); CREATE VIEW myview AS SELECT name FROM mytable; SELECT * FROM myview; GRANT SELECT ON myview TO hr;
true
6e1f7f74451f0669c9695299b74581e6134a3e97
SQL
fivetran/benchmark
/query/query75.sql
UTF-8
4,108
4.03125
4
[]
no_license
-- query75 WITH all_sales AS (SELECT d_year, i_brand_id, i_class_id, i_category_id, i_manufact_id, Sum(sales_cnt) AS sales_cnt, Sum(sales_amt) AS sales_amt FROM (SELECT d_year, ...
true
3bcaedf883de6e156b4dbce9ee48a743321343ed
SQL
focusrohan/Project-2
/QuickDatabase/QuickDBD-Free Diagram.sql
UTF-8
4,461
3.203125
3
[]
no_license
-- Exported from QuickDBD: https://www.quickdatabasediagrams.com/ -- Link to schema: https://app.quickdatabasediagrams.com/#/d/xMOau1 -- NOTE! If you have used non-SQL datatypes in your design, you will have to change these here. -- Modify this code to update the DB schema diagram. -- To reset the sample schema, repl...
true
fe1f67fc15eb7f5448bb56e304218e2231d62b39
SQL
adamculp/aws-voice-transcription-rds-callback-php
/data/schema.sql
UTF-8
1,390
3.546875
4
[ "MIT" ]
permissive
CREATE DATABASE IF NOT EXISTS `voice_transcriptions` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; # Table to hold transcriptions, where each word is a record CREATE TABLE `transcriptions` ( `id` int NOT NULL AUTO_INCREMENT, `conversation_uuid` varchar(255) NOT NULL, `channel` varchar(255) NOT...
true
694cfd9b25d8c8970d6ae10fcde05fb1d086ce6f
SQL
Taurusly/nlsm2
/system/data/sql.sql
UTF-8
1,704
3.109375
3
[]
no_license
#商家 drop table if exists nlsm_business; create table nlsm_business( id int(10) unsigned not null auto_increment primary key comment '主键', users varchar(32) not null default '' comment '登录帐号', pwd varchar(32) not null default '' comment '登录密码', tel varchar(32) not null default '' comment '手机-注册', email ...
true
249425ec60185315070c324bf3655e01cb28f6bd
SQL
Maheboopathy/FST-M1
/SQL/Activities/Activity9.sql
UTF-8
916
3.375
3
[]
no_license
REM Script: Activity 9 REM Activity 9 select * from salesman; select * from customers; select a.customer_name as "CUSTOMER NAME", a.city, b.salesman_name as "salesman name", b.commission from customers a inner join salesman b on a.salesman_id=b.salesman_id; select a.customer_name, a.city, a.grade, b.salesman_na...
true
8d218e73c4cc821803b488348117e72a58f15680
SQL
tsinmoua/Burger
/db/schema.sql
UTF-8
214
2.5625
3
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS burgers_db; CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE burgers ( id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, burger_name VARCHAR(30) UNIQUE NOT NULL, devoured BOOLEAN );
true
39fedb1f23f8414c6e1daec606a730b644a39471
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day22/select0108.sql
UTF-8
178
2.640625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-21T01:08:00Z' AND timestamp<'2017-11-22T01:08:00Z' AND temperature>=17 AND temperature<=46
true
756cc0342bea299484fc899e1179a876c13835f3
SQL
offpepe/sd-010-a-mysql-vocabulary-booster
/desafio10.sql
UTF-8
397
3.859375
4
[]
no_license
SELECT products.ProductName AS `Produto`, MIN(order_details.Quantity) AS `Mínima`, MAX(order_details.Quantity) AS `Máxima`, ROUND(AVG(order_details.Quantity), 2) AS `Média` FROM w3schools.products products INNER JOIN w3schools.order_details as order_details ON order_details.ProductID = products.ProductID GROUP BY p...
true
85afe8fa054fe9b0685d25bdd8ccb2e5da8a3e2e
SQL
asd271111/project
/ajax/chatMsg/chat.sql
UTF-8
2,364
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version phpStudy 2014 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2017 年 04 月 19 日 07:19 -- 服务器版本: 5.5.53 -- PHP 版本: 5.4.45 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARA...
true
ca4e00d3148dc02bad618f28c167943c0ebf1e47
SQL
BinAff/School
/Development/Source Code/Sparkle/Sparkle/Database/Billing/Tables/FeeGroup.sql
UTF-8
440
3.484375
3
[]
no_license
CREATE TABLE [Billing].[FeeGroup] ( [Id] BIGINT NOT NULL, [Name] VARCHAR (50) NOT NULL, [FrequencyId] BIGINT NOT NULL, [IsActive] BIT CONSTRAINT [DF_FeeGroup_IsActive] DEFAULT ((1)) NOT NULL, CONSTRAINT [PK_FeeGroup] PRIMARY KEY CLUSTERED ([Id] ASC), ...
true
5b77fd82881d5c9f4fe4216eebe8a8ccdb5b5e8e
SQL
BackupTheBerlios/grouter-svn
/trunk/modules/core/core-domain/src/main/sql/job_state.sql
UTF-8
1,054
3.015625
3
[ "Apache-2.0" ]
permissive
create table job_state ( id bigint(20) not null, createdon datetime, modifiedon datetime, createdby bigint(20), modifiedby bigint(20), name varchar(255), description varchar(255), primary key (id) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; insert into job_state (id,createdon, modifiedon,c...
true
818bd003e7a6f437489a1b75c3a8d1980aaa0945
SQL
ausaki/data_structures_and_algorithms
/leetcode/delete-duplicate-emails/130012566.sql
UTF-8
286
2.75
3
[]
no_license
# title: delete-duplicate-emails # detail: https://leetcode.com/submissions/detail/130012566/ # datetime: Tue Nov 28 17:52:20 2017 # runtime: 1134 ms # memory: N/A # Write your MySQL query statement below delete p1 from Person p1, Person p2 where p1.Email = p2.Email and p1.Id > p2.Id;
true
12523d0638cc9c610da3c0ac41cc82f77ea8dc97
SQL
lndeaver/undergradLabs
/MySQLConnections.sql
UTF-8
1,046
3.78125
4
[]
no_license
/* PROBLEM 1 BEGIN */ /* Perform the following SQL query and paste your results below: */ SELECT * from track WHERE trklength > 6; /* PASTE RESULTS HERE */ trkid,trknum,trktitle,trklength 5,5,Syeeda's song flute,7.00 7,7,Mr. P.C.,6.95 12,12,Syeeda's song flute,7.03 22,10,Clouds,7.20 /* PROBLEM 1 END */ /* PROBLEM 2 B...
true
9433753106a1c054d069aa2421bc0d9bf9de401b
SQL
markzhengma/Word-Game
/db/migrations/migration-091417.sql
UTF-8
1,075
3.078125
3
[]
no_license
-- \c word_game_dev; CREATE TABLE IF NOT EXISTS users ( id SERIAL PRIMARY KEY, username VARCHAR(255) UNIQUE NOT NULL, password_digest TEXT NOT NULL, nickname VARCHAR(255) NOT NULL, email VARCHAR(255), currency INTEGER ); CREATE TABLE IF NOT EXISTS words ( id SERIAL PRIMARY KEY, spell V...
true
84c36728c3dce1c06bef92f1f72181da232d849d
SQL
MyrionSC/P10
/SQL/traffic_lights_single_3_degree.sql
UTF-8
459
3.15625
3
[]
no_license
select t.id, t.point, t.geom, t.degree, t.segments into experiments.rmp10_traffic_lights_single_3_degree from ( select lightnodes.point from experiments.rmp10_trafic_light_nodes_within_10m lightnodes join experiments.rmp10_interesting_nodes inodes on lightnodes.point=inodes.point and lightnodes.degree=3 EXC...
true
97de8be9a12d0d6ac8cab9d0353d6c09efaa8bcb
SQL
hesithaw/SQL
/InteractionBetweenTable3.sql
UTF-8
1,335
2.921875
3
[]
no_license
SET SERVEROUTPUT ON DECLARE i_instance_index ATSD_INS_EQUITY.INSTANCE_INDEX%TYPE; s_object_id ATSD_INS_EQUITY.INSTRUMENT_ID%TYPE; i_count INTEGER; CURSOR cursor_position_account IS select INSTRUMENT_ID from ATSD_INS_EQUITY ; CURSOR cursor_position_account2 IS select INSTRUMENT_ID from ATSD_INS_BILL ; ...
true
92350ee66f881bab5d0a152fde92ace00943edff
SQL
panaarva/react-hooks-app-fullstack
/database.sql
UTF-8
262
2.734375
3
[]
no_license
CREATE TABLE public."user" ( id int8 NOT NULL GENERATED ALWAYS AS IDENTITY, username text NOT NULL, userpassword text NOT NULL, email text NOT NULL, gender text NOT NULL, bornday timestamptz NOT NULL DEFAULT now(), CONSTRAINT user_pkey PRIMARY KEY (id) );
true
204d53fd9c21d1e9e4e480c3b958a859f87fb606
SQL
claymodel/oraclescripts
/monitoring/sga_report.sql
UTF-8
5,576
3.40625
3
[]
no_license
/* This script generates an overview of the memory settings and usage of a database Run the script as an admin user (eg SYS) from within sqlplus. A logfile will be created in the current working directory */ --- set layout options clear breaks set pagesize 9999 set linesize 150 set verify off set echo off set fe...
true
8c1605abc9b9c99b43787b686913d4b0899846ef
SQL
shufork/sc-coc
/coc-clan-war/src/main/resources/db/changelog/changelog-1.sql
UTF-8
4,193
3.484375
3
[]
no_license
--liquibase formatted SQL --changeset cj:1 SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for t_war_log -- ---------------------------- DROP TABLE IF EXISTS `t_war_log`; CREATE TABLE `t_war_log` ( `f_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_...
true
8a50bedea43539a5466fe76b0495c62f2718d46a
SQL
GyrosOfWar/blog
/migrations/20161029080254_create_tables/up.sql
UTF-8
457
3.15625
3
[]
no_license
CREATE TABLE users ( name VARCHAR NOT NULL, pw_hash VARCHAR NOT NULL, id SERIAL PRIMARY KEY ); CREATE TABLE posts ( title VARCHAR NOT NULL, content VARCHAR NOT NULL, id SERIAL PRIMARY KEY, created_on TIMESTAMP WITH TIME ZONE NOT NULL, owner_id INTEGER REFERENCES users (id) NO...
true
8a93426b7d39b6db145ecf4a666eec6336f2a066
SQL
rpmaxwell/ed-data
/eddata/dw/create_school_ft.sql
UTF-8
2,788
3.265625
3
[]
no_license
INSERT INTO dw.school_ft ( nces_school_id ,local_school_id ,local_agency_id ,school_name ,phone_number ,location_address ,location_city ,location_state ,location_zip ,location_county ,school_type ,current_status ,geography_type_id ,union_status ,latitude ,...
true
3dabbb6c2dd9086157bea15bbb3e28643abe0236
SQL
davidxv/hashserv
/hashserv/schema.sql
UTF-8
541
3.109375
3
[ "MIT" ]
permissive
drop table if exists hash_table; create table hash_table ( id integer primary key autoincrement, hash text not null, block text not null ); drop table if exists block_table; create table block_table ( id integer primary key autoincrement, start_hash integer not null, end_hash integer, closed integer not ...
true
e24fd9ce3794a0cb36b5664225e44bcfbcb4f842
SQL
ratanasoth/student-management-system
/kms.sql
UTF-8
19,102
3.453125
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.6.17 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 9.1.0.4867 -- -------------------------------------------------------- /*...
true
35b32e2f4bdc4169438a5469456b05cc8eac6c3d
SQL
N3XT0R/TS3UI
/vendor/bjyoungblood/bjy-authorize/data/schema.sql
UTF-8
472
3.109375
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS `user_role` ( `id` int(11) NOT NULL AUTO_INCREMENT, `roleId` varchar(255) NOT NULL, `is_default` tinyint(1) NOT NULL, `parent_id` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `user_role_linker` ( `user_id` int(11) ...
true
5cef6b179e46547689a5e77ebb6e92991e3f9272
SQL
ddt-sawa/sql_drill_sawa
/1-10_question2.sql
UTF-8
566
3.859375
4
[]
no_license
/*1-10 問2 アンケート回答テーブル(quest)から都道府県ごとの回答者の平均年齢を求めてみましょう。 なお、取り出す列の別名は、それぞれ「都道府県名」「平均年齢」とします。 以下の空欄を埋めて、SQL命令を完成させてください。*/ --取得列 SELECT --都道府県名 prefecture AS 都道府県名, --平均年齢 AVG(age) AS 平均年齢 --テーブル FROM --アンケート回答テーブル quest --グループ化キー GROUP BY --都道府県名 prefecture ;
true
9d87800ebd2113efbbca72826c106043109a1991
SQL
jmalloc/ax
/axmysql/outbox/schema.sql
UTF-8
1,050
3.671875
4
[ "MIT" ]
permissive
-- -- ax_outbox stores the timestamp at which an outbox was created. -- -- The presence of a row in this table indicates that the message has already -- been handled, even if the outbox is now empty. -- CREATE TABLE IF NOT EXISTS ax_outbox ( causation_id VARBINARY(255) NOT NULL, insert_time TIMESTAMP(6) NOT NU...
true
b532a2c518d496e779da8cf3b8ca62898d5d3dbd
SQL
yurifeng/ERP
/target/test-classes/Oracle_erp.sql
UTF-8
1,663
3.375
3
[]
no_license
drop sequence erp_user_id; drop sequence erp_emp_id; create sequence erp_user_id start with 2; create sequence erp_emp_id start with 11; drop table erp_user; drop table erp_emp; create table erp_user( id number(10), username varchar2(25), password varchar2(25) ); alter table erp_user add constraint erp_user_id...
true
8483c6c83ea1495e733ba31c2d45fb197bbf8d51
SQL
abelsharman/dbKapi
/queries.sql
UTF-8
1,505
4.09375
4
[]
no_license
create table user( id int primary key auto_increment, login varchar(255), password varchar(255) ); create table article( id int PRIMARY key, title VARCHAR(255), publication VARCHAR(255), author VARCHAR(255), date date, year int, MONTH int, url VARCHAR(255), content tex...
true
537a7d27bc7bba44931c5de45e08dd3aec8f80f3
SQL
Omarito104/proyecto
/proyecto/CRUD/David/CrudsV1/tamanopresentacion/pvpv_final.sql
UTF-8
7,709
3.28125
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Fri Oct 6 10:20:18 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
bd68e962c111b129fdec001b4b850f57dcd8471a
SQL
hiepbui312/project_php_nhom9
/db/project_php.sql
UTF-8
7,571
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 23, 2021 at 10:11 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
b44686087437ff07a295a576a469ba0734058041
SQL
kingsleychow/CardioDBSg
/SQL/update_HasFound.nectar.is_new.sql
UTF-8
848
3.5
4
[]
no_license
/* -- variants sharing the same codon */ INSERT IGNORE INTO CARDIODB_DEVEL.`HasFound`(uid,source_id,xref,is_colocated) -- variants found in NECTAR -- could be the same allele, co-located, or same codon variants SELECT u.id, CASE f.feature WHEN 'COSMIC' THEN 26 WHEN 'HUMSAVAR' THEN 99 WHEN 'HGMD-PUBLIC' THE...
true
b7a098648553fb32d342a99a4387236a4297fe3a
SQL
EampMejia/satpro
/database/Dump20190102.sql
UTF-8
16,299
3.109375
3
[ "MIT" ]
permissive
CREATE DATABASE IF NOT EXISTS `satpro` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `satpro`; -- MySQL dump 10.16 Distrib 10.1.36-MariaDB, for Win32 (AMD64) -- -- Host: 127.0.0.1 Database: satpro -- ------------------------------------------------------ -- Server version 10.1.36-MariaDB /*!40101 SET @OLD_CHARACT...
true
dc51f96df3041f24353b5e6bcea2993e4a34d5fd
SQL
BackupTheBerlios/ogen-svn
/branches/dev-2.0/OGen-Kick/db/Kick-DBModel-PostgreSQL/table-NWS_Attachment.postgresql.sql
UTF-8
1,106
2.734375
3
[]
no_license
CREATE TABLE "NWS_Attachment" ( "IDAttachment" bigserial NOT NULL, "IFContent" bigint NOT NULL, "GUID" character varying(50) NOT NULL, "OrderNum" bigint NULL, "isImage" boolean NOT NULL, "TX_Name" bigint NULL, "TX_Description" bigint NULL, "FileName" character varying(255) NOT NULL ) WITH (OIDS=FALSE)...
true
fe83bb5c1f4488ecf34ec047f4b36b525449b458
SQL
TwoBrains-Group/TwoBrains
/server/db/scripts/l10n.sql
UTF-8
15,771
3.3125
3
[]
no_license
BEGIN TRANSACTION; SET search_path TO main; TRUNCATE main.apps CASCADE; DO $$ DECLARE -- locales -- en_locale INT2 = (SELECT locale_id FROM main.locales WHERE code = 'en'); ru_locale INT2 = (SELECT locale_id FROM main.locales ...
true
f9e644248de6abfde6b220045d841b4569a661d9
SQL
freeman9998/MyCoding
/Itwill/04.DATABASE_REPORT/2021-01-19/이종원/04.SELECT-문자열함수REPORT.sql
UTF-8
1,300
3.546875
4
[]
no_license
1. Student 테이블에서 jumin 컬럼을 이용해서 1전공이 101번인 학생들의이름과 태어난월일,생일을 출력하시요 SELECT NAME,SUBSTR(JUMIN,3,4)"BIRTHDAY" FROM STUDENT WHERE DEPTNO1 = '101'; SELECT NAME,SUBSTR(JUMIN,3,2)||'월'||SUBSTR(JUMIN,5,2)||'일' "BIRTHDAY" FROM STUDENT WHERE DEPTNO1 = '101'; 2. Student 테이블을 참조해서 1전공이(deptno1 컬럼) 201번인 학생의이름과 전...
true
068e29fe7188995d04dff9438ee8853916256d26
SQL
Rodriguez111/job4j
/chapter_007/src/main/resources/car.sql
UTF-8
2,269
4.1875
4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
--db creating: create database car; -------------------------------------- -- tables creating: CREATE TABLE car_body (id serial primary key, bodyType VARCHAR(60) UNIQUE NOT NULL ); CREATE TABLE engine (id serial primary key, engineType VARCHAR(60) UNIQUE NOT NULL ); CREATE TABLE transmission (id serial primary key, t...
true
2ffdc28eb37e5b08bd92a220ef45f1a6b6d7c4c6
SQL
ansari342/weconnect-technical-test
/Submission/sql-q1.sql
UTF-8
263
4
4
[]
no_license
SELECT c.name as carrier, max(price) as max_price FROM Flights f JOIN Carriers c on c.cid = f.carrier_id WHERE ((origin_city = 'Seattle WA' and dest_city = 'New York NY') or (origin_city = 'New York NY' and dest_city = 'Seattle WA')) GROUP BY carrier_id LIMIT 5
true
a960a412ce02e442e5b6f3d6e5411f588e93017b
SQL
Valaire/gestionrecette
/bd/gestionrecette20170514.sql
UTF-8
2,815
3.46875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Dim 14 Mai 2017 à 03:29 -- Version du serveur : 5.6.17 -- Version de PHP : 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_...
true
90b3db39f1b246871b5614d40e2c997780af76ac
SQL
sipsolutions/horus
/metrics-sample.sql
UTF-8
3,179
2.90625
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
-- we define some OIDs we would like to poll INSERT INTO metrics (id, active, name, oid, description, export_as_label, post_processors, exported_name) VALUES (1, true, 'sysName', '.1.3.6.1.2.1.1.5.0', 'An administratively-assigned name for this managed node. By convention, it''s the node''s fqdn.', true, '{}', 'hostnam...
true
5f58fb141ca51ae447d3ef718af5844f346283cb
SQL
jorgedison/journey-SQL
/Oracle/Monitoring/access.sql
UTF-8
660
3.375
3
[]
no_license
-- ----------------------------------------------------------------------------------- -- Author : Jorge Rodriguez -- Description : Lists all objects being accessed in the schema. -- Call Syntax : @access (schema-name or all) (object-name or all) -- Requirements : Access to the v$views. -- Last Modified: 15/07/...
true
bef64868830e71bce96b578e3a9be2106de59a5b
SQL
jkjudy/VSCoded
/Snapshot/Manufacturer DataSnapView/SQL/TS_Rebates.sql
UTF-8
609
3.265625
3
[]
no_license
SELECT DISTINCT TERM_SET_ID ,TERM_SET_NAME FROM GPO.TS_INFO_HISTORY_OR WHERE PROGRAM_CLASS_CODE = 'REBATE' AND TERM_SET_ID IN ( SELECT DISTINCT CASE WHEN MFR_EXC_REB_TERM_SET_ID IS NOT NULL THEN MFR_EXC_REB_TERM_SET_ID ELSE MFR_STD_REB_TERM_SET_ID END MFR_REB_TERM_SET_ID FROM GPO.PBI_TRANS_4095_...
true
2fba97f1ffb6be4b023545ce60773bab5bdef67c
SQL
jungjaehark/sumbab-1
/startproject/TABLE.sql
UTF-8
5,349
2.796875
3
[]
no_license
CREATE TABLE "STORE" ( "STORE_NUM" int NOT NULL, "ID" varchar2(20) NOT NULL, "CLASSIFY" varchar2(10) NOT NULL, "NAME" varchar2(100) NOT NULL, "PHONE" varchar2(20) NOT NULL, "CITYCODE" varchar2(100) NOT NULL, "DISTRICTCODE" varchar2(100) NOT NULL, "ADDRESS" varchar2(100) NOT NULL, "MENU" varchar2(2000)...
true
865fa90166e4b6b5e73e9925b87dd61716e60636
SQL
dr-you-group/Data-Ingestion-and-Harmonization
/ETLProcess/scripts/SP_A2O_SRC_VISIT_DIMENSION.sql
UTF-8
3,974
3.46875
3
[]
no_license
CREATE PROCEDURE CDMH_STAGING.SP_A2O_SRC_VISIT_DIMENSION ( DATAPARTNERID IN NUMBER , MANIFESTID IN NUMBER , RECORDCOUNT OUT NUMBER ) AS /************************************************************************************************************************************* FileName: ...
true
3f3457e988a51dea187b0d80cf18e41069fe00f5
SQL
cheranrj/PubHub200
/sql/Bookapp.sql
UTF-8
495
2.703125
3
[]
no_license
select * from users; insert into users(NAME,email,PASSWORD)values('cheran','cheranrj@gmail.com','helloword'); insert into users(Name,email,PASSWORD,role_id)values('venky','venky@gmail.com','venkyword',1); insert into books(Name,price) values ('Wings of Fire: An Autobiography of Abdul Kalam',250); select * from role...
true
abf8ac4ffe162f1501dec36f3ba7423fa0516edf
SQL
James-DBA-Anderson/The-DBA-War-Chest
/Script Library/DB Status/DB File Info.sql
UTF-8
593
3.640625
4
[]
no_license
-- DBA War Chest -- Show Database File Info -- 2015-03-24 -- Display all data files for all databases with size and growth info SELECT d.name AS [Database], Sf.dbid, SF.fileid, SF.name [LogicalFileName], CASE SF.status & 0x100000 WHEN 1048576 THEN 'Percentage' WHEN 0 THEN 'MB' END AS Fil...
true
4130e043915585fa2dcf297c137b8b5d63b0b3af
SQL
tomasfrancisco/lightbot-backend
/src/database/migrations/001-init-data.sql
UTF-8
2,192
2.859375
3
[ "Apache-2.0" ]
permissive
-- Adminer 4.7.0 MySQL dump SET NAMES utf8mb4; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; USE `lightbot`; INSERT INTO `agent` (`id`, `uuid`, `created_at`, `name`, `company`) VALUES (1, '4565b699-6d3a-4915-9722-f00fc9f1a032', 1548152981, 'Test', 1); INSERT INTO `a...
true
6e88fcca5c868b7c62179fe9824bcf68053a54a5
SQL
Paul-loh/MSc_Dissertation
/DWH_Database/2 - Data Vault Layer - Tables/dv.Pacer_SatBackers.sql
UTF-8
501
2.59375
3
[]
no_license
CREATE TABLE [dv].[SatBackers] ( [HKeyBacker] BINARY(20) NOT NULL, [Meta_LoadDateTime] DATETIME2 NOT NULL, [Meta_LoadEndDateTime] DATETIME2 NOT NULL DEFAULT N'9999-12-31', [Meta_RecordSource] NVARCHAR (1000) NOT NULL, [Meta_ETLProcessID] INT NOT NULL, -- FK to ID of import batch [HDiffB...
true
ab241aa6a04514df0f7e9cecaaa8a9f7c87a871d
SQL
ha8sh/IBSng
/db/from_A1.22_upgrade.sql
UTF-8
219
2.671875
3
[]
no_license
alter table internet_bw_snapshot drop constraint internet_bw_snapshot_pkey; alter table internet_bw_snapshot add primary key(user_id, snp_date); create index web_analyzer_log_user_id_index on web_analyzer_log(user_id);
true
07949568756ee4d9eab77b2d6f0b8e8d0363b69b
SQL
lev1976g/se4-plugin-nextgame
/php/src/application/modules/Nextgame/settings/my-remove-4.0.0.sql
UTF-8
721
2.5625
3
[]
no_license
-- tables drop table if exists `engine4_nextgame_apps`; drop table if exists `engine4_nextgame_usersapps`; -- settings delete from `engine4_core_settings` where `name` = 'nextgame.site_id' or `name` = 'nextgame.secret_key'; -- menus delete from `engine4_core_menuitems` where `name` = 'core_admin_main_plugins_ne...
true
bc9a0f12762c5e384c210edf20d04dd196292f8d
SQL
nikolay-edu/denga-test
/denga.sql
UTF-8
47,723
2.765625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.18, for Linux (x86_64) -- -- Host: localhost Database: denga -- ------------------------------------------------------ -- Server version 5.7.18-0ubuntu0.17.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT = @@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS = @@CHARACTER_...
true
c411005f84d9b335ceeb631ec45ac69050107ac9
SQL
dftherp/master
/sql.sql
UTF-8
3,357
3.328125
3
[]
no_license
/* SQLyog Enterprise - MySQL GUI v8.12 MySQL - 5.5.27 : Database - thinkrbac ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @...
true
6420f1e271db9b21a3742759d30d5fe7a33033a3
SQL
piyushpipriye/Chat-App-In-PHP
/chatapp.sql
UTF-8
3,271
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 24, 2020 at 03:57 PM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
1de39a5778fd7e92c9140ae1368008af8ca1536e
SQL
Kelompok-6-WSI-Web/Workshop-Sistem-Informasi-Berbasis-Web
/Web_Hi-Store/Database/hi_store.sql
UTF-8
13,730
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 12, 2021 at 04:13 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
aa19365f86d67c02c0b243096aaa466171deda79
SQL
LetoMurakai/turma21
/my_sql/aula02/atividade06.sql
UTF-8
2,158
3.875
4
[]
no_license
create database db_cursoDaMinhaVida; use db_cursoDaMinhaVida; create table tb_categoria( id bigint auto_increment primary key, curso varchar(255) not null, ativo boolean not null ); insert tb_categoria(curso,ativo) values ("Java",true); insert tb_categoria(curso,ativo) values ("Python",true); insert tb_categoria(curs...
true
10f9a45da9e5eba4e1384e79395c578e0d5cb4e7
SQL
vmejiaec/setimimpq
/KCG/xDB/Schema Objects/Schemas/dbo/Programmability/Stored Procedures/Procs1/Par_Razon_Social_ByLikeNumero.proc.sql
UTF-8
1,096
3.5
4
[]
no_license
CREATE PROCEDURE dbo.Par_Razon_Social_ByLikeNumero ( @p_ver_version_id varchar (17), @p_Int_Empresa_Id varchar (17), @p_Par_Tipo_Identificacion_Id varchar (17), @p_Numero varchar(200) ) AS SET NOCOUNT ON; SELECT Id, Codigo, Par_Tipo_Identificacion_Id, Numero, Nombre...
true
66bb97ca13b56575de3e493f322bb56a223a3da6
SQL
Persiyan93/SQL
/SQL/Table-Relations.sql
UTF-8
3,343
4.375
4
[]
no_license
CREATE TABLE Persons( PersonId INT PRIMARY KEY, FirstName VARCHAR(50), Salary FLOAT , PassportId INT ) CREATE TABLE Passports( PassportId INT PRIMARY KEY, PassportNumber VARCHAR(50) UNIQUE, ) ALTER TABLE Persons ADD CONSTRAINT FK_Persons_Passports FOREIGN KEY (PassportId) REFERENCES Passports(PassportId) --2 TASK CR...
true
450b00b3f378ab559d3777f72ea491f013f48d75
SQL
sgmsgood/query
/1030_SQL_join/test_outerjoin.sql
UHC
2,481
3.875
4
[]
no_license
-- outer join: ̺ ڵ尡 ص ȸ -- μ (40 ȣ ; ) μȣ, μ, ȣ, , Ի ȸ -- ANSI (ڵ尡 ִ ) select d.deptno, e.deptno, d.dname, e.empno, e.ename, e.hiredate from emp e full outer join dept d--> outer / ڵ 𸣸 full outer join ó on e.deptno = d.deptno; -- oracle (ڵ尡 ʿ (+) δ.) select d.deptno, e.deptno, d.dname, e.empno, e...
true
a5da2074747b0188857cd77f1dfc593fabbc14b4
SQL
wr4-dono/dono
/db/get_average_carrier_rating.sql
UTF-8
143
3.234375
3
[]
no_license
SELECT AVG(rating) FROM carriers_ratings cr JOIN donos d ON cr.dono_id = d.dono_id JOIN users u ON u.user_id = d.carrier_id WHERE user_id = $1;
true
03d7f82a65714317d83ed65ef8a7c49054ffff68
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day25/select1404.sql
UTF-8
178
2.640625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-24T14:04:00Z' AND timestamp<'2017-11-25T14:04:00Z' AND temperature>=36 AND temperature<=72
true
ebd52727807e9ee23d0e9d033ae4190e520af708
SQL
sjciasullo/DJVoter
/db/migrations/migration-1102171215.sql
UTF-8
114
2.65625
3
[]
no_license
ALTER TABLE songs DROP CONSTRAINT songs_song_name_key; ALTER TABLE songs ADD CONSTRAINT unique_uri UNIQUE (uri);
true
50634561149ce884a4e696fb27cd08d1640f5279
SQL
CodecoolJavaWeb/monwonatan
/queststore/src/main/java/com/codecool/queststore/queststore.sql
UTF-8
1,846
4.03125
4
[]
no_license
DROP TABLE User_type, Student_type, Mentor_type, Admin_type, Artifact, Backpack, Quest, Experience_Level, Classroom; CREATE TABLE Experience_Level( experience_level_id SERIAL PRIMARY KEY, description VARCHAR(200) NOT NULL, required_coins INT NOT NULL ); CREATE TABLE User_type ( login VARCHAR(20) NOT N...
true
773f976c2657f088cda3752ff73cd96692d49b3f
SQL
lenoker/ekoprozess-local.ru
/application/components/projects/database/mysql_install.sql
UTF-8
4,330
3.671875
4
[]
no_license
DROP TABLE IF EXISTS `pr_access_types`; CREATE TABLE `pr_access_types` ( `id` int(10) unsigned NOT NULL auto_increment, `title` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `pr_access_types` (`title`) VALUES ('Свободный'), ('Авторизованный'); DRO...
true
c8d0639832d99f6afeed730506d07a718d9de1f0
SQL
GeppettoTeam/IBMSalesForecast_10010
/projects/db/tables_db_script.sql
UTF-8
12,777
2.515625
3
[]
no_license
/** * * @author Geppetto Generated Code</br> * Date Created: </br> * @since </br> build: </p> * * code was generated by the Geppetto System </br> * Gepppetto system Copyright - Geppetto LLC </br> * The generated code is free to use by anyone</p> * * * */ USE ibmsalesforecast; CREATE TABLE Note( id b...
true
7c607e2d5501c4ec426f6c6705405055d218f1be
SQL
Moussatef/FrontEnd-Learner-management
/brief4_conception(1).sql
UTF-8
5,822
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : lun. 01 mars 2021 à 10:08 -- Version du serveur : 5.7.31 -- Version de PHP : 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
e68a0cfb2c351ee3e05075d37fecc13f3abb1247
SQL
zoripong/knitting-service
/src/main/resources/db/migration/V3__merge_size_to_design.sql
UTF-8
1,056
3.484375
3
[]
no_license
ALTER TABLE design ADD COLUMN total_length NUMERIC; ALTER TABLE design ADD COLUMN sleeve_length NUMERIC; ALTER TABLE design ADD COLUMN shoulder_width NUMERIC; ALTER TABLE design ADD COLUMN bottom_width NUMERIC; ALTER TABLE design ADD COLUMN armhole_depth NUMERIC; WITH design_with_size as ( SELECT d.id, tot...
true
cadf025c06ef4397b85491c2a8fb9f62713e7d5d
SQL
mjfitzpatrick/vospace
/java/vospace_create.sql
UTF-8
3,493
3.421875
3
[]
no_license
-- -- Drop all the existing tables -- DROP TABLE IF EXISTS `properties`; DROP TABLE IF EXISTS `addl_props`; DROP TABLE IF EXISTS `capabilities`; DROP TABLE IF EXISTS `jobs`; DROP TABLE IF EXISTS `listings`; DROP TABLE IF EXISTS `metaproperties`; DROP TABLE IF EXISTS `results`; DROP TABLE IF EXISTS `transfers`; DROP TA...
true
d81c8c6f303f891100c93e3dcd1e6bc6ab90be95
SQL
asite444/chineseculture
/src/main/webapp/WEB-INF/doc/컨텐츠 중국 관련 정보/contents.sql
UTF-8
4,232
3.75
4
[]
no_license
/**********************************/ /* Table Name: 컨텐츠-중국 관련 정보 */ /**********************************/ DROP TABLE contents CREATE TABLE contents( contentsno INT NOT NULL PRIMARY KEY AUTO_INCREMENT COMMENT'컨텐츠 번호', chno INT NOT NULL COMMENT'즐겨찾기 번호', a...
true
b96b80e8e8ba9cb243d0fe2a8c864a6d1796d964
SQL
iwansafr/tefa-store
/product_order.sql
UTF-8
1,144
3.171875
3
[ "MIT" ]
permissive
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; DROP TABLE IF EXISTS...
true
35c3bc83dd74027a8b4849dd139daf3c1a5f274b
SQL
ProSayJ/springbootstudy
/doc/sql/实名、绑卡.sql
UTF-8
1,264
2.9375
3
[ "Apache-2.0" ]
permissive
-- 1:api -- 1.1:实名相关: select * from bunuo.company where name like '%吉林省博海睿智信息技术有限公司%' ORDER BY update_time desc ; -- blockchain_account: a001018cc649b0792c76a1c10ffd33f3e42dfb993f1675 select * from bunuo.certificate where code like '%91440300697136927G%' ORDER BY c_t desc; select * from bunuo.cert where serial_no like ...
true
e58add3bdd190e5b14ec30b131d867c26fcc19f4
SQL
sprillo/Base-de-Datos
/TP/codigo/tablas.sql
UTF-8
15,486
3.6875
4
[]
no_license
PRAGMA foreign_keys=ON; BEGIN TRANSACTION; -- entidad Provincia CREATE TABLE provincia ( idProvincia INTEGER NOT NULL, nombre VARCHAR(255) NOT NULL, PRIMARY KEY(idProvincia) ); INSERT INTO "provincia" VALUES(0,'Buenos Aires'); INSERT INTO provincia VALUES(1,'Rio Negro'); INSERT INTO provincia VALUES(2,'Chaco'); INS...
true
9f08ccfb23e7d56d46456679eb24dfad8fb6de62
SQL
dylanwanincorta/EBS-FA
/FA_big.sql
UTF-8
4,178
4.09375
4
[]
no_license
(SELECT ad.asset_id asset_id, ad.asset_number, ad.asset_category_id, ad.description, dh.location_id, dh.assigned_to, ( CASE WHEN ( th.TRANSACTION_TYPE_CODE = 'TRANSFER IN' AND dh.date_ineffective < dp.period_close_date) THEN ( CASE WHEN DH.TRANSACTION_UNITS IS NOT NULL ...
true
1cbac869b765186578bd06851505455f6fc71aaf
SQL
lbz320/Stanford-DB-Class-Exercises-and-Notes
/DB5_SQL/social_extra_q2.sql
UTF-8
235
4
4
[]
no_license
SELECT h.name, h.grade FROM Highschooler h, (SELECT ID1 FROM Likes EXCEPT SELECT DISTINCT h1.ID FROM Highschooler h1, Highschooler h2, Friend f WHERE f.ID1 = h1.ID AND f.ID2 = h2.ID and h1.grade = h2.grade ) AS IDs WHERE h.ID = IDs.ID1
true
4cabf875391515687913abebf2fe08990b432c1c
SQL
jereelton-devel/xlsimport
/res/sql/care-teste.sql
UTF-8
1,587
3.984375
4
[]
no_license
USE db_smg_os; SHOW TABLES; CREATE TABLE IF NOT EXISTS tb_os( os INT(11) NOT NULL, statusOs VARCHAR(50) NOT NULL, nomeCliente VARCHAR(255) NOT NULL, bairro VARCHAR(255) NOT NULL, cidade VARCHAR(100) NOT NULL, uf VARCHAR(2) NOT NULL, linha VARCHAR(20) NOT NULL, modelo VARCHAR(50) NOT NULL, ...
true
c39ff85055026ee28e1a5572a15a83f8f7a046c9
SQL
SayantoRoy/PRATIBHAPOP
/PRATIBHAPOP/TRN/SalesAdditionalTax.sql
UTF-8
1,154
3.03125
3
[]
no_license
CREATE TABLE [TRN].[SalesAdditionalTax] ( [Id] VARCHAR (50) NOT NULL, [SalesId] VARCHAR (10) NOT NULL, [TaxCategoryId] VARCHAR (10) NULL, [TaxCodeId] VARCHAR (10) NULL, [Percentage] DECIMAL (18, 10) NOT NULL, [...
true
eb0a37f11d72ec055480a2f8390e68cc0a0bd06a
SQL
frankzhuo/kaola
/script/hadoop19/merdm/maintain_script/BMCP_T01_DEVICE_TYPES_P.sql
UTF-8
2,383
2.53125
3
[]
no_license
REATE TABLE merdm.BMCP_T01_DEVICE_TYPES_P AS SELECT T3.device_type_id AS device_type_id , T3.device_type_name AS device_type_name, T3.device_type_code AS device_type_code, T3.device_kind AS device_kind , T3.device_kind_name, T3.pos_type, T3.POS_KIND_NAME , T2.device_type_id AS device_type_id_lv2 ...
true
6d53156ae938a9aa7c4b359b50a8bff7e145c6c4
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/tables/PREVDETMOVSEGURO.sql
ISO-8859-1
1,890
2.84375
3
[]
no_license
-------------------------------------------------------- -- DDL for Table PREVDETMOVSEGURO -------------------------------------------------------- CREATE TABLE "AXIS"."PREVDETMOVSEGURO" ( "SSEGURO" NUMBER, "NMOVIMI" NUMBER(4,0), "CMOTMOV" NUMBER(3,0), "NRIESGO" NUMBER(6,0), "CGARANT" NUMBER(4,0), "SP...
true
305596088428f211fb26c52b7783e87dfcfd5483
SQL
appchen/aclexample
/src/main/resources/baseddl.sql
UTF-8
3,745
3.640625
4
[]
no_license
-- we don't know how to generate schema base (class Schema) :( create table acl_class ( id bigint auto_increment primary key, class varchar(100) not null, constraint unique_uk_2 unique (class) ) ; create table acl_entry ( id bigint auto_increment primary key, acl_object_identity bigint not null, ace_order ...
true
2358016d55201857696598378e21f9cd71e4e71e
SQL
timescale/pg_prometheus
/test/sql/normalized.sql
UTF-8
1,552
2.96875
3
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-free-unknown" ]
permissive
\set ECHO ALL \set ON_ERROR_STOP 1 SET TIME ZONE 'UTC'; DROP TABLE IF EXISTS metrics_labels CASCADE; DROP TABLE IF EXISTS metrics CASCADE; DROP TABLE IF EXISTS input; SELECT create_prometheus_table('input'); \dt \d input \d input_values \d input_labels \d+ input_copy INSERT INTO input VALUES ('cpu_usage{service="ng...
true