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
fc07d9f8f097f4d41df2c48344d37c719b8bede8
SQL
radtek/abs3
/sql/mmfo/bars/Package/deal_utl.sql
WINDOWS-1251
74,403
2.6875
3
[]
no_license
create or replace package deal_utl is -- Author : Artem Yurchenko -- Date : 2015-04-20 -- Purpose : , OBJ_TYPE_DEAL constant varchar2(30 char) := 'DEAL'; ATTR_CODE_DEAL_NUMBER constant varchar2(30 char) := 'DEAL_NUMBER'; ATTR_CODE_CUSTOMER_ID...
true
614d3e99bab5afde1c37e4a349232711588624d1
SQL
GothNoire/NLMK-GROUP
/PACKAGE BODY.sql
UTF-8
1,443
3.6875
4
[]
no_license
CREATE OR REPLACE PACKAGE BODY employ_dep_post IS PROCEDURE inc_salary IS percents NUMBER (8,4) := 0.05; sal NUMBER (9,2) := 15000.00; BEGIN UPDATE emplyees SET salary = salary + salary * percents where salary < sal; percents := 0.03; UPDATE emplyees SET salary = salary + salary * percents ...
true
28d78d01c9ad72b5393e31fa9de3eea4c57b5328
SQL
steponas/auto-pi
/src/server/data/db.sql
UTF-8
969
3.75
4
[]
no_license
-- Create a database first. Then, execute following commands to create the schema: CREATE TABLE IF NOT EXISTS `sensor_data` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `date` datetime NOT NULL COMMENT 'UTC', `temperature` decimal(3,1) NOT NULL, `humidity` tinyint(3) unsigned NOT NULL, PRIMARY KEY (`id`)...
true
dc005de8d5a7e19bc0fdb053dd8b34bad19394b9
SQL
DINHC/sql-challenge
/Query.sql
UTF-8
1,654
4.03125
4
[]
no_license
--1 SELECT emp.emp_no, emp.emp_lastname, emp.emp_firstname, emp.emp_sex, salaries.emp_salary FROM emp INNER JOIN salaries ON salaries.emp_no = emp.emp_no; --2 SELECT emp.emp_firstname, emp.emp_lastname, emp.emp_hiredate FROM emp WHERE emp_hiredate LIKE '%1986'; --3 SELECT dept_managers.dept_no, depts.dept_name, dept...
true
ec04ca538d07f06b55f200746f4c936f178f9c52
SQL
domzawrotny/obrona_2019
/db/obrona_2019_test.sql
UTF-8
10,254
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Czas generowania: 25 Maj 2019, 12:57 -- Wersja serwera: 10.1.40-MariaDB -- Wersja PHP: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
ca970cf5b9bbeb81a06433e025f943a1bbdd3cdf
SQL
leocairos/api-cq
/sql/vw_samples_methods.sql
UTF-8
1,106
3.640625
4
[]
no_license
-- public.vw_samples_methods source CREATE OR REPLACE VIEW public.vw_samples_methods AS SELECT sm.id, sm.sample_id, sm.method_id, m.identification AS method, m.method_type_id, mt.identification AS method_type, sm.service_area_id, sa.identification AS service_area, sm.method_status_id, ...
true
01d1ff3e879f5305692bfba07b027de1f4d62f45
SQL
dsciencebk/netcrackerSQL
/SQLGroupByAndSubqueries/NW-3-8.sql
UTF-8
374
3.890625
4
[]
no_license
Выведите имена (companyname) и адреса (address) заказчиков (customers), не сделавших ни одного заказа (orders) SELECT co.companyname, co.address FROM customers co WHERE co.customerid IN(SELECT c.customerid FROM customers c,orders o WHERE c.customerid=o.customerid(+) GROUP BY c.customerid HAVING COUNT(o.orderid)=0)
true
25679fb700260b6229e60a89d88caccebc62a4f5
SQL
LahiruPrasad12/BUS-TICKET-OOP-PROJECT
/TicketDB/bus_details_owner_details.sql
UTF-8
2,813
3.09375
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.21, for Win64 (x86_64) -- -- Host: localhost Database: bus_details -- ------------------------------------------------------ -- Server version 8.0.21 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;...
true
5d1ccc26898e553a2afc7ea96a1a5b6b36520e53
SQL
gangs4/PublicOpinionAnalysis
/sql/poa.sql
UTF-8
7,905
2.984375
3
[ "MIT" ]
permissive
-- MySQL dump 10.13 Distrib 5.5.49, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: publicopinion -- ------------------------------------------------------ -- Server version 5.5.49-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESUL...
true
95f953d7356c4cb07a1570c68c987efbab63440c
SQL
EssienGe/testmoviesite
/moviesite.sql
UTF-8
3,732
2.796875
3
[]
no_license
drop DATABASE if exists moviesite; create DATABASE moviesite; use moviesite; create Table movies( movieid int primary key auto_increment not null, moviename varchar(255) not null, movieloc varchar(255) not null, moviepic varchar(255) not null, moviedescription varchar(255) not null, movierate int not null, moviecomme...
true
4f53e907964078550c9db19c14ebcdee0682b9a2
SQL
jeskiZhao/ds_wenda
/ER/dswenda.sql
UTF-8
6,487
3.46875
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- 11/12/15 15:54:46 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITION...
true
e03b273d2ad37ca440308f33be743173a74b3ff2
SQL
mdesanty/csci343-nodejs-public
/ClassExercises/CountVisits/createDB.sql
UTF-8
249
2.78125
3
[]
no_license
DROP DATABASE IF EXISTS VISITSDB; CREATE DATABASE VISITSDB; use VISITSDB; CREATE TABLE VISIT_COUNT ( VCOUNT_ID int NOT NULL AUTO_INCREMENT, VCOUNT int NOT NULL, PRIMARY KEY (VCOUNT_ID) ); INSERT INTO VISIT_COUNT (VCOUNT) VALUES (0);
true
bc7c38bab5b6ba386046864f42bf7ff158c780e9
SQL
Rukhuman/Games_shop
/database/User/REF_CONSTRAINTS/GAME_USER.sql
UTF-8
314
2.765625
3
[]
no_license
-------------------------------------------------------- -- Ref Constraints for Table GAME_USER -------------------------------------------------------- ALTER TABLE "SYSTEM"."GAME_USER" ADD CONSTRAINT "GAME_USER_FK1" FOREIGN KEY ("CARD_NUMBER") REFERENCES "SYSTEM"."GAME_CREDITCARD" ("CARD_NUMBER") ENABLE;
true
4735f7f26ff0fe28aeecfe045140d3e5df50f0f5
SQL
kysley/walljoy-server
/prisma/migrations/20210625030119_h/migration.sql
UTF-8
602
3.65625
4
[ "MIT" ]
permissive
-- CreateTable CREATE TABLE "_CollectionToWallpaper" ( "A" INTEGER NOT NULL, "B" INTEGER NOT NULL ); -- CreateIndex CREATE UNIQUE INDEX "_CollectionToWallpaper_AB_unique" ON "_CollectionToWallpaper"("A", "B"); -- CreateIndex CREATE INDEX "_CollectionToWallpaper_B_index" ON "_CollectionToWallpaper"("B"); -- A...
true
95bbf8df6bc2c02af5922497d6c7945500c4fdf2
SQL
khu07c8/gcit-library
/GCIT/SQL_SCRIPTS/edit_branch_name.sql
UTF-8
235
2.8125
3
[]
no_license
DELIMITER $$ CREATE PROCEDURE edit_branch_name(IN branch_id int, IN new_name VARCHAR(75)) BEGIN UPDATE tbl_library_branch SET tbl_library_branch.branchName = new_name WHERE tbl_library_branch.branchId = branch_id; END$$ DELIMITER $$
true
167332e4157eb7730bf05d964d5ef28d5615c857
SQL
idcodeoverflow/TransportesDGV
/Queries/query reporte inventarios almacen taller.sql
UTF-8
1,362
3.453125
3
[]
no_license
SELECT clave_refaccion, nombre, punto_reorden, maximo, minimo, status, (SELECT nombre FROM familia_refaccion WHERE familia_refaccion.id_familia_refaccion = refaccion.id_familia_refaccion) AS familia, (SELECT nombre FROM grupo_refaccion WHERE grupo_refaccion.id_grupo_refaccion = (SELECT id_grupo_refaccion FROM familia...
true
9902ed7209f2d5c251d8d40955f5c2bd41b68a45
SQL
diespeso/inventco
/repo_imgs/inventco_db_1.sql
UTF-8
3,974
3.390625
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Fri Apr 23 01:58:11 2021 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ON...
true
fc9b43470ca0bf7438909b934a42c6d8f0146753
SQL
h-r-a-c-h-y-a/core
/src/main/resources/db/changelog/v1/5_Create_table_cards.sql
UTF-8
498
3.296875
3
[]
no_license
create table cards( id serial primary key not null , en_word_id bigint not null , ru_word_id bigint not null , rating bigint , FOREIGN KEY (en_word_id) REFERENCES en_words(id) on DELETE NO ACTION on UPDATE NO ...
true
0f064929957a55f6f89739324192cccdafd51b80
SQL
skskrlwk/Lim
/day32/hr에서 작업한거.sql
UHC
14,782
4.25
4
[]
no_license
---- **** Multi Table JOIN( ̺ ) *** ---- --> 3 ̻ ̺ ִ ̴. -------------------------------------------------------------------------- μȣ μ μּ ȣ ⺻޿ --------------------------------------------------------------------------- departments dep locations emp emp em...
true
e3ea0708589e8533f1e81b2bdfcb3578605651de
SQL
SwagBiswal/FST-M1
/SQL/Activities/Activity3.sql
UTF-8
312
3.28125
3
[]
no_license
-- Show data from the salesman_id and city columns SELECT salesman_id, salesman_city FROM salesman; -- Show data of salesman from Paris SELECT * FROM salesman WHERE salesman_city='Paris'; -- Show salesman_id and commission of Paul Adam SELECT salesman_id, commission FROM salesman WHERE salesman_name='Paul Adam';
true
021559ffc5b6bd19f2df218cee0554e02f465a72
SQL
alldatacenter/alldata
/dts/airbyte/airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/redshift/test_nested_streams/first_output/airbyte_incremental/test_normalization/nested_stream_with_complex_columns_resulting_into_long_names_partition_double_array_data.sql
UTF-8
3,674
3.265625
3
[ "MIT", "Elastic-2.0", "Apache-2.0", "BSD-3-Clause" ]
permissive
create table "integrationtests".test_normalization_xjvlg."nested_stream_with_complex_columns_resulting_into_long_names_partition_double_array_data" compound sortkey(_airbyte_emitted_at) as ( with __dbt__cte__nested_stream_with_complex_columns_resulting_into_long_names_partiti...
true
2ab1aec738ed25f4527e3196afd6785ef90b9acb
SQL
Good725/ideabubble-lamp
/plugins/products/model/model-20160418120300.sql
UTF-8
2,055
3.1875
3
[]
no_license
/* ts:2016-04-18 12:03:00 */ CREATE TABLE `plugin_products_option_groups` ( `id` INT AUTO_INCREMENT PRIMARY KEY, `group_label` VARCHAR(100), `group` VARCHAR(100), `deleted` TINYINT(1) DEFAULT 0 ) ENGINE=InnoDB CHARSET=UTF8; INSERT INTO `plugin_products_option_groups` (`group`, `group_label`) (SELECT DISTIN...
true
90b4101966918837bf29cc25fa90a777ee14aae0
SQL
Ankitashah212/snack
/db/schema.sql
UTF-8
218
3.234375
3
[]
no_license
### Schema CREATE DATABASE snack_db; USE snack_db; CREATE TABLE snacks ( id int NOT NULL AUTO_INCREMENT, name varchar(255) NOT NULL, quantity tinyint DEFAULT 1, eaten BOOLEAN DEFAULT false, PRIMARY KEY (id) );
true
7a8febf37ef2392f80d4fac3fb262e7ad03f4e9a
SQL
javaxiaomangren/zfxy
/resource/zfxy.sql
UTF-8
1,165
3.09375
3
[]
no_license
create database zfxy ; use zfxy ; CREATE TABLE userinfo ( id bigint(20) NOT NULL auto_increment, name varchar(32) NOT NULL, sex varchar(10) default NULL, password varchar(32) default NULL, category varchar(100) NOT NULL, position varchar(100) default NULL, detail text, email varchar(32) defau...
true
8e8f34949d3c8ea47b3df80722ecafc84db3ed30
SQL
TGAC/grassroots-field-trial-database-schema
/fieldtrial_schema_2018-08-01.sql
UTF-8
3,880
3.0625
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: n78048 (MySQL 5.5.28) # Database: bianx_fieldtrials # Generation Time: 2018-08-01 16:10:24 +0000 # ****************************************...
true
ec9e4751fbfa744f4bb8ca52032a09084a8f4cfd
SQL
wuli133144/imsql
/t_consult_x.sql
UTF-8
3,013
3.359375
3
[]
no_license
CREATE TABLE `t_consult_0` ( `consult_id` BIGINT(20) UNSIGNED NOT NULL COMMENT '咨询ID', `teacher_id` BIGINT(20) UNSIGNED NOT NULL COMMENT '老师ID //根据老师id分表//', `student_id` BIGINT(20) UNSIGNED NOT NULL COMMENT '学生ID', `order_id` BIGINT(20) UNSIGNED NOT NULL COMMENT '订单ID', `create_type` TINYINT(4) UNSIGNED NOT NUL...
true
1c0d8baea2baf4264f923f14bc9e2ba61214a803
SQL
saikos/sql-examples
/messenger/database.sql
UTF-8
3,813
3.328125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `messenger` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `messenger`; -- MySQL dump 10.13 Distrib 5.6.23, for Win64 (x86_64) -- -- Host: localhost Database: messenger -- ------------------------------------------------------ -- Server version 5.6.24-log /*!40101 SET @OLD_CHARACTER_SET...
true
03d81331cacb565d62b48606b66abd213a591d46
SQL
rocketeerbkw/DNA
/Production/Source/Databases/The Guide/functions/udf_DecryptEmailAddress.sql
UTF-8
222
2.640625
3
[]
no_license
CREATE FUNCTION udf_decryptemailaddress ( @encemailaddress varbinary(300), @userid int ) RETURNS varchar(255) AS BEGIN RETURN cast(DecryptByKey(@encemailaddress,1,CONVERT(sysname, @userid)) AS varchar(255)) END
true
18d157c2ef0e9f961f66b75bfebff1b4fbd89b71
SQL
brannondorsey/spectrum-wrangler
/additional-indexes.sql
UTF-8
1,619
3.234375
3
[]
no_license
-- spectrum-wrangler/load.py creates a geo index on lat & long, but these are -- some additional indexes that may be useful if you intend to query the -- database in non-geographic ways. -- index on callsign CREATE INDEX idx_callsign ON fcclicenses (callsign); -- index on license status (e.g. Expired, Terminated, ...
true
a0a90f64e4b0788295264a14468e10c51841f2f3
SQL
danielbeltre19/final_wed
/estudiantes.sql
UTF-8
2,963
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 02-08-2020 a las 23:02:44 -- Versión del servidor: 10.4.13-MariaDB -- Versión de PHP: 7.2.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
b2607656c529a0ae08bd1f31da6bdaf3f01ef6ab
SQL
zhuliminhuaihuai/graduateproject
/超市管理系统/supermarket.sql
UTF-8
5,997
3.3125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : 本地 Source Server Type : MySQL Source Server Version : 80012 Source Host : 127.0.0.1:3306 Source Schema : supermarket Target Server Type : MySQL Target Server Version : 80012 File Encoding : 65001 Date: 18/02/2020 16:02...
true
fa61f6cb9def7f28724a2fc5176dc5bbd2d8d6f7
SQL
Arthur-Zanca/ETEC
/TLBD 2/locadora.sql
UTF-8
1,001
3.234375
3
[]
no_license
create database locadora; use locadora; create table cliente( id_cliente int, nome_cliente varchar(50), rg char(10), data_nasc date, endereco varchar(75), telefone char(8), celular char(9), primary key(id_cliente) ); create table dvd( id_dvd int, nome_dvd varchar(300), genero varchar(30), estudio varchar(50...
true
0d5f3077167d98ae33bf33bf5d129d40c59e527f
SQL
gideonkosgei/smarthr
/smarthr.sql
UTF-8
12,130
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 05, 2014 at 10:02 AM -- Server version: 5.6.14 -- PHP Version: 5.5.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
b78023bc514fdb53b62f37c1c9e4cb38ad49a90d
SQL
eurospent/eurospent
/1_population/luxembourg/query.sql
UTF-8
1,051
3.8125
4
[ "MIT" ]
permissive
WITH base AS ( SELECT * FROM "1_population" AS p LEFT JOIN "1_territory" AS n ON p.lau = n."LAU2_NAT_CODE" WHERE p.shape_lau LIKE 'LU%' ), vw AS ( SELECT 'Luxembourg' AS nuts1_name, 'LU0' AS nuts1_code, 'Luxembourg' AS nuts2_name, 'LU00' AS nuts2_code, 'Luxembourg' AS nuts3_name, 'LU000' AS nuts3_c...
true
a338693e65bfd60c56e3546f7d9c49a99fd0dbe1
SQL
brnaldomesi/AdSellPortal
/database/upgrade/from-50-to-51/update.sql
UTF-8
1,663
2.796875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.10 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: May 22, 2018 at 11:08 AM -- Server version: 5.5.42 -- PHP Version: 5.6.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
6db45c8585c905c91d570c41158f14ee55bae2b3
SQL
chilledboy/DBS201
/lab_work/SOLUTION/Lab05_ClintsSolutions.sql
UTF-8
3,783
3.84375
4
[]
no_license
/* Name: Clint MacDonald ID#: 900###### Date: Sept 25, 2019 Purpose: DBS201 Lab 5 - FALL 2019 SOLUTIONS */ -- ----------------------------------------------------------------------------------------------------------------------- -- Q1 Create table as shown on lab handout CREATE TABLE L5_movies ( Id int Primary ...
true
ce6e1c8a3bd3d08e7603d36f93c0fa3cc607add8
SQL
NeroJz/57-SQL-Practice-Problems
/050.sql
UTF-8
5,200
4.46875
4
[]
no_license
# Customer grouping with percentage # Step 1 - Get all the customer group # This is identical with the solution of 049.sql SELECT `C`.`CustomerID`, `C`.`CompanyName`, FORMAT(IFNULL(SUM((`OD`.`Quantity` * `OD`.`UnitPrice`)),0),2) AS `Amount`, CASE WHEN SUM((`OD`.`Quantity` * `OD`.`UnitPric...
true
d435d1cd93bbc593dd4a7b9dcbef857c43bb6eb0
SQL
andrewjford/oozetracker2_express
/src/db/user_connect.sql
UTF-8
542
3.375
3
[ "MIT" ]
permissive
ALTER TABLE categories ADD COLUMN account INTEGER REFERENCES users(id); ALTER TABLE users RENAME TO accounts; -- on line below, update reference to proper account id UPDATE categories SET account = 8; ALTER TABLE categories ALTER COLUMN account SET NOT NULL; ALTER TABLE expenses ADD COLUMN account INTEGER REFERENCES...
true
41688ae83cb75191fb3ef4c1165e9dcf5f2e2ec2
SQL
molokovskikh/af_common
/migrations/52.sql
UTF-8
201
3.046875
3
[]
no_license
alter table orders.orderslist drop foreign key O_OL_CodeFirmCr, add constraint FR_OrderList_ProducerId foreign key (CodeFirmCr) references Catalogs.Producers(Id) ON DELETE SET NULL ON UPDATE CASCADE;
true
da81fea217514af13013d8891b04d080cdbb69bf
SQL
Hongic/ERP
/Public/Data/tb_rule.sql
UTF-8
12,412
2.953125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : Hong Source Server Version : 50538 Source Host : localhost:3306 Source Database : db_erp Target Server Type : MYSQL Target Server Version : 50538 File Encoding : 65001 Date: 2014-12-25 15:23:21 */ SET FOREIGN_KEY_CHECKS=0; -- -------...
true
7ee0ab5f09f3b860d97e4687d859a9de86ee40a9
SQL
maquiavelo79/bodyflex
/dataBase/[SP]/SP_CP_ADM_MOD_EST_POS_APR_APR.sql
UTF-8
913
2.8125
3
[]
no_license
-- CALL SP_CP_ADM_MOD_EST_POS_APR_APR(12, '0B82UUH1gaEMAZE5KcXRzX09JQjA', @codErr); -- SELECT @codErr; DROP PROCEDURE IF EXISTS bodyflex.SP_CP_ADM_MOD_EST_POS_APR_APR; CREATE PROCEDURE bodyflex.`SP_CP_ADM_MOD_EST_POS_APR_APR`( IN id VARCHAR(20) ...
true
84767165cb812d5925bc3be438287269f77cf9ea
SQL
OHDSI/sandbox
/CDMv5/event_combined_ddl.sql
UTF-8
2,269
2.765625
3
[]
no_license
CREATE table event_combined (event_id INTEGER NOT NULL ,person_id INTEGER NOT NULL ,event_concept_id INTEGER NOT NULL ,event_start_date DATE NOT NULL ,event_end_date DATE NULL ,event_start_datetime DATETIME NULL ,event_end_datetime DATETIME NULL ,event_source_value VARCHAR(50) NULL ,event_source_concept_id IN...
true
e4bcd32f36153d4412214f4e3fd2fe4bedd9d1a0
SQL
endtb/all-oral-short-regimen
/forms/package1/baseline-template.sql
UTF-8
9,562
3.140625
3
[]
no_license
-- INOUT new_concept_id INT, INOUT concept_name_short_id INT, INOUT concept_name_full_id INT, name_of_concept VARCHAR(255), -- concept_short_name VARCHAR(255), data_type_name VARCHAR(255), class_name VARCHAR(255), is_set BOOLEAN -- All Oral STR, Baseline Assessment call add_concept(@concept_id, @concept_name_short_id,...
true
9dd82b93bc27193c8b376696ad6624f5b937a45b
SQL
mebelousov/antlr_psql
/src/test/resources/sql/explain/cb6cda09.sql
UTF-8
163
2.84375
3
[ "MIT" ]
permissive
-- file:tidscan.sql ln:31 expect:true EXPLAIN (COSTS OFF) SELECT ctid, * FROM tidscan WHERE (id = 3 AND ctid IN ('(0,2)', '(0,3)')) OR (ctid = '(0,1)' AND id = 1)
true
9428e0b115a1ddb8b0f0f24d464279c0cbe417cb
SQL
cgonzalezc27/daw_a01209969
/BD/Lab 18.sql
ISO-8859-1
6,068
4
4
[]
no_license
CREATE VIEW Entregas_total2 AS (SELECT E.Clave, E.RFC, E.Numero, E.Fecha, E.Cantidad, M.Descripcion, M.Costo, M.PorcentajeImpuesto, (M.Costo*E.Cantidad)*(1+M.PorcentajeImpuesto/100) as TOTAL FROM Entregan E, Materiales M WHERE M.Clave = E.Clave); -- La suma de las cantidades e importe total de todas las ent...
true
2bb730b5b8445db64094bedeb52810c9b2442dd5
SQL
soarescbm/e-cidade
/e-cidade/db/v2.3.19/pre_v2.3.19.sql
UTF-8
1,572
3.359375
3
[]
no_license
/** * -------------------------------------------------------------------------------------------------------------------- * TIME C INICIO * -------------------------------------------------------------------------------------------------------------------- */ CREATE SEQUENCE situacaoeducacao_ed109_sequencial_seq I...
true
672ec592b1908ed868f0bc47f55139dc00f8b6ce
SQL
AndyRazafy/diagonsis
/diagnosis_postgre.sql
ISO-8859-1
5,210
3.640625
4
[]
no_license
/*==============================================================*/ /* Nom de SGBD : PostgreSQL 8 */ /* Date de cration : 02/03/2017 08:21:05 */ /*==============================================================*/ /*==================================================...
true
ddf3a5380ffc28c6b338e043a9ec8c19f1f19a48
SQL
redsnapper2006/leetcode-cn
/F/1517-find-users-with-valid-e-mails/main.sql
UTF-8
111
2.625
3
[]
no_license
select user_id, name, mail from Users where mail REGEXP '^[A-Za-z][A-Za-z0-9_\.-]*+@leetcode[.]com$'
true
206b717c5f4eea6ff989ca26081f3d0639a816a7
SQL
jespinozallanos/Take-Homes
/Thistle_Take-Home.sql
UTF-8
3,975
4.09375
4
[]
no_license
--::EDA:: --thistle_web.SUBSCRIPTION_SUBSCRIPTION --14,000 records --date_initialized start: 2017-01-01 00:35:30:239792+00 --date_initialized end: 2017-03-31 23:48:10.402488+00 --based on these dates, total records span 3 whole months --DATA INTEGRITY ISSUES - MANY NULL'S --cancellation id total: 2712 (non-nul...
true
276e03ff1b52d4a9d9c31613d15b44d5cfddd562
SQL
santiagosalas1221/viajesTerrestres
/model/DataBase/DB_DB_VIAJES.sql
UTF-8
969
3.75
4
[]
no_license
-- creacion BD y Usuario CREATE DATABASE db_viajes; CREATE USER 'bielorrusia'@'localhost' IDENTIFIED BY 'bielorrusia'; -- Permisos para el usuario creado GRANT ALL ON db_viajes.* TO 'bielorrusia'@'localhost'; USE db_viajes; CREATE TABLE personas ( nro_documento INT NOT NULL, nombre_pasajero VARCHAR(150) NOT N...
true
5feca83667dba81f7248f36fdeaa6870a78e90ed
SQL
avneshjadav0342/IT202
/Ler/sql/01_CREATE_TABLE_USERS.sql
UTF-8
451
3.0625
3
[]
no_license
CREATE TABLE IF NOT EXISTS `StoryUsers` ( `id` INT auto_increment NOT NULL , `email` VARCHAR(100) NOT NULL UNIQUE , `username` VARCHAR(30) NOT NULL UNIQUE , `password` VARCHAR(60) NOT NULL , `created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , `modified` TIMESTAMP NO...
true
23921021a1fd184d9557b47fbe4f48c1a7dd9d6d
SQL
Shafi-mahmood/Webtech-18-36222-1
/Lab Task 5/student.sql
UTF-8
2,337
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 11, 2021 at 07:35 PM -- Server version: 10.4.19-MariaDB -- PHP Version: 8.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
c7efef8a437267a9f0ffcb7a00f7bc26abcbf6d6
SQL
gasusin/agencia_turismo
/agencia_viagem.sql
UTF-8
6,551
3.21875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 04-Jun-2019 às 18:41 -- Versão do servidor: 10.1.39-MariaDB -- versão do PHP: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
e374096a42ebd6add7024a710071d17c01bd397a
SQL
jam1987/databases
/vista1.sql
UTF-8
137
2.6875
3
[]
no_license
DROP VIEW INFOPELI; CREATE VIEW INFOPELI AS ( SELECT IDPELICULA, MAX(SUM(MONTO_RECABADO)) MONTOTOTAL FROM FUNCION GROUP BY IDPELICULA);
true
561d9e45b779cdc7c9afd45c52ad4008cc951803
SQL
vassildinev/Databases
/07.IntroToSQLHomework/17.EmployeesAddresses.sql
UTF-8
132
2.75
3
[ "MIT" ]
permissive
use TelerikAcademy; select FirstName, LastName, a.AddressText from Employees e inner join Addresses a on a.AddressID = e.AddressID;
true
88f5a9c769e7d1c18abfc44903e5767485cbfc6c
SQL
heritage5665/bsf
/bsf.sql
UTF-8
2,792
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 30, 2019 at 02:47 PM -- Server version: 5.7.17 -- PHP Version: 7.1.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTE...
true
b68cb0b0c2a8cbd8e92a6515f0455950f1510028
SQL
green-fox-academy/vulpes-tribes-backend
/src/main/resources/db/migration/V3__test_init.sql
UTF-8
146
2.59375
3
[]
no_license
ALTER TABLE KINGDOMS ADD FOREIGN KEY (tribeUser_id) REFERENCES USERS(id); ALTER TABLE USERS ADD FOREIGN KEY (kingdom_id) REFERENCES KINGDOMS(id);
true
6ded7c4b948dacbac30b109df76bedf42b009e23
SQL
kilbiller/reactapp
/db.sql
UTF-8
4,962
3.5625
4
[]
no_license
-- -------------------------------------------------------- -- Hôte : 127.0.0.1 -- Version du serveur: 5.7.10-log - MySQL Community Server (GPL) -- SE du serveur: Win64 -- HeidiSQL Version: 9.3.0.4984 -- ---------------------------------------------------...
true
1ce996eed1c56e89b4b2222178dc6dc2a0629e81
SQL
awasall/PrototypeGtransfert
/WARIJEE.sql
UTF-8
4,647
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb5ubuntu0.5 -- https://www.phpmyadmin.net/ -- -- Client : localhost:3306 -- Généré le : Mar 16 Mars 2021 à 20:45 -- Version du serveur : 5.7.33-0ubuntu0.18.04.1 -- Version de PHP : 7.3.17-1+ubuntu18.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone =...
true
234bf0f41f4dabaf4d6f615d3b010464f57cfb5b
SQL
VitaliyTsekhmeistruk/Tasks-for-SHPP
/ShppQACourse/HW_7_Postman+SQL/HW_7 MY SQL.sql
UTF-8
244
3.21875
3
[]
no_license
show databases; use students; show tables; select * from hw; select * from stud; select hw.num, stud.weeks, stud.id from hw join stud on hw.num = stud.id; select hw.id, stud.weeks, stud.id, stud.name from hw right join stud on hw.num = stud.id;
true
2625b4ad8dbb9a2c64e7186eadb06926ea6b9173
SQL
emmanueletti/bootcampx
/4_queries/4_average-assistance-request-time.sql
UTF-8
242
3.046875
3
[]
no_license
-- Get the average time of an assistance request. -- Select just a single row here and name it average_assistance_request_duration SELECT AVG((completed_at - started_at)) AS average_assistance_request_duration FROM assistance_requests;
true
04c40e6a86a50d781fae7dad419940b34148932a
SQL
erjan/coding_exercises
/stratascratch/medium/general_practice/The Best Artist.sql
UTF-8
353
3.703125
4
[ "Apache-2.0" ]
permissive
Find the number of times an artist has been on the billboard top 100 in the past 20 years. Output the result alongside the artist's name and order records based on the founded count in descending order. select artist , count(*) as x from billboard_top_100_year_end where date_part('year', CURRENT_DATE) -year <= 20 ...
true
25261bb23dd927ccd4893c27503c004a3cbe6376
SQL
teonas514/pog-fish
/assets/seed.sql
UTF-8
1,022
2.6875
3
[]
no_license
insert into roles (name, rank) values ('user', 0), ('admin', 20), ('mod', 10); insert into tags (name, description) values ('spooky O_O', 'THIS IS RESERVERED FOR THE SCARIEST CREEPYPASTA OF POSTS. USE THE ON OWN RISK.'), ('/!\NSFW/!\', 'O_o (FLUSHING moji)'), ('FUNNY', 'ACTUALLY FUNNY ACTUALLY....
true
957a1194cc5ec6707c699f7a1a44ddba0df7149b
SQL
samdan-school/database_programming
/Homework/Lab1/1a.sql
UTF-8
763
3.765625
4
[]
no_license
-- 1a USE movie_rating -- 1. Steven Spielberg -н зохиосон (directed) бүх киноны нэрийг харуул. USE movie_rating SELECT * FROM Movie WHERE director = 'Steven Spielberg' -- 2. 4 эсвэл 5 гэсэн rating -тэй кино бүтээгдсэн бүх жилийг харуул. Мөн тэдгээр жилүүдийг өсөх эрэмбээр харуул. USE movie_rating SELECT * FR...
true
2cd970efcf076d1566f0a8b6c9a25f6b5bb106f1
SQL
JavaAdore/Almabani
/db/system_objects.sql
UTF-8
8,821
2.6875
3
[]
no_license
-- USER SQL CREATE USER admincor IDENTIFIED BY a DEFAULT TABLESPACE "USERS" TEMPORARY TABLESPACE "TEMP"; GRANT "RESOURCE" TO admincor; GRANT "DBA" TO admincor ; GRANT "CONNECT" TO admincor ; -- USER SQL CREATE USER adminsec IDENTIFIED BY a DEFAULT TABLESPACE "USERS" TEMPORARY TABLESPACE "TEMP"; GRANT "RESOURCE" TO ad...
true
760f50fbac181c7dd42dc21ff50b6cbac940d70a
SQL
FranklinUmeObi/SQL-Database-Project_SMITE
/InfoMan2 MySQL.session.sql
UTF-8
6,890
3.484375
3
[]
no_license
CREATE TABLE Pantheon ( Name varchar(255) NOT NULL, Region varchar(255) NOT NULL, Primary Key(Name) ); CREATE TABLE Class ( Name varchar(255) NOT NULL, DamageType varchar(255) NOT NULL, TypicalAttack varchar(255) NOT NULL, Primary Key(Name) ); CREATE TABLE Position ( Name v...
true
96998d726b055558828564c9030446d7c26337b1
SQL
rossturk/stackostudy
/models/user_stats.sql
UTF-8
1,221
3.140625
3
[]
no_license
{{ config( materialized='view' ) }} select id, display_name, creation_date, last_access_date, profile_image_url, ( select count(*) from {{ ref('question_stats') }} where owner_user_id = filtered_users.id ) as questions_posted, ( select sum(upvote...
true
c08af8541c5bcbc096a3334c321e2e49b8d0e2bd
SQL
stoianov00/Java
/Java MySQL/01.Data Definition and Datatypes/02.Create Tables.sql
UTF-8
208
2.59375
3
[]
permissive
USE minions; CREATE TABLE minions( id INT(11) PRIMARY KEY AUTO_INCREMENT, name VARCHAR(50), age INT(11) ); CREATE TABLE towns( id INT(11) PRIMARY KEY AUTO_INCREMENT, name VARCHAR(50) );
true
391d69e835a3d1ca37b2eb3f166bca957682b21d
SQL
jehilvora/fashionbot
/SQL/fashionbot_label.sql
UTF-8
1,954
2.828125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: fashionbot -- ------------------------------------------------------ -- Server version 5.7.21-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
true
24ca42eab4f9d49688af16d14f565ca7750e712b
SQL
markaaron88/Leewayz_
/database.sql
UTF-8
4,391
3.203125
3
[]
no_license
USE heroku_05dd0fe8b4e38fb; SET @@auto_increment_increment=1; -- Drop Tables DROP TABLE IF EXISTS users; DROP TABLE IF EXISTS renter; DROP TABLE IF EXISTS listings; -- # Generate User Data CREATE TABLE users ( id INT PRIMARY KEY AUTO_INCREMENT NOT NULL, firstName VARCHAR (255), lastName VARCHAR (255), ...
true
d88a12e24e063407b03f0c9dc9ab3ef29efd7954
SQL
lubienga/MediaStreamer
/MediaStreamer-streamer/DB_migrate/mediastreamer_backup1.sql
UTF-8
3,484
3.375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 26, 2017 at 02:34 PM -- Server version: 5.6.24 -- PHP Version: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
a3b751d0cc5df1822159169499bbaa765bdbfa7a
SQL
JoelFong85/JAVA_CA
/ClubApplicationBooking/MySQL/SQL script.sql
UTF-8
4,217
3.515625
4
[]
no_license
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema mydb -- -...
true
acf1ba39f1a9373fb60b27e45d0c258b0d68832b
SQL
durabilliam/BootcampX
/1_queries/6_students_with_linked_github.sql
UTF-8
212
3.140625
3
[]
no_license
-- Get all graduates without a linked Github account. -- Get their name, email, and phone. SELECT name , email, phone FROM students WHERE end_date IS NOT NULL AND github IS NULL; -- SELECT * -- FROM students;
true
a7f441ea164551f0c2055d160c3590b0f95d06ed
SQL
gahvilan/delphi-gym
/Scripts Base de Datos/TablaDisiplina.sql
UTF-8
385
2.984375
3
[]
no_license
CREATE TABLE DISIPLINAS( ID_DISIPLINA INTEGER NOT NULL, NOMBRE VARCHAR(50), PRECIO_CLASE DECIMAL(8, 3), ESTABLECIMIENTO INTEGER ); ALTER TABLE DISIPLINAS ADD CONSTRAINT PK_DISIPLINA PRIMARY KEY (ID_DISIPLINA); ALTER TABLE DISIPLINAS ADD CONSTRAINT FK_DISIPLINA_ESTABLECIMIENTO FOREIGN KEY (E...
true
12a60518c28231af415a6e38c874b59a6cb7cace
SQL
chekun/spore
/resources/migrations/005_create_attachments_table.sql
UTF-8
579
3.28125
3
[ "MIT" ]
permissive
-- +migrate Up CREATE TABLE `attachments` ( `owner_id` int(11) NOT NULL DEFAULT '0', `owner_type` int(1) unsigned DEFAULT NULL COMMENT '1=thread|2=post', `file_name` varchar(100) DEFAULT NULL, `width` int(11) unsigned DEFAULT NULL, `height` int(11) unsigned DEFAULT NULL, `file_type` varchar(10) DEFAULT NULL...
true
7dc44f3e4d632c71d405303d77af6fcf5cdfe31f
SQL
krishan31/FullStack
/database MySQL query/cutomers.sql
UTF-8
4,526
4.09375
4
[]
no_license
SELECT name,unit_price,(unit_price* 1.1) as "new price" From products; -- AND select * from customers where birth_date < "1990-01-01" and points>1000; -- OR select * from customers where state = "VA" Or state="FL" or state ="GA"; -- IN 1. select * from customers where state i...
true
57e828439a5959ad53090a4dbb470bf805df3032
SQL
eugenekoran/HackerRank
/SQL/Projects.sql
UTF-8
369
4.34375
4
[]
no_license
--https://www.hackerrank.com/challenges/projects SELECT t1.start_date, MIN(t2.end_date) FROM (SELECT start_date FROM projects WHERE start_date NOT IN (SELECT end_date FROM projects)) t1, (SELECT end_date FROM projects WHERE end_date NOT IN (SELECT start_date FROM projects)) t2 WHERE t1.start_date < t2.end_date GROUP BY...
true
aeba3c0e72ad7b999957147d3176f231768cbc40
SQL
bablyseattle/shoe_store
/my_database.sql
UTF-8
6,125
2.953125
3
[ "MIT" ]
permissive
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.5 -- Dumped by pg_dump version 9.6.5 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min...
true
945266a8241f1f2ae9ef3cfd6c11c8a8f9bd428c
SQL
sierra073/gsheet-service-layer
/scripts/2019/id5104_affordable_ia_contract_exp_2018sots.sql
UTF-8
4,678
3.546875
4
[]
no_license
with subset as ( select d.district_id, d.num_students, dbc.meeting_2014_goal_no_oversub as meeting_2014_goal_no_oversub, dbc.ia_monthly_cost_total as ia_monthly_cost_total, dbc.meeting_knapsack_affordability_target as meeting_knapsack_affordability_target, dpr.district_id is not null as have_...
true
55148aa7af62f03cfc9c764730834a0941363a6c
SQL
HosseinChalaki/SenecaCPA-DBS301
/Assignments/A2_127270171_154908172_1400161169_069975134.sql
UTF-8
9,356
3.328125
3
[]
no_license
-- *********************** -- Name: TRACY NGUYEN, -- ID: 127270171 -- Name: Mehedi Haque, -- ID: 154908172 -- Name: Nirav Patel, -- ID: 140061169 -- Name: Salim Arefi -- ID: 069975134 -- Date: DEC 2018 -- Purpose: Assignment 2 - DBS301 SGG -- *********************** -- Creation CREATE TABLE Agency( AgencyID INT P...
true
35f37b8b27c698199c109ea0aa0725e71f102055
SQL
Kroonjay/Dealify
/database/sprocs/read_dealify_searches_by_status.sql
UTF-8
220
2.578125
3
[]
no_license
DELIMITER // CREATE PROCEDURE ReadDealifySearchesByStatus( IN search_status_param INT, IN limit_param INT ) BEGIN SELECT * FROM DealifySearches WHERE search_status = search_status_param LIMIT limit_param; END //
true
3e64624b5504b97d2e2ca96f986c9cfa0c39dd7e
SQL
FELLSAT/Procedimientos
/Procedimientos/Funciones/fn_CalculaFactores.sql
UTF-8
2,148
3.703125
4
[]
no_license
CREATE OR REPLACE FUNCTION fn_CalculaFactores -- ============================================= -- Author: FELIPE SATIZABAL -- ============================================= ( v_NUMHISTPAC IN VARCHAR2, v_VARIABLE IN VARCHAR2 ) RETURN NUMBER AS v_RTA NUMBER(18,4); --------------------------------...
true
5cc2568e506fc2205fee71c41b2cf35151239390
SQL
enelramon/TeacherControl3
/TeacherControl3/Script TeacherControl/Scripts.sql
UTF-8
1,176
3.0625
3
[]
no_license
 create table Asignaturas( IdAsignatura int identity(1,1) primary key NOT NULL, Codigo int NOT NULL, Nombre varchar(30) NOT NULL, Ceditos int not null, esActivo bit NOT NULL ) Create Table Tareas( IdTarea int identity(1,1) primary key NOT NULL, CodigoTarea varchar(10) not null, Fecha datetime not null, Vence d...
true
90fcd577908689b37bdd6f477f86f89b231a6686
SQL
NakedZed/FEE-Fourth-Year
/First Term/ADB/LAB (PL-SQL)/11.sql
UTF-8
417
3.09375
3
[]
no_license
create or replace function getNN (d1 date , d2 date) return cursor is cursor c is select dept.DEPARTMENT_NAME , emp.EMPLOYEE_ID from job_history j , dept , emp where dept.DEPARTMENT_ID = j.DEPARTMENT_ID and emp.EMPLOYEE_ID = j.EMPLOYEE_ID where (start_date between d1 and d2) and (end_date between d1 and...
true
412f24651767431b262c7a8838f3861793d296f7
SQL
oral-history-video-archive/digital-archive-processing
/InformediaCORE.Schema/Schema Objects/Schemas/idvl/Tables/Triggers/Collections.OnUpdate.trigger.sql
UTF-8
348
3.203125
3
[]
no_license
-- InformediaCORE Database Schema CREATE TRIGGER [idvl].[Collections_OnUpdate] ON [idvl].[Collections] AFTER UPDATE AS IF NOT (UPDATE(Published) OR UPDATE(Phase)) BEGIN SET NOCOUNT ON UPDATE [Collections] SET [Modified] = GETDATE() FROM inserted AS I INNER JOIN [idvl].[Collections] AS C ON C.Collectio...
true
33eed22bcccad24e065116d0d4c642d307de6458
SQL
BepHuTe-CaMoKaT/sql
/task5.sql
UTF-8
632
3.890625
4
[]
no_license
Create table If Not Exists Customers (Id int, Name varchar(255)); Create table If Not Exists Orders (Id int, CustomerId int); Truncate table Customers; insert into Customers (Id, Name) values ('1', 'Joe'); insert into Customers (Id, Name) values ('2', 'Henry'); insert into Customers (Id, Name) values ('3', 'Sam');...
true
171b4b899d75bfa71a4aef4f573b94b19181416f
SQL
hugoferreirag/Config---Integra-o-Mercado-Pago-Pag-seguro-e-PayPal
/loja2.sql
UTF-8
15,706
3.09375
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Versão 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.6.35) # Base de Dados: loja2 # Tempo de Geração: 2019-04-24 19:06:48 +0000 # ********************************************...
true
2b01964df827b4d12b13653b4100c8a1230d36ff
SQL
henryzvieira/CollegeDatabase
/HENRIQUEDATABASE.sql.sql
UTF-8
22,017
3.984375
4
[]
no_license
/*HENRIQUE VIEIRA DE OLIVEIRA ID:20190611 HIGHER DIPLOMA IN SCIENCE IN COMPUTING*/ /*TASK 2 EXERCISE 1 - Create the database and all tables specified in the dataset (relational model) to meet the specifications identified in task one. Clearly document all DDL statements used in this process.(10 Marks) */ CREATE dat...
true
3222f368824be61d3864fbaedd78992436d25b16
SQL
C-R-E-A-M-6/calendar_service
/database/Cassandra/cassandra.sql
UTF-8
1,290
3.8125
4
[]
no_license
DROP KEYSPACE properties; /* build cassandra schema based on queries */ CREATE KEYSPACE properties WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}; USE properties; /* took out service fee and cleaning fee because they are calculated as a percentage of total cost and can be calculated in the ...
true
c5c44e79bd1dd6e27b7e5f90230d613684d1d578
SQL
alainpaulinn/Car-dealer-webApp-PHP-JS-HTML-CSS-AJAX-BOOTSTRAP-FONTAWESOME-JQUERY
/sellcars Database.sql
UTF-8
27,987
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 31, 2021 at 09:42 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
5064774049d6949bc546ad5569884e449d811eb3
SQL
BolderBrighterExperience/playground
/intern02/SQL/gam_tema3/DML/gam_tema3.sql
UTF-8
2,127
4.15625
4
[]
no_license
--Afiseaza media salariului grupat pe departamente si functie. SELECT DEPARTMENT_ID, JOB_ID, ROUND(AVG(SALARY)) SALARIUL_MEDIU FROM EMPLOYEES GROUP BY DEPARTMENT_ID, JOB_ID ORDER BY DEPARTMENT_ID, JOB_ID; --Afiseaza din tabela tranzactii, codul clientului, al produsului si data comenzii. --...
true
dc9a66b26d24beaadc97b880ec2b5ebc36fd99b0
SQL
myplayareas/airportapp
/src/main/resources/schema-h2.sql
UTF-8
515
2.890625
3
[]
no_license
create table airport ( id integer not null generated always as identity (start with 1, increment by 1), name varchar(256) not null, city varchar(256), country varchar(256) not null, iatacode varchar(3), icaocode varchar(4), latitude double, longitude double, altitude double, offs...
true
4b93fc87c82c334a451b55d7b94fd2def0772e49
SQL
dirkjungquist/flexie-crm
/SQL Queries/Using a Global Variable.sql
UTF-8
464
2.78125
3
[ "MIT" ]
permissive
/* You can use a built in or your own user global variables - see "SQL for Flexie Introduction" for list of built in globals - user_id is a built in global - This usees a user global of COUNTRY_NAME, which I set to China (no quotes) - you can then change the global variable and the query will change w...
true
2fe865bbe0d237bc48c81b353cbd8c5f06b37780
SQL
ersinbolukbas/SQL
/day9_joins.sql
UTF-8
2,554
4.03125
4
[]
no_license
/*============================== JOIN İSLEMLERİ =============================== Set Operatorleri (Union,Intersect,Minus) farklı tablolardaki sutunlari birlestirmek kullanilir. Join islemleri ise farklı Tablolari birlestirmek icin kullanilir. Diger bir ifade ile farkli tablolardaki secilen ...
true
ff7df656cce95b0d3842b1868d7f72554c38cb80
SQL
BinAff/School
/Development/Source Code/Sparkle/Sparkle/Database/Student/Stored Procedures/CategoryReadDuplicate.sql
UTF-8
175
3.09375
3
[]
no_license
CREATE PROCEDURE [Student].[CategoryReadDuplicate] ( @Name Varchar(50) ) AS BEGIN SELECT Id FROM Student.Category WITH (NOLOCK) WHERE Name = @Name END
true
c80d96b189d46c0e31fbc6d3a8229ab09feb4b53
SQL
misaki-k/portofolio
/cosmeticsapp/src/main/resources/sql/cosmetics_itemskintype.sql
UTF-8
2,644
2.921875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.20, for Win64 (x86_64) -- -- Host: localhost Database: cosmetics -- ------------------------------------------------------ -- Server version 5.7.20-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RE...
true
892ca2c4cbaf8ee81e49172be078babb76ba7e8b
SQL
delighted322/data-analysis-learing
/SQL/02select_from_world_tutorial.sql
UTF-8
2,019
4.28125
4
[]
no_license
-- https://sqlzoo.net/wiki/SELECT_from_WORLD_Tutorial -- DONE -- select from world tutorial -- 1. -- 运行顺序:from -> select select name, continent, population from world; -- 2. -- from -> where -> select select name from world where population > 200000000; -- 3. select name, gdp / po...
true
2609e3446377f1e4f6e293ea30c7db594ed43c48
SQL
fromz/PostgreSQL-Temporal
/sql/temporal--0.7.1.sql
UTF-8
13,009
3.171875
3
[ "PostgreSQL" ]
permissive
-- -- period.sql -- SQL install script for the PERIOD data type. -- -- Portions Copyright (c) 2007-2008, Jeff Davis <jeff@j-davis.com> -- -- Adjust this setting to control where the objects get created. SET search_path = public; CREATE TYPE period; CREATE OR REPLACE FUNCTION period_in(cstring) RETURNS period LANGU...
true
0bc2a3ee04edbdc21f2869554870091a6529b114
SQL
Shahriar-Sharar57/shop1
/shop2003 (1).sql
UTF-8
30,835
3.078125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 02, 2021 at 01:12 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
480af1b14d04efbdf0249edccc76361b531730a2
SQL
HadyM/tuner-api
/db/schema.sql
UTF-8
280
2.796875
3
[]
no_license
DROP DATABASE IF EXISTS songs_dev; CREATE DATABASE songs_dev; -- connecting to the database \c songs_dev; -- create our bookmarks table CREATE TABLE songs ( id SERIAL PRIMARY KEY, name TEXT, artist TEXT, album TEXT, time INTEGER, is_favorite BOOLEAN );
true