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
dbdef1a2493886051e6b1b0467a6e3e6c80f4a70
SQL
PreranaChandru/SQL
/HackerRank/Top Earners.sql
UTF-8
128
2.671875
3
[]
no_license
SELECT (MONTHS * SALARY) AS EARNINGS, COUNT((MONTHS * SALARY)) FROM EMPLOYEE GROUP BY EARNINGS ORDER BY EARNINGS DESC LIMIT 1;
true
2a240a69269366438371818b0174d14b23c9713e
SQL
TallesCosta/E-CommerceBooks
/src/main/resources/db/migration/V6__Create_price_group_table.sql
UTF-8
203
2.625
3
[]
no_license
/* Create price-group table */ CREATE TABLE PriceGroups ( id INT NOT NULL AUTO_INCREMENT, enabled BOOLEAN NOT NULL, markup DECIMAL(4,2) NOT NULL, CONSTRAINT PK_PriceGroup PRIMARY KEY (id) );
true
e565a780119b854c72e0cd1a5f1d569b00bafb4f
SQL
Olivvvia/UNSW-COMP3311
/Prac_Exercise/Prac04.sql
UTF-8
2,376
4.21875
4
[]
no_license
-- COMP3311 Prac Exercise -- -- Written by: YOU -- Q1: how many page accesses on March 2 ... replace this line by auxiliary views (or delete it) ... create view Q1 as select count(page) from Accesses where acctime like '%-03-02%' ; -- Q2: how many times was the MessageBoard search facility used? ... replace this ...
true
70b8e4e62acb7aa04021291e726ed334153bd7f4
SQL
arbrix/mms
/exampl/db/mms.sql
UTF-8
2,383
3.296875
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 23, 2012 at 08:05 PM -- Server version: 5.1.53 -- PHP Version: 5.3.2 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
604651c4e1bd5f7604cb6319458aa167e61a7d4c
SQL
Mat4wrk/Functions-for-Manipulating-Data-in-PostgreSQL-Datacamp
/1.Overview of Common Data Types/Searching an ARRAY with @>.sql
UTF-8
159
2.765625
3
[]
no_license
SELECT title, special_features FROM film -- Filter where special_features contains 'Deleted Scenes' WHERE special_features @> ARRAY['Deleted Scenes'];
true
67a6103b52fb5ef6631ad7e7f36dfb0309637810
SQL
TeguhP7/Sidapin-Diskominfo-Kudus
/DB/sidapin.sql
UTF-8
5,821
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 06, 2020 at 03:04 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
1e66eaa03e17e2e6519ed0c4cd9072e214845dd0
SQL
MrD0079/portal
/sql/emp_exp.sql
UTF-8
1,287
3.4375
3
[]
no_license
/* Formatted on 05/08/2014 13:57:55 (QP5 v5.227.12220.39724) */ SELECT ROWNUM, e.*, fn_getname (e.emp_tn) emp_name, fn_getname (e.exp_tn) exp_name, emp_tn emp_svid, exp_tn exp_svid, d_m.dpt_name dpt_name_m, d_x.dpt_name dpt_name_x, TO_CHAR (st_m....
true
df9bad074041a59b753b7673180cfe7ff7face04
SQL
xiaoya6/Nodejs
/NodejsProject/backEnd/com/wonderlabs/file/sql/design_week_customer_info.sql
UTF-8
855
2.859375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50621 Source Host : localhost:3306 Source Database : node_test Target Server Type : MYSQL Target Server Version : 50621 File Encoding : 65001 Date: 2018-07-17 15:16:21 */ SET FOREIGN_KEY_CHECKS=0; --...
true
40febcfa109248c7c27d8b513ae3fa7f696cfa90
SQL
babamba/sql
/문자열리터럴.sql
UHC
317
2.921875
3
[]
no_license
--ڿ ͷ select first_name || '----' || last_name as " ڿ" from employees; --θͷ ǥ as ūǥ select SYSDATE from dual; --¥ ⺻ select to_char(SYSDATE,'YY/MM/DD')from dual; select TO_CHAR(SYSDATE, 'YYYY-MM-DD hh:mm:ss') from dual;
true
d6bfb0c44cc8d98d517c124e34b948788d7fa7da
SQL
ProvisionLab/LINCollect
/database/structure/init_users_language.sql
UTF-8
363
3.15625
3
[]
no_license
USE DBSurveys; select 'user_language_cross' as ''; CREATE TABLE IF NOT EXISTS User_Language_Cross( id SERIAL, user_id BIGINT UNSIGNED NOT NULL, language_id BIGINT UNSIGNED NOT NULL, PRIMARY KEY (id), FOREIGN KEY (user_id) REFERENCES User (id) ON DELETE CASCADE, FOREIGN KEY (language_id) REFERENCE...
true
6949b7cbda179a3933c99c6e767cafdaf3bc78ee
SQL
jemoore329/code
/python/dynamo_test/jsonfiles/backup/emailtest/sqlemail/daily_issueid.sql
UTF-8
278
3.59375
4
[]
no_license
select count(*) as opens, b.publicationname, b.logicalissuename, date(b.live) as live_date, a.issueid from intake.access_log a, intake.logical_issues b where a.issueid = b.id and act = 'open' and date(b.live) > current_date - 60 group by 2,3,4,5 order by 2 asc, issueid asc ;
true
e4607999d97e4b6ebd94147e11f29d4922b8273d
SQL
valber-renan/Aprendendo_MySQL
/aprendendo My SQL/db_construindo_a_nossa_vida.sql
UTF-8
2,137
3.84375
4
[]
no_license
-- criando banco de dados create database db_construindo_a_nossa_vida; -- acionando o banco de dados use db_construindo_a_nossa_vida -- criando a tabela categoria create table tb_categoria( id bigint auto_increment, nome varchar(50)not null, tipo varchar (50)not null, setor varchar(50), primary key (id) ) -- pop...
true
121c66c0109dcd55cbc4fe47bbeec102d4e764be
SQL
RubenMaier/PracticaGD1C2017
/Practica SQL/Resuelto de sql/18.sql
UTF-8
1,372
3.5
4
[]
no_license
SELECT rubr_detalle 'Rubro', SUM(item_cantidad*item_precio) 'Total Ventas', (SELECT TOP 1 prod_codigo FROM Producto JOIN Item_Factura ON prod_codigo = item_producto WHERE prod_rubro = rubr_id GROUP BY prod_codigo ORDER BY SUM(item_cantidad) DESC) 'Producto mas Vendido', ISNULL((SELECT TOP 1 prod_...
true
27fe0d97548576254f8c25b7f030a0b5adac6af6
SQL
petarcvetic/magacin
/IN/Staro/db.sql
UTF-8
1,816
2.875
3
[]
no_license
CREATE TABLE `members` ( `memberID` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `active` varchar(255) NOT NULL, `resetToken` varchar(255) DEFAULT NULL, `resetComplete` varchar(3) DEFAULT 'No', `status` enum('0','1','...
true
8726a6ad16889c0f693b5bb1f561952de673a1a1
SQL
jacobrees/SQL-Zoo
/6_JOIN.sql
UTF-8
1,384
4.25
4
[]
no_license
SELECT matchid, player FROM goal WHERE teamid = 'GER' SELECT id,stadium,team1,team2 FROM game WHERE id = 1012 SELECT player, teamid, stadium, mdate FROM game JOIN goal ON (id=matchid) WHERE teamid ='GER' SELECT team1, team2, player FROM game JOIN goal ON (id=matchid) WHERE player LIKE 'Mario%' SELECT pl...
true
41f8bd2d7942ef5d22d0e26a6fddc71d7f615fd1
SQL
GayatriHushe/Swabhav-Database-Mysql
/swabhav/dept.sql
UTF-8
369
2.71875
3
[]
no_license
USE SWABHAV; #CREATE TABLE DEPT ( DEPTNO integer NOT NULL, DNAME varchar(14), LOC varchar(13), CONSTRAINT DEPT_PRIMARY_KEY PRIMARY KEY (DEPTNO)); INSERT INTO DEPT VALUES (10,'ACCOUNTING','NEW YORK'); INSERT INTO DEPT VALUES (20,'RESEARCH','DALLAS'); INSERT INTO DEPT VALUES (30,'SALES','CHICAGO'); INSERT INTO DEPT VALUE...
true
67401273289bd1e9d16b578ff7d62a3750430771
SQL
CKudella/corr_data
/intersections_pirckheimer_erasmus/sql_queries/no_epp_per_correspondent_mut_corr_era_pirck/no_epp_sent_by_era_to_mut_corr_era_pirck.sql
UTF-8
839
3.921875
4
[]
no_license
SELECT DISTINCT EL.recipient_id, EC.name_in_edition, COUNT(*) AS 'Number of letters sent by Erasmus per mututal correspondent' FROM era_cdb_v3.letters AS EL, era_cdb_v3.correspondents AS EC, (SELECT * FROM era_cdb_v3.correspondents AS X WHERE X.correspondents_id IN (SELECT P.corresponden...
true
6c231b282ec8c6825e44ffffd2aeceb412cc932e
SQL
githubken0426/thinking
/thinking-common/src/main/resources/sql/ACL_VC_SIT.sql
UTF-8
1,454
3.015625
3
[]
no_license
select id,uuid,id_process,POS_SELECTED,sellerplace_code from t_application where id=435665029; SELECT * FROM t_application where id between 434666636 and 435666636 order by cdate desc; select * from t_vendor_order where ID_APPLICATION=435665029; select * from t_tracking where ID_APPLICATION=435665029; select * fro...
true
cb1bd27edfa6d1e99d6c1a150878946cc48c52d3
SQL
dbrtly-upguard/cosmos
/cosmos-backend/postgres/migrations/0000000000.sql
UTF-8
10,740
3.265625
3
[ "MIT" ]
permissive
CREATE TABLE connectors ( id SERIAL PRIMARY KEY, name TEXT NOT NULL, type TEXT NOT NULL, docker_image_name TEXT NOT NULL, docker_image_tag TEXT NOT NULL, destination_type TEXT NOT NULL, spec TEXT NOT NULL, creat...
true
884799682190231364c9277c2397e34ec614b1c3
SQL
lDanlte/MusicShop
/db/mysql/migrations/scripts/20170319155232_insert_actions.sql
UTF-8
448
2.78125
3
[]
no_license
-- // insert actions -- Migration SQL that makes the change goes here. INSERT INTO `actions` (`id`,`description`) VALUES (1,'Покупка альбома'); INSERT INTO `actions` (`id`,`description`) VALUES (2,'Перевод денег на счет'); INSERT INTO `actions` (`id`,`description`) VALUES (3,'Перевод денег со счета'); -- //@UNDO -- S...
true
8d16a7bec535476a395a35606a34a536ed9d00bf
SQL
Matteo-Buonastella/SQL
/Lab6.sql
UTF-8
3,157
4.3125
4
[]
no_license
-- *********************** -- Name: Matteo Buonastella -- ID: ######### -- Date: June 14 2017 -- Purpose: Lab 6 DBS301 -- *********************** -- 1 AUTOCOMMIT ON -- 2 INSERT INTO EMPLOYEES (FIRST_NAME, LAST_NAME, SALARY, COMMISSION_PCT, DEPARTMENT_ID, MANAGER_ID, HIRE_DATE, EMPLOYEE_ID, EMAIL, JOB_ID) VALUES ('Ma...
true
7ea80e64a5f6d16b1b43fac6cd4a7fe6f154e09d
SQL
ottinger/simplecms
/simplecms.sql
UTF-8
854
2.53125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 10, 2012 at 08:25 AM -- Server version: 5.1.44 -- PHP Version: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
true
7e7d05cb7c69d4cbb837e19a6e319b862024126a
SQL
toasahi/asahi_portfolio
/asa_farm.sql
UTF-8
11,222
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- ホスト: 127.0.0.1 -- 生成日時: 2021-03-26 10:48:24 -- サーバのバージョン: 10.4.14-MariaDB -- PHP のバージョン: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
true
982ddb2b76ed44efe8aab9b1fae0bdb689cc5dd8
SQL
tedovn/Project---AtleticApp
/Web/phpappdb (1).sql
UTF-8
4,078
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 09, 2014 at 05:17 PM -- Server version: 5.6.16 -- PHP Version: 5.5.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
8c71a32ffb0fc5e272ab0e40426343d1cc0c2920
SQL
bellmit/practicas_empresa
/BD/changes25012019.sql
UTF-8
10,215
2.828125
3
[]
no_license
ALTER TABLE DFEMP RENAME COLUMN FLOTA_AUTOM TO FLOTA_AUTOM_OLD; ALTER TABLE DFEMP ADD COND_AUTOM VARCHAR2(1); ALTER TABLE DFEMP ADD VEH_AUTOM VARCHAR2(1); UPDATE DFEMP SET COND_AUTOM = 'S', VEH_AUTOM='S' WHERE FLOTA_AUTOM_OLD = 'S'; COMMIT; CREATE OR REPLACE VIEW CDVDFEMP AS SELECT DFEMP.CIF, D...
true
ef5ea0c9fc9464ec11fcc8fdd4cbad7082ed8be2
SQL
hoalangoc/ftf
/application/modules/Contactimporter/settings/my-upgrade-4.03p2-4.03p3.sql
UTF-8
334
2.84375
3
[ "Apache-2.0" ]
permissive
DELETE FROM `engine4_contactimporter_providers` WHERE `name` NOT IN (SELECT b.`name` FROM (SELECT * FROM `engine4_contactimporter_providers`) as b WHERE b.`name` like '%gmail%' or b.`name` like '%yahoo%' or b.`name` like '%linkedin%' or b.`name` like '%hotmail%' or b.`name` like '%facebook%' or b.`name` like...
true
43ca99942a0835d80795689cbecae9cb1b79f87a
SQL
jasoncnsh/florence
/dev/sql/foreigners_counts.sql
UTF-8
865
4.09375
4
[ "MIT" ]
permissive
-- This gives a frequency count of how many calls each customer makes. Useful for filtering additional queries. create materialized view optourism.foreigners_counts as ( select cust_id, country, count(*) as calls, count(distinct date_trunc('day', date_time_m) ) as days_active, count(distinct to_char(lat,'99.999') ...
true
f252a201259c1b002ca765ef4288905bcc3cb6ba
SQL
mikz/zelena_kuchyne
/db/sql/zones_up.postgresql.sql
UTF-8
530
2.859375
3
[]
no_license
CREATE TABLE zones ( id serial PRIMARY KEY, name varchar(70) NOT NULL UNIQUE, disabled boolean NOT NULL DEFAULT false, hidden boolean NOT NULL DEFAULT false ); ALTER TABLE delivery_methods ADD COLUMN zone_id integer REFERENCES zones (id); ...
true
843c5bddea07c75d96a3a5f2481a16e7ef7c5fb2
SQL
appuntinformatica/rest-jwt-crud
/src/main/resources/data-dev.sql
UTF-8
706
2.59375
3
[]
no_license
/* encoder("password") ---> $2a$10$Kk5XqRUxi8zsedOdhpBiI.b4t97kd7h44KwneegmvrwGKpYBE3gSy */ INSERT INTO user_role(id, role_name) VALUES (10001, 'ROLE_ADMIN'); INSERT INTO user_role(id, role_name) VALUES (10002, 'ROLE_USER'); INSERT INTO user_login(id, email, first_name, last_name, username, password) VALUES (100...
true
1eb0f3af019cf9acda47a8ce4e96ef9e290756c3
SQL
Stevensen77/Pemrograman_web
/web_dodol_haji/user_access_menu (1).sql
UTF-8
1,565
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 12, 2019 at 01:46 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
d1ee2692de205100b1f0d77e5aa2c8a0f06accbd
SQL
vvkond/QGIS
/db/ZonationTarget.sql
UTF-8
3,031
4.34375
4
[]
no_license
--- LAST INTERVAL POSITION(ORDER) FOR EACH WELL --- @param well_id - well name --- @param zonation_id - id of zonation --- @param skeep_last_n_zone - number of intervals in zonation description for don't use. with well_max_interval_pos as ( SELECT wh.TIG_LATEST_WELL_NAME AS well_name , max(i.tig_in...
true
ff61faf2132fc1870e97158e8c10fd4bea8e661a
SQL
edirlang/pgt
/pgt.sql
UTF-8
16,730
3.609375
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 02-06-2015 a las 15:50:13 -- Versión del servidor: 5.6.17 -- Versión de PHP: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
ad860433949228d9ded6cbc21ac748cbc4825434
SQL
kumaran777/Faculty_Advisor
/Database & Table/bot.sql
UTF-8
13,504
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 23, 2021 at 08:18 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
e2c6b84f268de1ec1a320cbfc83045a1cc351c3d
SQL
science162/LO54_Maven_Project
/INSERT.sql
UTF-8
6,298
2.953125
3
[]
no_license
/*insertion dans la table Course */ INSERT INTO course (TITLE,LIBELLE) Values ('Administrations des Bases de données','Apprendre la conception et l'/'administration des bases de données facilement'); INSERT INTO course (TITLE,LIBELLE) Values ('Java Enterprise Applications Architectures','Apprendre la conception des...
true
d98607c3e132b3074e66475467dd0377e07265ee
SQL
MikeMwambia-TrojanSystem/sql-syntax
/capstone/instagram_Clone.sql
UTF-8
1,828
4.3125
4
[]
no_license
create database ig_clone; use ig_clone; create table users ( id int auto_increment primary key , user_name varchar(255) unique not null, created_at timestamp default now() ); create table photos ( id integer auto_increment primary key, image_url varchar(255) not null, user_id integer not null, ...
true
8cb061ada7c71dc30d1aad177eb10b174316889f
SQL
anggundw/Dqlab-
/Fundamental SQL Using FUNCTION and GROUP BY/Fungsi Aggregate dan Group By/Tugas_Praktek4.sql
UTF-8
298
3.203125
3
[]
no_license
SELECT month(order_date) AS order_month, sum(item_price) AS total_price, CASE WHEN sum(item_price) >= 30000000000 THEN 'Target Achieved' WHEN sum(item_price) <= 25000000000 THEN 'Less performed' ELSE 'Follow Up' END as remark FROM sales_retail_2019 GROUP BY month(order_date);
true
d30b1eb86ada03c27c28024e39c5fd54e0399167
SQL
EmilyLin8073/Divvy-Database-App
/SQLFiles/Project0505.sql
UTF-8
493
4.09375
4
[]
no_license
-- Project0505.sql -- 5. For each customer list the number of trips they have taken. -- Restrict the results to the 10 users who have taken the most trips. SELECT TOP 10 Trips.UserID, COUNT(TripID) AS NumTrips FROM Trips INNER JOIN Users On Trips.UserID = Users.UserID GROUP BY Trips.UserID ORDER BY NumTrips DESC, User...
true
94fad74c5cdb6328ffb1b59754752196c2d01405
SQL
yoheionishi1/10_10_yoheionishi
/tinyhouse/tiny.sql
UTF-8
4,512
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 2018 年 3 月 02 日 16:22 -- サーバのバージョン: 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 */; /*!40101...
true
4536012e87554c2c90824bc0cd9fc3f227558640
SQL
charles-wangkai/leetcode
/rising-temperature.sql
UTF-8
194
3.40625
3
[]
no_license
SELECT w.Id FROM Weather w WHERE EXISTS ( SELECT 1 FROM Weather w1 WHERE w1.recordDate = subdate(w.recordDate, 1) AND w1.Temperature < w.Temperature )
true
d325a011d6749ddb9b491f312e3fa11e595e608e
SQL
alessandrojean/PRI-2015
/classes/2015.08.27/exercises/Produtos27082015 20150827 1342.sql
UTF-8
4,520
3.28125
3
[ "Apache-2.0" ]
permissive
-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.6.21-log /*!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 ...
true
66b5288e99a54ab3d263d354d40804f8cf3beabf
SQL
ijuang/irene-cliqstudios
/Web/ben-ssrs-label.sql
UTF-8
598
3.75
4
[]
no_license
--To get Web Order Total: select order_number, order_id, update_date, order_total, order_status from [order] where order_status = 'OO' and update_date >= GETDATE() -- Get order branch - Join to Customer number and branch -- Get order type -- To select a list of orders to search for labels select o.order_number, o.or...
true
a44b9a0bfe37986b4c2970e5fcb72437c599f02b
SQL
jpmmiranda/WeatherStation
/criacaoBD.sql
UTF-8
1,692
3.5
4
[]
no_license
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema Leituras ...
true
dcb84273608ea044b727d0b1643895fd5cd279da
SQL
masuramatin/laravel_example2
/josh5.sql
UTF-8
5,801
2.984375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 26, 2018 at 02:41 PM -- Server version: 10.1.28-MariaDB -- PHP Version: 5.6.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
b6a7307071290568f2d6991ac7f3b969a7bbe6e1
SQL
peterloron/Bunker
/sqlite.sql
UTF-8
704
2.734375
3
[]
no_license
CREATE TABLE "secret"( "id" Integer NOT NULL PRIMARY KEY AUTOINCREMENT, "path" Text NOT NULL, "value" Text NOT NULL, "desc" Text, CONSTRAINT "unique_id" UNIQUE ( "id" ), CONSTRAINT "unique_path" UNIQUE ( "path" ) ) CREATE TABLE "user"( "id" Integer NOT NULL PRIMARY KEY AUTOINCREMENT, "username" Text NOT NUL...
true
e7aa37b19670fba0797d92b7b8f11cc33c40bec1
SQL
KavishkaRathnaweera/System-for-Departmnet-of-Motor-Traffic
/model/mysql/exampaper.sql
UTF-8
6,227
3.5625
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 13, 2020 at 06:46 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 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
531ca34121703bae2a91923479c8a97609aeab2b
SQL
BrenPatF/sql_demos
/shortest_path/Run_Queries_SP.sql
UTF-8
5,853
3.984375
4
[]
no_license
/*************************************************************************************************** GitHub Project: sql_demos - Brendan's repo for interesting SQL https://github.com/BrenPatF/sql_demos Author: Brendan Furey, 4 May 2015 Description: Called by the driving scripts to run th...
true
2a4a2f9893e07f9e11f3bde2da7305d62456aa77
SQL
kalyashov/channel-autoposting-bot
/src/main/resources/db/scripts/release_1_0_0/03_create_table_bot_settings.sql
UTF-8
398
2.578125
3
[]
no_license
--liquibase formatted sql --changeset kalyashov:create_table_bot_settings rollbackSplitStatements:true --comment: Создание таблицы с настройками бота create table bot_settings ( settings json, ); comment on table bot_settings is 'Настройки бота'; insert into bot_settings values ('{ "status": "ACTIVE" }'); --...
true
984bf4c78dfef8daddbc6657c52463af9e7c6db4
SQL
rumen-delov/SoftUni-Courses
/02.2.1 MS SQL/02. CRUD/23. BiggestCountriesByPopulation.sql
UTF-8
149
2.8125
3
[]
no_license
--USE [Geography] SELECT TOP(30) [CountryName], [Population] FROM [Countries] WHERE [ContinentCode] = 'EU' ORDER BY [Population] DESC, [CountryName]
true
e75807b90488e8039aa17b8170a6ce59ff60a972
SQL
phuongxinhgai8788/SE2_finalproject
/database/data.sql
UTF-8
3,182
2.84375
3
[]
no_license
USE se22021; insert into se22021.inventories (id, name, price, source, thumbnailUrl, tags) values (1, 'Anchor fastener (plated) 4', 20, null, null, 'hiltop,qualified'), (2, 'Pendant switch', 40, null, null, 'anchor,new'), (3, 'Batten nail', 50, null, null, 'ck,qualified'), (4, '6 sq mm 3 core ...
true
e47506de7a1a0e5535a2da3fa85d87dc17d0342b
SQL
jsanterre/BizView-Extensions
/SQL_Queries.sql
UTF-8
1,526
2.953125
3
[]
no_license
-- BizView's Clients table queries -- Creation of the table CREATE TABLE %PREFIX%_bizview_clients ( id int(11) NOT NULL auto_increment, name varchar(255), address varchar(255), city varchar(255), province varchar(255), postal_code varchar(255), phone_number varchar(20), email_address v...
true
74f53a632018f58b9456841d09326560101026d2
SQL
michellehuh/netflix
/sql_files/queries.sql
UTF-8
3,322
4.03125
4
[]
no_license
SELECT m.title, g.genre from movie m, movieisofgenre g where (m.id = g.movieid) AND (g.genre = 'COMEDY'); SELECT p.name, sum(w.TIMEIN) as totalwatchtime from watches w, profile p where w.ADMINID = '18139162' and p.name = w.profilename GROUP BY p.name order by sum(w.timein) DESC; SELECT p.name, m.title from profile p,...
true
1a05f922100a9e74c8ac34f3a12fe054854e2bee
SQL
s-e1/vacation-backend
/project3.sql
UTF-8
6,938
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 22, 2020 at 10:45 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
e5e1eb119fae7ff65e36df6d0ec0685c53d050fd
SQL
shohanProgrammer/clippingpath_360
/clippingpath_360/clippingpath_360.sql
UTF-8
13,330
3.09375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Sep 06, 2021 at 05:27 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
e11660c5ca4a3df080f082b2a418ada7104f373f
SQL
mistakenot/geonames
/schema.sql
UTF-8
2,312
3.671875
4
[]
no_license
create schema if not exists geo; CREATE EXTENSION cube; CREATE EXTENSION earthdistance; create table if not exists geo.geoname ( geonameid int primary key, name varchar(200), asciiname varchar(200), alternatenames varchar(10000), latitude float, longitude float, fclass char(1), fcode v...
true
74098ad8ecaee732436173dc7b0507b274171cc6
SQL
dacalviz/Biblioteca
/base de datos llena.sql
UTF-8
22,706
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 24-06-2019 a las 07:39:12 -- 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
73be167a5072ec2334b779d05b2d81d50f5a1591
SQL
haohao41285/dti
/database/update/08-2019/update_2019_09_18_create_main_team_type.sql
UTF-8
2,229
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 11, 2019 at 06:56 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
030cc71c20ee1f7833472249001b0c5056039d50
SQL
leqg/leqg
/sql/event-tasks.sql
UTF-8
441
2.9375
3
[]
no_license
SELECT `tache_id` AS `id`, `createur_id` AS `createur`, `compte_id` AS `user`, `historique_id` AS `event`, `tache_description` AS `task`, `tache_deadline` AS `deadline`, `tache_creation` AS `time`, `tache_terminee` AS `ended` FROM ...
true
e69a0c92f4bebfa2736eedc01219b9ea8a4ec1d7
SQL
vlbpdasilva/HackIllinois
/person_table.sql
UTF-8
594
3.171875
3
[]
no_license
CREATE TABLE IF NOT EXISTS `person_table` ( `person_name` varchar(30) NOT NULL, `age` varchar(2) NOT NULL, `zipcode` char(5) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT IGNORE INTO person_table VALUES ('Victor', 21, 66044); INSERT IGNORE INTO person_table VALUES ('Blaine', 28, NULL); INSERT IGNORE ...
true
8e4676c9bc0d45b6a70fc7a9cfa3955e5159606d
SQL
Patpaz/Project_PBD
/Project.sql
UTF-8
2,285
3.484375
3
[]
no_license
CREATE DATABASE project; use project; CREATE TABLE product ( product_id int not null auto_increment, name varchar(255), stock int, price float, category enum('SMARTPHONES','HOME','TOYS','FASHION','JEWELRY'), description text, created_date datetime, modified_date datetime, primary key (product_id) ); CREATE TABLE clie...
true
1150fd41da8505c681099b6a3af9a656a7d444cd
SQL
andresort28/docker-sinatra-postgres
/database/files/create_schema.sql
UTF-8
1,700
3.390625
3
[ "MIT" ]
permissive
create user userandres with password 'passortiz'; alter role userandres with createdb; create database db_docker owner userandres; \connect db_docker CREATE TABLE brands( id integer NOT NULL PRIMARY KEY, brand_name varchar(50) NOT NULL UNIQUE ); CREATE TABLE devices( id integer NOT NULL ...
true
6ec6eab451ed3e66fd7432f5365489e7e9253244
SQL
yinm/obenkyo-mysql
/kidokarano_mysql/select_join_using.sql
UTF-8
98
2.703125
3
[]
no_license
select sales.id ,employee_a.name ,sales.amount from sales join employee_a using(id) ;
true
63e12abe906ce705663f33f43744f91eb6b02c00
SQL
YaoChungLiang/Database
/quiz1/q1_6.sql
UTF-8
144
3.328125
3
[]
no_license
SELECT M.name, M.year, E.name, P.time FROM Meet as M, Event as E, Performance as P WHERE P.time = MIN(P.time) AND P.eid = E.id AND M.id = E.mid;
true
2d5cb537ec80a75db94e81abb1607a8eb91668c2
SQL
PanosPapazoglou/My_Java_Inventory
/JavaBasicsExamples/stuff/persons.sql
UTF-8
759
2.984375
3
[]
no_license
/* MySQL Backup Source Host: localhost Source Server Version: 5.6.12-log Source Database: java_dbcon Date: 2013/12/01 15:58:17 */ SET FOREIGN_KEY_CHECKS=0; use java_dbcon; #---------------------------- # Table structure for persons #---------------------------- CREATE TABL...
true
5bad4ec6d70909cba6de9c1460ac3b7d563cdd98
SQL
intCCP/CCP
/Application/Viste/v_mcre0_app_rio_pos_da_lav.sql
UTF-8
2,787
2.8125
3
[]
no_license
/* Formatted on 21/07/2014 18:35:55 (QP5 v5.227.12220.39754) */ CREATE OR REPLACE FORCE VIEW MCRE_OWN.V_MCRE0_APP_RIO_POS_DA_LAV ( COD_SNDG, COD_ABI_CARTOLARIZZATO, COD_ABI_ISTITUTO, DESC_ISTITUTO, COD_NDG, COD_COMPARTO, COD_RAMO_CALCOLATO, DESC_NOME_CONTROPARTE, COD_GRUPPO_ECONOMICO, VAL_...
true
375ec84e63d4d7c4a0424bd18de67088709ee6a5
SQL
Karabaev/EPAM_Ext_Lab_Q2_2018_Maxim_Karabaev
/Task8/Northwind/Scripts/Task8_10/Task 8_10_1.sql
UTF-8
190
3.65625
4
[]
no_license
SELECT EmployeeID, (LastName + ' ' + FirstName) as Seller FROM Northwind.Employees as emp WHERE ( SELECT COUNT(OrderID) FROM Northwind.Orders WHERE emp.EmployeeID = EmployeeID) > 150
true
2060637407e98a45521dc3e7f40e241bf6f20d14
SQL
JEonjinwon/Oracle
/01-27.sql
UHC
6,683
3.578125
4
[]
no_license
SELECT C.LEC_CODE , B.SUB_NAME ,(SELECT A.MEM_NAME FROM MEMBER A , LECTURE B WHERE A.MEM_ID = B.MEM_ID AND B.LEC_CODE = '1000702') , C.LEC_FULL , C.LEC_NMT , C.LEC_GRD , C.ROOM_CODE , B.SUB_DETAIL , B.SUB_CREDIT FROM MEMB...
true
abd27b3fae976571e019eb3adcc38a7cbbe7064b
SQL
bigdataconsult/Oracle
/utilityScripts/cv.sql
UTF-8
417
2.984375
3
[]
no_license
set pages 200 col owner for a32 col owner_table for a48 col column_name for a32 break on owner skip 1 select c.owner, c.owner||'.'||table_name owner_table, column_name from dba_tab_columns c, dba_objects o where column_name like UPPER('%&1%') and c.owner like DECODE('&&2',NULL,'%FCRM%',UPPER('%&&2%')) AND table_nam...
true
8e6859e7230f00a4ab0a33e84167b571ebbd578b
SQL
judsonc/gpweb
/gpweb/instalacao/sql/atualizar_bd_mysql_157.sql
ISO-8859-1
5,968
2.578125
3
[]
no_license
SET FOREIGN_KEY_CHECKS=0; UPDATE versao SET versao_codigo='8.3.6'; UPDATE versao SET ultima_atualizacao_bd='2013-03-31'; UPDATE versao SET ultima_atualizacao_codigo='2013-03-31'; UPDATE versao SET versao_bd=157; UPDATE config SET config_valor=10 WHERE config_valor=11 AND config_nome='militar'; ALTER TABLE ...
true
ba68ebd8d848377019c85402c25e53bd6c575b79
SQL
alejotaliento/BD1
/TP ARREGLADO/FINALIZAR ESTACION SIN CURSORES.sql
UTF-8
2,548
3.609375
4
[]
no_license
delimiter $$ create procedure finalizarEstacionV2(patente int, out resultado int, out mensaje varchar(45)) BEGIN -- MODELO DEL AUTO SEGUN SU PATENTE SET @modeloProcedure:=(SELECT detalle_pedido_idModelo from vehiculo where idVehiculo=patente); -- EL ORDEN ACTUAL DE LA ESTACION DEL AUTO SET @ordenProcedure:=(select...
true
3b254c4d81163bf5bcfc608fe4f621a4329f0bae
SQL
sarandford/databaseProject
/Sarah_Ford_Database_Project/Table DDL/kitchen_Cooks.sql
UTF-8
3,866
2.609375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `kitchen` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `kitchen`; -- MySQL dump 10.13 Distrib 5.6.19, for osx10.7 (i386) -- -- Host: 23.229.206.34 Database: kitchen -- ------------------------------------------------------ -- Server version 5.5.36-cll-lve /*!40101 SET @OLD_CHARACTER...
true
e748cf21d75d01ebcbd88b7074eeefd7606b2ed8
SQL
dhamotharang/SvnGit
/Core/Database/StoredProcedure/Create Scripts/InsertScript_ClientInformationTabConfigurations_Task#258N180.sql
UTF-8
539
3.078125
3
[]
no_license
IF NOT EXISTS (SELECT * FROM ClientInformationTabConfigurations WHERE [TabName] = 'Timeliness' AND ScreenId=969) BEGIN INSERT INTO ClientInformationTabConfigurations(ScreenId,TabName,TabURL,TabType,TabOrder) VALUES(969,'Timeliness','/Modules/ClientInformation/Client/Detail/ClientInformationTimelines.ascx','ASPX',1...
true
820db4493652be4427414746436ba2a30f44c1a7
SQL
josephttran/csharp-code
/csharp-challenge/DatabaseDesignProject/SQLProjectChristmasShopping/dbo/Views/PersonGiftBudget.sql
UTF-8
280
3.40625
3
[]
no_license
CREATE VIEW PersonGiftBudget AS SELECT FirstName, LastName, Budget AS InitialBudget, (Budget - ISNULL(SUM(Cost), 0)) AS BudgetLeft, CASE WHEN SUM(Cost) IS NOT NULL THEN 'True' ELSE 'False' END AS HasGift FROM dbo.FullPersonItem GROUP BY PersonId, FirstName, LastName, Budget;
true
5690ef07c738f4b1bc47166d1a287cb4af991a78
SQL
huxuan0307/mto10server
/db/student.sql
WINDOWS-1252
2,479
3.484375
3
[]
no_license
-- drop database if exists `hw-mto10-u1752877`; -- create database `hw-mto10-u1752877`; use `hw-mto10-u1752877`; drop table if exists `student`; create table `student`( stu_no char(7) not null, stu_name char(8) not null, stu_password char(32) not null, stu_common_password char(32) not n...
true
4a7ce12f495a6a7a289f41e945930e87386c8634
SQL
supremeking23/HHI_with_admin
/db/huntersdb.sql
UTF-8
41,358
2.734375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 21, 2019 at 05:37 AM -- 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
0c06bd6ef3865e2b9139622d534c6af0c39a13c0
SQL
telmengedar/StreamRC
/RPG/Shops/fullshopitem.sql
UTF-8
247
2.953125
3
[ "Unlicense" ]
permissive
CREATE VIEW fullshopitem AS SELECT shopitem.itemid, shopitem.quantity, shopitem.discount, item.name, item.type, item.target, item.levelrequirement, item.armor, item.damage, item.countable FROM shopitem INNER JOIN item ON item.id=shopitem.itemid
true
9886b3fe7b52eca44d44394e4c4d7140d96a0f94
SQL
Beryl1020/SQL
/30link/data require/data require-微销数据 for永智.sql
UTF-8
6,113
3.703125
4
[]
no_license
SELECT f.fa_id 主站id, f.crm_name 客户姓名, f.fia_id 投顾id, f.fname 投顾姓名, f.submit_time 流转时间, f.jhzj 激活资金, f.net_in 后端净入金, f.jye 后端交易额, f.sxf 后端手续费, f.sr + f.znj + f.sxf 后端收入, g.net_assets ...
true
aeb24b0e3515f9928fe4e75f40d15db737823ff1
SQL
zack-001/Mirelda-Comitancillo
/dental (6).sql
UTF-8
17,365
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3306 -- Tiempo de generación: 24-02-2020 a las 08:23:38 -- Versión del servidor: 5.7.23 -- Versión de PHP: 5.6.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
true
3362bfa3b08166ade964da22d26ffa1af2108377
SQL
babergma/module3
/module-2/03_Joins/exercise-student/postgres/Exercises/13_directors_harry_potter.sql
UTF-8
278
3.765625
4
[]
no_license
-- 13. The directors of the movies in the "Harry Potter Collection" (4 rows) SELECT DISTINCT person_name FROM movie m JOIN collection c ON m.collection_id = c.collection_id JOIN person p ON m.director_id = p.person_id WHERE collection_name = 'Harry Potter Collection';
true
6d87cfd8cc2552a50ad6cf91075d49c9aab325d2
SQL
YaleArchivesSpace/yams_data_auditing
/agents_and_subjects/linked_agent_resource_count.sql
UTF-8
1,557
3.34375
3
[]
no_license
SELECT resource.title , count(resource.title) as count , 'person' as agent_type FROM agent_person ap LEFT JOIN linked_agents_rlshp lar on lar.agent_person_id = ap.id LEFT JOIN resource on resource.id = lar.resource_id LEFT JOIN user_defined ud on ud.resource_id = resource.id WHERE lar.resource_id is not null AN...
true
14bd6ec2bdb2751e510482cb76d5f8d3510b896a
SQL
Anel13/Anel13project
/page.sql
UTF-8
3,828
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Время создания: Май 21 2016 г., 12:42 -- Версия сервера: 10.1.13-MariaDB -- Версия PHP: 5.5.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
65d6ec32a94cb5dd89fd2c17d9ee82c74fc6e0c9
SQL
MayMeakes/hello-world
/shell/Tunning/OracleSQLTuningGuide.sql
UTF-8
1,575
3.671875
4
[]
no_license
OracleSQLTuningGuide.sql ------------------------------------- #SQLruningTimeOrder set lines 200 pagesize 1000 col sql_id for a30 col child_number 99 col sql_text for a20 select sql_id,child_number,sql_text,elapsed_time/1000000/60 "execute_time(min)" from ( select sql_id,child_number,sql_text,elapsed_time,...
true
a4313fb9dab2f6183a1152004b535ee63deb3bb4
SQL
StarExec/StarExec
/sql/procedures/RunscriptErrors.sql
UTF-8
1,051
3.9375
4
[ "MIT" ]
permissive
-- Description: This file contains all Runscript Error procedures DROP PROCEDURE IF EXISTS RunscriptError // CREATE PROCEDURE RunscriptError(IN node VARCHAR(32), IN jobPairId INT, IN stage INT) BEGIN SET @node_id := ( SELECT id FROM nodes WHERE name=node ); INSERT INTO runscript_errors (node_id, job_p...
true
859b01f086f467aa77825b688f8ca0eb44ae7ad6
SQL
thecmckenney/CSC301
/sql/getProductId.sql
UTF-8
172
3.046875
3
[]
no_license
SELECT productid FROM PRODUCTS JOIN posts on products.title = posts.title and products.memberid = posts.memberid WHERE posts.title = :title and posts.memberid = :memberid;
true
09e7f8f1a7c7770028f23b0fecdaae239fc659a8
SQL
MSR19/BDAD-FEUP-19
/FEUP-BDAD-TRABALHO/Entrega3/int3.sql
UTF-8
277
3.21875
3
[]
no_license
.mode columns .headers on .nullvalue NULL SELECT Nome FROM Pessoa, Funcionario, Horario WHERE Pessoa.codigo = Funcionario.codigo AND Funcionario.codigo = Horario.codigoFunc AND Horario.dia = "20/01/2019";
true
52b873ab9a7a6aa7380eb27459498f9c0083b074
SQL
jorgecocina/apimemoria
/sql/001 - estructura.sql
UTF-8
6,821
3.34375
3
[]
no_license
--Se desactivan las llaves foraneas set FOREIGN_KEY_CHECKS = 0; -- -- Table structure for table `movements` -- DROP TABLE IF EXISTS `movements`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `movements` ( `id` int(11) NOT NULL AUTO_INCREMENT...
true
615f86c2540054e3f56cdd675e512bb1bd9911cb
SQL
FranciscoSepul/BDFerme
/Procedimientos Almacenados/Procedimientos Sucursal/Actualizar Telefono Sucursal.sql
UTF-8
267
2.6875
3
[]
no_license
----- ACTUALIZAR TELEFONO SUCURSAL ----- CREATE OR REPLACE PROCEDURE ACTUALIZAR_TELEFONO_SUCURSAL(P_ID IN NUMBER, P_TELEFONO IN NUMBER) AS BEGIN UPDATE SUCURSAL SET TELEFONO = P_TELEFONO WHERE ID = P_ID; END; --EXECUTE ACTUALIZAR_TELEFONO_SUCURSAL(1, 77223388);
true
b41d01c01af46ffbf95571cdee96726f971860dc
SQL
01vadim10/slot_automat
/slot-auto.sql
UTF-8
6,898
3.21875
3
[ "BSD-3-Clause" ]
permissive
-- phpMyAdmin SQL Dump -- version 3.3.0 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Дек 25 2011 г., 23:56 -- Версия сервера: 5.1.40 -- Версия PHP: 5.2.12 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_R...
true
5d7ff890d68207a88ee452ef604aac4163a5f3bf
SQL
lidd978655924/FoodComment
/src/main/resources/common/sql/createDataBase.sql
UTF-8
6,486
3.015625
3
[]
no_license
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `t_admin` -- ---------------------------- DROP TABLE IF EXISTS `t_admin`; CREATE TABLE `t_admin` ( `userId` bigint(20) NOT NULL AUTO_INCREMENT, `userName` varchar(50) DEFAULT NULL, `userPw` varchar(50) DEFAULT NULL, PRIMARY KE...
true
2b85dde4491176529ec4c059be3e4227fc48fd6e
SQL
simonNozaki/parallel-api
/src/test/resources/com/tm/controller/framework/task_common_data.sql
UTF-8
1,053
3.0625
3
[ "Apache-2.0" ]
permissive
-- タスク処理Controller共通データソースFile -- Users、1ユーザデフォルトで作成 -- pass : stubstub INSERT INTO public.users(user_id, user_name, email, password, used_flag) VALUES ('TM00000001', 'test user', 'test@example.com', '$2a$10$x7HcJvFPjTkpxSvR0upo0e0RpmHDNQt1EM4Ybfsr/erGRC9JfkYqO', '0'); -- task INSERT INTO public.task(task_id, tas...
true
070c89047fbbbb1c1be9e79b6916770d7e1004a4
SQL
CCI-MIT/XCoLab
/microservices/services/admin-service/src/main/resources/db/migration/V1__baseline.sql
UTF-8
894
2.890625
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS `xcolab_ContestEmailTemplate` ( `type_` varchar(75) NOT NULL PRIMARY KEY, `subject` longtext, `header` longtext, `footer` longtext ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE IF NOT EXISTS `xcolab_ConfigurationAttribute` ( `name` varchar(75) NOT NULL, `additionalId` big...
true
1a0281dabf6f2e0fec502f481de1b2cc35ede28f
SQL
mfaishaldp/TubesWebpro
/kliniksunateuy.sql
UTF-8
3,379
3.25
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 24, 2020 at 03:41 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.1.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
ecc1aed80372ba880a06a66cdb16624764adfaf7
SQL
mouldyjon/ra_dw_dbt
/ra_dw/snapshots/deals_snapshot.sql
UTF-8
7,540
3.46875
3
[]
no_license
/* This snapshot table will live in: analytics.snapshots.deals_snapshot */ {% snapshot deals_snapshot %} {{ config( target_schema='snapshots', strategy='check', unique_key='deal_id', check_cols='all' ) }} with deals as ( select * ...
true
35eb7abdbf2b136c6d0ded7ca0e3218414b404ea
SQL
udayshanbhag/TodoEnterprise
/webapp/dbscripts/dbcreate.sql
UTF-8
942
3.6875
4
[]
no_license
-- Database: todo -- DROP DATABASE todo; CREATE DATABASE todo WITH OWNER = todoowner ENCODING = 'UTF8' LC_COLLATE = 'en_US.utf8' LC_CTYPE = 'en_US.utf8' TABLESPACE = pg_default CONNECTION LIMIT = -1; -- Role: todoowner -- DROP ROLE todoowner; CREATE ROLE todoowner WITH LOGIN SUPERU...
true
b8d864752d9dff0919c3abb590c998098527ffff
SQL
alex-cuellar/New_Pagina_Web
/Database/Proyecto_Tablas.sql
UTF-8
3,627
3.265625
3
[]
no_license
CREATE TABLE `categoria` ( `ID` int NOT NULL AUTO_INCREMENT, `RedSoc` varchar(100) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; CREATE TABLE `uanonimo` ( `ID` int NOT NULL AUTO_INCREMENT, `Nombre` varchar(100) DEFAULT NULL, PRIMARY K...
true
db72840fbe33eaf1f68c211cacf101a55fb2c441
SQL
mukundkadlabal/DBMS-SalesAnalysis
/Phase 2/Queries.sql
UTF-8
360
3.234375
3
[]
no_license
SELECT CName FROM COMPANY WHERE CId = 3; SELECT PName FROM PRODUCT WHERE Price > 200 ORDER BY PName; SELECT SUM(Income) FROM CONSUMER WHERE age > 30; SELECT AVG(Price) FROM PRODUCT; SELECT * FROM DISTRIBUTOR WHERE DId = 116; SELECT PName FROM PRODUCT WHERE Price = (SELECT Max(Price) FROM PRODUCT); SELECT * FROM ...
true
0d715fe5d60a22164cfd3f7d049cabd54a4e4fa5
SQL
RobertWSmith/TD_SQL
/On Time Delivery/OPEN_ORDER_FUTURE_FCDD REPORT.sql
UTF-8
8,137
3.46875
3
[]
no_license
-- PROPORTIONS FOR ALL ORDERS SELECT OOF.PBU_NBR || ' - ' || OOF.PBU_NAME AS PBU, OOF.EXT_MATL_GRP_ID AS "External Material Group ID", OOF.OWN_CUST_ID || ' - ' || OOF.OWN_CUST_NAME AS "Common Owner", OOF.MKT_AREA AS "Market Area", OOF.MKT_GRP AS "Market Group", OOF.PROD_GRP AS "Product Group", ...
true
3ca9dda03d02e4d1fddf9ad660e1ddba3584bf4d
SQL
kocmoc1985/MCReplicator
/ProjectDocs/Hoogezand SAP/docs/doc_03.sql
UTF-8
472
2.984375
3
[]
no_license
select * from RecipeMC1 inner join Recipe_Prop_Main on Recipe_Prop_Main.CODE = RecipeMC1.code where LASTUPDATE >= '2013-10-11' and RecipeMC1.code = '00-L-3215' //============================================= select * from Recipe_Prop_Main where CODE = '00-L-3215' //============================================= sele...
true
c92c666f794df160ba9e1d5e6d46f935a4cb232e
SQL
PeterG75/Win10-Research
/Notifications/Notifications_WPNdatabase.sql
UTF-8
903
3.265625
3
[ "MIT" ]
permissive
select Notification.Id, Notification.HandlerId as 'H_Id', NotificationHandler.PrimaryId as 'Application', NotificationHandler.HandlerType, Notification.Type as 'Type', replace(replace(replace(Notification.Payload, char(13,10,32,32,32,32,32,32,32,32),''),char(32,32),''),char(32,32,32,32),'') as 'Payload', Notific...
true
b6a2cb41154d20bc9f91441507e5bb35b7c68e07
SQL
vargabrigitta/quiz-projekt
/eredmenyek.sql
UTF-8
377
2.671875
3
[]
no_license
CREATE TABLE `eredmenyek` ( `id` int(11) NOT NULL, `nev` varchar(64) COLLATE utf8_unicode_ci NOT NULL, `pontszam` int(11) NOT NULL, `datum` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; ALTER TABLE `eredmenyek` ADD PRIMARY KEY (`id`); ALTER TABLE `eredmenyek` MODIFY `id` in...
true
ca42e165d510284f744c2ee41d7e1c43a9deaf53
SQL
OumaDennisOmondi/Ticketify
/ticketify.sql
UTF-8
34,247
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 13, 2020 at 12:49 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true