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
5e74790c9fb1340b0c6aacc101389d5a4bd80191
SQL
PictureService/AutomatedTestingSystem
/AutomatedTestingSystem/Database/Database/Programmability/TableValuedFunctions/Users/GroupsControlWorks_Read.sql
UTF-8
415
3.421875
3
[]
no_license
CREATE FUNCTION [Users].[GroupsControlWorks_Read] ( @GroupControlWorkId INT, @GroupId INT, @ControlWorkId INT ) RETURNS TABLE AS RETURN SELECT [Id] AS [GroupControlWorkId], [GroupId], [ControlWorkId] FROM [Users].[GroupsControlWorks] WHERE (@GroupControlWorkId = -1 OR [Id] = @GroupControlWorkId) AND (@GroupId ...
true
594542dd62536cc0ca4bf201a6f9f1b0c88454b5
SQL
raja4sekar/epmNext
/sql/add_update_price_to_log.sql
UTF-8
1,478
3.25
3
[]
no_license
drop trigger "SAP_HANA_EPM_NEXT"."sap.hana.democontent.epmNext.sql/add_update_price_to_log"; CREATE TRIGGER "SAP_HANA_EPM_NEXT"."sap.hana.democontent.epmNext.sql/add_update_price_to_log" AFTER UPDATE ON "SAP_HANA_EPM_NEXT"."sap.hana.democontent.epmNext.data::MD.Products" REFERENCING NEW ROW newrow, OLD ROW ...
true
ebae93a8436c52c42d5e5bae15317aafeddf91ed
SQL
AlvaroCardonaH/Turnos
/BackupTurnos_20150817_0840/copservir_turnos_m_diasclientefiel.sql
UTF-8
2,727
3.125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.23, for Win64 (x86_64) -- -- Host: localhost Database: copservir_turnos -- ------------------------------------------------------ -- Server version 5.6.20 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
true
9863aed6ff37950c4d7ee18a1580647068115f64
SQL
HiHenryW/cowlist-initialized
/server/schema.sql
UTF-8
249
2.796875
3
[]
no_license
CREATE DATABASE cowlist; USE cowlist; CREATE TABLE IF NOT EXISTS cows ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(40), description VARCHAR(255), PRIMARY KEY (id)); -- should be able to execute this file using: mysql -u root < server/schema.sql
true
5ef5719e8f8634ba5f6caf0ef38396876773a296
SQL
0x464e/data-db-100
/H4 - Logical operations/H4T4.sql
UTF-8
260
3.421875
3
[]
no_license
-- Tietokantojen perusteet - Database basics 2021 -- H4 T4 SELECT artwork.technique, artwork.artwork_name, artist.last_name FROM artwork JOIN artist ON artist.artist_id = artwork.artist_id WHERE artwork.technique IN ('drawing', 'sculpture') ORDER BY technique, artwork_name
true
adc1d8f7044a9c2c63e932aeb21e2779ceb357a3
SQL
jay7981/BFAdminCP
/app/storage/sql/avgBansPerDay.sql
UTF-8
277
3.75
4
[]
no_license
SELECT FORMAT(AVG(a.total), 0) AS 'total' FROM (SELECT COUNT(`ban_id`) AS 'total' FROM `adkats_bans` WHERE `ban_startTime` >= DATE_SUB(UTC_TIMESTAMP(), INTERVAL 1 MONTH) GROUP BY YEAR(`ban_startTime`) , MONTH(`ban_startTime`) , DAY(`ban_startTime`)) AS a
true
0be1c6944f4856a0729b390c1b6cb7213d48fd8c
SQL
chenmj201601/UMP
/UMP/DBObjects/8.02.001/32-P/P_21_002.SQL
UTF-8
2,366
3.375
3
[]
no_license
CREATE PROCEDURE P_21_002 ( AInParam01 IN NVARCHAR2:='00000', AInParam02 IN NVARCHAR2, AInParam03 IN NVARCHAR2, AInParam04 IN NVARCHAR2, result out sys_refcursor, AOutErrorNumber OUT NUMBER, AOutErrorString OUT NVARCHAR2) AS v_count INT; v_year VARCHAR(2); v_m...
true
ab1f3b97f1a14fb571205841ff5854aadb1db777
SQL
E-Feng/FantasyBBallAnalytics
/api/sql/get_league_info.sql
UTF-8
359
3.71875
4
[]
no_license
WITH joinedleagueids AS ( SELECT (NOW() - lastupdated) < INTERVAL '1 day', CASE WHEN platform = 'espn' THEN cookieespns2 ELSE yahoorefreshtoken END, platform, COALESCE(l2.linkedid, l1.leagueid) as leagueid FROM leagueids l1 LEFT JOIN linkedids l2 ON l1.leagueid=l2.mainid ) SELECT * FROM joinedleag...
true
6a45d8143654ee8d9df41b3ff701ca84be8234c6
SQL
JuanJoseGomezR/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/6-states.sql
UTF-8
232
2.578125
3
[]
no_license
-- script that creates the database hbtn_0c_0 in your MySQL server. CREATE DATABASE IF NOT EXISTS hbtn_0d_usa; CREATE TABLE IF NOT EXISTS hbtn_0d_usa.states (id INT PRIMARY KEY UNIQUE AUTO_INCREMENT, name VARCHAR(256) NOT NULL);
true
ae5076ed8a4f42d163d5a812e3bd6e1ac400561a
SQL
kundalipatel/Swimsafe
/blood_patron.sql
UTF-8
2,369
3.09375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 22, 2018 at 01:51 AM -- Server version: 10.1.33-MariaDB -- PHP Version: 7.2.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
18c3bb92433d1d3a9965ff75526741719b788eb6
SQL
mssalazarb/stock-app-back
/src/main/resources/db/migration/V2__init_data.sql
UTF-8
1,380
2.84375
3
[]
no_license
-- Datos iniciales para estados de los bienes INSERT INTO estado_bienes (nombre, descripcion) VALUES ('Activo', 'Estado cuando un bien se encuentra en estado activo'); INSERT INTO estado_bienes (nombre, descripcion) VALUES ('Dado de Baja', 'Estado cuando un bien se encuentra dado de baja'); -- Datos iniciales para cat...
true
788db36cf2761fb5429cc3ea6e306e85bc0fadb9
SQL
rajeshghourvani/assessor
/assessorportal/AMPSQL/AMP_2/UnitTests/GetLinkedDocuments_TestScript.sql
UTF-8
1,423
2.578125
3
[]
no_license
DECLARE v_client_id VARCHAR2(200); v_work_units_id amp_2.wu_documents.work_units_id%TYPE; v_link_doc_output VARCHAR2(100); v_document_id VARCHAR2(100); v_retrieve_link_doc_cur SYS_REFCURSOR; v_api_status VARCHAR2(100); v_error_code ...
true
703dc9b05c9ff29a607bd5e629a6d3f59b6ecc36
SQL
HEEYEOP/HEEYEOP.JAVA
/Project/sql백업파일/website_member.sql
UTF-8
2,836
3.1875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.15, for Win64 (x86_64) -- -- Host: localhost Database: website -- ------------------------------------------------------ -- Server version 8.0.15 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
true
7df61c134c1597d67320b0d98a08f55c9a1d2dbf
SQL
bellmit/MSFM
/domain/sql/ddl/createTradedThroughOrders.sql
UTF-8
339
2.828125
3
[]
no_license
whenever sqlerror continue drop table TradedThroughOrder; whenever sqlerror exit failure create table TradedThroughOrder ( databaseIdentifier number(20) not null, alertId number(20) not null, orderId number(20) not null ) ; alter table TradedThroughOrder add constraint sbt_tradedthroughorder_pk primary key (data...
true
43b8ed7b354e7f67545bcf87a55a0922f0039045
SQL
alexandrecvf/MensagemGarrafa
/garrafa.sql
UTF-8
4,355
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 01-Jul-2019 às 16:05 -- Versão do servidor: 10.1.37-MariaDB -- versão do PHP: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
1937a9120f58b3449467709c05c15b0170989678
SQL
hemansah/PGOI
/admin/dbconfig/pgoidb.sql
UTF-8
5,202
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 11, 2019 at 09:52 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
392d3facbd5645b672bdb89620f056b7dc7d3237
SQL
RodRothbarth/SENAI2TERM
/exercicios banco de dados/EXERCICIO14/script.sql
UTF-8
1,084
3.5625
4
[]
no_license
CREATE DATABASE IF NOT EXISTS EXERCICIO14; USE EXERCICIO14; CREATE TABLE FILIAL( IDFILIAL INT NOT NULL AUTO_INCREMENT, ENDERECO VARCHAR(45), TELEFONE INT, PRIMARY KEY (IDFILIAL) ); CREATE TABLE CLIENTE( IDCLIENTE INT NOT NULL AUTO_INCREMENT, NOME VARCHAR(45), EMAIL VARCHAR(45), TELEFONE INT, PRIMARY KEY(IDCLIENTE) ); ...
true
9076b4f9d9247237d8008e5575c0828ab721734a
SQL
sohutv/cachecloud
/cachecloud-web/sql/update 2.0 to 3.0.sql
GB18030
7,227
3.515625
4
[ "Apache-2.0" ]
permissive
CREATE TABLE `app_alert_record` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', `visible_type` int(1) NOT NULL COMMENT 'ɼͣ0ɼ1Աɼ', `important_level` int(1) NOT NULL COMMENT 'Ҫͣ0һ㣻1Ҫ2', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `app_id` bigint(20) DEFAULT NULL COMMENT 'app id', `inst...
true
319fd8213a34fe02dda403b54c03a8543c3d5d87
SQL
geonef/gitted.redmine.demo
/mysql/documents.sql
UTF-8
641
3.234375
3
[]
no_license
/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `documents` ( `id` int(11) NOT NULL AUTO_INCREMENT, `project_id` int(11) NOT NULL DEFAULT '0', `category_id` int(11) NOT NULL DEFAULT '0', `title` varchar(60) NOT NULL DEFAULT '', `descript...
true
10e8b4b862a3029d830c45bfd64a567a0da46b6e
SQL
czs108/LeetCode-Solutions
/Easy/176. Second Highest Salary/solution (2).sql
UTF-8
418
3.53125
4
[ "MIT" ]
permissive
-- 176. Second Highest Salary -- Runtime: 469 ms, faster than 18.20% of MySQL online submissions for Second Highest Salary. -- Memory Usage: 0B, less than 100.00% of MySQL online submissions for Second Highest Salary. -- Using `IFNULL` and `LIMIT` clause select ifnull( (select distinct Salary from ...
true
875e8872011ba22e20caaa3855ca910e0b9f2245
SQL
ymisono/ad-audits
/AUDIT/scripts/DDLUpdate.sql
UTF-8
1,059
3.4375
3
[]
no_license
-- Sequence: adidseq DROP SEQUENCE adidseq; CREATE SEQUENCE adidseq INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 1 CACHE 1; ALTER TABLE adidseq OWNER TO postgres; -- Set auto-increment value to primary key column ad_id ALTER TABLE ad ALTER COLUMN ad_id SET DEFAULT NEXTVAL('adidseq'); -- Add...
true
d69528ee313057a7aa8126442a04edb2b0ab6ca1
SQL
anderson383/CRUD-MVC-PHP
/adsi.sql
UTF-8
4,229
3.453125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 20-11-2019 a las 02:41:13 -- Versión del servidor: 10.4.6-MariaDB -- Versión de PHP: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
1fe4ed09f97dea831e7eb364e633094ac421b373
SQL
unkso/titan-app
/titan-server/migrations/2019-03-20-000000_alter_myisam_to_innodb/up.sql
UTF-8
321
2.515625
3
[ "MIT" ]
permissive
# Somehow these tables were created using the MyISAM engine, which # doesn't support foreign keys. This migration alters the engine of # all problematic tables from MyISAM to InnoDB. ALTER TABLE `organization_roles` ENGINE=InnoDB; ALTER TABLE `organizations_users` ENGINE=InnoDB; ALTER TABLE `event_types` ENGINE=InnoDB;...
true
201decd87f3ae569d7b1aad0b1aa89eef89145de
SQL
Skullerd/imitateTaoBao
/database/taobao_db.sql
UTF-8
12,592
3.09375
3
[]
no_license
/* MySQL Data Transfer Source Host: localhost Source Database: taobao_db Target Host: localhost Target Database: taobao_db Date: 2019/12/3 11:49:52 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for taobao_admin -- ---------------------------- CREATE TABLE `taobao_admin` ( `aid` int(...
true
605182bbeb600db98f25a3c539957e873e2ec98e
SQL
poetries/StudyNote
/SQL/Sql-Practice/day1/多对多关系.sql
UTF-8
1,084
4.21875
4
[]
no_license
-- 多对多必须通过单独的一张表来表示 -- 多对多关系表 班级是一张表 老师一张表 班级和老师的关系也是一张表 -- 第一张表 班级表 create table banji --表名称不要使用复数 一般写单数 ( banji_id int primary key, banji_num int not null, banji_name nvarchar(100), ) --第二张表 教师表 create table teacher ( teacher_id int primary key, teacher_name nvarchar(200) ) --第三张表 有两列是外键来自不同的表主键 用来模拟班级和教...
true
5099a70a4664d4b16b4b77b16b8ad2d8cfe16825
SQL
hiwayama/isucon10
/db/3_AlterData.sql
UTF-8
335
2.53125
3
[]
no_license
UPDATE estate SET geo_hash=ST_GeoHash(longitude, latitude, 12), w1=GREATEST(door_width, door_height), w2=LEAST(door_width, door_height); ALTER TABLE estate ADD INDEX i1(w1, w2); ALTER TABLE estate ADD INDEX i2(latitude, longitude); -- zatsu ALTER TABLE estate ADD INDEX i3(popularity); ALTER TABLE chair ADD INDEX i4(w...
true
c0140d1fc2580fa2f3fc0603b2e1ef2a68fe390f
SQL
devatsrs/neon.web
/dbv-1/data/schema/prc_getDiscount.sql
UTF-8
2,516
3.671875
4
[ "MIT" ]
permissive
CREATE DEFINER=`root`@`localhost` PROCEDURE `prc_getDiscount`(IN `p_CompanyID` INT, IN `p_DiscountPlanID` INT, IN `p_Name` VARCHAR(50), IN `p_PageNumber` INT, IN `p_RowspPage` INT, IN `p_lSortCol` VARCHAR(50), IN `p_SortOrder` VARCHAR(5), IN `p_isExport` INT) BEGIN DECLARE v_OffSet_ int; SET SESSION TRANSACTION ISOLA...
true
67932bc5a5487affff7a7e1f7e5091a09e9e4e83
SQL
seasarorg/dbflute-nostalgic
/dbflute-ldb-example/src/main/resources/dbflute/ldb/sqldir/book/various/selectResolvedPackageName.sql
UTF-8
1,091
3.28125
3
[ "Apache-2.0" ]
permissive
-- selectResolvedPackageName.sql -- -- Confirm resolved package name. -- -- !ResolvedPackageNamePmb! -- !!String string1!! -- !!Integer integer1!! -- !!BigDecimal bigDecimal1!! -- !!java.math.BigDecimal bigDecimal2!! -- !!Date date1!! -- !!java.util.Date date2!! -- !!java.sql.Date date3!! -- !!Time ti...
true
d703d4b2e6e4d17bccb03158d820b81d260f4382
SQL
robotoART/tournament
/tournament.sql
UTF-8
1,251
4.0625
4
[ "BSD-3-Clause" ]
permissive
-- Table definitions for the tournament project. -- -- Put your SQL 'create table' statements in this file; also 'create view' -- statements if you choose to use it. -- -- You can write comments in this file by starting them with two dashes, like -- these lines here. DROP DATABASE IF EXISTS tournament; CREATE DATABAS...
true
5ffd067048292673ff374916beca13aaf623c016
SQL
leeyeonseung/origin
/20200903.sql
UTF-8
3,140
3.96875
4
[]
no_license
SELECT * | {column | expression [alias] } FROM 테이블 이름; SELECT * FROM emp; SELECT * FROM dept; select empno, ename from emp; SELECT * FROM lprod; SELECT buyer_id, buyer_name FROM buyer; SELECT * FROM cart; SELECT mem_id, mem_pass, mem_name FROM member; SELECT ename, sal, sal+100 FROM emp; DESC emp; SELECT * FR...
true
53db4fe8a2f7f7adea1fadf59d340284b1672ecd
SQL
taionca/taionca
/database.sql
UTF-8
4,775
4.09375
4
[]
no_license
drop table if exists incomes; drop table if exists expenses; drop table if exists odts; drop table if exists accounts; drop table if exists currencies; drop table if exists clients; --Tabla de Clientes create table clients( id_client serial primary key, name varchar(64) not null, created_at timestamp with ...
true
8169e3ab57cf5c332b4639003d3a048538f1d9c7
SQL
whtm/103590
/HIS/安装脚本和报表/应用脚本/zlIndex.sql
GB18030
131,480
3.28125
3
[]
no_license
--Ŀ¼ --1.,2.ҽ,3.˲,4.û,5.ҩƷĻ --6.ٴ,7.ٴ·,8.,9.,10. --11.,12.ҽҵ,13.˲ҵ,14.ҵ,15.ҩƷҵ --16.ٴҽ,17.ٴ·,18.ҵ,19.ҵ,20.ҵ,21.ҵ ---------------------------------------------------------------------------- --[[1.]] ---------------------------------------------------------------------------- Create Index ǰע_IX_ on ǰע() Tablespace zl9I...
true
f2e4d3a90957630cf811aeed2fc23c541aa3bced
SQL
cmm-goodfood/api
/res/1 - good-food.sql
UTF-8
5,876
3.171875
3
[]
no_license
-- 1. Cleanup ALTER TABLE IF EXISTS T_UTILISATEUR DROP CONSTRAINT IF EXISTS "T_UTILISATEUR_Fk"; ALTER TABLE IF EXISTS T_RESTAURANT DROP CONSTRAINT IF EXISTS "T_RESTAURANT_Fk1"; ALTER TABLE IF EXISTS T_RESTAURANT DROP CONSTRAINT IF EXISTS "T_RESTAURANT_Fk2"; ALTER TABLE IF EXISTS T_CODE_PROMO DROP CONSTRAINT IF EX...
true
5eca902b61096fa7be0450f61d9a39cc27de5c0e
SQL
adamclmns/Java-Tools-Overview-Training2017
/database.sql
UTF-8
3,760
3.28125
3
[]
no_license
SET DB_CLOSE_DELAY -1; ; CREATE USER IF NOT EXISTS SA SALT 'ed67a8002d9b9493' HASH '2ee29f66ef17df9f3d90c1143f1131326d6578a1009d6c817bf841b451b20daf' ADMIN; CREATE SEQUENCE PUBLIC.SYSTEM_SEQUENCE_15FFA372_F73F_4953_BA6C_F2B82D5B0073 START WITH 3 BELONGS_TO_TABLE; CREATE SEQUENCE ...
true
a9bc9db4cf679d44d074f94aa2d999747f6f1463
SQL
tianyuan0322/bioportal
/db/sql/bioportal_db_changes_1036.sql
UTF-8
712
2.84375
3
[]
no_license
USE `bioportal`; -- A dedicated API key for BioPortal Core Aplication DELETE FROM ncbo_user_role WHERE user_id = ( SELECT id FROM ncbo_user WHERE username = 'bioportalcore' AND api_key = '328e93d2-9dd1-11e0-a996-005056bd0024' ); DELETE FROM ncbo_user WHERE username = 'bioportalcore' AND api_key = '328e93d2-9d...
true
541aa6b5b1931e8e805627640a9ca03d3535919f
SQL
s18005/oracle
/0206/0206.2.sql
UTF-8
231
3.328125
3
[]
no_license
select department_id, department_name, manager_id, location_id from departments where department_id in ( select department_id from departments join employees using (department_id) where job_id <> 'SA_REP' ) order by department_id;
true
92a5f1167e7e63f9079becfe3e7a31195541ed7a
SQL
hargup/stackexchange-dump-to-postgres
/sql/optional_post.sql
UTF-8
3,139
4.59375
5
[ "MIT" ]
permissive
-- These are the optional post processing tasks which may be performed. -- UserTagQA TABLE -- How many Questions and Answers has the user posted under a given tag. DROP TABLE IF EXISTS UserTagQA; CREATE TABLE UserTagQA ( UserId int, TagId int, Questions int, Answers int, PRIMARY KE...
true
3bc38e5d116d09f2aa9626a0c8a8152112d88fa1
SQL
robertmoss/homecare
/database/Homecare DB Release 1.0.sql
UTF-8
6,049
4.0625
4
[]
no_license
/* Homecare schema and entities */ /* Version 1.0 */ /* This script depends upon the Core DB Release 1.0 Tables and Procs */ /* execute Core DB Release 1.0.sql before executing this script */ CREATE TABLE IF NOT EXISTS `homecare`.`patient` ( `id` INT NOT NULL AUTO_INCREMENT, `firstName` VARCHAR(300) NULL, `midd...
true
c3c4259b5ed2455ddffa952e73f44d7cd9e30c57
SQL
matthcol/Oracle202105
/sql_stage/dba19_day5.sql
WINDOWS-1252
3,201
3.375
3
[]
no_license
-- connection roles : sysdba, sysoper, sysbackup select * from v$pwfile_users; create user operateur identified by password; grant sysoper to operateur; -- donner avec session as sysdba ---------------------------------------------------------------- -- change the database in mode archivelog select log_mode from v$d...
true
dc57d40e50380e89b1a4fe85a5f10bc7e8a5eee6
SQL
wf-oadenaike/TestProject
/TestDBProject/Reporting/Views/HW_Positions.sql
UTF-8
1,330
2.984375
3
[]
no_license
 CREATE VIEW Reporting.HW_Positions AS -------------------------------------------------------------------------------------- -- Name: Reporting.HW_Positions -- -------------------------------------------------------------------------------------- -- History: -- WHO WHEN WHY -- Olu: 06/02/2019 JIRA: DAP-2516 [C...
true
8bbd5cf46697c1a180bb97eb8dc1da43e7545c49
SQL
obermacker/spacefights
/db/spieler.sql
UTF-8
866
2.75
3
[]
no_license
-- Adminer 4.7.1 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; CREATE TABLE `spieler` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `spieler_ID` varchar(58) NOT NULL, `spieler_name` varchar(30) NOT NULL, `name_galaxy_1` varchar(30) NOT NULL,...
true
c5109ac071498573743b5c707363f03fdcc8a0e4
SQL
josep112/cloud-asterisk
/telrex/extras/Editor-1.2.2-Trial/examples/sql/sqlite.sql
UTF-8
27,592
3.15625
3
[]
no_license
-- -- -- SQLite3 tables used to run the examples. -- -- For more information about how the client and server-sides interact, please refer -- to the Editor documentation: http://editor.datatables.net . -- -- DROP TABLE IF EXISTS todo; DROP TABLE IF EXISTS browsers; -- -- To do list examples -- CREATE TABLE todo ( i...
true
23d94b162b9810fa57c5d7649d4e8da13783addd
SQL
fredericowu/php-mt4
/install/seed_data.sql
UTF-8
617
2.703125
3
[]
no_license
USE mt4_fred; GRANT ALL PRIVILEGES ON mt4_fred.* TO `mt4`@`%` IDENTIFIED BY 'mt4pass'; insert into auth_user (auth_user_id, username, password, name) values (1, "demo", "demo", "demo"); insert into device_type (device_type_id, name, description) values (1, "Servidor", "Servidor"); insert into device_type (device_ty...
true
027384172f781dd14b13d8dfcbbb6ba17bba6ccb
SQL
carlocappellini/database-exercises
/select_exercise.sql
UTF-8
618
3.5
4
[]
no_license
use codeup_test_db; Select name as "-albums by Pink Floyd" From albums Where artist = 'Pink Floyd'; SELECT release_date as "-Sgt. Pepper''s Lonely Hearts Club Band release date" FROM albums WHERE name = 'Sgt. Pepper''s Lonely Hearts Club Band'; SELECT genre as "- genre for nevermind album" from albums where name ...
true
b1056721598a80657d522c83aef8241b5691a4ee
SQL
Emil-IT/IMP-team4
/RpiServer/db/init_warehouse.sql
UTF-8
1,244
3.640625
4
[]
no_license
--DROP TABLE warehouse, robot, zone, arduino, package, sensor, shelf; CREATE TABLE warehouse ( id INTEGER PRIMARY KEY, site TEXT NOT NULL ); CREATE TABLE robot ( id INTEGER PRIMARY KEY, aisle INTEGER NOT NULL, warehouse_id INTEGER NOT NULL, FOREIGN KEY(warehouse_id) REFERENCES warehouse(id) ); CREATE TABLE...
true
2c073c08726c78d640d870fd1b0867cb9ffd734e
SQL
uvillazon/citytruck
/.svn/pristine/e8/e8414c1c8c4ca59175068d7e9a684e0b24a9e1c1.svn-base
UTF-8
3,782
3.390625
3
[]
no_license
ALTER TABLE CITYTRUCK.SG_VENTAS_DIARIAS DROP PRIMARY KEY CASCADE; DROP TABLE CITYTRUCK.SG_VENTAS_DIARIAS CASCADE CONSTRAINTS; CREATE TABLE CITYTRUCK.SG_VENTAS_DIARIAS ( ID_VENTA NUMBER(5) NOT NULL, TURNO VARCHAR2(50 BYTE) NOT NULL, RESPONSABLE VARCHAR2(250 ...
true
496d1e6cb1e1f4ce4492a48e7937e690a92a5e21
SQL
melvinwi/EDWCI
/transformations/lumo_TRANSFORM_FactCustomerValue.sql
UTF-8
1,656
3.359375
3
[]
no_license
CREATE PROCEDURE lumo.TRANSFORM_FactCustomerValue @TaskExecutionInstanceID INT ,@LatestSuccessfulTaskExecutionInstanceID INT AS BEGIN --Get LatestSuccessfulTaskExecutionInstanceID IF @LatestSuccessfulTaskExecutionInstanceID IS NULL BEGIN EXEC DW_Utility.config.GetLatestSuccessfulTaskExecutionInstanceID @TaskExecution...
true
4c2e9d3971606b5295c53723725a0acbd45cc03e
SQL
RidhaArrahman/tkt311-2020-MF5-CornellNotesOnline
/Cornell Note/cno.sql
UTF-8
3,481
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 20 Des 2020 pada 18.55 -- Versi server: 10.4.14-MariaDB -- Versi PHP: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
a37ff105d36ce31d72d4dca76de613ffdd9a2ae6
SQL
Fadlimu/survey
/survey.sql
UTF-8
2,073
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 05, 2020 at 01:35 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
fc63f7cced65b96b78c0292263e2f862510dd4fa
SQL
radtek/abs3
/sql/mmfo/bars/Table/err$_pfu_filetypes.sql
UTF-8
2,023
2.890625
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/ERR$_PFU_FILETYPES.sql =========*** Ru PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
a45edf963d3bd8cb5c788818b3e1164ac4c4c828
SQL
elinmk627/Spring
/spring-jdbc-2/src/main/resources/schema.sql
UTF-8
281
2.578125
3
[]
no_license
drop table if exists emp; -- identity : 디비가 지원하는 키 샌성전략을 사용한다. -- H2는 자동으로 키 값을 제너레이트 한다. create table emp ( empno int identity not null primary key, ename varchar(100), job varchar(100), sal double );
true
17afdf7129e6f86e39271256f476396194420dad
SQL
Ivan96A/FindYourHobby
/src/main/resources/db-initialization.sql
UTF-8
9,143
2.65625
3
[]
no_license
insert into categories(category) values(0); insert into categories(category) values(1); insert into categories(category) values(2); insert into categories(category) values(3); insert into categories(category) values(4); insert into categories(category) values(5); insert into categories(category) values(6); insert into ...
true
1f977aa18529805302c0bbca55034b648518cf11
SQL
Jirarit/bangbon_forklift
/sql/app/rules.sql
UTF-8
1,518
4.03125
4
[]
no_license
-- RULEs CREATE SCHEMA IF NOT EXISTS app; DROP TABLE IF EXISTS app.rules CASCADE; CREATE TABLE app.rules ( id serial NOT NULL, no integer NOT NULL, ad character(1) NOT NULL DEFAULT 'A'::bpchar, action character varying(15) NOT NULL DEFAULT 'ALL'::character varying, item character varying(32) NOT NULL DEFAULT 'AL...
true
4b7bff51a3d171f5360f4181bfda88ff4e27e386
SQL
djacobow/pubscout
/sql/pub_report.sql
UTF-8
5,182
3.65625
4
[]
no_license
SELECT DISTINCT(p.[ID]) as "system_id", p.[doi] as "doi", p.[Type] as "pub_type", p.[number] as "lbnl_id", REPLACE(REPLACE(p.[title], CHAR(13), ''), CHAR(10), '') as "title", -- Lab Authors (SELECT u.[Last Name] + ', ' + u.[First Name] + ' (' + u.[Primary Group Descriptor] + '); ' AS 'data()' FROM [Publication User ...
true
cd6f14d86fb07f8403fc3cea90282cde03736223
SQL
slewden2/VersionDB4
/Base/Détecter les types user defined.sql
UTF-8
1,210
4.09375
4
[]
no_license
SELECT * FROM dbo.TypeObject SELECT * From Sys.systypes WHERE name = 'toto' SELECT st.name AS [Name], sst.name AS [Schema], 'Server[@Name=' + quotename(CAST( serverproperty(N'Servername') AS sysname),'''') + ']' + '/Database[@Name=' + quotename(db_name(),'''') + ']' + '/UserDefinedDataType[@Name=' + ...
true
c3460d97a0d9145a9d20dad0524450bf30bfc036
SQL
moutainhigh/amez-springcloud
/common/doc/数据库版本更新SQL脚本/1.0版本/beautybond_crontab.sql
UTF-8
1,902
3.359375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 艾美-美容邦测试数据库 Source Server Version : 50720 Source Host : 120.79.42.13:3306 Source Database : beautybond_crontab Target Server Type : MYSQL Target Server Version : 50720 File Encoding : 65001 Date: 2018-05-04 16:48:01 */ SET FOREIGN_KEY...
true
b11b8f546a6605e38dd36f50be74df3f752c3bfe
SQL
woowacourse/shopping-cart-api
/src/main/resources/schema.sql
UTF-8
1,869
3.90625
4
[]
no_license
drop table if exists orders_detail; drop table if exists orders; drop table if exists cart_item; drop table if exists product; drop table if exists customer; create table customer ( id bigint not null auto_increment, username varchar(255) not null, primary key (id) ) engine=InnoDB default c...
true
9d5a87c49bbe8f64d2ea9472bbd3e4a5bbdf025d
SQL
quyhot/BTL_AHM
/README/db/ahm.sql
UTF-8
8,083
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 15, 2021 at 05:15 PM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
b9412550e8242722c833ac3fe9474b69db47c521
SQL
kangsy0058/NFC_2021_Server
/DB/sql-files/push_info.sql
UTF-8
1,729
2.8125
3
[]
no_license
-- -------------------------------------------------------- -- 호스트: 210.119.104.207 -- 서버 버전: 10.6.2-MariaDB-1:10.6.2+maria~focal - mariadb.org binary distribution -- 서버 OS: debian-linux-gnu -- HeidiSQL 버전: 11.1.0.6116 -- ----------...
true
38c8fffa03b9f7997673d812d954b48959786b6b
SQL
chimera9900/JdbcTemplate
/src/main/resources/db/migration/V1.1__init.sql
UTF-8
300
2.953125
3
[]
no_license
create table customers( id bigint(10) auto_increment not null primary key, name varchar(255) not null, email varchar(255) not null ); create table orders( id bigint(10) auto_increment not null primary key, sku varchar(255) not null, customer_fk bigint not null references customers(id) )
true
8d0b32a1df828e8bb3cfb42b5b79c5245386c414
SQL
Delamater/X3
/Audits/WhatAmIAuditing.sql
UTF-8
159
2.671875
3
[]
no_license
SELECT TBL_0, COUNT(TBL_0) TableCount, EVT_0, COUNT(EVT_0) EventTypeCount FROM DEMO.AUDITH GROUP BY TBL_0, EVT_0 ORDER BY COUNT(TBL_0) DESC, COUNT(EVT_0) DESC
true
20886354bc71f1f3c9cd6cab2291567d2c4a8a84
SQL
lovari9876/joo-sa-wee
/__cassie/sql참고/day1230_subquery.sql
UTF-8
2,545
4.46875
4
[]
no_license
-- SUBQUERY --> 하나의 SELECT 문장 내에 포함된 또 하나의 SELECT 문장이 있는 쿼리문이다. --> 쿼리문 전체를 메인 쿼리라 하고 이 안에 있는 또 하나의 SELECT문을 서브 쿼리라 한다. --> 비교 연산자의 오른쪽에 기술해야 하고, 반드시 괄호 안에 넣어야 한다. --> 메인 쿼리가 실행되기 이전에 한 번만 실행된다. --> [SELECT DNAME FROM DEPT WHERE DEPTNO = (SELECT DEPTNO FROM EMP WHERE ENAME = 'SCOTT');] --> 쿼리문에서 괄호 안에 [SELECT DEPTNO ...
true
e49219e41fdd57bcfe3621ed083a50fa0d842822
SQL
Decko048/data-science
/projects/oracle-sql/Oracle Live SQL- Introduction to SQL.sql
UTF-8
4,300
4.40625
4
[ "MIT" ]
permissive
--1. Creating Tables create table DEPARTMENTS ( deptno number, name varchar2(50) not null, location varchar2(50), constraint pk_departments primary key (deptno) ); create table EMPLOYEES ( empno number, name varchar2(50) not null, j...
true
a1b0bff957a72dea477fbc54d212ed84fd14ebd2
SQL
pftiller/dwh
/aw-bigquery.sql
UTF-8
930
3.109375
3
[]
no_license
SELECT DISTINCT statistic_dt as date, source_system_nm as platform, device_nm as device, campaign_nm as campaign, ad_group_nm as ad_group, ad_headline_txt as ad_headline, ad_headline_part_one_txt as ad_headline_1, ad_headline_part_two_txt as ad_headline_2, ad_description_txt as ad_de...
true
24ff00c7adea71779ae8db07394ce00880f06995
SQL
jampaniuday/sql_source
/sql/workload/cr_baseline.sql
UTF-8
1,433
2.84375
3
[]
no_license
DECLARE start_snap_id NUMBER; end_snap_id NUMBER; baseline_name VARCHAR2(30); dbid NUMBER DEFAULT NULL; expiration NUMBER DEFAULT NULL; BEGIN start_snap_id := &start_snap_id; end_snap_id := &end_snap_id; baseline_name := '&baseline_name'; dbid := &dbid; e...
true
ba71c1015ce5eb25649811c0d55ead559eedc3db
SQL
manuabhijit/Invoice-Notification-System
/sample database/users.sql
UTF-8
1,890
2.796875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 07, 2017 at 02:57 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
db8447cc9b2b9b873055ff8a4604299cf54003ee
SQL
haozlee/learnmybatis
/src/main/resources/scripts/user.sql
UTF-8
294
2.515625
3
[]
no_license
CREATE TABLE `user` ( `id` int(32) NOT NULL AUTO_INCREMENT, `name` varchar(32) NOT NULL, `passwd` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB AUTO_INCREMENT = 1 DEFAULT CHARSET = utf8; insert into user (name, passwd) values ('leo', '123'); commit;
true
45667c90a65d50140abb538d0978fb3fbec5f4ba
SQL
Nagrom57/Database-Project
/Views_and_indexes.sql
UTF-8
1,194
3.890625
4
[]
no_license
create view GenreContentRatingView as select ContentRating, GenreName, Title, Runtime from Project.Movies as m join Project.MovieGenre as mg on m.MovieID = mg.MovieID join Project.Genres as g on g.GenreID = mg.GenreID where GenreName = 'Comedy' and ContentRating = 'PG-13' and Runtime between 60 and 120 create v...
true
14dc0cbc5ac8fcaa9498207da8708400e80b884d
SQL
dengguibin/myspringboot
/mybatis/crud/crudthyme.sql
UTF-8
2,074
3.15625
3
[]
no_license
/* SQLyog Ultimate v12.08 (64 bit) MySQL - 5.5.20 : Database - crudthyme ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHEC...
true
36b5dd4de734fa347ea372a866d1ac18355ef060
SQL
LavinaSabhnani/Weather-Prediction
/Deliverable_3/Weather_Prediction/Project-table.sql
UTF-8
774
2.53125
3
[]
no_license
create database if not exists RainPred; use RainPred; drop table if exists rain; create table rain ( Date date, Location varchar(16), MinTemp float(16), MaxTemp float(16), Rainfall float(16), Evaporation float(16), Sunshine float(16), WindGustDir varchar(16), WindGustSpeed float(16), WindDir9am ...
true
04715f81a91e97c3d121eb2f3e74fad6e01ad8de
SQL
WilliamLP/AdventOfCode
/2022/day1.sql
UTF-8
494
4.09375
4
[]
no_license
WITH enumerated AS ( SELECT IF(input = '', 0, CAST(input AS INT)) as calories, COUNTIF(input = '') OVER ( ORDER BY row_num ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS group_num FROM day1 ), grouped AS ( SELECT group_num, SUM(calories) AS total_calories FROM enumerated GR...
true
adf9bf0cad91085f2fb5c629ac480201a0bb89f8
SQL
hrazith/autumn
/_db/procH1BEmployment2Insert.sql
UTF-8
770
2.609375
3
[]
no_license
DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `procH1BEmployment2Insert`(IN `AppId` INT, IN `SupervisorName` VARCHAR(500), IN `SupervisorPhoneNumber` VARCHAR(100), IN `SuperVisorJobTitle` VARCHAR(200), IN `AnyInterruptionsInEmploymentWithEmployer` VARCHAR(50), IN `WorkingOutsideTheUS` VARCHAR(50), IN `IfWork...
true
f16f060e5d7a91815284d050c558ddce43db0612
SQL
JordanMurray2/Portfolio
/Portfolio/FinalDBMurray/SQLFiles/LeftJoinQuery.sql
UTF-8
257
3.46875
3
[]
no_license
--Name all dance teachers, the school they teach at,and their certification if they have one SELECT DanceTeachers.Certification, DanceTeachers.TName, DanceSchools.DSName FROM DanceTeachers LEFT JOIN DanceSchools ON DanceSchools.DSID = DanceTeachers.DSID;
true
4793a08336a8d5f8bc97a5aab8193622e18fbc5f
SQL
stki9539/Calorie-Website
/fooddb.sql
UTF-8
3,727
3.078125
3
[]
no_license
create table if not exists `protein` ( `id` int(1) not null auto_increment, `name` varchar(40) not null, `100g` int(1) not null, `calories` float not null, primary key (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=7; insert into `protein` (`id`, `name`, `100g`, `calories`) values (1, 'chick...
true
4e09a7544146e3f390dbf1149e1537ee5646f8e6
SQL
iwaryo8832/gs_php3_5
/sqlconnect/players.sql
UTF-8
1,819
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Oct 07, 2021 at 10:16 AM -- Server version: 5.7.24 -- PHP Version: 7.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
true
64d7f936a262556a23c9135fdec59293206d4aa5
SQL
LaloDavilaC9/Equipo8_Hotel
/HotelEquipo8/src/archivosql/hotel_equipo8.sql
UTF-8
7,360
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 16-06-2021 a las 20:11:47 -- Versión del servidor: 10.4.19-MariaDB -- Versión de PHP: 7.3.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
fadfe4abb38da9ecd5894192c8c6d391740ff8ab
SQL
Lawrence-ctrl/Ithmawbi-department-notificationsystem-in-PHP
/fortu.sql
UTF-8
14,625
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Nov 12, 2019 at 08:08 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 S...
true
763ad5ee5a4891dcb6330707df3ba80f0d8bf451
SQL
MrD0079/portal
/sql/dpnr_budjet_body.sql
UTF-8
2,875
3.375
3
[]
no_license
/* Formatted on 16/06/2015 14:53:32 (QP5 v5.227.12220.39724) */ SELECT cid, cname, spid, spname, scid, scname, SUM (b.plan) plan, SUM (b.fakt) fakt, MAX (comm) comm, DECODE ( (SELECT plan_sum FROM dpnr_budjet_head ...
true
4615d26fc36a0d67fce49fd2b7c4aa8748afa9d7
SQL
RaduCF/SEP3-Switchers
/DatabaseSep3.sql
UTF-8
1,008
3.53125
4
[]
no_license
drop schema Public cascade ; create schema Public; set schema 'public'; CREATE TABLE if not exists Public.Users ( username character varying(15) COLLATE pg_catalog."default" NOT NULL, password character varying(9) COLLATE pg_catalog."default" NOT NULL, firstname character varying COLLATE pg_catalog."default",...
true
b455dfe527381c4eaffc50e722f62d6a8bc0b9ef
SQL
youknow933/test
/dawara/src/main/webapp/WEB-INF/doc/dbms/deal-shipping-payment/old/deal_new.sql
UHC
12,293
3.390625
3
[]
no_license
DROP TABLE receive CASCADE CONSTRAINTS; DROP TABLE delivery CASCADE CONSTRAINTS; DROP TABLE payment CASCADE CONSTRAINTS; DROP TABLE deal CASCADE CONSTRAINTS; DROP TABLE buy CASCADE CONSTRAINTS; DROP TABLE product CASCADE CONSTRAINTS; DROP TABLE charge CASCADE CONSTRAINTS; DROP TABLE mlieage CASCADE CONSTRAINTS; ...
true
d3f3e0e1fabdb675747adace993f03e2bb77b312
SQL
hakpan/burger
/db/schema.sql
UTF-8
414
3.578125
4
[]
no_license
### Schema CREATE DATABASE burgers_db; USE burger_db; CREATE TABLE burger ( id int NOT NULL AUTO_INCREMENT, burger_name varchar(255) NOT NULL, devoured BOOLEAN DEFAULT false, PRIMARY KEY (id) ); -- ### Tabel function to display boolean as True or False -- SELECT * FROM burgers_db.burger; -- SELECT -- id, ...
true
92a5651a3513d58c136e95878c79c1f40c0788bb
SQL
vcappugi/ADESVENCA
/migration/354a-360lts/oracle/691_FR2975307_SummaryMenuNotCentrallyMaintained.sql
UTF-8
542
2.78125
3
[]
no_license
-- FR [2975307] - AD_Menu_Trl overwritten by AD_Window -- https://sourceforge.net/tracker/index.php?func=detail&aid=2975307&group_id=176962&atid=879335 -- Summary Menu items must not be Centrally maintained as they can't be synchronized with any other element. UPDATE AD_Menu SET IsCentrallyMaintained = 'N' WHE...
true
23d630c58d26fa88b58f53d32b4afbf32eef527b
SQL
dldbep/StudySQLServer
/210513/INSERT.sql
UHC
645
2.734375
3
[]
no_license
-- Է INSERT INTO testTbl VALUES('ȫ浿',''); INSERT INTO testTbl(userName,addr) VALUES('',''); INSERT INTO testTbl(userName) VALUES(''); INSERT INTO testTBL(addr,username) VALUES('',''); INSERT INTO testTBL(username) VALUES('ȫ'); INSERT INTO testTBL(addr) VALUES(''); SELECT * FROM testTbl --DELETE FROM testTbl; INSERT I...
true
fa8469725a4a79d8ae83571d17c9272273d85811
SQL
BattlefieldRedux/ControlCenter
/BF2Statistics/SQL/SQLite.Gamespy.sql
UTF-8
468
2.65625
3
[]
no_license
CREATE TABLE "main"."accounts" ( "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" TEXT NOT NULL UNIQUE COLLATE NOCASE, "password" TEXT NOT NULL, "email" TEXT NOT NULL, "country" TEXT NOT NULL, "lastip" TEXT DEFAULT NULL, "session" INTEGER DEFAULT 0 ); CREATE TABLE "main"."_version"( ...
true
8745605a1d43c35dfb45bd5ada60ba597dfe9e8f
SQL
djpeach/hsef
/DB_Scripts/createDB.sql
UTF-8
12,210
3.8125
4
[ "MIT" ]
permissive
-- Created by Vertabelo (http://vertabelo.com) -- Last modification date: 2020-11-18 04:03:10.869 -- tables -- Table: AuthAccount CREATE TABLE AuthAccount ( AuthAccountId int unsigned NOT NULL AUTO_INCREMENT, PasswordHash varchar(255) NOT NULL, UserId int unsigned NOT NULL, UNIQUE INDEX fak_AuthAccount...
true
dc9f68d66515f2b9db87ab9acb5ad1a9d26f63c9
SQL
Wojtini/Bazy-Danych
/Lista2/5.sql
UTF-8
1,147
3.09375
3
[]
no_license
DROP TRIGGER IF EXISTS albumCountUpdateAdd; delimiter // CREATE TRIGGER albumCountUpdateAdd AFTER INSERT ON music.album FOR EACH ROW BEGIN UPDATE zespol SET zespol.liczbaAlbumow=zespol.liczbaAlbumow+1 WHERE NEW.zespol = zespol.id; END // delimiter ; DROP TRIGGER IF EXISTS albumCountUpdateBef; delimite...
true
6ef1d5626005d25273ed3517bf5426043ce8b775
SQL
pdvmoto/binsql
/do_ev_mon.sql
UTF-8
2,959
3.828125
4
[]
no_license
set echo off -- connection needed. set feedb on merge into bt_mon_ev u using ( select e.event_id as event_id , e.time_waited_micro as tim , e.time_waited_micro_fg as tim_fg , e.time_waited_micro - o.new_tim as diff , e.time_waited_micro_fg - o.ne...
true
5d61805e38e58a917316eeb3b01cb172c9d4acc3
SQL
0xVasconcelos/plugged
/plugged.sql
UTF-8
2,931
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Máquina: localhost -- Data de Criação: 10-Maio-2014 às 06:10 -- Versão do servidor: 5.5.34 -- versão do PHP: 5.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
e2be3e58b226adfb3f71c3e5d6396843a41fcc2b
SQL
kharddie/mymc_git
/db/postgres/check-count.sql
UTF-8
302
2.59375
3
[]
no_license
-- controleer aantal records in de db select 'songs', count(*) from songs union all select 'songsinfo', count(*) from songsinfo union all select 'played', count(*) from played union all select 'played_history', count(*) from played_history union all select 'queue', count(*) from queue order by 1 ;
true
373dd332e3baf716fababb7c19aa1ca188d4a2b8
SQL
sudhakar-settipalli/ekart-analytics
/hive/Common/scp_ekl__network_compliance_breach_90_fact.sql
UTF-8
5,633
3.484375
3
[]
no_license
INSERT OVERWRITE TABLE network_compliance_breach_90_fact select vendor_tracking_id, min(network_compliance_breach_flag) as network_compliance_breach_flag, used_first_hop, facility_name_type_string, lookup_date(mh_received_at_datetime) as mh_received_at_date_key, lookup_time(mh_received_at_datetime) as mh_received...
true
d426e1e5c9c8461000e8adf9462211b9ceaa9169
SQL
SjaakNijland/taalmaatje
/SQL/ed.sql
UTF-8
2,855
2.640625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Gegenereerd op: 02 feb 2018 om 12:09 -- Serverversie: 5.7.14 -- PHP-versie: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!401...
true
1bd6647cfb401fbe7b6b86fbbf7599d96944bd52
SQL
Lozitsky/SQLiteJDBC
/src/com/kirilo/sqlite/db/Initial.sql
UTF-8
4,996
3.515625
4
[]
no_license
create table Seller ( id INTEGER not null primary key autoincrement, full_name NVARCHAR(200) not null, birthday DATE not null ); create table dir_CarType ( id INTEGER not null primary key autoincrement unique, name_en NVARCHAR(50) not null, ...
true
fda95f27c81c03a7216063cf7dc6b8cc20efc4dc
SQL
pkdng/pulsa
/pulsa.sql
UTF-8
5,822
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 09, 2021 at 04:34 PM -- Server version: 10.4.19-MariaDB -- PHP Version: 7.4.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
153af64f14ce591b8531f11ced654233b3dbff08
SQL
benclifford/MSE
/osmgateway/migrations/osm-0001-tables.sql
UTF-8
884
3.03125
3
[]
no_license
DROP TABLE IF EXISTS osm_individuals; CREATE TABLE osm_individuals ( id SERIAL PRIMARY KEY, scoutid INTEGER, firstname TEXT, lastname TEXT, dob TEXT ); DROP TABLE IF EXISTS osm_individual_section; -- records that an individual is in a section CREATE TABLE osm_individual_section ( id SERIAL PR...
true
a5cb2cfb481f99c69b230efcf375498d18d035dc
SQL
Edivad99/Burger-TecWeb
/database/import.sql
UTF-8
18,993
3.484375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS Burgheria; USE Burgheria; DROP TABLE IF EXISTS Eventi; DROP TABLE IF EXISTS Commenti; DROP TABLE IF EXISTS Voti; DROP TABLE IF EXISTS Utenti; DROP TABLE IF EXISTS Prodotti; DROP TABLE IF EXISTS Categoria; CREATE TABLE Eventi ( `ID` INT NOT NULL AUTO_INCREMENT, `Nome` VARCHAR(10...
true
d7c99c4ea328baee70c6c481098f9007893574ff
SQL
softsathish/mdfashions
/src/assets/db/views/categories_products_count_view.sql
UTF-8
282
3.75
4
[]
no_license
Alter View categories_products_count_view As select cp.categoryID, cp.categoryName, (select image from categories_products_view where categoryID = cp.categoryID order by id desc limit 1) as image, count(id) as productCount from categories_products_view as cp group by cp.categoryID
true
fbf3e86f227ab895582bc7f0afd5329bbd1cebef
SQL
mkchanac/mysql_database_ch3
/chapter3_review_questions_3.7_to_3.48.sql
UTF-8
6,597
4.125
4
[]
no_license
-- Author: CMK Date: 15/6/2021 Textbook: Database Concepts 8th edition Pearson Chapter 3 Review Question -- 3.7 create table PET_OWNER( OwnerID int not null auto_increment, OwnerLastName varchar(35) not null, OwnerFirstName varchar(35) not null, OwnerPhone varchar(12) null, OwnerEmail varchar(100) n...
true
23ec3473d692498726642bb98250a34c1cfb59da
SQL
kissarat/schema-db
/meta.sql
UTF-8
946
3.734375
4
[]
no_license
CREATE SCHEMA meta CREATE VIEW reference AS SELECT kcu.constraint_name AS NAME, kcu.table_name AS "from", kcu.column_name AS "from_field", ccu.table_name AS "to", ccu.column_name AS "to_field", rc.update_rule, rc.delete_rule FROM information_schema.k...
true
030339276f21ec9b8d8f5ab9def72c64efa81a35
SQL
Wind010/Microservices
/UserService/Data/Database/Preference.sql
UTF-8
445
3.390625
3
[ "MIT" ]
permissive
CREATE TABLE [Preference] ( [Id] INT IDENTITY(1,1) NOT NULL PRIMARY KEY CLUSTERED, [UserId] INT NOT NULL, [PreferenceTypeId] INT NOT NULL, [Name] NVARCHAR(200) NOT NULL, [Details] NVARCHAR(2000) NOT NULL, [Like] BIT NOT NULL, CONSTRAINT [FK_Preferences_User] FOREIGN KEY ([UserId]) REFERENCES [Us...
true
166a605dd45d7383b5b7ff2f5d63acb7b9a90131
SQL
tls1458/SW_ACADEMY
/SQL (2021. 07. 19. ~ )/SQL_DAY03/SQL_DAY03.sql
UTF-8
1,862
4.78125
5
[]
no_license
-- Neena가 근무하는 부서의 부서원 정보를 출력하시오 . -- Neena가 근무 SELECT department_id FROM employees WHERE first_name = 'Neena'; -- 90번 사원 SELECT * FROM employees WHERE department_id = 90; -- SubQuery : 쿼리속의 쿼리 -- 이름이 Neena와 부서ID와 같은 직원들의 정보 출력 SELECT * FROM employees WHERE department_id = (SELECT department_id ...
true