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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0ec2ad936ee39c229567b95637f6e7f8fd3b26df | SQL | rlman/sql-challenge | /EmployeeSQL/EmployeeSQL_queries.sql | UTF-8 | 3,989 | 4.53125 | 5 | [] | no_license | -- Data Analysis
-- Section 1:
-- 1. List the following details of each employee: employee number, last name, first name, gender, and salary.
-- Use aliases for column names and sort by "Employee Number" (Lessons: 05-Stu_Order_By and 06-Ins_Subqueries)
-- show "Salary" column as currency - (CAST(s.salary AS MONE... | true |
d9afff9b63f7acf94be2e25d52cc79c3eda28367 | SQL | ArtemZaikovsky/Back | /src/main/resources/db/migration/V32__init_retail_stores.sql | UTF-8 | 928 | 2.765625 | 3 | [] | no_license | INSERT INTO retail_stores (id, activity_status, default_taxation_system, is_active, name, order_taxation_system,
revenue, sales_invoice_prefix, company_id)
VALUES (1, 'Онлайн', 'ОСН', true, 'Магазин 1', 'ОСН', 10000.00, 'SI', 1),
(2, 'Был в сети вчера', 'ОСН2', true, 'Магазин 2', 'УСН.... | true |
f1cb3a4ea510bb3f36d7dac97ee071916cd55ff5 | SQL | jeromanm/kronos | /views/data-provider/empleo.sql | UTF-8 | 1,525 | 3.265625 | 3 | [] | no_license | /*
* Este programa es software libre; usted puede redistribuirlo y/o modificarlo bajo los terminos
* de la licencia "GNU General Public License" publicada por la Fundacion "Free Software Foundation".
* Este programa se distribuye con la esperanza de que pueda ser util, pero SIN NINGUNA GARANTIA;
* vea la licencia "... | true |
b89dfa1488d67005ad9b1893e4f4094dcdaab969 | SQL | javornikolov/log4oracle | /object_tables.sql | UTF-8 | 645 | 3.140625 | 3 | [
"Apache-2.0"
] | permissive | DESC formattinginfo
create table fi_tab of formattinginfo;
insert into fi_tab values(1,999, 0);
select ref(e) from fi_tab e;
create table ref_fi (ID REF formattinginfo);
INSERT INTO ref_fi
select ref(e) from fi_tab e;
select deref(id) from ref_fi;
desc logger
create table allloggers of logger(primary key (m_na... | true |
aeff8d70b605a9a1262533eeee346d4516aad143 | SQL | AlexTaranukha/Recommendation-Engine | /Script.sql | UTF-8 | 20,846 | 3.53125 | 4 | [] | no_license |
drop table age;
CREATE TABLE public.age (
ageid int4 NOT NULL,
age int4 NOT NULL
)
diststyle all
sortkey (ageid);
copy age from 's3://graphdb-poc/import/age.csv'
credentials 'aws_access_key_id=AKIAI2JJE32L2S7MQC3Q;aws_secret_access_key=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'
delimiter ','
REMOVEQUOTES
IGNOREHEAD... | true |
2d262a3f27275eaacba8a9b7722ccbec5e2fa205 | SQL | FabianoFaria/monitoramento | /_install/tb_atividade.sql | UTF-8 | 1,683 | 3.171875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 04-Abr-2017 às 18:16
-- Versão do servidor: 5.7.14
-- PHP Version: 5.6.25
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */... | true |
7cb51e1355fb7e7de5caf137f9209b54de95dd15 | SQL | pxlit-projects/AD_IT02 | /Website/project.sql | UTF-8 | 7,566 | 3.125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Machine: 127.0.0.1
-- Gegenereerd op: 23 mrt 2015 om 19:39
-- Serverversie: 5.6.17
-- PHP-versie: 5.5.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!4... | true |
a8b44d823cb89fdec2c746181a53e2ae901f4c7b | SQL | dicrojasch/homeworks_data_science | /3.aprendiendo_mysql_mariadb/capitulo_12_aggregate_numeric_functions/ch12_pg240-241_aggregate-numeric-functions_concatenate-group.sql | UTF-8 | 518 | 3.640625 | 4 | [] | no_license | SELECT bird_orders.scientific_name AS 'Bird Order',
GROUP_CONCAT(bird_families.scientific_name) AS 'Bird Families in Order'
FROM rookery.bird_families
JOIN rookery.bird_orders USING(order_id)
WHERE bird_orders.scientific_name = 'Charadriiformes'
GROUP BY order_id;
SELECT bird_orders.scientific_name AS 'Bi... | true |
ab531eeea83f1829c5bedfacab23e0fe102d6585 | SQL | maharaniindah/AbsenPraktikum | /absensi_labprak.sql | UTF-8 | 3,955 | 3.1875 | 3 | [] | no_license | -- --------------------------------------------------------
-- Host: localhost
-- Server version: 10.1.37-MariaDB - mariadb.org binary distribution
-- Server OS: Win32
-- HeidiSQL Version: 9.4.0.5125
-- ------------------------------------------------... | true |
7754889c21763212e3846629f73a0ca1928096a2 | SQL | varadjos89/Database-Management-Project | /SQL SCRIPT/Users_and_Privileges.sql | UTF-8 | 757 | 3.234375 | 3 | [] | no_license | -- -----------------------------------------------------
-- CREATING USERS
-- -----------------------------------------------------
DROP PROCEDURE IF EXISTS creating_users;--
DELIMITER $$
CREATE PROCEDURE creating_users(IN name VARCHAR(45), IN password VARCHAR(45))
BEGIN
SET @username = name;
SET @pass =... | true |
4d72ae7071439a5b94d9148237db6dbb764da0d7 | SQL | VertZu/dohtu-pictures | /dohtuproj.sql | UTF-8 | 4,021 | 3.09375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 22, 2018 at 08:09 AM
-- Server version: 10.1.30-MariaDB
-- PHP Version: 7.2.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
28510b946f498162ba8811002a6c4cbe37f965cd | SQL | dhandy2013/wake-fire-planning | /response-times-query-1.sql | UTF-8 | 12,349 | 3.140625 | 3 | [
"BSD-2-Clause"
] | permissive | SELECT
ID AS COL0,
UnitName AS COL1,
IncidentNumber AS COL2,
DateTimeReceived AS COL3,
Address AS COL4,
ResponseArea AS COL5,
ProblemDescription AS COL6,
TimeAssigned AS COL7,
TimeEnroute AS COL8,
TimeArrived AS COL9,
ProcessingTime AS COL10,
TurnoutTime AS COL11,
Tra... | true |
e1ca2729942fb422993456811690ef5904f931a3 | SQL | jolly-roger/picpuk | /sql/resource.sql | UTF-8 | 574 | 3.578125 | 4 | [] | no_license | create sequence id_resource_seq minvalue 0 start 0;
create table resource (
id_resource bigint primary key not null default nextval('id_resource_seq'),
"alias" varchar(256) not null,
"domain" varchar(256) not null,
is_verified boolean not null default false
);
create table user_resource (
resource_id... | true |
0ed7a31583a42bad698b6fcfb37cc174afbec4c9 | SQL | JoaoPauloLeal/toolbox | /packages/tools/compras/sql_padrao/busca_propostas_faltando.sql | UTF-8 | 540 | 4.15625 | 4 | [] | no_license | SELECT DISTINCT i_entidades entidade ,
i_ano_proc ano ,
i_processo processo,
i_credores credor,
COUNT(i_item) total_proposta,
(SELECT count(i_item)
FROM compras.itens_processo ip
WHERE ip.i_ano_proc = p.i_ano_proc
and ip.i_processo = p.i_processo
and ip.i_entidades = p.i_entidades) total_itens,
(total_i... | true |
97d1be1d1bdcdd21fb39b1618f71c4e9611fa772 | SQL | SerTelnov/database-course | /week7/test_values.sql | UTF-8 | 750 | 3.078125 | 3 | [] | no_license | \c university3;
insert into groups
(id, name)
values
(1, 'M3435'),
(2, 'M3437'),
(3, 'M3439');
-- (4, 'M4139');
insert into students
(id, name, group_id)
values
(1, 'Michael Putilin', 3),
(2, 'Eugene Feder', 3),
(3, 'Nina Zhevtyak', 2),
(4, 'Sergey Telnov', 1);
insert into courses
(id, name)
values
(1, 'Algorithms ... | true |
9ae52fcea36f16bb11697399022f8cdb66be418b | SQL | tomthebarbarian/Bootcampx | /3_queries_group-by/1_GetLgCoh.sql | UTF-8 | 154 | 3.640625 | 4 | [] | no_license | SELECT cohorts.name, count(*)
FROM cohorts
JOIN students ON cohorts.id = students.cohort_id
GROUP BY cohorts.name
HAVING count(*) >= 18
ORDER BY count(*); | true |
40416141ba7adeb4a8f6812f326d8898302788ee | SQL | tsholmes/leetcode-go | /01/96-delete-duplicate-emails/main.sql | UTF-8 | 141 | 3.09375 | 3 | [] | no_license | DELETE
p1
FROM
Person AS p1
WHERE
p1.Id NOT IN (
SELECT
MIN(p2.Id)
FROM
Person p2
GROUP BY
p2.Email
);
| true |
0a197a94cf1af0c146150f7e7dd60d26abacb222 | SQL | kubbit/gerkud | /sql/errenteria/jatorrizko_saila.sql | UTF-8 | 1,884 | 2.578125 | 3 | [] | no_license | SET foreign_key_checks = 0;
TRUNCATE TABLE jatorrizko_saila;
INSERT INTO `jatorrizko_saila` (`id`) VALUES
(1),
(2),
(3),
(4),
(5),
(6),
(7),
(8),
(9),
(10),
(11),
(12),
(13),
(14),
(15),
(16),
(17),
(18),
(19),
(20),
(21),
(22),
(23),
(24),
(25);
TRUNCATE TABLE j... | true |
0249838c4fab2b3ea95451d3b086042ea15b4e48 | SQL | spotlightpa/almanack | /sql/schema/002_article.sql | UTF-8 | 1,112 | 3.546875 | 4 | [
"MIT"
] | permissive | CREATE TABLE article_status (
status_id character (1) PRIMARY KEY,
description text NOT NULL DEFAULT ''
);
INSERT INTO article_status ("status_id", "description")
VALUES ('U', 'Unset'),
('P', 'Planned'),
('A', 'Available');
CREATE TABLE article (
id serial PRIMARY KEY,
-- Arc fields
arc_id character v... | true |
4a374c1b2886fd391b6f3e6a44fb38aaeaad2ee8 | SQL | srisraman/banr-period-budgeting | /Group Rules/UGGFON.sql | UTF-8 | 404 | 3.09375 | 3 | [] | no_license | -- UGGFON - Undergrad - Greater than Full Time - On Campus
-- Undergraduate Students who are greater than full time and living on campus.
SELECT DISTINCT(rzvpbgp_pidm)
FROM rzvpbgp
WHERE rzvpbgp_pidm = :PIDM
AND rzvpbgp_aidy_code = :AIDY
AND rzvpbgp_period = :PERIOD
AND rzvpbgp_levl_code = 'UG'
AND rzvpbgp_bil... | true |
f7811c341600f283f8684d0e0556a9b27ea1c923 | SQL | Ellipse120/KFC | /db.sql | UTF-8 | 656 | 3.140625 | 3 | [] | no_license | create table user(
userid int primary key auto_increment,
username varchar(20),
password varchar(20),
phonenum varchar(20),
address varchar(80)
);
alter table user modify phonenum varchar(20);
alter table user modify password varchar(40);
insert into user(username,password,phonenum,address)
values('... | true |
0e9b61d973260522cc86af9b6c17686ae72409e0 | SQL | zakwarren/UsefulSqlQueries | /code/SpacialData.sql | UTF-8 | 261 | 2.703125 | 3 | [
"BSD-3-Clause"
] | permissive | -- Convert latitude and longitude to spacial data
select convert(geography, 'Point('
+ convert(varchar(20), Longitude)
+ ' '
+ convert(varchar(20), Latitude)
+ ')'
) as SpacialData; | true |
a8c6be8426df90a57107b0c1fad557c720c07552 | SQL | kielkow/c_mysql | /aula06DB.sql | UTF-8 | 1,483 | 3.734375 | 4 | [] | no_license | alter table pessoas -- > ADD UMA COLUNA
add column profissao varchar(10);
alter table pessoas -- > APAGAR UMA COLUNA
drop column profissao;
alter table pessoas -- > ADD UMA COLUNA APÓS OUTRA COLUNA
add column profissao varchar(10) after nome;
alter table pessoas ... | true |
8489c7d630d31e46c1a373f8c9d3dd07dd2d1ce0 | SQL | hisamekms/stock-support | /conf/evolutions/default/1.sql | UTF-8 | 374 | 2.9375 | 3 | [] | no_license | # --- !Ups
CREATE TABLE stocks (
"id" VARCHAR NOT NULL PRIMARY KEY,
"code" VARCHAR NOT NULL,
"name" VARCHAR NOT NULL,
"marcket" INT NOT NULL
);
CREATE TABLE daily_reports (
"stock_id" VARCHAR NOT NULL,
"date" DATE NOT NULL,
"open" DECIMAL,
"close" DECIMAL,
"high" DECIMAL,
"row" DECIMAL
);
# --- !D... | true |
a43068d06f3599393af4a9e358c0f6f63c3feb89 | SQL | sbpi/siw | /SP_Oracle92/siw/VW_PROJETOS.sql | UTF-8 | 544 | 3.34375 | 3 | [] | no_license | CREATE OR REPLACE VIEW VW_PROJETOS AS
select a.sq_pessoa as cliente, a.nome as nm_menu, a.sq_menu, b.sq_siw_solicitacao, b.titulo, b.codigo_interno, b.codigo_externo, b.descricao
from siw_menu a
inner join siw_solicitacao b on (a.sq_menu = b.sq_menu)
i... | true |
e348835ccfa50c02603ed19265a25789831a8b6c | SQL | A-Green/NewsManager | /News/src/main/resources/sqlQueries/6/NEWS_TAG_LOG_TG.sql | UTF-8 | 503 | 2.90625 | 3 | [] | no_license | --------------------------------------------------------
-- DDL for Trigger NEWS_TAG_LOG_TG
--------------------------------------------------------
CREATE OR REPLACE TRIGGER "NEWS_MANAGER"."NEWS_TAG_LOG_TG"
BEFORE INSERT ON NEWS_TAG FOR EACH ROW
DECLARE
v_content VARCHAR(500);
BEGIN
v_content := 'NEWS:' |... | true |
b87fc74bb40c13be1b23ed667edcf1f3b5d93aec | SQL | blast-hardcheese/vocities | /conf/evolutions/default/7.sql | UTF-8 | 2,134 | 3.359375 | 3 | [
"Apache-2.0"
] | permissive | # --- !Ups
insert into "templates" (id, key, css_values, css_template) values (1, 'html5up-read-only', 'null', '');
update "templates" set css_values = '
{
"youtube_width": null,
"youtube_height": null,
"primary_bg": "#4acaa8",
"primary_color": "#d1f1e9",
"hilight_color": "#b6e9dc",
"accent_color": "#5cc... | true |
48c7a23941fd007416756b8db692894ef41ed36c | SQL | marcoaoteixeira/InfoFenix | /src/InfoFenix.Resources/SQLs/CreateDatabaseSchema.sql | UTF-8 | 1,339 | 3.15625 | 3 | [] | no_license | CREATE TABLE IF NOT EXISTS [migrations] (
[version] TEXT PRIMARY KEY NOT NULL,
[date] DATETIME NOT NULL
);
-- Seed first migration
INSERT INTO [migrations] VALUES ('00000000000000', '0000-01-01 00:00:00');
CREATE TABLE IF NOT EXISTS [document_directories] (
[document_director... | true |
f402df0d13f326827cfaf37c780739a290ad2d42 | SQL | parthasarathygopu/parthasarathy_reactsample | /full_back_up/project/project_scorecard_query.sql | UTF-8 | 3,477 | 3.109375 | 3 | [] | no_license | create table Project_details(Projectid int IDENTITY(1,1),Projectcode int UNIQUE,Projectname varchar(200));
create table Question_scope(Scopeid int IDENTITY(1,1), Scopename varchar(200));
create table Project_scope_mapping(Projectid int,Qstatus varchar(10),Qscore int, Qweight int, Qtotal int ,Revieweddate Date NOT NULL ... | true |
48df464dab7b561067f03289d01793306dc8923f | SQL | WPI-SGA-Financials/Financial-Database-SQL | /Views/Overall Numbers.sql | UTF-8 | 1,076 | 4.15625 | 4 | [] | no_license | # Get's the Overall Numbers
Create or Replace View `Overall Numbers` as
Select 'Allocated Budget' AS `Title`,
sum(`Amount_Proposed` + `Approved_Appeal`) AS `Amount`
FROM Budget B
Inner Join Organizations O on B.`Name of Club` = O.`Name of Club`
INNER JOIN BudgetSection BS on B.ID = B_ID
... | true |
0c74ec769368a3b4c0a17bd12d43770a4040eb8c | SQL | hw-research-perspectives/SQL-Scripts | /get month data for vw_schoolscontrpertopic.sql | UTF-8 | 820 | 4.125 | 4 | [] | no_license | SELECT scpt.*, dates.date1 FROM vw_schoolscontrpertopic scpt
JOIN (select
m1 as date1
from
(
select
(( SELECT MIN(StartDate)
FROM vw_schoolscontrpertopic)
- INTERVAL DAYOFMONTH((SELECT MAX(EndDate) FROM vw_schoolscontrpertopic))-1 DAY)
+INTERVAL m MONTH as m1
from
(
select @rownum:=@rownum+1 as m from
(s... | true |
4781a5b2560c6312b1a06b930a0e9a5e3b7caa51 | SQL | karlarao/scripts | /performance/flush_sqlid.sql | UTF-8 | 1,053 | 2.703125 | 3 | [
"MIT"
] | permissive | REM Flushes one cursor out of the shared pool. Works on 11g+
REM To create DBMS_SHARED_POOL, run the DBMSPOOL.SQL script.
REM The PRVTPOOL.PLB script is automatically executed after DBMSPOOL.SQL runs.
REM These scripts are not run by as part of standard database creation.
SPO flush_cursor_&&sql_id..txt;
PRO *** before ... | true |
4bc7f4ec99e4f28ae2047db63afd60008ae98644 | SQL | sharlenerozario8/pantheon-exp | /pantheon_exp.sql | UTF-8 | 1,550 | 3.1875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Mar 25, 2021 at 10:43 AM
-- Server version: 10.4.18-MariaDB
-- PHP Version: 8.0.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... | true |
9a0e60406e93cbaacb9cb74e6423f17c0e414828 | SQL | gloriaobregon/AI | /#E13 FT Claims.sql | UTF-8 | 3,350 | 3.453125 | 3 | [] | no_license | Select
[Incident Code Group],
[Client Cost inc tax] as [Demand Amount or Client Cost or Repairs Invoiced],
[Consolidator] as [Consolidator],
[Client] as [Client],
[Claim Number] as [Claim Number],
[Report Date] as [Date],
[Status] as [Claim Status or Recovery Type or Assessment Type],
[Incident Code] as [Incid... | true |
bb6e2b27ba9b6e0866f9d1a26921fea04f499dd4 | SQL | miths1108/PiGen | /codd-data-gen/resources/cdgclient/postgres/sqlqueries1/q15.sql | UTF-8 | 150 | 2.515625 | 3 | [] | no_license | -- query 14
select *
from
lineitem,
part
where
l_partkey = p_partkey
and l_shipdate >= '1993-11-01'
and l_shipdate < '1993-12-01'
;
| true |
11f7bc72352030741ccb3d2f7e2e9679e07af3df | SQL | gweilu/sql | /线路运营情况汇总.sql | UTF-8 | 6,847 | 3.4375 | 3 | [] | no_license | select org1.orgname,
route.routename,
sum(p1.milenum) sjlc,
sum(p1.checi) sjcc,
SUM(CASE WHEN route.routetype=1 THEN p1.checi/2 ELSE p1.checi END) sjcc11,
sum(p2.jhlc) jhlc,
sum(p2.jhcc) jhcc,
SUM(CASE WHEN route.routetype=1 THEN p2.jhcc/2 ELSE p2.jhcc END) jhcc11,
... | true |
a81110a979f0b4140d46b8af7a5978726c80edad | SQL | clalley/windowsticker | /conf/evolutions/default/1.sql | UTF-8 | 1,122 | 2.625 | 3 | [] | no_license | # --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table inventory (
id bigint not null,
dealer_id varchar(255),
stock varchar(255),
year varchar(255),
mak... | true |
e0a623de34d94b3844d2a9ce257efdb2a3ea2b78 | SQL | KendallCheek/stay-pawsitive | /web/Project_database_Script.sql | UTF-8 | 3,425 | 3.984375 | 4 | [] | no_license | /*Drop table statements and create table statements for each table, including variables, primary keys, not null attributes, and value initialization*/drop table "APP".CUSTOMER;
drop table "APP".CUSTOMER;
create table "APP".CUSTOMER
(
CUSTOMERID INTEGER not null GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY ... | true |
0e44e72ef1c1446098d21876d47df9b7ffb238b2 | SQL | jgarzonext/plsql-testing | /script_plsql/bd_iaxis/script/tables/HIS_DOCUMENTPRO.sql | ISO-8859-3 | 2,799 | 2.78125 | 3 | [] | no_license | --------------------------------------------------------
-- DDL for Table HIS_DOCUMENTPRO
--------------------------------------------------------
CREATE TABLE "AXIS"."HIS_DOCUMENTPRO"
( "CDOCUMENT" NUMBER(22,0),
"NVERSION" NUMBER(22,0),
"NORDEN" NUMBER(22,0),
"CRAMO" NUMBER(22,0),
"CMODALI" NUMBER(22,0... | true |
ff576b0c4832dcfa6cb60529ebb1e6c88f80d0e4 | SQL | Khakov/SimpleWebapp_Spring | /src/main/resources/db/initDb.sql | UTF-8 | 458 | 2.90625 | 3 | [] | no_license | -- создаем таблицу для работы режима remember-me
CREATE TABLE persistent_logins (
username varchar(64) not null,
series varchar(64) not null,
token varchar(64) not null,
last_used timestamp not null,
PRIMARY KEY (series)
);
-- оздаем таблицу пользователей
CREATE TABLE users (
id INTEGER PRIMARY KEY NOT NULL... | true |
cb2248eeef18927a0166e26287da26f1287e18f2 | SQL | Leoche/Sendfiles | /files.sql | UTF-8 | 1,155 | 2.6875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.5.2
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: May 20, 2016 at 03:23 PM
-- Server version: 5.7.9
-- PHP Version: 5.6.16
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/... | true |
fca4c7ecc816f3ade0ce3eb42107c577fefec824 | SQL | googlemap2/MIL | /sql/db_mil.sql | UTF-8 | 10,036 | 2.71875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Máy chủ: 127.0.0.1
-- Thời gian đã tạo: Th8 09, 2020 lúc 06:57 PM
-- Phiên bản máy phục vụ: 10.4.11-MariaDB
-- Phiên bản PHP: 7.4.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARA... | true |
e9f071292bb1765b11f8bad1fb6ce7db9e3c9f51 | SQL | TheoObbard/W3D2_classwork | /AAquestions/import_db.sql | UTF-8 | 2,162 | 3.765625 | 4 | [] | no_license | PRAGMA foreign_keys = ON;
DROP TABLE question_follows;
DROP TABLE replies;
DROP TABLE questions_likes;
DROP TABLE questions;
DROP TABLE users;
CREATE TABLE users (
id INTEGER PRIMARY KEY,
fname TEXT NOT NULL,
lname TEXT NOT NULL
);
CREATE TABLE questions (
id INTEGER PRIMARY KEY,
title VARCHAR(255) NOT NUL... | true |
6308b4d15fedaa6b2a02ba919296b85ffab46bc5 | SQL | SZUE/webedition-code-autoimport | /webEdition/liveUpdate/sqldumps/tblthumbnails.sql | UTF-8 | 1,275 | 2.828125 | 3 | [] | no_license | CREATE TABLE ###TBLPREFIX###tblthumbnails (
ID int unsigned NOT NULL auto_increment,
Name varchar(255) NOT NULL default '',
`Date` int unsigned NOT NULL default '0',
Format char(3) NOT NULL default '',
Height smallint unsigned default NULL,
Width smallint unsigned default NULL,
`Options` set('Ratio','Maxsi... | true |
c518d02697bb3c1e644951d0436caa7766f833f7 | SQL | maxpsq/oracert | /1Z0-144/Oracle_R11g/09.Creating_Procedures/09.02.Create_a_simple_procedure_and_invoke_it_from_an_anonymous_block.sql | UTF-8 | 3,923 | 3.84375 | 4 | [] | no_license | /*
To CREATE or REPLECE a PROCEDURE
- in your own schema, you must have the CREATE PROCEDURE system privilege
- in another user's schema, you must have the CREATE ANY PROCEDURE system privilege.
You can DROP a procedure when either of this conditions is met:
- the procedure is in your own schema and you have the CREAT... | true |
6d4cfe5e25dfdb843665c006aadc0584ef3053a1 | SQL | DenisSh84/Pizza | /modules/core/db/update/postgres/21/210813-2-createOrderItem.sql | UTF-8 | 398 | 3.28125 | 3 | [] | no_license | alter table PIZZA_ORDER_ITEM add constraint FK_PIZZA_ORDER_ITEM_ON_ORDER foreign key (ORDER_ID) references PIZZA_ORDER(ID);
alter table PIZZA_ORDER_ITEM add constraint FK_PIZZA_ORDER_ITEM_ON_PIZZA foreign key (PIZZA_ID) references PIZZA_PIZZA(ID);
create index IDX_PIZZA_ORDER_ITEM_ON_ORDER on PIZZA_ORDER_ITEM (ORDER_ID... | true |
5f7c82ba02b1c55d36129eae016a2d691f3d1d3e | SQL | YauheniD/GodelDataMasteryPart1 | /Tasks/Barys/Task2/query04.sql | UTF-8 | 402 | 3.65625 | 4 | [] | no_license | --Query 4
SELECT
P.BusinessEntityID,
P.LastName,
P.FirstName
FROM AdventureWorks2019.Person.Person P
LEFT JOIN AdventureWorks2019.Person.BusinessEntityAddress BA
ON P.BusinessEntityID = BA.BusinessEntityID
LEFT JOIN AdventureWorks2019.Person.AddressType A
ON A.AddressTypeID = BA.AddressTypeID
WHE... | true |
6605ae6d568e9a62f3ee3b2bad77dbce588b550d | SQL | lychristy/SQL | /Leetcode/601. Human Traffic of Stadium.sql | UTF-8 | 290 | 3.84375 | 4 | [] | no_license | SELECT id,
visit_date,
people
FROM
(SELECT *,
count(*) OVER (PARTITION BY diff) AS MoreThan3Days
FROM
(SELECT *,
id - row_number() OVER (ORDER BY visit_date) AS diff
FROM stadium
WHERE people >= 100) t1) t2
WHERE MoreThan3Days >= 3 | true |
38427a8ebb274d899dd96b170fe6b95c8f24d687 | SQL | hqottsz/MXI | /am-query-test/src/main/resources/com/mxi/mx/core/services/assembly/AssemblyServiceIntegrationTest.sql | UTF-8 | 955 | 2.734375 | 3 | [] | no_license | -- Activate CAT_III and ETOPS sensitivities
-- Activate CAT_III, ETOPS, RII sensitivities
DELETE FROM ref_sensitivity;
INSERT INTO ref_sensitivity (sensitivity_cd, desc_sdesc, desc_ldesc, ord_id, warning_ldesc, active_bool) VALUES ('CAT_III', 'CAT III', 'Desc', 1, 'Warning', 1);
INSERT INTO ref_sensitivity (sensitivity... | true |
270fd06a9cb885747369ffeb34dd8343841f7e26 | SQL | AliakseyMank/TestTaskPets | /src/main/resources/data.sql | UTF-8 | 210,135 | 3.125 | 3 | [] | no_license | DROP TABLE IF EXISTS pets;
DROP TABLE IF EXISTS feeds;
DROP TABLE IF EXISTS pets_feeds;
DROP TABLE IF EXISTS customers;
DROP TABLE IF EXISTS customer_info;
CREATE TABLE customers (
id int AUTO_INCREMENT primary key,
first_name varchar (64) not null,
last_name varchar(64) not null
);
CREATE TABLE customer_i... | true |
ff2e5791e37f5f5123407df901c9aaf61830029b | SQL | wdg2012/ChatJavaWeb | /ssm/src/main/sql/schema.sql | UTF-8 | 875 | 3.171875 | 3 | [] | no_license | 数据库初始化脚本
创建数据库
CREATE TABLE seckill(seckill_id bigint NOT NULL AUTO_INCREMENT COMMENT '商品库存id',
name VARCHAR(120)NOT NULL ,
number int not null ,
start_time timestamp not null ,
end_time timestamp not null,
create_time timestamp not null DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(seckill_id),
KEY idx_start_time(start_time)... | true |
eac13752afb9e2b2b8aa913d8d46fbc6228fd9fd | SQL | phucle1112/ProjectHealthBOT | /Database/healthcare_bot.sql | UTF-8 | 742 | 3.4375 | 3 | [] | no_license | -- create database healthBOT
DROP DATABASE IF EXISTS healthBOT;
CREATE DATABASE healthBOT;
-- database healthBOT used for mordifing
USE healthBOT;
CREATE TABLE user_information
(
user_firstname VARCHAR(30) NOT NULL,
user_lastname VARCHAR(30) NOT NULL,
user_email VARCHAR (30),
user_id INT(1) NOT NULL, -- 1... | true |
8a4dbee526dee079217fae5f9334c0ea6f861dc2 | SQL | jha359/Past-Work | /CSE 111/Lab4/jaeha-hwang/test/5.sql | UTF-8 | 170 | 3.515625 | 4 | [] | no_license | SELECT COUNT(o_orderkey) FROM orders
INNER JOIN customer ON orders.o_custkey = customer.c_custkey AND customer.c_nationkey = 17
WHERE strftime('%Y', o_orderdate) = '1996' | true |
97ab1ee7ca6972edb247d741c4733fe9343845de | SQL | Prizmer/wui2 | /prizmer/static/sql_query_template/!new/electric/77. Balance_period.sql | UTF-8 | 2,151 | 4.1875 | 4 | [] | no_license | select balance_name,type,type_abon,sumT,res_name, c_date,
round((z1.sumT-lag(sumT) over (order by date))::numeric,3) as delta,
countAbon,
guid_types_abonents
from
(
Select *
from(select c_date::date
from
generate_series('18.03.2019'::timestamp without time zone, '26.03.2019'::timestamp without time zone, interval '1 ... | true |
6e1a46a5425255f9e19af739f46b660b4e6188a7 | SQL | wigalgh/smartussd_api | /db_script/bakeside.sql | UTF-8 | 4,900 | 3.390625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Dec 14, 2020 at 01:40 PM
-- Server version: 10.3.21-MariaDB-log
-- PHP Version: 7.3.13
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET... | true |
7e9a96b1932be6ff683151d471016e3035cb0995 | SQL | labakadam/zadaceNotepad | /zaposlenici.sql | UTF-8 | 317 | 2.796875 | 3 | [] | no_license | drop database if exists edunovaj19;
create database edunovaj19;
use edunovaj19;
create table pripravnik(
id int not null primary key auto_increment,
ime varchar(50) not null,
prezime varchar(50) not null
);
insert into pripravnik(id,ime,prezime) values
(1,'Adam','Labak'),
(2,'Matija','Labak'),
(3,'Marija','Labak'); | true |
57127e7ec1fd6991ec26bfeb22caa21f61dc0106 | SQL | ruwangaw/symfony-online-bookstore-backend | /docs/sympho_script.sql | UTF-8 | 12,113 | 3.734375 | 4 | [] | no_license | SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Schema sympho_online_bookstore
-- ----------------------... | true |
be0caba8df50b35f862316bedf68d0192a33d4fd | SQL | KasperMikkelsen/hej | /kode/login.sql | UTF-8 | 1,627 | 3.125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Vært: 127.0.0.1
-- Genereringstid: 11. 12 2017 kl. 10:48:15
-- Serverversion: 10.1.28-MariaDB
-- PHP-version: 7.1.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_... | true |
1256d2660627fbdf98dceb52c6025b39676fb912 | SQL | Sanj96/final-project- | /database/Immunization.sql | UTF-8 | 350 | 2.921875 | 3 | [] | no_license | CREATE TABLE Immunization(
immunizationID INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
details CHAR(100),
shotDate DATETIME,
patientID INT,
FOREIGN KEY (patientID) REFERENCES Patient(patientID)
);
LOCK TABLES Immunization WRITE;
INSERT INTO Immunization VALUES
(50001,'HPV Virus','2020/01/11',1001),(50002,'Tetanus','202... | true |
3d3c6adcefba57390246d56ba4ed4e01c9cd7d58 | SQL | belmaH/crud_blog | /db/crud_blog.sql | UTF-8 | 7,605 | 3.109375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 21, 2020 at 09:37 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
242ad458b75aba1bb09321fed65a299a6c2ff66c | SQL | SERGIODSA/Alquiler | /src/BD - Peliculas/create pelicula.sql | UTF-8 | 3,335 | 3.578125 | 4 | [] | no_license | SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL';
CREATE SCHEMA IF NOT EXISTS `Peliculas` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci ;
USE `Peliculas`;
CREATE TABLE IF NOT... | true |
86a84fc79108266a71e92fcd7e2b5f837321f5dc | SQL | vietduc030496/VTI-Java07-08 | /TUAN.phamvan2/sql/Assignment-SQL-4.sql | UTF-8 | 3,839 | 4.1875 | 4 | [] | no_license | -- Q1
SELECT * FROM `account`
INNER JOIN `department` ON account.DepartmentID = department.DepartmentID;
-- Q2
SELECT * FROM `account` WHERE CreateDate > 20/12/2010;
-- Q3
SELECT * FROM `account`
INNER JOIN `position` ON account.PositionID = position.PositionID
WHERE PositionName = "Dev";
-- Q4
SELECT * FROM `account`... | true |
36be4b3830c5602e63d8179e9a50658c825e5d54 | SQL | botte74/Sagra | /sql/db_sagra2016.sql | UTF-8 | 35,992 | 2.65625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Aug 28, 2016 at 10:30 AM
-- Server version: 5.5.50-0ubuntu0.14.04.1
-- PHP Version: 5.5.9-1ubuntu4.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_C... | true |
24ee02473bb15c29e5020046be06f91e5bb52554 | SQL | aofaa/mayanecotours | /mayanecotours.sql | UTF-8 | 5,692 | 2.9375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 22-06-2016 a las 22:47:28
-- Versión del servidor: 10.1.10-MariaDB
-- Versión de PHP: 5.6.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT... | true |
9fbcb9fa98b37e2d949c5b5e56e88eb252fe2cbd | SQL | sukantamajhi/growbasket-tutorial | /db_backup/test.sql | UTF-8 | 7,789 | 3.125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jun 05, 2021 at 04:48 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 |
61c480dc05d45ec39d68f0a82da9bd13ded95942 | SQL | andytanoko/4.2.x_integration | /GTAS/GridTalk/sqlscripts/document/patch-GT-2.2-03.sql | UTF-8 | 1,642 | 3.203125 | 3 | [] | no_license | # 21 Aug 2003 [Guo Jianyu] add "ProcessInstanceUid","ProcessInstanceID" and "UserTrackingID" in grid_document table
USE userdb;
ALTER TABLE grid_document ADD COLUMN ProcessInstanceUid bigint(20) AFTER Custom10;
ALTER TABLE grid_document ADD COLUMN ProcessInstanceID varchar(80) default NULL AFTER ProcessInstanceUid;
A... | true |
8bc118c01aecd85d9534896cbf37756f0223befa | SQL | ketkiambekar/MySQL-project-public-library | /Program_Queries.sql | UTF-8 | 4,304 | 4.34375 | 4 | [] | no_license | ##############################
##### Reader Menu ########
##############################
#1) Search by ID, Title , Publisher:
Select * from DOCUMENT where DOCID = 8 OR Title = 'Pride and Prejudice' OR PublisherID = 1
#2) Document Checkout
INSERT INTO BORROWING (BDTIME,RDTIME,DUEDATE) VALUES('2012-12-03',’’,'2012-12-... | true |
18b74ef2d4d2076d503c2ca4701ec5d62a1e7633 | SQL | MithrandirD/common_schema | /views/script/_script_report_data.sql | UTF-8 | 315 | 3.09375 | 3 | [
"MIT",
"BSD-3-Clause",
"GPL-1.0-or-later"
] | permissive |
--
-- Present only QueryScript report data relevant to current session
--
CREATE OR REPLACE
ALGORITHM = MERGE
SQL SECURITY INVOKER
VIEW _script_report_data AS
SELECT
*
FROM
_global_script_report_data
WHERE
server_id = _get_server_id()
and session_id = CONNECTION_ID()
with check option
;
| true |
3dc60a942890f03f274d0de395f78a49ac4ec3b6 | SQL | Kanna4528/AtoZ-Shopee | /database-mysql/ecom3.sql | UTF-8 | 9,340 | 2.734375 | 3 | [
"CC-BY-3.0"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Nov 09, 2017 at 03:50 PM
-- Server version: 10.1.13-MariaDB
-- PHP Version: 5.6.21
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL... | true |
ae01d6281e98938234befbb66c1a46926b89f219 | SQL | sikale/wisdompcb | /二层/鸿泰源代码/acessexe/file/EP191查本厂编号又没重复.sql | UTF-8 | 570 | 3.21875 | 3 | [] | no_license | select data0010.RKEY dk10,data0050.RKEY dk50,data0059.rkey dk59 from data0050
left join data0059 on cust_part_ptr=data0050.rkey
left join Data0010 on data0059.customer_ptr=data0010.RKEY
where data0059.ONHOLD_SALES_FLAG=0
order by CUSTOMER_PART_NUMBER
select dk10,dk50,dk59,COUNT(*) rownumber
from
(select data0010.RK... | true |
855c4204650f4299245a1f0da3448ba091309d14 | SQL | LizzytheRocker/TacoBolas | /phasethree.sql | UTF-8 | 3,785 | 3.90625 | 4 | [] | no_license | --Databases Project Phase 3
CREATE TABLE Player
(
Username varchar(32),
Password varchar(32),
Firstname varchar(32),
Lastname varchar(32),
PRIMARY KEY (Username)
);
/*
CREATE TABLE Card
(
Cardname varchar(100),
DBID int,
OracleID int,
foil int,
... | true |
7da8625988e6a44186017b7eec2c14360dde9a8f | SQL | nguyencongtin/C0221G1-Nguy-n-C-ng-T-n | /Module4/05_thao_tac_voi_csdl_va_orm/practice/database.sql | UTF-8 | 663 | 3.5625 | 4 | [] | no_license | drop database if exists practice;
create database if not exists practice;
use practice;
create table nhan_vien(
id_nhan_vien int auto_increment primary key,
ten_nhan_vien varchar(45) not null,
ngay_sinh date not null
);
insert into nhan_vien (ten_nhan_vien,ngay_sinh)
values ("Tin","1997-05-15"),
("Nam","1999-05-05"),... | true |
8e13e01d97f7c3b7d804e617162f4dd2df737274 | SQL | thiagojuliao/Hacker-Rank | /SQL/SQL_AdvancedJoin_Interviews.sql | UTF-8 | 1,050 | 4.21875 | 4 | [] | no_license | SELECT
B.CONTEST_ID,
A.HACKER_ID,
A.NAME,
SUM(B.TOTAL_SUBMISSIONS),
SUM(B.TOTAL_ACCEPTED_SUBMISSIONS),
SUM(B.TOTAL_VIEWS),
SUM(B.TOTAL_UNIQUE_VIEWS)
FROM
CONTESTS AS A
LEFT JOIN
(SELECT
(SELECT CONTEST_ID FROM COLLEGES WHERE CHALLENGES.COLLEGE_ID = COLLEGES.COLLEGE_ID) AS CONTEST_ID,... | true |
b78ee7ca405521f90c5337131f6d0fd17540df7a | SQL | lechuzasoft/Curso-php-web-2018 | /recursos/Clase13/ejemploCrud/basedatos/create.sql | UTF-8 | 545 | 3.34375 | 3 | [] | no_license | CREATE TABLE `clase13`.`users` (
`id` INT NOT NULL AUTO_INCREMENT,
`name` VARCHAR(45) NOT NULL,
`email` VARCHAR(45) NOT NULL,
`sexo` ENUM('F', 'M', 'N') NOT NULL,
PRIMARY KEY (`id`));
CREATE TABLE `clase13`.`pets` (
`id` INT NOT NULL AUTO_INCREMENT,
`race` VARCHAR(45) NOT NULL,
`name` VARCHAR(45) NOT N... | true |
e22975fca428f0a25bb4173bc7c69f64a8058f81 | SQL | therealbarret/TransitionTechnologies | /SQL/Team Scripts/Creation Scripts/14. CreateClientDomain.sql | UTF-8 | 342 | 3.015625 | 3 | [] | no_license | CREATE TABLE ClientDomain (
ClientDomainID int NOT NULL IDENTITY(1,1),
ClientDomain varchar(50) NOT NULL,
WebmasterLoginID int NOT NULL,
CONSTRAINT PK_ClientDomain PRIMARY KEY (ClientDomainID),
CONSTRAINT FK_WebmasterLogin FOREIGN KEY (WebmasterLoginID) REFERENCES WebmasterLogin(WebmasterLoginID) ON DELETE CASCADE... | true |
0945ab3625ba1201f07ed82aa9f161d56b32fb8a | SQL | rrajgithub/real-estate-management-website | /cls.sql | UTF-8 | 17,504 | 3.078125 | 3 | [] | no_license | -- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64)
--
-- Host: localhost Database: dbms_project
-- ------------------------------------------------------
-- Server version 8.0.19
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */... | true |
7b9be67759e22af7c156db9de9ddb66bf6c0d84b | SQL | salvajih/LSC-Grants | /Easygrants_Web_LSC/Easygrants_Web_LSC/DBScripts/Build 4.x/Build 4.0/09_Create_vLSC_CSR_BY_WFTA.sql | UTF-8 | 311 | 3.046875 | 3 | [] | no_license | CREATE VIEW vLSC_CSR_BY_WFTA
AS
SELECT wf_task_assignment_id,
SUM(A) A,
SUM(B) B,
SUM(C) C,
SUM(D) D,
SUM(E) E,
SUM(F) F,
SUM(G) G,
SUM(H) H,
SUM(I) I,
SUM(Ia) Ia,
SUM(Ib) Ib,
SUM(Ic) Ic,
SUM(J) J,
SUM(K) K,
SUM(L) L,
SUM(total) total
FROM vLSC_CSR_BY_CATEGORY
GROUP BY wf_task_assignment_id | true |
014bbd147c4c5007f490a5a0caef5dae4d4422d6 | SQL | bravesoftdz/CMIS---DB-objects | /KITT_NISC3/PROCEDURES/KITT_NISC3.PMO_RECONCILIATION.prc | UTF-8 | 19,591 | 3.75 | 4 | [] | no_license | DROP PROCEDURE PMO_RECONCILIATION;
CREATE OR REPLACE PROCEDURE PMO_RECONCILIATION IS
/******************************************************************************
NAME: RECONCILIATION
PURPOSE: This procedure will reconciate the records found in Delphi against records found in KITT.
... | true |
b4e4f82953e31911e74fdaa8fea46037fb922cc0 | SQL | SAS-HACKATHON/template-repo | /back/src/main/resources/schema.sql | UTF-8 | 698 | 3.25 | 3 | [] | no_license | /**
Author: Sofien
**/
DROP SCHEMA IF EXISTS hackathon;
CREATE SCHEMA hackathon;
USE hackathon;
/* Table: user (Application Users) */
CREATE TABLE user (
user_id NVARCHAR(20) NOT NULL,
password NVARCHAR(20) NOT NULL,
first_name NVARCHAR(50) ,
last_name NVARCHAR(50) ,
email NVARCH... | true |
d3c583999eb59e0e58b1e2261b39f0a550f38531 | SQL | gordeevnm/memehouse | /src/main/resources/db/test-data.sql | UTF-8 | 8,013 | 2.578125 | 3 | [] | no_license | ROLLBACK;
START TRANSACTION;
INSERT INTO public.user (username, password)
VALUES ('test', '$2a$10$hlso88ZWok8odMLC/QcYj.rgOPXFtu.fpYIE9RTCc/FzFSnehGqtC'), -- test, test
('user_2', 'e9uZUMW8a3hyWFTGioxGbnkJ0BlLFy'),
('user_3', 'Po7D6D9dhi8ovOyFBD7qOBcLaW842X'),
('user_4', '2zlxdnvg4lcAOdk5TljNJI7Uxn5v3X'),
('user_5... | true |
4b8d7758db33c1b8b7d5be7d8b76e26a8129356b | SQL | thomashuan88/qas | /tmp/db_backup/qas.sql | UTF-8 | 32,304 | 3.171875 | 3 | [] | no_license | -- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 5.7.11 - MySQL Community Server (GPL)
-- Server OS: Win64
-- HeidiSQL Version: 8.3.0.4694
-- -------------------------------------------------------... | true |
68560e1d29d96db2033ef8ae0834698afd989686 | SQL | isabellefo/lgpd | /database/migrations/05_repetir_dados.sql | UTF-8 | 537 | 2.71875 | 3 | [] | no_license | USE petmall_db;
UPDATE dados_pessoais
SET
nome = "Juan Correia",
cpf = "04371698204",
rg = "160253470",
telefone = "1934073810",
celular = "31943479769",
data_nascimento = DATE("2008-05-31"),
sexo = 1,
renda = 9459.51
WHERE id_cliente = 1;
UPDATE enderecos
SET
estado = "Tocantins... | true |
26304a07d46f49d6542faab5f7b68804eaf40839 | SQL | Battery233/DBS-PostgreSQL | /CW2/06.sql | UTF-8 | 364 | 3.734375 | 4 | [] | no_license | SELECT l1.ptype, count(distinct L2.ordid)
from (SELECT O.ordid,P.ptype FROM products P, orders O,details D where O.ordid = D.ordid and P.pcode = D.pcode) as l1, (select O.ordid from products P, orders O,details D where O.ordid = D.ordid and P.pcode = D.pcode group by O.ordid having count(distinct P.ptype) = 1) as l2
wh... | true |
fe1c21dd309b0a9cde3b81b55797e950fb54261c | SQL | daw02/PL-SQL | /Tareas_a_realizar_2_paquetes_centro.sql | UTF-8 | 1,438 | 4 | 4 | [] | no_license | /* PROCEDIMIENTO INSERTAR CENTRO */
SET SERVEROUTPUT ON;
CREATE OR REPLACE PROCEDURE insertar_centro(
p_nombre in centros.nombre%type,
p_provincia in CENTROS.PROVINCIA%type
)
IS
v_nombre CENTROS.NOMBRE%type;
e_found exception;
BEGIN
select nombre
into v_nombre
from centros
where nombre=p_nombre;
... | true |
195bbd5c5574666e8406e40960cd82eb584a8237 | SQL | adamjohnson57/sql-challenge- | /query.sql | UTF-8 | 2,935 | 4.65625 | 5 | [] | no_license | SELECT * FROM departments
SELECT * FROM titles
SELECT * FROM employees
SELECT * FROM dept_emp
SELECT * FROM dept_manager
SELECT * FROM salaries
-- List the following details of each employee: employee number, last name, first name, sex, and salary.
SELECT
e.emp_no AS "Employee No.",
e.last_name AS "Last Name",
e... | true |
7462982fac38660f759650d4a1d94fcd6f51b200 | SQL | bilalakil/challenges | /hackerearth-sql/september-sql-challenge/make-a-team.sql | UTF-8 | 873 | 3.875 | 4 | [] | no_license | -- https://www.hackerearth.com/challenge/competitive/september-sql-challenge/sql/make-a-team/
-- They're having technical difficulties,
-- so I couldn't attempt submission before the competition ended :(
-- https://www.hackerearth.com/challenge/competitive/september-sql-challenge/sql/make-a-team/?scroll-id=comments-551... | true |
102162f9b6a25f352514176247b02b50882081e5 | SQL | FlorianTopf/na-matrix | /database/europlanet_na1.sql | UTF-8 | 28,402 | 3.734375 | 4 | [] | no_license | SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL';
DROP SCHEMA IF EXISTS `europlanet_na1` ;
CREATE SCHEMA IF NOT EXISTS `europlanet_na1` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci... | true |
d935f43bec5c69e7f98c49efebb6f58aa8e76d8f | SQL | korea600/useful | /Useful/src/main/webapp/resources/Useful_sql/TBL_SHARETASK_REPLY.sql | UTF-8 | 558 | 2.90625 | 3 | [] | no_license | --tbl_sharetask_reply
drop table tbl_sharetask_reply;
create table tbl_sharetask_reply(
rno number primary key,
bno number references tbl_sharetask(bno),
replytext varchar2(1000) not null,
replyer varchar2(50) not null,
empno number not null,
... | true |
0badabc2b0b48645e7181277521fa069f80fd41a | SQL | marcelocarrasco/NokiaAluIPRAN | /DeployCortado/ALC_STATS_IPRAN_DAY.sql | UTF-8 | 1,698 | 3.53125 | 4 | [] | no_license | -- DROP TABLE ALC_STATS_IPRAN_DAY PURGE;
CREATE TABLE ALC_STATS_IPRAN_DAY(
FECHA DATE,
MONITORED_OBJECT_POINTER VARCHAR2(500 CHAR),
MONITORED_OBJECT_SITEID VARCHAR2(50 CHAR),
MONITORED_OBJECT_SITE_NAME VARCHAR2(50 CHAR),
DROP_EVENTS_PERIODIC NUMBER,
DRO... | true |
efec0de3da7a2f9a89fa2f1ff221f0a16c284b95 | SQL | gotomts/com.devlog-mh.www | /sqlbk/test_sql_20181118.sql | UTF-8 | 11,218 | 3.6875 | 4 | [] | no_license | ---------------------------------------------------------------------------------------------------------
-- ▼ 下記については普段使用しないSQL
---------------------------------------------------------------------------------------------------------
-- DB作成
create database "postgresql-metric-60905";
-- 試し
INSERT INTO mo_users (mo_us... | true |
31995b4b3c0151a17bc4525b264408d6812ac498 | SQL | Whyu9-9/BotTelegramWahyu | /db_mhs.sql | UTF-8 | 1,579 | 3.203125 | 3 | [] | no_license | /*
SQLyog Ultimate v12.5.1 (64 bit)
MySQL - 8.0.13 : Database - universitas
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CH... | true |
77e740d9bc4b1b1acec06d4ffe1cf2c703eefa05 | SQL | AcruxPDE/SIGEIN50 | /SistemaSIGEIN/SIGE.DataBase/ADM/Tables/H_DEPARTAMENTO.sql | UTF-8 | 1,077 | 2.625 | 3 | [] | no_license | CREATE TABLE [ADM].[H_DEPARTAMENTO] (
[ID_DEPARTAMENTO_H] INT IDENTITY (1, 1) NOT NULL,
[CL_PERIODO_INICIO] INT NOT NULL,
[CL_PERIODO_TERMINO] INT CONSTRAINT [DF_H_DEPARTAMENTO_CL_PERIODO_TERMINO] DEFAULT ((299912)) NOT NULL,
[ID_DEPARTAMENTO] I... | true |
f175873e5c15e45e435718a7ba4d087a700b6170 | SQL | alvinz97/Next-Auction-Java-Jsp-Servlet | /query.sql | UTF-8 | 1,248 | 3.171875 | 3 | [] | no_license | CREATE TABLE user (
uId varchar(50) not null,
uName varchar(100),
uMail varchar(100),
uPass varchar(100),
uR_Pass varchar(100),
CONSTRAINT user_pk PRIMARY KEY(uId)
);
INSERT INTO user (uId, uName, uMail, uPass, uR_Pass) VALUES ("E3001", "admin", "admin@gmail.com", "admin", "admin");
CREATE ... | true |
cf510effa2ea89ed6f0eb9a535d19e11b98ded8a | SQL | silence-do-good/stress-test-Postgres-and-MySQL | /dump/high/day15/select1322.sql | UTF-8 | 178 | 2.640625 | 3 | [] | no_license |
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o
WHERE timestamp>'2017-11-14T13:22:00Z' AND timestamp<'2017-11-15T13:22:00Z' AND temperature>=10 AND temperature<=27
| true |
21bff7e9a025ed0a7790160ae36c54f5363e180a | SQL | acehjm/enterprise-resumption-review | /src/main/resources/db/migration/V1__init_database.sql | UTF-8 | 5,731 | 3.4375 | 3 | [] | no_license | SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for enterprise_info 企业信息
-- ----------------------------
DROP TABLE IF EXISTS `enterprise_info`;
CREATE TABLE `enterprise_info` (
`id` varchar(32) NOT NULL COMMENT '企业ID',
`name` varchar(32) CHARACTER SET utf8 COLLAT... | true |
4a594bcc45799088dcd250108b225e3ba4608e4e | SQL | ShereenMohamed/OLXAPP | /OLX.sql | UTF-8 | 1,849 | 3.421875 | 3 | [] | no_license | create schema OLX;
USE `OLX`;
CREATE TABLE IF NOT EXISTS `User` (
`id` int auto_increment primary key,
`name` varchar(50) NOT NULL unique,
`password` varchar(50) NOT NULL ,
`email` varchar(25) NOT NULL ,
`phone` int NOT NULL ,
`address` varchar(100) NOT NULL ,
`city` varchar(25) NOT NULL
) ENGINE=InnoD... | true |
14ef828a31e1042662c73e7e5a99ff50c83f4699 | SQL | yuyabu/2state-3color-turing-machine-on-sql- | /create_tabele.sql | UTF-8 | 759 | 3.46875 | 3 | [] | no_license | CREATE TABLE State( -- TM states
sid INTEGER PRIMARY KEY, -- 0 is always the initial state
isFinal BOOLEAN NOT NULL,
sname TEXT UNIQUE NOT NULL -- just for show
);
CREATE TABLE Symbol( -- TM symbols
cid INTEGER PRIMARY KEY, -- 0 is always the blank symbol
cname TEXT UNIQUE NOT NULL
);
CREATE TABLE Tr... | true |
925dfab791b2853efc287fa5b1a35be7cb6f4af6 | SQL | Pranesh-Projects/Student-Database | /s_m_s-schema.sql | UTF-8 | 186 | 2.5625 | 3 | [] | no_license | CREATE DATABASE s_m_s;
CREATE TABLE students(
id LONG AUTO_INCREMENT,
first_name VARCHAR(20) NOT NULL ,
last_name VARCHAR(20),
email VARCHAR(30),
PRIMARY KEY (id)
);
| true |
7ad9fd8423d84cd4d7783f7fae5fdd2fac96a94a | SQL | hisapy/uni-bd-2013 | /intro-sql-joins/intro_joins.dump.sql | UTF-8 | 3,568 | 2.921875 | 3 | [] | no_license | -- MySQL dump 10.13 Distrib 5.5.17, for osx10.6 (i386)
--
-- Host: localhost Database: intro_joins
-- ------------------------------------------------------
-- Server version 5.5.17
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;... | true |
1e9e97ae89ae5274ad3de9ffdbef236736d93f15 | SQL | VampireCarrot/Signin | /signin.sql | UTF-8 | 1,451 | 2.859375 | 3 | [] | no_license | /*
Navicat MySQL Data Transfer
Source Server : lwd
Source Server Version : 50616
Source Host : localhost:3306
Source Database : signin
Target Server Type : MYSQL
Target Server Version : 50616
File Encoding : 65001
Date: 2017-01-06 17:10:43
*/
SET FOREIGN_KEY_CHECKS=0;
-- --------... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.