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
29787b8795a8e23edc946d1872bcb52b319790b2
SQL
ganeshbabuNN/Databases
/RDMS/Oracle Database/Declaring_A_Variables.sql
UTF-8
535
2.734375
3
[]
no_license
--declare declare /*Declare the varaiable */ employeeid number(10); begin null; end; -- declare and intialize declare /*Declare the varaiable */ employeeid number(10); begin /*Declare the varaiable */ employeeid := 101; /*print the message */ dbms_output.put_line(employeeid); end; / -- declare and inti...
true
e5f736b4188d4bff03f51f32c8147443a13af9d2
SQL
budsus/lpps
/sql/modulkegiatan.sql
UTF-8
5,155
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 26, 2013 at 02:37 AM -- Server version: 5.5.32 -- PHP Version: 5.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
0ad7d37f60202d6ba46a20ef3edb6888acd7dac2
SQL
phschimm/jump-the-queue
/java/jtqj/core/bin/src/main/resources/db/type/h2/V0006__Create_Queue.sql
UTF-8
380
2.546875
3
[ "Apache-2.0" ]
permissive
create table DailyQueue( id BIGINT NOT NULL AUTO_INCREMENT, modificationCounter INTEGER NOT NULL, name VARCHAR(255), logo VARCHAR(255), currentNumber VARCHAR(255), attentionTime TIMESTAMP, minAttentionTime TIMESTAMP NOT NULL DEFAULT '60000', active BOOL NOT NULL DEFAULT '1', customers INTEGER NOT NULL...
true
960a8f880248f33555dd01a11e15671b42d74075
SQL
ksandeeprao80/ORT_SRS
/Database/INSERT/20130227_MS_SurveySettings.sql
UTF-8
729
2.890625
3
[]
no_license
IF NOT EXISTS(SELECT 1 FROM MS_SurveySettings WHERE SettingName IN('SEND_DEFAULT_MESSAGE_ID','SEND_REMINDER_MESSAGE_ID')) BEGIN SET IDENTITY_INSERT MS_SurveySettings ON INSERT INTO MS_SurveySettings (SettingId, SettingType, SettingName, DisplayText) SELECT 69, '', 'SEND_DEFAULT_MESSAGE_ID', 'SEND_DEFAULT_MESSAGE_...
true
4e9ae636718dc3b70b50c2c03032713f1548e51f
SQL
protosisprov/sisprov_ds
/mapa_s/class/sql/mostrar/mostrar_desarrollo_resumen_estado__.sql
UTF-8
197
2.859375
3
[]
no_license
SELECT nombre, descripcion, urban_barrio || ', '|| av_call_esq_carr || ',' || zona as direccion FROM desarrollo a, vsw_sector b where a.parroquia_id=b.cod_parroquia AND estado ilike '{fld:estado}'
true
f0f0205cfa3ec45483b44f0bcd84c41cbe60ddfc
SQL
Alwyn-Ong/ESD
/backend/dbscripts/sglovelah_profile.sql
UTF-8
1,813
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Apr 01, 2020 at 03:05 PM -- Server version: 5.7.23 -- 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 @OLD_CH...
true
736c34a2aeca66fc3c590b19d99a554edd6f1634
SQL
albiurs/edu_zhaw_databases
/winestore/01_File_DB_winestore.SQL
UTF-8
857,971
3.546875
4
[]
no_license
# Uebungsdatenbank R. Zimmermann #-------------------------------------------------------------------------------------------- drop database if exists winestore; create database winestore; use winestore; CREATE TABLE customer ( cust_id int(5) NOT NULL, surname varchar(50), firstname varchar(50), initial char(1...
true
8d045cd1560b4009024bd1e90a111aaa0ac4026f
SQL
Mbogo33/intERPrise
/Database_Services/SRCDB_/UTL110F.DDL
UTF-8
5,614
3.234375
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
-- ======================================================================================= -- - -- Copyright (c) 2008-2018 TEMBO Technology Lab (Pty) Ltd. - -- Created by AO Foundation - www.adsero-opt...
true
f1d7aecad5151eb3161ae15c1408426f2f499d92
SQL
radtek/SqlAccessor
/Bin/SqlPods/PersonTableWildcard.sql
UTF-8
1,003
2.65625
3
[ "MIT" ]
permissive
<?xml version="1.0" encoding="UTF-8"?> <sqlPod> <find><![CDATA[ /** @Daimyou = "isDaimyou IN (0,1)" */ SELECT P.* FROM Persons P /* WHERE @Daimyou */ ]]></find> <count> <![CDATA[ ]]> </count> <save><![CDATA[ UPDATE Persons SET name = @Na...
true
adf8bd5073137229b87a9d108cf01fd2ce56eb1e
SQL
zhuzhuao/libman
/数据库libman/students.sql
UTF-8
1,403
3.046875
3
[]
no_license
/* Navicat MariaDB Data Transfer Source Server : test Source Server Type : MariaDB Source Server Version : 100214 Source Host : localhost:3306 Source Schema : libman Target Server Type : MariaDB Target Server Version : 100214 File Encoding : 65001 Date: 10/06/2018 16...
true
2cb128497a85097ec45f927fb79ace6ac80b613c
SQL
alicia-cordial/lbp
/notation.sql
UTF-8
1,541
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 22, 2021 at 11:50 AM -- Server version: 5.7.30 -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
a7ca82a7bfbb535f93d23c95f55f7e4235e9a94d
SQL
empiricaldataman/DB2LS
/SQL/BOOKS/01.05_Find_Cached_Plan.sql
UTF-8
599
3.71875
4
[ "MIT" ]
permissive
-- Listing 1.5 Quickly find a cached plan SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED SELECT TOP 20 st.[text] AS [SQL] , cp.cacheobjtype , cp.objtype , COALESCE(DB_NAME(st.dbid), DB_NAME(CAST(pa.value AS INT))+'*', 'Resource') AS [DatabaseName] , cp.usecounts AS [Plan usage] , qp.query_pl...
true
b8e3167cf4465569a8685eed648a916eb333a31c
SQL
ToolReaz/master-sharp
/LIVRABLES FINAUX/Base de données/Script MSSQL Creation.sql
UTF-8
8,228
3.46875
3
[]
no_license
/*------------------------------------------------------------ * Script SQLSERVER ------------------------------------------------------------*/ /*------------------------------------------------------------ -- Table: Stocks ------------------------------------------------------------*/ CREATE TABLE Stocks( ...
true
8a4f08a25bf5f9a4256bd3fde87d4ed5a3f0d2d3
SQL
cpaqyx/fastwaveCloudCourse
/coursewareV2.0/9.4seata分布式事务过程跟踪/测试脚本.sql
UTF-8
1,687
2.859375
3
[]
no_license
truncate table `order`.`order`; truncate table stock.stock; insert into stock.stock values("001",100); select * from `order`.`order`; select * from stock.stock; -- 全局事务信息 select * from seata.global_table; -- 运行每一个微服务更新sql时,会有记录 select * from seata.branch_table; -- 锁信息 select * from seata.lock_table; select * fr...
true
103a0f8c577e24d14b1712d9840bd9ba8d785213
SQL
VasilisaUshatska/dbis
/km52/Ushatska_Vasylyna/laboratory4.sql
UTF-8
1,929
3.875
4
[]
no_license
-- LABORATORY WORK 4 -- BY Ushatska_Vasylyna 1. Створити тригер, котрий при створені нового студента додає йому новий зошит CREATE OR REPLACE TRIGGER create_student_trigger AFTER INSERT ON Students FOR EACH ROW BEGIN INSERT INTO notebook ( notebook_id, notebook_name, student_id, ...
true
9997ac87b4bbe093ed1fafdf90ba9810426ee821
SQL
lobodava/artisan-orm
/Database/5. Procedures/Users/DeleteUser.sql
UTF-8
227
2.890625
3
[]
no_license
create procedure dbo.DeleteUser @UserId int as begin set nocount on; if @UserId between 1 and 14 -- Heros can not be deleted return 1; delete from dbo.Users where Id = @UserId; if @@rowcount = 0 return 2; end;
true
c10f19a2689bd9d962b56ef462c35c55c6e2d9be
SQL
pankaj510/Fintech_Activities
/7_Week/Activities/Student Activities/07-Stu_Customer_Demographics/Class_Activity.sql
UTF-8
352
3.109375
3
[]
no_license
/*create table customer ( customer_id SERIAL PRIMARY KEY, first_name varchar(30), last_name varchar(30), gender varchar(20), age int, address varchar(200), city varchar(50), state varchar(3), zip_code bigint ) ; */ select * from customer where gender = 'Female'; select * from customer c where gender = 'Male' and (c.st...
true
e49186ba50853ed1690f0a8264a2be8d7b376696
SQL
bkaushal07/scripting
/config/QuizDatabase.sql
UTF-8
4,223
3.421875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 26, 2016 at 06:07 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
3fd6f54f81565fff5df8d87d1b5b4e026aedc080
SQL
pavantejam/SQL
/sql-ex-ru/q38.sql
WINDOWS-1252
213
2.8125
3
[]
no_license
/* Exercise: 38 (Serge I: 2003-02-19) Find countries that ever had classes of both battleships (bb) and cruisers (bc). */ select country from Classes group by country having count(distinct(type))=2
true
5f762ebe9948c2f2fd7dba08cbb281f428baf668
SQL
edusig/USP
/Graduação/Laboratório de Banco de Dados/Prática 02/SQL/Exercício 2a [SEQUENCE].sql
UTF-8
763
2.703125
3
[]
no_license
/* Cria as sequências necessárias para os atributos das tabelas Deve ser executado antes das inserções, pois as sequências são usadas nas inserções */ /* TODO: - Nothing. */ /* 2a. */ CREATE SEQUENCE seq_idPessoa MINVALUE 0 NOMAXVALUE START WITH 0 INCREMENT BY 1 NOCYCLE NOCACHE; CREAT...
true
d97a96766de36e2af8d2c5cc3bc701dfb6577e6d
SQL
cdesmarais/WebDB-Test
/WebDB/StoredProcedures/Common/dbo.DNCachePromoPagesList.PRC
UTF-8
1,923
3.484375
3
[]
no_license
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[DNCachePromoPagesList]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[DNCachePromoPagesList] GO CREATE PROCEDURE dbo.DNCachePromoPagesList AS SET NOCOUNT ON SELECT pp.PromoID ,pp.PromoPageName ,pp.PromoPageImage ,pp.ImageA...
true
f9516f3fe6c75a616d8d26e210d6020e1d56b963
SQL
buseamy/GR-JCI
/DatabaseScripts/spReviewerGetFilesList.sql
UTF-8
671
3.796875
4
[]
no_license
USE gr_jci; DELIMITER $$ DROP PROCEDURE IF EXISTS `spReviewerGetFilesList`$$ CREATE PROCEDURE `spReviewerGetFilesList`(IN _ReviewerUserID int, IN _SubmissionID int) DETERMINISTIC BEGIN /* Created By : Jeff Ballard * Create Date: 18-Apr-2016 * Purpose : Gets the file list for a ReviewerUserID & SubmissionID...
true
2905be32d06b60f9a2f62b9952995d4d9c72b3f8
SQL
vmejiaec/setimimpq
/KCG/xDB/Schema Objects/Schemas/dbo/Programmability/Stored Procedures/Procs1/Par_Iva_Insert.proc.sql
UTF-8
1,106
3.109375
3
[]
no_license
CREATE PROCEDURE dbo.Par_Iva_Insert ( @Id varchar(17), @Codigo varchar(200), @Nombre varchar(500), @Valor numeric(5, 2), @Cuenta varchar(200), @Tipo_Auxiliar varchar(3), @Auxiliar varchar(200), @Int_Empresa_Id varchar(17), @Creacion_Per_Personal_Id varchar(17), @Fecha_Creacion smalldatetime, @Up...
true
d2b959bd88f194d51195aa6745931771210892de
SQL
AntoniaGogoglou/Dataset-of-bibliographic-networks
/ms_publication/ms_pub.sql
UTF-8
2,063
3.078125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.38, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: dblp_antonia -- ------------------------------------------------------ -- Server version 5.6.38-1~dotdeb+7.1-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULT...
true
0e1445ce6c5ceba5a8b9e0a84a0e6c2e5dc6d575
SQL
Bryancnguyen/CS157A
/MidtermSQLReview.sql
UTF-8
12,084
4.75
5
[]
no_license
#Find the titles of all movies directed by Steven Spielberg. select title from Movie where director = 'Steven Spielberg'; #Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order. select distinct year from Movie, Rating where Movie.mID = Rating.mID and stars>=4 order...
true
ba97f2e30e4215c43ec186336a00b262a20fb8a6
SQL
crockb/canine-rescue-database
/sampleData.sql
UTF-8
9,738
2.578125
3
[]
no_license
/* Sample Data for Canine Rescue Database */ INSERT INTO `dog` (`dog_id`, `name`, `birthday`, `sex`, `breed`, `weight`, `status`) VALUES (1,'Duncan','2013-05-17','M','Springer Spaniel',60,'Healthy'), (2,'Ace','2014-06-23','M','Chihuahua',96,'Healthy'), (3,'Apollo','2010-11-10','M','Poodle',45,'Healthy'), (4,'Bailey','...
true
0f7e044b7694beb1943a1cc14593dba520a8ba72
SQL
mumufans/youbi
/target/youbi/WEB-INF/classes/SQL/user.sql
UTF-8
765
2.90625
3
[]
no_license
DROP TABLE if EXISTS `user`; CREATE TABLE `user`( `user_id` int(10) NOT NULL auto_increment, `user_name` VARCHAR (255) NOT NULL , `zhname` VARCHAR (255) NOT NULL , `hash` VARCHAR (255) NOT NULL, `salt` VARCHAR (255) NOT NULL , `bade_number` VARCHAR (255) DEFAULT NULL , `duty` VARCHAR (255)DEFAULT NULL , `mobile` VARCH...
true
2fc6f33e03c2b00f3e4d501435242a825abc3b7c
SQL
gilepile/basketballsite
/sql_queries/teams_player_played_for.sql
UTF-8
314
2.921875
3
[]
no_license
CREATE TABLE `flaskTutorial`.`teams_player_played_for` ( `index` INT NOT NULL AUTO_INCREMENT, `player_id` INT NOT NULL, `current_team_id` INT NOT NULL, `past_team_id` INT NULL, `seasonStart` INT NOT NULL, `seasonEnd` INT NOT NULL, PRIMARY KEY (`index`), UNIQUE INDEX `index_UNIQUE` (`index` ASC));
true
fc74ba3f23d35bc3cef9d409af207a031f8c3906
SQL
SIDN/sadag-public
/scripts/http-active-scan/extraxt-scan-metrics.sql
UTF-8
2,667
3.140625
3
[]
no_license
-- total new gtlds domains scanned select count(1) from crawl_result_http where crawl_run in (30,31,32,33,34,35) --newgtld domains scanned per tld copy ( select reverse(split_part(reverse(domainname),'.',1)) as tld, count(1) as domains from crawl_result_http where crawl_run in (30,31,32,33,34,35) group by tld order by...
true
f3c17640acc02bd859ae481ab0654b61b106a17c
SQL
j7ng/CLFY_SA
/SA/Functions/CLEAN_DATA_SQA_BYOP.sql
UTF-8
1,440
2.640625
3
[]
no_license
CREATE OR REPLACE function sa.clean_data_sqa_byop(p_pn_esn in varchar2) return varchar2 is V_Esn Varchar2(30) := p_pn_esn; BEGIN DELETE FROM table_x_ota_features WHERE X_OTA_FEATURES2PART_INST IN (SELECT objid FROM table_part_inst WHERE part_serial_no = v_esn); DELETE FROM table_site_part WHERE x_service_i...
true
ca944728f1bd21ad589dd618af0e8962704e8163
SQL
tianms/mind-cloud
/mind-model/src/main/resources/sql/sys/sys_log_record.sql
UTF-8
627
2.9375
3
[]
no_license
CREATE TABLE sys_log_record ( id INT (20) NOT NULL AUTO_INCREMENT COMMENT '主键id', user_name VARCHAR (200) NOT NULL DEFAULT '' COMMENT '用户名', operation VARCHAR (500) NOT NULL DEFAULT '' COMMENT '用户操作', method VARCHAR (100) NOT NULL DEFAULT '' COMMENT '请求方法', params text NOT NULL COMMENT '请求参数', run_time DECIMAL (1...
true
891cdc92fc4feb7209bdaae6c759229f054c6254
SQL
giovannic/crowdtrust
/src/main/sql/init.sql
UTF-8
3,342
3.53125
4
[]
no_license
DROP TABLE IF EXISTS responses; DROP TABLE IF EXISTS subtasks CASCADE; DROP TABLE IF EXISTS ranged CASCADE; DROP TABLE IF EXISTS tasks CASCADE; DROP TABLE IF EXISTS types CASCADE; DROP TABLE IF EXISTS accounts CASCADE; DROP TABLE IF EXISTS estimates CASCADE; DROP TABLE IF EXISTS binaryaccuracies CASCADE; DROP TABLE IF ...
true
f3317a17475925bc7a29284c2da230fa25bf9869
SQL
iconation/Aegis
/sql/scripts/transactions_count_per_day.sql
UTF-8
572
4.71875
5
[ "Apache-2.0" ]
permissive
SELECT DATE(FROM_UNIXTIME(block.timestamp DIV 1000000)), COUNT(DISTINCT all_transactions.txid) + COUNT(DISTINCT all_transactions.itxid) FROM iconation.block LEFT JOIN ( SELECT transaction.id as txid, internal_transaction.id as itxid, transaction.block as blockid FROM ...
true
7f1c404b4272706a5c2adf2c3e67614a5e1431ee
SQL
ednargocat/YouPHPTube
/plugin/Scheduler/install/install.sql
UTF-8
936
3.28125
3
[ "Apache-2.0", "JSON" ]
permissive
CREATE TABLE IF NOT EXISTS `scheduler_commands` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `callbackURL` VARCHAR(255) NOT NULL, `parameters` TEXT NULL DEFAULT NULL, `created` DATETIME NULL DEFAULT NULL, `modified` DATETIME NULL DEFAULT NULL, `date_to_execute` DATETIME NULL, `executed_in` DATETIME NULL DEFAUL...
true
1311042b0de6cbde50faf5aae43891c7632735c7
SQL
Planutim/sql-ex
/solutions/141.sql
UTF-8
486
4.125
4
[]
no_license
select name, coalesce(cnt,0)cnt from passenger, ( select z.ID_psg, zz.cnt from (select distinct ID_psg from pass_in_trip)z left join (select ID_psg, iif(ff_date>'2003-04-30' or lf_date<'2003-04-01',0, datediff(day,ff_date,lf_date)+1) as cnt from ( select ID_psg, iif(min(date)<'2003-04-01','2003-04-01',min(date))ff_d...
true
4e20f3d64744e0376e8d3492d63b369c0cae536a
SQL
whawkins4/arborlibrary
/db/important sql queries/import_circulation_actuallyPopulateRealTables.sql
UTF-8
1,070
3.515625
4
[]
no_license
update checkout_import set user_id = trim(user_id); update checkout_import set checkout_time = trim(checkout_time); update checkout_import set checkout_time ='04/01/2011 12:23:42' where length(checkout_time)<4 or checkout_time is null; update checkout_import set user_id = m.new from library_card_map m where m.old =...
true
e7169bc01d0b404f218169845c864d1deaa41c6e
SQL
cnmipss-web/cnmipss-webtools
/resources/sql/procurement-addenda-queries.sql
UTF-8
564
3.25
3
[]
no_license
-- :name create-addendum! :! :1 -- :doc Creates a new addendum to an existing rfp/ifb insert into procurement_addenda (id, file_link, proc_id, addendum_number) values (:id, :file_link, :proc_id, :number); -- :name delete-addendum! :! :1 -- :doc Deletes an addendum from the database delete from procurement_addenda wher...
true
59e8bb6fdcec60a3716dae1f6762d1d1b1f388ae
SQL
ibis-project/ibis
/ibis/tests/sql/snapshots/test_sqlalchemy/test_sort_aggregation_translation_failure/out.sql
UTF-8
192
3.03125
3
[ "Apache-2.0" ]
permissive
SELECT t0.string_col, t0.foo FROM ( SELECT t1.string_col AS string_col, MAX(t1.double_col) AS foo FROM functional_alltypes AS t1 GROUP BY 1 ) AS t0 ORDER BY t0.foo DESC
true
af681f25e38c36e2fd48de6a69bf1547c2cb8258
SQL
Gwellir/gb_db_project
/4- triggers.sql
UTF-8
523
3.671875
4
[]
no_license
USE tg; DROP TRIGGER IF EXISTS check_pinned_message; DELIMITER // CREATE TRIGGER check_pinned_message BEFORE UPDATE ON conversations FOR EACH ROW begin IF NEW.pinned_id NOT IN (SELECT id FROM messages WHERE conversation_id = NEW.id) THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'Pin Denied. Mes...
true
6e5649d6652861e04cdbc6a681cd1fe83d471be3
SQL
maquiavelo79/bodyflex
/dataBase/[DEP-SP]/x_SP_PERFIL_PROFESIONAL_POSEE_PROD.sql
UTF-8
551
2.703125
3
[]
no_license
-- CALL SP_PERFIL_PROFESIONAL_POSEE_PROD('tqghogcvkhl7b70riagdq3ne14'); DROP PROCEDURE IF EXISTS bodyflex.SP_PERFIL_PROFESIONAL_POSEE_PROD; CREATE PROCEDURE bodyflex.`SP_PERFIL_PROFESIONAL_POSEE_PROD`( IN rut VARCHAR(20) ...
true
87a2ac0d785632910221fb8b9883f1aaa8de621a
SQL
adeshkrsingh/Windows-Phone-Web-Browser
/Cromic Browser/Cromic Browser/sql/tutemgmt.sql
UTF-8
1,547
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10.7 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Oct 18, 2016 at 12:44 PM -- Server version: 5.6.32-78.0-log -- PHP Version: 5.4.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE...
true
ddff1a2c86ab9f334d9892bd80a0646c288528c5
SQL
arzunursemiz/DinamikWebSitesi
/asosblog_yapi.sql
UTF-8
4,374
3.453125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : AsosBlog Source Server Type : MySQL Source Server Version : 80021 Source Host : localhost:3306 Source Schema : asosblog Target Server Type : MySQL Target Server Version : 80021 File Encoding : 65001 Date: 24/07/2020 11...
true
cc0064550ebbf61ca65bb75580f0fabba0f49e36
SQL
codingteam/loglist
/scalajvm/conf/evolutions/default/5.sql
UTF-8
169
2.609375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
# --- !Ups create index quote_time on quote (time desc); create index quote_rating on quote (rating desc); # --- !Downs drop index quote_time; drop index quote_rating;
true
662ffc5ed821d545661f6306d227de5d1cbee409
SQL
gerardo-rodriguez/Yahoo-Fantasy-Sports-API-Fun
/project/data/sql/dump_20120113_gerardo.sql
UTF-8
7,298
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.9.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 13, 2012 at 03:07 PM -- Server version: 5.5.9 -- PHP Version: 5.3.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `isabellacollection` -- -- ---------------------------------------------------...
true
9de7b805146310fe30af33a58c136411041f8e38
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day16/select1825.sql
UTF-8
268
2.859375
3
[]
no_license
SELECT sen.name FROM SENSOR sen, SENSOR_TYPE st, COVERAGE_INFRASTRUCTURE ci WHERE sen.SENSOR_TYPE_ID=st.id AND st.name='WiFiAP' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['2054','4100_4','4100_9','2081','1407','3062','2204','4100_8','4062','6056'])
true
acd1c73b8c52cc6ba9deb5c085a26cde610ea5ba
SQL
herbertyz/smartmvp
/sqldb/schemas.sql
UTF-8
1,156
3.21875
3
[]
no_license
CREATE TABLE `lead_user_responses` ( `session_id` bigint(20) unsigned NOT NULL, `question_key` varchar(255) NOT NULL DEFAULT '', `answer_value` text, `answer_order` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`session_id`,`question_key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `lead_user_sessions`...
true
1dbacfab19c51363e3cdf3ac295e6b2cdd447817
SQL
RoyalFlushOn/WMV
/db scripts/venue.sql
UTF-8
557
3
3
[]
no_license
CREATE TABLE Venue ( venue_id int(10), name varchar(50), local_id int(10), group_local_id int(10), type varchar(15), capacity int(7), seating_prof_id int(10), rating varchar(1), Primary Key(venue_id), Foreign Key(local_id) References Location(local_id) On Delete S...
true
aec9cd4dd0abd9182ef21e77ed185419e92474a4
SQL
jtrent238/CPT-242-002
/databases/jtrent238_cpt_242_datadictonary_1082019808.sql
UTF-8
38,515
3.265625
3
[]
no_license
-- -------------------------------------------------------- -- Host: mysql-jtrent238.alwaysdata.net -- Server version: 10.3.17-MariaDB - MariaDB Server -- Server OS: Linux -- HeidiSQL Version: 10.2.0.5599 -- --------------------------------------...
true
6d1a098365a917878acd36d546a92bee76060d9a
SQL
yanghongfei/Python
/TimedTask/schema.sql
UTF-8
2,482
2.921875
3
[]
no_license
-- MySQL dump 10.14 Distrib 5.5.56-MariaDB, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: TimedTask -- ------------------------------------------------------ -- Server version 5.7.22 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESUL...
true
58d7dea4b7c46215e4ac62302b1dc3369f62b242
SQL
momo3334/Tp_IdleGame
/Scripts/Procédures stockées/spUpdateLoot.sql
UTF-8
159
2.578125
3
[]
no_license
CREATE PROCEDURE spUpdateLoot @id integer, @name nvarchar(50), @value integer AS UPDATE Loots SET LootName = @name, LootValue = @value WHERE Loots.LootID = @id
true
8843b70f242a8a5a17a6d4e07afc7c9e0d71b715
SQL
gladiopeace/digital-data-syn
/documents/oms/TB_PROEA.sql
GB18030
1,741
3.234375
3
[]
no_license
/* ================================================================================ ṹ:TB_PROEA ṹ:λ ṹĿ: ================================================================================ */ drop sequence SEQ_TB_PROEA; drop index AK_TB_PROEA; drop table TB_PROEA; create table TB_PROEA ( PROEA_ID INTEGER ...
true
0595ae7c283bda028713056198e693dbeea2389c
SQL
radamhu/prog101
/sql101/10 Gyakorlás - Maraton/megoldasok_kész.sql
UTF-8
934
3.5625
4
[]
no_license
-- 1 . feladat (az SQLite-ban nem szükséges, de más rendszerben ezt kellene beírni) CREATE DATABASE maratonvalto DEFAULT CHARACTER SET utf8 COLLATE utf8_hungarian_ci; -- 2. feladat -- lefuttatni az SQL fájlokat -- táblák szerkezetét értelmezni, tartalmát megnézni -- varchar()-t text-ként kezeli -- az eredmeny...
true
632e09d888f101b282e68c15dd03f5098affcdab
SQL
chauyiu1994/spring-cloud-microservices-online-bid
/OnlineBidProductsService/sql/triggers/bid/BidBeforeUpdateTrigger.sql
UTF-8
480
3.8125
4
[]
no_license
-- check if there already exists a bid of status of '1' of that product DELIMITER $$ CREATE TRIGGER BID_BEFORE_UPDATE_TRIG BEFORE UPDATE ON `BID` FOR EACH ROW begin IF NEW.STATUS = '1' THEN SET @OLDSTS = (SELECT STATUS FROM BID WHERE STATUS = '1' AND PRODUCT_ID = NEW.PRODUCT_ID); IF @OLDSTS = '1' TH...
true
2f98d0537fcbf84e295c6b120b9cd81ef787ad9f
SQL
NainzguL/polaris
/db/V1.6.3__social_origin.json.sql
UTF-8
3,955
2.78125
3
[]
no_license
USE polaris; SET @soc_ori_type_id = (SELECT id FROM OriginType WHERE name = 'social'); INSERT INTO Origin VALUES (NULL, 'ghetto', @soc_ori_type_id); SET @ghetto_soc_ori_id = (SELECT id FROM Origin WHERE name = 'ghetto'); INSERT INTO OriginCompetence VALUES (NULL, @ghetto_soc_ori_id, (SELECT id FROM Comp...
true
6bb77c9b0956104c97a2e1207e1d14b51e7e3030
SQL
richardfujii/12_03_2021_Exerc-cios_SQL_Relacional
/exercicio1.sql
UTF-8
1,355
3.6875
4
[]
no_license
CREATE DATABASE db_generation_game_online; USE db_generation_game_online; CREATE TABLE tb_classe ( id_classe VARCHAR(255) UNIQUE, habilidade VARCHAR(255), skins INT, PRIMARY KEY(id_classe) ); INSERT INTO tb_classe (id_classe, habilidade, skins) VALUES ("Mercador","Vendedor nato",2), ("Espadac...
true
a199b3309e38c12a3f94cc4e244ddb15ba8c8944
SQL
knopka-0075/web-backend-oplossingen
/SQL - 27-03/forum-06-03.sql
UTF-8
4,092
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Machine: 127.0.0.1 -- Gegenereerd op: 27 mrt 2015 om 14:57 -- Serverversie: 5.6.20 -- PHP-versie: 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
aef376479de04a3e3a6f6784e97f614ebe090b84
SQL
Ana-Todorovic/bamazon
/bamazon.sql
UTF-8
850
3.21875
3
[]
no_license
DROP DATABASE IF EXISTS bamazon_db; CREATE DATABASE bamazon_db; USE bamazon_db; CREATE TABLE products( item_id INTEGER(11) AUTO_INCREMENT NOT NULL, product_name VARCHAR(100)NOT NULL, department_name VARCHAR(100)NOT NULL, price VARCHAR(100)NOT NULL, stock_quantity VARCHAR(100)NOT NULL, PRIMARY KEY (item_id)...
true
20d7fbd2a2490e29549209a3e40fd8b255886638
SQL
sonabit/armabrowser
/html/ArmaWebSite/api/5/SQL/tables.sql
UTF-8
3,904
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.3.10 -- http://www.phpmyadmin.net -- -- Host: localhost -- Erstellungszeit: 03. Mrz 2015 um 22:15 -- Server-Version: 5.5.41-0ubuntu0.14.04.1 -- PHP-Version: 5.5.9-1ubuntu4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
true
951b66abc0489d8e034f1b3206c4b399e5bbf657
SQL
youyuting/doctoc-server
/h2-create.sql
UTF-8
291
3.125
3
[]
no_license
create table book ( id bigint not null, title varchar(64) not null, author varchar(64) not null, constraint uq_book_title unique (title), constraint pk_book primary key (id)) ; create sequence book_seq;
true
5d7663dcae905fa3ec1564bee40107045c3d4c61
SQL
bburgemeestre/IMROI
/create_qgis/qgis.sql
UTF-8
6,354
2.71875
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 11.8 (Debian 11.8-1.pgdg90+1) -- Dumped by pg_dump version 12.4 -- Started on 2021-01-14 13:42:43 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strin...
true
fbff4232e233db2cbc055b2a8b3c1510135ff782
SQL
sunlight3d/Aptech
/C2106L/SQL/24_02_2022.sql
UTF-8
1,115
4.03125
4
[]
no_license
USE StudentManagement; DROP TABLE Person; CREATE TABLE Person( PersonId INT PRIMARY KEY IDENTITY(1, 1), FirstName NVARCHAR(30) NOT NULL, LastName NVARCHAR(30) NOT NULL ); INSERT INTO Person(FirstName, LastName) VALUES ('Nguyen Van', 'A'), ('Nguyen Xuan', 'X'), ('Tran Van', 'C'), ('Pham Van', 'B'); SEL...
true
6e44316bd66fc1ba63c4962c9fea09f7dcb32c88
SQL
axs1088/EMRMS
/Scripts/MySql/StoredProcedures/Emrms_GetLoggedInUserDetails.sql
UTF-8
365
2.734375
3
[ "MIT" ]
permissive
USE EMRMS; CREATE PROCEDURE Emrms_GetLoggedInUserDetails(IN UserObjectID INT) BEGIN DECLARE personID INT; SELECT HPersonID INTO personID FROM h_user WHERE HUserID = UserObjectID; SELECT CONCAT(hn.LastName, ', ',hn.FirstName, ' ', hn.MiddleName, ' ', hn.Title) AS UserName FROM h_name...
true
6835fc9129389c0625a6dd4c7444f1ac275e878f
SQL
daniccast/Distributed_DataBase
/Ejercicios/Parcial1/PL-SQLbyExample/Chapter4/Ejercicio2.sql
WINDOWS-1252
2,168
3.46875
3
[]
no_license
spool C:\Users\lolol_000\Documents\Distributed_DataBase\Ejecicios\Parcial1\PL-SQLbyExample\Chapter4\salida\ejercicio2chapter4.txt /* rem ***************************************************** rem * Distributed DataBase, ESCOM. Ciclo 2021-2 * rem * Elaborado por: * rem * Corts ...
true
5c121347d588e577259cd9075d79d4189fef8433
SQL
saimohanreddyt/mysql
/MyISAM.sql
UTF-8
317
3.03125
3
[]
no_license
MyISAM ====== For MyISAM tables, you can specify AUTO_INCREMENT on a secondary column in a multiple-column index. In this case, the generated value for the AUTO_INCREMENT column is calculated as MAX(auto_increment_column) + 1 WHERE prefix=given-prefix. This is useful when you want to put data into ordered groups.
true
a7d2399d78486ecaa4ebdd4083c670524335f811
SQL
matheusbreno/CadastroPweb
/usuarios.sql
UTF-8
2,318
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 22-Set-2021 às 01:05 -- Versão do servidor: 10.4.20-MariaDB -- versão do PHP: 8.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
true
1acb07c90d7a7d9d9a46abbaa700f43d091fb5b6
SQL
actosnasci/controlHome
/Base_de_dados/tabelas_querys/compra_individual.sql
UTF-8
1,336
3.328125
3
[]
no_license
-- USE BASE_HOMOLOGACAO; CREATE TABLE COMPRA_INDIVIDUAL( Id_compra_individual int(8) auto_increment, Descricao_produto varchar(30) not null, quantidade int(5) not null, valor float not null, Data_compra datetime not null, nome_mercado varchar(30) not null, nome_categoria varchar(30) not null, cidade varchar(3...
true
f8434a1bb2d673763d51bfeea7fe8ce61cf1386d
SQL
dingjinhui821/julive_database
/schema/julive_ods/yw_order_project_relation.sql
UTF-8
1,296
3.03125
3
[]
no_license
drop table if exists ods.yw_order_project_relation; create external table ods.yw_order_project_relation( id bigint comment '', order_id bigint comment '订单id', recommend_project ...
true
5b69d539cb3abb6652133077321d87e5aa2a81a5
SQL
bukazoid/2020-11-otus-spring-yakimov
/hw6-jpql/src/main/resources/db/changelog/2.0/2021-01-19--0001-comments.sql
UTF-8
252
3.046875
3
[]
no_license
--liquibase formatted sql --changeset yakimov:2021-01-19--0001-comments CREATE TABLE comments ( comment_id BIGINT auto_increment, text VARCHAR, book_id BIGINT, PRIMARY KEY (comment_id), FOREIGN KEY (book_id) REFERENCES books(book_id) );
true
f3447b8aeab13af6ed54c1378dab451accaff6ff
SQL
ianzhengnan/spring-blog
/src/test/resources/dbscripts/001_create_sblog_test.sql
UTF-8
6,255
3.4375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50719 Source Host : localhost:3306 Source Database : sblog Target Server Type : MYSQL Target Server Version : 50719 File Encoding : 65001 Date: 2017-08-15 16:51:39 */ SET FOREIGN_KEY_CHECKS=0; -...
true
51be2a03a03c1fcb80b7450d570c260c0563c288
SQL
esotere/beats
/database/signup.sql
UTF-8
438
2.78125
3
[]
no_license
USE music; DROP TABLE IF EXISTS signup; CREATE TABLE signup ( id INTEGER(11) AUTO_INCREMENT NOT NULL, name VARCHAR(170) NOT NULL, email VARCHAR(170)NOT NULL, -- beat_rating INTEGER(11), username VARCHAR(170) NOT NULL, -- producer_rating INTEGER(11), password VARCHAR(200) NOT NUL...
true
2e3a8f6fe82001acb56d43ef5cb6347691f50c1d
SQL
Symplicity/subdivision-list
/data/pl/mysql/subdivisions_ES.mysql.sql
UTF-8
5,586
2.65625
3
[ "MIT" ]
permissive
CREATE TABLE subdivision_ES (id VARCHAR(6) NOT NULL, name VARCHAR(255) NOT NULL, level VARCHAR(64) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB; INSERT INTO `subdivision_ES` (`id`, `name`, `level`) VALUES ('ES-C', 'A Coruña', 'province'); INSERT INTO `subdivision_ES` (`...
true
8726ae962de9dd9a44931af8f15971f982c6e7eb
SQL
BitTribe/devfest
/hms_schema.sql
UTF-8
1,534
2.984375
3
[]
no_license
CREATE TABLE IF NOT EXISTS PATIENT_DETAILS ( ID INT(11) AUTO_INCREMENT, FIRST_NAME varchar(100) NOT NULL, LAST_NAME varchar(100), AGE INT(2) NOT NULL, GENDER varchar(10) NOT NULL, MOBILE_NO varchar(15), EMAIL_ID varchar(100), ADDRESS varchar(1000), CITY VARCHAR(30) NOT NULL, STATE VARCHAR(30) NOT NU...
true
4e28f28c2d5dc54fcea142093e1bbfc58fdf4693
SQL
mswertz/molgenis-maven-experimental
/molgenis-auth/src/main/generated-sources/alter_tables.sql
UTF-8
32,437
3.375
3
[]
no_license
/* * Created by: org.molgenis.generators.sql.MySqlAlterSubclassPerTableGen * Date: October 22, 2012 */ /**********CREATE TABLES**********/ SET FOREIGN_KEY_CHECKS = 0; ##allows us to drop fkeyed tables /*molgenisRole implements identifiable*/ #create the table if not exists CREATE TABLE MolgenisRole ( i...
true
b30ed6a45bb84427b008cbd853888d9168b1b529
SQL
rayraib/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/12-no_genre.sql
UTF-8
226
3.40625
3
[]
no_license
-- List all shows contained in the hbtn_0d_tvshows without a genre linked SELECT title, genre_id FROM tv_shows LEFT OUTER JOIN tv_show_genres ON show_id = tv_shows.id WHERE genre_id IS NULL ORDER BY title ASC, genre_id ASC;
true
31686ca602bfb7527424aae01392caa5d772d482
SQL
oscar1992/lunchDiagrams
/DDL/CLI_TPADR.sql
UTF-8
766
2.765625
3
[]
no_license
/* ---------------------------------------------------- */ /* Generated by Enterprise Architect Version 12.0 */ /* Created On : 17-mar-2016 07:17:00 p.m. */ /* DBMS : PostgreSQL */ /* ---------------------------------------------------- */ /* Drop Tables */ DROP TABLE IF EXISTS "CLI_TPADR" CASCAD...
true
ef20187d63b870d9265a83f11243a56f61f7b46d
SQL
tgeb/CS795-Project
/ccm/target/classes/ccm.sql
UTF-8
14,715
2.859375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `ccm_master` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `ccm_master`; DROP TABLE IF EXISTS `cond_heartfailure`; CREATE TABLE `cond_heartfailure` ( `id` int(11) NOT NULL AUTO_INCREMENT, `patient_id` int(11) DEFAULT NULL, `sob` CHAR(1) DEFAULT NULL, `sob_comments` varchar(500) ...
true
d3b035f297275fa45cb4f83c92b1a0a66a686310
SQL
DennisCheung/nxft
/dbscript/fxp/dbms/tables/02_人员字典/1000080_p_occupation_职业表.sql
GB18030
11,141
3.46875
3
[]
no_license
-- -- ְҵ -- -- v1.0 2014.12.08 -- authorwing -- -- ޸ʷ -- -- -- drop table fxp.p_occupation; create table fxp.p_occupation ( -- +-----------------------------+--------------+-----------+ foccupation_id varchar2(32) not null, -- ְҵID foccupation_code varchar2(30) not null, -- ְҵ...
true
aac02bbcf7cfd8a61fd803a11cdba962ac5e8d97
SQL
yifeng2019uwb/DataCampAndCodePractice
/Data-Analyst-with-SQL-Server/04-Time-Series-Analysis-in-SQL-Server/02-Converting-to-Dates-and-Times/02-Build-dates-from-parts.sql
UTF-8
1,260
3.84375
4
[]
no_license
/* Build dates from parts The DATEFROMPARTS() function allows us to turn a series of numbers representing date parts into a valid DATE data type. In this exercise, we will learn how to use DATEFROMPARTS() to build dates from components in a calendar table. Although the calendar table already has dates in it, this help...
true
6c85eb8cb4eee309c909598dfe8c4d47fa26f2c3
SQL
hpf-zzu/java_persistence_practice_parking_lot_comprehensive-2019-8-26-2-21-50-376
/src/main/resources/schema.sql
UTF-8
407
3.28125
3
[]
no_license
CREATE TABLE parking_boy ( employeeID int PRIMARY KEY, parkingBoyName VARCHAR(64) NOT NULL, age int(4) NOT NULL ); CREATE TABLE parking_lot( parkingLotID int not null primary key , capatity int not null, availablePositionCount int not null, employeeID int not null ); ALTER TABLE parking_lot ADD CO...
true
07c6213209f2171fa0b0643a2f59b3b43ee50d8a
SQL
Gabrielle-Tobermann/sql-intro
/country_invoices.sql
UTF-8
167
2.734375
3
[]
no_license
-- Provide a query that shows the # of invoices per country. select count(InvoiceId) [# invoices per country], BillingCountry from Invoice group by BillingCountry
true
96e738dd094ee2fa0e3ee1d0b6391907962850c2
SQL
nss-day-cohort-19/chinook-arock
/playlists_track_count.sql
UTF-8
326
3.921875
4
[]
no_license
/* Provide a query that shows the total number of tracks in each playlist. The Playlist name should be include on the resulant table.*/ SELECT p.Name AS "Playlist", COUNT(t.trackid) AS "# of Tracks" FROM playlist p, track t, playlisttrack pt WHERE p.playlistid = pt.playlistid AND t.trackid = pt.trackid GROUP BY p.play...
true
e954c9b21bb43e15d5544a95bd52ab09592868e0
SQL
mebelousov/antlr_psql
/src/test/resources/sql/select/ac66dcad.sql
UTF-8
141
2.578125
3
[ "MIT" ]
permissive
-- file:select_having.sql ln:29 expect:true SELECT c, max(a) FROM test_having GROUP BY c HAVING count(*) > 2 OR min(a) = max(a) ORDER BY c
true
57541db6fe7ece52d3fa93e3eb206c1eaaafcb19
SQL
Taewii/database-fundamentals
/Database Basics/14. Functions Triggers And Transactions - Exercises/p09_find_full_name.sql
UTF-8
181
2.6875
3
[]
no_license
CREATE PROCEDURE usp_get_holders_full_name() SELECT CONCAT(first_name, ' ', last_name) AS full_name FROM account_holders ORDER BY full_name ASC CALL usp_get_holders_full_name
true
0a5f89a7a6ab6d60e05b207f9a3af1b71c08b0b8
SQL
jieun93/Oracle
/20200103/jieun~21.sql
UHC
10,675
4.1875
4
[]
no_license
2020-01-02-02)Լ(׷Լ) - ڷḦ Ư׸(÷) ׷ ó - SUM, AVG, COUNT, MIN, MAX - Ư (̺ ü ϳ ׷ ) ϰ GROUP BY Ǿ - Լ οǸ WHERE ó Ұϸ ݵ HAVING óؾ - GROUP BY Ǵ ׸ SELECT Լ Ϲ ׸(ʼ ) ׷ ʿ Ϲ ÷ - GROUP BY Ǵ ׸ ׷ ٽ ұ׷ 1)SUM -Ư ÷ ȯ () SUM(ci) .c1 ÷ Ͽ ȯ ) ̺ ޿ Ͻÿ. select department_id, ...
true
7680c11296ada13d9ea0bef4e13d21064344f113
SQL
i3loodyShadow/ProjektSklepuJava
/sql/sklep_elektroniczny_java.sql
UTF-8
19,715
3.4375
3
[]
no_license
-- 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='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTI...
true
b9465ed81dc5d81ccdfd3a191540e0b91faf0bd1
SQL
tschwecke/VolunteerTracker
/api/Sql/StoredProcedures/Hours_Select_ByFamilyId.sql
UTF-8
471
3.6875
4
[]
no_license
DELIMITER $$ drop procedure if exists `Hours_Select_ByFamilyId` $$ CREATE PROCEDURE `Hours_Select_ByFamilyId` (familyId int, schoolYearStartDate date) BEGIN SELECT h.Hours_PK, h.Volunteer_PK, h.InterestArea_PK, h.Date, h.NbrOfHours, h.Description, h.Status, h.Classroom FR...
true
b0e0636945e56b5ebdd6825e574705368e0468aa
SQL
Jufebrown/sql_queries_02-chinook
/chinook-queries.sql
UTF-8
7,383
4.15625
4
[ "MIT" ]
permissive
--01 Provide a query showing Customers (just their full names, customer ID and country) who are not in the US. SELECT FirstName || " " || LastName AS "Customer", CustomerId, Country FROM Customer WHERE Country <> "USA" --02 Provide a query only showing the Customers from Brazil. SELECT FirstName || " " || LastName AS ...
true
e90a5addc09dc7708afeff728e31623739fbec0e
SQL
NickCharsley/ONS_googleAnalytics
/database/schema/msqli/fctvsecommerce.sql
UTF-8
1,113
2.875
3
[]
no_license
CREATE TABLE `fctvsecommerce` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `dimDate` int(11) NOT NULL, `dimProfile` int(11) NOT NULL, `dimEcommerce` int(11) NOT NULL, `dimVanquisSession` int(11) NOT NULL, `ItemQuantity` int(11) NOT NULL, PRIMARY KEY (`ID`), KEY `fk_fctvsEcommerce_dimVanquisSession` (`dimVanq...
true
28f1259d623539d39d3e8588401cecd3c7e4e6db
SQL
cheefoei/FioreFlowershop
/catalog/flowershop_db.sql
UTF-8
4,411
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 05, 2018 at 06:05 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
ba2dba05ca4423bea2c30046febc4a55e2931690
SQL
JDWilks/prisma-relationship-rework
/prisma/migrations/20210813074156_added_order_and_relationship/migration.sql
UTF-8
291
3.359375
3
[]
no_license
-- CreateTable CREATE TABLE "Order" ( "orderid" SERIAL NOT NULL, "quantity" INTEGER NOT NULL, "userid" INTEGER NOT NULL, PRIMARY KEY ("orderid") ); -- AddForeignKey ALTER TABLE "Order" ADD FOREIGN KEY ("userid") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
true
5e1d3f97fa5adb459ad2e1b231f4b219aa39a78c
SQL
rephus/paytest
/src/main/resources/db/migration/V1__initial_schema.sql
UTF-8
1,620
3.15625
3
[]
no_license
create table "account" ( "id" VARCHAR NOT NULL PRIMARY KEY, "account_name" VARCHAR NOT NULL, "account_number" DECIMAL(21,2) NOT NULL, "number_code" VARCHAR NOT NULL, "account_type" INTEGER NOT NULL, "address" VARCHAR NOT NULL, "bank_id" INTEGER NOT NULL, "bank_id_code" VARCHAR NOT NULL, "name" VARCHAR NOT NULL); crea...
true
f30d5b52c4f1038d8e27412e3a9e1828ade65450
SQL
pqrt12/Pewlett-Hackard-Analysis
/Queries/queries.sql
UTF-8
5,630
3.953125
4
[]
no_license
-- 7.3.1 Query Dates SELECT first_name, last_name FROM employees WHERE birth_date BETWEEN '1952-01-01' AND '1955-12-31'; SELECT first_name, last_name FROM employees WHERE birth_date BETWEEN '1952-01-01' AND '1952-12-31'; SELECT first_name, last_name FROM employees WHERE birth_date BETWEEN '1953-01-01' AND '1953-12-3...
true
ba25bd50868496f354a0f76ce156a017b696bf50
SQL
Tan-zhong-sheng/SSMStuSystem
/studentsystem.sql
UTF-8
18,837
2.921875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : root Source Server Version : 50556 Source Host : localhost:3306 Source Database : studentsystem Target Server Type : MYSQL Target Server Version : 50556 File Encoding : 65001 Date: 2021-03-28 16:25:55 */ SET FOREIGN_KEY_CHECKS=0; -- ...
true
fcbf0b117ae07b15c5fc069aadeb1f902be63afd
SQL
meadorjc/CourseProjects
/SQL/Lab2/lab 9_3.sql
UTF-8
224
2.609375
3
[]
no_license
/*Caleb Meador meadorjc at gmail.com*/ use MyGuitarShop; select CardNumber, len(cardnumber) as NumberLength, right(cardnumber, 4) as CardEnd, concat('XXXX-XXXX-XXXX-', right(cardnumber, 4)) as SecretCardEnd from Orders
true
0e40963107be39fb6d3ed28b0530c5886b3da3cb
SQL
TylerStanish/bucko
/db/migrations/v1/up.sql
UTF-8
621
2.96875
3
[]
no_license
create table profile ( id serial primary key , email text unique not null , password text not null ); create table auth_session ( id serial primary key , profile_id int references profile(id) not null , token text unique not null -- for the sake of this little app, I'll leave expiration out...
true
a9d55a058f95f5268e63f0c94d06cacfb8a7a76c
SQL
ak-3355/Master
/all_function_source_code.sql
UTF-8
676
3.0625
3
[]
no_license
create or replace view all_function_source_code as select upper(p.pronamespace::regnamespace::text)::character varying(128) as owner ,upper(p.proname::text)::character varying(128) as name ,'FUNCTION'::character varying(12) as type ,a.line::numeric as line ,a.text::character varying(4000) ...
true
4468fbb4e834517668ff96cc1d049a9f92924b5d
SQL
nib-alejo/blog-engine
/back-end/Database/dom/Tables/DomainDetail.sql
UTF-8
388
3.234375
3
[]
no_license
CREATE TABLE [dom].[DomainDetail] ( [Id] UNIQUEIDENTIFIER NOT NULL, [DomainId] UNIQUEIDENTIFIER NOT NULL, [Description] VARCHAR (50) NOT NULL, [Active] BIT NOT NULL, CONSTRAINT [PK_DomainDetail] PRIMARY KEY CLUSTERED ([Id] ASC), CONSTRAINT [FK_DomainDetail_Doma...
true
b3e0682a72b297812483d9baa0becc1fe75decec
SQL
AlexGri/firebirdToPG
/src/test/resources/aisbdnew.sql
UTF-8
130,976
2.9375
3
[]
no_license
SET SQL DIALECT 3; /* CREATE DATABASE 'aisbdnew' PAGE_SIZE 16384 DEFAULT CHARACTER SET WIN1251 */ /* Generators or sequences */ CREATE GENERATOR ATTACHMENT_ID_SEQ; CREATE GENERATOR BOOLEANEXPR_ID_SEQ; CREATE GENERATOR COMMENT_ID_SEQ; CREATE GENERATOR CONTENT_ID_SEQ; CREATE GENERATOR DEADLINE_ID_SEQ; CREATE GENERA...
true
ffb37f2e991233efe46e863412ba280ee30b48be
SQL
fabiomigliorini/MGdb
/SQLs/Vendas por Caixa.sql
UTF-8
1,178
3.546875
4
[]
no_license
select date_trunc('month', n.lancamento) as mes, f.filial, u.usuario, --sum(npb.valortotal) as valortotal, count(npb.codnegocioprodutobarra) as quantidade --* from tblnegocio n inner join tblnaturezaoperacao nat on (nat.codnaturezaoperacao = n.codnaturezaoperacao) inner join tblusuario u on (u.codusuario = n.codus...
true
fcb703cf1bc7443fa3d7fcb5dcdefa92643414aa
SQL
JosephK89/holbertonschool-python
/0x13-SQL_more_queries/13-count_shows_by_genre.sql
UTF-8
304
4.03125
4
[]
no_license
-- lists all genres from hbtn_0d_tvshows and displays the number of shows linked to each SELECT tv_genres.name AS 'genre', COUNT(tv_show_genres.genre_id) AS 'number_of_shows' FROM tv_genres RIGHT JOIN tv_show_genres ON tv_genres.id = tv_show_genres.genre_id GROUP BY genre ORDER BY number_of_shows DESC;
true