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
e79f1d19584d11906451f16174893bdfa428d2c0
SQL
danstorey901/my-sql-scripts
/UPDATESTUDENTINTOTABLE.sql
UTF-8
336
3.078125
3
[]
no_license
--INSERT A NEW STUDENT THAT HAS RECENTLY ENROLLED. STUDENT INFO = NAME: NOAH PHENSE, STATE: GA, SAT:1235, GPA:3.15, MAJOR:MATH /* Insert Student (Firstname,Lastname, StateCode, SAT, GPA, MajorId) VALUES ('Noah','Phense','GA','1235','3.15', (select Id from Major Where Description = 'Math')); */ select * from Stud...
true
10a6c91160c7b46e183655f91cce7c4feb9f8d21
SQL
glf134/ruoyi
/gapMenu.sql
UTF-8
1,952
2.65625
3
[]
no_license
-- 菜单 SQL insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark) values('安全隔离网闸数据元(GAP)', '2000', '1', '/datasync/gap', 'C', '0', 'datasync:gap:view', '#', 'admin', sysdate(), '', null, '安全隔离网闸数据元(GAP)菜单'); -- 按钮父菜单ID SELECT ...
true
3a7ec4cb4a48af53c3ec84cdc396f2bf34122eeb
SQL
komour/database-management
/hw6/4.3r.sql
UTF-8
301
3.421875
3
[]
no_license
SELECT s.StudentId FROM Students s WHERE NOT EXISTS (SELECT s.StudentId FROM Lecturers l, Plan p WHERE NOT EXISTS (SELECT m.StudentId, m.CourseId FROM Marks m WHERE m.StudentId = s.StudentId AND m.CourseId = p.CourseId) AND l.LecturerId = p.LecturerId AND l.LecturerName = :LecturerName);
true
e3d62fe2b25cff8adea6c64ff3fd3f74608011ca
SQL
LotusEliza/SOAP
/task2/server/lotushealth (4).sql
UTF-8
5,619
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 13, 2019 at 04:15 PM -- Server version: 5.7.26-0ubuntu0.18.04.1 -- PHP Version: 5.6.40-8+ubuntu18.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; ...
true
8323a7fe2bbe2ae2c6a36491e6f151b55c47de12
SQL
OscarMesa/AppIngEgr
/protected/data/REQUERIMIENTOS/03/dia.sql
UTF-8
1,907
3.9375
4
[]
no_license
----------------------------------------------- -- Función que invoca el procedimiento ----------------------------------------------- DROP FUNCTION IF EXISTS saldoDia; DELIMITER // CREATE FUNCTION saldoDia(usuario INT(5)) RETURNS DOUBLE BEGIN DECLARE fecha_menor DATE; -- DECLARE saldo_dia DOUBLE; SET fecha_menor...
true
f7598d067c73875057274a490b64ca21dbc9e6b4
SQL
nstasino/covid19-dashboard
/scripts/schema.sql
UTF-8
4,712
3.75
4
[]
no_license
-- Covid 19 Schema -- Table: public.covid19 DROP TABLE public.covid19 CASCADE; CREATE TABLE IF NOT EXISTS public.covid19 ( fips character varying(20) COLLATE pg_catalog."default", admin2 character varying(60) COLLATE pg_catalog."default", province character varying(60) COLLATE pg_catalog."default", c...
true
a3ad84c54f9013bd7f946c132ac646cc0b95bfdd
SQL
NHSRC/facilities-assessment-server
/src/main/resources/db/migration/V100__ChecklistCanBelongToMultipleAssessentTools.sql
UTF-8
398
3.109375
3
[]
no_license
CREATE TABLE assessment_tool_checklist ( id SERIAL PRIMARY KEY, assessment_tool_id INT REFERENCES assessment_tool (id) NOT NULL, checklist_id INT REFERENCES checklist (id) NOT NULL ); insert into assessment_tool_checklist (assessment_tool_id, checklist_id) select assessment_tool...
true
1b82f8f8345d49a2f85854f1ab907230e1418de6
SQL
Trostnick/Internet_shop
/src/main/resources/insert.sql
UTF-8
1,247
3.203125
3
[]
no_license
use demo; insert into user_status values (1, 'ROLE_client'), (2, 'ROLE_manager'), (3, 'ROLE_admin'); insert into order_status values (1, 'in cart'), (2, 'booked'), (3, 'payed'), (4, 'delivered'), (5, 'finished'); insert into camp_type values (1, 'stationary'), (2, ...
true
4d866bdceaff56ca9e72ace2f542881a30e8abab
SQL
itarocha/betesda
/src/main/resources/sql/leito_by_hospede_leito_id.sql
UTF-8
227
2.6875
3
[]
no_license
SELECT new br.com.itarocha.betesda.model.LeitoVO(l.id, l.numero, q.id, q.numero, l.tipoLeito) FROM HospedeLeito hospedeLeito INNER JOIN hospedeLeito.leito l INNER JOIN l.quarto q WHERE hospedeLeito.id = :id
true
1bc34d01eed7e87f323263dcac11346928ccd372
SQL
JonathanPMohan/Chinook-Excercises
/brazil_customers.sql
UTF-8
78
2.515625
3
[]
no_license
-- brazil_customers -- Select * from dbo.Customer c where c.Country = 'BRAZIL'
true
c275d44959d7e30d3f59ba7bc8d7fd15ecef7edb
SQL
IVSEZ/mysqlbis
/Analysis/PRASLIN_customers.sql
UTF-8
1,759
3.375
3
[]
no_license
select reportdate, clientarea, clientcode, currentdebt, IsAccountActive, AccountActivityStage , clientname, clientclass, clientaddress , clientemail, clientnin, clientphone , clean_mxk_name, clean_mxk_interface , firstactivedate, lastactivedate, dayssincelastactive, firstcontractdate, firstpaymentdate, lastpaymentdate...
true
b1bda0eedb1afaecbb2c52c3b809458b06eb81e3
SQL
EBISPOT/goci
/goci-core/goci-db-binding/src/main/resources/db/migration/V1.9.9_029__Entrez_gene_id_migration_pt2.sql
UTF-8
786
3.1875
3
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
/* ################################################################################ Retrospective fix to ensure merging happens after genomic context cleanup. Designed for execution with Flyway database migrations tool. author: Tony Burdett date: March 9th 2015 version: 1.9.9.029 (pre 2.0) ######################...
true
b1a50f0e216bbb379e33c4aa402e1ecd1076f414
SQL
postgres/postgres
/src/backend/catalog/information_schema.sql
UTF-8
114,880
4
4
[ "PostgreSQL" ]
permissive
/* * SQL Information Schema * as defined in ISO/IEC 9075-11:2023 * * Copyright (c) 2003-2023, PostgreSQL Global Development Group * * src/backend/catalog/information_schema.sql * * Note: this file is read in single-user -j mode, which means that the * command terminator is semicolon-newline-newline; whenever t...
true
4c921759d42d71dce5a9cf9b2c8bd52aff30365d
SQL
leithergit/AVPlayerActiveX
/screencut_position.sql
UTF-8
2,872
2.59375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 192.168.1.125_3406 Source Server Version : 50527 Source Host : 192.168.1.125:3406 Source Database : vms Target Server Type : MYSQL Target Server Version : 50527 File Encoding : 65001 Date: 2017-08-16 15:42:52 */ SET FOR...
true
da4045f8fbb4e7eaaf4853c537c21abc0399e883
SQL
mParkesy/JavaWeb-VigorHealthTracker
/Health/studentdb.sql
UTF-8
4,394
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 12, 2018 at 11:45 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
94ea1ce88181f35fdac62c8e1f934cc14d699c5a
SQL
chaesiong/rtp-database
/production/SYSTEM/tables/logmnr_container$.sql
UTF-8
832
2.609375
3
[]
no_license
CREATE TABLE "SYSTEM"."LOGMNR_CONTAINER$" SHARING=METADATA ( "OBJ#" NUMBER NOT NULL ENABLE, "CON_ID#" NUMBER NOT NULL ENABLE, "DBID" NUMBER NOT NULL ENABLE, "CON_UID" NUMBER NOT NULL ENABLE, "CREATE_SCNWRP" NUMBER NOT NULL ENABLE, "CREATE_SCNBAS" NUMBER NOT NULL ENABLE, "FLAGS" NUMBER, "STATUS...
true
db7adbf30c2de34f952995e0bf8e8311acd50243
SQL
16pxdesign/oracle-category-tree
/001-addTASK.sql
UTF-8
623
3.34375
3
[ "MIT" ]
permissive
create definer = admin@`%` procedure addTASK(IN name varchar(200), IN parent int unsigned, IN parentbyname varchar(200)) begin declare cat_id int unsigned; if parentbyname is not null then select id into parent from aaaPLAN.TASK c where c.name = parentbyname; end if; Insert INTO aaaPLAN.TASK (name) VALUES (name...
true
d8fe916ef6e577b692ddbe695631b3e6751ceeaf
SQL
decosmi/enroll
/database/01_initial.sql
UTF-8
2,494
3.40625
3
[]
no_license
DROP TABLE IF EXISTS student_guardian; DROP TABLE IF EXISTS school_admin; DROP TABLE IF EXISTS guardians; DROP TABLE IF EXISTS emergency; DROP TABLE IF EXISTS student_emergency; DROP TABLE IF EXISTS students; DROP TABLE IF EXISTS teacher; CREATE TABLE teacher ( id serial PRIMARY KEY, first_name text, l...
true
b80f220790acf6048f69910a261bd0f8853fad26
SQL
rayailieva/Database-Basics---MySQL
/08.Exams/exam/p11.ExtractAllEducationalMissions.sql
UTF-8
245
4
4
[]
no_license
SELECT p.name AS 'planet_name', s.name AS 'spaceport_name' FROM planets AS p JOIN spaceports AS s ON p.id = s.planet_id JOIN journeys AS j ON s.id = j.destination_spaceport_id WHERE j.purpose = 'Educational' ORDER BY `spaceport_name` DESC;
true
35d3f7f19f558296f27f2890b9675239dbc55f4e
SQL
Rendanic/SQL-Zauberkasten
/sql/xplan/dplansid.sql
UTF-8
597
3.0625
3
[]
no_license
-- -- Thorsten Bruhns (Thorsten.Bruhns@opitz-consulting.de) -- $Id: dplansid.sql 244 2010-11-14 14:35:23Z tbr $ -- -- display plan for running sql on session with SID -- -- Parameter 1: SID set echo off set verify off set feedback off variable SQL_ID varchar2(20) variable SQL_CHILD_NUMBER number begin select SQ...
true
bc20d29ecb35c2bbe288de86d64a3950f4f42c7f
SQL
allwaysoft/Oracle-1
/AWR_statspack_exemplos/instalacao_statspack.sql
UTF-8
1,459
3.375
3
[]
no_license
-- verificar se existe algum snapshot do statspack select name, snap_id, to_char(snap_time, 'DD/MM/YYYY HH24:MI:SS') "Snapshot Time" from stats$snapshot,v$database; -- cria um tablespace próprio para o statspack, não é necessário mas é recomendado create tablespace PERFSTAT datafile '/home/oracle/app/oracle/oradata/or...
true
69833e39503b2c786b2867f77d8a77bf9d83fd8c
SQL
Haoxi-Sun/COSC344-Database
/Lab6/q20.sql
UTF-8
160
3.34375
3
[]
no_license
SELECT * FROM orders outers WHERE amt > ( SELECT AVG(amt) FROM orders inners WHERE outers.cnum = inners.cnum );
true
81a80a113429f522df373aa2549e872d69931df8
SQL
olseason/SQL
/Ex/Ex02.sql
UTF-8
4,553
4.3125
4
[]
no_license
--null select first_name, salary, commission_pct, salary * commission_pct from employees where salary between 13000 and 15000; select first_name, salary, commission_pct from employees where commission_pct is not null; select first_name, salary, commission_pct from employees where commission_pct is null; --예제) 커미션비율...
true
061a2ea1bd014bde029b5a954880742df43de50a
SQL
dhanarJkusuma/guardian
/migration/sql/mysql_migration_index.up.sql
UTF-8
767
2.859375
3
[]
no_license
-- create index CREATE UNIQUE INDEX `guard_user_email_idx` ON guard_user(email); CREATE UNIQUE INDEX `guard_user_username_idx` ON guard_user(username); CREATE UNIQUE INDEX `guard_permission_route_method_idx` ON guard_permission(route, method); CREATE UNIQUE INDEX `guard_permission_name_idx` ON guard_permission(name); C...
true
09c50d07250d3fac7b3ac487017d34a296163795
SQL
ColdHeat/piwheels
/piwheels/initdb/sql/update_piwheels_0.11_to_0.12.sql
UTF-8
846
3.515625
4
[ "MIT", "BSD-3-Clause" ]
permissive
UPDATE configuration SET version = '0.12'; CREATE TABLE searches ( package VARCHAR(200) NOT NULL, accessed_by INET NOT NULL, accessed_at TIMESTAMP NOT NULL, arch VARCHAR(100) DEFAULT NULL, distro_name VARCHAR(100) DEFAULT NULL, distro_version ...
true
3a85842ff96dc2183d124728143e3bf1f08f2f5c
SQL
Ronihe/input-list
/back-end/schema.sql
UTF-8
198
2.71875
3
[]
no_license
DROP DATABASE if exists inputs_db; CREATE DATABASE inputs_db; \c inputs_db CREATE TABLE inputs ( id SERIAL PRIMARY KEY, input TEXT NOT NULL, date_posted DATE NOT NULL DEFAULT CURRENT_DATE );
true
815a0830370bbf80e6d953dbaad17744bbd298d6
SQL
tgq52298/test
/application/vote/install/install.sql
UTF-8
13,264
2.8125
3
[ "Apache-2.0" ]
permissive
INSERT INTO `qb_config` (`id`, `type`, `title`, `c_key`, `c_value`, `form_type`, `options`, `ifsys`, `htmlcode`, `c_descrip`, `list`, `sys_id`) VALUES('', -1, 'SEO标题', 'mseo_title', '', 'text', '', 0, '', '', 100, 4); INSERT INTO `qb_config` (`id`, `type`, `title`, `c_key`, `c_value`, `form_type`, `options`, `ifsys`, ...
true
e28e9305cf612f217d080d4e21675f457810666e
SQL
mad-ann/Quiz_2020
/Quiz_2020/quizz.sql
UTF-8
3,072
3.515625
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Gép: 127.0.0.1 -- Létrehozás ideje: 2020. Már 19. 17:36 -- Kiszolgáló verziója: 10.4.11-MariaDB -- PHP verzió: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
10904edd12b8504dcb12c549a09f395b110dec75
SQL
chieh0613/462_Database_Project
/statistics_sql/0716002/best_movie_top5.sql
UTF-8
180
3.5
4
[]
no_license
/*哪5年生產最多優秀(rating>=8)電影*/ SELECT m.year, count(*) FROM all_gender al, movie m where al.id=m.id and al.rating>8 GROUP BY m.year ORDER BY count(*) DESC LIMIT 5;
true
842f3a7e4654e0b6d68ff1837e049e02b7e815d3
SQL
zefredz/claroline-packages
/modules/ICHELP/setup/install.sql
UTF-8
793
2.65625
3
[]
no_license
/** * $Id$ * Online Help Form * * @version ICHELP 0.8 $Revision$ - Claroline 1.11.5 * @copyright 2001-2013 Universite catholique de Louvain (UCL) * @license http://www.gnu.org/copyleft/gpl.html (GPL) GENERAL PUBLIC LICENSE * @package ICHELP * @author Frederic Fervaille <frederic.fervaille@ucl...
true
4e2e130c7578c84f96fcc71e9aa6fb65958296bc
SQL
journeycruz/Password_Genie
/db/seeds.sql
UTF-8
371
2.90625
3
[]
no_license
INSERT INTO UserNameAndPasswordDemo(UserId, UserPassword) VALUES ('John@gg.com', MD5('john123')); ( U_Id int(10) unsigned NOT NULL AUTO_INCREMENT, UserId varchar(255) DEFAULT NULL, UserPassword varchar(255) DEFAULT NULL, primary key(U_Id), UNIQUE KEY `UserId` (`UserId`) ); SELECT *from UserNameAndPasswordDemo where Use...
true
a94c1984ee12b704c68b90725f6ec87c9e0aff00
SQL
sprokushev/Delphi
/MASTER/_DATABASE/Views/V_GD_VYP_READY.sql
UTF-8
2,688
2.8125
3
[]
no_license
-- -- V_GD_VYP_READY (View) -- CREATE OR REPLACE FORCE VIEW MASTER.V_GD_VYP_READY (NAIM_GR, NAIM_PR, NORMOTGR, KOD_GR, TIP_OTGR, KOD_NPR, EXPORT, TIP_OTGR_1, KOD_NPR_1, EXPORT_1, PLAN_CIST, PLAN_VES, PLAN_CSOB, PLAN_VSOB, N_PL_C, N_PL_V, N_PL_CS, N_PL_VS, D_PL_C, D_PL_V, D_PL_CS, D_PL_VS, NORM_TOT, NORM_MPS, ...
true
1f41419f313f41a0438185ce7a57ef1fc14719bc
SQL
edjunior73/MBlabs-desafio
/prisma/migrations/20210618174918_db_att/migration.sql
UTF-8
244
2.671875
3
[]
no_license
/* Warnings: - A unique constraint covering the columns `[name]` on the table `events` will be added. If there are existing duplicate values, this will fail. */ -- CreateIndex CREATE UNIQUE INDEX "events.name_unique" ON "events"("name");
true
f164e07e9992a0b32374f185d53f472bcf5017d5
SQL
kongyew/gpdb
/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/filerep_end_to_end/ct/sql/ct_ao_alter_part_truncate_part.sql
UTF-8
7,004
3.296875
3
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "PostgreSQL", "LicenseRef-scancode-other-copyleft", "metamail", "BSD-3-Clause", "LicenseRef-scancode-openssl", "LicenseRef-scancode-other-permissive", "ISC", "Python-2.0", "bzip2-1.0.6", "LicenseRef-scancode-ssleay-windows", "LicenseRef-scanco...
permissive
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore -- -- CT AO TABLE 1 -- CREATE TABLE ct_ao_alter_part_truncate_part1 ( unique1 int4, unique2 int4 ) with ( appendonly='true') partition by range (unique1) ( partition aa start (0) end (500) every (100), d...
true
cc516a6e478362cab8946286a16cb60d447dc5af
SQL
radtek/abs3
/sql/mmfo/barsaq/Table/bankdates.sql
WINDOWS-1251
3,260
3.5625
4
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARSAQ/Table/BANKDATES.sql =========*** Run *** = PROMPT ===================================================================================== PROMPT *** Create table BAN...
true
333c108d15c3b33d288e351a9b409b883291fb7c
SQL
huntdesignco/jade-cms-php
/database/pages.sql
UTF-8
359
2.6875
3
[]
no_license
/*!40101 SET NAMES binary*/; /*!40014 SET FOREIGN_KEY_CHECKS=0*/; CREATE TABLE `pages` ( `id` mediumint(9) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `title` varchar(255) NOT NULL, `slug` varchar(255) NOT NULL, `twig_template` text NOT NULL, `is_navbar` tinyint(1) NOT NULL, PRIMARY KEY (`id`)...
true
3d1b653d90fcca42a65d6e75f596ecc574cc046c
SQL
murari-goswami/bi
/ETL/DataVirtuality/views/tableau/tableau.ops_address_change.sql
UTF-8
1,744
3.6875
4
[]
no_license
-- Name: tableau.ops_address_change -- Created: 2015-09-01 17:50:22 -- Updated: 2015-09-01 17:50:22 create view tableau.ops_address_change as with c_order as ( SELECT rank() OVER(PARTITION BY customer_id ORDER BY date_created asc) as rank_cust, order_id, order_type, customer_id, date_created, ...
true
e72f88b702106f83739de3ea51467d649f4d937c
SQL
SdMSyN/eva_ins
/db_schemas/eva_ins_escuelas_secretarias.sql
UTF-8
1,695
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 07-11-2016 a las 02:10:09 -- Versión del servidor: 5.6.24 -- Versión de PHP: 5.5.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
dbdfbdec163285593930e0bcfef214442f587a73
SQL
True-Evzheniy/92049-yeticave-10
/queries.sql
UTF-8
3,598
3.234375
3
[]
no_license
# Fill categories INSERT INTO categories SET name = 'Доски и лыжи', symbol_code ='boards'; INSERT INTO categories SET name = 'Крепления', symbol_code = 'attachment'; INSERT INTO categories SET name = 'Ботинки', symbol_code = 'boots'; INSERT INTO categories SET name = 'Одежда', ...
true
826f9d4b971d4e2d1372496856ff96c7fd54f9f3
SQL
nooblenabot/PhoneBack
/install/sql/appels.sql
ISO-8859-1
8,487
3.484375
3
[]
no_license
# phpMyAdmin SQL Dump # version 2.5.3 # http://www.phpmyadmin.net # # Serveur: localhost # Gnr le : Mardi 06 Juin 2006 16:48 # Version du serveur: 4.0.15 # Version de PHP: 4.3.3 # # Base de donnes: `appels` # # -------------------------------------------------------- # # Structure de la table `appel` # # Cration: ...
true
a477a11e504ac2f92197bedea385f0f9793e761f
SQL
preet-kaur/team-7
/assets/backend/application.sql
UTF-8
2,057
3.265625
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 21, 2018 at 04:36 AM -- Server version: 10.1.28-MariaDB -- PHP Version: 7.1.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
8784b624afbd05232deb4a8d3aa015c96f204f7f
SQL
avetall87/otus_spring_2019_11
/hw6-library-app/src/main/resources/db/migration/V1.0.0__base_schema_structure.sql
UTF-8
1,556
4
4
[]
no_license
create table authors ( id long auto_increment constraint author_pk PRIMARY KEY, first_name varchar2(250) not null, last_name varchar2(250) not null, patronymic varchar2(250) not null ); create table books ( id long auto_increment constraint book_pk PRIMARY KEY, ...
true
d96b00079d59d1e170288bb4ced44c7ea4451428
SQL
TrinityChristiana/chinook-trinityterry
/queries/finished/top_country.sql
UTF-8
178
3.453125
3
[]
no_license
-- Which country's customers spent the most? SELECT i.BillingCountry 'Country', SUM(i.Total) Sales FROM Invoice i GROUP BY i.BillingCountry ORDER BY Sales DESC LIMIT 1;
true
3bd69a6092b758b10a2f098d9c71e6f5bfb73f05
SQL
EddyeBoy27/one-for-all
/desafios/desafio1.sql
UTF-8
3,907
4
4
[]
no_license
CREATE DATABASE IF NOT EXISTS SpotifyClone; USE SpotifyClone; CREATE TABLE users( id INT PRIMARY KEY auto_increment, user_name VARCHAR(50) NOT NULL, user_age INT NOT NULL ) engine = InnoDB AUTO_INCREMENT = 15; CREATE TABLE plans( id INT PRIMARY KEY auto_increment, plan_name VARCHAR(50) NOT NULL, price DE...
true
19c418dc0def41952245243ec797e870b45f0ac7
SQL
valergrad/oraclescripts
/ParallelSkewAtPlan.sql
UTF-8
826
3.390625
3
[]
no_license
-- parallellism & plan select session_id, px, listagg( case when sql_plan_line_id is null then 'null' else to_char(sql_plan_line_id) end || '(' || cnt || ')' || ' ') within group ( order by cnt desc) plan_lines, sum(cnt) cnt from ( select session_id, sql_plan_line_id, sql_...
true
f641d10f813f6b0508fbdf65ffe336cd3cedbdf2
SQL
C-Laborde/sql-course
/Ex4 - JOINS.sql
UTF-8
1,289
4.375
4
[]
no_license
-- JOIN order_items with products USE sql_store; SELECT order_id, oi.product_id, quantity, oi.unit_price FROM order_items oi JOIN products p ON oi.product_id = p.product_id; -- JOIN MULTIPLE tables USE sql_invoicing; SELECT p.date, p.invoice_id, p.amount, c.name, pm.name AS payment_method FROM paym...
true
b2e5473f13c7dea58d55fa8dbcc714aca0cc67b5
SQL
elguille86/mvcphp
/DESARROLLO/mvcphp.sql
ISO-8859-1
18,659
2.859375
3
[]
no_license
# MySQL-Front 5.1 (Build 3.18) /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE */; /*!40101 SET SQL_MODE='' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES */; /*!40103 SET SQL_NOTES='ON' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS */; /*!40014 SET UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHEC...
true
3afffd60a9a26a801a1b46ce5cb32c45e9a80edb
SQL
donnevspankeren/MYSQL-BASIC
/opdracht/antwoorden.sql
UTF-8
1,573
3.046875
3
[]
no_license
-- Opdracht 1 SELECT * FROM videogamesales WHERE 1 -- Opdracht 2 SELECT count(Name) AS alle_uitgebrachte_spellen_1999 FROM videogamesales WHERE year=1999 -- Opdracht 3 SELECT count(NA_Sales) AS Verkocht_in_NA FROM `videogamesales` WHERE genre="Sports" -- Opdracht 4 SELECT name, platform FROM `videogamesales` WHERE pu...
true
b3f520a5ef2233076bd881d15f03ce4d6b2dda40
SQL
KeynesYouDigIt/PostgresTournament_DB_API
/tournament/tournament.sql
UTF-8
1,251
4.25
4
[]
no_license
-- Table definitions for the tournament project. -- -- Put your SQL 'create table' statements in this file; also 'create view' -- statements if you choose to use it. -- -- You can write comments in this file by starting them with two dashes, like -- these lines here. DROP DATABASE IF EXISTS tournament; CREATE DATABASE...
true
e49eb6db3087b14283f0fd43bffda56bc735594e
SQL
maxclchen/myStrat.bk
/codes/MySQL/mysql.sql
UTF-8
1,237
3.703125
4
[]
no_license
## ============================================================================= ## 主力合约的分钟数据 ## ============================================================================= create table mainContractMinuteData( TradingDay DATE NOT NULL, Minute TIME NOT NULL, NumericExchTime decimal(15,5) ...
true
c8d9a64d9e4aeaa04f9abc84be61ece98fb03c6c
SQL
walkandride/H1B-Visa-Project
/airflow/dags/create_staging_tables.sql
UTF-8
1,858
2.75
3
[]
no_license
-- ============================================================================= -- Create staging tables for import files. -- ============================================================================= CREATE TABLE IF NOT EXISTS stage_h1b_petitions( id VARCHAR, case_status VARCHAR, employer_name VARCHAR...
true
6feb6551d59a99ded9dad6ef6894dc9bb9f396f1
SQL
Jotaii/Proyecto-Fisw
/fisw.sql
UTF-8
7,674
3.15625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.30, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: fisw -- ------------------------------------------------------ -- Server version 5.6.30-1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESUL...
true
2f6f18f04c3c4529195ee8b16cb3948fff24c446
SQL
cloudtrainings/crate-workshop
/createtables_workshop_crate.sql
UTF-8
627
3.328125
3
[]
no_license
CREATE TABLE IF NOT EXISTS workshop_weather ( city string, temp_low integer, temp_high integer, prcp double, datetime timestamp, primary key (city, datetime) )clustered by (city) into 6 shards WITH ( number_of_replicas = '0-all', refr...
true
aad80609278ddec72644604effccad052972d8ec
SQL
jowclides/simplecrudcodeignter4
/SQL/codeign_projetobase_updated.sql
UTF-8
3,003
2.921875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 04-Mar-2021 às 01:01 -- Versão do servidor: 10.4.17-MariaDB -- versão do PHP: 8.0.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
true
c2fb16116465e97a333cffd94f2af692f1c56927
SQL
zjuphoenix/health-monitor
/src/main/resources/mysql.sql
UTF-8
1,448
3.125
3
[]
no_license
USE artificial_liver; CREATE TABLE user( id INT(4) not null primary key auto_increment, username VARCHAR(40) not null, gender VARCHAR(2) not null, password VARCHAR(40), tel VARCHAR(20), mail VARCHAR(30) ); SELECT * FROM users WHERE username = #{username} LIMIT 1; CREATE TABLE bloodoxygen( userId INT COMM...
true
d3e32967cb4719ba40ef340fe805669c8a1109ff
SQL
pulsetracker/W205
/exercise_1/investigations/hospital_variability/hospital_variablility.sql
UTF-8
530
3.6875
4
[]
no_license
-- Based on Effective Care score (high is good) SELECT COUNT(ecscore), ROUND(AVG(cast(ecscore as INT))), ROUND(STDDEV(cast(ecscore as INT))) AS A1, measure_name FROM TxProcedures WHERE (CAST(ecscore AS INT) IS NOT NULL) GROUP BY measure_name ORDER BY A1 DESC LIMIT 10; -- Based on Readmission (Low is good) SELEC...
true
175e95930eafb9f105e3cfeaa493741b092b8080
SQL
pythonoras/Toontown-Private-Server-Webend
/conf/evolutions/default/17.sql
UTF-8
787
3.34375
3
[]
no_license
# --- !Ups create table toon_name ( id integer auto_increment not null, toon_id integer, user_id integer, candidate_name varchar(255), current_name varchar(255), received datetime, processed dateti...
true
368ca4031eceb1187c940dfa4ce3eb32181ba81e
SQL
kreid333/myblog
/seeds.sql
UTF-8
603
3.140625
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS posts; DROP TABLE IF EXISTS accounts; CREATE TABLE posts( id INT AUTO_INCREMENT PRIMARY KEY NOT NULL, user_id VARCHAR(255) NOT NULL, username VARCHAR(255) NOT NULL, img VARCHAR(255) NOT NULL, date VARCHAR(255) NOT NULL, title VARCHAR(255) NOT NULL, content VARCHAR(5000)...
true
c06bae5fe17657f1b6ed250cd81f8b17f9caddc5
SQL
reanrean/LeetCode
/585_Investments_in_2016.sql
UTF-8
316
3.9375
4
[]
no_license
select sum(tiv_2016) as tiv_2016 from insurance i inner join (select tiv_2015 from insurance group by tiv_2015 having count(1) > 1)a on a.tiv_2015 = i.tiv_2015 inner join (select concat(lat,lon) as location, count(1) from insurance group by concat(lat,lon) having count(1) = 1) b on b.location = concat(i.lat,i.lon)
true
c5d6c83107d1f0cb4ea5e28739bff87ab0069caf
SQL
artcom1/test
/#DB/struct/fkconstraint.mv.sql
UTF-8
1,706
2.90625
3
[]
no_license
ALTER TABLE ONLY ts_multivalfiltr ADD CONSTRAINT ts_multivalfiltr_mvs_id_fkey FOREIGN KEY (mvs_id) REFERENCES ts_multivals(mvs_id) ON UPDATE CASCADE ON DELETE CASCADE; -- -- ALTER TABLE ONLY ts_multivals ADD CONSTRAINT ts_multivals_mvg_id_fkey FOREIGN KEY (mvg_id) REFERENCES ts_multivalpage(mvg_id) ON UPDATE...
true
a18954b9cef35ea3ec52547b28d33df1cff23a63
SQL
bellmit/flexdb
/2.HOST/3.Procedure/od0023.sql
UTF-8
10,233
3.375
3
[]
no_license
CREATE OR REPLACE PROCEDURE od0023 ( PV_REFCURSOR IN OUT PKG_REPORT.REF_CURSOR, OPT IN VARCHAR2, BRID IN VARCHAR2, F_DATE IN VARCHAR2, T_DATE IN VARCHAR2, SYMBOL IN VARCHAR2, EXECTYPE IN VARCHAR2, TRADEPLA...
true
fa234736162bda4d38574c6a9c7cb92c9e0b10f5
SQL
PR02-Rutenio/Proyecto
/sql/bbdd_rutenio.sql
UTF-8
4,913
3.28125
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; CREATE DATABASE bbdd_rutenio; -- CREATE USER 'admin'@'%' IDENTIFIED VIA mysql_native_password USING '***';GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' REQUIRE NONE WITH GRANT OPTION MAX_QUERIES_PER_HOUR 9...
true
cf349a0a50eb95bc718c8393177b8452da5a10db
SQL
mylavarapuakhila/toll_fee_payment
/home/toll.sql
UTF-8
3,210
3.640625
4
[ "CC-BY-3.0", "CC-BY-4.0" ]
permissive
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; CREATE TABLE `from` ( `city_id` int(10) UNSIGNED NOT NULL, `city_name` varchar(45) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `city` -- INSERT INTO `from` (`city_id`, `cit...
true
aa353a2003d531382523adaa629c700bef575c3d
SQL
VinceOmega/tsql_AgentStudio
/GetAllSitesWithExpirationDatesOlderThan6DaysFromCurrentDateWithJoinsUsedInBillingLoop.sql
UTF-8
1,997
3.5
4
[]
no_license
SELECT TOP 1000 site.IsDelinquent, site.InvoiceablePackage, site.InvoiceableAddons, site.AppGUID, site.AppId, site.SiteName, site.ExpirationDate, site.AuthNetProfileID, site.IsActive, site.CanExpire, site.PackageId, site.InTrial, site.CreatedDate, defaultalias.DomainName AS DefaultDomain, primaryalias...
true
a3ca4698265ad75297884ad08b6dd3435a7ae320
SQL
alberto-guzman/sql_hw_notebooks
/hw03_GuzmanAlvarez_Alberto_stocks_db_create_queries.sql
UTF-8
1,829
4.46875
4
[]
no_license
-- create a database for tb data CREATE DATABASE stock_db; USE stock_db; -- create a table for company_info CREATE TABLE company_info ( company_id int NOT NULL, company text NOT NULL, symbol text, sector text, PRIMARY KEY (company_id) ); -- import data -- create table for exchange_info CREATE TABLE exchange_info ( ...
true
7a4604d86bbd312b7bc712abd90ad1f3e23b8556
SQL
Scorcherfjk/CSI-clients
/querys.sql
UTF-8
3,788
3.734375
4
[ "Unlicense" ]
permissive
select fecha.registro, cliente.nombre, responsable.nombre, proyecto.oportunidad, contacto.nombre, contacto.apellido from fecha, cliente, responsable, proyecto, contacto where fecha.proyecto_idproyecto = proyecto.idproyecto AND fecha.contacto_idcontacto = contacto.idcontacto...
true
c692c55549494aeb296b20c91a420cc0d791b64b
SQL
mdevaux001/ProjetWeb
/sql/quest.sql
UTF-8
6,768
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : lun. 05 mars 2018 à 17:10 -- Version du serveur : 10.1.30-MariaDB -- Version de PHP : 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
true
62e9dff0d9ab4ba74bfad54f3fcdf42443463f0d
SQL
AbabiyaAbajo/AntiCorruptionProject
/database/acsite.sql
UTF-8
20,983
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 12, 2019 at 10:33 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
7b6691119d3fe07e52abfff4676716df895de21d
SQL
alex7198/Developpement-Jeu-en-ligne
/BD/projetweb.sql
UTF-8
1,245
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : mer. 17 avr. 2019 à 13:33 -- Version du serveur : 5.7.24 -- Version de PHP : 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
true
3d01bf1213532c26420928a6b1a8994bcb3ef8fe
SQL
APregh/Buksza-APregh
/src/main/resources/liquibase/scripts/account-table-create.sql
UTF-8
426
2.734375
3
[]
no_license
CREATE TABLE ACCOUNT ( ID BIGINT NOT NULL PRIMARY KEY COMMENT 'Az elsődleges kulcs', ACCOUNT_NAME VARCHAR(255) NOT NULL COMMENT 'A fiók neve', AMOUNT BIGINT NOT NULL COMMENT 'A fiókhoz tartozó összeg', ACCOUNT_TYPE VARCHAR(50) NOT NULL COMMENT 'A fiók típusa' ) DEFAULT CHAR...
true
99fad13116c305902628745567cb3adb1a58512f
SQL
richhl/TFG_LAMP_ANSIBLE
/roles/mariadb/files/bdd.sql
UTF-8
408
2.828125
3
[]
no_license
DROP DATABASE IF EXISTS incidencias; CREATE DATABASE incidencias; USE incidencias; CREATE TABLE info( Nombre VARCHAR(30) NOT NULL, IP VARCHAR(15) NOT NULL, Correo VARCHAR(30) NOT NULL, Departamento VARCHAR(10) NOT NULL, Asunto VARCHAR(15) NOT NULL, Des...
true
30276d0789b8cccdfdf88b58d362fa0e20943e35
SQL
JmAUDIC/JmAUDIC.github.io
/Ex_Proj_BDD_SQL_L3/AleBD/controle.sql
UTF-8
764
2.84375
3
[]
no_license
CREATE ROLE agriculteur; GRANT INSERT(dateDebT_emp, num_adh, num_mat,dateFinT_emp), UPDATE(remarque_empr) ON EMPRUNT TO agriculteur; GRANT SELECT on MATERIEL to agriculteur; GRANT SELECT, INSERT, UPDATE on ENTRETIEN to agriculteur; GRANT agriculteur to L3_85; CREATE ROLE secretairebis; GRANT SELECT, UPDATE(dateD...
true
2b4a48c41557c61e979dca4c8d61c8d33a2d49f4
SQL
kuchwarh/CSCI2254-Degree-Planner
/sql/creates.sql
UTF-8
2,869
3.796875
4
[]
no_license
# Drop table queries: drop table fulfills; drop table enroll; drop table slots; drop table plan; drop table admins; drop table students; drop table reqs; drop table courses; drop table fields; drop table class_cats; drop table slots; # Create table for student users: create table students (id int not null...
true
a2d2366d4f2818551efe9bafd010fd50532bd83c
SQL
AntonNikitenko/Database
/lab4/fill.sql
UTF-8
3,509
2.609375
3
[]
no_license
insert into building(building_num,building_name) values (1, 'main office'); insert into building(building_num,building_name) values (2, 'security service office'); insert into department(dep_id,dep_name,building_num) values (15, 'administration' , 1); insert into department(dep_id,dep_name,building_num) values (10, ...
true
c8061b97abba77d1ee2addf68ad47ca5e049303b
SQL
christolivier/PROJET-GLA-Emploi-du-temps-IFI-2017
/emploi_temps_ifi.sql
UTF-8
6,174
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Client : 127.0.0.1 -- Généré le : Jeu 16 Novembre 2017 à 16:52 -- Version du serveur : 10.1.21-MariaDB -- Version de PHP : 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
true
af0342a5634ffb39d911ead7edf121ccacc6b085
SQL
biswarup81/patty-bebe
/install/data/GB/GB.sql
UTF-8
4,173
2.609375
3
[]
no_license
INSERT INTO `lc_currencies` (`status`, `code`, `number`, `name`, `value`, `decimals`, `prefix`, `suffix`, `priority`, `date_updated`, `date_created`) VALUES (1, 'GBP', '826', 'British Pound', 1.00, 2, '£', '', 0, NOW(), NOW()); -- -------------------------------------------------------- ALTER TABLE `lc_products_pric...
true
886aed13160754b1df3d4288b3ccb4215b7b3856
SQL
cs345team/social
/SocialNetworkWebsite/docs/setup.sql
UTF-8
3,220
3.5625
4
[]
no_license
DROP DATABASE `social`; CREATE DATABASE `social`; USE `social`; CREATE TABLE `image` ( `id` int(11) NOT NULL AUTO_INCREMENT, `img` longblob NOT NULL, PRIMARY KEY (`id`) ) AUTO_INCREMENT = 1; CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(255) NOT NULL, `passwd` varchar(20) NOT NUL...
true
02205e14445897f25ef1ca83563ca180d344babf
SQL
edmundham/SchoolAssignment
/3rdTerm/jsf/COMP3910_assignment3/db.sql
UTF-8
14,704
3.65625
4
[]
no_license
drop database if exists schedule; CREATE DATABASE schedule; drop user if exists 'admin_user'@'localhost'; drop user if exists 'admin_user'@'%'; CREATE USER 'admin_user'@'localhost' IDENTIFIED BY 'admin_user'; CREATE USER 'admin_user'@'%' IDENTIFIED BY 'admin_user'; GRANT ALL ON schedule.* TO 'admin_user'@'localhost'; G...
true
0146262c3b12b2e7369d529890609016f544a64c
SQL
cda-cambrai/php-oo
/11-tp/vtc.sql
UTF-8
1,564
3.265625
3
[]
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='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTI...
true
de079305fae41abe84cf28bf72f52e64d7fa16b1
SQL
roberko44/Buecherhandel24
/database/sql/finanzstudi.sql
UTF-8
5,954
3.25
3
[ "MIT" ]
permissive
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; CREATE ...
true
7b5bc7131b3f3e8d721edba6a3c13daa40213141
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day25/select2200.sql
UTF-8
178
2.625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-24T22:00:00Z' AND timestamp<'2017-11-25T22:00:00Z' AND temperature>=21 AND temperature<=22
true
e3e773822dae1ff533c529517a965ae110ec61f9
SQL
vetronog/DB
/lab4.sql
UTF-8
5,786
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Май 26 2017 г., 16:31 -- Версия сервера: 5.7.14 -- Версия PHP: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
be4ad718d0f75791d1902e34585edcde48cffc32
SQL
pgcodekeeper/pgcodekeeper
/ru.taximaxim.codekeeper.core.tests/src/main/resources/ru/taximaxim/codekeeper/core/drop_trigger_another_schema_new.sql
UTF-8
1,156
2.6875
3
[ "Apache-2.0" ]
permissive
-- -- PostgreSQL database dump -- SET client_encoding = 'UTF8'; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: another_triggers; Type: SCHEMA; Schema: -; Owner: postgres -- CREATE SCHEMA another_triggers; ALTER SCHEMA another_triggers OWNER TO postgres; -- -- Name: plpgsql; Type...
true
472f668b2e4cdd119383ddb383d2b48ea97a39f1
SQL
jacksontj/dataman
/sql/dataman_storage/dataman_storage_007.sql
UTF-8
12,071
2.90625
3
[ "MIT" ]
permissive
/* Navicat PGSQL Data Transfer Source Server : local Source Server Version : 90602 Source Host : localhost:5432 Source Database : dataman_storage Source Schema : public Target Server Type : PGSQL Target Server Version : 90602 File Encoding : 65001 Date: 2017-05...
true
eeff28f78a2bfe2ddc28eb486a5e7fc2a8350b16
SQL
gyp/valasztas-adatbazis
/queries/ervenytelen_listas_egyeni_diff.sql
UTF-8
1,298
3.78125
4
[]
no_license
SELECT ervenytelen_egyeni.valasztokorzet, ervenytelen_listas.ervenytelen_szavazolapok AS ervenytelen_szavazolapok_listas, ervenytelen_egyeni.ervenytelen_szavazolapok AS ervenytelen_szavazolapok_egyeni, ervenytelen_listas.ervenytelen_szavazolapok - ervenytelen_egyeni.ervenytelen_szavazolapok AS ervenytelen_szavaz...
true
19c30c0032f0ea5365375da39617d675d839987c
SQL
radtek/abs3
/sql/mmfo/bars/Table/cck_ob22.sql
WINDOWS-1251
7,733
2.90625
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/CCK_OB22.sql =========*** Run *** ==== PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
3874362e0054965d4155ae7c18ef3f887baf179c
SQL
ahueteg/Datamart-MKT
/Lab SQL/VISTAS/VISTA GLP SELLOUT.sql
ISO-8859-10
3,148
3.609375
4
[]
no_license
/*demo*/ SELECT A.Fecha, A.GrpID GrupoID, B.CadenaID, C.OficinaID, D.Grupo1ID GrupoTratID, F.SupervisorID, E.VendedorID, NULL UbigeoID, H.ProPstID, J.PdvID, I.PrecioID, A.UnidDesp, A.MontoDespCliente, A.UnidDesp*I.PrecioLista MontoDesp FROM per.GLP_SELLOUT A LEFT JOIN per.MAESTRO_CADENA B ON A.CadenaIDClie=B.Cadena...
true
6699fc93f50c5be9303af2e8ba856884a0d649c8
SQL
cms-sw/hlt-confdb
/sql/revoke_restore_privileges_procedures_ORACLE.sql
UTF-8
4,820
3.765625
4
[]
no_license
--------------------------------------------------------------------------------- --- CREATOR: Raul Jimenez Estupinan <raul.jimenez.estupinan@cern.ch> --- DATE: 2011-12-16 --- FILE: revoke_restore_privileges_procedures_ORACLE.sql --------------------------------------------------------------------------------- -- SET...
true
c88daf30eb0d8564f17b8c2b940c43b78ce55ac4
SQL
mseong123/protocount-nodejs-mysql
/mysql_files/STORED PROCEDURES/PURCHASE_DEBIT_NOTE/SELECT_PURCHASE_DEBIT_NOTE.sql
UTF-8
1,057
3.546875
4
[]
no_license
DELIMITER // CREATE PROCEDURE SELECT_PURCHASE_DEBIT_NOTE(IN PURCHASE_DEBIT_NOTE_NUM_PARAM VARCHAR(50)) BEGIN DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN ROLLBACK; RESIGNAL; END; START TRANSACTION; SELECT CREDITOR_NUM, CREDITOR_NAME, CREDITOR_ADDRESS,PURCHASE_DEBIT_NOTE_NUM,PURCHASE_DEBIT_NOTE_DATE,PURCHASE_DEBIT_NOTE_...
true
eb1c8f7c20608eef7e29b9d4678157b66633b6a3
SQL
VuDinh/SA
/javafxtest/out/production/javafxtest/Controllers/Server/accounts.sql
UTF-8
2,029
2.734375
3
[]
no_license
drop table if exists accounts; drop table if exists heroBeginPositions; drop table if exists monsterBeginPositions; drop table if exists monsterPositions; create table accounts( username text primary key, password text ); insert into accounts(username,password) values('long','123'); insert into accounts(username,pa...
true
0fcc0d83dc64686c5db6adf53e6e99ee298c536c
SQL
ProgressoRU/students
/protected/sql/students.sql
UTF-8
4,536
3.546875
4
[]
no_license
/* Navicat MySQL Data Transfer Source Server : MySql Source Server Version : 50523 Source Host : localhost:3306 Source Database : students Target Server Type : MYSQL Target Server Version : 50523 File Encoding : 65001 Date: 2015-05-06 23:25:31 */ SET FOREIGN_KEY_CHECKS=0; -- ----...
true
8b84f4f94c0a5644826c55e561809c5d2fb5b36e
SQL
nttv/C1120G1-NguyenThiTuongVi
/Module-3/session_2/banking_db.sql
UTF-8
1,354
4.09375
4
[]
no_license
create database ss2_banking_db; use ss2_banking_db; CREATE TABLE customers ( customer_number INT AUTO_INCREMENT PRIMARY KEY, fullname VARCHAR(100) NOT NULL, address VARCHAR(255), email VARCHAR(100) NOT NULL, phone VARCHAR(20) NOT NULL ); CREATE TABLE accounts ( account_number INT AUTO_INCREMEN...
true
a73e3f79881916a1416c7ace83c5233842cbc98b
SQL
caioRafael/projetoOficina
/MecanicaGomesAtualizado09_01.sql
UTF-8
3,058
3.484375
3
[]
no_license
create database MecanicaGomes; use MecanicaGomes; create table cliente( id_cliente integer auto_increment, nome varchar(60), email varchar(45) not null, senha varchar(45) not null, endereco varchar(60), telefone varchar(45), primary key(id_cliente) ); insert into cliente( nome, email,senha,endereco,tele...
true
9726aba02cb1424d6971b05401f391eab19c13cb
SQL
LEO-DAC/tecnologiasYaplicacionesWeb
/trabajo en clase/practica07/practica07_final_.sql
UTF-8
6,457
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 05-06-2019 a las 02:51:42 -- Versión del servidor: 10.1.40-MariaDB -- Versión de PHP: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
ab992e6733aca437f03f13e5cfeb82271a921f65
SQL
617961/uni
/it350/IT350-PZ-Aleksandra_Blagojevic_3801/UniversitySystem/unibase.sql
UTF-8
14,322
3.203125
3
[]
no_license
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 1/12/2020 7:55:14 PM */ /*==============================================================*/ create database if not exists unibase; use ...
true
bbe8d8a252207a2b9d9ad810685d0dedd9d38c2d
SQL
Mtutak/Bamazon
/Bamazon.sql
UTF-8
1,308
3.65625
4
[]
no_license
CREATE DATABASE Bamazon; USE Bamazon; CREATE TABLE products ( item_id INTEGER AUTO_INCREMENT NOT NULL, product_name VARCHAR(50) NOT NULL, department_name VARCHAR(50) NULL, price DECIMAL(10,2) NOT NULL, stock_quantity INTEGER NOT NULL, primary key (item_id) ); -- Added for part 3 -- USE Bamazon; ...
true
4e0502d4cf1b62e8e165fa8339b11b93e778f23c
SQL
JosephaGK/BlogCode
/study-shiro/src/main/resources/sql/roles_permissions_default.sql
UTF-8
1,174
3.0625
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50717 Source Host : localhost:3306 Source Schema : study-shiro Target Server Type : MySQL Target Server Version : 50717 File Encoding : 65001 Date: 13/03/201...
true
997e5817ca57b768b8922f3243b1152ae6c52848
SQL
Reiuiji/ECE564-Database-Programming
/FinalExam/part1.sql
UTF-8
1,321
4.34375
4
[ "MIT" ]
permissive
--1) Write an SQL statement which returns the fish scientific name, the average -- number in stock and the average stock value (number in stock * price) for -- the fish species (e.g. Chaetodon “butterfly fish” or Scaridae “parrot fish”) -- for all the marine fish we have in stock. (10 pts) PROMPT =====================...
true
5a760223bbd2eabc978d7989f63071509d50e10a
SQL
manas0801/spring-security
/spring-security-with-user-datasource/src/main/resources/schema.sql
UTF-8
550
3.078125
3
[]
no_license
create table if not exists users (id IDENTITY not null ,username varchar(45), password varchar(45),enabled INT ,primary key(id)); create table if not exists authorities (id IDENTITY not null ,username varchar(45),authority varchar(45), primary key(id)); INSERT INTO USERS (username,password,enabled) values('sumit','1...
true
075692336fd07db525ac625a62f266aff684297a
SQL
FUUK/fuuk
/fuuk/people/models/sql/updates/update-0.11-flatpage.mysql.sql
UTF-8
821
3.4375
3
[]
no_license
INSERT INTO django_flatpage (id, url, title, title_en, title_cs, content, content_en, content_cs, enable_comments, template_name, registration_required) SELECT f.id, f.url, coalesce(f_en.title, ''), f_en.title, f_cs.title, coalesce(f_en.content, ''), f_en.content, f_cs.content, ...
true