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
98551952337c317493e9650e87086054738cce6c
SQL
gayuhridho369/php-mvc
/database/php_mvc.sql
UTF-8
2,319
2.875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.22, for Linux (x86_64) -- -- Host: localhost Database: php_mvc -- ------------------------------------------------------ -- Server version 8.0.22-0ubuntu0.20.04.3 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SE...
true
c747c90cb7aab8e1d14791cf5ee1b647574c3fad
SQL
dripfeeder/haven-platform
/common/filestorage/src/main/resources/db/migration/V1__init.sql
UTF-8
275
3
3
[ "Apache-2.0" ]
permissive
-- simply key-value storage CREATE TABLE file_attribute ( id bigint(20) NOT NULL AUTO_INCREMENT, file_id binary(16) NOT NULL, name varchar(255) NOT NULL, data varchar(255) NOT NULL, PRIMARY KEY (id), UNIQUE KEY UK_file_attribute__file_id__name (file_id, name) );
true
9342648a05b2da878dc168619fccf4751b4b745d
SQL
brahimjid/projetJeeM1
/projetjee.sql
UTF-8
5,920
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 11, 2021 at 02:50 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
1490b38ded4ce2b2599dc67edd5124dad3e51219
SQL
xRuiAlves/FEUP-BDAD-Proj
/Queries/int3.sql
UTF-8
782
4.03125
4
[]
no_license
.mode columns .headers on .nullvalue NULL CREATE VIEW [nExByPlan] as SELECT exercisePlanID, count(*) as totalEx FROM ExerciseParameters JOIN Exercise USING(ExerciseID) GROUP BY exercisePlanID; CREATE VIEW [nExByTypeFromPlan] as SELECT exercisePlanID, count(*) as totalType FROM Exerci...
true
34a43d592ea02a50f64da07722b2d5ba030239fd
SQL
francisbb/tedu-ynly
/SERVER/v1/SQL/v1/category_item.sql
UTF-8
452
3.40625
3
[]
no_license
CREATE TABLE category_item( ci_id INT PRIMARY KEY AUTO_INCREMENT NOT NULL COMMENT '主键ID自增且唯一', ci_parent_name VARCHAR(30) NOT NULL COMMENT '主分类名称,不唯一', is_child_name VARCHAR(30) NOT NULL COMMENT '子分类名称,不唯一', category_id INT DEFAULT NULL COMMENT '外键,关联category的cid字段', CONSTRAINT FK_category_item_cid FOREIGN KEY(category...
true
62d543db236b8fcdbc860e8be0ea1429fdcdfdf0
SQL
dynamitetechnology/nodejsmachinteshecomm
/tableschemawithoutdata.sql
UTF-8
461
2.90625
3
[]
no_license
CREATE database cart_geek; CREATE TABLE users( id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, name VARCHAR(100) NOT NULL, email VARCHAR(100) UNIQUE NOT NULL, password VARCHAR(255) NOT NULL, mobile VARCHAR(15) UNIQUE NOT NULL ); CREATE TABLE products( id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, product_na...
true
be82cce70720d532b7b1f7279dc5f122672ca4c8
SQL
YasunoriHigashiyama/naoco
/src/test/resources/jp/gr/naoco/db/CommonDAOTest01_test16.sql
UTF-8
532
2.96875
3
[ "MIT" ]
permissive
SELECT /*+ HINT BODY */ STRING_ID, LONG_ID, DOUBLE_ID, STRING_VALUE, UTIL_DATE_VALUE FROM TEST_TABLE WHERE STRING_ID = #string_id# AND LONG_ID = #long_id# AND DOUBLE_ID = #double_id# AND UTIL_DATE_VALUE < #date_value# -- IF #isSqlTimestamp# AND SQL_TI...
true
1c7da00d003a0a24593f662ca00a5426c1b563f6
SQL
eunyoungkim220/cohort
/영화별매출_SQL_160318.sql
UTF-8
764
4.125
4
[]
no_license
#1. SELECT f.film_id, f.title, f.rental_rate*COUNT(*) total_rental FROM rental r, film f, inventory i WHERE r. inventory_id=i.inventory_id AND i.film_id=f.film_id GROUP BY 1 ; #2. DROP TEMPORARY TABLE IF EXISTS revenue_per_film; CREATE TEMPORARY TABLE revenue_per_film SELECT f.film_id, f.title, f.rental_rate*COUNT...
true
8e0b44521168cccd400c786aa0b09f716be4b48a
SQL
hirvin-faria/SQL
/SQL_SELECT_2.sql
UTF-8
2,000
3.359375
3
[]
no_license
SELECT * FROM TABELA_PRODUTOS WHERE PRODUTO = "544931"; SELECT * FROM TABELA_CLIENTES WHERE CIDADE = "Rio de Janeiro"; UPDATE TABELA_PRODUTOS SET SABOR = "Cítricos" WHERE SABOR = "Limão"; SELECT * FROM TABELA_PRODUTOS WHERE SABOR = "Cítricos"; SELECT * FROM TABELA_VENDEDORES WHERE NOME = 'Claudia Moraes'; SELECT...
true
58a8255f5c0ce751505b78323b07159f7586281a
SQL
Oli-Chowdhury/gittest
/dayprint-10-08-2017-08-2017-20-23.sql
UTF-8
785,610
2.921875
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.5.48-37.8-log) # Database: dayprint # Generation Time: 2017-08-10 19:23:26 +0000 # *************************************...
true
7b71b7444e04f925cde3d07d28d6d21abbfb396f
SQL
yareda/backoffice
/Database/ClearOffice.Database/Schema Objects/Schemas/fleet/Tables/Keys/fleet.tire.FK_tire_tire_manufacturer.fkey.sql
UTF-8
191
2.65625
3
[]
no_license
/*ALTER TABLE [fleet].[tire] ADD CONSTRAINT [FK_tire_tire_manufacturer] FOREIGN KEY ([brand]) REFERENCES [fleet].[tire_manufacturer] ([id]) ON DELETE NO ACTION ON UPDATE NO ACTION;*/
true
01dd95917dd7d12c2ab86ab52e681e52e37318bb
SQL
CUBRID/cubrid-testcases
/sql/_24_aprium_qa/_01_i18n/issue_8700_enum/cases/index_001.sql
UTF-8
1,456
3.578125
4
[ "BSD-3-Clause" ]
permissive
--+ holdcas on; set system parameters 'dont_reuse_heap_file=yes'; drop table if exists ai; drop table if exists t; create table ai (i integer auto_increment); insert into ai values(null); insert into ai select null from ai; insert into ai select null from ai; insert into ai select null from ai; insert into ai select n...
true
47e1e270143da6017eab586dd6dd8906ef0348f4
SQL
cross-team/clublink
/backend/app/adapter/sqldb/migration/29_create_incident_table.sql
UTF-8
198
2.609375
3
[ "MIT" ]
permissive
-- +migrate Up CREATE TABLE incident ( id VARCHAR(4) NOT NULL PRIMARY KEY, title VARCHAR(100) NOT NULL, created_at TIMESTAMP WITH TIME ZONE NOT NULL ); -- +migrate Down DROP TABLE incident;
true
3dff8b6941f64789956cdbd783104f9bd7abdb12
SQL
Julio-K/jespresso-lite
/src/main/resources/scripts/h2/schema.sql
UTF-8
2,780
3.578125
4
[ "Apache-2.0" ]
permissive
-- drop table access_logs if exists; -- drop table administrators if exists; -- drop table privilege if exists; -- drop table role if exists; -- drop table roles_privileges if exists; -- drop table sessions if exists; -- drop table settings if exists; -- drop table users_roles if exists; -- drop sequence if exists hibe...
true
aaa4cbf43de0f08c5a6f6dfbd1dd351965ca4326
SQL
dingjinhui821/julive_database
/schema/julive_ods/xpt_opensearch_middle_village_house.sql
UTF-8
7,056
3.171875
3
[]
no_license
drop table if exists ods.xpt_opensearch_middle_village_house; create external table ods.xpt_opensearch_middle_village_house( id bigint comment '自增id', house_id bigint comment '房源id-xpt_house', title ...
true
0e226cc68731fbb576276fc649bbef46030f3d62
SQL
YasminUsman/YasminUsman001.github.io
/db_berasbagi.sql
UTF-8
4,787
3.125
3
[]
no_license
# Host: localhost (Version 5.0.45-community-nt) # Date: 2020-06-30 10:17:43 # Generator: MySQL-Front 5.3 (Build 5.33) /*!40101 SET NAMES latin1 */; # # Structure for table "tb_kriteria" # DROP TABLE IF EXISTS `tb_kriteria`; CREATE TABLE `tb_kriteria` ( `kd_kriteria` char(4) NOT NULL default '', `nm_kriteria` v...
true
a3628bec71bca7fa55a8ecf49494a5aaa7548b43
SQL
j7ng/CLFY_SA
/SA/Tables/X_ACH_PROG_TRANS.sql
UTF-8
3,751
2.625
3
[]
no_license
CREATE TABLE sa.x_ach_prog_trans ( objid NUMBER(10) NOT NULL, x_bank_num VARCHAR2(30 BYTE), x_ecp_account_no VARCHAR2(400 BYTE) NOT NULL, x_ecp_account_type VARCHAR2(20 BYTE), x_ecp_rdfi VARCHAR2(400 BYTE), x_ecp_settlement_method VARCHAR2(30 BYTE), x_ecp_payment_mode VARCHAR2(30 BYTE), x_ecp_de...
true
694239024bdaabdac2736a783f474a26d4b13152
SQL
yuanmomo/MyBatisTutorial
/tutorial-02-crud/src/main/resources/DB.sql
UTF-8
312
3
3
[ "Apache-2.0" ]
permissive
CREATE TABLE `user` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, `age` smallint(5) unsigned NOT NULL DEFAULT '0', `birthday` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `id_UNIQUE` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
true
0678f25bda160ca58544adaba31ad1e1e296445f
SQL
JonathanRH07/Control-de-versiones
/DB ICAAVweb/Suite_mig_demo/Stored_Procedures/sp_cat_sucursal_i.sql
UTF-8
3,875
3.453125
3
[]
no_license
DELIMITER $$ CREATE DEFINER=`root`@`%` PROCEDURE `sp_cat_sucursal_i`( IN pr_id_grupo_empresa INT(11), IN pr_id_usuario INT(11), IN pr_pertenece INT(11), IN pr_tipo ENUM('CORPORATIVO', 'SUCURSAL', 'INPLANT'), IN pr_cve_sucursal VARCHAR(30), IN pr_nombre VARCHAR(60), IN pr_email ...
true
a37243350e3300f6e0dd4ecc79fb8524e4ecfc61
SQL
FireRex979/Tepoos
/dokumentasi/db_tepos.sql
UTF-8
11,513
2.8125
3
[]
no_license
/* SQLyog Ultimate v12.5.1 (64 bit) MySQL - 10.4.14-MariaDB : Database - db_tepos ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=...
true
cd8e813bc7d55b3ca6d28e59c3378c5bd15214b9
SQL
digirati-co-uk/madoc-platform
/services/madoc-ts/migrations/2023-04-03T15-07.webhooks.sql
UTF-8
875
3.53125
4
[ "MIT" ]
permissive
--webhooks (up) create table webhook ( id uuid not null constraint webhooks_pk primary key, event_id text not null, url text not null, site_id integer not null, scope text[], creator integer, created_at timestamp d...
true
023555ef5734346cc4f1f5989c9e9bee9905d2bd
SQL
advaitpatel/CSC-453-Database-Technology
/orac_allfiles/oracle_sql/scripts/ch03/fig3-07b.sql
UTF-8
193
2.859375
3
[]
no_license
SELECT 'Invoice: # ' || invoice_number || ', dated ' || TO_CHAR(payment_date, 'MM/DD/YYYY') || ' for $' || TO_CHAR(payment_total) AS "Invoice Text" FROM invoices --ORDER BY invoice_id
true
7bf6b41f09d0955c18fa39acf45e5bc7dee29225
SQL
jtuan98/ClubIQ
/Avatar/config/mysql/sqlUpdates/running/20160208.sql
UTF-8
320
3.078125
3
[]
no_license
--ran on aws 2/08/2016 create table TOKEN_CACHE ( ID INT(10) NOT NULL PRIMARY KEY, TOKEN VARCHAR(50) NOT NULL, VALID_TILL TIMESTAMP NOT NULL, USER_ID INT(10) NOT NULL REFERENCES USERS(ID) ); CREATE INDEX TOKEN_CACHE_IND1 on TOKEN_CACHE (TOKEN, USER_ID); CREATE INDEX TOKEN_CACHE_IND2 on TOKEN_CACHE (VALID_TILL);
true
b2a533ecedf500f2f586ace31731430f53efa8e9
SQL
techtronics/upa
/Insidencias/reportes/nuevas/descuentos_ocultos.sql
UTF-8
2,493
3.859375
4
[]
no_license
select aa.* from ( select a.comp_ndocto,sum(dcom_mneto) as total_acumulado,f.aran_mcolegiatura, cast(f.aran_mcolegiatura -sum(dcom_mneto) as integer) as total_descuento,a.comp_ncuotas from compromisos a, contratos b,postulantes c, ofertas_academicas d, especialidades e, aranceles f, detalle_com...
true
d8c0f6ea52b66dfac06a51f70dafb77574c7b220
SQL
DanielMassato/Projeto-Entity
/Projeto-Entity/99_Extra/P0_VendedoresPedidos/INSTRUCOES_SELECT.sql
WINDOWS-1250
660
3.875
4
[]
no_license
USE PEDIDOS --- TOTAIS POR VENDEDOR SELECT V.CODVEN, V.NOME, V.FONE, SUM(P.VLR_TOTAL) AS TOT_VENDIDO, SUM(P.VLR_TOTAL * V.PORC_COMISSAO/100) AS COMISSAO, COUNT(*) AS QTD_PEDIDOS FROM VENDEDORES V JOIN PEDIDOS P ON V.CODVEN = P.CODVEN WHERE MONTH(P.DATA_EMISSAO) = 1 AND YEAR(P.DATA_EMISSAO) = 2007 GROUP ...
true
4b33f0e641f3060bbf8e661fb1e5883dca659c8d
SQL
jorge-ribamar/SBD
/3.3.7.sql
UTF-8
1,110
4.125
4
[]
no_license
-- Obtencao de matricula e total de faturacao /* select Custo_Alugueres.matricula,sum(Custo_Alugueres.Custo) as Faturacao from( select matricula, (@periodo:=IF((@periodo:=data_entrega-data_levantamento) = 0,1,@periodo)) as Periodo, @periodo* taxa_contratual as Custo from aluguer) as Custo_Alugueres where Custo_Alug...
true
9df8d5e17938aad3641bc1253682774944e09d94
SQL
PereiraMarcos5/exercicios-banco-dados
/SQLExercicosDELETE.sql
UTF-8
1,257
2.84375
3
[]
no_license
SELECT * FROM cidades /* DELETE FROM pokemons WHERE categoria LIKE 'Seed' */ /* DELETE FROM pokemons WHERE nome LIKE 'Nid%' */ /* DELETE FROM pokemons WHERE categoria LIKE 'Snow%' */ /* DELETE FROM pokemons WHERE ataque = 2 OR defesa = 1 */ /* DELETE FROM pokemons WHERE especial_ataque %2 = 0 */ /* DELETE FROM...
true
3785b9d4a19c12bdc68abf3200f9c636528ff852
SQL
Spand0x/SoftUni
/MySQL/Exam 21 October 2018/06 Extract All Military Journeys.sql
UTF-8
126
2.96875
3
[]
no_license
USE cjms; SELECT id, journey_start, journey_end FROm journeys WHERE purpose = 'Military' ORDER BY journey_start;
true
1f17904154f3bad41543d59a9d05598d3a130aab
SQL
spb1994/Event
/event.sql
UTF-8
2,476
3.40625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 17, 2021 at 12:20 PM -- Server version: 10.4.18-MariaDB -- PHP Version: 7.3.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
6dbc4b2709ee79d2bf88b651294f73ff2766aa04
SQL
hardmouse/ionicApp
/RealConditionMobile.Database/Scripts/ZZRSCommon-ConditionalExecution.sql
UTF-8
1,069
3.28125
3
[]
no_license
SET DEFINE ON SET VERIFY OFF SET FEEDBACK OFF SET TIMING OFF --------------- Dummy script to show a message HOST echo PROMPT CONDITIONAL EXECUTION BLOCKED SCRIPT "<&&THEN_SCRIPT>" > null.sql ------------------------------------------------------------------------------------- --------------- Define column variable if ...
true
b48a6706e0664712e74dd60894750ef0db80b189
SQL
siamislam1603/PL-SQL
/Codes_Lab_1/join.sql
UTF-8
123
2.828125
3
[]
no_license
select S.name from money S inner join money1 B on S.id = B.id; --for union column must be matched -- right join, left join
true
f9756557ca958c35dd8d04779480d968a122216e
SQL
radtek/Oracle-4
/SQL/Procedure/Procedures_Bradesco - BRCUBE/sgpb5002.prc
ISO-8859-1
13,818
3.21875
3
[]
no_license
CREATE OR REPLACE PROCEDURE SGPB_PROC.SGPB5002( --curv_legenda OUT SYS_REFCURSOR, curv_relat OUT SYS_REFCURSOR, VAR_CANAL IN NUMBER, VAR_COMPT_INIC IN NUMBER, VAR_COMPT_FIM IN NUMBER ) IS ------------------------------------------------------------------------------------------------- -...
true
39d436d5add19f2821693ded0c2c188412622347
SQL
akawoa/Apprenti4FinalProject
/src/main/resources/db/migration/V2__create_reviews_table.sql
UTF-8
1,595
3.09375
3
[]
no_license
CREATE TABLE reviews ( id SERIAL PRIMARY KEY, rating INTEGER NOT NULL, comment TEXT, username VARCHAR(255) NOT NULL, movie_id INTEGER REFERENCES movies(id) ); INSERT INTO reviews (rating, comment, username, movie_id) VALUES ( 3, 'The divisive (among fans) new entry into the STAR WARS universe, THE LAS...
true
789bbeee7d7018ce3ded1a8a85e2d3479c569c79
SQL
developmentcollective/checkaride
/tests/test_data/test_data.sql
UTF-8
1,225
2.546875
3
[]
no_license
insert into city ( name, country, country_code, latitude, longitude, text_service, license_plate_graphic, icon_graphic, search_class ) values ( "Basingstoke", "United Kingdom", "GB", 51.25, /* 51°15'N 01°05'W */ 1.0833, "898989 hopeless", "/images/baingst...
true
8defd52f88f371c1fd61310d81fa6aa6b113b475
SQL
bgoonz/UsefulResourceRepo2.0
/MY_REPOS/web-dev-notes-resource-site/2-content/ciriculumn/week-10/week10/Wk10_study_guide/sql-practice-assessment/solution/create-merchants-table.sql
UTF-8
384
3.125
3
[ "MIT" ]
permissive
CREATE TABLE merchants ( id SERIAL PRIMARY KEY, merchant_name VARCHAR(255) NOT NULL, country_id INTEGER NOT NULL, created_at TIMESTAMP NOT NULL, admin_id INTEGER NOT NULL, merchant_type_id INTEGER NOT NULL, FOREIGN KEY (country_id) REFERENCES countries(id), FOREIGN KEY (admin_id) REFERENCES users(id), ...
true
e770e723f0719a9187c76340cdf3250f22c0d029
SQL
Upsas/test
/test.sql
UTF-8
21,871
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 12, 2021 at 11:19 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
2c9f8305b213f437a667685c25ba6dd9a4d3b8d5
SQL
atkins126/JavaLaboratory
/springboot-joinfaces-primefaces/bookmark/src/main/resources/db/migration/V1.0.0.1__create_table_categoria.sql
UTF-8
129
2.578125
3
[ "Apache-2.0" ]
permissive
create table categoria ( cat_id uuid not null, cat_nome varchar(255) not null, constraint pk_categoria primary key (cat_id) );
true
d8f0b85c76bc88a98edaec20e6aa7addc4e91e81
SQL
EthMil/cs_505_project1
/schema.sql
UTF-8
2,510
3.71875
4
[]
no_license
-- Flush all privileges for clean start flush privileges; DROP ROLE IF EXISTS E; DROP ROLE IF EXISTS S; DROP ROLE IF EXISTS H; DROP ROLE IF EXISTS G; DROP ROLE IF EXISTS L; DROP ROLE IF EXISTS F; DROP VIEW IF EXISTS L.general_info; DROP VIEW IF EXISTS L.schedule; DROP VIEW IF EXISTS L.pay_info; DROP VIEW IF EXISTS L....
true
ce3cf63ba3d2c544da7dad769c5adbe778739a7d
SQL
nhadziosma1/Fundamentals-of-Database-Systems-
/homework/homework 3/homework3,addingIndexes.sql
UTF-8
591
3.328125
3
[]
no_license
CREATE INDEX index_datum_isporuke ON ISPORUKA (datum_isporuke); CREATE INDEX index_popust_id ON PROIZVOD (popust_id); CREATE INDEX index_grarancija_id ON PROIZVOD (garancija_id); CREATE INDEX index_odgovorna_osoba ON SKLADISTE (odgovorna_osoba); CREATE INDEX index_datum_raskidanja_ugovora ON UGOVOR_ZAPOSLENIKA (dat...
true
fb04079e01b10331a4c3ab92961d48efcbe4f895
SQL
ipaulygon/evaluation_system
/db_evaluation_system_latest.sql
UTF-8
30,542
2.890625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 04, 2018 at 01:51 PM -- Server version: 5.7.14 -- PHP Version: 7.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
e182712e011ed5110219080e37198ffd03b5237f
SQL
byue/databases
/hw1/submission/hw1-q5.sql
UTF-8
416
3.46875
3
[]
no_license
-- CSE 344 HW1 Q5 -- Bryan Yue .header on .mode column .nullvalue NULL -- Write a SQL query that returns only the name and distance of all restaurants within and -- including 20 minutes of your house. -- The query should list the restaurants in alphabetical order of names. SELECT restaurant_name, distance_i...
true
2c11fb97361ada645a363a7fbbab53aa76f9a104
SQL
MurphyDownpour/mvc-framework-php
/database_file/mvc.sql
UTF-8
4,645
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.3 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Ноя 01 2017 г., 11:42 -- Версия сервера: 5.6.37 -- Версия PHP: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
ed71cff8c044ee354c19007f32a188a16cf2e9e5
SQL
petitforestier/LECAP-EquinoxeExtend
/EquinoxeExtendDB/Tables/S_Record/T_E_Lock.sql
UTF-8
364
2.734375
3
[]
no_license
CREATE TABLE [S_Record].[T_E_Lock] ( [LockId] BIGINT NOT NULL PRIMARY KEY CLUSTERED IDENTITY (1, 1), [DossierId] BIGINT NOT NULL Unique CONSTRAINT[FK.T_E_Lock.DossierId] FOREIGN KEY REFERENCES [S_Record].T_E_Dossier, [SessionGUID] NVARCHAR(100) NOT NULL Unique, [LockDate] DATETIME2 NOT NULL, [...
true
f60d99293ac1413774d5fc1fec980b93a3a0d0cd
SQL
MaggieFan2018/SQL_Exercises
/LeetCode/Basics/1741. Find Total Time Spent by Each Employee.sql
UTF-8
112
2.796875
3
[]
no_license
#GROUP BY CLAUSE SELECT event_day day, emp_id, SUM(out_time - in_time) total_time FROM Employees GROUP BY 1, 2;
true
b67debf90c4f84aa69a6480864127d8c146efcab
SQL
zxc5608/dbsql
/20200910.sql
UTF-8
9,970
4.1875
4
[]
no_license
많이 쓰이는 함수 ,잘 알아두자 (개념적으로 혼돈하지 말고 잘 정리하자 -SELECT절에 올수있는 컬럼에 대해 잘 정리 그룹 함수 :여러개의 행을 입력으로 받아 하나의 행으로 결과를 반환하는 함수 오라클제공 그룹함수 MIN(컬럼|익스프레션): 그룹중에 최소값을 반환 MAX(컬럼|익스프레션): 그룹중에 최대값을 반환 AVG:(컬럼|익스프레션): 그룹의 평균값 SUM :(컬럼|익스프레션): 그룹의 합계 COUNT(컬럼|익스프레션| * ): 그룹핑된 행의 갯수 SELECT 행을 묶을 컬럼, 그룹함수 FROM 테이블명 [WHERE] GROUP BY 행을 묶을 ...
true
3fc389d39bf59315ed29f13e3cc8e9127c29acc4
SQL
Zerofire03/CSUMB
/CST363/Module7/Assignment13/Lab12 HSDDW CreateTablesWithData.sql
UTF-8
3,303
4.0625
4
[]
no_license
/* HSD Data Warehouse star schema table */ DROP SCHEMA IF EXISTS hsddw; CREATE SCHEMA hsddw; USE hsddw; create table timeline( timeid int not null auto_increment primary key, date date not null, monthid int not null, monthtext char(15) not null, quarterid int not null, quartertext char(10) no...
true
1ca6bd8e1f2eb93c40bdb0e27c0de8fa22e0b81a
SQL
lzhongzhang/Leetcode
/sql/183.CustomersWhoNeverOrder.sql
UTF-8
207
3.265625
3
[]
no_license
// Problem 183 Customers Who Never Order // This is a SQL problem # Write your MySQL query statement below select Name as Customers from Customers where Customers.Id not in (select CustomerId from Orders)
true
914ce8275f6139e7335181a3e36c170589bc4248
SQL
junior1407/Pagina-Acessores
/bd.sql
UTF-8
4,895
3.125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `financeiro` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `financeiro`; -- MySQL dump 10.13 Distrib 5.6.24, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: financeiro -- ------------------------------------------------------ -- Server version 5.6.26 /*!40101 SET @OLD_CHARACTER_SE...
true
a3c5b6d6b0112df96517084728cba0cb981ff4ad
SQL
adhymnaaa/Tutorial-CI
/database/perpus_ci.sql
UTF-8
8,670
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 29 Des 2018 pada 10.23 -- Versi Server: 10.1.25-MariaDB -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
ea027aa53be768fa6dc1ac6087dd6fb398b9c0b8
SQL
liuliainio/liuli
/tykj-operation/tykj-operation/operation/scripts/sql/reviews.sql
UTF-8
569
2.625
3
[]
no_license
CREATE TABLE IF NOT EXISTS `appreview`( comment_id INT(11) NOT NULL AUTO_INCREMENT, app_id INT(11) NOT NULL, grade DECIMAL(25,5) NOT NULL, add_date DATETIME NULL, is_show INT(11) DEFAULT NULL, user_id INT(11) NOT NULL, agree_user_count INT(11) DEFAULT NULL, reject_user_count INT(11) DEFAULT NULL, ip VARCHAR(2...
true
02b5845b23394add6641d6b47b762f50c00382bb
SQL
lilianeascosta/ScriptsBancoI
/bd_laboratorio00.sql
UTF-8
1,394
3.46875
3
[]
no_license
--resolução do laboratorio 0 CREATE DATABASE bd_laboratorio00 CREATE TABLE TB_CLIENTE( cd_cliente INT NOT NULL, nm_cliente VARCHAR(50) NOT NULL, endereco VARCHAR(60) NOT NULL, telefone VARCHAR(10) NULL, rg_cliente VARCHAR(20) NOT NULL, dt_cadastro DATETIME NOT NULL ) INSERT INTO TB_CLIENTE...
true
572947e32fe5b4846025e360ad10c4310a95f864
SQL
ArturMarcinkowski/charity
/src/main/resources/data.sql
UTF-8
7,655
3.28125
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64) -- -- Host: localhost Database: schema5 -- ------------------------------------------------------ -- Server version 8.0.23 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!...
true
478106d25eaf2b3b735212deb12deb40a66ae42d
SQL
katarinaa94/isa2021-siit
/Vezbe06/server/spring-security-example/src/main/resources/data-postgres.sql
UTF-8
1,021
2.8125
3
[]
no_license
-- Lozinke su hesovane pomocu BCrypt algoritma https://www.dailycred.com/article/bcrypt-calculator -- Lozinka za oba user-a je 123 INSERT INTO USERS (username, password, first_name, last_name, email, enabled, last_password_reset_date) VALUES ('user', '$2a$04$Vbug2lwwJGrvUXTj6z7ff.97IzVBkrJ1XfApfGNl.Z695zqcnPYra', '...
true
3624e6ce847b6eebf38f3b569a0f6cf34a7f43b1
SQL
sapik022/utsnajib505
/dbmhs.sql
UTF-8
4,214
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 03 Des 2019 pada 15.14 -- Versi Server: 10.1.19-MariaDB -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT...
true
ad79ebc5307aa7543aa3a5c0f6862c5c786e544d
SQL
Jandres1420/MBDA
/Pico _Parcialfinal/Construccion/sql/poblando.sql
UTF-8
471
2.53125
3
[]
no_license
insert into OPINIONES VALUES(52540,TO_DATE('18/05/2019','DD/MM/YYYY'),'B','esta muy bien',1125684); insert into OPINIONES VALUES(52540,TO_DATE('18/05/2019','DD/MM/YYYY'),'M','falta mejorar',1425684); insert into OPINIONES VALUES(52540,TO_DATE('18/05/2019','DD/MM/YYYY'),'R','esta normal',1325684); --consulta SE...
true
a387f57f056fdc270b2772aa8f282a90e3141254
SQL
vinny13/RosettaCodeData
/Task/FizzBuzz/SQL/fizzbuzz-1.sql
UTF-8
1,035
3.234375
3
[]
no_license
DROP TABLE fizzbuzz; CREATE TABLE fizzbuzz(i int, fizz string, buzz string); INSERT INTO fizzbuzz VALUES(1,"",""); INSERT INTO fizzbuzz SELECT i + (SELECT max(i) FROM fizzbuzz), fizz, buzz FROM fizzbuzz; INSERT INTO fizzbuzz SELECT i + (SELECT max(i) FROM fizzbuzz), fizz, buzz FROM fizzbuzz; INSERT INTO fizzbuzz SELECT...
true
a33c9e94a33082d93ecab57a688d0bd2ae4bd388
SQL
CedricLahaye/JobBoard
/jobboard.sql
UTF-8
2,262
3.453125
3
[]
no_license
USE `jobboard`; DROP TABLE IF EXISTS `advertisements`; CREATE TABLE `advertisements` ( `id` int NOT NULL AUTO_INCREMENT, `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `content` text COLLATE utf8_unicode_ci NOT NULL, `short_description` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `company_id` int ...
true
57ef4a668aad9c74faf5e5382896c067edd7ace8
SQL
Ta-Thi-Thuy/CaseStudy_module2
/case_study.sql
UTF-8
11,753
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Dec 08, 2020 at 10:55 AM -- Server version: 8.0.22-0ubuntu0.20.04.3 -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_S...
true
27366fd93357a7704fd30ec16bf890052695ef3b
SQL
robertclemo/databases-1
/Indexes .sql
UTF-8
2,740
4.5
4
[]
no_license
-- Lesson 9: Indexes CREATE TABLE exam ( exam_id SMALLINT PRIMARY KEY AUTO_INCREMENT, exam_name VARCHAR(10) NOT NULL ) CREATE TABLE student ( student_id INT NOT NULL AUTO_INCREMENT, student_firstname VARCHAR(15) NOT NULL, student_lastname VARCHAR(15) NOT NULL, exam_id SMALLINT, CONSTRAINT PK_Student PRIMARY...
true
69c0100d42f68b6e8c175dfd477e119647126478
SQL
david-rodriguez-siller/database-exercises
/join_exercises.sql
UTF-8
9,120
4.5
4
[]
no_license
-- Join Example Databse -- 1: USE join_example_db; SELECT * FROM users; SELECT * FROM roles; -- 2: -- JOIN: SELECT * FROM users JOIN roles ON users.role_id = roles.id; -- LEFT JOIN: SELECT * FROM users LEFT JOIN roles ON users.role_id = roles.id; -- RIGHT JOIN: SELECT * FROM users RIGHT JOIN roles ON users.role...
true
0f9998d766114d13021bd6af550f34520362438b
SQL
Kim-deokhyeon/PHP-shopping-mall
/bookstore_db.sql
UTF-8
3,468
2.9375
3
[]
no_license
CREATE TABLE `ADMIN_tb` ( `adminId` varchar(20) NOT NULL, `adminPw` varchar(20) NOT NULL ); CREATE TABLE `MEMBER` ( `memberNo` int(4) NOT NULL, `memberName` varchar(20) NOT NULL, `memberNick` varchar(20) NOT NULL, `memberPw` varchar(20) NOT NULL, `memberBirth` varchar(8) NOT NULL, `memberTel` varcha...
true
55b0719330655570b7e1ec4383b1eb8f0a12efac
SQL
jameshbarton/multirocks
/admin/create_indexes.sql
UTF-8
428
3.09375
3
[]
no_license
use multi; # drop index idx_student_teacherEmail on student; create index idx_student_teacherEmail on student(teacherEmail); # drop index idx_drill_studentID on drill; create index idx_drill_studentID on drill(studentId); # drop index idx_problem_drillId on problem; create index idx_problem_drillId on problem(drillI...
true
47c3d210dc411576a7314cfc123d53a00b703ff4
SQL
GitHubQinDong/ksxt
/exam.sql
UTF-8
14,648
3.59375
4
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50027 Source Host : localhost:3306 Source Database : exam Target Server Type : MYSQL Target Server Version : 50027 File Encoding : 65001 Date: 2018-05-30 22:55:31 */ SET FOREIGN_KEY_CHE...
true
3c59c2bcd26da224e84cbf7a8478c173cd0711f5
SQL
miyako/4d-tips-northwind-traders
/northwindtraders.com.4dbase/SQL/Order Details/Table.sql
UTF-8
241
2.671875
3
[]
no_license
CREATE TABLE IF NOT EXISTS [Order Details] ( [OrderID] INT32 NOT NULL AUTO_INCREMENT, [ProductID] INT32 NOT NULL, [UnitPrice] REAL NOT NULL, [Quantity] SMALLINT NOT NULL, [Discount] REAL NOT NULL, PRIMARY KEY (OrderID,ProductID) );
true
34ae3201592683e1868f7bcd8f083df1a3a0a7be
SQL
MariaGolownia/project
/rental_bicycle_web/src/main/java/by/javatr/bicrent/sql/3_create_tables.sql
UTF-8
6,935
3.78125
4
[]
no_license
USE `rental_bicycle_web`; /* CREATE TABLE userinfo */ CREATE TABLE rental_bicycle_web.userinfo ( userInfo_id INT(11) UNSIGNED NOT NULL, userInfo_surname VARCHAR(255) NOT NULL, userInfo_name VARCHAR(255) NOT NULL, userInfo_secondName VARCHAR(50) DEFAULT NULL, userInfo_birthDate VARCHAR(50) NOT NULL, userIn...
true
2e1e7b50ae68b546c0df0803b5749bade755c184
SQL
alexperrotta/sql_exercises
/musicdb/questions.sql
UTF-8
1,285
4.1875
4
[]
no_license
-- 1. What are tracks for a given album? SELECT track.name FROM track INNER JOIN album ON track.album_id = album.id; -- 2. What are the albums produced by a given artist? SELECT album.name FROM album INNER JOIN artist ON album.artist_id = artist.id WHERE artist.id = 1; -- 3. What is the track with the longest dura...
true
97547178eab9d4e605a2808743a97ca5e543e499
SQL
arthurcvm/DesafioPHP
/desafio.sql
UTF-8
6,818
3.125
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 13.1 (Ubuntu 13.1-1.pgdg20.04+1) -- Dumped by pg_dump version 13.1 (Ubuntu 13.1-1.pgdg20.04+1) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings =...
true
c6488c08d2dd1c3e0ab9ce165b039c64c5466974
SQL
iokevin/SY-Tech
/sx/addfunction.inc
UTF-8
2,658
2.765625
3
[]
no_license
20140604 order表增加字段yinghuikuan `yinghuikuan` decimal(10,2) NOT NULL DEFAULT '0.00', admin/template/manage/order.html admin/module/manageMod.class.php 20140531 order表增加字段status,desc `status` tinyint(2) NOT NULL DEFAULT '1', `desc` varchar(255) DEFAULT NULL, 后台增加订单对账功能 admin/module/manageMod.class.php admin/templat...
true
c225125e6b2cd985b5ecaac5845fbe8a808d309b
SQL
alexthomas2020/Euro-Cup-Data-Analysis
/sql_q9_sol.sql
UTF-8
496
4.03125
4
[]
no_license
# 9. Write a SQL query to find the goalkeeper’s name and jersey number, playing for # Germany, who played in Germany’s group stage matches. select distinct P.player_name, -- P.team_id, -- P.posi_to_play, -- M.team_id, M.play_stage, P.jersey_no from euro_cup_2016.player_mast P, euro_cup_2016.match_details M where P....
true
5761f21c51ed7656cb4f619462d07550874a4a44
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day18/select2036.sql
UTF-8
267
2.953125
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='WeMo' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['2072','6219','2231','3222','4100_6','3065','2100_4','4206','4082','3100_10'])
true
54a85cb82b712ff8b6981f801e6f0a4085580f83
SQL
Weiller/cycle
/cycle/src/main/resources/db/migration/V03__criar_tabela_ciclo_e_relacionamento.sql
UTF-8
517
3.59375
4
[]
no_license
CREATE TABLE ciclo ( codigo BIGINT PRIMARY KEY, nome VARCHAR(50) NOT NULL, total_hora BIGINT NOT NULL, data_criacao DATE NOT NULL ); CREATE SEQUENCE sq_ciclo INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 1 CACHE 1; CREATE TABLE ciclo_materia ( codigo_ciclo BIGINT, ...
true
0bf11cfdb1092d2bb4b65da307d05e37620d0b19
SQL
thanhhau98/C1220G2_PhanThanhHau_Module3
/02_thiet_ke_va_tao_co_so_du_lieu/Bài tập/design_database.sql
UTF-8
2,480
3.40625
3
[]
no_license
create database design_database ; use design_database; create table customer( employeeNumber int not null, foreign key (employeeNumber) references employees(employeeNumber), customerNumber int(10) not null auto_increment primary key, customerName varchar(50) not null, contactLastName varchar(50) not null, co...
true
dd520458018cbf5cdbdee8ecd970b888f11b84a1
SQL
alebertozzigo/Requerimientos1
/php_login_database.sql
UTF-8
4,675
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 14-02-2019 a las 00:29:07 -- Versión del servidor: 10.1.37-MariaDB -- Versión de PHP: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
bee111a5373ceb71285bc464e6a73acadbc2018c
SQL
a5221985/PhaseZero_Scripts
/sql/create_index.sql
UTF-8
968
2.703125
3
[]
no_license
CREATE INDEX cat_parent_idx ON category (parent_id); CREATE INDEX cat_comp_idx ON category (comp_id); CREATE INDEX part_no_idx ON part (part_number); CREATE INDEX cat_path_idx ON category (path); CREATE INDEX disp_mdata_id_idx ON display_metadata (obj_id); CREATE INDEX disp_mdata_type_idx ON display_metadata (...
true
ffeee4b614462b5e809b57a8ca45007acc5a3e66
SQL
OscarMesa/AppIngEgr
/protected/data/ScriptDatamart/migracion_fac_ingresos_diarios.sql
UTF-8
1,901
3.8125
4
[]
no_license
DROP PROCEDURE IF EXISTS migracion_fac_ingresos_diarios; delimiter // CREATE PROCEDURE migracion_fac_ingresos_diarios() BEGIN DECLARE fecha DATE; SELECT MAX( t.fecha ) FROM DatamartIngresos.fac_ingresos_diarios ingre JOIN DatamartIngresos.dim_tiempo t ON (t.id_fecha = ingre.fecha_ingreso) INTO @fi; I...
true
12aa739f1b6271a5cca27f9cb4e14b485065fa8c
SQL
correnm/DataStax
/DataModel/1_urm_application_master/common_application_objects/Deprecated/hardware_stat_rollup.cql
UTF-8
679
2.921875
3
[]
no_license
CREATE TABLE IF NOT EXISTS hardware_stat_rollup ( org_id uuid, site_or_ou_name text, ip_subnet_or_building text, // 192.168.0.0, site/building internal_system_id text, // UUID computed to ensure uniqueness reporting_date date, // Date reported: Q1 would be yyyy/mar/31 reporting_l...
true
383088dad2145f8cc2ac847aeb114a894e5abcec
SQL
Gaukhar-ai/for_my_Thinkful_work
/SQL/SQL/Leon-pair.sql
UTF-8
1,249
4.0625
4
[]
no_license
select created_at from purchases; select created_at created_at INTERVAL '90 days' FROM purchases; select created_at, TO_CHAR(created_at, 'mm/dd/yyyy') as date_string from purchases; select created_at, DATE_TRUNK('hour', created_at) as hour from purchases; SELECT created_at, TO_CHAR(created_at, 'YYYY') as year, to_...
true
6e0623585d81a759620915543c08f8c8f6530946
SQL
sagreenksu/SQL-REST-Rant-SQL-Database
/rest-rant.sql
UTF-8
859
3.5625
4
[]
no_license
-- Table: public.places -- DROP TABLE public.places; CREATE TABLE public.places ( place_id serial NOT NULL, place_name character varying(255) NOT NULL, pic character varying, cuisines character varying NOT NULL, state character varying, founded smallint, CONSTRAINT place_pkey PRIMARY KEY (...
true
6433ff6765d339e4058647531dac2917308ba1e1
SQL
BulkSecurityGeneratorProject/PilPoil
/Documents/BDD/pg_exports/pilpoil_pg_export_jhi_user.sql
UTF-8
6,179
2.8125
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 9.4.5 -- Dumped by pg_dump version 9.5.2 -- Started on 2016-04-16 13:42:57 CEST SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_mess...
true
73719fa105a3b4fa00bf51933ccf012e5319da0e
SQL
sweety21-coder/8WeekSQLChallenge
/Case Study #2 Pizza Runner/Data cleaning.sql
UTF-8
2,574
3.78125
4
[]
no_license
--data cleaning and transformation --TABLE: customer_orders --Clean up exclusions and extras from customer_orders --Cleaning customer_orders --- 1. Identify records with null or 'null' values --- 2.updating null or 'null' values to '' --- 3.blanks '' are not null because it indicates the --customer asked...
true
ce76385a49d5aba18f6e239f3cbe3d8990bba079
SQL
PMikhail/SQL-Reports
/CYD Counts/tests.sql
UTF-8
3,292
3.375
3
[]
no_license
Select fccs.* from reporting.fact_case_child_status fccs where /*(((Trunc(FCCS.EFF_DT) <= To_Date('7/1/2000', 'mm/dd/yyyy')) And (Trunc(FCCS.EFF_DT) >= To_Date('7/1/2000', 'mm/dd/yyyy'))) Or ((Trunc(FCCS.EFF_DT) >= To_Date('7/1/2000', 'mm/dd/yyyy')) And (Trunc(FCCS.EFF_DT) <= To_Date('7/1/2015', 'mm/dd...
true
0d714009431f81d3d624149fc8e43ab83cf2ef63
SQL
Andre2706/inventario
/excel/user_details.sql
UTF-8
514
2.8125
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS `user_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, `mobile` bigint(10) NOT NULL, `country` varchar(50) NOT NULL, PRIMARY KEY (`id`) ); -- -- Dumping data for table `user_details` -- INSERT INTO `user_details` (`id`, `name`, `mobile`, `country`) VAL...
true
7e678beaeb11c591a30190a9c61feaa6ab9c3ad9
SQL
ArmandBiteau/secondsense
/exports/db/secondsense_v3.sql
UTF-8
9,084
3.515625
4
[ "MIT" ]
permissive
-- MySQL Script generated by MySQL Workbench -- lun. 22 févr. 2016 20:36:04 CET -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_M...
true
859f27ae1d496a56d46c0e2e102f5e621e04be61
SQL
Ahaad2021/adbanking3.24.0
/.svn/pristine/85/859f27ae1d496a56d46c0e2e102f5e621e04be61.svn-base
UTF-8
3,789
3.46875
3
[]
no_license
-- Script de mise à jour de la base de données de la version 2.4 à la version 2.6 -- pour mettre à jour menus et écrans DELETE FROM ecrans; DELETE FROM menus; DELETE FROM d_tableliste; DELETE FROM tableliste; --Regénérer les fonctions et les types DROP FUNCTION PreleveFraisTenueCpt(INTEGER, TEXT, INTEGER); DROP TYPE...
true
04c604943640e63b5326f4451dfc362321603794
SQL
JamesTharakan/cognitiveLearning
/01_Non_Java/PSQL/Delete.sql
UTF-8
216
2.984375
3
[]
no_license
SELECT count(Fname) from person WHERE gender ='Male' SELECT count(*) from person WHERE gender ='Male' --*(everything) returns the count of null also SELECT Fname, gender, email FROM person WHERE gender is NULL
true
b5c037959cc7d09fa3a11b028f0d5fd07e5c044b
SQL
diliproutkewill/QMS
/DB Scripts/BUYRATEDELETE.sql
UTF-8
1,050
3.328125
3
[]
no_license
-------------------------------------------------------- -- DDL for Procedure BUYRATEDELETE -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "BUYRATEDELETE" as begin DELETE FROM qms_Rec_con_Sellratesdtl qrd WHERE qrd.ai_flag='I' and (buyrateid,lane_no,versio...
true
095bcb8fa79de17e4c735b6f4dbc6898bf694f0e
SQL
jgarzonext/packages
/paquete body/PAC_MD_MNTPARAM.sql
WINDOWS-1252
51,928
3.109375
3
[]
no_license
-------------------------------------------------------- -- DDL for Package Body PAC_MD_MNTPARAM -------------------------------------------------------- CREATE OR REPLACE EDITIONABLE PACKAGE BODY "AXIS"."PAC_MD_MNTPARAM" AS /****************************************************************************** NOMBRE: ...
true
55dce71e71bc9d065d3d2000a947ad64da6d0fee
SQL
dygksqkr12/sql
/ClassTime/qwerty.sql
UTF-8
511
3
3
[]
no_license
show user; create table tb_abc ( id number ); --ORA-01031 : insuffucuent privileges --권한, 롤을 조회 select * from user_sys_privs; --권한 select * from user_role_privs; --롤 select * from role_sys_privs; --부여받은 롤에 포함된 권한 --kh계정이 소유한 tb_coffee테이블 조회 select * from kh.tb_coffee; --데이터추가 insert into kh.tb_coffee values ...
true
8185559029cfc957c189c9f6336e139b70fd30bc
SQL
BazRoe/Hello-World
/biglietteria_online.sql
UTF-8
6,443
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Creato il: Lug 06, 2017 alle 12:14 -- Versione del server: 10.1.16-MariaDB -- Versione PHP: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
true
8f44dd0450047d69dc154dd5d005b8ac60d5c475
SQL
mkapnick/nytimes
/svn_repository/76-Hulu-Update-Email-Template/upgrade.sql
UTF-8
311
2.515625
3
[]
no_license
UPDATE OFFER_CHAIN_NOTIFICATION_TYPE SET NOTIFICATION_TYPE_ID = ( SELECT NOTIFICATION_TYPE.ID FROM NOTIFICATION_TYPE WHERE VALUE = 'sartre-upsell-sub-activation-digital-access-code' ) WHERE OFFER_CHAIN_ID = 60015003 AND ACTION_ID = ( SELECT ID FROM ACTION WHERE NAME = 'GC_REDEEMER_ON_REDEEM' ); COMMIT;
true
5300a884a73f3670ef4e91df07be1398bf798081
SQL
coolma0516/leetcode
/src/com/mageshuo/leetcode/database/combile_two_tables.sql
UTF-8
730
3.5625
4
[]
no_license
create table Person( PersonId int primary key, FirstName varchar(20), LastName varchar(20) ); create table Address ( AddressId int primary key, PersonId int, City varchar(20)...
true
1020b7594448f791be0281ca16ecae994d87b531
SQL
hyooo1017/Review
/SQL/20190814_sql내장함수.sql
UHC
8,673
4.1875
4
[]
no_license
-- emp ̺ data ŭ select 24*60 from emp; -- dual ̺ : Ŭ ٷ ϴ ̺ select 24*60 from dual; desc dual; select * from dual; -- ¥ Լ sysdate select sysdate from dual; -- ϴ Լ abs select -10, abs(-10) from dual; -- Ҽ Ʒ Լ floor(Է° ۰ų ִ) select 34.5678, floor(34.5678) from dual; -- ݿøϴ Լ round ...
true
06857ce3af8b5cac3c56693bef78b02c9b8cd199
SQL
kunal017/ClassroomPopcorn
/Tables/mysql_mockpopcorn.sql
UTF-8
3,732
3.453125
3
[ "MIT" ]
permissive
create database Mock_Popcorn; use Mock_Popcorn; create table Movie ( MID varchar(10) not null , Title varchar(50) not null , Release_Year year not null, Imdb_rating float(1) not null, Synopsis varchar(500) not null, primary key (MID) ); create table Movie_Genres ( MID varchar(10) not null , G...
true
fc3d2fd8b32f7669e741a4bbd79bbd9c7d49c4d9
SQL
aguswmika/praktikumWebA
/modul9/praktikumweb_2020-05-03.sql
UTF-8
1,883
2.984375
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 5446 # # https://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.7.26) # Database: praktikumweb # Generation Time: 2020-05-03 12:16:53 +0000 # *****************************************...
true
45f2460e3ebce642170c4c53c75c10e83084d1b5
SQL
nigelbayliss/oracle-db-examples
/optimizer/column_groups/t2_2.sql
UTF-8
387
3.28125
3
[ "LicenseRef-scancode-warranty-disclaimer", "UPL-1.0", "Apache-2.0" ]
permissive
-- -- The estimated nnumber of rows is 100 - which is wrong -- It should be 1000 -- spool t2_2 set echo on select /* STS MY_TEST_QUERY 1 */ sum(b.n0),count(*) from tab_corr1 a, tab_corr2 b where a.n1 = 1 and a.n2 = 1 and a.n1 = b.n1 and a.n2 = b.n2; @@plan select /* STS MY_TEST_QUERY 2 */ sum(b.n0),count(*) f...
true
d0eed626bf22aa0226d3363e2b609ae14646fc8d
SQL
mlewandowskiACM/dbt_salesforce_formula_utils
/macros/sfdc_formula_refactor.sql
UTF-8
2,607
3.515625
4
[ "Apache-2.0" ]
permissive
{%- macro sfdc_formula_refactor(join_to_table, source_name = 'salesforce', added_inclusion_fields=none) -%} --Generate the key value pair from the formula field table with the below macro. {%- set key_val = salesforce_formula_utils.sfdc_get_formula_column_values(source(source_name, 'fivetran_formula'), 'field'...
true
eff73f608b537451cc27749cf29efc8f7796e6ae
SQL
donejeh/PhpOOPCRUD
/employee.sql
UTF-8
4,663
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 05, 2016 at 01:50 PM -- Server version: 10.1.9-MariaDB -- PHP Version: 7.0.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
true
cf0f647308a3def2f0e759d19023b71f3a11fc3f
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day25/select0750.sql
UTF-8
505
3.625
4
[]
no_license
SELECT obs.sensor_id, avg(counts) FROM (SELECT sensor_id, date_trunc('day', timestamp), count(*) as counts FROM ThermometerObservation WHERE timestamp>'2017-11-24T07:50:00Z' AND timestamp<'2017-11-25T07:50:00Z' AND SENSOR_ID = ANY(array['4182532a_82b9_403b_b03a_29f02542d925','e9171b0f_e854_4f57_b92b_43c9458f60...
true
c862b78d832aa52b5f88b164d4fc2e4367b28293
SQL
GoncaloCaldeirinha/Distributed_Parallel_Systems
/src/main/docker/model/sql/database.sql
UTF-8
8,198
3.078125
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 13.1 -- Dumped by pg_dump version 13.1 -- Started on 2021-01-16 14:48:08 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalo...
true
071ff66aa79096609b9e1f9d2c6c8da6881ff405
SQL
rfranco30/tbnp-flyway
/src/main/resources/db/migration/V0_0_2__function_proc_movimentos.sql
UTF-8
654
3.390625
3
[]
no_license
-- FUNCTION: select * from testebnp.proc_movimentos() -- DROP FUNCTION testebnp.proc_movimentos(); CREATE OR REPLACE FUNCTION testebnp.proc_movimentos() RETURNS TABLE(dat_mes integer, dat_ano integer, cod_produto character(4), des_produto character varying(30),num_lancamento bigint,des_descricao character varying...
true