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
46b97904c4cb33dc3bb3a11b7691e4622ddaf402
SQL
araz99/projectManager
/src/main/resources/db/changelog/init-db-with-src-dates.sql
UTF-8
582
2.609375
3
[]
no_license
insert into role (id, name) values (1, 'ROLE_USER'), (2, 'ROLE_ADMIN'); insert into issue_type (id, issue_type_name) values (1, 'improvement'), (2, 'task'), (3, 'new future'), (4, 'bug'); insert into project_type (id, project_type_name) values (1, 'Software'), (2, 'Business'), ...
true
ddf4e8c61fa9cc1ec0c394c29540122d820fa217
SQL
antoniosrferreira/vics
/web-server/src/test/resources/sql/drop-create.sql
UTF-8
2,962
3.59375
4
[ "MIT" ]
permissive
DROP TABLE IF EXISTS audit; DROP TABLE IF EXISTS password_reset_tokens; DROP TABLE IF EXISTS record_contact_log; DROP TABLE IF EXISTS users_privileges; DROP TABLE IF EXISTS users_constituencies; DROP TABLE IF EXISTS privileges; DROP TABLE IF EXISTS users_wards; DROP TABLE IF EXISTS users; DROP TABLE IF EXISTS wards; DR...
true
9a5e595898f28b3c07f13bd8b28a406887681b37
SQL
lapc506/proyecto-bd1-parque-la-libertad
/src/org/parquelibertad/metadata/sqlscripts/01 create/15 CREATE TABLE CURSOXPERIODO.sql
UTF-8
1,972
3.53125
4
[ "MIT" ]
permissive
--CURSO X PERIODO CREATE TABLE CURSOXPERIODO( ID NUMBER(10), ID_CURSO NUMBER(10), ID_PERIODO NUMBER(20) ); ALTER TABLE CURSOXPERIODO ADD CONSTRAINT pk_CURSOXPERIODO PRIMARY KEY (id) USING INDEX TABLESPACE libertad_Indexes; ALTER TABLE CURSOXPERIODO ADD CONSTRAINT fk_CURSO_CP FOREIGN KEY (ID_CURS...
true
c435ca9af5f8641a1fb97e0101ac7998f4019cd2
SQL
immortalhope/db_lab2-workshop2
/query.sql
WINDOWS-1251
1,114
3.859375
4
[]
no_license
-- - -. SELECT museum_name AS Gallary_name, museum_location.city FROM museums INNER JOIN museum_location ON museums.museum_id = museum_location.museum_id INNER JOIN museum_type ON museums.m_type = museum_type.m_type WHERE museum_location.city = 'NEW YORK' AND museum_type.m_type = 'ART MUSEUM'; -- . SELE...
true
8cc6cfe2714885c7dd423d21a2e9ef784fe34c0b
SQL
tnahimana/restaurent_management
/restaurent_management (3).sql
UTF-8
42,001
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: May 14, 2020 at 07:46 PM -- Server version: 5.7.24 -- PHP Version: 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
true
be15ca3dc599fc8f0773451e6fc3cc8afa13413b
SQL
ArafathHossain/vueinventorywithpos
/vue_inventory.sql
UTF-8
21,974
3.03125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 13, 2021 at 10:31 AM -- 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
8726ad1ce147a5523376ed53b23df803f60473cd
SQL
Branden-Yoshaev/COMP-1006-lampfood
/php-sql-code.sql
UTF-8
208
2.734375
3
[]
no_license
USE Branden1137913; CREATE TABLE USERS (USERID INT NOT NULL AUTO_INCREMENT PRIMARY KEY, USERNAME VARCHAR(200) NOT NULL, PASSWORD VARCHAR(200) NOT NULL); SELECT USERNAME, PASSWORD FROM USERS; DESC USERS;
true
f1c3d98acf1d07f1f5fcae3b2d832b30220ad453
SQL
jorgeluis500/SQL_Courses_Exercises
/9a- LinkedIn Learning - Advanced SQL - Windows Functions/Exercises - Jorge/Section 4 - d Challenge.sql
UTF-8
1,641
4.625
5
[]
no_license
--WINDOWS FUNCTIONS --Section 4 -- Challenge -- Write a query that returns all the year in which animals were vaccinated and the number of vaccinations given that year -- In addition, calculate and return the following two columns: -- 1. The average number of vaccination given in the previous two calendar years -- 2....
true
79b9dacd750b87d6ddee3696c5036e87dba32d95
SQL
epam-debrecen-rft-2015/atsy
/persistence/src/main/resources/db/migration/data/integration/beforeValidate.sql
UTF-8
784
3.59375
4
[ "Apache-2.0" ]
permissive
DROP PROCEDURE IF EXISTS cleanup_sp; DELIMITER ;; CREATE PROCEDURE cleanup_sp() BEGIN DECLARE name VARCHAR(2048); DECLARE drop_command VARCHAR(4096); DECLARE count INT; DECLARE CONTINUE HANDLER FOR 1217 SET @count = @count + 1; SET @count = 1; WHILE @count > 0 DO SELECT...
true
bdde025b7f27b7e4a15e571151b8ace9e49cd136
SQL
AryaAsokan/ExamPlus
/onlineregistonlineregsql.sql/onlineregistonlineregsql.sql
UTF-8
72,676
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.10.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 30, 2015 at 02:25 PM -- Server version: 5.0.45 -- PHP Version: 5.2.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `onlinereg` -- -- -------------------------------------------------------- ...
true
53e15d622b56a43fb236aafb05dbc4e38c9e15c3
SQL
changhakim/HOME_SQL
/20~30.sql
UHC
4,637
4.5625
5
[]
no_license
-- Employees ̺ --[ employee_id = ] [ first_name = ̸ ] --[ last_name = ] [ email = ̸ ] --[ phone_number = ȭȣ ] [ hire_date = Ի ] --[ job_id = ڵ ] [ salary = ޿] --[ commission_pct = Ŀ̼Ǻ ] [ manager_id = Ŵ̵] --[ department_id = μڵ] -- Jobs ̺ -- job_id ڵ -- job_title ŸƲ -- min_salary ޿ -- max_salary ְ޿ DESC JOB_HIST...
true
b7eafc5c0547f59cea58eb65dd677ab8a16845f5
SQL
EkaterinaKaonashi/dev-edushechka
/DevEdu.API/DevEdu.Db/StoredProcedures/Comment/Comment_Insert.sql
UTF-8
190
2.765625
3
[]
no_license
CREATE PROCEDURE dbo.Comment_Insert @UserId int, @Text nvarchar(max) AS BEGIN INSERT INTO dbo.Comment (UserId,[Text],[Date]) VALUES (@UserId, @Text,GETDATE()) SELECT @@IDENTITY END
true
25c20bc9c07ef89837b065e69402042a23028da0
SQL
cliff-lee11/SQL
/mysql/Challenges.sql
UTF-8
962
3.953125
4
[]
no_license
SELECT ref2.hacker_id, ref2.name, ref2.chall_cnt FROM ( SELECT MAX(chall_cnt) AS getCnt FROM ( SELECT a.hacker_id, a.name, COUNT(*) AS chall_cnt FROM hackers a, challenges b WHERE a.hacker_id = b.hacker_id GROUP BY a.hacker_id, a.name )...
true
b4c23abe07e50e581bf06284604030a3e7a21470
SQL
x1n9snv0/detecting
/data/initialize.sql
UTF-8
14,391
3.03125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50537 Source Host : localhost:3306 Source Database : dt Target Server Type : MYSQL Target Server Version : 50537 File Encoding : 65001 Date: 2018-10-19 00:15:44 */ SET FOREIGN_KEY_CHECKS=0; -- ------...
true
107bf51129b0bef45eb0ecd267a22ab340b9401e
SQL
mbouclas/expense-tracker-server
/prisma/migrations/20210426071723_add_user_password/migration.sql
UTF-8
546
3.03125
3
[]
no_license
-- RedefineTables PRAGMA foreign_keys=OFF; CREATE TABLE "new_User" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "email" TEXT NOT NULL, "firstName" TEXT NOT NULL, "lastName" TEXT NOT NULL, "password" TEXT NOT NULL DEFAULT '' ); INSERT INTO "new_User" ("id", "email", "firstName", "lastName") SEL...
true
c11d3c716513a9ecad13abd8fd4054edcf89f610
SQL
Shurara/hexlet-rdb
/alter_table.sql
UTF-8
982
3.9375
4
[]
no_license
/* Напишите запрос обновляющий таблицу структуры: CREATE TABLE users ( id bigint PRIMARY KEY GENERATED ALWAYS AS IDENTITY, email varchar(255) NOT NULL, age integer, name varchar(255) ); В структуру: CREATE TABLE users ( id bigint PRIMARY KEY GENERATED ALWAYS AS IDENTITY, email varchar(255) NOT NULL UNIQU...
true
0b6f2e3c6f37633007927a91a3fe3ab171ac7ebb
SQL
rhardey/.sql
/Qconc_request_sid.sql
UTF-8
1,117
3.03125
3
[]
no_license
column conc_prog_name format a20 column executable format a45 column module format a20 SELECT request_id ,prog.CONCURRENT_PROGRAM_name conc_prog_name ,execname.execution_file_name|| execname.subroutine_name executable ,req.REQUESTED_START_DATE ,req.actual_start_date ,ses.sid ...
true
b01466b692c7013cbb8da4ccdd7246f0d96ba6a8
SQL
Azi-yan/colibrilab_am
/colibrilab_site.sql
UTF-8
11,353
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Фев 16 2021 г., 12:55 -- Версия сервера: 10.1.38-MariaDB -- Версия 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_CHAR...
true
0e4abfcac0259acf620e104576b1bc86218a79e1
SQL
gicadmin/allo
/PHENIX/Tables/CUBISCAN_INTERFACE_UPDATES.sql
UTF-8
1,885
3.09375
3
[]
no_license
CREATE TABLE phenix.cubiscan_interface_updates ( ciu_prf_prd_code VARCHAR2(10 BYTE) NOT NULL, ciu_prf_fmt_code VARCHAR2(7 BYTE) NOT NULL, ciu_prf_height NUMBER(8,3) NOT NULL, ciu_prf_width NUMBER(8,3) NOT NULL, ciu_prf_length NUMBER(8,3) NOT NULL, ciu_prf_purchase_weight NUMBER(8,3) NOT NULL, ciu_prf_upc_...
true
57bc655a31e61b087d204404cc12ff7e1c16a059
SQL
unhcr/PSR-Database
/SQL/Stage/S_ASR_REFUGEES.sql
UTF-8
41,227
2.625
3
[]
no_license
create table S_ASR_REFUGEES_2000 (STATSYEAR varchar2(4), COU_CODE_ASYLUM varchar2(3), COU_CODE_ORIGIN varchar2(3), DISPLACEMENT_STATUS varchar2(100), POP_START varchar2(40), POP_AH_START varchar2(40), ARR_GRP varchar2(40), ARR_IND varchar2(40), ARR_RESTL varchar2(40), BIRTH varchar2(40), REFOTHINC ...
true
27bb7e4ce9e66d1d829ed4d698b442b977805768
SQL
15515710742/Test
/cuikui/MySQL/day01/4.sql
UTF-8
722
3.484375
3
[]
no_license
#如果存在数据库tedu,放弃数据库tedu DROP DATABASE IF EXISTS tedu; #创建数据库tedu CREATE DATABASE tedu; #进入数据库tedu USE tedu; #创建数据表 CREATE TABLE student( sid INT, name VARCHAR(8), gender VARCHAR(2), score INT ); #往student表中插入数据 INSERT INTO student VALUES('10','Tom','M','100'); INSERT INTO student VALUES('15','Jerry','F','85'); I...
true
c21f4fabf9a2d39da91ffe986424f4ea628d2897
SQL
dariofg93/FacultadRemoto
/Base de Datos/Prácticas/practica_6/Generacion_Datos_Ejercicios/Generacion_Datos_Ejercicio_2.sql
UTF-8
2,362
2.921875
3
[]
no_license
CREATE TABLE PROVEEDORES (`IdProv` varchar(2) primary key, `ProvNombre` varchar(6), `Categoria` int, `Ciudad` varchar(9)) ; INSERT INTO PROVEEDORES (`IdProv`, `ProvNombre`, `Categoria`, `Ciudad`) VALUES ('P1', 'Carlos', 20, 'La Plata'), ('P2', 'Juan', 10, 'Cap. Fed.'), ('P3', 'Jose', 30, 'La Plata...
true
5a9ad43c148b4672de42e1d4f3895a3068f0292e
SQL
waleedahmedwaheed/chat
/demo.sql
UTF-8
4,103
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Dec 23, 2018 at 10:58 AM -- Server version: 5.7.19 -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
522a1ab6ec583a316599f891476faad16b3d70a5
SQL
erinaldo/mygarment
/catatan/database/bcwip.sql
UTF-8
735
3.9375
4
[]
no_license
SELECT '2014-12-01', '2014-12-31' , StyleID, Description,CategoryID,Style,ExtraDesc, SUM(RECCMT) RECCMT, SUM(ISSUEDCMT) ISSUEDCMT FROM( SELECT StyleID, CategoryID,Description, UOM, Style,ExtraDesc, 0 RECCMT, case when Tanggal BETWEEN '2014-12-01' AND '2014-12-31' AND RECEIVEFROM='2' then Quantity else 0 end...
true
939952c306d5c1cfc5e4df64ac1968db188c7fe7
SQL
sierra073/gsheet-service-layer
/scripts/2019/id1004_How_much_money_have_2018_wifi_targets_spent_yoy.sql
UTF-8
432
3.984375
4
[]
no_license
--How much money have the targets been spending year over year (2018 wifi targets) SELECT nd.funding_year, ROUND(SUM(nd.budget_allocated * (nd.c2_discount_rate * .01))) AS total_erate_requested FROM dm.nassd_districts nd JOIN dm.nassd_districts nd18 ON nd.district_id = nd18.district_id AND nd18.wifi_targ...
true
2d1bbd389eaa85b990921be55d9b3a5256e120a6
SQL
swisschuck/StudyGuideRepo
/StudyGuideUtilities/SQL/GroupBy/GROUPBY.sql
UTF-8
1,573
4.625
5
[]
no_license
-- GROUPBY - A SELECT statement clause that divides the query result into groups of rows, usually for the purpose -- of performing one or more aggregations on each group. The SELECT statement returns one row per group -- -- - When using a group by clause you must either include every column in the table or make...
true
3d86af12157a527d37882fc0cb7a68c9b160c7bc
SQL
goodybag/cater-api-server
/db/deltas/1.2.123.sql
UTF-8
934
3.265625
3
[]
no_license
-- Delta DO $$ declare version text := '1.2.121'; begin raise notice '## Running Delta v% ##', version; -- Update version execute 'insert into deltas (version, date) values ($1, $2)' using version, now(); create table if not exists promos ( promo_code citext primary key , type ...
true
850e9a3e488fd8f2ff11a3a65ff0d05376d06507
SQL
iJasonCui/big_database
/MySQL/sproc/Member/wsp_chkUserInfoUsername.mysql
UTF-8
940
3.171875
3
[]
no_license
DELIMITER ;; DROP PROCEDURE IF EXISTS wsp_chkUserInfoUsername; CREATE DEFINER='root'@'10.10.26.21' PROCEDURE wsp_chkUserInfoUsername ( /****************************************************************************** ** ** CREATION: ** Author: Jack Veiga/Jeff Yang ** Date: June 4, 2002 ** Description: Check if ...
true
eb69af9db69ddacefee6d5529668e0acb2fb4c46
SQL
johye45/JAVA
/SeProject/Scripts/보드 쿼리 스크립트.sql
UHC
530
3.109375
3
[]
no_license
/*member */ CREATE TABLE board_member( member_id NUMBER PRIMARY KEY ,m_id varchar(20) ,m_pass varchar(20) ,m_name varchar(20) ,regdate DATE DEFAULT sysdate ); /* Ѵ*/ CREATE SEQUENCE seq_board_member INCREMENT BY 1 START WITH 1; /*board ̺ , Խ ̺!*/ create table board( board_id number primary key ,title varchar(100)...
true
c90f2b9aaf05634a5f4924db9d230cf0bf95e12a
SQL
wzator/z-wave-homeLogic
/tables/stateGet.sql
UTF-8
348
2.6875
3
[]
no_license
DROP TABLE IF EXISTS `stateGet`; CREATE TABLE IF NOT EXISTS `stateGet` ( `homeid` int(11) DEFAULT NULL, `node` int(11) NOT NULL, `updateEveryMinutes` int(11) NOT NULL, `lastupdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`node`,`homeid`) ) ENGINE=MyISAM DEFA...
true
90f17e9d471434bdb1cb2416b71be1562ed5562f
SQL
colpachoque/nodejs-aws-be
/scripts/fill_in_data.sql
UTF-8
3,438
2.75
3
[]
no_license
INSERT INTO public.products (product_id, title, description, price) VALUES('7567ec4b-b10c-48c5-9345-fc73c48a80aa', 'SPLAT Biocalcium Toothpaste', 'Biocalcium is a multiple-action toothpaste with bioactive calcium obtained from eggshell and hydroxyapatite, an essential component in the composition of dental enamel. The...
true
a1ef7a56b0b329584c4f8db3d1f80f056e467b8f
SQL
pennwin2013/ecard_shu_single
/sql/6.一卡通V4错误码表初始化数据脚本.sql
GB18030
130,917
2.578125
3
[]
no_license
delete from t_errcode; insert into t_errcode values(0,'ɹ'); insert into t_errcode values(1,'ϵͳ'); insert into t_errcode values(2,''); insert into t_errcode values(3,'ݿظ'); insert into t_errcode values(4,'ݿ'); insert into t_errcode values(5,'ݿ޸Ĵ'); insert into t_errcode values(6,'ݿɾ'); insert into t_errcode values(7,'ݿѯ...
true
93dce59457b4e8e920a5dbff161b28f1e0bae162
SQL
lkfroxas/goldenglobes
/db/globe_data.sql
UTF-8
8,351
4.03125
4
[]
no_license
DROP DATABASE IF EXISTS goldenglobes; CREATE DATABASE goldenglobes; USE goldenglobes; CREATE TABLE person ( personid INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, -- Unique ID for Person name VARCHAR(150) NOT NULL, -- Name of Person gender CHAR(1) NOT NULL -- Gender of Person: 'm'ale, 'f'emale ...
true
2bfa9d3d9243da5f0e88998fe1e09a48c6435c05
SQL
MarcoConsiglio/laravel-italian-cities-migration
/database/sql/regions.sql
UTF-8
1,889
2.9375
3
[ "MIT" ]
permissive
-- -- Table structure for table `regions` -- DROP TABLE IF EXISTS `regions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `regions` ( `id` int(11) unsigned NOT NULL, `name` text NOT NULL, `latitude` decimal(9,6) NOT NULL, `longitude` d...
true
ddf6118d501aee01a9ddf116974ddceba4488ed7
SQL
sebrown0/SUK
/database/salaroo_uk/sql/InitialDataLoader.sql
UTF-8
9,057
3.171875
3
[]
no_license
-- Make sure that the CSV files are in SELECT @@global.secure_file_priv;. USE salaroo_uk; SET foreign_key_checks = 0; -- Set the tax year (for this script) & create payroll dates for the year. SET @employer_tax_year= '2021'; CALL create_payroll_dates(@employer_tax_year); -- PAYROLL BELOW TRUNCATE tax_year; LOAD DATA...
true
e2b2f4b39494623ba9a8718b669edb545563d010
SQL
hdlovefork/QingFengYi
/wx_yhq.sql
UTF-8
2,219
2.640625
3
[ "MIT" ]
permissive
# Host: localhost (Version 5.5.53) # Date: 2018-01-14 14:43:15 # Generator: MySQL-Front 6.0 (Build 2.20) # # Structure for table "wx_app" # DROP TABLE IF EXISTS `wx_app`; CREATE TABLE `wx_app` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(100) DEFAULT '', `password` varchar(100) DEFAULT '', `tb_...
true
b440d9fcd5ac5f26adf669dd963ab4fd698cdf15
SQL
eaglemango/clinics
/scripts/select.sql
UTF-8
2,389
4.0625
4
[]
no_license
/* В результате выполнения данного запроса будут получены идентификаторы медсестёр, работающих хотя бы с одним врачом наивысшей категории. */ SELECT NURSE_ID FROM DOCTOR INNER JOIN DOCTOR_EDUCATION on DOCTOR.DOCTOR_ID = DOCTOR_EDUCATION.DOCTOR_ID GROUP BY NURSE_ID HAVING MIN(DOCTOR_CATEGORY) < 2; /* В рез...
true
ae6fc2711c5e700814b9f4eb2377f49a9c5125c1
SQL
UAMS-DBMI/PosdaTools
/posda/posdatools/queries/sql/ListOfPublicElementsWithDispositionsBySopClassName.sql
UTF-8
513
3.375
3
[ "Apache-2.0" ]
permissive
-- Name: ListOfPublicElementsWithDispositionsBySopClassName -- Schema: posda_phi -- Columns: ['element_signature', 'vr', 'disposition', 'name_chain'] -- Args: ['sop_class_uid', 'name'] -- Tags: ['NotInteractive', 'Update', 'ElementDisposition'] -- Description: Get Public Disposition of element by sig and VR for SOP Cla...
true
733c3bdc4847ed98775f56eaaf5144f037a71adc
SQL
adysevy/small_businesses
/clusteringcalc.sql
UTF-8
2,173
4.125
4
[]
no_license
SELECT `compliance status`, count(`compliance status`) FROM ecb2 GROUP BY `compliance status`; SELECT `compliance status`, count(`compliance status`) FROM ecb2 WHERE `compliance STATUS` NOT IN ('', 'All Terms Met') -- AND `charge #2: code description` <> '' -- GROUP BY `compliance status` ; SELECT `compliance status`...
true
a8aeb0eddb2183e432b3a46c8a985079d6b34181
SQL
TodorChapkanov/CSharp-Databases-Basics---MS-SQL
/Built-in functions/Built-in functions/05_Find Towns with Name Length.sql
UTF-8
70
2.71875
3
[ "MIT" ]
permissive
SELECT Name FROM Towns WHERE (LEN(Name) BETWEEN 5 AND 6) ORDER BY Name
true
0b82fd5ad1dd1ff4a59af4067196c20c5d2b6837
SQL
ashiq4321/springsoft_pos
/public/uploads/product/file/ebb0b148bd6ba8b2e451b9ab2a31fe78.sql
UTF-8
23,363
3.21875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 12, 2021 at 05:01 PM -- Server version: 10.1.32-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
a450090c8291dd24df81af7b0ec784a606e75238
SQL
manasavesala/RecipeBox
/recipes_ingredients.sql
UTF-8
1,662
3.078125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Dec 14, 2018 at 12:15 AM -- Server version: 5.6.35 -- PHP Version: 7.0.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
49b80885ede5a0607dd4410adec7afdf15930968
SQL
a377589849/note
/next/notebook.sql
UTF-8
3,723
3.203125
3
[]
no_license
/* SQLyog Ultimate v11.42 (64 bit) MySQL - 5.6.38 : Database - notebook ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECK...
true
f33614cc40a500f9e2c534f1ce1a2c168a77f3ee
SQL
AnnaZavgorodnia/PostgreSQL_LABS
/sem1/lab3/scripts/index_gin.sql
UTF-8
284
2.921875
3
[]
no_license
ALTER TABLE master ADD COLUMN document tsvector; UPDATE master SET document = to_tsvector(name) WHERE true; CREATE INDEX gin_index ON master using gin(document); DROP INDEX gin_index; EXPLAIN SELECT * FROM master; EXPLAIN SELECT * FROM master WHERE document @@ to_tsquery('foobar');
true
f576d9c4061a46e16bd25ef7c436e9a610d0086b
SQL
teamlm2/lm2_mgis
/sql/SQL_CAMA/insert_parcel_factor_value/insert_cm_parcel_factor_value_dem_2_ca_ub_parcel.sql
UTF-8
941
3.578125
4
[]
no_license
--# factor_id = 2; elevation insert into data_cama.cm_parcel_factor_value_ub(parcel_id, factor_id, factor_value, in_active, year_value, closets_parcel_id) select * from ( select parcel.old_parcel_id, 2, base.ub_calculate_dem_cama_parcel(1, parcel.old_parcel_id) as factor_value, true, 2019, null from data_ub.ca_ub_par...
true
f7d633d10a4841772805e01000274eff4f4e396a
SQL
BenDehlin/Personal-Project
/db/minesweeper/get_high_score.sql
UTF-8
147
3.65625
4
[]
no_license
SELECT s.id, s.user_id, u.username, s.score, s.time FROM scores s JOIN users u ON (s.user_id = u.id) WHERE u.id = $1 ORDER BY s.score DESC LIMIT 1;
true
3d498ddedf8649f2318cc978f192e6603dea1318
SQL
thierry-sterrenburg/datainfo
/session5/exercise1g.sql
UTF-8
221
2.6875
3
[]
no_license
CREATE TABLE BESTELLING(isbn varchar(10) NOT NULL FOREIGN KEY REFERENCES BOEK(isbn), aantal int)); CREATE TRIGGER VOEG_BOEK_TOE after INSERT ON BOEK FOR EACH ROW BEGIN INSERT INTO BESTELLING(isbn) VALUES 'BOEK.isbn' END;
true
689e5a070fc6672e693eacdce6d4c3fa844bb49d
SQL
Robertdjslopez/ProyectoFinalBaseDatos
/Proyecto Final de Base de Datos/Query TB Servicio.sql
ISO-8859-1
1,925
3.640625
4
[ "MIT" ]
permissive
--Proyecto Final de Base de Datos --Integrantes: --Isaac Almonte Polanco 20-EIIN-1-002 --Luis Miguel Marte Gratereaux 20-EIIN-1-024 --Robert De Jess Lpez Peralta 20-EIIN-1-017 --Universidad Dominicana O&M --Maestro: Starling Germosen --Materia: Base de Datos --Seccin: 0541 Create table TBServicio ( IDServicio int id...
true
cd8ed20de5518f2cf5032a33754ec75e8a11ebd2
SQL
Ak-ash13/Chatbox
/ChatBox/chatdb.sql
UTF-8
1,590
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 11, 2019 at 07:25 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
f55685534e4f4ca3e4d00b00167e84fe32e43b2e
SQL
TricielTech03/Project-Final
/project-final/src/main/resources/Database/confidentail.sql
UTF-8
13,196
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Dec 21, 2018 at 10:54 AM -- Server version: 5.7.21 -- PHP Version: 5.6.35 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
004bca354a02bed831154a81bf159293aa37ce3f
SQL
radtek/abs3
/sql/mmfo/bars/Data/SW_OPERATION.sql
WINDOWS-1251
1,548
2.53125
3
[]
no_license
prompt ... begin execute immediate 'Insert into BARS.SW_OPERATION (ID, CODE, NAME) Values (1, ''SEND'', ''³'')'; exception when others then if sqlcode = -1 then null; else raise; end if; end; / begin execute immediate 'Insert into BARS.SW_OPERATION (ID, CODE, NAME) ...
true
7680239db67dba94e59c41bc92e65c55abbfc784
SQL
nikossyr/PrivateSchoolStructureDBConnection
/MySQL-DB-scripts/private_school_DB_create_populate.sql
UTF-8
14,303
4.0625
4
[]
no_license
CREATE DATABASE private_school; USE private_school; CREATE TABLE courses ( course_id INT NOT NULL AUTO_INCREMENT, course_title VARCHAR(45) NOT NULL, course_stream VARCHAR(45), course_type VARCHAR(45), start_date DATE, end_date DATE, PRIMARY KEY (course_id) ); CREATE TABLE students ( ...
true
8070586db83736ac258295292e53f56d83cbefd2
SQL
JonathanWilbur/mariadb-technology-schema
/CVE.sql
UTF-8
419
2.78125
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS CommonVulnerabilityAndExposures ( yearReported YEAR NOT NULL, sequenceNumber SMALLINT UNSIGNED NOT NULL, description TEXT NULL, -- cvssv2 BIGINT UNSIGNED NULL, cvssv3 BIGINT UNSIGNED NULL,...
true
ca2d168c0853716422b147ff9a79833d60670447
SQL
ua-eas/kc-3.1.1-5.2.1-dbupgrade
/main/KC-RELEASE-3_2-SCRIPT/oracle/constraints/KC_FK2_AWARD_PAYMENT_SCHEDULE.sql
UTF-8
167
2.78125
3
[]
no_license
ALTER TABLE AWARD_PAYMENT_SCHEDULE ADD ( CONSTRAINT FK2_AWARD_PAYMENT_SCHEDULE FOREIGN KEY(REPORT_STATUS_CODE) REFERENCES REPORT_STATUS(REPORT_STATUS_CODE)) /
true
51e603762dafa093322a0eb1dba923cff4e28213
SQL
mingfang/terraform-k8s-modules
/examples/supabase/config/20220609081115_grant-supabase-auth-admin-and-supabase-storage-admin-to-postgres.sql
UTF-8
403
2.515625
3
[]
no_license
-- migrate:up -- This is done so that the `postgres` role can manage auth tables triggers, -- storage tables policies, etc. which unblocks the revocation of superuser -- access. -- -- More context: https://www.notion.so/supabase/RFC-Postgres-Permissions-I-40cb4f61bd4145fd9e75ce657c0e31dd#bf5d853436384e6e8e339d0a2e684c...
true
c3135a69a070e4db612920a27f3449fd4cec6e90
SQL
MauricioCarmona/BEDU-DataScience
/BEDUWork7.sql
UTF-8
410
3
3
[]
no_license
CREATE DATABASE BEDUWork7; USE BEDUWork7; CREATE TABLE users ( id INT PRIMARY KEY, genero CHAR(1), edad INT, ocupacion INT, cp VARCHAR(20) ); SELECT * FROM users; # RETO 1 CREATE TABLE IF NOT EXISTS movies ( id INT PRIMARY KEY, title VARCHAR(90), genres VARCHAR(90) ); CREATE TABLE IF NOT...
true
8e68b257622e139869e7139552dd61c2051f8438
SQL
tolumide-ng/SQL_Intro
/join_tables/index.sql
UTF-8
1,129
4.25
4
[]
no_license
USE contacts -- CROSS JOINS -- DO NOT USE THIS AT HOME OR WORK -- This is bad practise as there is no where clause in this sql query SELECT p.last_name, p.first_name, e.email_address FROM person p, email_address e -- INNER JOIN -- Emphaizes the relational nature of database -- Matches column in first ta...
true
e22a2f4d04d9bf6bb03cf49bc30394882f9cbc3f
SQL
edat-uam-es/edat2021-22-p1
/query1.sql
UTF-8
834
4
4
[]
no_license
-- http://www.dpriver.com/pp/sqlformat.htm -- IMPORTANT: this is just an example. -- You will need to rewrite both the description -- and the query. -- -- List the total amount of money paid by the customers that have ordered -- the 1940 Ford Pickup Truck (the money may be paid to purchase other items) -- Order the...
true
1574b47f63a233895c6ffdf62755beb106058acd
SQL
exasol/compatibility-test-suite
/sql/test_utils.sql
UTF-8
854
3.890625
4
[]
no_license
-- This script creates a simple diff view between two tables. -- -- The result set contains all datasets that are not identical in both tables. -- If a dataset exists in only in the left table, the first column of the result set is marked with "<<<". -- In case it exists in the right table only, the marker reads ">>>"....
true
f7d03828b2b06b465cac32fa805018ed2daa5ef2
SQL
EdgeCaseBerg/Streaks
/tables.sql
UTF-8
673
3.875
4
[]
no_license
CREATE DATABASE streaks_db; CREATE USER 'scala'@'localhost' IDENTIFIED BY 'functional'; GRANT ALL ON streaks_db.* TO 'scala'@'localhost'; FLUSH PRIVILEGES; USE streaks_db; CREATE TABLE habits ( id INT(12) NOT NULL auto_increment PRIMARY KEY, description VARCHAR(64) NOT NULL, INDEX(`id`) ) ENGINE InnoDB;...
true
69adbdafa773f12a4257648384adfa53ad6dff18
SQL
radtek/abs3
/sql/mmfo/bars/View/v_xmlklbtts.sql
UTF-8
1,649
2.796875
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/View/V_XMLKLBTTS.sql =========*** Run *** == PROMPT ===================================================================================== PROMPT *** Create view V_XM...
true
78a469a485f7a997227fb05c52c70d312b0fbfac
SQL
Leyukezer-Sys/Projeto-Ds
/mySQL/projeto_wwwjl.sql
UTF-8
3,795
3.078125
3
[]
no_license
CREATE DATABASE Projeto_WWWJL; USE Projeto_WWWJL; CREATE TABLE Cliente( idCliente int not null auto_increment primary key, nomeCompleto varchar(50) not null, cpf varchar(20) not null, rg varchar(50) not null, idade int, telefone varchar(50) not null, carteiraDeTrabalho varchar(50), pessoaReferencia varchar(50), numer...
true
9a8a0c66ac56587d3277a22f63914490343fce13
SQL
gicadmin/allo
/PHENIX/Packages/WHS_PACK.sql
UTF-8
6,383
2.640625
3
[]
no_license
CREATE OR REPLACE PACKAGE phenix.WHS_PACK AS PROCEDURE INIT_RECORD_PROC( p_rec OUT NOCOPY warehouses%ROWTYPE); FUNCTION GET_FULL_FUNC( p_whs_code IN warehouses.whs_code%TYPE, p_whs_rec OUT NOCOPY warehouses%ROWTYPE) RETURN BOOLEAN; FUNCTION ...
true
ce53aa5e482d9d8c4b0dd1bec67ccb48cb271420
SQL
mailserver2/mailserver
/test/config/mariadb/struct.sql
UTF-8
15,668
2.78125
3
[ "MIT" ]
permissive
-- MySQL dump 10.16 Distrib 10.2.14-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: postfix -- ------------------------------------------------------ -- Server version 10.2.14-MariaDB-10.2.14+maria~jessie /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHA...
true
030140298d469686afc5edfda96d7efc633eba99
SQL
littlefisher666/web-learn-project
/p2p/db/init.sql
UTF-8
8,355
3.671875
4
[]
no_license
DROP DATABASE IF EXISTS p2p; CREATE DATABASE p2p; USE p2p; CREATE TABLE company ( companyId int(11) NOT NULL AUTO_INCREMENT, companyName varchar(20) DEFAULT NULL, financingInReturn double DEFAULT NULL, companyDetail text, status varchar(1) DEFAULT 'W', PRIMARY KEY (companyId) ) ENGINE=InnoDB DEFAULT CHAR...
true
31356df12a6b7d76294638fce6857aa5c0ec5df6
SQL
zaneho/Coursework
/CS349-Database/A2/q7.sql
UTF-8
246
3.828125
4
[]
no_license
SELECT distinct cnum, term, count(snum) as numstudents \ FROM enrollment WHERE cnum NOT IN ( \ SELECT cnum FROM class WHERE pnum IN \ (SELECT pnum FROM professor WHERE dept ='CS' OR dept='AM')) \ GROUP BY cnum, term \ ORDER BY numstudents desc
true
3668cf0f738d63aeae9ffe3c95a031af1d52c00e
SQL
XingXing2019/LeetCode
/Database/LeetCode 1667 - FixNamesInATable/FixNamesInATable_MySQL.sql
UTF-8
105
2.875
3
[]
no_license
SELECT user_id, CONCAT(UPPER(left(NAME, 1)), LOWER(SUBSTR(NAME, 2))) AS name FROM users ORDER BY user_id;
true
0d3926edd30c00c7c953be4afdfec32b78475c3f
SQL
radtek/Database-3
/oracle/admin/scripts/exa.io.wait_event.sql
UTF-8
174
2.765625
3
[]
no_license
select distinct event, total_waits, time_waited/100 wait_Secs, average_wait/100 avg_wait_secs from v$session_event e, v$mystat s where event like 'cell%' and e.sid = s.sid;
true
0e33adb0da048856168ba3f8164edede32df0e17
SQL
Vivek97/SQLHackerRank
/new_companies.sql
UTF-8
545
4.0625
4
[]
no_license
/* Enter your query here. */ select cc.company_code, cc.founder, count(distinct lm.lead_manager_code) as lmc, count(distinct sm.senior_manager_code) as smc, count(distinct m.manager_code) as mc,count(distinct e.employee_code) as ec from Company cc, Lead_Manager lm, Senior_Manager sm , Manager m, Employee e where cc...
true
499a53ad58e5b9c2d6b678067b75d7362bad72c0
SQL
akrmn/fbv
/informe/adjuntos/índices/q12/indices12.sql
UTF-8
365
2.890625
3
[]
no_license
--índices para la consulta 12 --elementos para orders create index q12_orders_idx on orders(o_custkey, o_orderdate, o_orderkey, o_shippriority); --elementos para lineitem create index q12_lineitem_idx on lineitem(l_shipdate, l_orderkey, l_extendedprice, l_discount); --elementos para customer create index q12_custome...
true
aee0edea9d107ec3c492fbd32991c28947b2e005
SQL
Baneeishaque/Caventa_Server
/db/vfmobo6d_caventa.sql
UTF-8
10,362
3.859375
4
[]
no_license
-- TODO : Implement db generation task -- phpMyAdmin SQL Dump -- version 4.0.10.18 -- https://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Nov 25, 2017 at 08:18 PM -- Server version: 5.6.33-79.0-log -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:...
true
797a559ad1ad2037bbee833cd2d2634fc3c6b589
SQL
fangbao/Web_Projects
/BBS2011_Servlet_JSP/BBS2011_Servlet_JSP/sql/bbs.sql
UTF-8
1,141
3.28125
3
[]
no_license
create database bbs; use bbs; create table article ( id int primary key auto_increment, pid int not null, rootid int not null, title varchar(255) not null, cont text, pdate datetime not null, scan int not null, isleaf int not null, author varchar(20), jinghua boolean, zhiding boolean, cid int, lastdate datetime, for...
true
3e9590f003252f79a9d728012468a1f882892902
SQL
youlekong/tp5_admin
/mysql/tp_mysql.sql
UTF-8
19,969
3.53125
4
[ "Apache-2.0" ]
permissive
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for tp_admin_files -- ---------------------------- DROP TABLE IF EXISTS `tp_admin_files`; CREATE TABLE `tp_admin_files` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '上传用户id', ...
true
5e2f5bed0d300127b33267970965fee7507efca0
SQL
Tintino54/interfaceweb
/BDD_dump.sql
UTF-8
4,544
3.15625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.41, for debian-linux-gnu (i686) -- -- Host: localhost Database: merch -- ------------------------------------------------------ -- Server version 5.5.41-0ubuntu0.12.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARA...
true
0ecbd7181d758d6f66ba20fb29cbfdb92cb4efc9
SQL
Henrique-VC-Silva/PL-SQL---BDDAD
/Parte - I/insertTablesData_scrip.sql
UTF-8
17,810
3.296875
3
[]
no_license
-- Fill table Armazem -- INSERT INTO armazem VALUES (11111, 'Parafusos', 'Rua dos Parafusos', 'Porto'); INSERT INTO armazem VALUES (22222, 'Pregos', 'Rua dos Pregos', 'Porto'); INSERT INTO armazem VALUES (33333, 'Martelo', 'Rua do Martelo', 'Porto'); INSERT INTO armazem VALUES (44444, 'Tintas', 'Rua das Tintas', 'Brag...
true
fe784df09ad5f5af67bf27661fff56f7f4e4869a
SQL
dbt-labs/demo-shippo
/models/core/shipping_cost_vs_price.sql
UTF-8
1,043
3.8125
4
[ "Apache-2.0" ]
permissive
{{config(materialized = 'table')}} with orders as ( select *, md5(lower(shipping_address__address1) || shipping_address__zip) as address_id from {{ref('shopify_orders')}} ), prices as ( select * from {{ref('shopify_orders_shipping')}} ), addresses as ( select ...
true
a20e5b055f20489023b7a6da97f8683895cb5065
SQL
Annbeele/LAB_day38
/LAB_day38_SQL.sql
UTF-8
3,972
4.5
4
[]
no_license
# 1. Write a SELECT statement that lists the customer id along with their # account number, type, the city the customer lives in and their postalcode. select * from address; #postal code and city select * from customer; #cust id and type and account # select * from customeraddress; # joining fiels-cust id, addr id se...
true
4b298f15fb855e03d87252e1df77c018a10a57fa
SQL
clumsy/Civ5-MP_MODSPACK
/Mods/Nation - Khazar Khaganate/Civilizations.sql
UTF-8
8,001
2.78125
3
[]
no_license
--========================================================================================================================== -- Civilizations --========================================================================================================================== INSERT INTO Civilizations (Type, ...
true
e21dbaf4e02656029f3ee0b099cd8c46c8dedfd1
SQL
dusdl5120/CarWash
/carwash.sql
UTF-8
8,026
3.1875
3
[]
no_license
-- -------------------------------------------------------- -- 호스트: 127.0.0.1 -- 서버 버전: 5.7.21-log - MySQL Community Server (GPL) -- 서버 OS: Win64 -- HeidiSQL 버전: 9.5.0.5196 -- ---------------------------------------------------...
true
4af95408f896ff6bf65a867c1b5569d871e52f06
SQL
Paulbel/Pharmacy
/src/main/resources/sql/baseTest.sql
UTF-8
10,242
3.59375
4
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Mon Dec 25 13:26:40 2017 -- 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
36f52e8e0366ad4561710fc0da386d104d6474c6
SQL
tatkaal/tatkaal.v1.0
/tatkaal.v1.0/database_file/ccube.sql
UTF-8
5,085
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 05, 2018 at 05:36 PM -- Server version: 10.1.35-MariaDB -- PHP Version: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
158277ac975fc6051c6854b0076cb4d58a877ad4
SQL
DouglasKappaun/contracts-digital
/sql_files/BD_contracts_digital.sql
UTF-8
7,912
3.1875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `contracts_digital` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `contracts_digital`; -- MySQL dump 10.13 Distrib 5.5.50, for debian-linux-gnu (i686) -- -- Host: 127.0.0.1 Database: contracts_digital -- ------------------------------------------------------ -- Server version 5.5.50-0...
true
215d96ee1c6988d30bd384209027cac6ee245996
SQL
karenisthename/NDT-Control
/NDT Control/NDT Control/QUERIES/ALL NDT(ALL UNITS) after Pressure Test.sql
UTF-8
10,589
3.890625
4
[]
no_license
---------------------RT select DISTINCT htp.HTP, htp.Type as [Type], htp.targettest as [QC Tested Date], htp.pt as [Construction Tested Date] ,j.unit, j.[service], j.Line, j.Train, j.Spool, j.JointNumber, j.JointType, case when j.Active = 1 then 'Active' else 'Canceled' end as [Active] ,I.InspN...
true
1f51f60e4cf5b9f12d1af38d5e6f484a4736584f
SQL
janvr1/zrak_backend
/zrak_api/schema.sql
UTF-8
1,537
3.734375
4
[]
no_license
DROP TABLE IF EXISTS devices; DROP TABLE IF EXISTS users; DROP TABLE IF EXISTS measurements; CREATE TABLE users ( id INTEGER PRIMARY KEY AUTOINCREMENT, user_type INTEGER NOT NULL DEFAULT 0, username VARCHAR(255) NOT NULL UNIQUE, email VARCHAR(255) DEFAULT NULL UNIQUE, time_created DATETIME DEFAULT ...
true
72bd9cc0db667904c7849c0da801e662bd32a59a
SQL
eddyekofo94/2yrProject
/FINAL UPLOAD/FootballManager/conf/evolutions/default/1.sql
UTF-8
3,228
3.671875
4
[ "Apache-2.0" ]
permissive
# --- !Ups create table fixtures ( match_id bigint not null, week integer, home_team_id bigint, away_team_id bigint, home_score integer, away_score integer, played boolean, constraint pk_f...
true
1d3b11b8e4cca17908bd32512c90730d24e11a89
SQL
KingIdee/internet-security-game
/complet/db/id_db_updated.sql
UTF-8
4,182
2.734375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Apr 16, 2018 at 09:14 AM -- Server version: 5.5.57-0ubuntu0.14.04.1 -- PHP Version: 7.0.23-1+ubuntu14.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET t...
true
a827d98af25bfc3c729b2dd5c768fd9d7a6a4d26
SQL
RSpeekenbrink/User-Management-System
/database.sql
UTF-8
713
3.3125
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS `users`; CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(256) NOT NULL, `email` varchar(256) NOT NULL, `password` varchar(256) NOT NULL, `admin` tinyint(1) NOT NULL DEFAULT '0', `active` tinyint(1) NOT NULL DEFAULT '1', `last_login` dateti...
true
b2f2a2a92c2107b85e3f2a4a679166a2685cecc0
SQL
Aswin-MN/personal
/scripts/database/mosip_regprc/ddl/regprc-diskspace_log.sql
UTF-8
1,477
3.5
4
[]
no_license
-- create table section ------------------------------------------------- -- schema : regprc - Registration processor(enrolment server or ID issuance server) -- table : diskspace_log - Diskspace log -- table alias : dsksp -- schemas section ------------------------------------------------- -- create schema i...
true
d14fef60e36282b4b84511fdcc40a11dec445093
SQL
ojndebbio/SQL-Challenge
/EmployeeSQL/Created Tables.sql
UTF-8
4,038
4.375
4
[]
no_license
--Drop table Drop table if exists departments; Drop table if exists employees; Drop table if exists dept_emp; Drop table if exists dept_manager; Drop table if exists salaries; Drop table if exists tites; CREATE TABLE "departments" ( "dept_no" varchar(20) , "dept_name" varchar(30) NOT NULL, CONSTRAINT "p...
true
07727fcef45834db6338e88a3b0b37da15e3df34
SQL
MeGaDeTH91/SoftUni
/Java/02.DB/01.MySQL/19.MyExam/Ex/07.NumberOfCoursesForEachCar.sql
UTF-8
263
3.84375
4
[]
no_license
SELECT cr.id AS car_id, cr.make, cr.mileage, COUNT(co.id) AS count_of_courses, FORMAT(AVG(co.bill), 2) AS avg_bill FROM cars AS cr LEFT JOIN courses AS co ON cr.id = co.car_id GROUP BY cr.id HAVING count_of_courses <> 2 ORDER BY count_of_courses DESC, cr.id ASC;
true
8e1270593aea23921ac5787464d223690ed4e624
SQL
fnajer/economist-workstation-project
/queries.sql
UTF-8
7,866
3.953125
4
[]
no_license
CREATE TABLE RENTER(ID INT PRIMARY KEY AUTO_INCREMENT, NAME VARCHAR(30) NOT NULL, SURNAME VARCHAR(30) NOT NULL, PATRONYMIC VARCHAR(30) NOT NULL, ADDRESS VARCHAR(255) NOT NULL, BIRTHDAY VARCHAR(30) NOT NULL, PERSON VARCHAR(30) NOT NULL ); DROP TABLE IF EXISTS RENTER; CREATE TABLE RENTER(ID INT PRIM...
true
e1643d84fe31831b172d0638188b51f660e98147
SQL
Greece4ever/JavaScript-Websocket-Games
/backend/source/sql/user.SQL
UTF-8
774
3.265625
3
[]
no_license
-- Table User CREATE TABLE IF NOT EXISTS USER ( id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT UNIQUE NOT NULL, password TEXT NOT NULL, img TEXT UNIQUE NOT NULL ) -- For Ajax Authorization CREATE TABLE IF NOT EXISTS TOKEN ( id INTEGER PRIMARY KEY AUTOINCREMENT, token TEXT UNIQUE NOT NULL, ...
true
0540ae3ea5b9bae299a2663b9fcf757241bd8f09
SQL
iliassk/PED_MyTodo
/backend/todoManager_db.sql
UTF-8
6,194
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Client: localhost -- Généré le: Mer 18 Février 2015 à 09:19 -- Version du serveur: 5.5.41-0ubuntu0.14.04.1 -- Version de PHP: 5.5.9-1ubuntu4.6 DROP DATABASE IF EXISTS todoManager_db; CREATE DATABASE todoManager_db; grant all on ...
true
0285b29a723da93fa98dd3cb8ba79f0f1571bcd8
SQL
ric2b/Vivaldi-browser
/update_notifier/thirdparty/wxWidgets/tests/regex/regex.inc
UTF-8
42,503
2.859375
3
[ "BSD-3-Clause" ]
permissive
/* * Test data for wxRegEx (UTF-8 encoded) * * Generated Sun Mar 14 09:58:58 2021 by regex.pl from the following files: * * reg.test: Copyright (c) 1998, 1999 Henry Spencer. All rights reserved. * wxreg.test: Copyright (c) 2004 Mike Wetherell. * * Test types: * e compile error expected * f match fa...
true
198c7604a007c6a7add9cda57c3879e78d65fb20
SQL
Mutilar/CSE111
/Lab3/2.sql
UTF-8
94
2.96875
3
[]
no_license
SELECT s_name, s_acctbal FROM supplier WHERE s_acctbal = (SELECT min(s_acctbal) FROM supplier)
true
e053f1a94cd8c1101ecd065ed8382fecea205f86
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day09/select2143.sql
UTF-8
178
2.640625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-08T21:43:00Z' AND timestamp<'2017-11-09T21:43:00Z' AND temperature>=30 AND temperature<=61
true
1ac9b16760617cea2e2235f5027801424f4d2cb3
SQL
volinh911/CS204_PersonalBlog_PHP
/db_personal_blog.sql
UTF-8
6,551
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: sql104.epizy.com -- Generation Time: Jun 02, 2021 at 09:16 AM -- Server version: 5.6.48-88.0 -- PHP Version: 7.2.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
true
334fde88f8126600bfbaabba35878be98289e7c7
SQL
moormeierz/sql-challenge
/EmployeeSQL/Tables.sql
UTF-8
2,024
3.9375
4
[]
no_license
--Create and import departments table CREATE TABLE Departments ( dept_no VARCHAR NOT NULL, dept_name VARCHAR NOT NULL, CONSTRAINT pk_Departments PRIMARY KEY ( dept_no ) ); --Create and import dept_emp table CREATE TABLE dept_emp ( emp_no VARCHAR NOT NULL, dept_no VARCHAR NOT NU...
true
5eeb429ff622a79bede8a00a191680bf261e94a4
SQL
murindwaz/breadwinnerss-2
/web/db/20200114.sql
UTF-8
2,874
2.828125
3
[]
no_license
INSERT INTO users (users_name, display_name, first_name, email, url, image_url, role_id) VALUES ('gretchen', 'Gretchen', 'Gretchen', 'gretchen@alphahq.com', 'gretchen', 'https://images.pexels.com/photos/414612/pexels-photo-414612.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500', 1); INSERT INTO companies (companies_nam...
true
8aac554eb28824917374aad2af1e4f55a1bc43cf
SQL
guneetsingh1592/SampleMigrationProject
/INLJ.sql
UTF-8
3,744
3.890625
4
[ "MIT" ]
permissive
create or replace PROCEDURE INLJ AS Type lst_cur is ref cursor; v_lst_cur lst_cur; v_lst_cur_rec transactions%rowtype; rcd_50 varchar2(300); rcd number; --save masterdata into mememory later v_pid masterdata.product_id%type; v_pname masterdata.product_name%type; v_sid masterdata.supplier_id%type; v_sname masterdata.su...
true