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
869f76bb51c7ebac746495e51f4517ded31c28a0
SQL
xrost/Sql2016
/1 - DataMasking.sql
UTF-8
796
3.4375
3
[]
no_license
SELECT *, USER_NAME() AS [CurrentUser] FROM Users CREATE USER WebUser WITHOUT LOGIN GRANT SELECT ON Users TO WebUser GRANT UPDATE ON Users TO WebUser GRANT UNMASK TO WebUser REVOKE UNMASK TO WebUser DROP USER IF EXISTS WebUser ALTER TABLE Users ALTER COLUMN Password ADD MASKED WITH (FUNCTION = 'partial(1, "XXXXXXX", ...
true
4f4597f239f69808622c426fab53c039462e7f80
SQL
cochoaguilo/Warehouse
/Back-End/consultas.sql
UTF-8
943
3.5
4
[]
no_license
ALTER table compania add foreign key (id_ciudad) references ciudades(id_ciudad) insert into compania (nombre,direccion,correo,telefono,id_ciudad) values ('Google', 'Santa Maria 666', 'google@gmail,com', '44454422', 1) insert into contactos (nombre, id_compania, Cargo, id_canal, id_interes, id_ciudad, apellido, corre...
true
fe448605af7f265b8eb9d77103ca2d3ad71e4210
SQL
Listen180/pgSQL_Hub
/pgSQL/CREATE mall_area.sql
UTF-8
743
3.46875
3
[ "MIT" ]
permissive
CREATE TABLE analysis.mall_cord AS SELECT "bid", "shop_name", "floor", "tags", "floor_tag", "lat_a", "lng_a" FROM analysis.mall_tag_temp WHERE "floor_tag"!~'停车场|车位' --OR "floor"~'B' ORDER BY "bid", "floor" ; CREATE TABLE analysis.mall_area AS SELECT "bid", "floor", COUNT(*), --ST_Union(ST_SetSRID(ST_MakePoin...
true
0e2a53c462eafa50b449e1ad7e6970a279cac7fa
SQL
osomanden/noah
/dump/gnf_noah_default_data.sql
UTF-8
70,868
3.109375
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `gnf_noah` -- -- -- Dumping data for table `agreement_types` -- INSERT IGNORE INTO `agreement_types` (`agreement_type_id`, `agreement_type_name`, `agreement_type_description`) VALUES (1, 'HW Support', 'Harware Support'), (2, 'OS Suppor...
true
9a9e4ab82e87a5baa7dc0b23e89ffcf3176c6ab5
SQL
BuslaievValerii/db_lab_2
/populate.sql
UTF-8
14,091
2.5625
3
[]
no_license
INSERT INTO Publisher (publisher_id, publisher_name) VALUES (1, 'Scholastic Inc.'); INSERT INTO Publisher (publisher_id, publisher_name) VALUES (2, 'Nimble Books'); INSERT INTO Publisher (publisher_id, publisher_name) VALUES (3, 'Gramercy Books'); INSERT INTO Publisher (publisher_id, publisher_name) VALUES (4, 'Del ...
true
cc68d329d2bd5f6f61fc271889757a7ebc96920e
SQL
art-frela/blog
/db/blog.sql
UTF-8
2,613
3.90625
4
[]
no_license
drop database if exists blog; create database blog; -- create table scope use blog; drop table if exists users; create table users ( id varchar(42) PRIMARY KEY, username varchar(255) null, nick varchar(255) null, email varchar(500) ...
true
5fc866e26a8e65f522e7a586ad5c4a6ec9913081
SQL
biladina/sikd_web
/commands/sql/sikd.sql
UTF-8
9,375
2.734375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Sep 06, 2021 at 08:44 PM -- Server version: 10.5.9-MariaDB -- PHP Version: 7.4.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
6b503764cd904afcf3e5001a387619897aa3aa27
SQL
Yang-33/isucon8-final
/blackbox/sql/isubank.sql
UTF-8
995
3.375
3
[ "MIT" ]
permissive
use isubank; CREATE TABLE user ( id BIGINT NOT NULL AUTO_INCREMENT, bank_id VARBINARY(191) NOT NULL, credit BIGINT NOT NULL DEFAULT 0, created_at DATETIME(6) NOT NULL, PRIMARY KEY (id), UNIQUE KEY (bank_id) ) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4; CREATE TABLE credit ( id BIGINT NOT ...
true
b984d75804d5da524856e95892796fdd139967dc
SQL
1029478049/center-code
/produ/src/database/oracle/RECORD_SQL.sql
UTF-8
519
3.84375
4
[]
no_license
-- 查询表结构 SELECT t1.Table_Name AS "表名称", t3.comments AS "表说明", t1.Column_Name AS "字段名称", t1.Data_Type AS "数据类型", t1.Data_Length AS "长度", t1.NullAble AS "是否为空", t2.Comments AS "字段说明", t1.Data_Default "默认值" FROM cols t1 left join user_col_comments t2 on t1.Table_name=t2.Table_name and t1.Column_Name=t2.Column_Na...
true
ac08ef1de337b18d5d592aff13d0a2ee9882b643
SQL
makumba/parade2
/foreignkeys and indexes.sql
UTF-8
1,377
3.15625
3
[]
no_license
-- Foreign Key Constraints ALTER TABLE `PercolationStep` DROP FOREIGN KEY `FKB547075E29F27E9C` ; ALTER TABLE `PercolationStep` ADD FOREIGN KEY ( `root` ) REFERENCES `parade`.`PercolationStep` ( `percolationstep` ) ON DELETE CASCADE ON UPDATE CASCADE ; ALTER TABLE `PercolationStep` DROP FOREIGN KEY `FKB547075EDDD0B8B...
true
bdb7cbb9676d9f2dbf084281a5a1972a2162daf7
SQL
usvn/usvn
/src/app/install/sql/sqlite.sql
UTF-8
3,100
4.125
4
[]
no_license
CREATE TABLE usvn_files_rights ( projects_id integer not null, files_rights_path text, files_rights_id integer primary key autoincrement, constraint fk_to_belong foreign key (projects_id) references usvn_projects (projects_id) on delete restrict on update restrict ); CREATE TABLE usvn_groups ( groups_name...
true
ad34bfe0d64d9e7d599f582b8588c19bc267606a
SQL
FundacaoLemann/prova-brasil
/proficiencia/SQLs/fact_proficiency_new.sql
UTF-8
902
2.71875
3
[]
no_license
START TRANSACTION; CREATE TABLE `fact_proficiency_new` ( `dim_regional_aggregation_id` INT(11) NULL DEFAULT NULL, `dim_politic_aggregation_id` INT(11) NULL DEFAULT NULL, `partition_state_id` TINYINT(3) UNSIGNED NULL, `enrolled` INT(1) NOT NULL DEFAULT '0', `presents` INT(1) NOT NULL DEFAULT '0', `with_proficiency...
true
1a574fd654cba9235059622d4325955b50976811
SQL
majoabraham/soa-priklad
/db/ponuka_table.sql
UTF-8
2,424
3.265625
3
[]
no_license
-------------------------------------------------------- -- File created - Pondelok-apríla-15-2019 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Table PONUKA -------------------------------------------------------- CREATE TABLE...
true
20d92474e1ab861734fe513e882ceab791195995
SQL
rin-nas/postgresql-patterns-library
/dba/pg_basebackup_progress_bar.sql
UTF-8
1,044
3.546875
4
[ "MIT" ]
permissive
-- pg_basebackup progress bar, copy speed, estimated duration, estimated finish datetime -- Запуcкать под ролью postgres!!! -- SET TIME ZONE '+3'; --MSK select pg_size_pretty(b.backup_streamed) as pretty_backup_streamed, pg_size_pretty(b.backup_total) as pretty_backup_total, a.query_start, e.dur...
true
f98695c82df1e11e8c5842906499dcc955dab5bc
SQL
rahayun100/uas-web
/FILE DATABASES TYPE SQL/db_elearning (1).sql
UTF-8
5,142
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 18, 2021 at 10:55 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 5.6.39 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
8f16f8a3f3a2a79494a47fff1559b0a0b2c3de10
SQL
NovencusSnbl/pa2_D3TI_20_11
/pa2.sql
UTF-8
6,041
3.078125
3
[]
no_license
/* SQLyog Ultimate v8.55 MySQL - 5.5.5-10.1.38-MariaDB : Database - pa2 ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN...
true
ed1282eb66b39b43713e8e794731afb46d6c2936
SQL
mateuszbas/VotesCalculator
/VotesDatabaseQuery.sql
UTF-8
741
2.90625
3
[]
no_license
 CREATE TABLE [Candidates] ( [CandidateId] [int] NOT NULL IDENTITY PRIMARY KEY, [Name] [nvarchar](max) NOT NULL, [Party] [nvarchar](max) NOT NULL ); CREATE TABLE [Voters] ( [VoteId] [int] NOT NULL IDENTITY PRIMARY KEY, [FirstName] [nvarchar](max) NOT NULL, [LastNam...
true
0224ffc93ce435ea7efe9ce09a50e5604f5daec1
SQL
mebelousov/antlr_psql
/src/test/resources/sql/insert/203ed025.sql
UTF-8
210
2.890625
3
[ "MIT" ]
permissive
-- file:update.sql ln:99 expect:true INSERT INTO upsert_test VALUES (1, 'Baz') ON CONFLICT(a) DO UPDATE SET (b, a) = (SELECT b || ', Correlated', a from upsert_test i WHERE i.a = upsert_test.a) RETURNING *
true
33afa58ef7dd9e0c0ce95e703becbd17dbce3229
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/00830_join_overwrite.sql
UTF-8
471
2.953125
3
[ "BSL-1.0", "Apache-2.0" ]
permissive
DROP TABLE IF EXISTS kv; CREATE TABLE kv (k UInt32, v UInt32) ENGINE Join(Any, Left, k); INSERT INTO kv VALUES (1, 2); INSERT INTO kv VALUES (1, 3); SELECT joinGet('kv', 'v', toUInt32(1)); CREATE TABLE kv_overwrite (k UInt32, v UInt32) ENGINE Join(Any, Left, k) SETTINGS join_any_take_last_row = 1; INSERT INTO kv_overw...
true
69bd69764f56dc9c0093de1ae3a7bcfbf25bde69
SQL
PedroRibeiro95/IEProj
/Schemas/shopping_cart.sql
UTF-8
234
3.09375
3
[]
no_license
# Sequence for client id CREATE sequence cart_id start with 1 increment by 1; # Stores clients information CREATE TABLE cart ( userid NUMBER(10), itemid NUMBER(10), quantity NUMBER(10), PRIMARY KEY(userid, itemid) );
true
ab775113066ef943de8a1a44c92a8b087c180730
SQL
BarakMoskovich/Software-Engineering
/Database Systems/Project/Queries/security.sql
UTF-8
573
3.984375
4
[]
no_license
use zoomDB; # Restrict writing a message to a meeting when you are not participating in it. CREATE VIEW write_messages AS (SELECT (SELECT first_name FROM client WHERE client_id = sender_client_id) AS 'FROM', (SELECT IF(receiver_client_id IS null, 'All meeting', (select first_name fro...
true
c47427b93fb7af9ecc1ca6145d6fd2c64aed4ee3
SQL
sonofsabbath/academic_demo
/data warehouses/l3_zad4.sql
UTF-8
645
3.484375
3
[]
no_license
CREATE VIEW Lab3Zad4 as SELECT SalesOrderHeader.SalesOrderID, OrderDate, DATEPART(YEAR, OrderDate) as 'OrderYear', DATEPART(MONTH, OrderDate) as 'OrderMonth', DATEPART(DAY, OrderDate) as 'OrderDay', FirstName, LastName, CompanyName, City, StateProvince, CountryRegion, TotalDue, OrderQty FROM AdventureWorksLT.SalesLT.Sa...
true
b315329af105542008af2325d283e86f39400013
SQL
radtek/abs3
/sql/mmfo/bars/Function/f_numeric_characters.sql
UTF-8
1,176
2.71875
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/function/f_numeric_characters.sql =========* PROMPT ===================================================================================== CREATE OR REPLACE FUNCTION BA...
true
411fc3963642ac150989a0f81735696287ba0e88
SQL
Lukaszm328/StonePaperScissors
/game.sql
UTF-8
1,481
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Czas generowania: 17 Paź 2016, 11:11 -- Wersja serwera: 10.1.10-MariaDB -- Wersja PHP: 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
31500c84bd38a14f9b7a8ed950250dffcfd6aa45
SQL
gabrielpagote/ATV-DBFilmes-Android
/dbFilmesApp.sql
UTF-8
555
2.609375
3
[]
no_license
drop database if exists dbFilmes; create database dbFilmes; use dbFilmes; create table tbTitulos( codTit int not null auto_increment, nome varchar(100), tipo varchar(50), locado bit, primary key(codTit)); insert into tbTitulos(nome,tipo,locado)values('Barbie e as 12 princesas bailarinas','Suspense',1); insert into tb...
true
d6c3e5c9495b56d9d8735a6ea82d4a30770d2017
SQL
Miramif/ATM
/MySQL_Dumps/banks.sql
UTF-8
1,586
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Час створення: Жов 27 2019 р., 15:29 -- Версія сервера: 10.4.8-MariaDB -- Версія PHP: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
afd7ec5acb2c0b705820246be4714d3d184035bc
SQL
nit-siet/Teradata-Practice
/teradata EDUREKA/Teradata Assigment/Assignment 5.sql
UTF-8
1,260
4.09375
4
[]
no_license
-----------Assignment 5 ------------ ----Question 1 Write a query to identify customers whose age is above the average age of customers from Customers table (Use subquery) SELECT cust.cust_id,Coalesce(name.name_prefix,''),name.first_name, name.last_name FROM customer cust INNER JOIN customer_name name ON (name.cu...
true
a9e9d1ccc627ba5a075bffb4acee5c900f009930
SQL
muntaza/Open_Persediaan
/sql2_persediaan/beban_rekap_sql/beban_barang5_kehutanan.sql
UTF-8
802
2.9375
3
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
DROP VIEW IF EXISTS view_beban_barang5_kehutanan CASCADE; CREATE VIEW view_beban_barang5_kehutanan AS SELECT nama_provinsi, id_provinsi, nama_kabupaten, id_kabupaten, nama_lokasi_bidang, id_lokasi_bidang, nama_skpd, id_skpd, nama_barang, kode_barang, satuan, id_satuan, jenis_barang, id_jenis_barang, sum(beban)...
true
613cd7e6e1d5ea7c54c604632c6659bf836f92d1
SQL
jcboy111/CarManageJ2EE
/database/carmanage.sql
UTF-8
10,033
3.171875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : MySQL Source Server Type : MySQL Source Server Version : 50720 Source Host : localhost:3306 Source Schema : carmanage Target Server Type : MySQL Target Server Version : 50720 File Encoding : 65001 Date: 22/12/2017 13:08:...
true
bd2b96c99ad2d7262f9bcbf3a144db504482da2a
SQL
brayanSamuel/evaluacion-3-registroAsistentes
/evento_asistencia.sql
UTF-8
2,336
3.03125
3
[]
no_license
-- MariaDB dump 10.19 Distrib 10.4.19-MariaDB, for Win64 (AMD64) -- -- Host: localhost Database: evento -- ------------------------------------------------------ -- Server version 10.4.19-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_S...
true
67470da2c9e8b068278477dd48799494b5b15a9a
SQL
ServusAndy/tutorial_db
/BP_48/lesson_4.sql
UTF-8
709
3.609375
4
[ "MIT" ]
permissive
SELECT DISTINCT `country` FROM `cars`; SELECT DISTINCT `country`, `manufc` FROM `cars`; SELECT COUNT(*) FROM `cars`; SELECT `model`, COUNT(*) FROM `cars`; SELECT COUNT(*), MAX(`price`), MIN(`price`), AVG(`price`), SUM(`price`) FROM `cars`; SELECT COUNT(*), MAX(price), MIN(price), CAST(A...
true
7cda5d5c840516bf48cc515f3ca91c3c65623561
SQL
simhaonline/dyatel
/database/initdb.sql
UTF-8
42,191
3.734375
4
[]
no_license
CREATE DOMAIN phone AS TEXT CHECK( VALUE ~ E'^\\+?[0-9\\*\\#]+$' ); CREATE TABLE numtypes ( numtype VARCHAR PRIMARY KEY, descr TEXT ); CREATE TABLE directory ( num PHONE PRIMARY KEY, numtype VARCHAR NOT NULL REFERENCES numtypes(numtype), descr TEXT, is_prefix BOOLEAN NOT NULL DEFAULT FALSE ); CREATE INDEX dire...
true
46aee31ca5df564b0ec3b159e2a87c8999a7b17c
SQL
Mannarinoo/Boston-Crime-Data-Analysis
/Boston Crime Data Analysis/BOSTON_CRIME QUERIES.sql
UTF-8
3,581
4.15625
4
[]
no_license
--Counts the total times each OFFENSE_CODE_GROUP has been commited SELECT Count(b.INCIDENT_NUMBER) TotalCrime, b.OFFENSE_CODE_GROUP FROM BostonCrimeData2 b Group BY OFFENSE_CODE_GROUP Order BY TotalCrime DESC --Counts the total crime by month in a specific year SELECT Count(b.INCIDENT_NUMBER) TotalCrime, ...
true
1f743a645a7b1def6493a62ee33e5ddf15a2d285
SQL
chenxy11/wx
/wx-master/src/main/resources/db/migration/V7__ADD_DEPT_DICT.sql
UTF-8
2,319
3.4375
3
[]
no_license
-- Create table create table DEPT_DICT ( DEPT_CODE VARCHAR2(9), DEPT_NAME VARCHAR2(40), DEPT_ALIS VARCHAR2(40), DEPT_ATTR VARCHAR2(2), DEPT_OUTP_INP VARCHAR2(1), INPUT_CODE VARCHAR2(20), DEPT_DEVIDE_ATTR VARCHAR2(24), DEPT_LOCATION VARCHAR2(80), DEPT_OTHER ...
true
8d6b781765414d0a477bcb42bac2e4f080abec23
SQL
samuelbraga/kafka-stream
/kafka/postgres/sql/reasearch.sql
UTF-8
250
2.75
3
[]
no_license
CREATE TABLE research (student_id INTEGER, rating INTEGER, research INTEGER, PRIMARY KEY (student_id)); \copy research FROM '/home/data/research_1.csv' DELIMITER ',' CSV HEADER \copy research FROM '/home/data/research_2.csv' DELIMITER ',' CSV HEADER
true
2243bf47c9920a678a1642d8e724376a1389f5b0
SQL
umarnawaz/see-click-predict-fix
/predictions.sql
UTF-8
1,363
3.90625
4
[]
no_license
set search_path to kaggle_see_click_predict_fix; drop table votes_predictions_float cascade; drop table views_predictions_float cascade; drop table comments_predictions_float cascade; create table votes_predictions_float(labels int,predictions float); create table views_predictions_float(labels int,predictions float)...
true
86a35be01d0b64223d6eee9cea938d283fbeb286
SQL
vidyasagarl/ClickstreamFUnnelAnalysis
/session.sql
UTF-8
625
3.421875
3
[]
no_license
insert into tblsession select * from (SELECT @row_number:=CASE WHEN timestampdiff(MINUTE,convert( @prev_event ,datetime),convert(c.event_time , datetime))>60 or @prev_userid !=user_id THEN @row_number + 1 ELSE @row_number END AS sessionid, @prev_event:= c.event_time as event_time, @prev...
true
a9aa937ddd9b807e21d1d7d355fb731b0b2fd2e0
SQL
RealMagoj/bootcampx
/3_queries_group-by/3_large_cohorts.sql
UTF-8
225
4.125
4
[]
no_license
SELECT cohorts.name as cohort_name, count(students.cohort_id) as student_count FROM cohorts JOIN students ON cohorts.id = students.cohort_id GROUP BY cohorts.name HAVING count(students.cohort_id) >= 18 ORDER BY student_count;
true
4a95685ddedfb674aa224868bff8fd1c799c2d5d
SQL
connornagel586/SchoolWork
/Senior Design/TBD/grad_tracker_demo.sql
UTF-8
6,950
3.3125
3
[ "MIT" ]
permissive
-- MySQL dump 10.14 Distrib 5.5.56-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: grad_tracker -- ------------------------------------------------------ -- Server version 5.5.56-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTE...
true
5b6d711978fef1faedd4c0cf13a7af0614e7feac
SQL
neetocode/BancoDeDadosII
/Exercicios/Em sala/exemplo exists.sql
UTF-8
310
3.46875
3
[]
no_license
select * from times select * from jogadores select * from historicos select cod_time, nom_time from times where cod_time in (select cod_time from historicos where cod_jog = 2) select cod_time, nom_time from times t where exists (select cod_time from historicos where cod_jog = 2 and cod_time = t.cod_time)
true
7d3f10fcd5454bf01d3be0ca4b4dfb438300ca4b
SQL
Rafi-nagli/CommerceCentric
/Ccen.DAL/SQL/View/ViewUnmaskedListings.sql
UTF-8
2,372
3.765625
4
[]
no_license
SELECT l.Id, l.Market, l.MarketplaceId, l.ListingId, l.SKU, l.IsFBA, l.IsRemoved, l.ItemId, l.CurrentPrice, siToItem.Weight, siToItem.Id AS StyleItemId, siToItem.Size AS ConvertedSize, siToItem.Quantity, s.StyleID AS StyleString, s.Id AS StyleId, i.ASIN, i.Size, i.Color, i.Pa...
true
dcb71851c69ce4d2f8a2e12d3ef898ba50ea8725
SQL
CerjioNava/SQL_and_Databases_ZTM
/Advanced_SQL/Employees_code_2.sql
UTF-8
3,225
4.78125
5
[]
no_license
-- GROUP BY -- Question: How many employees worked in each department. /* SELECT dept_no, COUNT(emp_no) FROM dept_emp GROUP BY dept_no ORDER BY dept_no; */ -- QUESTION 2: Show me all the employees, hired after 1991 and count the amount of positions they've had /* SELECT e.emp_no, e.first_name, e.last_name, COUNT(t.t...
true
1809b69eb8267b9245b3d17371bc2dd20d7b0c89
SQL
cragun/Ignite-Backend
/DataReef.TM.DataAccess/Database/SQL/Migrations/OUCustomFields_and_Values_to_OUSettings.sql
UTF-8
395
2.875
3
[]
no_license
INSERT INTO OUSettings ([Guid], OUID, Name, [Value], [Group], Inheritable, DateCreated, CreatedByID, TenantID, [Version], IsDeleted, ValueIsDefault) select NEWID(), CV.OUID, CF.DisplayName, CV.Value, 2, 1, CF.DateCreated, CV.OwnerID, 0, 0, 0, 0 FROM OUCustomValues CV INNER JOIN OUCustomFields CF ON CV.CustomFieldID = C...
true
c25f5e96f2467a9532920037e5ab44ab7402796b
SQL
UchaBokeria/blog-ver-0.2
/database/DB/liveChat.sql
UTF-8
1,811
2.859375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : pizzilab Source Server Type : MySQL Source Server Version : 100328 Source Host : out27.keliweb.com:3306 Source Schema : udkedhjd_maindb Target Server Type : MySQL Target Server Version : 100328 File Encoding : 65001 Da...
true
edcb7600ef6397b85a4b34c8d9e92182317e4aeb
SQL
CrusaderW/spatialdb_project
/sql/001_cr_table_weatherstation.sql
UTF-8
412
3.015625
3
[]
no_license
-- Table: weatherstation -- DROP TABLE weatherstation; CREATE TABLE weatherstation ( cityId integer NOT NULL, cityName character varying(256), longitude numeric, latitude numeric, CONSTRAINT weatherstation_pkey PRIMARY KEY (cityId), ) WITH ( OIDS=FALSE ); ALTER TABLE weatherstation OWNER TO postgres; GR...
true
9e8660595b090201c46a748e5f9721e382c43f32
SQL
ricardolimati/O2
/BancoDados/ricardol_assim.sql
UTF-8
2,638
3.40625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: 19-Abr-2019 às 02:48 -- Versão do servidor: 5.7.25 -- versão do PHP: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
true
86620061d2de6944d3f8f94d270d6365a93e130c
SQL
joseabreudeoliveira/PLSQL
/56-TestandoTrigger com Inserting e Deleting IF.sql
UTF-8
673
3.609375
4
[]
no_license
--TestandoTrigger com Inserting e Deleting IF SELECT * FROM VENDA SELECT * FROM ESTOQUE INSERT INTO VENDA VALUES (1,1,50) DELETE VENDA UPDATE ESTOQUE SET EST_QUANTIDADE = 100; DROP TRINGGER baixa_estoque CREATE OR REPLACE TRIGGER baixa_estoque AFTER INSERT OR UPDATE OR DELETE OF VEN_QUANTIDADE ON VENDA FOR EACH...
true
6bb77da20036f8264990c62de91014086a70e790
SQL
Labruixeta/test
/porpoise/database.sql
UTF-8
4,905
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.0 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Sep 14, 2011 at 11:37 AM -- Server version: 5.5.12 -- PHP Version: 5.3.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
1817f825dd04ef51feb0036dc11b2a354d8040b4
SQL
alcidessmf/BANCO-DE-DADOS
/BANCO DE DADOS/SQL/QUERYS/SUPLPIER/Questão4-1.sql
UTF-8
178
3.453125
3
[]
no_license
SELECT p.pname FROM parts p INNER JOIN sppj ON sppj.parts_pno = p.pno INNER JOIN projects pr ON pr.pjno = sppj.projects_pjno GROUP BY p.pname HAVING 2 = COUNT(DISTINCT pr.pjno)
true
755de3384b2636c6a3763b64333f9773efc596db
SQL
thanhtd1/jcordthanh1to9
/tool/auto_generater/script_table/output/create_table_trump_master.sql
UTF-8
1,544
3.15625
3
[]
no_license
drop table IF EXISTS trump_master; create table trump_master ( sysid BIGINT NOT NULL -- システムID ,opeid BIGINT NOT NULL -- 操作ID ,sys_mode INTEGER NOT NULL -- 操作種別 ,recid BIGSERIAL NOT NULL -- RECID ,sys_date TIMESTAMP NOT NULL -- 処理日 ,sys_user_id VARCHAR(20) NOT NULL -- 処理ユーザID ,reg_date TIMESTAMP NOT NULL -- 作成日 ...
true
7968e6e8e6fd6f11943c40122eb07e34f9630bee
SQL
AlessandroCaroti/DataBase-project
/sql_file/Visite.sql
UTF-8
3,936
4.21875
4
[]
no_license
--DROP MATERIALIZED VIEW "UniGenovaSocialSport".Programma; -- DROP MATERIALIZED VIEW "UniGenovaSocialSport".ProgrammaTorneo; -- DROP VIEW "UniGenovaSocialSport".Medagliere; set search_path to 'UniGenovaSocialSport'; --VISITA 1 - gli impianti sono aperti 24h/24 create view /*materialized*/ Programma(Struttura, Mese, ...
true
d3536df864d55fe92e61894428af4ad182966e6c
SQL
HectorPeru2/eg-manejo-proyectos-sql
/54_ManejoProyectos_LogTareasPorInsercion.sql
UTF-8
805
3.65625
4
[]
no_license
USE manejo_proyectos; -- 4 Cada vez que se agregue una tarea a un proyecto hay que generar un log, con la fecha, -- la descripción del evento ("Alta de tarea") y la referencia a la tarea generada. DROP TABLE IF EXISTS LogTareas; CREATE TABLE LogTareas ( Id int AUTO_INCREMENT NOT NULL PRIMARY KEY, DescripcionEven...
true
37c0d26f49d1d9e4f15d43521f49a87f7310a5c2
SQL
ngoyal16/LeetCode
/00176 - Second Highest Salary/solutions.sql
UTF-8
155
3.21875
3
[]
no_license
# Write your MySQL query statement below SELECT ( SELECT Salary FROM Employee GROUP BY Salary ORDER BY Salary desc LIMIT 1, 1 ) AS SecondHighestSalary
true
123bc02a2d1286f946c4c4b71e3eb281cef4ca11
SQL
caseycbrown/wspecomap
/db/t_taxon.sql
UTF-8
1,157
3.625
4
[]
no_license
/*Represents a taxonomic entry. Rather doubtful that we would need to have more than genus and species, but it could be done. Could build out the taxonomic structure in database tables, but at this point that seems not even remotely useful for our purposes usda_code is the abbreviation (typically 4 characters) that ...
true
4545c4851175b856d94a62a94f2b59b6f8a8d256
SQL
solocao/mk-blog
/mk-blog-web/src/main/resources/data/blog.sql
UTF-8
8,727
3.78125
4
[]
no_license
/* Navicat Premium Data Transfer Source Server : 127.0.0.1 Source Server Type : MySQL Source Server Version : 80023 Source Host : 127.0.0.1:3306 Source Schema : blog Target Server Type : MySQL Target Server Version : 80023 File Encoding : 65001 Date: 27/02/2021 13:25...
true
a6e1613d184e723fbb6d9675644d8cb7614b30ed
SQL
Stanislav-vsv/Oracle
/Скрипты/Сравнение проводок на ядре и ФВ_NEW.sql
WINDOWS-1251
4,030
3.3125
3
[]
no_license
with t11 as (select * from dwh.transaction_htran where deleted_flag = 'N'and validto = '31.12.5999' and value_day between '28.05.2015' and '03.06.2015'), t1 as (select * from t11 at1 join dwh.GL2ACCOUNT_HDIM gl21 on gl21.uk = at1.gl2account_debit_uk and gl21.deleted_flag = 'N'and gl21.validto = '31.12.599...
true
7d5358f99f916b46e64f1a136dc28bebc748f4f4
SQL
Yanzhit/TrackingProgressInDevEducation
/TrackingProgressInDevEducationDB/TrackingProgressInDevEducationDB/Tables/Lectors.sql
UTF-8
321
2.625
3
[]
no_license
CREATE TABLE [TrackingProgressInDevEducationDB].[Lectors] ( [id] INT IDENTITY (1, 1) NOT NULL, [FullName] NVARCHAR (50) NOT NULL, [Email] NVARCHAR (50) NULL, [Password] NVARCHAR(50) NULL, [IsActivated] BIT NOT NULL, CONSTRAINT [PK_LECTORS] PRIMARY KEY CLUSTERED ([id] ASC) );
true
dc8644b5f378c6880b30c30e185c1c13fbe34c4f
SQL
johneparker/af-edfi-shared
/Aurora - Reporting - IC/SQL/TeacherStudentLinks.sql
UTF-8
862
4
4
[ "Apache-2.0" ]
permissive
SELECT DISTINCT CAST(SR.SectionIdentifier AS INT) AS SectionID , CAST(C.CourseCode AS INT) AS CourseID , S.StudentUniqueID AS StudentNumber , SR.BeginDate AS RosterStartDate , SR.EndDate AS RosterEndDate , ST.StaffUniqueID AS StaffNumber , SA.BeginDate AS StaffStartDate , SA.EndDate AS S...
true
8709a182d9b2cb4695a98fa5f16cb011d2a090fb
SQL
jhenitmj/TraLuiz
/oleo/oleoDB.sql
UTF-8
784
3.109375
3
[]
no_license
create database oil use oil create table usuario ( cod int primary key, email varchar(50), senha varchar(50) ); create table oleo ( codOleo int primary key, nome varchar(50), categoria varchar(50), tipo varchar(50), fabricante varchar(50), valor decimal(5,2) ); create table cliente ( codCli int primary ke...
true
b62d30089c06d89bd2ba43ece106bd796ff87508
SQL
brettak09/SQL_Project
/SQL Queres/query_8.sql
UTF-8
137
2.9375
3
[]
no_license
SELECT e.last_name, COUNT(e.last_name) as frequency_last_name FROM employees as e GROUP BY e.last_name ORDER BY frequency_last_name DESC
true
6c0018ef4ba4ecef65feae3f1f4d0edd19e8367a
SQL
ZeynelAkin/Java-EE-Calismalari
/17_JSP-JSF-JPA-Hibernate-Spring-WildFly-CSS-Bootsrap/target/classes/veritabani.sql
UTF-8
1,017
2.875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `firmaveritabani` DEFAULT CHARACTER SET utf8 ; CREATE TABLE `firmaveritabani`.`personel` ( `id` INT NOT NULL AUTO_INCREMENT COMMENT '', `adi` VARCHAR(45) NULL COMMENT '', `soyadi` VARCHAR(45) NULL COMMENT '', `cinsiyeti` VARCHAR(10) NULL COMMENT '', `eposta` VARCHAR(100)...
true
8eb1df2f7bdc7d7f77c1c7afd2ee1aedad60dd79
SQL
yangchieh0921/Chieh_Yang-FIP
/database/portfolios.sql
UTF-8
2,199
3.015625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Apr 08, 2021 at 04:46 PM -- Server version: 5.7.26 -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
6328c694a029c9af7bfbf031c59a1e7c47c12e6b
SQL
VictorMagalhaesSales/JavaFX-locacao-de-equipamentos
/src/LocacaoDeEquipamentos/dao/BancoDeDados.sql
UTF-8
4,115
3.53125
4
[]
no_license
create database Locacao default character set utf8 default collate utf8_general_ci; use Locacao; create table professor( cdprofessor int(10) not null AUTO_INCREMENT, nome varchar(50) not null, materia varchar(50) not null, login varchar(30) not null, senha varchar(30) not null, primary key(cdpr...
true
4eb3722a9e9b5afd76af01c0f90c3468a29a439e
SQL
myarchives/converter-api
/database.sql
UTF-8
3,434
3.515625
4
[ "MIT" ]
permissive
-- Converter API (https://github.com/Stormiix/converter-api) -- Copyright (c) Stormix (https://www.stormix.co/) -- Licensed under the MIT License (https://opensource.org/licenses/MIT) -- -- Table structure for table `api_keys` -- CREATE TABLE `api_keys` ( `id` int(11) NOT NULL, `api_key` varchar(300) NOT NULL, ...
true
a481ca800fc3fe53e1a07fa06316acca75a37d04
SQL
mohaimenkhalid/Laravel_Ecommerce_Site
/db/laravel_ecommerce.sql
UTF-8
26,512
3.0625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 28, 2019 at 06:03 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
c12394c71f2d6c5d929cbb56907933777059ea39
SQL
VladMl/ml_FileBrowser
/source/db.sql
UTF-8
7,252
3.296875
3
[ "MIT" ]
permissive
CREATE GLOBAL TEMPORARY TABLE dir_list(file_name VARCHAR2(4000), is_file INTEGER) ON COMMIT DELETE ROWS; CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "DirectoryLister" AS import java.io.File; import java.util.Arrays; import java.sql.*; public class DirectoryLister { public static void getFileList(String idir, S...
true
7c553d69746c4fbe62aa821252eb00b2f89f20df
SQL
Cajjunb/Trabalho_de_SI_2015-1
/trabalhosi.sql
UTF-8
2,786
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 30, 2015 at 01:43 AM -- Server version: 5.6.17 -- PHP Version: 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 */;...
true
ae4361ea627be0d34ba50eb87fc85f919af9ff59
SQL
anilkan/kotlin-graphql-java
/resources/db/migration/V1.0.4__add_table_firms.sql
UTF-8
565
3.5
4
[]
no_license
-- Table.firms CREATE TABLE public.firms ( id integer NOT NULL, name character varying(255) NOT NULL ); ALTER TABLE public.firms OWNER TO postgres; CREATE SEQUENCE public.firms_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.firms_id_seq OWNER TO po...
true
0bcea163c03ae56ee1e43244cb36656ddd359a69
SQL
p4535992/delta
/source/java/ee/webmedia/alfresco/workflow/bootstrap/delta_task_file_table.sql
UTF-8
238
3.03125
3
[]
no_license
CREATE TABLE delta_task_file ( task_file_id BIGSERIAL PRIMARY KEY, -- auto-incremented task_id text REFERENCES delta_task(task_id) ON DELETE CASCADE, file_id text NOT NULL, UNIQUE(task_id, file_id) DEFERRABLE INITIALLY DEFERRED );
true
f564ede96792ce52feae38d47158784c6e3bc900
SQL
phamkhanh20120494/https-github.com-phamkhanh20120494-Nhom43__1451062019__1451062205
/banhang.sql
UTF-8
4,481
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 14, 2017 at 07:27 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.1.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
true
527b71230b9352530e8585951d857cfed0f41e05
SQL
20DollarsBoots/backend-shopp
/src/main/resources/create_banco.sql
UTF-8
994
3.34375
3
[]
no_license
create table category ( id serial primary key, name varchar(200) not null, description varchar(300) ); create table product ( id serial primary key, name varchar(200) not null, description varchar(300), price double precision, id_category bigint references category ); create table users ( id serial primary key, name...
true
bdb60baf195d9e8a463f141f42c7b8d2db2f00ce
SQL
AnasGuetarni/Academy_Geneva
/justificatifs_/justificatif_absence_18.sql
UTF-8
3,006
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jan 06, 2019 at 12:33 PM -- Server version: 5.7.24-0ubuntu0.18.04.1 -- PHP Version: 7.2.10-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
7648142d1a3dbd6a7d752ed9737566a5008593b3
SQL
tozo/ztv
/ztv-backend/src/main/resources/schema.sql
UTF-8
889
3.0625
3
[]
no_license
CREATE TABLE IF NOT EXISTS FEED ( ID INT NOT NULL PRIMARY KEY, NAME varchar2(255) NOT NULL, URL varchar2(1000) NOT NULL ); CREATE TABLE IF NOT EXISTS STREAM ( FEED_ID INT NOT NULL, URL varchar2(1000) NOT NULL, TITLE varchar2(255) NOT NULL, GUIDE_NUMBER ...
true
37c36633ec3f4d758d1211212b802d9be384b094
SQL
ksandeeprao80/ORT_SRS
/Database/INSERT/TR_SurveyAnswers_20120827.sql
UTF-8
216
2.890625
3
[]
no_license
INSERT INTO DBO.TR_SurveyAnswers (QuestionId,Answer,AnswerText) SELECT TSQ.QuestionId, TSA.Answer,TSA.AnswerText FROM TR_SurveyAnswers TSA,TR_SurveyQuestions TSQ WHERE TSQ.QuestionId <> 1 ORDER BY TSQ.QuestionId
true
02fb1d401ff046541bfb961668106dc341e06818
SQL
dmadams/cs121-2017
/hw7/reporting.sql
UTF-8
2,156
4.15625
4
[]
no_license
-- [Problem 6a] SELECT protocol, num_requests FROM resource_dim NATURAL JOIN resource_fact ORDER BY num_requests DESC LIMIT 10; -- [Problem 6b] SELECT resource, response AS error_response, COUNT(*) AS count FROM resource_dim NATURAL JOIN resource_fact WHERE response >= 400 GROUP BY resource, response ...
true
a2fe96e8d19a227e7588e04ebacfcd29d640c09c
SQL
GustavoScabuzzi/GenerationAtividades
/Exer_SQL/ExerMySQL_21092021/Exer02.sql
UTF-8
2,612
3.5
4
[]
no_license
create database db_pizzaria_legal; use db_pizzaria_legal; drop table tb_pizza; drop table tb_categoria; create table tb_categoria( -- drop table tb_categoria id_categoria BIGINT NOT NULL PRIMARY KEY auto_increment, tipo VARCHAR(20) NOT NULL, massa VARCHAR(20) NOT NULL ); create table tb_pizza( -- dr...
true
4cfc7afacae26406c6344e46d0ad1bb5beaa8110
SQL
luola63702168/SQLAndSoftwareUse
/SQLAndSoftwareUseFile/MongoDB/笔记02.sql
UTF-8
6,112
3.625
4
[]
no_license
--聚合 -- 管道命令 -- 在mongodb中,⽂档处理完毕后, 通过管道进⾏下⼀次处理 $group: -- 将集合中的⽂档分组, 可⽤于统计结果(能够同时按照多个键进行分组) $match: -- 过滤数据, 只输出符合条件的⽂档(不用find的原因是因为这是在进行管道操作) $project: -- 修改输⼊⽂档的结构, 如重命名、 增加、 删除字段、 创建计算结果(修改输入输出的结果) $sort: -- 将输⼊⽂档排序后输出(使用语法参考普通用法即可) $limit: -- 限制聚合管道返回的⽂档数(limit和skip参考普通用法) $skip: -- 跳过指定数量的⽂档, 并返回余下的⽂档 $...
true
fa4869762ddaa41eb384ba3b0eeaec67f2ef1c4f
SQL
SteveF92/FantasyCritic
/Database/SchemaUpdates/FC_1.6.1-1.7.0_specialRosterSlots.sql
UTF-8
1,125
3.625
4
[ "MIT" ]
permissive
ALTER TABLE `tbl_league_publishergame` ADD COLUMN `SlotNumber` INT NOT NULL AFTER `CurrentlyIneligible`; CREATE TABLE `tbl_league_specialgameslot` ( `SpecialSlotID` CHAR(36) NOT NULL, `LeagueID` CHAR(36) NOT NULL, `Year` YEAR NOT NULL, `SpecialSlotPosition` INT(10) NOT NULL, `Tag` VARCHAR(255) NULL DEFAULT NULL,...
true
33bd9d0e1cfbe719511627f8e11b30c123205d66
SQL
MaiaMedeiros/mySQL
/handling_errors_insert.sql
UTF-8
1,070
3.8125
4
[]
no_license
DELIMITER $ DROP PROCEDURE IF EXISTS HANDLING_ERROR_INSERT$ CREATE PROCEDURE HANDLING_ERROR_INSERT(IN_STUDENT_ID INT , IN_EVENT_ID INT , IN_SCORE INT ) BEGIN DECLARE fk_error INT DEFAULT 0; DECLARE sql_stmt VARCHAR(100); DECLARE student_id INT; DECLARE event_id INT; DECLARE s...
true
fb78f05f9c550313052a0739158aff52a955cb61
SQL
pgrigoro/batch-files-processor
/src/test/resources/sql/import-data.sql
UTF-8
1,745
2.546875
3
[]
no_license
INSERT INTO seller (id, job_id, document, name, salary) VALUES (1, 1, '12312312356', 'Joao', 90500); INSERT INTO seller (id, job_id, document, name, salary) VALUES (2, 1, '12312312356', 'Pedro', 1200); INSERT INTO seller (id, job_id, document, name, salary) VALUES (3, 1, '12312312356', 'Antonio', 5000); INSERT INTO sel...
true
2c768505c56cc9c41eb72cf44cf8de31dbad977e
SQL
aporcel/SQL-SummitWorks
/Phase1/SQLQuery04.sql
UTF-8
125
2.53125
3
[]
no_license
-- Ex 04 CREATE PROC Q04 AS BEGIN SELECT * FROM Employee_Details WHERE Emp_First_Name Like 'A%'; END;
true
5af0f9b871f76b7d390daabe0dccc7257d55c54c
SQL
Dirpyth/concoursesuitecrm-community
/src/sql/mssql/upgrade/2003-05-15.sql
UTF-8
535
2.671875
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
/* Install business process events table */ CREATE TABLE business_process_events ( event_id INT IDENTITY PRIMARY KEY, second VARCHAR(64) DEFAULT '0', minute VARCHAR(64) DEFAULT '*', hour VARCHAR(64) DEFAULT '*', dayofmonth VARCHAR(64) DEFAULT '*', month VARCHAR(64) DEFAULT '*', dayofweek VARCHAR(64) DE...
true
de9bf5e8799f4bfa4ab7b8cc54c666e56393836f
SQL
vladimercury/datastorages2k18
/CREATE STORAGE.sql
UTF-8
5,796
3.109375
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Mon Dec 3 22:09:54 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='ON...
true
c864f51e5287bcde12ffe69e063706660719d20f
SQL
cliffbenardo/UAS-Web-API
/toyota.sql
UTF-8
2,288
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 26 Apr 2021 pada 13.52 -- Versi server: 10.1.38-MariaDB -- Versi PHP: 7.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
e2cd03b2d56ec5691ff1a14425a1218ba1680555
SQL
Sarjis/CodeIgniter_CRUD_E-Commerce
/ecommerce_crud/ci.sql
UTF-8
8,554
3
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 19, 2019 at 07:55 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
80985e147afcc1f4efcd481c8ca59480ad554af7
SQL
Montezi/Api-Rest-Desafio
/api_rest.sql
UTF-8
5,027
3.109375
3
[ "MIT" ]
permissive
-- MySQL dump 10.13 Distrib 5.7.22, for Linux (x86_64) -- -- Host: localhost Database: api_rest -- ------------------------------------------------------ -- Server version 5.7.22-0ubuntu18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
true
960a7f4aded4d61acbe58aeee95767c155e6a92d
SQL
venkii83/SQL-Q-A
/sql_q11_sql_sol.sql
UTF-8
255
3.1875
3
[]
no_license
SELECT b.country_id,b.country_name, a.posi_to_play, a.jersey_no, a.player_name, a.playing_club, a.team_id From player_mast a JOIN soccer_country b ON a.team_id=b.country_id WHERE b.country_name = 'ENGLAND' AND a.posi_to_play = 'GK' ORDER BY a.player_name
true
e0d5bc3cb3d7786c4a667ce3a46e57b859d051fa
SQL
GreyPi/SQL_Doctor_Office_Project
/Database Webpages/DocOfficeCompleteDatabase.sql
UTF-8
15,666
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 08, 2020 at 08:37 AM -- 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
c0f75cece3674704cfa44dcb480fc4567aa069e5
SQL
ganjarhadiatna/kalibrasi
/db.sql
UTF-8
6,393
3.125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.23, for Linux (x86_64) -- -- Host: localhost Database: dbkalibrasi -- ------------------------------------------------------ -- Server version 5.7.23-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTE...
true
62a4c9a7a1d97ab12dee9e1585355bc2ecaedf98
SQL
WeirNiu/mult
/src/main/resources/db/V1.0__Init.sql
UTF-8
1,371
3.9375
4
[ "Apache-2.0" ]
permissive
-- 删除表 -- drop table seckill; -- 创建秒杀库存表 create table seckill( seckill_id BIGINT not null auto_increment comment '商品库存id', name varchar(255) not null comment '商品名称', number int not null comment '商品库存数', create_time timestamp not null DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', start_time TIMESTAMP not null comment '...
true
be99028f683cb1e2f11a35f8e3f75f1eefa9572b
SQL
mariajosebare/medoymana
/plumerillo/medoymana/Data/alerta.sql
UTF-8
308
2.671875
3
[]
no_license
USE mdm3; /* Creamos la tabla para gestionar las notificaciones de mensaje al usuario */ CREATE TABLE alerta ( ID_usuario_1 int, ID_usuario_2 int, PRIMARY KEY(ID_usuario_1,ID_usuario_2), FOREIGN KEY (ID_usuario_1) REFERENCES usuario(ID_usuario), FOREIGN KEY (ID_usuario_2) REFERENCES usuario(ID_usuario) );
true
bd1316562abc7837797b4a297686e71fb6c66d5c
SQL
JP-Thoma/Crack-The-Code-SQL
/SQL CTC Basic Session 6 2021-11-08.sql
UTF-8
1,230
3.421875
3
[ "MIT" ]
permissive
select * from Madrid_Airbnb_V3; select count(*) from Madrid_Airbnb_V3; select * from Madrid_Airbnb_Ratings_Information; select count(*) from Madrid_Airbnb_Ratings_Information; select A.id_airbnb ,A.neighbourhood_group ,A.price ,B.last_review ,B.number_of_reviews from Madrid_Airbnb_V3 A...
true
3a482aafaea968f573037966762c9c8c52d6ee8b
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/02415_all_new_functions_must_be_documented.sql
UTF-8
1,890
2.859375
3
[ "Apache-2.0", "BSL-1.0" ]
permissive
-- This outputs the list of undocumented functions. No new items in the list should appear. -- Please help shorten this list down to zero elements. SELECT name FROM system.functions WHERE NOT is_aggregate AND origin = 'System' AND alias_to = '' AND length(description) < 10 AND name NOT IN ( 'MD4', 'MD5', 'SHA1', 'S...
true
748aa1f452d43258f17a2fe252fc27b9c92794b6
SQL
syamthampiv/atto_dev_new
/V1_21__follow_table_changes.sql
UTF-8
416
3.203125
3
[]
no_license
CREATE TYPE FOLLOWER_ENTITY_TYPE AS ENUM ('user','company'); CREATE TYPE FOLLOWING_ENTITY_TYPE AS ENUM ('product','user','company'); CREATE TABLE follow ( id uuid NOT NULL, follower_id uuid, follower_name character varying, follower_entity_type character varying, following_id uuid, following_name characte...
true
938ce6a0bd588e59cad5623c6a3fc53f4dd600e2
SQL
RachelGultom2000/FinalProject-GBE01116
/gbe01116.sql
UTF-8
6,220
3.3125
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.26, for Linux (x86_64) -- -- Host: localhost Database: twitterlite_GBEO1116 -- ------------------------------------------------------ -- Server version 8.0.26-0ubuntu0.20.04.2 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@...
true
61fe91c81dfd2b63344be5fa711fff4e39947421
SQL
kessyy/jeasy-ui
/orders.sql
UTF-8
1,098
2.765625
3
[]
no_license
SET FOREIGN_KEY_CHECKS=0; CREATE TABLE `orders` ( `id` int(11) NOT NULL auto_increment, `date` Date NOT NULL, `rct` varchar(50) default NOT NULL, `description` varchar(200) default NOT NULL, `quantity` int(200) default NOT NULL, `unit_price` int(11) default NOT NULL, `t_amount` int(11) default NOT NULL, `...
true
b6fe7ba24496ad2acf3f913f7d103f1f73e9467f
SQL
Dagon0577/sql-coverage-test-suite
/src/sqls/sql_cover/sqls_mixed/syntax/identifiers.sql
UTF-8
6,312
3.484375
3
[ "MIT" ]
permissive
#!default_db:schema1 #LOCK use schema1; drop table if EXISTS sharding_4_t1; CREATE TABLE sharding_4_t1 ( id CHAR(1) CHARACTER SET latin1, c2 CHAR(1) CHARACTER SET ascii); lock tables sharding_4_t1 read; unlock tables; drop table if EXISTS sharding_4_t1; #reserved words create table `select`(id int(20)); insert into `s...
true
6c3f802e9ad40b03e4ab0aab23fcd9343670512e
SQL
issteam32/questboard
/init-script/demo.init.sql
UTF-8
264
2.75
3
[]
no_license
create or replace database tododb; use tododb; create table todo ( id int not null auto_increment, name varchar(255) not null, description text null, done tinyint(1) default false, primary key(id) ) character set utf8 collate utf8_general_ci;
true
4b1e8e6d4c9d0b9a7d88b8cfbae775e25bae9892
SQL
BernardoBC/Analisis_SQL_Task
/PreguntaTresScripts.sql
UTF-8
526
3.625
4
[]
no_license
-- SELECT @minBillToAddressId=Min(TerritoryID),@maxBillToAddressID=MAX(TerritoryID) FROM Sales.SalesTerritory -- SELECT @salida=CONCAT ( 'El valor Minimo (', CONVERT(varchar, @min), ') es mayor al valor Maximo(', CONVERT(varchar, @max), ')' ) -- SELECT AddressID,City,StateProvinceID,PostalCode from Perso...
true
f98ad961547bfb100af9dd038804c94d592c3107
SQL
teeplaz/Bamazon
/bamazon.sql
UTF-8
875
3.171875
3
[]
no_license
CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products ( item_id INTEGER(11) AUTO_INCREMENT NOT NULL, product_name VARCHAR(50) NOT NULL, department_name VARCHAR(40) NOT NULL, price DECIMAL(10,2) NOT NULL, stock_quantity INTEGER(11) NOT NULL, PRIMARY KEY (item_id) ); INSERT INTO products (product_name, depa...
true