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
d13713d3c3ea98b1c246dcd3594b62852dc90ff7
SQL
VideaACoxCompany/Videa3.0
/Videa_3_0_20170805121431/Videa_3_0_20170805121431/SellerRating/Code/Videa.SellerRating.Db/SellerRating/Tables/RatingPeriod.sql
UTF-8
428
2.78125
3
[]
no_license
CREATE TABLE [SellerRating].[RatingPeriod] ( [RatingPeriodHashKey] CHAR (32) NOT NULL, [RatingPeriodSqn] INT NOT NULL, [RatingPeriodName] VARCHAR (255) NOT NULL, [RatingPeriodStartDate] DATETIME2 (7) NOT NULL, [RatingPeriodEndDate] DATETIME2 (7) NOT NULL, CONSTRAINT...
true
aeed013700703587e6980752c4c8487167fe2af4
SQL
SamuelRush/placeLocator
/db/schema/04_favorite_maps.sql
UTF-8
223
2.953125
3
[]
no_license
DROP TABLE IF EXISTS favorite_maps CASCADE; CREATE TABLE favorite_maps ( id SERIAL PRIMARY KEY NOT NULL, map_id INTEGER REFERENCES maps(id) ON DELETE CASCADE, user_id INTEGER REFERENCES users(id) ON DELETE CASCADE );
true
7826a6b243251958fe679d631ac3b599458065e2
SQL
target/goalert
/migrate/migrations/20191021145358-message-bundles.sql
UTF-8
1,206
3.78125
4
[ "Apache-2.0" ]
permissive
-- +migrate Up ALTER TABLE twilio_sms_callbacks ALTER alert_id DROP NOT NULL, ADD service_id UUID REFERENCES services (id) ON DELETE CASCADE; CREATE INDEX idx_twilio_sms_service_id ON twilio_sms_callbacks (service_id); ALTER TABLE outgoing_messages ADD status_alert_ids BIGINT[], ADD CONSTRAINT om_sta...
true
fd36f3427d68bcfb952e820f7787a0cec27f5418
SQL
pkogan/gu_kena
/metadatos/componentes/toba_ci/dump_10000226.sql
UTF-8
11,197
2.65625
3
[]
no_license
------------------------------------------------------------ --[10000226]-- Rector ------------------------------------------------------------ ------------------------------------------------------------ -- apex_objeto ------------------------------------------------------------ --- INICIO Grupo de desarrollo 10 I...
true
bc8732bce749a8c0f11d22fffb03d65014a63288
SQL
lubna-almaaweed/-OCA-projects
/Project6-E-Commerce Solution PHP and MYSQL/Code/project6DB.sql
UTF-8
9,978
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 06, 2021 at 11:00 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
b94644511b2b9e47efa02dd289892bf5a7886661
SQL
mahongkai0/python
/数据库/day01/day1.sql
UTF-8
2,743
4.125
4
[]
no_license
--day01.sql --mysql 第一天的sqk语句 --创建表acct(账户) create table acct( acct_no varchar(32), acct_name varchar(128) ) default charset=utf8; --删除 drop table acct; --重新创建acct create table acct( acct_no varchar(32),-- 账号,字符串,32 字节 acct_name varchar(128),-- 户名 ,128字节 cust_no varchar(32),-- 客户编号 acct_typ...
true
2292fb61e4530fd17741bfca6162f2a999bbc4ad
SQL
unhcr/PSR-Database
/SQL/LoadASR/CreateASRTableStatisticGroups.sql
UTF-8
1,856
3.65625
4
[]
no_license
set serveroutput on declare nSTG_ID P_BASE.tnSTG_ID; nCount1 pls_integer := 0; nCount2 pls_integer := 0; begin for rSTC in (select STTG_CODE, START_DATE, END_DATE, LOC_ID_ASYLUM_COUNTRY, LOC_ID_ORIGIN_COUNTRY, row_number() over (partition by STTG_CODE, START_DATE, END_DATE, LOC_ID_ASYLUM_COUNTR...
true
c3adfc152241c2e9b3bfb48d6ffad113436a4762
SQL
PayasR/paralite
/ParaLite-3.0/test/tpc-h/queries/20-sqlite3.sql
UTF-8
735
3.90625
4
[]
no_license
-- $ID$ -- TPC-H/TPC-R Potential Part Promotion Query (Q20) -- Function Query Definition -- Approved February 1998 select S.name, S.address from supplier S, nation N where S.suppkey in ( select PS.suppkey from partsupp PS where PS.partkey in ( select P.partkey from ...
true
84e4363c5beef57f5057123d668d68518da1a13c
SQL
James-Rocker/JRocker-SQL-Portfolio
/Joins/Full Join.sql
UTF-8
210
3.53125
4
[ "MIT" ]
permissive
SELECT c1.name AS country, region, l.name AS language, basic_unit, frac_unit FROM countries AS c1 FULL JOIN languages AS l USING (code) FULL JOIN currencies AS c2 USING (code) WHERE region LIKE 'M%esia';
true
0355baa67fe192e6d0c786bcc19ea82625c3db78
SQL
CS157A-Team-29/CS157A-Team-29
/Database Data Export/Dump20191030/cs157a_folders.sql
UTF-8
2,236
2.765625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.17, for Win64 (x86_64) -- -- Host: localhost Database: cs157a -- ------------------------------------------------------ -- Server version 8.0.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *...
true
bbdbd8cbaec94e1ace8c07c13ca58fce32c33369
SQL
edenolam/bilsoc
/sql/2.5.x/2.5.0.sql
UTF-8
602
2.796875
3
[]
no_license
- Importer la procédure stockée : apa_to_conso.sql) - Importer la procédure stockée : V1_53__IND-611-613.sql - Importer la procédure stockée : V1_11__IND-141.sql - Importer la procédure stockée : R__35-DGCL-export-process.sql /* Script pour supprimer toutes les entrés dans la base de donnée de l'indicateur 331 pour êtr...
true
63288b38c7c4d2adc75f871e8003dc1f7da24ef5
SQL
kevinhuangs/testrep
/Webserver/batchdir/shells/data/IBS_KTRADE_PJNL_QUERY.sql
UTF-8
450
2.65625
3
[]
no_license
spool ibs_ktrade_pjnl_query.tmp SELECT JNL_NO||'|+|'|| to_char(JNL_DATE,'yyyyMMdd')||'|+|'|| to_char(JNL_DATETIME,'yyyyMMdd hh24:mi:ss')||'|+|'|| USER_ID||'|+|'|| TRANS_CODE||'|+|'|| AC_NO||'|+|'|| AC_ORGANID||'|+|'|| LOGIN_HOST||'|+|'|| JNL_LOGINIP||'|+|'|| BATCHID||'|+|'|| CLIENTPATCHID||'|+|'|| JNL_NOT...
true
d4b3ab14e772a48281a6bfe4095dcaf750cf083c
SQL
tackleford/parsql
/IPEDS/group 2a.sql
UTF-8
3,933
3.34375
3
[]
no_license
/* Full time first time degree seeking student subquery receiving aid--group 2a */ /* IPEDS flag */ select a.year, a.unit, a.division, count(distinct a.student_ssn), sum(uwsa.stfa_aid_a.fin_aid_amount), decode(uwsa.stfa_aid_a.fin_aid_type, '10','B:STATE/LOCAL GRANT', '11','B:STATE/LOCAL GRANT', '12','B:S...
true
fe931d8c70edd4496131b812895902076c44fc05
SQL
dic3jam/tribe
/dbcreate.sql
UTF-8
2,084
3.671875
4
[]
no_license
# Build script for v1 tribe.com database CREATE DATABASE tribe; USE tribe; CREATE TABLE users ( userID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, username VARCHAR(20) NOT NULL, password VARCHAR(40) NOT NULL, password_creation_date DATETIME NOT NULL, user_creation_date DATETIME NOT NULL, firstname VARCHAR(20) ...
true
c6690012cc0ae1a580384df6a06fa42642daf7fc
SQL
Sadbot/sql_training
/index1.sql
UTF-8
1,029
4.125
4
[]
no_license
-- 1 task SELECT e.empid id, e.firstname || ' ' || e.lastname fullname FROM sampledb.employees e ORDER BY lastname; -- 2 task SELECT p.productid, p.categoryid, p.unitprice FROM sampledb.products p ORDER BY p.unitprice DESC LIMIT 5; SELECT p.productid, p.categoryid, p.unitprice...
true
ba197e78fa09d28037f1b901134b29a6132d74c5
SQL
henriquerc18/Selecao_Casos_BD
/1_EmpProj.sql
UTF-8
3,188
3.515625
4
[]
no_license
-- Nome: Henrique Rosa Carvalho -- Turma: 421 -- Data: 18/05/2018 -- 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='TRADITIONAL,ALLOW_INVALID_DATES'; -- ------...
true
e008cdd3d7e44fec0df579f5fccdf5197c3d5d5f
SQL
ZombieSave/MySql
/Урок 5/Задача3.sql
UTF-8
732
3.234375
3
[]
no_license
-- В таблице складских запасов storehouses_products в поле value могут встречаться самые разные цифры: 0, если товар закончился и выше нуля, если на складе имеются запасы. -- Необходимо отсортировать записи таким образом, чтобы они выводились в порядке увеличения значения value. Однако нулевые запасы должны выводитьс...
true
b3efd2ab510496f44ca633f6940fe34bb758c6d1
SQL
MarcoSpiz/ProgettoBasiDiDati
/DeliveryFilm/deliveryfilm_episodio.sql
UTF-8
2,497
2.953125
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64) -- -- Host: localhost Database: deliveryfilm -- ------------------------------------------------------ -- Server version 8.0.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RES...
true
3711c50bd5f05d046260c686079cdda379a8e41e
SQL
rperdomo24/Curso_Mysql
/Sentencias_Curso/agregacion.sql
UTF-8
1,015
3.78125
4
[]
no_license
-- Ejemplos de funciones de agregacion -- con sentencias multiples SELECT concat(nombre, ' ', apellido) as nombre_completo, " " as email, pais_origen from autores UNION SELECT CONCAT(nombre, ' ', apellidos) as nombre_completo, email as email," " from usuarios; SELECT avg(ventas) as ventas from libros; -- 365.4000 ...
true
eee9fc95d39fea58488d5e6a87b34f79844090bc
SQL
GoktepeEren/PL-SQL-Queries-for-Oracle-Fusion
/GL_Trial_Balance_Project_V2.sql
UTF-8
2,852
4.125
4
[]
no_license
Select TableX.LedgerName, TableX.ValueThreeDescriptionTotal, TableX.Project, TableX.ValueDescTotal, TableX.Month, Sum(TableX.AccountedDebit) as DB, Sum(TableX.AccountedCredit) as CR, Sum(TableX.AccountedBalances) as BL From ( Select gledxb.Name as LedgerName, -- Substr(valxb.Value,1,3) as ValueThree, -- (Sele...
true
2e7fcf8bbffdfd15d93ee80ccd8714aee3409ab2
SQL
mozilla/marketing-analytics
/bqQueries/desktopGrowth/dashboardQueries/dstudio_region_performance.sql
UTF-8
4,309
3.90625
4
[]
no_license
WITH data as( SELECT submission, funnelOrigin, CASE WHEN country IN ('US', 'CA', 'DE', 'GB', 'FR') THEN country ELSE 'restOfWorld' END as country, SUM(installs) as installs, SUM(dau) as dau, SUM(wau) as wau, SUM(mau) as mau FROM `ga-mozilla-org-prod-001.desktop.desktop_corp_metrics_*` WHERE _TABLE_SUFFIX >= '201709...
true
89228f163cb0e6a10a6a86e4594320bf35dd6c56
SQL
mgreene024/IT2351repo
/MG_Assignment3/Assignment3No4.sql
UTF-8
723
4.3125
4
[]
no_license
-- ******************************************************************************************* -- IT2351 Assignment 3 No.4 - Matthew Greene -- Query to determine what the total quantity purchased for each product within each category -- and using the with rollup operator and if and grouping functions. -- **************...
true
d204b886263b5610d55c9022f2fc45df27dc3aed
SQL
jaskarnmankoo/trackr
/resources/database/globalDataSchema.sql
UTF-8
626
3.234375
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS UserAccount ( username VARCHAR(50) PRIMARY KEY, password VARCHAR(50) NOT NULL, email VARCHAR(40), firstname VARCHAR(50), lastname VARCHAR(50) ); CREATE TABLE IF NOT EXISTS GlobalMedia ( mediatitle VARCHAR(70), mediatype VARCHAR(8), mediagenre VARCHA...
true
753b5b9c0cb51bec3671b3e66827fc73e3a4ce94
SQL
teamlm2/lm2_mgis
/sql/SQL_PASTURE/malchin_urkh_buleg_convert.sql
UTF-8
8,736
3.53125
4
[]
no_license
with new_numbers as ( select cppt.parcel_id, cppt.au2, al.code from data_soums_union.ca_pasture_parcel_tbl cppt join admin_units.au_level2 al on st_within(ST_PointOnSurface(cppt.geometry), al.geometry) where st_isvalid(cppt.geometry) is true ) update data_soums_union.ca_pasture_parcel_tbl set au2 = s.code from new_n...
true
174aa0fa3ef8b95fab6821a296d74775ebcf863b
SQL
marciojv/cassandra-samples
/schema.cql
UTF-8
1,652
3.734375
4
[]
no_license
CREATE KEYSPACE IF NOT EXISTS spark_userdb WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 1}; USE spark_userdb; CREATE TABLE IF NOT EXISTS users_by_email ( name VARCHAR, dob TIMESTAMP, email VARCHAR, join_date TIMESTAMP, PRIMARY KEY (email) ); CREATE TABLE IF NOT EXISTS users_by...
true
6b3779d0ae01be919ba42c4f0f4834d877caa147
SQL
mateodevia/It3_C-09_m.devia_f.velasquez
/docs/RFC/creacion tabla nueva.sql
UTF-8
1,981
3.890625
4
[]
no_license
--Para poblar la tabla NUM_RESERV_ALOJ_SEM create table NUM_RESERV_ALOJ_SEM(ID_ALOJ NUMBER(19), ID_OP NUMBER(19), SEMANA INTEGER, ANIO NUMBER (19), NUM_RESERV INTEGER); selec...
true
1a1c58345347897c5595f3428cc2a003c63dab55
SQL
dennisjkane/SQL
/SQL from 1.2.3.sql
UTF-8
482
3.375
3
[]
no_license
/*The IDs and durations for all trips of duration greater than 500, ordered by duration*/ SELECT trip_id, duration FROM trips WHERE duration > 500 ORDER BY duration DESC; /*Every column of the stations table for station id 84*/ SELECT * FROM stations WHERE station_id = 84; -- T...
true
6f74d8ff17e625a4bd5e2ea9e2ca44cd60d1f333
SQL
trf2-jus-br/eproc-api
/src/main/resources/br/jus/trf2/sistemaprocessual/usuario-username-processo-numero-peticao-intercorrente-tipos-documento-get.sql
UTF-8
12,319
4.125
4
[ "MIT" ]
permissive
select distinct tipo_documento.cod_tipo_documento as id, tipo_documento.des_tipo_documento as nome from tipo_documento, ( select tipo_peticao_judicial.id_tipo_peticao_judicial as id, tipo_peticao_judicial.des_peticao as nome, usu.id_perfil as perfil, usu.parte_proc...
true
efc39ac0551e8699b533b21e8229e7b998589fbf
SQL
Kukafee/myProject
/sublime/infoflow/infoflow4_tgi.sql
UTF-8
7,079
3.296875
3
[]
no_license
-- 使用数据库 use infoflow; -- -------------------------------------------------------------- -- -------------------------------------------------------------- -- 创建 并计算特征tgi表 -- -------------------------------------------------------------- -- -------------------------------------------------------------- -- -----------...
true
08d3e51292e06f7571b52dbd2e707d097be77df1
SQL
mtcameron5/T-SQL-Fundamentals-By-Itzik-Ben-Gan_Problem_Sets
/Chapter 3/Problem-8.sql
UTF-8
466
4.34375
4
[]
no_license
/* Explain why the following query isn’t a correct solution query for Exercise 7: */ SELECT C.custid, C.companyname, O.orderid, O.orderdate FROM Sales.Customers AS C LEFT OUTER JOIN Sales.Orders AS O ON O.custid = C.custid WHERE O.orderdate = '20160212' OR O.orderid IS NULL; /* The where command in this inst...
true
629d5c5d41f45f1555bbb930f8837c5278f48162
SQL
ccarson/EarlyHeart
/EhlersDM/Schema Objects/dbo/Tables/dbo.InternetBiddingType.table.sql
UTF-8
889
2.984375
3
[]
no_license
CREATE TABLE dbo.InternetBiddingType ( InternetBiddingTypeID INT NOT NULL IDENTITY , Value VARCHAR (100) NOT NULL , DisplaySequence INT NOT NULL CONSTRAINT DF_InternetBiddingType_DisplaySequence DEFAULT 0 , Active BIT NOT NULL CO...
true
a69893345e0d6b3873ed91ce9e53aece97a656d0
SQL
ram-bala/W205
/exercise_1/transforming/alter_hospital_qos_measure.sql
UTF-8
518
3.40625
3
[]
no_license
-- alter the table and add a column called dir_score which will have the score values flipped -- based on the direction in the measure_direction table. This is to ensure that lower scores mean better for -- for all scores. --alter table tt_hospital_qos_measure add columns (d_score decimal(10,1)); merge into tt_hospit...
true
bc1c4c6f2f6f2c62c6e1cbf117fd07d119efb64b
SQL
raros82/474089-doingsdone
/schema.sql
UTF-8
946
3.515625
4
[]
no_license
CREATE DATABASE `474089-doingsdone` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; USE `474089-doingsdone`; create table `user` ( `user_id` INT AUTO_INCREMENT PRIMARY KEY, `registration_date` TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, `name` VARCHAR(50), `email` VARCHAR(128) UNIQUE NOT NULL, `pa...
true
4a12b53bde302a1580fed0df040ccb177b23923f
SQL
M-H-Abdelfadeil/comment-system
/simple_comment.sql
UTF-8
1,268
2.75
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 27, 2020 at 12:30 PM -- Server version: 5.7.14 -- PHP Version: 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 */...
true
fcfb53d292b4b4cd8d6bd8c98cb547e3fc059a0c
SQL
BackupTheBerlios/myrian-svn
/archive/proto/sql/default/messaging/comment-messages.sql
UTF-8
2,345
3.15625
3
[]
no_license
-- -- Copyright (C) 2001, 2002 Red Hat Inc. All Rights Reserved. -- -- The contents of this file are subject to the CCM Public -- License (the "License"); you may not use this file except in -- compliance with the License. You may obtain a copy of -- the License at http://www.redhat.com/licenses/ccmpl.html -- -- Softwa...
true
f21fac70acad5553eb25483e158002e20ca754df
SQL
YauheniD/GodelDataMasteryPart1
/Tasks/Viachaslau/Task1/query07.sql
UTF-8
535
3.671875
4
[]
no_license
SELECT BusinessEntityID, PhoneNumber, PhoneNumberTypeID, CASE WHEN PhoneNumberTypeID = 1 THEN 'Mobile' WHEN PhoneNumberTypeID = 2 THEN 'Home' WHEN PhoneNumberTypeID >= 3 THEN 'Other' ...
true
83402e9918fa5c29e85114b1910f65b8383e4533
SQL
kkarina/MBAD
/sql/duration.sql
UTF-8
867
3.953125
4
[]
no_license
update mbad.logs_motif l set duration = x.duration from ( select t.*, (next_time - "time") as duration from (select *, LEAD("time") OVER(partition by employee_id ORDER BY "date", "time") next_time from mbad.logs_motif )t)x where l.employee_id = x.emplo...
true
3c9bb975cb7c7afd5ae78e30bb03d7318f966708
SQL
smartparrot/iem
/database/upgrade/asos/11.sql
UTF-8
4,522
3.640625
4
[ "MIT" ]
permissive
-- initial definition was not range partitioned, so we have to a convoluted -- dance ALTER TABLE alldata RENAME to alldata_old; ALTER TABLE alldata_1minute RENAME to alldata_1minute_old; CREATE TABLE alldata( station character varying(4), valid timestamp with time zone, tmpf real, ...
true
312a7c13ea3c6173ee9db14968087d6bf32e139e
SQL
srecckog/sql1
/Vlado - SQL code/RFIND/events_log.sql
UTF-8
136
2.59375
3
[]
no_license
USE FeroApp SELECT AsnSta.* FROM AsnSta WHERE AsnSta.ID_AsnZ IN(SELECT AsnZag.ID_AsnZ FROM AsnZag WHERE AsnZag.DatumASN = '2016-11-04')
true
098f25d13cf59a05bc752856df080ff8cc1e2d19
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day25/select2210.sql
UTF-8
178
2.640625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-24T22:10:00Z' AND timestamp<'2017-11-25T22:10:00Z' AND temperature>=17 AND temperature<=81
true
9c5c68dae4f582d7d2d3e30dba2eaff28cc22491
SQL
evrimulgen/Oracle-DBA-Life
/Advance Tunning Scripts/buffer_pool_latches.sql
UTF-8
723
2.6875
3
[ "MIT" ]
permissive
------------------------------------------------------------------------------- -- -- Script: buffer_pool_latches.sql -- Purpose: to check the lru latches -- For: 8.0 and 8.1 -- -- Copyright: (c) Ixora Pty Ltd -- Author: Nabeel Khan -- ------------------------------------------------------------------------------- @sa...
true
cf983002c40d96046a1abcb242d72ac2f4649787
SQL
mkcafe/sample
/apex-plugins/region_type_plugin_sample_my_region_plugin.sql
UTF-8
15,872
2.65625
3
[ "MIT" ]
permissive
prompt --application/set_environment set define off verify off feedback off whenever sqlerror exit sql.sqlcode rollback -------------------------------------------------------------------------------- -- -- ORACLE Application Express (APEX) export file -- -- You should run the script connected to SQL*Plus as the Oracle...
true
4dc4ae94ab44bfd4134892c83bf64631fe52e52f
SQL
jrjr-randy/backoffice
/sql/build_new_db/prometheus_tables/remote_login_requests.table.sql
UTF-8
919
3.625
4
[]
no_license
DROP PROCEDURE IF EXISTS table_create_prometheus_remote_login_requests; DELIMITER // CREATE PROCEDURE table_create_prometheus_remote_login_requests() BEGIN IF NOT EXISTS ( SELECT DISTINCT 1 FROM `information_schema`.`TABLES` WHERE `TABLE_SCHEMA` = DATABASE() AND `TABLE_NAME` = 'remote_login_requests' ) THEN ...
true
126964d2b3d3f2b15a507135ffedb1786fb08c01
SQL
dp-malish/h75_2
/sql/store/nomenclature.sql
UTF-8
790
2.96875
3
[]
no_license
CREATE TABLE IF NOT EXISTS nomenclature( id INT(11) NOT NULL AUTO_INCREMENT, heading TINYINT NOT NULL COMMENT 'Заголовок TINYINT', category TINYINT NULL COMMENT 'Категория TINYINT', `name` VARCHAR(255) NULL, manufacturer SMALLINT NULL COMMENT 'Производитель',/*производитель*/ `mpn` varchar(64) NULL COMMENT 'Man...
true
212d7432ecbc6ee3ab61af027f83692b0ba09d12
SQL
lucianavarela/micomanda
/comanda.sql
UTF-8
13,881
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 09-07-2018 a las 20:47:17 -- Versión del servidor: 10.1.31-MariaDB -- Versión de PHP: 5.6.35 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
18b7bc384921b929e8baf8d3e76b5c66d4ed7f86
SQL
Nitril/ProjektZ_11166
/ProjektZaliczeniowy/Zdenormalizowany_Salon/rapAn/Stored Procedures/NajrzadziejZamawianeModele.sql
UTF-8
466
3.421875
3
[ "MIT" ]
permissive
 --najrzadziej lub wcale niezamawiane modele samochodów CREATE PROCEDURE rapAn.NajrzadziejZamawianeModele AS SELECT sdm.Mod_Nazwa, SUM(fz.Ilosc) AS Ile_szt_Zamowien FROM FactZamowienia fz WITH (READUNCOMMITTED) INNER JOIN Salon.Dim_Modele sdm WITH (READUNCOMMITTED) ON sdm.Mod_Id = fz.Mod_Id GROUP BY sdm.Mod_Nazwa ORD...
true
954bc6daf1a6980f7df4cde34640494713b69be2
SQL
skynde/ctf-platform-lite
/db/init.sql
UTF-8
309
2.5625
3
[]
no_license
CREATE DATABASE djangodb; CREATE USER djangouser WITH PASSWORD 'djangopassword'; ALTER ROLE djangouser SET client_encoding TO 'utf8'; ALTER ROLE djangouser SET default_transaction_isolation TO 'read committed'; ALTER ROLE djangouser SET timezone TO 'UTC'; GRANT ALL PRIVILEGES ON DATABASE djangodb TO djangouser;
true
3545ff4a5a459f2742b89da0cde592cfbd40ff02
SQL
djunaim/chinook
/line_item_track.sql
UTF-8
150
3.171875
3
[]
no_license
select InvoiceLine.InvoiceLineId as LineItem, Track.Name as TrackName from InvoiceLine join Track on InvoiceLine.TrackId = Track.TrackId order by 1
true
0ad53c2c91b657bcd78e484d5af6eb8486e6f83d
SQL
MohamedFarid648/my-clinic-mvc-webapi
/OnDeleteSetNull.sql
UTF-8
153
3.140625
3
[]
no_license
ALTER TABLE dbo.Request ADD CONSTRAINT Nurse_Request FOREIGN KEY (NurseId) REFERENCES dbo.AspNetUsers(Id) ON UPDATE No Action ON DELETE Set Null
true
cfada1a3ce797d827ead0dafae32efb44e12194b
SQL
vsolv/BigFin
/Bigflow/DB/ATMA_SP/sp_Atma_Activitydetails_Get.sql
UTF-8
3,915
3.21875
3
[]
no_license
CREATE DEFINER=`developer`@`%` PROCEDURE `sp_Atma_Activitydetails_Get`(in Action varchar(50), in lj_filter json,in lj_classification json,out Message varchar(1000)) sp_Atma_Activitydetails_Get:BEGIN Declare Query_Select varchar(5000); Declare Query_Search varchar(5000); Declare Query_Table varchar(60); Declare Query_T...
true
0e262e0a84e17bc2e177395180c7568dccea4727
SQL
augenzu/postgres-labs
/Lab3-1/scripts/fests-fill-tables.sql
UTF-8
945
3.078125
3
[]
no_license
COPY ticket(customer_id, fest_id, price_id) FROM '/home/alex000/Documents/Progs/2020-21/BDLabs/Lab3-1/data/ticket1.csv'; -- and then the same for ticket2.csv, ticket3.csv, ..., ticket10.csv ANALYZE VERBOSE ticket; COPY customer(customer_info) FROM '/home/alex000/Documents/Progs/2020-21/BDLabs/Lab3-1/data/customer.cs...
true
2dcf5c3dc400fa02352a8aebd8ecb8d7c60ad82d
SQL
kinantitn/IntegrasiAPI
/Tabel/penggajian_karyawan.sql
UTF-8
1,889
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 02 Jun 2021 pada 19.28 -- Versi server: 10.4.18-MariaDB -- Versi PHP: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
true
0ef0b2fa2be53c56ac938b61fd10e0d11d21e361
SQL
gurpreet19/ec198392_wht
/Database/configuration/03_02_headless_tool/Delta_WST/TargetPackageDefinitions/ECBP_ENTITLEMENT_BODY.sql
UTF-8
15,485
2.859375
3
[]
no_license
CREATE OR REPLACE PACKAGE BODY EcBp_Entitlement IS /**************************************************************** ** Package : EcBp_entitlement ** ** $Revision: 1.18 $ ** ** Purpose : This package is responsible for calculating the availability ** for each equity holder, third party...
true
7dbfd05ec6033c42b80e5d897952287443fb742e
SQL
nachor19/ProyectoAnalisis2
/Proyecto/DB/barberia.sql
UTF-8
17,052
3.40625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 20-08-2019 a las 23:43:13 -- Versión del servidor: 10.1.38-MariaDB -- Versión de PHP: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
727a33558a430be9205dd1e28be7261eb096674e
SQL
adalberto-info/samtWebAlpha
/documentos/samtWeb_alpha.sql
UTF-8
27,492
2.6875
3
[ "MIT" ]
permissive
CREATE TABLE area ( dc_codArea CHAR(4) NOT NULL AUTO_INCREMENT, dc_area VARCHAR(30) NULL, PRIMARY KEY(dc_codArea) ); CREATE TABLE autoInfracao ( dc_nr_multa CHAR(18) NOT NULL AUTO_INCREMENT, dc_placa CHAR(7) NULL, nr_codCategoria NUMERIC(2) NULL, nr_codMarca NUMERIC(6) NULL, nr_codTipo NUMER...
true
d12a022cce4482aa2c5b5219ad4639bf1fe2495b
SQL
witch49/MySQL
/day0401_1.sql
UTF-8
6,275
4.125
4
[]
no_license
/* USE world; DROP TABLE tmp_table; SHOW TABLES; desc eagles; SELECT * FROM wp_options; rename table wp_option to wp_options; */ /* create table address_table ( num INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(10), tel VARCHAR(20), address VARCHAR(50) ); ALTER TABLE address_table ADD sex CHAR(2) NO...
true
8f5730722b4cd47b34b28fb461f522b356ab86d9
SQL
j7ng/CLFY_SA
/SA/Views/TABLE_OPP_ALST.sql
UTF-8
1,305
3.328125
3
[]
no_license
CREATE OR REPLACE FORCE VIEW sa.table_opp_alst (entry_time,act_code,add_info,login_name,s_login_name,parent_objid,objid,act_name,s_act_name) AS select table_act_entry.entry_time, table_act_entry.act_code, table_act_entry.addnl_info, table_user.login_name, table_user.S_login_name, table_act_entry.act_entry2opportunit...
true
2cb3c877a3b48f836227ecc3975013189912b89b
SQL
MaxWong03/BootcampX
/4_queries/name_of_teacher_assisted.sql
UTF-8
283
3.609375
4
[]
no_license
SELECT DISTINCT teachers.name, cohorts.name FROM cohorts INNER JOIN students ON cohorts.id = students.cohort_id INNER JOIN assistance_requests req ON students.id = req.student_id INNER JOIN teachers ON teachers.id = req.teacher_id WHERE cohorts.name = 'JUL02' ORDER BY teachers.name;
true
a4a264bf1ddcec4294292ba2a9c6148fbb3714fe
SQL
guacamoledragon/throw-voice
/sql/common/V20180821212036__create-recordings-table.sql
UTF-8
353
3.125
3
[ "Apache-2.0" ]
permissive
create table Recordings ( id INTEGER primary key, channel INTEGER not null references Channels, size INTEGER, created_on TEXT not null, modified_on TEXT, url TEXT, guild BIGINT not null references Guilds on delete cascade ); create unique index Recording...
true
e9444410ee1a76f3ad6d83b1fdcac5780319b735
SQL
sumeshnairhl/studentmanagement
/student_management.sql
UTF-8
3,314
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 26, 2021 at 03:37 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.2.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
e1255a677f4de7032f166c357d24b8165f7a1830
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day27/select0142.sql
UTF-8
262
2.96875
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['3092','2019','4222','5032','3056','6052','2222','3026','4042','4081'])
true
a51cb8e7b17cdb36fb4820a197c58c2b50a446bf
SQL
alezanper/ansible_arm_app
/sql/users.sql
UTF-8
713
3.421875
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; CREATE DATABASE if not exists crud_app; use crud_app; CREATE USER IF NOT EXISTS 'newuser'@'%' IDENTIFIED BY 'passwordComplex2019*'; FLUSH PRIVILEGES; GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'%'; FLUSH PRIVILEG...
true
b352193cf594f2cc1cf85d2254dc6cce88bcc3e4
SQL
kishore2907/dbproject
/sql/Create Table Script.sql
UTF-8
1,834
3.75
4
[]
no_license
CREATE DATABASE HelpDeskDB; USE HelpDeskDB; -- a table for various role types CREATE TABLE RoleType ( RoleName varchar (50) NOT NULL, PRIMARY KEY (RoleName) ); -- insert the values INSERT INTO RoleType( RoleName ) VALUES ('FULL TIME STAFF'), ('STUDENT STAFF'), ('SUPERVISOR'); -- create a table for user -- it has...
true
f257cffd675140b8a87417e4e22f972c0977a809
SQL
opdevelopnew/product
/sql/product.sql
UTF-8
14,972
3.375
3
[]
no_license
drop database if exists product; /*==============================================================*/ /* Database: product */ /*==============================================================*/ create database product CHARACTER SET utf8; USE product; drop table if exists CUSTO...
true
e5beaa0c590cbdb8ea476670a55b51268d68dac0
SQL
tjstrahan/learntocode
/myproductstable.sql
UTF-8
1,432
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 17, 2019 at 04:23 PM -- Server version: 5.6.13 -- PHP Version: 5.4.17 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
ab8daad1ec559a474b6f49acd96fc89b8cec2d65
SQL
JMatt21/Weeks
/Week13/MySQL/schema.sql
UTF-8
934
3.859375
4
[]
no_license
DROP DATABASE IF EXISTS songlist_db; CREATE DATABASE songlist_db; USE songlist_db; CREATE TABLE top5000( id int(4) NOT NULL AUTO_INCREMENT, artist VARCHAR(45) NOT NULL, name varchar(100) NOT NULL, year int(4), sales_global double(10,4), sales_us double(10,4), sales_uk double(10,4), sales_...
true
18bcd76f9197216ed178ac0af72374063f71b34f
SQL
0x464e/data-db-100
/H1 - Database table/h1t9.sql
UTF-8
458
2.890625
3
[]
no_license
-- Tietokantojen perusteet - Database basics 2021 -- H1 T9 CREATE TABLE piikkari ( tunnus int, nimi VARCHAR(10), tyyppi VARCHAR(30), hinta decimal(10,2), PRIMARY KEY (tunnus) ); INSERT INTO piikkari VALUES (1, 'X 10', 'pikajuoksu', 79.95); INSERT INTO piikkari VALUES (4, 'ABC 101', 'pikajuoksu', 124.95); I...
true
d024bfa35c61bc46b9c8327bcf54ec963d62eff2
SQL
Jorgechue10/AccesoDatos
/Unidad_04_BDOO/P01_Oracle_SQL_Developer/AD_7_1_Creacion_tablas_Ventas.sql
WINDOWS-1250
6,798
3.84375
4
[]
no_license
CREATE TABLE CLIENTES ( IDCLIENTE NUMBER , NOMBRE VARCHAR2(50), DIRECCION VARCHAR2(50), POBLACION VARCHAR2(50), CODPOSTAL NUMBER(5), PROVINCIA VARCHAR2(40), NIF VARCHAR2(9) UNIQUE, TELEFONO1 VARCHAR2(15), TELEFONO2 VARCHAR2(15), TELEFONO3 VARCHAR2(15), constraint PK_CLI PRIMARY K...
true
193bf6ac78415f55d6993407add872e7dc04c30a
SQL
FuenRob/Landing
/sql/table.sql
UTF-8
1,084
3.3125
3
[]
no_license
CREATE TABLE IF NOT EXISTS `landing_users` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `partnerUID` int(11) unsigned NOT NULL, `PartnerKey` varchar(100) NOT NULL, `CouponsList` int(11) unsigned NOT NULL, `FirstName` varchar(50) NOT NULL, `LastName` varchar(100) NOT NULL, `AddressPostalCode` varchar(1...
true
b6a47b525eb73768c926967be57aa05f2cf702b2
SQL
hiredupapp/app
/sql/scripts/locations.sql
UTF-8
1,030
3.5625
4
[]
no_license
call utlCreateBackupTable('locations', '_locations'); DROP TABLE IF EXISTS locations; CREATE TABLE `locations` ( `LocationId` int(11) NOT NULL AUTO_INCREMENT, `ZipCode` varchar(10) NOT NULL, `City` varchar(45) NOT NULL, `State` varchar(45) NOT NULL, `Latitude` decimal(10,8) DEFAULT NULL, `Longitude` decim...
true
92ee3972a405beaf99b2726260439eb096aba91d
SQL
MartzolfTom/M3104-PHP
/PHP/TD_2_correction/toner.sql
UTF-8
10,031
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.12deb2 -- http://www.phpmyadmin.net -- -- Client : localhost -- Généré le : Mer 16 Septembre 2015 à 20:55 -- Version du serveur : 5.6.25-0ubuntu0.15.04.1 -- Version de PHP : 5.6.4-4ubuntu6.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
bdd1b75a84d840e127b6e9e914ac0f6630275991
SQL
andresmg42/Curso-github
/scripts/vuelosbaratos_com.sql
UTF-8
6,049
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3307 -- Generation Time: Oct 10, 2021 at 05:04 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET...
true
58d9d648731990758f4b3f17e61a95486cb07299
SQL
jingyinggao/ntu-eee
/EE4717-Web-App-php-mysql-js/sessions-examples/createauthdb.sql
UTF-8
555
2.671875
3
[ "MIT" ]
permissive
create database auth; use auth; create table authorized_users ( name varchar(20), password varchar(40), primary key (name) ); insert into authorized_users values ( 'username', ...
true
5f1edc0abb8bdbc536f3c1fec940669d144ab132
SQL
ewartle/bamazon
/schema.sql
UTF-8
2,223
3.328125
3
[]
no_license
CREATE DataBase bamazon_db; USE bamazon_db; CREATE TABLE products ( id INTEGER(11) NOT NULL AUTO_INCREMENT, product_name VARCHAR (250), NOT NULL, department_name VARCHAR (250), NOT NULL, price INTEGER (11), stock_quantity INTEGER (11), PRIMARY KEY (id) ); INSERT INTO products (product_name, department_name, price, s...
true
c444f69ce67cf8fda2c16168ca0ee37a3b710805
SQL
pedrohenriqueos/Projects
/Flask/banco.sql
UTF-8
1,171
3.609375
4
[]
no_license
CREATE DATABASE db; USE db; CREATE TABLE users( IDUSERS INT PRIMARY KEY AUTO_INCREMENT, nome VARCHAR(50) NOT NULL, senha VARCHAR(50) NOT NULL ); CREATE TABLE quest( IDQUEST INT PRIMARY KEY AUTO_INCREMENT, link_prob VARCHAR(70) NOT NULL, ansOJ ENUM('AC','WA','TLE','MLE','RE') NOT NULL, link_sub VARCHAR(70), r...
true
215e78501a40f3e7caed82b62e1b8916df7ddffd
SQL
abdulrabbt/project24
/backend/db/seed.sql
UTF-8
2,431
3.234375
3
[]
no_license
DROP DATABASE IF EXISTS tvshow; CREATE DATABASE tvshow; \c tvshow CREATE TABLE shows( id serial primary key, name varchar, description text, image varchar, rating double precision ); INSERT INTO shows (name, description, image, rating) VALUES ( 'Game of Thrones', 'Based on the bestselling bo...
true
6910ef368cdff6d3e98f8deb56d13ee75dad4ca2
SQL
bharathichezhiyan/Bharathi-internship-algorthmic-trading-
/extrat.sql
UTF-8
4,030
3.59375
4
[]
no_license
SELECT U.Symbol, SUM(U.count_orders) count_orders, SUM(U.count_orders_algo) count_orders_algo, SUM(U.count_orders_algo_market) count_orders_algo_market, SUM(U.count_orders_algo_limit) count_orders_algo_limit, SUM(U.count_order_algo_market_stop) count_order_algo_market_stop, SUM(U.count_order_algo_market_r...
true
71971e6d89fda91640361526178408b630d10c36
SQL
wqpod2g/MyWebCollector
/resources/JWNEWS.sql
UTF-8
872
2.734375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 114.212.82.189 Source Server Version : 50628 Source Host : 114.212.82.189:3306 Source Database : xianteng Target Server Type : MYSQL Target Server Version : 50628 File Encoding : 65001 Date: 2016-01-29 11:58:30 */ SET FOREIGN_KEY_CHEC...
true
abfd4aa2d52102358d3bb6499b2425586a2753a2
SQL
NotRyan/savio-analytics-dashboard
/projects/postgres/job-cpu-query.sql
UTF-8
317
3.140625
3
[ "BSD-3-Clause" ]
permissive
-- TODO: Not yet enough data to test SELECT cpu.timestamp, cpu.host, cpu.usage_user FROM cpu, job_nodes, jobs WHERE jobs.job_id = job_nodes.job_id AND cpu.timestamp >= jobs.start_time AND cpu.timestamp <= jobs.end_time AND cpu.host = job_nodes.hostname AND jobs.job_id = $JOB_ID;
true
c203546ffbb52e2350f91c37e3b79cc8ca4fac60
SQL
sokdes/crmbase
/protected/modules/rights/data/schema.sql
UTF-8
1,767
3.6875
4
[]
no_license
/** * Database schema required by CDbAuthManager. */ drop table if exists `bts_AuthAssignment`; drop table if exists `bts_AuthItemChild`; drop table if exists `bts_AuthItem`; create table `bts_AuthItem` ( `name` varchar(64) not null, `type` integer not null, `description` text, `bizrule` text, `data` t...
true
1eed10a69d9349b7c75dc7574291efe2e550e47d
SQL
Svetik77/autox
/dotnet/AutoX.DB/Scripts/PostgreSQL/CreateDB.sql
UTF-8
1,523
3.703125
4
[]
no_license
-- Database: autox -- DROP DATABASE autox; CREATE DATABASE autox WITH OWNER = postgres ENCODING = 'UTF8' TABLESPACE = pg_default LC_COLLATE = 'English_United States.1252' LC_CTYPE = 'English_United States.1252' CONNECTION LIMIT = -1; -- Table: content -- DROP TABLE content; CR...
true
19c7a912225da052e09199d2aaf71916f7da98b8
SQL
AlekSib13/DDL_DML_DQ
/DML examples/DM_LOGISTICS_METRICS.METRICS_MAIN.sql
UTF-8
12,881
2.9375
3
[]
no_license
INSERT INTO DM_LOGISTICS_METRICS.METRICS_MAIN ( transportation_number, shipment_date_plan, transportation_start_date, delivery_date_plan, delivery_date_fact, shipment_point_code, delivery_point, business_unit, tariff_matrix_code, sales_channel, consignee_name, ...
true
de0290e3abd91a4b25431d4fff634182fc6a02f9
SQL
leeiter/oracle
/관리자(start-2019-09-25).sql
UTF-8
1,122
3.984375
4
[]
no_license
-- 주석(remark) 문은 --로 시작한다. -- 모든 명령문이 끝나는 곳에 ; 을 붙여야 한다. -- 오라클의 모든 keyword는 대소문자 관계없다. -- KEYWORD는 모두 대문자로 작성 예정 -- keyword가 아닌 경우는 소문자로 작성할 예정 -- 문자열이나 특별한 경우는 대소문자를 구별하는 경우도 있다. -- 이때는 대소문자 구분을 공지 한다. SELECT 30 + 40 FROM dual; select 30 * 40 from dual; -- 조회할 때(SELECT 할 때) 컴마(,)로 구분을 하면 -- TABLE로 보여줄 떄 Column으로 구...
true
5640c5261f8ec732a3a646c21b2295018fa838d7
SQL
Maxfer4Maxfer/service-template
/migration/d001.sql
UTF-8
793
2.609375
3
[]
no_license
START TRANSACTION; SET ROLE advertisement; -------------------------------------------------------------------------- DROP TABLE IF EXISTS technical.version; DROP SCHEMA IF EXISTS technical; -------------------------------------------------------------------------- DROP TABLE IF EXISTS advert_history; DROP TABLE IF ...
true
f9e09af9b50c2bf63cdebbed6f4821d954811cb4
SQL
georgegregoropoulos/IISLogParser
/LogParser/Scripts/Url500.sql
UTF-8
153
2.8125
3
[]
no_license
SELECT cs-uri-stem as Url, COUNT(*) as Hits FROM '<%FILENAME%>' WHERE sc-status = 500 GROUP BY cs-uri-stem ORDER BY Hits DESC
true
b8f742ea4f2ec22b2755f12f7dd631214aeaa965
SQL
kirankhariya/mywork
/sql/Exercise3.sql
UTF-8
1,587
3.0625
3
[]
no_license
/*CREATE TABLE Student_Info_ ( Reg_Number VARCHAR (30) PRIMARY KEY, Student_Name VARCHAR (30), Branch VARCHAR, Contact_Number VARCHAR, Date_of_Birth DATE, Date_of_Joining DATE, Address VARCHAR (250), Email_id VARCHAR (250) ); */ /* CREATE TABLE Subject_Master_ ( Subject_Code VARCHAR (1...
true
a9a1ff88b1bd449fb51f8b75c21ce7dcb749085d
SQL
kieen/clipper
/clipper-cli/src/test/resources/lubm-ex-20/query/v_q5.sql
UTF-8
462
3.15625
3
[]
no_license
CREATE OR REPLACE VIEW v_q5 AS ( SELECT v_Publication_1.att1 AS att1 FROM v_Publication v_Publication_1, v_Student v_Student_1, v_publicationAuthor v_publicationAuthor_1, v_publicationAuthor v_publicationAuthor_2, v_Professor v_Professor_1 WHERE v_publicationAuthor_1.att2 = v_Professor_1.att1 AND v_Publication_1....
true
a32abeb47b69fe87fe570553bb32258917c0fda3
SQL
Chocobe/-Study-WebStudy
/WebStudy/pro17/t_board.sql
UTF-8
1,558
3.625
4
[]
no_license
-- 게시판 테이블 생성 DROP TABLE IF EXISTS t_board; CREATE TABLE t_board( articleNO INT PRIMARY KEY, parentNO INT DEFAULT 0, title VARCHAR(500) NOT NULL, content VARCHAR(4000) NOT NULL, imageFileName VARCHAR(30), writeDateTime TIMESTAMP DEFAULT CURRENT_TIMESTAMP(), writeDate DATE AS ...
true
58db45eaa73e1f79685cdff16fa7d49f29ebafe8
SQL
cyberbikepunk/archive
/sql/audit_logs.sql
UTF-8
3,532
3.640625
4
[]
no_license
CREATE TABLE tableau.audit_logs ( id BIGSERIAL PRIMARY KEY, event TEXT, username TEXT, timestamp TIMESTAMP, created_at TIMESTAMP, modified_at TIMESTAMP, deleted_at TIMESTAMP, uuid TEXT, driver TEXT, fleet_controller_uuid TEXT, user_uuid TEXT, delivery TEXT ); SELECT "timestamp" FROM tableau.aud...
true
876aa2af6b2d4343f8900b303dc212fb91a643da
SQL
markarowabove/analysis
/raft/raft_contacts_accounts.sql
UTF-8
2,917
3.953125
4
[]
no_license
use raftdb2den; select count(*) from names; select * from names where last = 'Buznedo'; -- diff - additional records if (object_id('tempdb..#ids') is not null) begin drop table #ids end; select a.id into #ids from names a left join raftdb2den_old.dbo.names b on a.id = b.id where b.id is null; --select * from #ids or...
true
6c079b92f93622965a23b450fd18b160346fcfdf
SQL
DaveMoran/cs50x
/week-7/pset7/movies/10.sql
UTF-8
247
3.421875
3
[]
no_license
SELECT name FROM people WHERE id IN (SELECT person_id FROM directors WHERE movie_id IN (SELECT id FROM movies WHERE id IN (SELECT movie_id FROM ratings WHERE rating >= 9.0)));
true
e90d9670e255a95a82deafde11fb9c40a195d744
SQL
slalom-ggp/covid-response-dataops
/infra/RedshiftSQL/CreateRedshiftTables.sql
UTF-8
1,616
3.453125
3
[ "MIT" ]
permissive
-- Had to create a Redshift Role to be able to access AWS services; tried to use that role, but failed. Ended up using access key and secret access key. -- Had to zero out all FIPS that were NULL in Incident data source so we would still get the data in. -- Drop Existing Version DROP TABLE "Location"; -- Create New ...
true
da0cbadf3124a9d06775d489dc2219a6ec746799
SQL
coddest/Pasjans
/server/database/queries/get_stats.sql
UTF-8
594
3.96875
4
[]
no_license
SELECT gameoccurrences.player_id AS playerId, icons.src AS icon, players.username AS username, IFNULL(SUM(gameoccurrences.is_win), 0) AS wins, IFNULL(SUM(gameoccurrences.is_lose), 0) AS losses, IFNULL(SUM(gameoccurrences.is_draw), 0) AS draws, CAST((IFNULL(SUM(gameoccurrences.is_win), 0) + 0.5 * IFNULL...
true
411fba01dcb0bad49dd5318291344c84d551d1da
SQL
DamsyDeSilva/SparkX_Assignment_1
/database_assignment.sql
UTF-8
2,144
4.46875
4
[]
no_license
CREATE DATABASE sparkx_assignment; use sparkx_assignment; CREATE TABLE owner ( owner_id int , name varchar(30), surname varchar(20), street_address varchar(50), city varchar(30), state varchar(20), state_full varchar(20), zip_code int, PRIMARY KEY (owner_id) ); CRE...
true
893e98b60d86c149f80c862b626233634344abcc
SQL
SamaelRoman/HomeworkSQL
/3.sql
WINDOWS-1251
248
2.953125
3
[]
no_license
USE [Northwind] --3. ? SELECT * FROM [Customers] WHERE [CustomerID] IN( SELECT DISTINCT [CustomerID] from [Orders] WHERE [ShippedDate] IS NULL)
true
10e172a8e1a4ea2ee88b46da59bdc17ec4aa0da2
SQL
Silodie/ProyectoFinal
/BBDD-tablasProyectoClientes.sql
UTF-8
1,510
3.671875
4
[]
no_license
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='TRADITIONAL'; -- ----------------------------------------------------- -- Table `javageneration`.`proyectos` -- -------------------------------------...
true
3a4e35e98e670344ebe01c957da68ab3595e7057
SQL
vntborgesjr/Data-Analyst-with-SQL-Server
/Introduction-to-SQL-Server/03-Joining-tables.sql
UTF-8
3,259
4.78125
5
[ "MIT" ]
permissive
-- Introduction to SQL Server - Joining tables -- !preview conn=DBI::dbConnect(RSQLite::SQLite()) -- INNER JOIN -- Perform an INNER JOIN between album and track using the album_id column SELECT track_id, name AS track_name, title AS album_title FROM track -- Complete the join type and the common joining column...
true
9778025d1192d224ca225719a2eafc56d58c42c2
SQL
jpachecov/KotlinExercises
/insertsDiets/inserts-diets-doc-D12.sql
UTF-8
4,635
2.5625
3
[]
no_license
# Plan D12 INSERT INTO food(dietId, section, choice, body) VALUES (12, 0, 1, 'PAPA RELLENA DE ESPINACAS, CHAMPIÑONES Y TOFU.' ); INSERT INTO food(dietId, section, choice, body) VALUES (12, 0, 2, 'SÁNDWICH...
true
5ee64a97d9d3677e5f43ff650ca4909a347e1a2e
SQL
shivasanketh-rm/Code-Sol
/HackerRank/SQL/StringConcatSubstring-Occupations.sql
UTF-8
1,283
3.65625
4
[]
no_license
/* Generate the following two result sets: Query an alphabetically ordered list of all names in OCCUPATIONS, immediately followed by the first letter of each profession as a parenthetical (i.e.: enclosed in parentheses). For example: AnActorName(A), ADoctorName(D), AProfessorName(P), and ASingerName(S). Query the numb...
true
fbc02b0648e929fb2eb5298ebad0ca5ced293860
SQL
torotil/nast-scrape
/abfragen.sql
UTF-8
2,123
4.0625
4
[]
no_license
-- Kontrolle: Versuche aus den Tageszähldaten die Monatszählwerte zu errechnen. SELECT *, dtv_rechnung-dtv FROM ( SELECT date_format(d.datum, '%Y-%m') as monat, d.stelle_id, round(sum(d.dtv_summe)/count(d.dtv_summe)) as dtv_rechnung, m.tag_typ, m.dtv FROM nast_tagesdtv d INNER JOIN tage ...
true