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
74377fb1c3bb98f819033df9a26004b54cd172f3
SQL
VRAraya/Diagnostico_CP
/query.sql
UTF-8
252
3.734375
4
[]
no_license
SELECT c.name, c.start_date, AVG(ev.score), STDEV(ev.score), MIN(ev.score), MAX(ev.score) FROM courses c, exams e, evaluations ev WHERE ev.exam_fk = e.pk AND e.course_fk = c.pk GROUP BY c.name, c.start_date;
true
4d13028ea78ae7aaed6d94de87ec83b1668681dd
SQL
mio-mio1/PCDB
/SQL-codes/view_pty_uh_sts_shr.sql
UTF-8
473
3.6875
4
[]
no_license
CREATE OR REPLACE VIEW config_data.view_pty_uh_sts_shr AS SELECT uh_id, pty_id, pty_uh_sts, uh_sts_ttl_computed, (pty_uh_sts::NUMERIC / uh_sts_ttl_computed) AS pty_uh_sts_shr FROM (SELECT uh_id, SUM(pty_uh_sts::NUMERIC) AS uh_sts_ttl_computed FROM config_data.uh_seat_results GROUP BY uh_id ) SEATS_TOTAL ...
true
bf215e96cb1289793f5711aea01c2128f61be926
SQL
denis-mihaylov-nbu/CSCB516
/SportClubManagement/src/create_table.sql
UTF-8
1,204
3.859375
4
[]
no_license
CREATE SCHEMA `scm` ; CREATE TABLE `scm`.`user` ( `id` INT NOT NULL AUTO_INCREMENT, `username` VARCHAR(45) NOT NULL, `password` VARCHAR(250) NOT NULL, `first_name` VARCHAR(45) NOT NULL, `last_name` VARCHAR(45) NOT NULL, `clubid` INT NULL DEFAULT -1, PRIMARY KEY (`id`), UNIQUE INDEX `id_UNIQUE` (`id` AS...
true
df9e658044eb215a4818ca665d27e244575f6843
SQL
foyplvowlp/surison
/db/suriyon.sql
UTF-8
4,602
3.046875
3
[ "BSD-3-Clause" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 06, 2015 at 01:35 PM -- Server version: 5.5.25-MariaDB -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
5b9caa30957c58723a1573f72a2b81495c178a61
SQL
LoC743/gb-basic-db
/mysql-service/init_interview_tables.sql
UTF-8
5,829
4.25
4
[]
no_license
-- ---------------------------- Задание 1 ---------------------------------------- -- Создание бд CREATE DATABASE interview; -- Создание таблицы пользователей CREATE TABLE `interview`.`_user` ( `id` INT NOT NULL AUTO_INCREMENT, `phone` VARCHAR(15) NOT NULL, `email` VARCHAR(150) NOT NULL, `first_name` ...
true
82bd721f212cf3da1fb819e33ca51ca4d568516c
SQL
cobralong/cobra
/sinlor-mgnt/src/main/resources/db/sql/2015-04-03.sql
UTF-8
536
2.671875
3
[]
no_license
CREATE TABLE IF NOT EXISTS `urgent_online_record`( `item_id` int not null, `locale` varchar(10) default '', `url` varchar(255) default '', `root_id` int default null, `name` varchar(255) default '', `status` int(11) NOT NULL DEFAULT '0' COMMENT '0 ok -1 del', `update_time` timestamp NOT NULL DEFAULT '0000-00-00 ...
true
e6f350806c5433701b3b73c704d472b58e833f8e
SQL
lfelipe-gama/projeto-resgate-florianopolis
/proj_resgate.sql
UTF-8
3,628
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.15.1 -- http://www.phpmyadmin.net -- -- Host: mysql857.umbler.com -- Generation Time: 11-Out-2017 às 17:42 -- Versão do servidor: 5.6.34-log -- PHP Version: 5.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
true
252bbefafde61dbfea3b2cf7744a92d315ad2eb7
SQL
dmarkov00/PROP-Project
/Database/Scripts/outdated/USERDATABASE.ddl
UTF-8
3,293
2.875
3
[]
no_license
-- Generated by Oracle SQL Developer Data Modeler 4.1.2.895 -- at: 2016-03-16 20:45:06 CET -- site: Oracle Database 12c -- type: Oracle Database 12c CREATE TABLE CAMPS ( CAMPING_ID NUMERIC NOT NULL , TENTNR NUMERIC , CAPACITY NUMERIC , STATUS VARCHAR (10) ) ; ALT...
true
93fa8001f78fe1df4b0d48cb47d583d6cfc595aa
SQL
Mar13andrw/omdb-1
/sql/omdb_v2_delta.sql
UTF-8
1,847
3.4375
3
[ "MIT" ]
permissive
-- What changes need to be done to upgrade to V.2? -- you need to take up 1 to 4 manually -- 1. Change "screen_name" to "stage_name" in people -- 2. Add "screen_name" to "movie_people" -- 3. Add new column called 'tag_line' to movie_data -- 4. Add new column called "theme" to songs -- You can run this script to cr...
true
795da11000f11d790afd892c40b618fe79ca6ab2
SQL
skholdings/dataapi_lecture
/mysql-ddl/sso_schema.sql
UTF-8
805
2.8125
3
[]
no_license
CREATE TABLE user ( user_id VARCHAR(100) PRIMARY KEY, user_name VARCHAR(256) CHARACTER SET UTF8 NOT NULL, password VARCHAR(256) NOT NULL, scope VARCHAR(256) ); CREATE TABLE scope ( id INT(100) PRIMARY KEY AUTO_INCREMENT, category VARCHAR(256) NOT NULL, role VARCHAR(256) NOT NULL, detail_role VARCHAR(25...
true
63dae268c7efbb57d2ce9b1ce4c42a73fb9a0327
SQL
bdmlai/analytics_engineering_marts
/models/Redshift/fds_cp/aggregate_intermediate/intm_cp_nielsen_social_litelog.sql
UTF-8
663
2.953125
3
[]
no_license
{{ config({ "materialized": 'ephemeral' }) }} SELECT a.show_date, a.show_name, storyline_1, comment, inpoint_est, outpoint_est, p2plusviewership_000 , nielsen_twitter_interactions, b.p18_49viewership, talent FROM {...
true
a6794d6d64481b0b34e6b2210ab57b60cc9f9fdf
SQL
stash/vanschwartz
/schwartz.sql
UTF-8
2,290
3.4375
3
[]
no_license
SET client_encoding = 'UTF8'; SET check_function_bodies = false; SET client_min_messages = warning; SET search_path = public, pg_catalog; CREATE AGGREGATE array_accum ( BASETYPE = anyelement, SFUNC = array_append, STYPE = anyarray, INITCOND = '{}' ); SET default_tablespace = ''; SET default_with_o...
true
d9aa644b3618600ea73925ca50dc5163e27b4027
SQL
pozengineer/employeeTracker
/schema.sql
UTF-8
1,230
4.125
4
[]
no_license
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; DROP DATABASE IF EXISTS employeeTracker_DB; CREATE DATABASE employeeTracker_DB; USE employeeTracker_DB; CREATE TABLE manager ( position INT NOT NULL AUTO_INCREMENT, managerName VARCHAR(30) NULL, PRIMARY KEY (position) ); C...
true
91628dc4ca90f4f39d3d271c71a7ad8dde2a49d8
SQL
amitmca/EducationalMaterial
/Databases/demo/nocpdemo.sql
UTF-8
18,666
3.296875
3
[]
no_license
Rem Rem Rem Copyright (c) 1998, 1999 By Oracle Corporation Rem Rem NAME Rem nocpdemo.sql - Demo program for the NOCOPY modifier to the IN OUT and Rem OUT parameter modes in PL/SQL 8.1. Rem Rem Also demonstrates the performance improvement achieved with use of the Rem NOCOPY modifier. Rem Rem FUNCTION Rem Rem ...
true
2efe0201b6438151482cee306634840d7dd6dc9d
SQL
NicePlayOfU/leetcode
/sql/1454.active-users 连续7天在线的用户/1.sql
UTF-8
702
3.921875
4
[]
no_license
# Link: https://leetcode-cn.com/problems/active-users SELECT `t3`.`id`, `name` FROM ( SELECT DISTINCT `id` FROM ( SELECT `id`, SUBDATE(`login_date`, `r`) `diff` FROM ( SELECT `id`, `login_date`, ...
true
22b70b0d55db21a9ada999c53b3ffa4d3c161756
SQL
ruvini98/PAFGroup05
/project.sql
UTF-8
1,467
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 21, 2021 at 07:21 PM -- Server version: 5.6.16 -- PHP Version: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
6643d4c061f659bd310eca3fe4380c8347645ed7
SQL
VijayMVC/Synergy
/User/Frank_Garcia/VERSIFIT/PULL_TEST_DIBELS_FOR_WENDY.sql
UTF-8
3,970
3.859375
4
[]
no_license
WITH SCORE_1516 AS ( SELECT [School Year] ,[Student APS ID] ,[Student STATE_ID] ,BOY AS [BOY_15-16] ,MOY AS [MOY_15-16] ,EOY AS [EOY_15-16] FROM ( SELECT DISTINCT SIS_SCHOOL_YEAR AS 'School Year' ,STUD.STUDENT_ID AS 'Student APS ID' ,SDET.STUDENT_STATE_ID AS 'Student STATE_ID' --,TEST_PRIMARY_RESULT A...
true
acdc7e32c9ee257e52dabc2056b3288e26a14306
SQL
PratikRaut15/speed-elixia-project
/.svn/pristine/ac/acdc7e32c9ee257e52dabc2056b3288e26a14306.svn-base
UTF-8
506
2.890625
3
[]
no_license
INSERT INTO `speed`.`dbpatches` ( `patchid` , `patchdate` , `appliedby` , `patchdesc` , `isapplied` ) VALUES ( '414', '2016-09-26 12:11:01', 'Arvind Thakur', 'create status_change_log table', '0' ); CREATE TABLE status_change_log( scl_id int(11) AUTO_INCREMENT, id bigint(11), old_status int(11), new_s...
true
a82a9f52f11e24b6a90902a36ebf0605c1e0c5de
SQL
migueled/SQL-Introduction
/demo04.sql
UTF-8
100
2.6875
3
[]
no_license
--ORDER BY SELECT p.person_first_name, p.person_last_name FROM person p ORDER BY p.person_last_name;
true
5f5be69ee9d5d1308d2bc38c848840bd3606135f
SQL
raulmercadox/cmdb
/obj/Release/Package/PackageTmp/App_Data/dbo.usp_ListarSolicitudesPorProyecto.sql
UTF-8
583
2.5625
3
[]
no_license
alter procedure dbo.usp_ListarSolicitudesPorProyecto @ProyectoId int as select top 100 Id,ProyectoId,FechaCreacion,FechaEjecucion,UsuarioId,AnalistaDes,AnalistaTestProd,CopiarA,AmbienteId,Archivo1,Archivo2,Archivo3,Archivo4,Archivo5, Archivo6,Archivo7,Archivo8,Archivo9,Archivo10,NombreArchivo1,NombreArchivo2,NombreArc...
true
067cea72dff24ee14aa9d3e0e6290bfecbc96417
SQL
gleffad/relational_database_for_VOD
/create_db_video_club.sql
UTF-8
27,717
3.015625
3
[]
no_license
--make trigger retard + procedures DROP TABLE realise_f; DROP TABLE realise_s; DROP TABLE recoit_act; DROP TABLE recoit_rea; DROP TABLE recoit_solo_rea; DROP TABLE recoit_solo_act; DROP TABLE joue_dans_s; DROP TABLE joue_dans_f; DROP TABLE achat_p_f; DROP TABLE achat_p_s; DROP TABLE achat_n_f; DROP TABLE achat_n_s; DR...
true
50731424ebd4ab491cbecdd53299ffb63506d905
SQL
Igor-Petukhov/ADO_Basics
/SQLQuery1.sql
UTF-8
420
3.03125
3
[]
no_license
--CREATE TABLE Users( -- Id INT PRIMARY KEY IDENTITY(1,1), -- [Name] NVARCHAR(64) NOT NULL -- ) --DROP TABLE Users --CREATE TABLE Products( -- Id INT PRIMARY KEY IDENTITY(1,1), -- [Name] NVARCHAR(64) NOT NULL, -- price DECIMAL NOT NULL -- ) --DROP TABLE Products CREATE TABLE Sales( Id INT PRIMARY KEY IDENTITY(1,1...
true
8876f8d4e86e95ba04194978300d8a6592555ff6
SQL
MatthewEdge/PlaySample
/conf/evolutions/default/1.sql
UTF-8
383
2.859375
3
[]
no_license
# ZimQuotes schema # --- !Ups CREATE TABLE ZimQuotes ( id bigint(20) NOT NULL AUTO_INCREMENT, quote varchar(512) NOT NULL, character varchar(255) NOT NULL, PRIMARY KEY (id) ); INSERT INTO ZimQuotes(quote, character) VALUES ('I gonna sing the doom song!', 'Gir'); INSERT INTO ZimQuotes(quote, character...
true
7c05664f15b6baf7d90b399c9eab199fcd39b736
SQL
cvp21594/IDDDB
/export.sql
UTF-8
2,408
3.546875
4
[]
no_license
CREATE TABLE COMMENTS ( COMMENT_ID VARCHAR2 (16) NOT NULL , PARENT_COMMENT_ID VARCHAR2 (16) , SUBMISSION_ID VARCHAR2 (16) NOT NULL , CONTENT CLOB NOT NULL , VOTES INTEGER NOT NULL , ANALYZED CHAR (1) DEFAULT 'N' NOT NULL ) ; ALTER TABLE COMMENTS ADD CONSTRAINT REDDITCOMMENT_P...
true
54e2803fbbb3ea00f316ca41df8961d4d1835520
SQL
chenjian-520/sparkDemo
/data-engine/src/main/resource/metafile/sqls/sprint1-2/sql_ads/l10_day_fpy_ads_log_cq.sql
UTF-8
3,514
3.765625
4
[]
no_license
SELECT t4.site_code, t4.level_code, t4.work_dt, t4.customer, EXP(SUM(LOG(t4.station_ya))) AS customer_ya FROM (SELECT t3.site_code, t3.level_code, t3.work_dt, t3.custo...
true
a78df195fdda0fad083496ae5fd3550b4f9781d4
SQL
spachava753/project-viper
/schema.sql
UTF-8
729
3.671875
4
[]
no_license
CREATE TABLE users ( id INTEGER NOT NULL, username VARCHAR, password VARCHAR, PRIMARY KEY (id) ); CREATE TABLE symbols ( id INTEGER NOT NULL, name VARCHAR, symbol VARCHAR, PRIMARY KEY (id) ); CREATE TABLE watchlists ( id INTEGER NOT NULL, u...
true
4fea9f8192790da09ce10d49e5d2842bb4ae0e41
SQL
FatThompson/Database
/test2submission/test2_querya.sql
UTF-8
157
3.09375
3
[]
no_license
SELECT dname,dlocation FROM department,dept_locations WHERE department.dnumber=dept_locations.dnumber ORDER BY dname ASC, dlocation DESC;
true
4d8f5fa7d14b6e9262db7d7a55bebe623be0c696
SQL
aragnac/Renequinepolis
/create_user_roles.sql
UTF-8
1,010
2.921875
3
[]
no_license
DROP ROLE sgbd3_role; CREATE ROLE sgbd3_role NOT IDENTIFIED; GRANT ALTER SESSION TO sgbd3_role; GRANT CREATE DATABASE LINK TO sgbd3_role; GRANT CREATE SESSION TO sgbd3_role; GRANT CREATE PROCEDURE TO sgbd3_role; GRANT CREATE SEQUENCE TO sgbd3_role; GRANT CREATE TABLE TO sgbd3_role; GRANT CREATE TRIGGER TO sgbd3_role; G...
true
54bfa78753381d5ac11689ea20ec00ee06d06115
SQL
gramundi/scripting
/sql/subject_data_toexport.sql
UTF-8
2,171
3.828125
4
[]
no_license
set search_path to myedc4461; select * from subject INNER JOIN site USING(site_id) select * from "site_VI" INNER JOIN site_design_visitschedules SELECT * FROM subject_data_subjectlist JOIN site_data_sitelist USING (site_id) JOIN "site_VI" ON subject_data_subjectlist.subid = "site_VI"."SUBID" JOIN site_de...
true
cb486b10237267adbb6f94e2b12fe138fdc188ae
SQL
buddhascoopa/buddhascoopa-git
/pessoal/Scripts/Sql/Sql/OBJTS.SQL
UTF-8
260
2.578125
3
[]
no_license
col Dono for a15 col Tipo for a20 col Nome for a40 undef ts accept ts char prompt 'Entre com a Tablespace: ' select owner Dono, segment_type Tipo, segment_name Nome from sys.dba_segments where tablespace_name like upper('&ts%') order by 1,2,3 /
true
d9541ab37994cb5e9e267a48021bbf61f8fb7770
SQL
rnbwspctrm/llmm
/application/local/llmm_Main_09272016/llmm_main_mailimporters.sql
UTF-8
2,753
2.921875
3
[ "MIT" ]
permissive
CREATE DATABASE IF NOT EXISTS `llmm_main` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `llmm_main`; -- MySQL dump 10.13 Distrib 5.6.17, for Win32 (x86) -- -- Host: localhost Database: llmm_main -- ------------------------------------------------------ -- Server version 5.6.20 /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
true
37f174756f48562e5ac356a7b886567bcce3a2c6
SQL
matrunych/BigDataProject
/db-cassandra/cassandra.cql
UTF-8
1,063
3.328125
3
[]
no_license
CREATE KEYSPACE all_events WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}; CREATE TABLE all_events.all_countries ( group_country text, primary key (group_country) ) WITH comment = 'Q1'; CREATE TABLE all_events.cities_of_counries ( group_country text, group_city text, pri...
true
69659dc6dba919599eabac667e88c0481b769ed8
SQL
github98/sandbox
/reader/src/main/resources/data.sql
UTF-8
1,356
3.65625
4
[]
no_license
DROP TABLE if exists order_item; DROP TABLE if exists orders; CREATE TABLE orders ( id INT PRIMARY KEY, order_dt TIMESTAMP NOT NULL ); CREATE TABLE order_item ( id INT AUTO_INCREMENT PRIMARY KEY, order_id INT NOT NULL, quantity INT NOT NULL, product_id VARCHAR(50) NOT NULL, cost NUMERIC(8,2) NOT NULL, foreig...
true
207907113835b1cfdc85dd079076e6b089df49bd
SQL
paulcorey/farm
/MySQLDatabase.sql
UTF-8
2,142
3.015625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `farm` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `farm`; -- MySQL dump 10.13 Distrib 5.6.17, for Win32 (x86) -- -- Host: localhost Database: farm -- ------------------------------------------------------ -- Server version 5.6.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
true
f49aff48a795d9d12e2e457fa57c9de082c3cb68
SQL
adampaseltiner/Pewlett-Hackard-Analysis
/Queries/queries.sql
UTF-8
6,395
4.21875
4
[]
no_license
-- Creating tables for PH-EmployeeDB CREATE TABLE departments ( dept_no VARCHAR(4) NOT NULL, dept_name VARCHAR(40) NOT NULL, PRIMARY KEY (dept_no), UNIQUE (dept_name) ); -- Creating table for employees CREATE TABLE employees ( emp_no INT NOT NULL, birth_date DATE NOT NULL, first_name VA...
true
550f3dfc4d55c9fee78a2630a7d9665e28c35223
SQL
LazarPanchev/PHPWebDevelopment
/IntroductionToMySQL/queriesForSoftUniDatabase.sql
UTF-8
2,606
4.34375
4
[ "MIT" ]
permissive
/* find all information about departments*/ SELECT * FROM DEPARTMENTS ORDER BY DEPARTMENT_ID ASC; /* find all department names */ SELECT name FROM departments ORDER BY department_id ASC; /* find salary of each employee*/ SELECT first_name, last_name, salary FROM employees ORDER BY employee_id asc; /* find full nam...
true
0e2b40a43bc3cb846808e656a94e8cceb9a673aa
SQL
ababic2/Warehouse-Management-System
/src/main/resources/sql/baza.db.sql
UTF-8
3,389
2.984375
3
[]
no_license
BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "products" ( "product_id" INTEGER, "product_name" TEXT, "price" INTEGER, "stock" INTEGER, "category_id" INTEGER, "firm_id" INTEGER, PRIMARY KEY("product_id") ); CREATE TABLE IF NOT EXISTS "employees" ( "employee_id" INTEGER, "first_name" TEXT NOT NULL, "last_name"...
true
298c5e20c7f353cb4ef93afee1814c66868b8d73
SQL
gor8808/SqlDatebasesAndQueryExamples
/Queryes/SQLQuery16.sql
UTF-8
125
3.0625
3
[]
no_license
SELECT YEAR(orderdate) AS orderyear, COUNT(DISTINCT custid) AS numcusts FROM Sales.Orders GROUP BY YEAR(orderdate);
true
9bc11c5eb34bd5d3a43b631278f8768a30e30273
SQL
progmaker2/courses-2-2016
/module27/src/main/resources/дамп2.sql
UTF-8
6,286
3.375
3
[]
no_license
-- -------------------------------------------------------- -- Хост: 127.0.0.1 -- Версия сервера: 5.6.31-ndb-7.4.12-cluster-gpl - MySQL Cluster Community Server (GPL) -- Операционная система: Win64 -- HeidiSQL Версия: 9.4.0.5130 -- -----------------------------...
true
771e069b719a5f1ca44a1ebad45050d1dbaa21d5
SQL
ryandavidhartman/basic-akka-example
/akka-in-action/akka-topics-main/chapter10c/projection_cargos_per_container.sql
UTF-8
205
2.59375
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS public.cargos_per_container; CREATE TABLE IF NOT EXISTS public.cargos_per_container( containerId VARCHAR(255) NOT NULL, cargos BIGINT NOT NULL, PRIMARY KEY (containerId));
true
4cb7b62d05e18d3228bf2225eb8872a4d7773163
SQL
Wleydson/osworks-api
/src/main/resources/db/migration/V002__CREATE_TABLE_ORDER_SERVICE.sql
UTF-8
385
3.015625
3
[]
no_license
CREATE TABLE IF NOT EXISTS order_service ( id bigserial NOT NULL, client_id bigserial NOT NULL, description varchar(255) NOT NULL, value numeric(10,2) NOT NULL, status varchar(20) NOT NULL, date_Initial timestamp NOT NULL, date_end timestamp, CONSTRAINT pk_order_service PRIMARY KEY (id), CONSTRAINT fk_order_se...
true
e68920f8ab552f9837125fadb7e59a14e8a379fc
SQL
hillerlab/CESAR2.0
/kent/src/hg/lib/recombRateMouse.sql
UTF-8
814
3.0625
3
[ "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
# recombRateMouse.sql was originally generated by the autoSql program, which also # generated recombRateMouse.c and recombRateMouse.h. This creates the database representation of # an object which can be loaded and saved from RAM in a fairly # automatic way. #Describes the recombination rate in 5Mb intervals based ...
true
ab00b6521494fc87381dfdf193a9bd42e81d7b17
SQL
e-amblard/i1-2021-projet
/scripts-sql/1-tables.sql
UTF-8
2,405
4.25
4
[]
no_license
SET search_path TO projet; -- Schéma DROP SCHEMA IF EXISTS projet CASCADE; CREATE SCHEMA projet AUTHORIZATION projet; GRANT ALL PRIVILEGES ON SCHEMA projet TO projet; -- Tables CREATE TABLE compte ( idcompte INT GENERATED BY DEFAULT AS IDENTITY, pseudo VARCHAR(25) NOT NULL, motdepasse VA...
true
eb4c703a191595c4cdffc953342cb4dc03f37d4c
SQL
wyethjackson/wyjackgames
/db/migrations/1.sql
UTF-8
627
3.40625
3
[]
no_license
CREATE TABLE IF NOT EXISTS users ( user_id SERIAL PRIMARY KEY, user_uuid TEXT UNIQUE NOT NULL, name VARCHAR(128) NOT NULL, email VARCHAR(128) UNIQUE NOT NULL, admin TIMESTAMP, password_hash TEXT, created TIMESTAMP DEFAULT NOW(), modified TIMESTAMP ); CREATE TABLE IF NOT EXISTS messages ( message_id S...
true
5ffea3ff9f4910b01601fbdc3130039abdf9bad5
SQL
liuzjmike/research_finder
/test/test-sample.sql
UTF-8
1,767
4.21875
4
[]
no_license
--Professor got promoted UPDATE PROFESSOR SET title = 'Professor' WHERE netid='avm10'; --Professor adds an interest --INSERT INTO INTEREST VALUES('avm10', 'Machine Learning'); --Professor removes an interest DELETE FROM INTEREST WHERE netid = 'avm10' AND field = 'Differential Privacy'; --Browse all departments SELEC...
true
9fd47b231824c46dac11a0f689c0837247b6f042
SQL
nullthefirst/sql_shelf
/3-aggregations/04.sql
UTF-8
169
2.640625
3
[]
no_license
/* SELECT SUM(standard_amt_usd) standard_usd, SUM(gloss_amt_usd) gloss_usd FROM orders; */ SELECT standard_amt_usd + gloss_amt_usd AS total_standard_gloss FROM orders;
true
d2c8119ae218d61c3133cd9871cfaa6e1b8eea2f
SQL
ahbaid/learn
/oracle/mview_logs_all.sql
UTF-8
553
3.59375
4
[]
no_license
clear columns clear breaks set pages 1000 set lines 120 column m0 format A30 heading "Owner" column c0 format A30 word_wrapped heading "Master Table" column c1 format A30 word_wrapped heading "Log Table" column c2 format 999,999,990 heading "MBytes" select mv.log_owner m0, master c0, log_table c1, ...
true
c12b87a5e7308cab62fa206be833ad7935127f5d
SQL
dwtkse33/ml_edu
/3일차 insert_update_delete 연습.sql
UTF-8
356
3.140625
3
[]
no_license
create table salaries1( emp_no int, salary int) ; insert into salaries1 select emp_no, salary from salaries ; update salaries1 set salary = 10000000 ; -- 이처럼 where 조건문을 안 쓰면 모든 셀의 값이 10000000로 통일됨 update salaries1 set salary = 10000000 where salary > 60000 ; delete from salaries1 where salary = 10000000 ;
true
22d6abcae5e5cf82755cf3ee88d0c842b6324fc4
SQL
leersmathieu/cthulhu
/models/bdd.sql
UTF-8
5,782
3.3125
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Sam 17 Mär 2018 18:58:16 CET -- 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...
true
34da599272bb1f4e5200cc2f33c009eaf547bcd4
SQL
anomsejogati/app-pos-almaura
/db_almaurabutik.sql
UTF-8
50,708
2.6875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 22, 2014 at 07:46 AM -- Server version: 5.5.16 -- PHP Version: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
601a9ff1024c3888b88776602e7a3ed5e05da78c
SQL
Nik620/edX_HarvardX_CS50x
/PSET7/movies/13.sql
UTF-8
455
4.09375
4
[]
no_license
/*query to list names of all people who starred in movie in which Kevin Bacon also starred. Use the Kevin Bacon born in 1958, and should not be included in the list. Output single column for name of each person*/ SELECT DISTINCT(name) from people JOIN stars ON people.id = stars.person_id WHERE stars.movie_id IN (SELECT...
true
b6a294dce224f06b3c6405476df99d07b4158f41
SQL
tuykin/09-215_2014
/db/mamkina_maria/create.sql
UTF-8
750
3.515625
4
[]
no_license
CREATE TABLE "Rooms" ("ID" INTEGER PRIMARY KEY NOT NULL ,"NAMEROOM" VARCHAR NOT NULL DEFAULT (null) ,"CATEGORY" VARCHAR NOT NULL ) CREATE TABLE Guests( ID_GUEST INTEGER NOT NULL PRIMARY KEY, SURNAME VARCHAR NOT NULL, NAME VARCHAR, MIDDLE_NAME VARCHAR, DATE_OF_ BIRTH DATE) PRAGMA foreign_keys = ON...
true
9aa2dd7525c5f216b824e1cd31d951f65472d877
SQL
JaySem/ExamDemo
/sql/1.2.sql
GB18030
673
3.96875
4
[]
no_license
-- oracle sql -- ͳ2017100120171007ڼ3зʵû嵥 select pt.msisdn, pt.record_day, pt.pv, ui.sex from PAGEVISIT pt, USER_INFO ui where pt.msisdn = ui.msisdn and pt.msisdn in (select msisdn from (select pt.*, trunc(pt.record_day - row_number() over(partit...
true
198d32c6b1fce2f2b07fe54d1d7f7b6d51d4a0c7
SQL
sr-2020/sr-2020-db
/sql/V8.0.1__newmetatypes.sql
UTF-8
10,419
3.125
3
[ "Apache-2.0" ]
permissive
UPDATE metatype SET name = 'HMHVV тип 1', cost = 20 where name = 'HMHVV'; UPDATE metatype SET cost = 0 where name = 'Проекция AI'; INSERT INTO metatype (name, description, cost, hidden) VALUES ('HMHVV тип 3', 'HMHVV тип 3', 20, true) ON CONFLICT (name) DO UPDATE SET description = EXCLUDED.description, ...
true
dc3d64a0bb3370241587b6910b2c5b5ecf86211d
SQL
kot903491/kentavr
/kentavr.sql
UTF-8
20,793
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Мар 13 2018 г., 13:36 -- Версия сервера: 5.5.53 -- Версия PHP: 5.6.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
afa144634fa3ec027a2a487c14dca58cb9d909b8
SQL
Emierixix/Sistema-Login-Cadastro
/bd_mrx.sql
UTF-8
2,346
3.15625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 24-Jul-2018 às 20:59 -- Versão do servidor: 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
df47bf4aeb68e6622df98f077e6afcc828d328bb
SQL
tayduivn/training
/rdbms/update/.svn/text-base/sacwis_693.sql.svn-base
UTF-8
901
3.09375
3
[]
no_license
--STGAP00015724 - Release 3.5 - Create SHINESDM User / declare dmuser varchar2(30); sql_stmt varchar2(200); begin select username into dmuser from dba_users where username='SHINESDM' ; EXCEPTION WHEN NO_DATA_FOUND THEN -- catches all 'no data found' errors sql_stmt := 'CREATE USER SHINESD...
true
243ffbc84b41912f2432a2162031e2ec2bb73c91
SQL
edywill/projetosedy
/projetocpb/convenioscpb.sql
UTF-8
7,641
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tempo de Geração: -- Versão do Servidor: 5.5.27 -- Versão do PHP: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @...
true
0f30966bb4676f158e42ad2c352df0bfc8ac6306
SQL
Wyrd00/Just_Do_It_Dude
/JDID/database/setup_mysql.sql
UTF-8
2,274
3.78125
4
[]
no_license
-- prepares a MySQL database with sample data in database -- GRANT USAGE ON *.* TO 'root'@'localhost'; CREATE DATABASE IF NOT EXISTS justdoitdude_dev_db; -- CREATE USER IF NOT EXISTS justdoitdude_dev@localhost IDENTIFIED BY ''; USE justdoitdude_dev_db; GRANT ALL PRIVILEGES ON justdoitdude_dev_db TO 'root'@'localhost';...
true
bbbd056ec42a1e96ddae8cfd2642118ad1ab780c
SQL
evrimulgen/Oracle-DBA-Life
/INFO/Ask Tom Files/OOW/shrink.sql
UTF-8
1,099
3.515625
4
[ "MIT" ]
permissive
@connect / drop table t; set echo on clear screen create table t ENABLE ROW MOVEMENT as select * from all_objects; pause set termout off select count(*) from t; set termout on clear screen set autotrace on statistics select count(*) from t; set autotrace off pause clear screen select blocks, cnt, tot_blocks, ...
true
e200e5d30318df70fecee64b34bf2ad26f05a0eb
SQL
criticalmaps/criticalmaps-api
/sql/retrieve_locations.sql
UTF-8
360
3.375
3
[]
no_license
-- delete locations older than 5 minutes DELETE FROM locations WHERE updated <= (CURRENT_TIMESTAMP - '5 minutes'::INTERVAL); -- get locations within the last 5 minutes & -- select the one with the highest timestamp for each device & -- ignore own device SELECT * FROM locations WHERE updated > (CURRENT_TIMESTAMP - '5 ...
true
f530d88272f18c45e9ebd51dd599677c5de9e8d4
SQL
ElifKarakutukDinc/dvd_rental
/join_table/Script_2_3.sql
WINDOWS-1250
317
4.1875
4
[]
no_license
--Which movie has the longest rental duration in Family category? select f.film_id, f.rental_duration, c."name" from film as f left join film_category as fc on (f.film_id=fc.film_id) left join category as c on (fc.category_id= c.category_id) where c."name"= 'Family' order by f.rental_duration desc limit 1;
true
a519fa212a161d00488bdc8c020dbcb851233cb0
SQL
nimalangster/Library-Management-System
/Dump20180821.sql
UTF-8
6,109
3.03125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `library` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `library`; -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: library -- ------------------------------------------------------ -- Server version 5.7.22-log /*!40101 SET @OLD_CHARACTER...
true
70c4232b50cf41eb5436760fa1d9c3e07b8d49d2
SQL
chenlt-qtl/corn
/api/src/main/resources/db/update/20230323.sql
UTF-8
4,763
3.65625
4
[]
no_license
-- new note CREATE TABLE `note_info_new` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `id_old` varchar(32) DEFAULT NULL, `content_id` bigint(20) DEFAULT NULL, `content_id_old` varchar(32) DEFAULT NULL, `name` varchar(200) DEFAULT NULL, `parent_id` bigint(20) DEFAULT NULL, `parent_id_old` varchar(32) DEFAULT...
true
55e563fd0f0645a8d3a5292688d653dd43b5945a
SQL
jayzhs/springbootoauthstarter
/src/main/resources/schema.sql
UTF-8
1,191
3.46875
3
[]
no_license
create table UserConnection (userId varchar(255) not null, providerId varchar(255) not null, providerUserId varchar(255), rank int not null, displayName varchar(255), profileUrl varchar(512), imageUrl varchar(512), accessToken varchar(255) not null, secret varchar(255), refreshToken ...
true
bb322305a8ee598e6f0d13d90f35c7a7e5d59afe
SQL
austburn/7-db-7-wks
/postgres/sql/day2.sql
UTF-8
12,655
4.03125
4
[]
no_license
--day 2 starts --aggregate examples select count(title) from events where title like '%Day%'; select min(starts), max(ends) from events inner join venues on events.venue_id = venues.venue_id where venues.name = 'Crystal Ballroom'; --counting at all venues select count(*) from events where venue_id = 1; --... becomes t...
true
4866036cb602b5b0ef9ee0aee9734bd77ddd3ac1
SQL
jyoung360/docker-elk
/data/extract_messages.sql
UTF-8
745
3.203125
3
[]
no_license
.open 3d0d7e5fb2ce288813306e4d4636395e047a3d28 .mode csv .output txt_messages.csv select datetime(m.date + strftime('%s', '2001-01-01 00:00:00'), 'unixepoch', 'localtime') || ' PST' as parsed_date, datetime(m.date_read + strftime('%s', '2001-01-01 00:00:00'), 'unixepoch', 'localtime') || ' PST...
true
fbeadae6af6d75d0ba96eb4a1e3570e64cb5bbbf
SQL
Velocity-Engineering/airbyte
/airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/bigquery/test_primary_key_streams/final/airbyte_tables/test_normalization/conflict_stream_name_conflict_stream_name_conflict_stream_name.sql
UTF-8
2,277
2.78125
3
[ "MIT", "Elastic-2.0" ]
permissive
create or replace table `dataline-integration-testing`.test_normalization.`conflict_stream_name_conflict_stream_name_conflict_stream_name` OPTIONS() as ( with __dbt__CTE__conflict_stream_name_conflict_stream_name_conflict_stream_name_ab1 as ( -- SQL model to parse JSON blob stored in a single column...
true
19394f2ea290330ce8139791314f7a15de8169d0
SQL
Farrony/Cafe-Management-System
/cafe .sql
UTF-8
2,569
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 03, 2017 at 08:52 PM -- Server version: 10.1.16-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
ba4fc1d522658a7458e88c3a9b77f35d73584537
SQL
VijayMVC/JCC-Data-Warehouse
/SQLDB/dbo/Views/AA_SYS_CURR_CODE_VIEW.sql
UTF-8
1,627
3.265625
3
[]
no_license
create view AA_SYS_CURR_CODE_VIEW /* ** Written: 01/12/04 SR ** Last Amended: 06/12/04 SR, 02/02/05 SR, 24/02/05 SR, 13/12/05 NC, 21/12/05 NC ** Comments: Returns all information necessary to create a currency rate object. */ as select CUR_PRIMARY as [PRIMARY], CURR_CODE, CURR_SYMBOL, CURR_RATE, CURR_RATEDATE, case ...
true
6c5458313e9dc9babadf95def1692a4f87a7e555
SQL
ONSdigital/rm-sample-service
/src/main/resources/database/changes/release-9.39.0/sample_foundation_schema.sql
UTF-8
2,316
4.125
4
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
SET SCHEMA 'sample'; --create sequences CREATE SEQUENCE samplesummaryseq START WITH 1 INCREMENT BY 1 NO MINVALUE MAXVALUE 999999999999 CACHE 1; -- for primary keys CREATE SEQUENCE sampleunitseq START WITH 1 INCREMENT BY 1 NO MINVALUE MAXVALUE 999999999999 CACHE 1; CREATE SEQU...
true
103b870452bf47b541998bdd840cf6f143a20133
SQL
vamsigoli/sakila-h2-files
/oracle-sakila-schema.sql
UTF-8
10,440
3.921875
4
[ "BSD-3-Clause" ]
permissive
/* Sakila for Oracle is a port of the Sakila example database available for MySQL, which was originally developed by Mike Hillyer of the MySQL AB documentation team. This project is designed to help database administrators to decide which database to use for development of new products The user can run the same SQL a...
true
39c9965e16f3dc369689276c58b080910a8ad8a0
SQL
wsws0521/IDEA-Vincent-MyJavaTools
/SpringQuartzDB/src/main/centlec/mig/mig_6(债务).sql
UTF-8
3,033
3.15625
3
[]
no_license
DROP PROCEDURE IF EXISTS mig_6; delimiter $$ CREATE PROCEDURE mig_6() BEGIN DECLARE t_error INTEGER DEFAULT 0; DECLARE msg text; # 定义SQL异常时将t_error置为1 DECLARE CONTINUE HANDLER FOR SQLEXCEPTION begin get diagnostics condition 1 msg = message_text; set t_error = 1; end; # 增大debt_amount、remain_debt小数位 # CAL...
true
c07d99892b107fe0384f0c3e7ad6c29d491a9e3b
SQL
GabrielALZU/PL-SQL-Excercises
/PLSQL/plsql012.sql
UTF-8
600
2.875
3
[]
no_license
/* PROGRAMA QUE IMPRIME EL VALOR DE UNA NOTA COMO TEXTO */ SET SERVEROUTPUT ON; DECLARE NOTA NUMBER; B NUMBER; C NUMBER; BEGIN NOTA:=&NOTA; CASE WHEN NOTA>=0 AND NOTA<5 THEN DBMS_OUTPUT.PUT_LINE('INSUFICIENTE'); WHEN NOTA>=5 AND NOTA<6 THEN DBMS_OUTPUT.PUT_LINE('SUFICIENTE'); WHEN NOTA>=6 AND NOTA<7 THEN DBMS_OUTPUT...
true
493057e60fa27450c854f0c8b4822d99b9b9dad4
SQL
peach0819/peach
/有用的/需求记录/37、特殊提成2月需求/ddl.sql
UTF-8
2,684
3.15625
3
[]
no_license
---新增指标 新签GMV占比全月完成率 insert into `bounty_indicator` (`id`, `title`, `bounty_rule_type`, `code`, `sort`, `unit`) values (33, '新签GMV占比全月完成率', 2, 'SIGN_ITEM_GMV_RATE', 8, '%'), (34, '新签GMV占比全月完成率', 3, 'SIGN_BRAND_GMV_RATE', 8, '%'); insert into `bounty_indicator_payout_rule_type` (`bounty_indicator_id`, `payout...
true
8c0743a9684e8eb6d319f860615a0edd4cac7c8d
SQL
drewjwhite/CourseProjects
/JA2 Project/CreateDbScript.sql
UTF-8
672
3.109375
3
[]
no_license
create database ufly; use ufly; create table flight (FlightNumber varchar(10) not null, DepartureAirport varchar(5) not null, DestinationAirport varchar(5) not null, Price decimal(10,2) not null, DateTime datetime not null, Plane varchar(20) not null, SeatsTaken int(11), primary key(FlightNumber)); create table lo...
true
10300f5cfa0eeabfc4986ee536da91e2798568d3
SQL
mattdennewitz/Baseball-PostgreSQL
/retrosheet/linear_weights/09_runner_linear_weights.sql
UTF-8
5,021
3.734375
4
[]
no_license
-------------------------------------------------------------------------------- -- Creates a table of the linear weight of stolen bases and caught stealing -- for each season -- Execution Time: ~ 14 minutes for years 1950 - 2014 -------------------------------------------------------------------------------- create t...
true
4f4c4487b660e658cd36f19b3b4e60a8345c9ca9
SQL
CDE20/MFPE_Projects
/POD-2/calculateNetworth/calculateNetworth/src/main/resources/schema.sql
UTF-8
221
2.921875
3
[]
no_license
create table portfolio (portfolio_id int primary key); create table asset (tid int primary key,assetid varchar(20),portfolioid int,type varchar(10),units int, foreign key(portfolioid) references portfolio(portfolio_id));
true
4cf3b454e71f2661b719e52b548dbdeddad95320
SQL
badangle520/MySQL
/20200831_基础小测试.sql
UTF-8
1,592
4.0625
4
[]
no_license
######################################################################################################## # 测试 -- 开始 ######################################################################################################## 已知表 stuinfo id 学号 name 姓名 email 邮箱 John@126.com gradeId 年级编号 sex ...
true
2652198027b43481fe74bcf4fe6d070ba9db3a4a
SQL
iampkm/EBS
/EBS.Admin/Database/init_admin_menu.sql
GB18030
14,800
2.96875
3
[]
no_license
INSERT INTO `role` VALUES ('1', 'ϵͳԱ', 'Ա'); -- userName = admin,password = admin INSERT INTO `account` VALUES ('1', 'admin', '21232f297a57a5a743894a0e4a801fc3', 'admin', '1', '2017-12-15 10:23:33', '1', '0', '2017-12-15 10:23:59', '0', null); -- ---------------------------- -- Records of role -- --------------------...
true
ab8abdde95db044491c7dd45ea03c8011593ee9e
SQL
zoltarTheGreat/UndergroundMiami
/undermiami.sql
UTF-8
10,007
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 01, 2017 at 04:20 PM -- Server version: 5.7.17 -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
8b0cbe081e5945c24433346679acdb663e0bf1c7
SQL
vicabitu/data_warehouse
/consultas/consultas_dw.sql
UTF-8
3,128
4.09375
4
[]
no_license
---------------------------------- ---------- consulta 1------------- --Venta vista por mes o por año, por sucursal, por región, por cliente y demás combinaciones entre las perspectivas. --El mínimo nivel de detalle que se quiere tener disponible para el análisis de las ventas ($ vendidos y unidades vendidas) --es ...
true
3a4da7c42d70464696ddc86c29a7c2a348bb381d
SQL
jimburkegb/qb
/db/pTidy.sql
UTF-8
3,142
3.53125
4
[]
no_license
-- USE qb ; -- DROP PROCEDURE IF EXISTS qb.`pTidy` ; -- DELIMITER $$ -- CREATE PROCEDURE qb.`pTidy`( IN prmLevel INT, IN prmFrame_ID INT, use_server INT ) BEGIN DECLARE vTemp INT ; -- -- The TIDY function allows multiple levels of db tidy. -- -----------------------------------------...
true
71b8ab7569cdd0be7f7d9718b7943f496da63b9a
SQL
wangjinmiao123/Seckill
/miaosha_2/src/main/db/miaosha_user.sql
UTF-8
1,431
2.703125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : mysql Source Server Type : MySQL Source Server Version : 50727 Source Host : localhost:3306 Source Schema : miaosha Target Server Type : MySQL Target Server Version : 50727 File Encoding : 65001 Date: 02/05/2020 16:44:...
true
2c21c2c2ef5bbb1e25e79067190badacc3cf9aee
SQL
Alex-Cruz6/guiasLis
/guia7/ejemplo6/archivos/HospitalElSalvador.sql
ISO-8859-10
1,732
3.140625
3
[]
no_license
create database HospitalElSalvador use HospitalElSalvador create table usuarios( ID int identity(1,1) primary key, NombreUsuario varchar(50) not null, Contra varchar(20) not null, idTipoUsuario int not null ); create table Tipousuario( ID int identity(1,1) primary key, Nombre varchar(50) not null ); create table ...
true
ba1edaebb5e52a68135e2194c82effd80643d441
SQL
NCU-CC/OAuth-Service
/oauth-server/src/main/resources/test/schema.sql
UTF-8
3,584
3.34375
3
[]
no_license
CREATE TABLE IF NOT EXISTS access_token ( id INT AUTO_INCREMENT PRIMARY KEY NOT NULL, version INT DEFAULT 0, date_created DATETIME, last_updated DATETIME, last_used DATETIME, date_expired DATETIME, encrypted_token VARCHAR(255), client_id INT NOT NULL, user_id INT NOT NULL ); CREATE TABLE IF NOT EXIST...
true
657fd7afd30a4f119a746ebd623932cca2f6066f
SQL
UAMS-DBMI/PosdaTools
/posda/posdatools/queries/sql/GetSopOfPlanReferenceByDose.sql
UTF-8
428
3.1875
3
[ "Apache-2.0" ]
permissive
-- Name: GetSopOfPlanReferenceByDose -- Schema: posda_files -- Columns: ['sop_instance_uid', 'sop_class_uid'] -- Args: ['file_id'] -- Tags: ['LinkageChecks', 'used_in_dose_linkage_check'] -- Description: Get Plan Reference Info for RTDOSE by file_id -- select distinct rt_dose_referenced_plan_uid as sop_instance_uid...
true
595563698875d196509cc7d040efb9c17b9d4453
SQL
Chators/Digger
/src/Digger.DB/DiStock/DiStock/Scripts/2019.Install-sChangeStatusRequest.sql
UTF-8
381
2.75
3
[ "MIT" ]
permissive
create proc dbo.sChangeStatusRequest ( @Id int, @FktStaticStatusRequest int ) as begin set transaction isolation level serializable; begin tran; if not exists(select * from dbo.tRequest r where r.Id = @Id) begin rollback; return 1; end; update dbo.tRequest set FktStaticStatusRequest = @FktStati...
true
2258f032af02e7c73f245bce3bd3b7d26b85ea2e
SQL
ramwarutkar/Retail-Store-Management-System-MySQL-
/Sql_Project_MyConnector_Backend.sql
UTF-8
1,405
3.625
4
[]
no_license
create database sql_project; use sql_project; create table products( p_id int primary key auto_increment, p_name varchar(30) not null, p_cost int not null, p_category enum('A','B','C'), p_quantity int not null, p_description text ); desc products; create table cust_registration( c_id int not null primary key auto_in...
true
43f5ac5f67e579ced2226318379affda7840913e
SQL
edneu/InfoMan
/WebCamp/protocols by month.sql
UTF-8
204
2.90625
3
[]
no_license
select * from ctsi_webcamp_adhoc.VisitRoomCore; SELECT Month,count(distinct ProtocolID) as nProtocols from ctsi_webcamp_adhoc.VisitRoomCore WHERE Month IN ('2019-06','2020-06','2021-06') GROUP BY Month;
true
e71a5834de7a96d6357930a2eea5536426de307a
SQL
sherinshelvan/bavas
/db_bavas.sql
UTF-8
12,220
3.265625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 21, 2020 at 05:31 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.1.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
1378fda6b12e3fe68de2aa29d77048baf06eb2e3
SQL
AmalMAlmomani/08-SQL-Database
/schema.sql
UTF-8
768
2.953125
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS locations; -- DROP TABLE IF EXISTS weathers; -- DROP TABLE IF EXISTS trails; CREATE TABLE locations ( id SERIAL PRIMARY KEY, search_query VARCHAR(255), formatted_query VARCHAR(255), latitude NUMERIC(10, 7), longitude NUMERIC(10, 7) ); -- CREATE TABLE weathers( -- id S...
true
5b8d5948361713b83d6564a1abb9264bda7f7996
SQL
Beanarny/Praca_inz
/System_monitoringu/Tworzenie_systemu_BD/komendy_tworzace_baze_danych.sql
UTF-8
1,995
3.125
3
[ "MIT" ]
permissive
create table personel( ID_pracownika INT NOT NULL AUTO_INCREMENT PRIMARY KEY, imie VARCHAR(50), nazwisko VARCHAR(50), plec VARCHAR(10), data_urodzenia DATE, PESEL VARCHAR(20), data_zatrudnienia DATE, login VARCHAR(20), zaszyfrowane_haslo VARCHAR(30), telefon VARCHAR(20), email VARCHAR(254), kod_pocztowy...
true
93a7628fd05a003126be89e553f1db1a77a84421
SQL
GabrielBN123/AppTranscricao
/bd/transc_bd.sql
UTF-8
6,232
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 02-Abr-2021 às 07:39 -- Versão do servidor: 5.7.11 -- PHP Version: 7.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
98a7a2a50c7a06554db5bd7e953427cb05564341
SQL
kadenaperpetua/twu_biblioteca_database_gabriela_guaman
/q4.sql
UTF-8
318
2.734375
3
[]
no_license
INSERT INTO book VALUES(11, "The Pragmatic Programme"); INSERT INTO member VALUES(43, "Gabriela Guamán"); INSERT INTO checkout_item VALUES(43, 11, NULL); SELECT member.name FROM member, book, checkout_item WHERE member.id = checkout_item.member_id AND checkout_item.book_id = book.id AND book.title ="The Pragmatic Progr...
true
712befc34f73f4c60f57785f042eaf0a9a037d08
SQL
Hansung-Lee/SSAFY
/workshop/workshop_15/workshop_15.sql
UTF-8
657
3.984375
4
[]
no_license
-- Problem 1 -- 아래 표와 같은 스키마를 가진 DB 테이블을 생성하고, 아래와 같이 Data 를 입력해 봅시다. CREATE TABLE bands( id INTEGER, name TEXT, debut INTEGER ); INSERT INTO bands VALUES (1, 'Queen', 1973); INSERT INTO bands VALUES (2, 'Coldplay', 1998); INSERT INTO bands VALUES (3, 'MCR', 2001); -- Problem 2 -- bands 테이블에서 모든 데이터 레코드의 id 와 name ...
true
fb3f2980a991a63f5d46f59f315cd228095b87e2
SQL
16201535wangshenyu/Graduation_Design_Management_System
/src/main/resources/db/mysql/data.sql
UTF-8
13,066
3.1875
3
[]
no_license
USE `gradu_design_sys`; /** *162015班 第11组 *毕设信息管理系统--模块 *@author: *date:2019-6- *主要功能说明: / /*Table structure for table `admin` */ DROP TABLE IF EXISTS `admin`; CREATE TABLE `admin` ( `id` int(6) NOT NULL COMMENT '工号', `name` varchar(255) DEFAULT NULL COMMENT '姓名', `gender` varchar(2) DEFAULT NULL COM...
true
8b062ffd956b743f1a41ec48c1e27354e3c64e9a
SQL
jmw5598/codewars
/sql/8kyu/SQLBasicaSimpleWhereAndOrderBy.sql
UTF-8
508
3.734375
4
[]
no_license
/* For this challenge you need to create a simple SELECT statement that will return all columns from the people table WHERE their age is over 50 people table schema - id - name - age You should return all people fields where their age is over 50 and order by the age descending Your solution should ...
true
349ee30bcce13954d44c9f7c067bfe11c2b0aea6
SQL
jadavianett/Employee-Tracker-
/employeeTrackerSeeds.sql
UTF-8
2,177
4.28125
4
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS employeeDB; CREATE DATABASE employeeDB; USE employeeDB; CREATE TABLE department ( id INT NOT NULL AUTO_INCREMENT, department_name VARCHAR(30), PRIMARY KEY (id) ); INSERT INTO department (department_name) VALUES ("Sales"), ("Marketing"), ("Finance"), ("Research and Devlopment"),...
true
5c62c9ca711796f9d6244acba09a766cedcc6275
SQL
AlexisMorales/tktpassfull
/dev/build.sql
UTF-8
50,156
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.3deb1~trusty.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Aug 18, 2016 at 01:48 AM -- Server version: 5.5.49-0ubuntu0.14.04.1 -- PHP Version: 7.0.6-1+donate.sury.org~trusty+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET GLOBAL time_zone = "Europe/Londo...
true