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
7235445ba0ece0c8660c1a52d9114cde00c02bf6
SQL
peterk143/CS_uGR
/440/hmwk/hm9.sql
UTF-8
3,968
3.703125
4
[]
no_license
/* Peter Kirkpatrick [pkirkpat] April 16, 2012 CS 440 */ --set serveroutput on format wrapped set echo on drop table dept; drop table classes; drop table student; drop type student_ty; drop type classes_va; --Problem 1 create or replace type classes_va as varray(7) of number; / --Problem 2 create or replace type ...
true
5c70d031fa51c2b3d699d9c52261f509511fb1ec
SQL
fab16b/web_project
/data/db_create.sql
UTF-8
2,694
3.796875
4
[]
no_license
-- dbcreate.sql -- 20S IT325 Reeves -- https://codeshack.io/basic-login-system-nodejs-express-mysql/ -- -- add courses -- drop database `web2_01_fab16b`; CREATE DATABASE `web2_01_fab16b` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; USE `web2_01_fab16b`; drop table if exists `accounts`; CREATE TABLE `accounts` ...
true
1e313766a5814b87c61026bbdd4bb6ed2ea2d4d4
SQL
Riges/KawaiViewModel
/www/install/data.sql
UTF-8
3,511
3.203125
3
[ "BSD-3-Clause" ]
permissive
INSERT INTO user (user_login, user_full_name, user_mail, user_password_nonce, user_password_md5) VALUES ('kuroneko', 'Kuroneko', 'kuroneko@kawai-neko-box.fr', 381478, MD5('381478rigesamelia')), ('orenjineko', 'Orenjineko', 'orenjineko@kawai-neko-box.fr', 9474657, MD5('9474657vbfox')); SET @user_riges = (SELECT user_...
true
4d71f24117aa1c7a80d00e697c819fb4387b36cc
SQL
google-code/aionknight
/gameserver/sql/update/rev.13.sql
UTF-8
1,367
3.03125
3
[]
no_license
CREATE TABLE IF NOT EXISTS `droplist` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `mobId` int(11) NOT NULL DEFAULT 0, `itemId` int(11) NOT NULL DEFAULT 0, `min` int(11) NOT NULL DEFAULT 0, `max` int(11) NOT NULL DEFAULT 0, `chance` FLOAT NOT NULL DEFAULT 0, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ...
true
493f73f5b3aeb684d1256f423d6510f276e170f3
SQL
nBeebz/4711A1
/a1.sql
UTF-8
3,087
3.28125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 09, 2015 at 07:25 AM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
1bd3623f6a7be53d29d8fef52a69431d1f890394
SQL
Shivani-joshi-21/hackerrank_sql_practice
/Aggregation/Weather Observation Station 16.sql
UTF-8
61
2.5625
3
[]
no_license
select round(min(lat_n),4) from station where lat_n> 38.7780
true
90aa75ad0ac9c4baae28535697ff8ad753925c05
SQL
ManuelAlejandrG/ClasesDaniel
/data_base_t.sql
UTF-8
662
3.59375
4
[]
no_license
mysql -u root -p SELECT * FROM autores; SELECT * FROM libros; SELECT nombre, apellido FROM autores; SELECT DISTINCT titulo FROM libros; SELECT COUNT(titulo) FROM libros; SELECT titulo FROM libros WHERE autor_id=1; SELECT titulo FROM libros WHERE autor_id <>1; SELECT fecha_publicacion FROM libros WHERE fecha_pub...
true
27b6713d42644d36dcb4654b952e189de101a9e0
SQL
wata909/ksj_basin_landuse_join
/selct_create_table_all.sql
UTF-8
826
3.421875
3
[ "CC0-1.0" ]
permissive
CREATE TABLE w07_09_select AS SELECT w07_001,w07_002,w07_003,w07_004,w07_005,w07_006, CAST (w07_002 as integer) * 1000 + CAST (w07_006 as integer) as w07_026, geom FROM w07_09 WHERE w07_002 <> 'unknown' ORDER BY w07_001; ALTER TABLE w07_09_select ADD COLUMN gid serial primary key; CREATE INDEX "w07_09_select_geom" ON w...
true
ff23967f8314cd3d8b491af954feca84e58694bb
SQL
PRAVEENAMPATI/ETL
/models/EDL/ETL_MART_SALES/ETL_MART_SALES_BILLING_CUSTOMER_BRIDGE.SQL
UTF-8
16,578
2.984375
3
[]
no_license
/*--------------------------------------------------------------------------- Command to run model: --dbt run --select ETL_MART_SALES_BILLING_CUSTOMER_BRIDGE --dbt run --full-refresh --select ETL_MART_SALES_BILLING_CUSTOMER_BRIDGE Version Date Author Description ------- -------- ----...
true
3319c340512826ff61d297e5391321c3105ddf5c
SQL
ohdzdev/NutritionSystem
/zoo_api/lib/Stored Procedures/GetDayDietSub.sql
UTF-8
3,971
4
4
[]
no_license
CREATE DEFINER=`zoo`@`%` PROCEDURE `zoo`.`GetDayDietSub`(IN dayWanted VARCHAR(255)) BEGIN DROP TEMPORARY TABLE IF EXISTS tTodayDietSub; CREATE TEMPORARY TABLE tTodayDietSub AS SELECT DISTINCT DIETS.diet_id, DIET_PLAN.food_id, DIET_PLAN.group_amount, DIET_PLAN.unit_id, DIET_PLAN.sort, DIET_...
true
e4d3466de5d233c6dd141ec700c2f29b496af9fb
SQL
gadmss/SistemaAcademia
/sistemaAcademia1.sql
UTF-8
7,968
3.3125
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Tue Jun 25 13:29:12 2019 -- 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
fc302be36484009f636eec3170c8413f0068397a
SQL
djnandinho26/Legend_Server_S16
/Databases/characters.sql
UTF-8
57,079
3.21875
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : Lgd-Server Test Source Server Type : MySQL Source Server Version : 80023 Source Host : 135.125.191.26:3306 Source Schema : characters Target Server Type : MySQL Target Server Version : 80023 File Encoding : 65001 Date:...
true
d4840985a098a3a35c13804017ef080b522e4c37
SQL
llanos256/CIhuellahidrica
/huellahidrica.sql
UTF-8
13,042
2.8125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 05, 2021 at 04:49 PM -- Server version: 10.4.14-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
fd3d80171f6993a5cddd9e5f81ddf67e831440e4
SQL
bbroger/livro-php-fontes
/AJAX/search-live/db.sql
UTF-8
547
2.828125
3
[]
no_license
-- Adminer 4.7.1 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; SET NAMES utf8mb4; DROP TABLE IF EXISTS `countries`; CREATE TABLE `countries` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, ...
true
8583ce4d852505e9fd4520488b46380eefca53bc
SQL
Sasha2805/GoJava-Developer-module1
/homework1.2/6.sql
UTF-8
440
3.96875
4
[]
no_license
#6. Вычислить среднюю ЗП программистов в самом дешевом проекте. USE development; SELECT AVG(developers.salary) AS average_salary FROM developers INNER JOIN developer_projects ON developers.id = developer_projects.developer_id INNER JOIN projects ON developer_projects.project_id = projects.id WHERE projects.cost...
true
8efda334a51f3ace31b6ea24a2d08fc09374b0e9
SQL
RidheeshAmarthya/ADBMS-LAB
/Oracle Lab_4.sql
UTF-8
3,914
3.90625
4
[]
no_license
DROP TABLE salesman CASCADE CONSTRAINTS; DROP TABLE customer CASCADE CONSTRAINTS; DROP TABLE orders CASCADE CONSTRAINTS; CREATE TABLE salesman ( salesman_id number(20), salesman_name varchar(20), city varchar(30), commission number(5,2), PRIMARY KEY (salesman_id) ); CREATE TABLE customer ( cu...
true
26aed97ec4b4cdde83459e64005f215181d3057f
SQL
amirhallaji/ParhamFood_backend
/schema.sql
UTF-8
2,136
3.890625
4
[]
no_license
DROP TABLE IF EXISTS user; DROP TABLE IF EXISTS manager; DROP TABLE IF EXISTS food; DROP TABLE IF EXISTS restaurant; DROP TABLE IF EXISTS restaurant_food; DROP TABLE IF EXISTS f_order; DROP TABLE IF EXISTS comment; CREATE TABLE user ( phone_number TEXT PRIMARY KEY, password TEXT NOT NULL, name TEXT NOT NULL, ...
true
16627e31c2d58a25b0d832bc39ab29da511cf817
SQL
raogaru/raoctl
/sql/str/s_rules_performance.sql
UTF-8
616
3.296875
3
[]
no_license
-- Complex rules could result in performance issues. Avoid 'not in' and '!=' in the rule definitions. -- Capture select capture_name, owner, name from gv$rule_set r, dba_capture c where c.rule_set_owner = r.owner and c.rule_set_name = r.name and r.sql_executions > 0; -- Propagation select propagation_name, owner, ...
true
877f57367663c830e3852f11b8006855b78f899f
SQL
GitTomatos/MyWorks
/PostgreSQL/Задания/Задание 6.sql
UTF-8
563
3.4375
3
[]
no_license
-- 1 SELECT work_places.name "Место работы", transports.type "Техника", orders.quantity "Количество", orders.price "Оплата" FROM orders JOIN work_places ON (orders.work_place = work_places.id) JOIN transports ON (orders.transport = transports.id) ORDER BY orders.price, work_places.name; -- 2 SELECT orders.id "Номер з...
true
251f90b4ef3ad347236873df19bd70e31d5c38a0
SQL
tomzhang/HorsePower
/docs/aida-query/q3.sql
UTF-8
7,703
3.125
3
[]
no_license
SELECT l_orderkey AS l_orderkey, Sum(rev) AS revenue, o_orderdate AS o_orderdate, o_shippriority AS o_shippriority FROM (SELECT _tmp_86dfd31b.c_custkey AS c_custkey, _tmp_86dfd31b.c_name AS c_name, _tmp_86dfd31b.c_address AS c_...
true
196b02e7ced5f6e084a7bc52f28fd157d23276ef
SQL
Dmutryk/Code-Alchemy-MVC-Framework-for-PHP-and-PostgreSQL
/framework/sql/email_message_table.sql
UTF-8
723
3.1875
3
[ "MIT" ]
permissive
CREATE TABLE `__database_name__`.`__table_name__`( `id` int(11) NOT NULL AUTO_INCREMENT, `full_name` varchar(100) NOT NULL, `email` varchar(40) NOT NULL, `message` text NOT NULL, `is_sent` tinyint(1) DEFAULT '0', `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `created_by` int(11) DEFAULT NUL...
true
2707b246573ff803c4e951bcc3490c37ea317359
SQL
jekalmin/hibernate-test
/spring-data-jpa_test/src/main/resources/hsql/schema.sql
UTF-8
179
2.578125
3
[]
no_license
drop table Article if exists; create table Article ( articleNo integer not null, content varchar(255), memberSeq integer, title varchar(255), primary key (articleNo) );
true
b16edec66a87db28795c3b823e16f9831b7eb397
SQL
BorislavIvanov/Telerik_Academy
/03. Databases/11. Database Performance/03. Solution of Task 03.sql
UTF-8
363
2.953125
3
[]
no_license
CREATE FULLTEXT CATALOG LogsFullTextForLogText WITH ACCENT_SENSITIVITY = OFF CREATE FULLTEXT INDEX ON Logs(LogText) KEY INDEX PK_Logs ON LogsFullTextForLogText WITH CHANGE_TRACKING AUTO CHECKPOINT; DBCC DROPCLEANBUFFERS; SELECT * FROM Logs WHERE LogText LIKE '% 1256789' CHECKPOINT; DBCC DROPCLEANBUFFERS; SELECT * ...
true
a8e33908b8b0a7c61ae816ba3cd70590ebf78113
SQL
jerameelcode/java-rep
/src/main/resources/db/migration/datasource-data.sql
UTF-8
3,797
3.28125
3
[]
no_license
-- Insert all classe to db insert into classe (codigo, descricao) values (default, "Iniciação"), (default, "1ª Classe"),(default, "2ª Classe"), (default, "3ª Classe"), (default, "4ª Classe"), (default, "5ª Classe"), (default, "6ª Classe"), (default, "7ª Classe"), (default, "8ª ...
true
af31a6e02d442f4402abeff513bb032c938067b2
SQL
chi8708/SqlserverUtil
/18.一行多列取最大值.sql
GB18030
1,194
3.859375
4
[]
no_license
Ҫȡÿһм¼еֵ һ(Чʸ) select Guid,(select Max(NewDate) from (values (Date1),(Date2),(Date3)) as #temp(NewDate)) as MaxDate from Demo (Чʸ) select Guid, max(NewDate) as MaxDate from Demo unpivot (NewDate for DateVal in (Date1,Date2,Date3)) as u group by Guid (Чʵͣ) select Guid, (select max(NewDate) as MaxDate from (select ...
true
501b64cd9b16ccc0d18c48584b96e6b3cc527d16
SQL
PivoGuedes/testeDevOps
/testeDevOps/Dados/Views/vw_Premiacao_Prestamista_AIC_Teste.sql
UTF-8
619
3.078125
3
[]
no_license
CREATE VIEW Dados.vw_Premiacao_Prestamista_AIC_Teste AS SELECT LP.Ano, LP.Mes, P.Gerente, idlote, F.Matricula, P.NumeroApolice, P.NumeroEndosso, P.NumeroTitulo, P.ValorBruto , P.DataArquivo, P.NomeArquivo --, RIGHT(LEFT(NumeroTitulo,8),6) + '77' + RIGHT(NumeroTitulo,7)--P.NumeroApolice, P.NumeroTitulo, P. P.NumeroEndo...
true
a07205d85cd82f8d9890ac4bbd542a6b0eb39f37
SQL
dharkness/civup-vem
/CiVUP-VEM/VEM-VanillaEnhancedMod/Armies/VEA-General.sql
UTF-8
7,096
3.109375
3
[]
no_license
-- -- Unit Stats -- UPDATE Units SET Combat = ROUND(Combat * 1.1, 0) WHERE Class = 'UNITCLASS_SWORDSMAN'; UPDATE Units SET Combat = ROUND(Combat * 1.2, 0) WHERE Class = 'UNITCLASS_HORSEMAN'; UPDATE Units SET RangedCombat = RangedCombat - 1 WHERE Class = 'UNITCLASS_CROSSBOWMAN'; UPDATE Units SET Combat = ROUND(Comb...
true
36e94e39160e5d761e8bc002b509390f411c60c3
SQL
wlllle/Sprin
/database/init.sql
UTF-8
1,187
3.71875
4
[]
no_license
CREATE DATABASE IF NOT EXISTS Firm CHARACTER SET utf8 COLLATE utf8_unicode_ci; USE Firm; CREATE TABLE IF NOT EXISTS Position ( ID int NOT NULL PRIMARY KEY, Name varchar(100) NOT NULL, Duties tinytext NOT NULL ); CREATE TABLE IF NOT EXISTS Person ( ID int NOT NULL PRIMARY KEY, FirstName varchar(100) NOT NULL, M...
true
3c14ff8909fb78dfb9c5ceee2bef6526bc6f1a47
SQL
ssathyanath/Pewlett-Hackard-Analysis
/Queries/Employee_Database_Challenge.sql
UTF-8
1,560
4.59375
5
[]
no_license
-- Deliverable 1 -- Extract retirement title information SELECT e.emp_no, e.first_name, e.last_name, ti.title, ti.from_date, ti.to_date INTO retirement_title FROM employees e INNER JOIN titles ti ON (e.emp_no = ti.emp_no) WHERE e.birth_date BETWEEN '1952-01-01' AND '1955-12-31' ORDER BY e.emp_no, ti.from_date ASC;...
true
6c62a55eda21df30718090ae7a1afc799ba49200
SQL
MbL93/Skripte
/1_Semester/DatenbankprogrammierungOracle/Tutorials/07_ora-plsql-java_PLSQL-2.sql
UTF-8
4,543
4.1875
4
[]
no_license
-- Aktive Inhalte in Oracle -- PL/SQL SET SERVEROUTPUT ON; -- Steuerstrukturen -- GOTO vs. EXIT -- Steuerstrukturen DECLARE up BINARY_INTEGER := 20; square BINARY_INTEGER; BEGIN -- Beispiel für EXIT <<sqr>> -- Marke für EXIT FOR i IN 1..up LOOP square := i * i; DBMS_OUTPU...
true
3d01e33ea107374a2c6d558aa9e3610035336d7f
SQL
pacificclimate/crmp
/database/permissions.sql
UTF-8
2,205
3.125
3
[]
no_license
/* This file sets up permissions for the group and task specific roles Requires that root_permissions.sql have already been run Run as database owner */ -- Viewer GRANT SELECT ON spatial_ref_sys, meta_native_flag, meta_vars, meta_station, meta_pcic_flag, meta_alias, meta_history, obs_raw_pcic_flags, meta_sensor, obs...
true
888767ab0371da0e6ca2498dc3a5e60e87766f33
SQL
firgaty/university_projects
/M2/projet_bbd_specialisees/postgresql/postgres_queries.sql
UTF-8
3,776
4.25
4
[]
no_license
-- Les jeux publiés par Nintendo qui sont dans le top 100 (plan) -- 5.804 ms -> 21 ms SELECT sales.rank AS rank, games.name AS name, publishers.name AS publisher FROM games JOIN sales ON sales.game_id = games.id RIGHT JOIN publishers ON games.publisher_id = publishers.id WHERE publishers.na...
true
f08303596603276b2b6399a7592569d4205d7653
SQL
kasturiswapna/sql-challenge
/EmployeeSQL/queries.sql
UTF-8
2,190
4.6875
5
[]
no_license
--List the following details of each employee: employee number, last name, first name, sex, and salary. select a.emp_no, a.last_name, a.first_name, a.sex, b.salary from employee a inner join salaries b on a.emp_no = b.emp_no --List first name, last name, and hire date for employees who were hired in 1986. select first...
true
971f8097b225e921691970ae975b9e5bc7d5569f
SQL
BliZZeRxD/JavaOOP
/lab1/lab2.sql
UTF-8
1,342
3.875
4
[]
no_license
create database lab2; CREATE TABLE countries ( country_id SERIAL primary key, country_name VARCHAR(25), region_id INT, population INT ); INSERT INTO countries VALUES (DEFAULT, 'Russia', 1, 12000000); INSERT INTO countries (country_id, country_name) VALUES (DEFAULT, 'Japan'); INSERT INTO countries VALUES (DEF...
true
512276b0bfbf371b3117dd260042a94a3bb47b92
SQL
aasgaardK/key-manager-repository
/src/main/resources/db/createDb.sql
UTF-8
3,976
3.3125
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Sat Jun 6 09:46:01 2020 -- 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='TR...
true
6625ab10c463a3b1383e7919d8c9edc1e93b471d
SQL
gimee-prog/SpringDB
/src/main/resources/schema.sql
UTF-8
545
3.515625
4
[]
no_license
DROP TABLE GENRES IF EXISTS; DROP TABLE AUTHORS IF EXISTS; DROP TABLE BOOKS IF EXISTS; CREATE TABLE GENRES( ID BIGINT PRIMARY KEY AUTO_INCREMENT, Name VARCHAR(255) NOT NULL ); CREATE TABLE AUTHORS( ID BIGINT PRIMARY KEY AUTO_INCREMENT, FIO VARCHAR(255) NOT NULL , Age INT ); CREATE TABLE BOOKS( I...
true
70b74a09e500523a989790bf5f2328b663c12314
SQL
ahmadtechcampus2/ahmad4
/برنامج الامين المحاسبي/Bin/System/prcEntry_Delete.sql
UTF-8
520
3.046875
3
[]
no_license
############################################################################### CREATE PROC prcEntry_delete @EntryGUID [UNIQUEIDENTIFIER] = NULL AS /* this procedure deletes an entry given its GUID */ SET NOCOUNT ON -- unpost the entry: IF @EntryGUID IS NOT NULL UPDATE [ce000] SET [IsPosted] = 0 FROM [ce000] WH...
true
b510ba458d9f641f47bc5a402c5a2b182c6b5b37
SQL
alexjanosi/CS121
/cs121fin/webhost/webhost-queries.sql
UTF-8
549
3.953125
4
[]
no_license
-- [Problem 1.4a] -- selects the username from the overlap -- of shared and public and counts the -- number of usernames on a server SELECT hostname FROM shared NATURAL JOIN public GROUP BY hostname, hostable HAVING COUNT(username) > hostable; -- [Problem 1.4b] -- updates the price to $2 fewer where the username -- is...
true
8c80e71862df0aa527d4c422bb86846397543752
SQL
daimoniac/asprom
/db/ddl.sql
UTF-8
13,716
3.265625
3
[ "Apache-2.0" ]
permissive
-- MySQL dump 10.14 Distrib 5.5.39-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: asprom -- ------------------------------------------------------ -- Server version 5.5.39-MariaDB-2 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@C...
true
c3bd0a996850eb556e51c1953133836909149d25
SQL
JianLiangHe/springboot-conformity
/springboot-conformity-ocr/src/main/resources/sql/test20210417.sql
UTF-8
1,612
2.921875
3
[]
no_license
/* SQLyog Enterprise v12.09 (64 bit) MySQL - 5.5.40 : Database - test ********************************************************************* */ /*!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
8267f56d519dadc06da960bc21e588a464383308
SQL
irinatsiryapkina/work
/WESyS/epa-biogas-rin-HTL-TEA/data/regional_model/SQL/epa.lmopdata_20180716.sql
UTF-8
21,344
3.5
4
[]
no_license
RESET ROLE; GRANT SELECT ON "dhetting"."lmop_20180716" TO "wte-admin"; SET ROLE "wte-admin"; -- raw copy DROP TABLE IF EXISTS "epa"."_lmopdata_20180716" CASCADE; CREATE TABLE "epa"."_lmopdata_20180716" ( "GHGRP ID" TEXT , "Landfill ID" ...
true
06105080c05bfea0ec2610ef01221317559ba94a
SQL
mpetrov83/icar
/work/company_tables/POPACCESS/POPACCESSinvoice.sql
UTF-8
8,985
2.640625
3
[]
no_license
CREATE TABLE POPACCESSinv_header ( transtype VARCHAR2(3) NOT NULL, docnum NUMBER NOT NULL, inv_status NUMBER(3), inv_type VARCHAR2(10), customer VARCHAR2(6), terms_of_payment VARCHAR2(3), ...
true
25755316df72cf8da1ef0c718274794fb3295988
SQL
Marius22Popescu/Rise-Learning-Institute-Database
/triggers.sql
UTF-8
672
2.875
3
[]
no_license
DELIMITER $$ CREATE TRIGGER before_interships_update BEFORE UPDATE ON internships FOR EACH ROW BEGIN INSERT INTO intership SET action = 'update', oID = OLD.oID, changedate_posted = NOW(); END$$ DELIMITER $$ CREATE TRIGGER before_job_postings_update BEFORE UPDATE ON job_postings FOR EACH ROW...
true
23821c3a2d689a38e7017555fafec270b1a1e86b
SQL
openforis/collect-earth-online
/src/sql/clean/remove_duplicate_user_plots.sql
UTF-8
458
3.796875
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
DELETE FROM user_plots up USING ( SELECT project_uid, plot_uid, visible_id, count(plot_uid) as cnt, MAX(user_plot_uid), jsonb_agg(user_rid) as max_id FROM plots p, user_plots up, projects WHERE project_uid = project_rid AND plot_uid = up.plot_rid AND design_settings->'userAssignment' IS NULL...
true
ee32b5228b743ae2e87d77c82acd978ab9ed7fc6
SQL
titito2005/tcuGanaderos
/db_scripts/seeder.sql
UTF-8
970
2.921875
3
[]
no_license
/* Datos de prueba */ DELETE FROM vaca; DELETE FROM bovino; DELETE FROM configuracion; DELETE FROM finca; INSERT INTO finca (nombre, direccion, area, contacto) VALUES ('Las Hortensias', 'San Vito', 500, 'Juan Perez'); INSERT INTO CONFIGURACION (id_finca, max_iep, alerta_palpacion, alerta_parto, alerta_destete) VALUE...
true
d2535cfcebb264bfb2d11c329ca78ec37454e0dd
SQL
Hiddensound/ReNT
/drcare/databases/hospital_entries.sql
UTF-8
2,852
2.984375
3
[ "CC-BY-3.0", "CC-BY-4.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 12, 2019 at 04:05 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
688ff413edc32fb8cb03f42281319368f6dd2601
SQL
leoesleo1017/pricingshopper
/sql/rutinas_scantrack/02_subrutina_va_pastas_linea.sql
UTF-8
621
3.203125
3
[]
no_license
DROP TABLE IF EXISTS PUBLIC.temp_02_va_pastas_linea; CREATE TABLE PUBLIC.temp_02_va_pastas_linea AS SELECT b."idcategory", c."idsubcategory", a."SEGMENTO", a."FABRICANTE", a."MARCA", a."SUBMARCA", a."SUBTIPO", a."INTEGRALNOINTEGRAL" AS "INTEGRAL", a."SABOR", a."TIPO", -- a."linea", CA...
true
1147bfa5fb9200c0fda17bc6b9fd4ef39c2b29a9
SQL
juldebar/Deep_mapping
/SQL/update_spatial_column_table_metadata.sql
UTF-8
761
3.40625
3
[]
no_license
UPDATE metadata SET geometry_session = toto.track FROM (SELECT session_id, ST_MakeLine(the_geom) AS track FROM gps_tracks GROUP BY session_id) AS toto WHERE metadata.session_id=toto.session_id ; UPDATE metadata SET temporal_coverage = toto.temporal_coverage FROM (SELECT session_id, 'start='::text || MIN(gps...
true
1adc15be6dec369440666541488ffbb25a112dc0
SQL
hyldmo/polfarer
/web/scripts/db/wines.sql
UTF-8
1,546
2.6875
3
[ "MIT" ]
permissive
create table wines ( id, bigint unsigned auto_increment datotid, varchar(255) not null, varenummer, int not null, varenavn, varchar(255) not null, volum, double not null, pris, double not null, literpris, double not null, varetype, varchar(255) not null, produktutvalg, varchar(255) not null, butikkategori, do...
true
9b782bad81e9b29999b175aabdf7a7897817cf0d
SQL
joncolby/autodeploy-webapp
/sql/autodeploy-production-schema.sql
UTF-8
20,678
2.953125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.1.43, for debian-linux-gnu (i486) -- -- Host: localhost Database: autodeploy -- ------------------------------------------------------ -- Server version 5.1.43-1.1-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER...
true
a454efabba4eb09f74427ec9f8c1997dd7416524
SQL
Primo3021/Primo3021.github.io
/member.sql
UTF-8
6,656
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- 主機: 127.0.0.1:3306 -- 產生時間: 2020-10-22 18:16:21 -- 伺服器版本: 5.7.31 -- PHP 版本: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!401...
true
3a66b5d0b1676b87d81a75530de168dafdb8014b
SQL
splinterzealotDEV/UEFA
/SQL/2_sprint/federadas.sql
UTF-8
6,516
2.953125
3
[]
no_license
-- ----------------------------------------------------- -- Table `Liga`.`Pais` -- ----------------------------------------------------- DROP TABLE IF EXISTS `UEFA`.`Pais_Liga` ; CREATE TABLE IF NOT EXISTS `UEFA`.`Pais_Liga` ( `id_pais` INT NOT NULL, `nombre` VARCHAR(45) NULL, `id_db` INT NOT NULL, ...
true
eed82995a25c4cbf257991eeb0eb6bfd015167e1
SQL
wf-oadenaike/TestProject
/TestDBProject/CADIS/Views/Views2/ILT_SalesForce_FieldLinks.sql
UTF-8
1,043
3.59375
4
[]
no_license
CREATE VIEW "CADIS"."ILT_SalesForce_FieldLinks" AS select TEMPLATE_ILL_FIELDS.* from (SELECT tp.NAME as TEMPLATE_NAME ,t.[TEMPLATEFIELDNAME] as TEMPLATE_FIELDNAME, T.TEMPLATEDESC AS TEMPLATE_DESC, T.TEMPLATEFIELDTYPE AS TEMPLATE_FIELD_TYPE, T.TEMPLATEFORMAT AS TEMPLATE_FORMAT, s.ILLFIELDNAME, sp.name as ILLNAME FROM...
true
919d9111f7ebf87fe752dac62cb885a39488a471
SQL
kacacukurov/Diplomski
/backend/src/main/resources/data.sql
UTF-8
16,870
2.640625
3
[]
no_license
-- ROLES insert into authority (id, type) values (1, 'ADMIN'); insert into authority (id, type) values (2, 'USER'); -- ADMINISTRATORS -- account admin 1 pass:admin123 insert into account (id, deleted, password, username, first_name, last_name, version) values (101, 0, '$2a$10$cufIyhl6IuaxoWaNcGWgnuWaKYvtZnfvqGHi5J...
true
4e168fd77ff5f0cdad9701c06d2c78b6a420fc33
SQL
MrPROtS/pg_fias
/sql/update_houses.sql
UTF-8
3,945
3.796875
4
[ "MIT" ]
permissive
--BEGIN TRANSACTION; DROP TABLE IF EXISTS DeletedHouses_temp; DROP TABLE IF EXISTS Houses_temp; DROP TABLE IF EXISTS EstateStatus_temp; DROP TABLE IF EXISTS StructureStatus_temp; CREATE TABLE Houses_temp AS SELECT * FROM Houses LIMIT 1; DELETE FROM Houses_temp; CREATE TABLE DeletedHouses_temp AS SELECT * FROM...
true
50868b8530d426ccd9cd8bd3a8570a03c3f09165
SQL
vDurand/proj-iut-revivre
/Ressources/Revivre.sql
UTF-8
18,539
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.8 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 29, 2014 at 08:18 PM -- Server version: 5.6.12 -- PHP Version: 5.4.4-14+deb7u8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
b803a0f0eabb909ee99cb7372a8c0d2f9b0b6183
SQL
ruanymaia/cs50x
/cs50_problems_2020_x_movies/10.sql
UTF-8
169
3.25
3
[ "MIT" ]
permissive
SELECT DISTINCT people.name FROM people JOIN directors ON people.id = directors.person_id JOIN ratings ON directors.movie_id = ratings.movie_id WHERE rating >= 9.0;
true
f70408b87996d338170aafdd55efa6050aff95cc
SQL
geekcheng/erdiagram
/src/test/erdiagram/converter/database/code-converter/sql/DatabaseModelToSqlCodeConverter_func_spec_expected_results/sqlite/table_with_columns_of_all_types.sql
UTF-8
509
2.734375
3
[ "MIT" ]
permissive
PRAGMA foreign_keys = OFF; CREATE TABLE "test_table" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "boolean_column" INTEGER NOT NULL, "short_column" INTEGER NOT NULL, "int_column" INTEGER NOT NULL, "long_column" INTEGER NOT NULL, "decimal_column" REAL(10, 3) NOT NULL, "text_column" TEX...
true
5e71b7481cd2de682a6df57b2ac55e0846adf37a
SQL
youcefhedibel/Gestion_Stock
/gestion_de_stock.sql
UTF-8
4,882
3.46875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Sam 19 Août 2017 à 18:44 -- Version du serveur : 10.1.16-MariaDB -- Version de PHP : 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
6877690f33f6743ef86f1e2a359e1abb04b7ba8d
SQL
HouzhiLi/ETL_study
/Plsql_AE/AE05-存储过程函数习题讲解.sql
GB18030
19,248
3.734375
4
[]
no_license
1.дһ洢̣ԱϢempвһԱϢ create or replace procedure p1(v_empno in number, v_ename in varchar2, v_job in varchar2, v_mgr in number, v_hiredate in date, v_sal in number, ...
true
595a437ae6fe1285a72a94df46911cecb6489b00
SQL
MSurfer20/test2
/mysql-schema/Model/EmojiReactionBase.sql
UTF-8
699
2.6875
3
[]
no_license
-- -- Zulip REST API. -- Prepared SQL queries for 'EmojiReactionBase' definition. -- -- -- SELECT template for table `EmojiReactionBase` -- SELECT `emoji_code`, `emoji_name`, `reaction_type`, `user_id`, `user` FROM `EmojiReactionBase` WHERE 1; -- -- INSERT template for table `EmojiReactionBase` -- INSERT INTO `Emoji...
true
1dd7feadf788db2e10a88f46388df7bb515373fb
SQL
sbuDiction/Data-modeling
/src/main/resources/db/migration/V1__School_Data_Schema.sql
UTF-8
1,341
3.5625
4
[]
no_license
CREATE TABLE REGIONS ( ID SERIAL PRIMARY KEY NOT NULL, NAME TEXT NOT NULL, REGION_INITIALS TEXT NOT NULL ); CREATE TABLE SUBJECTS ( ID SERIAL PRIMARY KEY NOT NULL, SUBJECT_NAME TEXT NOT NULL, REGIONS_ID INTEGER REFERENCES REGIONS (ID) ON DELETE CASCADE ON UPDATE CASCADE ); CREATE TABLE SCHOOLS...
true
fc7ce67b2e00b4abb64ed2ecb761d1b7dd41aa61
SQL
Tirasa/demoBMed
/core/src/test/resources/testdb.sql
UTF-8
1,284
2.78125
3
[]
no_license
-- Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distribute...
true
fcc889a2e0fc212ce7d40e5d2ccce1f06bed98fb
SQL
UAMS-DBMI/PosdaTools
/posda/posdatools/queries/sql/GetSopListByCollectionSite.sql
UTF-8
786
3.265625
3
[ "Apache-2.0" ]
permissive
-- Name: GetSopListByCollectionSite -- Schema: posda_files -- Columns: ['collection', 'site', 'patient_id', 'study_instance_uid', 'series_instance_uid', 'sop_instance_uid'] -- Args: ['collection', 'site'] -- Tags: ['bills_test', 'comparing_posda_to_public'] -- Description: Get a full list of sops with collection, site,...
true
0dd51ffcf6c284a82000e6f8574d9c3db09ea930
SQL
support-project/knowledge
/src/main/resources/org/support/project/web/dao/sql/UsersDao/UsersDao_selectOnRoleKey.sql
UTF-8
288
3.5
4
[ "Apache-2.0" ]
permissive
SELECT USERS.* FROM USERS INNER JOIN USER_ROLES ON USERS.USER_ID = USER_ROLES.USER_ID INNER JOIN ROLES ON USER_ROLES.ROLE_ID = ROLES.ROLE_ID WHERE ROLES.ROLE_KEY = ? AND USERS.DELETE_FLAG = 0
true
6121e01dbbd69206092f9d44da331e398715dd34
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/01122_totals_rollup_having_block_header.sql
UTF-8
558
3.34375
3
[ "Apache-2.0", "BSL-1.0" ]
permissive
DROP TABLE IF EXISTS rollup_having; CREATE TABLE rollup_having ( a Nullable(String), b Nullable(String) ) ENGINE = Memory; INSERT INTO rollup_having VALUES (NULL, NULL); INSERT INTO rollup_having VALUES ('a', NULL); INSERT INTO rollup_having VALUES ('a', 'b'); SELECT a, b, count(*) FROM rollup_having GROUP BY a, ...
true
a482290140acb61b9e01fdb3790c6385d3e4f41e
SQL
kiendc/vdcm
/com_vdcm/admin/sql/updates/mysql/0.0.4.sql
UTF-8
2,561
3.34375
3
[]
no_license
DROP TABLE IF EXISTS `#__vjeecdcm_user_info`; CREATE TABLE `#__vjeecdcm_user_info` ( `id` int(11) NOT NULL, `address` varchar(100), PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8; INSERT INTO `#__vjeecdcm_user_info` (`id`,`address`) VALUES (582, 'Hello World!'), (58...
true
f50b4662ca7cb8c16300d3ac1563c8a438a83d08
SQL
majmcdonald/tre-app-wp
/sql/sp/calc_bg_maxcounts.sql
UTF-8
536
2.703125
3
[]
no_license
BEGIN SELECT max(at_times_ranked) INTO @maxlistcountall FROM wp_re_boardgames; UPDATE wp_re_boardgames_maxcounts SET max_list_count = @maxlistcountall WHERE max_list_type = "A"; SELECT max(cy_times_ranked) INTO @maxlistcountyear FROM wp_re_boardgames; UPDATE wp_re_boardgames_maxcounts SET max_list_count = @maxlistco...
true
f1213caac0b31a70726db9a413e2d1ee4d3a382f
SQL
bravesoftdz/sgts
/sql/oracle/patch_22.12.2008/002_create_table_journal_fields.sql
WINDOWS-1251
3,049
3.390625
3
[]
no_license
/* */ CREATE OR REPLACE PROCEDURE I_JOURNAL_FIELD ( JOURNAL_FIELD_ID IN INTEGER, CYCLE_ID IN INTEGER, POINT_ID IN INTEGER, PARAM_ID IN INTEGER, INSTRUMENT_ID IN INTEGER, MEASURE_UNIT_ID IN INTEGER, VALUE IN FLOAT, WHO_ENTER IN INTEGER, DATE_ENTER IN DATE, WHO_CONFIRM IN INTEGER, DATE_CONFI...
true
e352fb6d7271663ce5508ec10da770eb112390b2
SQL
Pelle-pr/CupCakeProject
/src/main/java/DB/cupcake.sql
UTF-8
6,474
3.234375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `cupcake` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `cupcake`; -- MySQL dump 10.13 Distrib 8.0.18, for Win64 (x86_64) -- -- Host: localhost Database: cupcake -- ------------------------------------------------------ --...
true
4f33015213ee1eac20f3f90ce99e61a0246864b2
SQL
harishbon/test
/src/main/resources/schema.sql
UTF-8
451
3.46875
3
[]
no_license
CREATE TABLE customers ( id INTEGER NOT NULL AUTO_INCREMENT, firstname VARCHAR(128) NOT NULL, lastname VARCHAR(128) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE orders ( id INTEGER NOT NULL AUTO_INCREMENT, customer_id INTEGER NOT NULL, address VARCHAR(12...
true
e436e8302f68f90509947eace0d1bffe7340f0fa
SQL
TheLamed/WPF-SQL-Project
/Data base settings/Procedures/dbo.RemoveUser.sql
UTF-8
159
2.6875
3
[]
no_license
CREATE PROCEDURE RemoveUser @ID INT AS BEGIN DELETE FROM Users WHERE ID = @ID DELETE FROM UO WHERE UserID = @ID DELETE FROM Orders WHERE OwnerID = @ID END
true
6e20055cb5d0b1feecd65c4124d781640423f19c
SQL
sunsunjackson/CSE111-Database-System-SQL
/lab4/7.sql
UTF-8
259
3.6875
4
[]
no_license
SELECT N.n_name, O.o_orderstatus, COUNT(C.c_name) FROM customer C, nation N, orders O, region R WHERE C.c_nationkey = N.n_nationkey AND C.c_custkey = O.o_custkey AND R.r_regionkey = N.n_regionkey AND R.r_name = 'ASIA' GROUP BY N.n_name, O.o_orderstatus;
true
b466b1b285e1c5edd211616864cafbe0f4ba63a2
SQL
mlizking/ci_spms_project
/export_database/22-07-2019/ci_spms_database.sql
UTF-8
22,529
3.25
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 21, 2019 at 08:20 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
f173eb7ff02c96767abde6b8d05de4aeb1171673
SQL
fotonsi/clareece
/db/datos_iniciales.sql
UTF-8
1,944,883
2.75
3
[]
no_license
-- -- PostgreSQL database dump -- SET client_encoding = 'UTF8'; SET standard_conforming_strings = off; SET check_function_bodies = false; SET client_min_messages = warning; SET escape_string_warning = off; SET search_path = public, pg_catalog; -- -- Name: bancos_id_seq; Type: SEQUENCE SET; Schema: public; Owner: ent...
true
65429826bb66b9d49809bb867fdbc98cd8536671
SQL
antnas/QueueT-mob
/schema.sql
UTF-8
620
3.171875
3
[]
no_license
drop table if exists index; drop table if exists kontaktperson; drop table if exists kontakt_liste; CREATE TABLE IF NOT EXISTS kontakt_liste ( id serial primary key, changed TIMESTAMP ); CREATE TABLE IF NOT EXISTS index ( kontakt_liste integer primary key references kontakt_liste(id), vorname ...
true
f913d9048c280afdc55db5d413597ff0ce99bcbd
SQL
Adityapatel2497/Admission
/admission2018.sql
UTF-8
5,418
3.296875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 12, 2017 at 06:12 PM -- Server version: 10.1.25-MariaDB -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
a97d8e59911b880c78e7ed653f70d66132d68835
SQL
ZFGCCP/ZFGC3
/src/main/database/tables/USER_CONNECTION.sql
UTF-8
1,272
3.484375
3
[ "MIT" ]
permissive
CREATE TABLE `USER_CONNECTION` ( `USER_CONNECTION_ID` INT(11) NOT NULL AUTO_INCREMENT, `USERS_ID` INT(11) NOT NULL, `AGENT_VERSION` VARCHAR(50) NULL DEFAULT NULL, `AGENT_TYPE` VARCHAR(50) NULL DEFAULT NULL, `AGENT_NAME` VARCHAR(50) NULL DEFAULT NULL, `IP_ADDRESS_ID` INT(11) NOT NULL, `USER_AGENT` VARCHAR(128) NU...
true
1917ed275186be7c2845a0ea811bb263d7065c79
SQL
leekenki/Hotel_manager
/[Study]SQLServer/210514/210514(7-1).sql
UHC
1,583
3.625
4
[]
no_license
-- ܺ -- 츮 θ ѹ ȸ ȸ SELECT u.userID, u.name , u.addr, CONCAT(u.mobile1, u.mobile2) AS mobile , b.prodName FROM userTbl AS u LEFT OUTER JOIN buyTbl AS b ON u.userID = b.userID WHERE b.prodName IS NULL ORDER BY u.userID; SELECT u.userID, u.name , u.addr, CONCAT(u.mobile1, u.mobile2) AS mobile ,...
true
5396a263c7ab9bd01c12411a4fba4d60eda87b3e
SQL
backrole/tugas-kuliah
/poliklinik/poliklinik.sql
UTF-8
7,764
2.90625
3
[]
no_license
/* SQLyog Ultimate v11.33 (64 bit) MySQL - 10.1.9-MariaDB : Database - poliklinik ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40101 SET @OLD_SQL_MOD...
true
7e919cc21e0ad28ed7a781a2ad42438c1a525d9d
SQL
mungowz/esse4
/codice/trigger/trigger_assegnazione_borse.sql
UTF-8
5,027
3.734375
4
[ "MIT" ]
permissive
/* trigger_assegnazione_borse Le borse di studio sono assegnate agli studenti che hanno fatto richiesta per quel bando. Inoltre, non deve essere assegnata ad uno studente che ha già vinto la borsa di studio in quell'anno accademico e il numero di borse assegnate non supera il numero di borse disponi...
true
f7b60d3a724c6859ac5d915c39e549abb0e7635d
SQL
shuming98/Code
/数据库/MySQL/建表操作.sql
UTF-8
6,245
3.890625
4
[]
no_license
^ []的内容指可选填,{}补充说明 零、数据库入门语句 1.连接数据库:mysql -uroot -p 2.查看所有库:show databases; 3.建库:create database 库名; 4.删库:drop database 库名; 零_壹、修改数据库密码 1.不登录mysql: mysqladmin -u用户名 -p password 新密码 2.登录mysql: set password for 用户名@localhost = password('新密码'); 一、创建表:建表就是声明列的过程。(列,选什么类型的列?列给什么样的属性...
true
1702659cfbad04abcbb5db9b24f6008e00deb740
SQL
mjsebast/forum
/src/main/resources/db/migration/V3__create_forum_table.sql
UTF-8
511
3.609375
4
[]
no_license
create table forum ( id bigserial primary key, name varchar(100) not null, description varchar(1000) not null, created_by bigint not null, CONSTRAINT fk1_forum_user FOREIGN KEY (created_by) REFERENCES user_account (id) MATCH SIMPLE ON UPDATE CASCADE ON DELETE CASCADE ); ...
true
dcde122bb6915129fc94cf260b034086415bbf34
SQL
nguio/SIINCO_web
/FormasOracleForms/InfoMca/Backup/20091104/Informe_MCA.sql
UTF-8
1,305
3.125
3
[]
no_license
set underline off set pagesize 50000 set linesize 700 set feedback off set termout off set verify off set colsep ',' spool &&5 select o.org_name_full "Almacen", trans_session "Nro lote", trans_trn_code||' ' "Codigo", id.inv_drpt_desc "Transaccion", substr(sodimac_jerarquia_prd_nombre(trans_prd_child,5),1,60) "De...
true
9af7b1ca7d4ddeb4c1968da17688a0d79b5d00de
SQL
NV7150/Assignment
/db/initdb.d/schema.sql
UTF-8
135
2.515625
3
[]
no_license
CREATE TABLE user ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(30) NOT NULL, keyword VARCHAR(30), PRIMARY KEY (id) );
true
1b081af07f3e16bf7954320037861295e696f9c1
SQL
xneyder/forecasting
/sql_bak2/Radware_DefensePro.Resource_Utlilzation.sql
UTF-8
1,221
3.21875
3
[]
no_license
delete from SMA_HLX.SMA_SUMMARY@KNOXHLXPRD where SMA_NAME='Security SMA' and KPI_NAME='Combined Resource Utilization' AND PERIOD_DATE=trunc(trunc(sysdate,'MM')-1,'MM'); INSERT INTO SMA_HLX.SMA_SUMMARY@KNOXHLXPRD with pm_data as ( select /*+ materialize */ DATETIME, SUM(NVL(RS_WSDRESOURCE_UTILIZATION / (...
true
1926466480d6c504618f026201ab965875bbd4c7
SQL
jonamuen/sql-reduce
/test/sqlsmith/sqlite/167.sql
UTF-8
438
3.015625
3
[ "MIT" ]
permissive
select subq_0.c6 as c0, subq_0.c5 as c1, subq_0.c0 as c2, subq_0.c1 as c3 from (select ref_0.name as c0, ref_0.id as c1, ref_0.name as c2, ref_0.name as c3, ref_0.id as c4, ref_0.name as c5, ref_0.name as c6 from main.t0 as r...
true
2e720f34ba3dd1ddec9d971212303125d4cabf00
SQL
dba-kosova/OracleScripts
/work/whoinrbsname.sql
UTF-8
1,412
3.3125
3
[]
no_license
set linesize 130 set pagesize 30 set heading on set ver off set feedback on set scan on ttitle center 'ROLLBACK STAT' skip 1 - center ============== skip 2 col name format a6 col username format a10 col st format a2 col logon ...
true
2db30d6d234d2c2bc025ca839d1a7e0a11244cae
SQL
victorgiffoni/scriptssql
/GERA VALOR CBHPM.sql
UTF-8
2,550
3.515625
4
[]
no_license
SELECT * FROM PRECOS WHERE PC_DESCRICAO LIKE '%tuss,%' --75 CIEFAS UPDATE PRECOS_PORTE_CBHPM SET CB_VALOR=CONVERT (DECIMAL (15,2),(CB_VALOR*1.1017)), CB_CUSTO_OPER= CONVERT (DECIMAL(15,2),(CB_CUSTO_OPER*1.0406)) FROM PRECOS_PORTE_CBHPM WHERE CB_PRECO=249 -- SELECT PR_PRODUTO, PR_DESCRICAO,CONVERT (DECIMAL (...
true
22bdf85e91fe3969216f516cd14b0a3b2210b368
SQL
CUBRID/cubrid-testcases
/sql/_13_issues/_10_1h/cases/bug_3054.sql
UTF-8
8,318
2.53125
3
[ "BSD-3-Clause" ]
permissive
select 1 from db_root where unix_timestamp('1') >1; select 1 from db_root where unix_timestamp('10') >1; select 1 from db_root where unix_timestamp('105') >1; select 1 from db_root where unix_timestamp('1005') >1; select 1 from db_root where unix_timestamp('10050106') >1; select 1 from db_root where unix...
true
18c38bfaa93b9e635cd14dc7263916f4bac0b4af
SQL
BulletproofCoffees/wiki
/WebContent/db/wiki테이블 생성.sql
UHC
3,805
3.625
4
[]
no_license
--Űȸ----------------------------------------------------------- create table wikimember( Id VARCHAR2(20)NOT NULL, pwd VARCHAR2(20),--ȣ email VARCHAR2(40), --̸ Vandals CHAR(1)DEFAULT 'Y', --Ʈ usetn CHAR(1)DEFAULT 'Y',-- Ż𿩺 indate DATE DEFAULT SYSDATE, -- CONSTRAINT PK_wikimember_no ...
true
9faea0fe2c1a08cedf4e938d9155e0a6a566afd9
SQL
rzlatan/real_estate_ml
/DataVisualization/Queries/FlatsBySquareFootage.sql
UTF-8
816
3.484375
3
[]
no_license
SELECT re.SQUARE_FOOTAGE_RANGE, COUNT(*) FROM ( SELECT CASE WHEN SQUARE_FOOTAGE BETWEEN 0 AND 35 THEN 'do 35' WHEN SQUARE_FOOTAGE BETWEEN 36 AND 50 THEN 'od 35 do 50' WHEN SQUARE_FOOTAGE BETWEEN 51 AND 65 THEN 'od 50 do 65' WHEN SQU...
true
792f178f506fe1f0df9e20b36a973d1920253d45
SQL
altaos/Sth
/Task3/checkers.sql
UTF-8
2,706
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.3 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Дек 27 2012 г., 18:18 -- Версия сервера: 5.1.65-community-log -- Версия PHP: 5.2.17 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
true
5f08becd4cd118a19386d2aacf89145dd4a577fe
SQL
MLClark/Bookmarks
/Client Specific/AYV/AYV-PAYROLL/AYV_Payroll_Export_hdr_data.sql
UTF-8
908
3.1875
3
[]
no_license
select bh.batchheaderid ::char(15) as BACHNUMB ,'1' ::char(2) as UPRBCHOR ,pu.payunitdesc ::char(60) as BCHCOMNT ,'3' ::char(2) as UPRBCHFR ,to_char(bh.effectivedate,'yyyy/mm/dd') ::char(10) as POSTEDDT ,0000 as CNTRLTRX ,00 as CTRLEMPCT ,'0' ::char(1) as UpdateIfExists ,'0' ::char(2) as RequesterTrx ,' ' ::char(5...
true
b92012d731daba111d679ad496918ed2ac6be8b7
SQL
panasenco/sqltemplate
/Wrappers/SystemDate.eps1.sql
UTF-8
387
3.046875
3
[ "MIT" ]
permissive
<%# .Synopsis Gets the current system date (no time component). .Parameter Server The server to get the system date for. -%> <%- switch -regex ($Server) { 'ORA.*' { -%> SYSDATE<% -%> <%- } 'SS\d\d.*' { -%> CAST(SYSDATETIME() AS date)<% -%> <%- } default { Write-Error "Serve...
true
9a731616d94155adc5594ef42b85a4102a62d0ce
SQL
arunsnmimt/Administration
/Database Objects/Change Schema.sql
UTF-8
226
3.328125
3
[]
no_license
SELECT 'ALTER SCHEMA dbo TRANSFER ' + s.Name + '.' + o.Name FROM sys.Objects o INNER JOIN sys.Schemas s on o.schema_id = s.schema_id WHERE s.Name = 'TMC' And (o.Type = 'U' Or o.Type = 'P' Or o.Type = 'V')
true
42626d608428db298db380703db056fd636368fd
SQL
gisomarjr/Rastreador
/Rastreador/SQL/ScriptSQL.sql
UTF-8
2,104
3.40625
3
[]
no_license
-- Geração de Modelo físico -- Rastreador - SQL -> MySQL. CREATE TABLE Tecnico ( Matricula text(60), Disponivel text(10), Nome_tecnico text(600), Id_tecnico int(5) unsigned NOT NULL AUTO_INCREMENT, PRIMARY KEY (Id_tecnico) ); CREATE TABLE Loja ( Nome_Loja text(800), Id_loja int(5) unsigned NOT NULL AUTO_INCREMENT, PR...
true
ce0b550a5ebfd2d774dee81564951e369183352d
SQL
oraculix/unilog
/unilog.sql
ISO-8859-3
8,030
3.5
4
[ "MIT" ]
permissive
/****************************************************************************** NAME: unilog - Universal Logging Tool AUTHOR: U. Kchler LICENSE: http://opensource.org/licenses/MIT PURPOSE: Log error info and/or custom messages to standard output and/or table. Messages can be filte...
true
c2374b38c5158c4bebf5aeb3a1ad0e71cebb081f
SQL
Franco1917/Asignador-De-Misiones
/bd_konoha.sql
UTF-8
4,650
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 07-02-2021 a las 07:45:58 -- Versión del servidor: 10.4.17-MariaDB -- Versión de PHP: 8.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
efec769c5e4210fbb50768d8af6d1e7c2929cb5c
SQL
aihuzb/heartcloud
/src/main/resources/db/heartcloud.sql
UTF-8
4,805
3.421875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50517 Source Host : localhost:3306 Source Database : heartcloud Target Server Type : MYSQL Target Server Version : 50517 File Encoding : 65001 Date: 2018-02-24 10:24:24 */ SET FOREIGN_KEY_CHECKS=0; -...
true