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
3a01ad7bbcb1e1b2110420fd54ca86d092b870bb
SQL
mtikoian/km-all-projects
/UAS/Databases/UAS/UAS_DB/dbo/Stored Procedures/e_ClientFTP_Save.sql
UTF-8
1,278
3.3125
3
[]
no_license
CREATE PROCEDURE e_ClientFTP_Save @FTPID int, @ClientID int, @Server varchar(100), @UserName varchar(100), @Password varchar(100), @Folder varchar(100), @IsDeleted bit, @IsExternal bit, @IsActive bit, @FTPConnectionValidated bit, @DateCreated datetime, @DateUpdated datetime, @CreatedByUserID int, @UpdatedByUserID int ...
true
97226601272e2a1dcf7a9c1b5673ab4a69449ea0
SQL
Shaita-KrZ/Plateforme_telechargement
/SQL/profit_max_editeur.sql
UTF-8
1,039
4.21875
4
[]
no_license
SELECT E.nom AS Editeur, CA_2.CA_app AS Apps, CA_1.CA_res AS Res, CA_3.CA_Ab AS Abonnement, SUM(CA_2.CA_app + CA_1.CA_res + coalesce(CA_3.CA_Ab,0)) AS CA FROM Editeur E LEFT OUTER JOIN ( SELECT sum(R.prix) as CA_res, E.nom as Nom FROM Editeur E, Transaction T, Ressource R, Achat_simple_ressource ASR WHERE R.editeur ...
true
30c3f3b6d65201b2603dde4a856975f97bb77f11
SQL
dinap18/PLSQL_Database_Systems_Project
/part3/queriesParameters.sql
UTF-8
1,614
4.03125
4
[]
no_license
-- Query1 : list, ifempty, type select pr.pid, pr.pname, p.salary from hospital_staff h inner join person pr on h.pid = pr.pid inner join hiredas hr on h.pid = hr.pid inner join position p on hr.positionid = p.positionid where p.positionname = &<name="PositionName" list= "InternDoctor, Doctor, InternNurse, Nurse" ty...
true
ba633ff9e36b6dfed50eac24e93d9722a1463cd2
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/01453_fixsed_string_sort.sql
UTF-8
1,563
2.875
3
[ "Apache-2.0", "BSL-1.0" ]
permissive
drop table if exists badFixedStringSort; CREATE TABLE IF NOT EXISTS badFixedStringSort (uuid5_old FixedString(16), subitem String) engine=MergeTree order by tuple(); INSERT INTO badFixedStringSort values (UUIDStringToNum('999e1140-66ef-5610-9c3a-b3fb33e0fda9'), '1'); INSERT INTO badFixedStringSort values (UUIDStringT...
true
b41d0d388ce24a569891f83721d797b3725ea815
SQL
519984307/qt_cppmaster
/19_qsqlquerymodel/sql/pedidos.sql
UTF-8
1,582
3.109375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 19-Nov-2017 às 00:34 -- Versão do servidor: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
true
21dd70af0fdb9de330f47bd975f2190ca8e94afe
SQL
caoyang0014/project_test
/database/erd.sql
GB18030
2,500
3.578125
4
[]
no_license
SET SESSION FOREIGN_KEY_CHECKS=0; /* Drop Tables */ DROP TABLE IF EXISTS t_baidu_insight; DROP TABLE IF EXISTS t_crowd; DROP TABLE IF EXISTS t_crowd_keywords; DROP TABLE IF EXISTS t_monthly_active_user; DROP TABLE IF EXISTS t_monthly_mac_duplicate_removal; DROP TABLE IF EXISTS t_other_app_account; DROP TABLE IF EXIST...
true
1cc3abde5c6296095fb785a0748c1a256545a84e
SQL
cornelioroyer/abaco-design
/d_rela_afi_cglposteo.sql
UTF-8
376
2.640625
3
[]
no_license
delete from rela_afi_cglposteo where not exists (select * from afi_depreciacion where afi_depreciacion.compania = rela_afi_cglposteo.compania and afi_depreciacion.codigo = rela_afi_cglposteo.codigo and afi_depreciacion.aplicacion = rela_afi_cglposteo.aplicacion and afi_depreciacion.year = rela_afi_cglposteo.year and a...
true
75ea7a41f00f13ee90d0a6d80cb371c20004437d
SQL
vlzhr/corp-messager
/workbench-create-chat-db.sql
UTF-8
8,329
3.203125
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Tue Jun 5 12:54:35 2018 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TR...
true
260ee67caee9a90a27367b1d6dc2c91d19ec3f8b
SQL
KanishkaDewSandaruwan/info
/Database/atendance.sql
UTF-8
13,762
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 20, 2019 at 08:46 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
73a955cb13cdfe929e7b9861f45d8ffc01de04d5
SQL
zulyang/Webservices
/SQL/sector_SQL.sql
UTF-8
1,296
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 31, 2017 at 06:12 AM -- Server version: 5.7.11 -- PHP Version: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
b45c9a9fdc7799accbf4cf4c3eb78bf7470ded0a
SQL
furnathan/SQL-queries
/Find columns named.....sql
UTF-8
144
2.640625
3
[]
no_license
SELECT DISTINCT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME IN ('language_id') AND TABLE_SCHEMA='THE_DB_NAME';
true
8fb911385738930d9391335dad6d71d03d2e4f5e
SQL
shenjunwei/neurobjects
/resources/results.sql
UTF-8
2,181
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.3.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 21, 2011 at 05:12 PM -- Server version: 5.1.57 -- PHP Version: 5.3.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
7bda2d7cfe33b50c18d356c3af9b11eee61dcc3d
SQL
techTutorial/es-sb-hibernate-fetchtype
/src/main/resources/schema.sql
UTF-8
1,032
3.859375
4
[]
no_license
-- h2 Database DROP TABLE IF EXISTS ES_PRODUCT; create table ES_PRODUCT ( ID_PRODUCT BIGINT AUTO_INCREMENT PRIMARY KEY, NAME_PRODUCT varchar(100) NOT NULL ); DROP TABLE IF EXISTS ES_ACCESSORIES; create table ES_ACCESSORIES ( ID_ACCESSORIES BIGINT AUTO_INCREMENT PRIMARY KEY, ID_PRODUCT_ACCESSORIES BI...
true
87d4ee7f8d00c41573599bc7a024ec52ce304575
SQL
catgoing/mystudy
/00SQL/04TableColligation.sql
UHC
6,573
3.921875
4
[]
no_license
/* Table row, column ɾ create drop ٲٱ alter Data insert delete select update */ CREATE TABLE TB_TEST01( COL1 VARCHAR2(10), COL2 VARCHAR2(10), COL3 VARCHAR2(10) ); ...
true
b3c2f1cb9748d6503a3eb790b0601157f735ef75
SQL
mnorelli/BasicSQLwebinterface
/commands.sql
UTF-8
722
3.09375
3
[]
no_license
#\c mnorelli DROP DATABASE IF EXISTS cafewifi; CREATE DATABASE cafewifi; \l \c cafewifi DROP TABLE IF EXISTS site, address; CREATE TABLE site ( ID INT PRIMARY KEY NOT NULL, NAME TEXT NOT NULL, ADDRESS TEXT, NETWORK TEXT, PASSWORD CHAR(50), NOTE TEXT, BATHRMCODE TEXT, UPDATED DATE ); CREATE TABLE address ( ID INT...
true
cf4b0ed910c0704cbb1640ad93fcc810e09ff7cc
SQL
mucollabo/SQL200
/example/sql/p142.sql
UHC
570
2.984375
3
[]
no_license
set serveroutput on set verify off accept p_ename prompt ' ̸ Էϼ ~ ' declare v_ename emp.ename%type := upper('&p_ename'); v_sal emp.sal%type; begin select sal into v_sal from emp where ename = v_ename; if v_sal >= 3000 then dbms_output.put_l...
true
6f35d53f21605f838b2bd1c509e8d7111045183a
SQL
QuintLeusink/Sprint-4
/scrum/sprint 4/SQL/SQLQuery3.sql
UTF-8
216
3.015625
3
[]
no_license
SELECT tblEvent.EventName, tblEvent.EventDate, tblCategory.CategoryName FROM tblEvent RIGHT JOIN tblCategory ON tblEvent.CategoryID = tblCategory.CategoryID ORDER BY tblEvent.EventDate desc
true
8f2ef9955d205bf60503401d057bdcfb7d5d17d9
SQL
Mgesche/microsoftbi_framework
/Ressources/SSAS/CroisementsNN/Validation _MatrixCle.sql
UTF-8
1,047
3.21875
3
[]
no_license
select 'IDT_Classe_Temps' AS Domaine, FAC.IDT_Classe_Temps as MATRIX_KEY, COUNT(*) as NB from dimclient FAC left join MTX.FactClasseClient_Temps_WRK WRK ON WRK.MATRIX_KEY = coalesce(FAC.IDT_Classe_Temps, -1) where WRK.MATRIX_KEY is null group by FAC.IDT_Classe_Temps union select 'IDT_Classe' AS Domaine, FAC.IDT_Class...
true
63cc68a30ad7846dcf66d99ee26795b65a9b4408
SQL
AlexWuDDD/SelfSQL
/MySQL/DDL语言/constraint.sql
UTF-8
4,789
4.65625
5
[]
no_license
#常见约束 /* 含义:一种限制,用于限制表中的数据,为了保证表中的数据的准确和可靠性 分类: 六大约束 NOT NULL: 非空 用于保证该字段的值不能为空,比如姓名,学号 等 DEFAULT: 默认 用于保证该字段有默认值,比如性别 PRIMARY KEY: 主键,用于保证该字段的值具有唯一性,并且非空,比如学号,员工编号 UNIQUE: 唯一,用于保证该字段的值具有唯一性,可以为空,比如座位号 CHECK: 检查约束[MYSQL 不支持]比如年龄,性别 FOREIGN KEY:外键,用于限制两个表的关系,用于保证该字段的值必须来自与住表的关联列的值 在我们的从表添加外键约束,用于引...
true
3a0ac6854eb5cb04bddbb08fd7fee8cc40fc02ed
SQL
razanHamzeh/Test2
/CONSTRAINTS/PHR_PACKAGE_TYPE.sql
UTF-8
1,084
2.765625
3
[]
no_license
-------------------------------------------------------- -- Constraints for Table PHR_PACKAGE_TYPE -------------------------------------------------------- ALTER TABLE "HISRHAMZEH"."PHR_PACKAGE_TYPE" ADD CONSTRAINT "PHR_PACKAGE_TYPE_PK" PRIMARY KEY ("ITEM_ID", "PACKAGE_TYPE_ID") USING INDEX PCTFREE 10 INITRANS...
true
f037ee246f469ddee19af21df5b523bc18c6123b
SQL
jackliuc/zot-team-jxing
/t_zot_cost.sql
UTF-8
313
2.90625
3
[]
no_license
USE ZOT; DROP TABLE T_ZOT_COST; CREATE TABLE T_ZOT_COST ( COST_ID VARCHAR(50) NOT NULL PRIMARY KEY, COST_TYPE VARCHAR(20) NOT NULL, COST_SUBTYPE VARCHAR(20) NOT NULL, REMARK VARCHAR(512), COST_AMOUNT FLOAT(10,1), COST_OPERATOR VARCHAR(20), COST_TIME TIMESTAMP, CREATE_TIME TIMESTAMP ); COMMIT;
true
289665d2c286877fc53d74d59764d2f8d2869fcd
SQL
8ova/TA-PBW
/inventory/inventory.sql
UTF-8
3,983
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 13 Jan 2021 pada 11.37 -- Versi server: 10.4.14-MariaDB -- Versi PHP: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
f6ee82d3b167d567a87ffa06160b006e98c46fe3
SQL
JLGallardoV/animalia-despliegue-ZEIT
/public/BD/registros.sql
UTF-8
4,763
3
3
[]
no_license
--REGISTROS PRUEBA *NOTA SI SE ACABA DE EJECUTAR EL QUERY DE CREACION, DESHABILITAR EL DELIMITER : --PREMIOS: INSERT INTO premios (idPremio,premio,descripcionPremio) VALUES (NULL, 'envio gratis', 'unicamente republica mexicana'), (NULL, '15% descuento', 'unicamente en mascotas'); --TIPOS DE CLIENTES: INSERT INTO t...
true
92ef62a23d3f16e670eb5171be410f2af87337f6
SQL
BlueSun288/OrderUpDatabase
/Documentation/Presentation/querys.sql
UTF-8
1,221
4.15625
4
[ "Apache-2.0" ]
permissive
-- Use Case Querys select distinct tablearea.name as `Table Area`, fname as `First Name`, lname as `Last Name` from employees natural join manages join tablearea where employees.ID = manages.Employees_ID and tablearea.ID=manages.TableArea_ID; select tables.ID as `Table ID`, orders.ID as `Order ID`, orders.status as ...
true
957e56af7ac90c06f4a08acdf04bd482b527b801
SQL
jakiichu/practiuc2
/mydatabase.sql
UTF-8
3,363
3.421875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Апр 06 2021 г., 17:57 -- Версия сервера: 10.3.16-MariaDB -- Версия PHP: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
1cbbcdaf858e54c097e91a7465c430b911007a64
SQL
postgres/postgres
/src/test/regress/sql/tsearch.sql
UTF-8
37,664
3.578125
4
[ "PostgreSQL" ]
permissive
-- directory paths are passed to us in environment variables \getenv abs_srcdir PG_ABS_SRCDIR -- -- Sanity checks for text search catalogs -- -- NB: we assume the oidjoins test will have caught any dangling links, -- that is OID or REGPROC fields that are not zero and do not match some -- row in the linked-to table. ...
true
8f8720d4f550bd5bdf04528a4630909d9d11e178
SQL
MengFree/vue-express
/todo.sql
UTF-8
1,762
3.15625
3
[]
no_license
/* SQLyog v12.2.6 (64 bit) MySQL - 5.5.53 : Database - todo ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN...
true
26cc60e25fe85dad0af62b72228a36da61a5b496
SQL
s3444261/picnic
/admin/createDB/createDb.sql
UTF-8
5,205
3.875
4
[]
no_license
/* Authors: * Derrick, Troy - s3202752@student.rmit.edu.au * Foster, Diane - s3387562@student.rmit.edu.au * Goodreds, Allen - s3492264@student.rmit.edu.au * Kinkead, Grant - s3444261@student.rmit.edu.au * Putro, Edwan - s3418650@student.rmit.edu.au */ DROP TABLE IF EXISTS `Comments`; DROP TABLE IF EXIST...
true
9a036b7afdfb533bfe1f5c5d64c3df91744a4544
SQL
PawelPeczek/ConferencesDatabase
/StoredProcedures/ManagingParticipantsAtConfDay/AssignParticipantsAtConfDay.sql
UTF-8
306
2.78125
3
[]
no_license
CREATE TYPE PARTICIPANTS_BATCH AS TABLE( ParticipantID INT ) DROP PROCEDURE AssignParticipantsAtConfDay CREATE PROCEDURE AssignParticipantsAtConfDay( @OrdOnConfDayID INT, @data PARTICIPANTS_BATCH READONLY ) AS BEGIN INSERT INTO ParticipAtConfDay SELECT ParticipantID, @OrdOnConfDayID FROM @data END
true
b64d48d91be244b3bde59f67dd35d27d876a6226
SQL
georgetown-cset/contending-frames
/data/world_without_work_frame.sql
UTF-8
5,463
3.390625
3
[]
no_license
with ln as ( -- Select analytic corpus select title, subTitle, content, source.category as source_category, source.editorialRank as editorialRank, matchingKeywords, extract(year from publishedDate) as year, source.name as source_name, url, lower(coalesce(title, "") || " " || ...
true
c0bc2bad421783a06199c5ae6cea4632cf981ea9
SQL
saskatchuwan/W3D2
/import_db.sql
UTF-8
2,626
3.6875
4
[]
no_license
PRAGMA foreign_keys = ON; CREATE TABLE users ( id INTEGER PRIMARY KEY, fname TEXT NOT NULL, lname TEXT NOT NULL ); CREATE TABLE questions ( id INTEGER PRIMARY KEY, title TEXT NOT NULL, body TEXT NOT NULL, author_id INTEGER NOT NULL, FOREIGN KEY (author_id) REFERENCES users(id) ); CRE...
true
5229b98e45bc15201908fd8d4861fe98641480fe
SQL
kurena/QATracker
/database/QATracker2014-03-16.sql
UTF-8
7,118
3.140625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `qa_tracker` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `qa_tracker`; -- MySQL dump 10.13 Distrib 5.5.35, for debian-linux-gnu (x86_64) -- -- Host: 127.0.0.1 Database: qa_tracker -- ------------------------------------------------------ -- Server version 5.5.35-0ubuntu0.13.10.2 /*...
true
85cb5ad0c697bc69794a2e900873bb6188bea2d2
SQL
Felino7727/SQL-Oracle-
/Запрос- DAS для ЛокБриг (Гринберг).sql
UTF-8
2,927
2.84375
3
[]
no_license
SELECT w.B_DEPO_OBL, w.B_NOM_MM, nvl(w.PR_MASH,1)PR_MASH, w.B_TAB_NOM, w.B_FAM, w.B_NAME, w.B_MID_NAME, w.B_DEPO_PRIP, w.B_VID_ROB, w.DATE_JAVKA, e.ID_SER, e.nom, e.ID_DEPO, e.DATE_PRIJOM, r.DATE_VUHID_KP, t.DATE_ZAHID_KP, u.DATE_ZDACHA, DATE_VIDPOCH FROM (select Q.B_DEPO_OBL, Q.B_NOM_MM, ...
true
a3f4a4bb5d3cf3e2fcad95ebbaf74e0bb2a51cc9
SQL
Etimo/diamonds2
/backend/prisma/migrations/20230227230421_init/migration.sql
UTF-8
4,206
3.375
3
[ "MIT" ]
permissive
-- CreateTable CREATE TABLE "BoardConfig" ( "id" UUID NOT NULL DEFAULT gen_random_uuid(), "inventorySize" INTEGER NOT NULL DEFAULT 5, "canTackle" BOOLEAN NOT NULL DEFAULT false, "teleporters" INTEGER NOT NULL DEFAULT 1, "teleportRelocation" INTEGER NOT NULL DEFAULT 10, "height" INTEGER NOT NULL ...
true
7fa54acfc6bea72888ac7ea61899bd330b104945
SQL
jayse45/alx-higher_level_programming-1
/0x0D-SQL_introduction/7-insert_value.sql
UTF-8
229
2.546875
3
[]
no_license
-- a script that inserts a new row in the table first_table (database hbtn_0c_0) in your MySQL server -- New row should be id = 89 and name = Holberton School INSERT INTO first_table(id, name) VALUES ('89', 'Holberton School');
true
80e064927169760c678a9f464187087d85e79322
SQL
HARPgroup/vahydro
/sql/ann_ne_monthly.sql
UTF-8
756
3.984375
4
[]
no_license
select * from ( select a.hydroid, a.name, extract(year from to_timestamp(b.tstime)), b.tsvalue as annual, sum(c.tsvalue) as monthly from dh_feature as a left outer join dh_timeseries as b on ( a.hydroid = b.featureid and b.entity_type = 'dh_feature' and b.varid = 305 ) left outer j...
true
6bbe1196bba4dbeb348962d769e3821a9ad9e23c
SQL
naoya7076/sql-lessons-from-zero
/chapter-5/5-4.sql
UTF-8
258
2.96875
3
[]
no_license
CREATE VIEW AngTankaByBunrui ( shohin_id, shohin_mei, shohin_bunrui, hanbai_tanka, avg_hanbai_tanka ) AS SELECT shohin_id, shohin_mei, shohin_bunrui, hanbai_tanka, (SELECT AVG(hanbai_tanka) as hanbai_tanka_all FROM shohin) FROM shohin;
true
539f192101949cc18086b4852a19b71a03d6244c
SQL
MoonlightKosmos7/Week-7-MySQL
/MySQLWeek1Assignment.sql
UTF-8
881
3.453125
3
[]
no_license
1. mysql> SELECT * from employees where birth_date < '1965-01-01' limit 5; 2. SELECT * from employees where hire_date > '1991-01-01' limit 5; 3. SELECT * from employees where last_name LIKE 'f%'; 4. INSERT INTO employees VALUES (100,'1994-09-12', 'Joon', 'Kim', 'M', '2013-10-01'), (101, '1995-12-30','Tae', 'Kim', 'M...
true
37c419e35d3eeb74e262e4d929726ab78013e955
SQL
meenakshik-optimus/SQL-INDUCTION
/SQL-INDUCTION-MEENAKSHI/ASSIGNMENT TWO.sql
UTF-8
7,020
3.71875
4
[]
no_license
---Question 1:- Create three tables as follows: (i) Product Table: t_product_master (ii)User Table: t_user_master (iii)Transaction Table: t_transaction CREATE TABLE t_product_master(Product_ID varchar(25) PRIMARY KEY,Product_Name varchar(25),Cost_Per_Item int); INSERT INTO t_product_master VALUES('P1','Pe...
true
579207c96909da9a0b6e2dac78fd0082d45ccf04
SQL
trojal/SeAr-mirror
/sql-files/upgrade_logs_r1.5.126.sql
UTF-8
495
2.984375
3
[]
no_license
#CashLog types (C)ash Points,(K)afra Points #Database: log #Table: cashlog CREATE TABLE `cashlog` ( `id` int(11) NOT NULL auto_increment, `time` datetime NOT NULL default '0000-00-00 00:00:00', `char_id` int(11) NOT NULL default '0', `type` enum('C','K') NOT NULL default 'C', `amount` int(11) NOT NULL...
true
f2cb1716a3767f97e8558a318cb546f6b05ea5ea
SQL
dannyhz/mpayrecon
/src/main/resources/sql/SP_BANK_MCH_TOTAL.SQL
GB18030
3,424
3.921875
4
[]
no_license
CREATE OR REPLACE PROCEDURE "MPOS"."SP_BANK_MCH_TOTAL" ( IN "I_BATID" DECIMAL(20,0), IN "I_CKDT" CHARACTER(10), IN "I_CHLNO" VARCHAR(50),--05 ΢Ŷ壬10 ֧壬20 ٸ OUT "O_ERRMSG" VARCHAR(128) ) LANGUAGE SQL BEGIN /*=====================================================================+ ƶյн׻嵥 ...
true
04fb348cf24b785e9866f17f71255f01a622fc7c
SQL
hannank/simple-etl
/create_info_tables.sql
UTF-8
1,579
3.3125
3
[]
no_license
DROP TABLE IF EXISTS raw_to_clean_medicine; DROP TABLE IF EXISTS clean_medicine_to_dosage; DROP TABLE IF EXISTS medicine_purpose; DROP TABLE IF EXISTS protocol_step_definition; CREATE TABLE raw_to_clean_medicine ( raw_name VARCHAR, raw_dosage VARCHAR, rxcui INTEGER, PRIMARY KEY (raw_name, raw_dosage) ); CREAT...
true
7be496e6a3cb4e785dc563ea094f059ac5cc71bc
SQL
s1m0nB/apex-plugin-tradingview
/region_type_plugin_sba_tradingview.sql
UTF-8
10,666
2.96875
3
[ "Apache-2.0" ]
permissive
prompt --application/set_environment set define off verify off feedback off whenever sqlerror exit sql.sqlcode rollback -------------------------------------------------------------------------------- -- -- ORACLE Application Express (APEX) export file -- -- You should run the script connected to SQL*Plus as the Oracle...
true
f54b75ac248eebf5af2646cbb688f9e56a75fbd5
SQL
yj-smart/DotNetClub
/database/tables-sqlserver.sql
UTF-8
1,401
3.28125
3
[ "Artistic-2.0" ]
permissive
create table [User] ( ID bigint identity primary key, UserName nvarchar(20) not null unique, Password nvarchar(32) not null, Email nvarchar(100) not null unique, WebSite nvarchar(100), Location nvarchar(100), Signature nvarchar(200), CreateDate datetime not null, Status tinyint not null ) create table Topic (...
true
66db39522d34f1fe9df718ac8b709f25b9a551db
SQL
christineton/Extract_Transform_Load_Project
/christine/Project 2 Examples/ETL-examples/02-example_ETL_Pandas_Local/demo/query.sql
UTF-8
241
3.46875
3
[ "MIT" ]
permissive
-- Query to check successful load SELECT * FROM premise; SELECT * FROM county; -- Join tables on county_id SELECT premise.id, premise.premise_name, county.county_name FROM premise INNER JOIN county ON premise.county_id = county.county_id;
true
f38e4710a8a9708c08a873dc102886b450b05c33
SQL
JameChen/shopping
/quicksale/app_nahuo_v3.3_ali_release_sign/res/raw/sql.sql
UTF-8
2,997
2.78125
3
[]
no_license
create table upload_tasklist ( id INTEGER not null, create_time TIMESTAMP, title VARCHAR(500), intro VARCHAR(5000), price DEC(10,2), products VARCHAR(5000), cover char(250), images char(500), old_image ...
true
e99d17e70389e70247b9c0812bd61344dded4482
SQL
BoboDuluYaa/penjualan
/susipos (1).sql
UTF-8
7,837
3.015625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 02, 2016 at 10:23 AM -- Server version: 10.1.9-MariaDB -- PHP Version: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
21dd8f1663121d41fc9d5ad5b92579f202457c0b
SQL
calvin-and-smit/ds-interview-qs
/sql/snapchat_liked_pages.sql
UTF-8
872
3.8125
4
[]
no_license
/*************************************************************************************************** Liked Pages This question was asked by: Snapchat `friends` table column type user_id integer friend_user_id integer `page_likes` table column type user_id integer page_id integer Let's say we want to build a n...
true
b187e955bb45c9074fabeb02a4b677d2bc882a18
SQL
bodoiquadi123/thuchanhwebphp
/fashi/db/linhkien.sql
UTF-8
13,902
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3308 -- Generation Time: Nov 26, 2020 at 01:09 PM -- Server version: 5.7.28 -- PHP Version: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
f4140d5bd28d24e6eb2b39f89c8e727f3b79cb2b
SQL
moutainhigh/tz
/ms/sql/biz/T_CONTENT_TYPE.sql
UTF-8
459
2.71875
3
[]
no_license
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `T_CONTENTTYPE` -- ---------------------------- DROP TABLE IF EXISTS `T_CONTENT_TYPE`; CREATE TABLE `T_CONTENT_TYPE` ( `ID` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `TYPE_KEY` varchar(20) NOT NULL COMMENT '网站内容KEY', `T...
true
ae462d78f6ad20173b0ac7b05b48a7cdfd4b04dc
SQL
evfurio/scripts
/Doc/system_queries/GScom user openID.sql
UTF-8
292
3.265625
3
[]
no_license
--SELECT COUNT(*) --3617443 SELECT TOP 1000 uo.dt_date_created, uo.i_customer_id, uo.u_email_address , mu.OpenIDClaimedIdentifier FROM Gamestop_profiles.dbo.userobject uo WITH(NOLOCK) JOIN Gamestop_profiles.dbo.stage_MultipassUsers mu WITH(NOLOCK) ON uo.u_email_address = mu.UserName
true
a0a2c2f0415197dc4d800ed63d825fb518f2ccc0
SQL
kbevers/FIRE-DDL
/QA/Statistics.sql
UTF-8
2,716
3.359375
3
[ "MIT" ]
permissive
SELECT 'PUNKT' AS TABLENAME, NULL AS INFOTYPE, SUM(CASE WHEN REGISTRERINGTIL IS NULL THEN 1 ELSE 0 END) AS CURRENTINSTANSES, SUM(CASE WHEN REGISTRERINGTIL IS NOT NULL THEN 1 ELSE 0 END) AS PREVIOUSINSTANSES, COUNT(REGISTRERINGFRA) AS TOTALINSTANSES FROM PUNKT GROUP BY 1 UNION ALL SELECT 'GEO...
true
aff8b7fac9a8f4308db7515e9b230268273fbd68
SQL
marmikp/Book-My-Garage
/charlie_db (1).sql
UTF-8
4,146
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 24, 2019 at 04:50 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
6fb19c9249a87f24a1017bd8bde9b0bf7c6d4c0b
SQL
OsamuYabuta/wuhan
/db/create.sql
UTF-8
941
3.390625
3
[]
no_license
create table tweets ( id bigint(20) unsigned not null primary key, lang char(2) not null , tweet text not null , username varchar(100) not null, created_at datetime not null, since_id int(11) unsigned default 0, screen_name varchar(255) default null, key idx_lang(lang), key idx_usern...
true
de9735a3af2857f2d1cb42768304bfb9f9fc965a
SQL
quedacoder/Capstone
/import.sql
UTF-8
2,801
3.890625
4
[]
no_license
CREATE TABLE `project` ( `project_id` bigint(20) NOT NULL AUTO_INCREMENT, `changed_by` varchar(255) DEFAULT NULL, `changed_date` datetime(6) NOT NULL, `created_by` varchar(255) DEFAULT NULL, `created_date` datetime(6) NOT NULL, `description` varchar(255) DEFAULT NULL, `process_area` int(11) DEFAULT NULL, ...
true
71d8631daa8e53615a5cb022fb816a82c1c65be7
SQL
jayesh25parab/Entity-Relationship-Diagram
/My_Query_A3.sql
UTF-8
15,388
3.203125
3
[]
no_license
DROP TABLE Audit_Log CASCADE CONSTRAINTS ; DROP TABLE Configuration CASCADE CONSTRAINTS ; DROP TABLE Connection CASCADE CONSTRAINTS ; DROP TABLE Device CASCADE CONSTRAINTS ; DROP TABLE Download CASCADE CONSTRAINTS ; DROP TABLE Media_Player CASCADE CONSTRAINTS ; DROP TABLE Member CASCADE CONSTRAINTS ; ...
true
8fe4a88c6faf408404ec16d17499105a8af250bb
SQL
kylenielebeck/Simple-CD-Management-System
/PROJECT 4.sql
UTF-8
1,069
4.34375
4
[]
no_license
USE disk_inventory; /*creates view*/ CREATE VIEW View_Individual_Artist AS SELECT ArtistID, ArtistName FROM Artist; /*Select only individual artist, in my case most of mine are bands*/ SELECT * FROM View_Individual_Artist WHERE ArtistName = 'Bon Jovi', 'Phil Collins', 'Ed Sheeran', 'John Legend'; /* Selec...
true
b26d1f8046fc82f6b332a6d3cbfd27451b108ed2
SQL
baiyu2683/sql
/SQL基础教程/outerjoin_cases.sql
UTF-8
411
3.53125
4
[]
no_license
select sp.shop_id, sp.shop_name,sp.product_id, p.product_name, p.sale_price from shopproduct as sp right outer join product as p on sp.product_id = p.product_id; -- 使用不确定代替为null的字段 select coalesce(sp.shop_id, '不确定'), coalesce(sp.shop_name,'不确定'),p.product_id, p.product_name, p.sale_price from shopproduct as sp right o...
true
86d8739b36aa6b5f2ed22ae39ccb2fc313486d85
SQL
alayonx4/negocio-web-con-bulma-css-laravel-axios
/juegos.sql
UTF-8
3,487
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 27-05-2020 a las 18:33:26 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
5e1f0c57f53d2d2793b22771cfed6f751e5016ac
SQL
HideOne/Learn
/jing_dong.sql
UTF-8
5,275
2.78125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : evil Source Server Version : 50561 Source Host : 192.168.0.113:3306 Source Database : jing_dong Target Server Type : MYSQL Target Server Version : 50561 File Encoding : 65001 Date: 2018-10-10 16:15:48 */ SET FOREIGN_KEY_CHECKS=0; -- ...
true
9ce1342269544b7aa6f3c3f747a595792638fc83
SQL
mkoscak/koberce
/Koberce/Queries/example.sql
UTF-8
150
2.6875
3
[]
no_license
-- Tu pride nazov, ktory sa zobrazi ako text tlacitka (musi zacinat //) select * from sold s join arena a on s.code = a.code where code = 101102
true
7550802f00e25399668c194d8f048d22c2a2b638
SQL
dzvonari/firmapp23
/Script-7.sql
UTF-8
494
3.203125
3
[]
no_license
drop database if exists firmapp23; create database firmapp23; use firmapp23; create table projekt( sifra int not null primary key auto_increment, naziv varchar(50) not null, cijena decimal(18.2) ); create table programer( sifra int not null primary key auto_increment, ime varchar(50) not null, prezime varchar...
true
ba084715341daf5e04871c21e0a5bd1fe0da3cf1
SQL
radtek/abs3
/sql/mmfo/bars/Trigger/tai_tmp_priocom_nbs_list.sql
UTF-8
948
2.609375
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Trigger/TAI_TMP_PRIOCOM_NBS_LIST.sql ======= PROMPT ===================================================================================== PROMPT *** Create trigger T...
true
f65a648e3b5cbe2401a13ded9e31b1bbad3a07fd
SQL
SviatlanaJavaHTP/TAT6_Library_create_book
/sql_test.sql
UTF-8
2,330
3.09375
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.7.16-log - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 9.4.0.5125 -- ---------------------------------------------------...
true
43ac1719532b1d4de59ff06c95f2c916c29cd543
SQL
nilenso/postgresql-monitoring
/monitor.sql
UTF-8
12,875
3.796875
4
[]
no_license
-- Cache PREPARE cache_tables AS SELECT relname AS "relation", heap_blks_read AS heap_read, heap_blks_hit AS heap_hit, ( (heap_blks_hit*100) / NULLIF((heap_blks_hit + heap_blks_read), 0)) AS ratio FROM pg_statio_user_tables; PREPARE cache_total AS SELECT sum(heap_blks_read) AS heap_read, su...
true
bfa9cf3dea6ebf829c2c4536d12ad2968b24efa2
SQL
elfachruz/sip_guru
/UASplatform/sipguru.sql
UTF-8
2,519
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Waktu pembuatan: 18. Juli 2017 jam 08:42 -- Versi Server: 5.5.16 -- Versi PHP: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101...
true
cc46a0bbc96b9ebc46efa656147174ca9dedd40f
SQL
ngocbinh123/java_hcmus
/cookmanagement.sql
UTF-8
6,431
3.984375
4
[]
no_license
/* DROP DATABASE IF EXISTS cookingmanagement_v1 CREATE DATABASE cookingmanagement_v1 WITH OWNER = postgres ENCODING = 'UTF8' TABLESPACE = pg_default LC_COLLATE = 'C' LC_CTYPE = 'C' CONNECTION LIMIT = -1; */ CREATE DATABASE cookingmanagement_v1 WITH ENCODING='UTF8' OWNER=...
true
f5609573ff461d3eb6e106f5fa1947234c57ed33
SQL
DaniilPavlov/PostgreSQLCourse
/ScriptsSQL/select_subquerry.sql
UTF-8
409
2.984375
3
[]
no_license
SELECT * FROM personal_data WHERE personal_data_id = (SELECT personal_data_id FROM player WHERE player_id = (SELECT player_id FROM transfer_cost WHERE season_finish = ...
true
c0b554313ca2c20bbae3c3eb3fb1999f9b29284d
SQL
nikhilkeshava/online-course-registration-
/SQL File/onlinecourse.sql
UTF-8
9,760
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 11, 2022 at 02:35 AM -- Server version: 10.3.15-MariaDB -- PHP Version: 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
true
fd2333e25c425fee400d753f21e4c7055866ea3b
SQL
kivitendo/kivitendo-erp
/sql/Pg-upgrade2-auth/right_productivity_as_category.sql
UTF-8
1,329
3.15625
3
[]
no_license
-- @tag: right_productivity_as_category -- @description: Rechte: Produktivität als eigene Kategorie -- @depends: master_rights_positions_fix -- @locales: Productivity (TODO list, Follow-Ups) -- make space before 'configuration' UPDATE auth.master_rights SET position = position+1000 WHERE position >= (SELECT position...
true
570a041b45b578fbf781c610c7284448665e529c
SQL
yeqizhang/helloworld
/src/main/resources/db/db.sql
UTF-8
583
2.875
3
[]
no_license
CREATE DATABASE `test` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_bin */; use test; SET FOREIGN_KEY_CHECKS=0; DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(500) COLLATE utf8_bin DEFAULT NULL, `age` int(11) DEFAULT NULL, PRIMARY KEY (`id...
true
e287b2c6a334da84a2d9add53a4ff88c321128c7
SQL
syphu1993/C2021G1-lephuocsyphu
/MODULE 3/Case_Study_Database/Query_23_24.sql
UTF-8
1,496
3.578125
4
[]
no_license
-- 23. Tạo Store procedure Sp_1 Dùng để xóa thông tin của một Khách hàng nào đó với Id Khách hàng được truyền vào -- như là 1 tham số của Sp_1 DELIMITER // create procedure Xoa_khach_hang(Id_p int) begin delete from khach_hang where ID_khach_hang = Id_p; end // DELIMITER ; SET FOREIGN_KEY_CHECKS=0; SET SQL_SAFE_UPDAT...
true
d8cac5a3c2e1638da075d53ef34df75a302e4a84
SQL
andymiaomiao/framework-repositories
/spring-boot/tcc-transaction-boot/db/tcc-boot.sql
UTF-8
4,409
3.40625
3
[ "Apache-2.0" ]
permissive
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50638 Source Host : localhost:3306 Source Schema : tcc-boot Target Server Type : MySQL Target Server Version : 50638 File Encoding : 65001 Date: 24/01/2019 0...
true
e0d376705ff4ebd0f08a89c53a9c6e1b01e2cf2d
SQL
fatihari/Patika.dev_solutions
/SQL/03-Like-ILike/main.sql
UTF-8
352
2.890625
3
[ "MIT" ]
permissive
/** * @author Fatih ARI - 30.08.2021 */ -- Option 1: SELECT country FROM country WHERE country LIKE 'A%a'; -- Option 2: SELECT country FROM country WHERE country LIKE '_%_%_%_%_%n'; -- Option 3: SELECT title FROM film WHERE title ILIKE '%t%t%t%t%'; -- Option 4: SELECT * FROM film WHERE title LIKE 'C%' AND lengt...
true
a4a57a5d44d99fe99737626b5762fa3a43102dc0
SQL
amax3002/timeentry_sql
/time_entry.sql
UTF-8
4,098
4.59375
5
[]
no_license
--Find all time entries. SELECT * FROM time_entries --Find the developer who joined most recently. SELECT * FROM developers ORDER BY created_at DESC LIMIT 1 --Find the number of projects for each client. SELECT c.name AS client_name, count(p.client_id) AS counter FROM clients AS c LEFT JOIN projects AS p ON c.id = p...
true
ed174fd88fcd799fcbbcb9b7682c49024bf71641
SQL
TheChanec/mcs.repository
/Database/Archive/Tables/Inspections.sql
UTF-8
3,021
2.515625
3
[]
no_license
CREATE TABLE [Archive].[Inspections] ( [InspectionID] BIGINT NOT NULL, [PMID] BIGINT NOT NULL, [InspectionStatusID] TINYINT NOT NULL, [VendorID] INT NOT NULL, [VendorSubID] INT NULL,...
true
21d8086d6e7baf7bf4987405769ce5d2b6c8cbaf
SQL
yasminmenchaca/database-exercises
/join_exercises.sql
UTF-8
2,831
4.625
5
[]
no_license
USE employees; # Using the example in the Associative Table Joins section as a guide, write a query that shows each department along with the name of the current manager for that department. SELECT d.dept_name AS 'Department Name', CONCAT(e.first_name, ' ', e.last_name) AS 'Departmen...
true
3a4006d909a7fb57dc1da282665d0492c6bac280
SQL
SergioO21/holbertonschool-higher_level_programming
/0x0D-SQL_introduction/101-avg_temperatures.sql
UTF-8
196
3.5625
4
[]
no_license
-- Displays the top 3 of cities temperature during July and August ordered by temperature (descending). SELECT city, AVG(value) as avg_temp FROM temperatures GROUP BY city ORDER BY avg_temp DESC;
true
1111f976d8fe7c9dd21208454f42980519704d48
SQL
antonpaquin/Homulili
/src/backend/sqlmigrations/1517806519_change_pagedata_to_pagemirrors/down.sql
UTF-8
402
2.96875
3
[]
no_license
DROP TABLE pagemirrors; CREATE TABLE pagedata ( page_id SERIAL PRIMARY KEY NOT NULL, data BYTEA, time_created TIMESTAMP DEFAULT current_timestamp, time_updated TIMESTAMP, FOREIGN KEY (page_id) REFERENCES pages(page_id) ON DELETE CASCADE ); CREATE TRIGGER update_timestamp_pagedata...
true
7135f3e5a93f281aee4fada0b311cb2ab16a664e
SQL
IgorCs95/lanches-api
/src/main/resources/db/migration/V04__create_item_pedido.sql
UTF-8
299
3.03125
3
[]
no_license
CREATE TABLE item_pedido( id SERIAL PRIMARY KEY, pedido_id INTEGER, produto_id INTEGER, valor DECIMAL(10,2) NOT NULL, valor_total DECIMAL(10,2) NOT NULL, quantidade DECIMAL(10,2) NOT NULL, FOREIGN KEY(produto_id) REFERENCES produto (id), FOREIGN KEY(pedido_id) REFERENCES pedido (id) );
true
c4f2c89dc2f26e37c71d26793549bf910554dcb3
SQL
Lucas-Lameira/schema-product
/sqlScripts/inserir_dados.sql
UTF-8
3,406
3.171875
3
[]
no_license
-- date data "1980-06-25" -- usuario INSERT INTO usuario (id, nome, email, senha) VALUES (DEFAULT, "lucas lameira", "lucaslameira@gmail.com", "123456"); INSERT INTO usuario VALUES (DEFAULT, "leandro ribeiro", "leandroribeiro@gmail.com", "7891011"); -- fornecedor INSERT INTO fornecedor (id, nome, rua, cep, numero, b...
true
bff91c7d73da4f09d16a0b3fea38bceab8ea9ea3
SQL
thiagosonnessogarcia/repositSites
/B2better/banco/scriptBanco.sql
UTF-8
868
3.234375
3
[]
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'; CREATE SCHEMA IF NOT EXISTS `db_pi` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ; USE `db_pi` ; -- ---------...
true
89f84f21a183b6296ec10c7d60411684f0f39daf
SQL
www2388258980/rty-service
/src/main/resources/sql/rty_oa_dial_persons.sql
UTF-8
1,255
2.953125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50553 Source Host : localhost:3306 Source Database : rty Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2020-02-23 11:44:21 */ SET FOREIGN_KEY_CHECKS=0; -- ...
true
e0238d6f3d91ac63fedc8050e8a3377402dc4cee
SQL
srdantas/fortnight
/app/src/main/resources/db/V3__CREATE_TRANSFERS.sql
UTF-8
513
3.203125
3
[ "Apache-2.0" ]
permissive
CREATE TABLE `transfers` ( `id` bigint auto_increment, `debtor` varchar(13) NOT NULL, `creditor` varchar(13) NOT NULL, `transaction` varchar(100) NOT NULL, PRIMARY KEY (`id`), CONSTRAINT `FK_74` FOREIGN KEY `fkIdx_74` (`debtor`) REFERENCES `customers` (`document`), CONSTR...
true
7ca525c8def4dcec4a959e08c5cbdb7f6ea376aa
SQL
cristobaldaw/tienda_online
/tienda.sql
UTF-8
14,052
3.390625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.0.6 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 28-02-2017 a las 20:22:34 -- Versión del servidor: 5.5.53-0ubuntu0.14.04.1 -- Versión de PHP: 5.5.9-1ubuntu4.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
true
f80210020511bccd22e4c4856798663c2350f8bb
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day08/select1914.sql
UTF-8
267
3.15625
3
[]
no_license
SELECT sen.name FROM SENSOR sen, SENSOR_TYPE st, COVERAGE_INFRASTRUCTURE ci WHERE sen.SENSOR_TYPE_ID=st.id AND st.name='Thermometer' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['3056','3013','3026','4069','2211','1413','6215','6210','3206','5019'])
true
d14334f6e0153635dded63655ebb970690b4d228
SQL
shukia/WebAPI-unsafe
/src/main/resources/resources/cdmresults/sql/report/death/sqlDeathByType.sql
UTF-8
274
3.046875
3
[ "Apache-2.0" ]
permissive
SELECT c2.concept_id AS conceptId, c2.concept_name AS conceptName, ar1.count_value AS countValue FROM @results_database_schema.ACHILLES_results ar1 INNER JOIN @vocab_database_schema.concept c2 ON CAST(ar1.stratum_1 AS INT) = c2.concept_id WHERE ar1.analysis_id = 505
true
769ba086a5f5e9fdc00827cc989e2a6fe98daf89
SQL
weinan003/TPCH
/lsp/workloads/RETAILDW/scripts/gen_facts.sql
UTF-8
10,518
3.0625
3
[]
no_license
-- gen_facts.sql -- This script uses the order_item_base table and the pre-populated dimension tables to "denormalize" and generate the fact tables. -- 7 hours \timing on -- Load the "global" variables PATH_OF_DCA_DEMO_CONF_SQL --DROP INDEX IF EXISTS order_lineitems_cust_id; TRUNCATE TABLE retail_demo.Order_LineI...
true
90ee5534426bb2e60c47e30928484407bc887ef7
SQL
fernando-romulo-silva/myStudies
/java/spring/pro-spring-5/pro-spring-5-chapter09-transaction-management/pro-spring-5-chapter09-part01-base-dao/src/main/resources/db/ddl.sql
UTF-8
516
2.75
3
[ "Apache-2.0" ]
permissive
CREATE USER 'prospring5_A'@'localhost' IDENTIFIED BY 'prospring5_A'; CREATE SCHEMA musicdb_a; GRANT ALL PRIVILEGES ON musicdb_a . * TO 'prospring5_A'@'localhost'; FLUSH PRIVILEGES; CREATE USER 'prospring5_B'@'localhost' IDENTIFIED BY 'prospring5_B'; CREATE SCHEMA musicdb_b; GRANT ALL PRIVILEGES ON musicdb_b . * TO 'pr...
true
72e3af4f808219c1f3a16ae4fdbceca464387a22
SQL
J-Shine/miniDBMS
/project1/35.sql
UTF-8
113
3.3125
3
[]
no_license
SELECT name FROM Pokemon, Evolution WHERE Evolution.before_id = Pokemon.id AND before_id > after_id ORDER BY name
true
9151e6a32fc0278e259c09dd6e99be0d624ba33f
SQL
radtek/abs3
/sql/mmfo/bars/Function/f_2401_grp.sql
WINDOWS-1251
1,447
2.828125
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/function/f_2401_grp.sql =========*** Run *** PROMPT ===================================================================================== CREATE OR REPLACE FUNCTION BA...
true
4f7106de3fd28ef4b3dbfee61b1f9fdeeade219e
SQL
KD-Secret-Family-Recipes-Cookbook/backend
/src/main/resources/data.sql
UTF-8
2,845
3.109375
3
[]
no_license
-- noinspection SqlDialectInspectionForFile -- noinspection SqlNoDataSourceInspectionForFile DELETE FROM users; DELETE FROM recipes; DELETE FROM ingredients; INSERT INTO users(userid, username, password, useremail) VALUES (1, 'user1', 'user1', 'user1@user.com'), (2, 'user2', 'user2', 'user2@...
true
71126985edff6c8c85f061ae38c4c4e41134b680
SQL
dotbehrens/aloud-server
/schema.sql
UTF-8
2,242
3.765625
4
[]
no_license
-- sudo -u postgres psql -f schema.sql -- delete in production ALTER USER postgres with encrypted password 'postgres'; DROP DATABASE IF EXISTS aloud; CREATE DATABASE aloud; \c aloud; CREATE TABLE users ( id INT GENERATED ALWAYS AS IDENTITY, username VARCHAR(50) NOT NULL, password CHAR(50), email VARCHAR(50) ...
true
a98ab8cf3323cef833cc93e259302ba1eb4f29b3
SQL
nerzhul250/DBproject
/Paquetes/Nivel3/asignacionTriggers.sql
UTF-8
2,457
2.875
3
[]
no_license
CREATE OR REPLACE TRIGGER asignacionAutomaticaSolModificar AFTER INSERT ON solmodificacionProducto FOR EACH ROW DECLARE cedula funcionario.cedula%TYPE; BEGIN cedula:=pkAsignacionNivel2.fRetornarFuncionarioDisponible; pkAsignacionNivel2.realizarAsignacion (SYSDATE,TRIM(cedula), :NEW.solicitud_codigo,NULL, NULL...
true
7299295a13d86f096ff5f2614b9edae05169fa8c
SQL
maki567/mailsystem1
/mailsystem1/src/main/resources/sql/create_table.sql
UTF-8
616
3
3
[]
no_license
USE mailsystem1; CREATE TABLE mst_user ( id int(11) PRIMARY KEY AUTO_INCREMENT, user_name VARCHAR(32) NOT NULL UNIQUE, password VARCHAR(16) NOT NULL, family_name VARCHAR(255) NOT NULL, first_name VARCHAR(255) NOT NULL, family_name_kana VARCHAR(255) NOT NULL, first_name_kana VARCHAR(255) NOT NULL, gen...
true
41bca69cb0da63e8755801497ee0dca131196b5a
SQL
rhariyani/timed-calls
/docs/sql/ddl.sql
UTF-8
752
3.640625
4
[ "Apache-2.0" ]
permissive
CREATE TABLE IF NOT EXISTS `History` ( `history_id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `duration` INTEGER NOT NULL, `date` INTEGER, `timer_id` INTEGER NOT NULL, FOREIGN KEY (`timer_id`) REFERENCES `Timer` (`timer_id`) ON ...
true
8ae742caf3b6ac4cec65e5d649a3795ba4afadd6
SQL
LahiruNE/VmiT
/database/vmit.sql
UTF-8
12,041
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Sep 21, 2017 at 09:49 PM -- Server version: 5.7.19-0ubuntu0.16.04.1 -- PHP Version: 7.0.22-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
true
3da00494d31ec82c8db9571d62cd4dc764332034
SQL
dkman123/BigBrotherBot-For-UrT43
/b3/plugins/xlrstats/sql/mysql/playerbody.sql
UTF-8
612
2.75
3
[]
no_license
CREATE TABLE IF NOT EXISTS `%s` ( `id` MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT, `bodypart_id` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0', `player_id` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0', `kills` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', `deaths` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', `teamk...
true
915ee79c30a9355f213b378ca002fed8cb1634ca
SQL
vivek-gohil/Shared
/Assignment-1_Solution-1_Oracle10G.sql
WINDOWS-1252
26,005
3.453125
3
[]
no_license
----------------------------- --1) Create the following tables: ------------------------------- create table Client_master ( client_no varchar2 (6) constraint prmKeyCNO primary key, name varchar2 (20) not null, address1 varchar2 (30), address2 varchar2 (30), city varchar2 (15), state varchar2 (15), pincode nu...
true
e8180d910a1cbaf49153e8bdb1ff4ec71e9b31f8
SQL
YDyachenko/sungorus
/data/structure.sql
UTF-8
4,660
3.28125
3
[ "MIT" ]
permissive
# ************************************************************ # Sequel Pro SQL dump # Версия 4096 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Адрес: localhost (MySQL 5.6.17) # Схема: passwords # Время создания: 2015-02-08 18:12:44 +0000 # ***************************************************...
true