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
3bdf36d47cc54d2868c6a9591ed996f53014fd36
SQL
mpareja/postgres-message-store
/database/user/privileges.sql
UTF-8
1,174
3.03125
3
[ "MIT" ]
permissive
-- Table GRANT SELECT, INSERT ON messages TO message_store; -- Sequence GRANT USAGE, SELECT ON SEQUENCE messages_global_position_seq TO message_store; -- Functions GRANT EXECUTE ON FUNCTION gen_random_uuid() TO message_store; GRANT EXECUTE ON FUNCTION md5(text) TO message_store; GRANT EXECUTE ON FUNCTION hash_64(varc...
true
de513f801f173fbe767e3f06b4618eb7d6354e62
SQL
zephylac/L3-DB
/TP1/TP1-DBA.sql
UTF-8
6,050
4.09375
4
[]
no_license
## Answer # 1 createdb bd_l3info005 # 2 CREATE SCHEMA u_l3info005; CREATE SCHEMA TP1_jeu; # 3 SET search_path TO TP1_jeu,u_l3info005; # 4 DROP SCHEMA public; # 5 DROP TABLE IF EXISTS jeu; DROP TABLE IF EXISTS partie; DROP TABLE IF EXISTS save; #On precise le format pour la date SET datestyle = ...
true
4c43c61285d298dea69a60558e1ff19ca59da907
SQL
ihabramadan/WebAPPTemp
/mydb/gpstreet_data.sql
UTF-8
11,087
2.890625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.17, for Win32 (x86) -- -- Host: localhost Database: gpstreet -- ------------------------------------------------------ -- Server version 5.1.54-community /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_...
true
c8578674c610530a0195daf2d8191c61fada5a3b
SQL
ServaisJordan/javawebproject
/scriptSQL/jeu de teste cheeseKing.sql
UTF-8
3,614
2.9375
3
[]
no_license
insert into javawebprojectcheeseking.`language` (`name`) values('français'); insert into javawebprojectcheeseking.`language`(`name`) values('english'); insert into javawebprojectcheeseking.cheese(price_per_kilo, `name`, URL_image) values(13, 'gouda', 'gouda.jpg'); insert into javawebprojectcheeseking.cheese_langua...
true
faadf28dbe53b2528c5572580ab7c28c7f0b568a
SQL
void27/projeto-Mil-Grau
/bd_projetoBR.sql
UTF-8
817
3.46875
3
[]
no_license
create database projet0; use projet0; CREATE TABLE Fruta ( idFruta int PRIMARY KEY, nome varchar(40), temperatura double, umidade double ); CREATE TABLE Alerta ( idAlerta int PRIMARY KEY, cor varchar (40), Descrição varchar (60) ); CREATE TABLE Temp_Umi ( id int PRIMARY KEY, temperatura double, umidade double, dataho...
true
e65e2290977f3e43da487f49f2e11f9cb29c651f
SQL
lvxy/ccportal
/admin/ftl/code/oracle数据库脚本/TB_OUTLINEOUTLINE.sql
UTF-8
2,756
3.453125
3
[]
no_license
-- ---------------------------- -- Table structure for "C##FHADMIN"."TB_OUTLINEOUTLINE" -- ---------------------------- -- DROP TABLE "C##FHADMIN"."TB_OUTLINEOUTLINE"; CREATE TABLE "C##FHADMIN"."TB_OUTLINEOUTLINE" ( "USERNAME" VARCHAR2(255 BYTE) NULL , "REALM" VARCHAR2(255 BYTE) NULL , "PASSWORD" VARCHAR2(255...
true
5b97ec59cde7cb53a87707ee2e497a56bf0374e2
SQL
ECecillo/BDW-TP3-4
/chat.sql
UTF-8
1,459
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Mer 07 Février 2018 à 16:00 -- Version du serveur : 5.6.17 -- Version de PHP : 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_...
true
69d15dac8f82f7a688adb0b9db1848bfa3e87ff8
SQL
phamtu184/ql-dcct-mysql
/Something else/qldcct - Copy.sql
UTF-8
6,324
3.203125
3
[]
no_license
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 10/24/2019 3:50:42 PM */ /*==============================================================*/ drop table if exists BACHOC; drop table if exists...
true
f7d228d9f397bc0285be2307c036dde642db8226
SQL
kejukeji/park_java
/core/src/main/resources/sql/load_catalog_data_integ.sql
UTF-8
14,571
2.59375
3
[]
no_license
-- BLC Admin Required Categories INSERT INTO BLC_CATEGORY (CATEGORY_ID,LONG_DESCRIPTION,NAME,URL,DEFAULT_PARENT_CATEGORY_ID,ACTIVE_START_DATE) VALUES (1,'Root','Root',NULL,NULL,CURRENT_TIMESTAMP); INSERT INTO BLC_CATEGORY (CATEGORY_ID,LONG_DESCRIPTION,NAME,URL,DEFAULT_PARENT_CATEGORY_ID,ACTIVE_START_DATE) VALUES (2, '商...
true
d8b84e35ff821110c5b827fb379b89e304ef9985
SQL
zumbaarg/node_project
/database/db.sql
UTF-8
371
3.234375
3
[]
no_license
-- creating database CREATE DATABASE crudnodejsmysql; -- using the data base USE crudnodejsmysql; -- creating a table CREATE TABLE customer( id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, name VARCHAR(50) NOT NULL, address VARCHAR(100) NOT NULL, phone VARCHAR(15) ); -- to show all tables SHOW TAB...
true
746f7b7de7a501784cfcdc488d826ac1d320d2c1
SQL
sliu132/CSE-581
/Quiz 4 Practice/Quiz Practice.sql
UTF-8
335
3.140625
3
[]
no_license
--Function Ungraded Practice SELECT u.FirstName +' ' +u.LastName,COUNT(*) FROM CourseEnrollment ce , Courses c, Users u WHERE ce.CourseId = c.CourseId AND c.Faculty = u.NTID GROUP BY u.FirstName +' ' +u.LastName; --Error Handling SELECT * FROM Courses WHERE Facutly = '11-Fflitwick'; SELECT * FROM Cour...
true
37eae886e967b803aaf3cbaf9f4177bbc344dc2e
SQL
RebeccaRunxinWang/class-search-project
/test-production.sql
UTF-8
368
3.34375
3
[]
no_license
/* sort by difficulting */ Select * from course Order by average_difficulty; /* search by attributes */ select * from course where department = 'Computer Science'; /* filter by average teaching quality */ Select * from course where average_teaching_quality > 4; /* search by when the class was taken */ select * ...
true
229886beeb9e99a3c5cbcb8b1c2846845fc7f844
SQL
jungilwoo93/EnsiPartage
/ensipartageBDD/BDD fichier separe/ensipartage_table_contact.sql
UTF-8
578
2.578125
3
[]
no_license
-- -------------------------------------------------------- -- -- Structure de la table `contact` -- CREATE TABLE `contact` ( `id` int(11) NOT NULL, `nom` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `prenom` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `mail` varchar(255) COLLATE utf8_unicode_ci NOT NUL...
true
21b8fca81300e851d93ac282951b19c74d5cdc0b
SQL
skinnyjames/skettinet
/migrations/official/sqls/20191004235115-comments-up.sql
UTF-8
471
3.15625
3
[]
no_license
create table comments( id serial primary key, user_id integer references users(id), post_id integer references posts(id) on delete cascade, created_at timestamp not null default now(), updated_at timestamp not null default now(), comment text not null, quote varchar(255), quotee varchar(255), experien...
true
0586fa6cbdcc36f1e7f488b852fb6143115f78d1
SQL
alcidessmf/BANCO-DE-DADOS
/BANCO DE DADOS/SQL/QUERYS/MAILORDER/Questão2-2.sql
UTF-8
334
3.609375
4
[]
no_license
select ename, city from employees e inner join orders o on e.eno = o.eno inner join zipcodes z on e.zip = z.zip where ono in (select ono from (select o.ono, sum(od.qty*p.price) as valor_ordem from orders o inner join odetails od on o.ono = od.ono inner join parts p on od.pno = p.pno group by o.ono having valor_ordem >...
true
295d0ee1bd0807aaff0519b7e6b91250a31ff4e9
SQL
vijay4it/SQL_BI0620
/SQL/Table/Emp.sql
UTF-8
311
2.90625
3
[]
no_license
CREATE TABLE Emp(empno int primary key ,ename varchar(100) ,job varchar(100) ,mgr int references Emp(empno) ,hiredate datetime ,sal money constraint sal_check check(sal between 1500 and 7500) ,comm money ,deptno int foreign key references dept(deptno) )
true
d0b1559fcdd4cfc2f2187ec03906002d9522aeb2
SQL
Konata-CG/CS307
/lab/lab11/Table_Load/create_trigger.sql
UTF-8
233
2.546875
3
[]
no_license
create trigger students_trg before insert on students for each row when new.english_name is null -- Only for insert statements -- unaware of the new table structure execute procedure new_design();
true
fd9bfa08036c3da59b7ee192c5381046c8b41624
SQL
cray992/alltheThings
/SQL/old_VersionControl_Stuff/One Time Scripts/Customer/20090803 - SF 85553 - Update Payment related Business Rule for adjustment issue.sql
UTF-8
3,740
3.4375
3
[]
no_license
-- SF 85553 - Fix to update an existing adjustment of the same type instead of trying to add an adjustment of the same type. UPDATE ClientBusinessRule SET Definition = '<?xml version="1.0" encoding="utf-8" ?> <!-- action Adjust_ScheduleAdjust --> <snippet> <code> <![CDATA[ decimal tra...
true
a36ac9226c659a6117f08c064a49cf7b1f5d7218
SQL
jhonehenrique/cursodephp7
/pdo/dbphp7.sql
UTF-8
3,090
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 08-Nov-2017 às 16:39 -- Versão do servidor: 10.1.28-MariaDB -- PHP Version: 7.1.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
83a9804953b137253cc9283ca772eca2d0093ff8
SQL
yangfancoming/mybatis
/src/test/java/org/apache/ibatis/submitted/nonexistentvariables/CreateDB.sql
UTF-8
268
2.515625
3
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
-- WARNING: this file MUST be saved in UTF-8 create table names ( id int, firstName varchar(20), lastName varchar(20) ); insert into names (id, firstName, lastName) values(1, 'John', 'Smith'); insert into names (id, firstName, lastName) values(2, 'Sara', 'Gomez');
true
b0a2db6da31b96b63f7c5a35f764c643caea904e
SQL
processtec/storeapi
/DB/queries/images.sql
UTF-8
2,985
3.859375
4
[ "MIT" ]
permissive
select distinct Comp.ComponentID, Comp.TaxonomyCode, Comp.CategoryCode, Comp.ManufacturerID, --Comp.UniversalProductCode, replace(Comp.UniversalProductCode, ' // ', '<br /><br />') as UniversalProductCode, --convert(bit, case when [EQListCount] > 0 or [EQListSubCount] >0 or [InventoryCount] > 0 or Invento...
true
846ad92fea154e2b4f73b35db3915d51fc3d772d
SQL
Sarahjsts/Fairhaven
/Fairhaven/fairhavenscript.sql
UTF-8
1,065
3.296875
3
[]
no_license
DROP TABLE IF EXISTS [GameSave]; CREATE TABLE [GameSave] ( SaveID INTEGER PRIMARY KEY AUTOINCREMENT, SceneName VARCHAR(50)); DROP TABLE IF EXISTS [Player]; CREATE TABLE [Player] ( PlayerID INTEGER PRIMARY KEY AUTOINCREMENT, PlayerHP INT, PlayerMP INT, PlayerAtt INT, ...
true
a595def36252a700769e3a256f49ec3f46f19ba5
SQL
Emanual20/tb_yii2020
/data/install.sql
UTF-8
36,702
3.125
3
[]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- 主機: 127.0.0.1 -- 產生時間: 2020 年 06 月 14 日 15:06 -- 伺服器版本: 10.4.11-MariaDB -- PHP 版本: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
9345d6db398258acfefecedb30960bfe2439f4be
SQL
jnmacedo/melihack-los-luchos
/meli_db.sql
UTF-8
9,951
2.546875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.2.10 -- http://www.phpmyadmin.net -- -- Servidor: localhost:3306 -- Tiempo de generación: 12-04-2015 a las 14:41:50 -- Versión del servidor: 5.5.38 -- Versión de PHP: 5.6.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
c0dc495c9acf97f071de3dca47848bf1680c38ca
SQL
ketkideshpande/Event-managment-sql
/Common/CUST_NAME_BY_RESERV_ID.sql
UTF-8
1,608
3.328125
3
[]
no_license
create or replace function CUST_NAME_BY_RESERV_ID(I_resrv_id in events.reservation_id%type) return customers.customer_name%type is V_Cust_name customers.customer_name%type; begin dbms_output.put_line('--Customer Name By Reservation ID : Started--'); --Validate the input reservation ID VALIDATE_RES_ID...
true
b008b04a3e7f8aeed433d0629148e036bc2dd179
SQL
hasirudala/dwcc-server
/src/main/resources/db/migration/audit/V0_20__Create_Zone_And_Related_AuditTables.sql
UTF-8
410
3.203125
3
[ "Apache-2.0" ]
permissive
CREATE TABLE audit.zones_aud ( id INTEGER NOT NULL, rev BIGINT NOT NULL, revtype SMALLINT, name citext, region_id INTEGER, PRIMARY KEY (id, rev), FOREIGN KEY (rev) REFERENCES audit.revinfo (rev) ); CREATE TABLE audit.wards_zones_aud ( rev BIGINT NOT NULL, revtype SMALLINT, ...
true
23830e9418259a6a7c67bf995837f6adc90ed630
SQL
happyjianguo/cap-root
/cap-paf-service/db/paf_batch_loan_master_mysql.sql
UTF-8
2,564
3.359375
3
[]
no_license
drop table paf_batch_loan_master; create table paf_batch_loan_master( tx_brno varchar(10) comment '交易机构' , plat_date integer comment '平台日期' , plat_time integer comment '平台时间' , plat_trace integer comment '平台流水' , up_brno varchar(10) comment '上级机构' , log_id varchar(60) comment '日志ID' , log_dev varchar(20) comment...
true
852634d1ec3c73ee53d5f4a7fcca303010337091
SQL
koboldo/WorkMonitor
/code/sql/beforeImport.sql
UTF-8
319
2.609375
3
[]
no_license
CREATE UNIQUE INDEX INITIALS_IDX ON PERSON(INITIALS); DROP TABLE IF EXISTS IMPORT_LOG; CREATE TABLE IMPORT_LOG ( TXT VARCHAR(1000) ); DROP TABLE IF EXISTS LINK; CREATE TABLE LINK ( PERSON VARCHAR(200), ITEM_NO VARCHAR(200), PRICE VARCHAR(200), HANDOVER VARCHAR(200), FINISH VARCHAR(200) );
true
55a66bfdf87846458551873e9f0da767b7c5b714
SQL
freejeomi/espread2
/sql_file.sql
UTF-8
2,068
2.625
3
[]
no_license
DELETE FROM `stock` WHERE `store_name`='Dynamix'; INSERT INTO `stock` (`stock_id`, `stock_code`, `stock_name`, `costprice`, `sales_person_price`, `high_purchase`, `low_purchase`, `slab`, `sprice`, `block`, `reorder_level`, `store_name`, `stock_count`) VALUES(9,'mlk-2749','dangote sugar',34.00,56.00,76.00,89.00,10,0.00...
true
c3160f5a1196db7d1dde651fed32ce3ca2b4bc04
SQL
mattlopez4011/database-exercises
/join_exercises.sql
UTF-8
2,942
4.84375
5
[]
no_license
CREATE DATABASE join_test_db; SHOW DATABASES; USE join_test_db; CREATE TABLE roles ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(100) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE users ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(100) NOT NULL, email VARCHAR(100)...
true
07f519ee22fbf96bf299484831b0114486d81c05
SQL
thangduong3010/PL-SQL
/Practice/Trigger_Compound.sql
UTF-8
751
3.328125
3
[]
no_license
CREATE OR REPLACE TRIGGER EmployeeIntegrity FOR DELETE OR UPDATE OF ssn ON employee COMPOUND TRIGGER TYPE ssnArray IS TABLE OF employee.ssn%TYPE INDEX BY PLS_INTEGER; deleteList ssnArray; deleteIdx PLS_INTEGER := 0; AFTER EACH ROW IS BEGIN deleteIdx := deleteIdx + 1; d...
true
10c4c36f38366683ff47cb8b8984d8396c5b8b01
SQL
sunyb123/sping-boot
/blog.sql
UTF-8
4,241
3.1875
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 80021 Source Host : localhost:3306 Source Schema : test Target Server Type : MySQL Target Server Version : 80021 File Encoding : 65001 Date: 02/11/2020 00:50...
true
9df9f02bf60c1fd3337d89569aba0673a452b7cb
SQL
ebela/gen-mapper
/dbscripts/genmap_info.view.sql
UTF-8
10,748
3.578125
4
[ "MIT" ]
permissive
DROP VIEW `wp_genmap_info`; CREATE VIEW `wp_genmap_info` AS SELECT `wp_genmap_nodes`.`user_id` AS `user_id`, `wp_users`.`display_name` AS `created_by`, `wp_genmap_nodes`.`genmap_id` AS `genmap_id`, `gm`.`name` AS `genmap_name`, `gm`.`country_code` AS `country_code`, COUNT(1) AS `no_OF_md`, ...
true
d26aeee2f009c83909fe6cb51eb2da77d602d733
SQL
Eder-Leite/com-evolution-edgital-api
/src/main/resources/db/migration/V050__LIVALIUF.sql
UTF-8
4,905
3.203125
3
[]
no_license
-- Create table create table LIVALIUF ( nnumealiuf NUMBER not null, ncodiusuar NUMBER not null, ncodiempre NUMBER not null, ncodifilia NUMBER, ncodifinal NUMBER not null, ncodi_cfop NUMBER not null, ncodicompn NUMBER, ncodiregia NUMBER, ncodiestad NUMBER, ncodicateg NUMBER, ncodisbcat NUMBER, nc...
true
b3c961597c9733ae3c7760af6a1a456f6fca5c4f
SQL
SuperK92/CRUD_Academia_JDBC
/extras/academia.sql
UTF-8
5,588
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 05-05-2018 a las 20:53:22 -- Versión del servidor: 10.1.28-MariaDB -- Versión de PHP: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
fc8fb581e62335fd88a3aa166cfa63688904cbaa
SQL
NeroJz/57-SQL-Practice-Problems
/049.sql
UTF-8
1,044
3.984375
4
[]
no_license
# Customer Grouping - fixing null value # BETWEEN ... AND clause is suitable to deal with Interger # More ideal solution is to use < and <= operator SELECT `C`.`CustomerID`, `C`.`CompanyName`, FORMAT(IFNULL(SUM((`OD`.`Quantity` * `OD`.`UnitPrice`)),0),2) AS `Amount`, CASE WHEN SUM((`OD...
true
687e646554df01ea2cd63b54b231b797f63df33b
SQL
jongvin/werp
/werp/erpw/const/c_web/SP/y_sp_c_structure_insert.sql
UHC
7,832
3.109375
3
[]
no_license
/* ============================================================================= */ /* Լ : y_sp_c_structure_insert */ /* : */ /* ----------------------------------------------------------------------------- */ /* : ڵ ...
true
535343d445777a6f3a1634332203bab494c67b51
SQL
radtek/scripts-oracle-named
/+usados/Novos/Redo Log/log_file_usage-8.0-8.1.sql
UTF-8
739
3.125
3
[ "MIT" ]
permissive
------------------------------------------------------------------------------- -- -- Script: log_file_usage.sql -- Purpose: to see how much of the current log file has been used -- For: 8.0 and higher -- -- Copyright: (c) Ixora Pty Ltd -- Author: Steve Adams -- -----------------------------------------------...
true
f9470155643a3ae81e69658c82ddeeab9f84289c
SQL
NCIP/catrip
/codebase/projects/queryservice/db/create_db.sql
UTF-8
1,570
3.5
4
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
/*L Copyright Duke Comprehensive Cancer Center Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/catrip/LICENSE.txt for details. L*/ DROP TABLE CATRIP_QUERY; DROP TABLE DCQL_ATTRIBUTE; DROP TABLE DCQL_CLASS; DROP TABLE DCQL_QUERY; CREATE TABLE CATRIP_QUERY ( ID NU...
true
1b52801e0ebe08b33f84a55472cdaca2da3f6d7a
SQL
amir25121995/amir
/database/db_user.sql
UTF-8
2,462
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 14, 2022 at 05:49 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
50cfc0b2690f58e2b2d928c74c47b731c063242c
SQL
514840279/danyuan-application
/sql/数据库调整.sql
UTF-8
593
2.75
3
[ "Apache-2.0" ]
permissive
-- (1) 调整错误 Packet for query is too large (1120 > 1024). You can change this value on the server by setting the max_allowed_packet' variable. -- 查看 show VARIABLES like '%max_allowed_packet%'; -- 设置 set global max_allowed_packet = 2*1024*1024*10; -- 重启数据库 quit service mysql.server restart -- 再次查看 show VA...
true
71ab87b53cb861536cf72430abb55286f01e1c02
SQL
khendo888/EatDaBurger
/db/schema.sql
UTF-8
289
2.796875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS Burgers_db; USE Burgers_db; DROP TABLE IF EXISTS burgers; CREATE TABLE burgers ( id INT(11) AUTO_INCREMENT NOT NULL, burger_name VARCHAR(255) NOT NULL, devoured BOOL DEFAULT false, `date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id) );
true
5f078daf13bd366ec17e617abe6dbbeddbc5c4f5
SQL
Dinko2013/Portfolio
/Database Scripts/Oracle/Scripts/KeitaMomodou_Queries3.sql
UTF-8
2,883
4.21875
4
[]
no_license
--Momodou Lamin Keita --Database Test 3 ----------------------------------------------------------------------------- --Question 1 select departments.department_name as "Department Name", max(employees.salary) as MaxSalary from employees inner join departments on Departments.Department_Id = employees.department_id grou...
true
4fe4f428a2a78755917c4b982bf8c20703db8e4a
SQL
oshit-sd/BitBooks
/bitbook.sql
UTF-8
16,771
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 25, 2017 at 08:52 AM -- Server version: 10.1.22-MariaDB -- PHP Version: 7.1.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
4b8c568a0d0d432814a4e2b8a49cb0447a12735b
SQL
ramyothman/Qiyas-PPM
/QiyasPlatform/QiyasDatabase/PPM/Tables/Exam.sql
UTF-8
1,023
3.390625
3
[]
no_license
CREATE TABLE [PPM].[Exam] ( [ExamID] INT IDENTITY (1, 1) NOT NULL, [ExamCode] NVARCHAR (12) NULL, [Name] NVARCHAR (250) NULL, [ExamSpecialityID] INT NULL, [StudentGenderID] INT NULL, [NumberofSections] INT NULL, [Nu...
true
d4b4a43dcd2f548b5d23a56a04aaf408f4fa614e
SQL
KnajaDeveloper/PJM
/src/main/resources/META-INF/database-script/report/derby/PJMRP01.sql
UTF-8
2,342
4.0625
4
[]
no_license
CREATE VIEW "PJMRP01" AS SELECT p.id as PLAN_ID, t.id as TASK_ID , ot.id as OT_ID, t.TASK_NAME as T_NAME, ot.TASK_NAME as OT_NAME, mop.module_name AS MO_NAME, SUBSTR(CAST(DATE(p.date_end) AS CHAR(10)),6,2) AS MONTH, SUBSTR(CAST(DATE(p.DATE_START) AS CHAR(10)),9,2)||'/'||SUBSTR(CAST(DATE(p.DATE_START) AS CHAR(10)),6,2)...
true
beef1753a4778ee2ba42ca5c03e6057e4aeff860
SQL
htmlacademy-php/373565-doingsdone-12
/schema.sql
UTF-8
1,029
3.578125
4
[]
no_license
CREATE DATABASE doingsdone DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; USE doingsdone; CREATE TABLE users ( id INT unsigned AUTO_INCREMENT PRIMARY KEY NOT NULL, create_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, email VARCHAR(128) UNIQUE NOT NULL, name VARCHAR(255) NOT N...
true
e6f3412d5dd9f190ab29752f0b297ba352ab5492
SQL
rubeng7/stintegradoras
/scriptdb/script_bd_v21.05.17.sql
UTF-8
19,696
3.46875
3
[ "BSD-3-Clause" ]
permissive
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Versión del servidor: 5.7.17-log - MySQL Community Server (GPL) -- SO del servidor: Win32 -- HeidiSQL Versión: 9.4.0.5125 -- --------------------------------------------------------...
true
788f7d35ed1d509f2c5607f443d55ec52f948750
SQL
brpapa/4720A-higeia
/create.sql
UTF-8
8,491
3.578125
4
[]
no_license
-- DBMS: MySQL -- *** TABELAS *** -- DROP TABLE IF EXISTS `health_quote`; DROP TABLE IF EXISTS `prescription`; DROP TABLE IF EXISTS `medicine`; DROP TABLE IF EXISTS `appointment`; DROP TABLE IF EXISTS `doctor_week_opening_hour`; DROP TABLE IF EXISTS `doctor`; DROP TABLE IF EXISTS `doctor_medical_care_location`; DROP ...
true
0c2866a7d3a3a5b9996ce74cb290ab9bcc08518a
SQL
stoianov00/Java
/Java MySQL/03.Built In Functions/04.Find All Employees Except Engineers .sql
UTF-8
103
2.78125
3
[]
permissive
SELECT first_name, last_name FROM employees WHERE job_title NOT LIKE '%engineer%' ORDER BY employee_id;
true
c27f100d540030ebce1c737f93a66f2c2940429c
SQL
qprichard/iot-light-control
/server/script_db.sql
UTF-8
616
2.984375
3
[]
no_license
/* Table Users identified by user_id*/ DROP TABLE IF EXISTS users; CREATE TABLE users( card_uid VARCHAR(20) UNIQUE NOT NULL, last_name VARCHAR(20) NOT NULL, first_name VARCHAR(20) NOT NULL, login VARCHAR(8) UNIQUE NOT NULL, password VARCHAR(20) NOT NULL, id INTEGER PRIMARY KEY AUTOINCREMENT ); /*Table auth...
true
a9ed0029cac760779c3830e1390c5939842402e3
SQL
VijayMVC/Synergy
/User/Frank_Garcia/VERSIFIT/PULL_TEST_PARCC_FOR_WENDY.sql
UTF-8
15,939
3.734375
4
[]
no_license
WITH ALGII AS ( SELECT * FROM ( SELECT DISTINCT ROW_NUMBER () OVER (PARTITION BY STUD.STUDENT_ID ORDER BY TEST_SCORE_VALUE DESC) AS RN ,SIS_SCHOOL_YEAR AS 'School Year' ,STUD.STUDENT_ID AS 'Student APS ID' ,SDET.STUDENT_STATE_ID AS 'Student STATE_ID' ,TEST_PRIMARY_RESULT AS 'PARCC Algebra II Overall Pe...
true
c289dd2b0e3201c1b3683517e50db4bb9c853bd2
SQL
hungtin3/SQL4OracleEBS
/SetingSiteNameProfile.sql
UTF-8
2,987
3.09375
3
[ "Unlicense" ]
permissive
DECLARE v_Check BOOLEAN; v_Profile VARCHAR2(240); v_Value varchar2(100); v_Profile_Name varchar2(240); CURSOR c_Site_Name IS SELECT Decode(i.Instance_Name, 'ERPEVN', 'ERPEVN 8030', 'ERPCPC', 'ERPCPC 8035', ...
true
d0cac7f66b219acff729429ec08279b8d524ea71
SQL
indigophp-archive/dumper
/tests/test.sql
UTF-8
1,029
3
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
/* Navicat MySQL Data Transfer Source Server : Localhost Source Server Version : 50534 Source Host : 127.0.0.1:3306 Source Database : test2 Target Server Type : MYSQL Target Server Version : 50534 File Encoding : 65001 Date: 2014-01-05 11:03:35 */ SET FOREIGN_KEY_CH...
true
0827d9ac8b8f368d042590769da79edd9b6bb431
SQL
ashenud/ihms
/ihms.sql
UTF-8
60,864
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 192.168.1.101 -- Generation Time: Dec 23, 2020 at 10:03 PM -- Server version: 10.4.15-MariaDB-1:10.4.15+maria~bionic-log -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
true
636ae672109288f9c22def28532e188e31d3f02d
SQL
anilmaharjan87/online-ticket-reservation-backend
/src/main/resources/data.sql
UTF-8
1,437
2.578125
3
[]
no_license
INSERT INTO oauth_client_details(client_id, client_secret, web_server_redirect_uri, scope, access_token_validity, refresh_token_validity, resource_ids, authorized_grant_types, additional_information) VALUES ('web', '{bcrypt}$2a$10$gPhlXZfms0EpNHX0.HHptOhoFD1AoxSr/yUIdTqA8vtjeP4zi0DDu', ...
true
4d07db2adf56d6c3031b36ed2968f459551ee848
SQL
simondvt/SQL-class
/Lab2/9.sql
UTF-8
188
2.96875
3
[]
no_license
SELECT DELIVERERID FROM COMPANYDEL WHERE DELIVERERID <> 57 MINUS SELECT DELIVERERID FROM COMPANYDEL WHERE COMPANYID NOT IN (SELECT COMPANYID FROM COMPANYDEL WHERE DELIVERERID = 57);
true
fbd94d340c2834727399a4a52c1e3b7e992fd37a
SQL
habibcodes/BootcampX
/4_queries/13_name_of_teachers_and_number_of_assistances.sql
UTF-8
627
3.8125
4
[]
no_license
-- SELECT DISTINCT teachers.name as teacher, cohorts.name as cohort -- FROM teachers -- JOIN assistance_requests ON teacher_id = teachers.id -- JOIN students ON student_id = students.id -- JOIN cohorts ON cohort_id = cohorts.id -- WHERE cohorts.name = 'JUL02' -- ORDER BY teacher; SELECT teachers.name as teacher, c...
true
40f67937628a213cfc21cc1a76257773641f4603
SQL
LEDINHAlban/SintoniWebsite
/tables/staf_table.sql
UTF-8
394
2.78125
3
[ "MIT" ]
permissive
CREATE TABLE staf ( staf_no int NOT NULL AUTO_INCREMENT, first_name varchar(30) NOT NULL, last_name varchar(30) NOT NULL, password varchar(30) NOT NULL, date_of_birth date NOT NULL, gender varchar(20) NOT NULL, mobile varchar(15) NOT NULL, home_tel varchar(15) NOT NULL, email varchar(50), address v...
true
a52ffa36dcd9ac17b51889bdd2a6ed014f732d7b
SQL
anjoola/wear
/app/src/main/java/com/anjoola/sharewear/db/database.sql
UTF-8
280
2.921875
3
[]
no_license
-- Create the users table CREATE TABLE users ( id STRING PRIMARY KEY, name STRING, phone STRING, email STRING ); -- Create the locations table CREATE TABLE locations ( id STRING, timestamp TIMESTAMP, lat DOUBLE, lng DOUBLE, PRIMARY KEY(id, timestamp) );
true
e61503fa5abd07ddd3ab7dd92e238a6800c38642
SQL
dongm2ez/NetCTOSS
/WebRoot/WEB-INF/classes/netctoss.sql
UTF-8
9,035
3.75
4
[]
no_license
select * from cost; --资费信息表 create table cost( cost_id number(4) constraint cost_id_pk primary key, name varchar(50) not null, base_duration number(11), base_cost number(7,2), unit_cost number(7,4), status char(1), descr varchar2(100), creatime date default sysdate , starti...
true
403823d445c1f68df80c6fb9db98d9fffb7958ea
SQL
ckinson/DTC-Hackathon-Team7
/Code/heart_monitor.sql
UTF-8
341
3.0625
3
[]
no_license
--Creates a temporary stream. CREATE OR REPLACE STREAM "TEMP_STREAM" ( "HeartRate" DOUBLE); -- Sort records by descending anomaly score, insert into output stream CREATE OR REPLACE PUMP "OUTPUT_PUMP" AS INSERT INTO "TEMP_STREAM" SELECT STREAM "HeartRate" FROM "SOURCE_SQL_STREAM_001" WHE...
true
8398a95058fb8c01fa9bc2316d32a57692c04b1c
SQL
cs12110/english-web
/docs/sql/english_web.sql
UTF-8
5,437
3.3125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 127.0.0.1 Source Server Version : 50624 Source Host : 127.0.0.1:3306 Source Database : english_web Target Server Type : MYSQL Target Server Version : 50624 File Encoding : 65001 Date: 2018-09-02 15:07:41 */ SET FOREIGN_KEY_CHECKS=0; ...
true
2a4f7bec3332e83ac4b4ee24b701ec9625976363
SQL
brab0/scrumble
/db.sql
UTF-8
7,394
2.921875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `rmdb11` /*!40100 DEFAULT CHARACTER SET latin1 COLLATE latin1_general_ci */; USE `rmdb11`; -- MySQL dump 10.13 Distrib 5.6.13, for osx10.6 (i386) -- -- Host: mysql02.rmdb1.hospedagemdesites.ws Database: rmdb11 -- ------------------------------------------------------ -- Server version...
true
b95a3ba7ecf29c9957fb694c0a31fc67bb5c1f95
SQL
elifesciences/elife-xpub
/packages/component-model/migrations/1548236987-filestatus.sql
UTF-8
433
3.40625
3
[ "MIT" ]
permissive
-- Pubsweet does not handle dropping types -- So handle the expcetion if it exists -- (don't explicitly drop it as it might still be in use on the table) DO $$ BEGIN CREATE TYPE filestatus AS ENUM ( 'CREATED', 'UPLOADED', 'STORED', 'CANCELLED' ); EXCEPTION WHEN duplicate_object THEN null; END $$; ALTE...
true
9f43955f557ce0b99076de323e7f7ada6bb51df6
SQL
apel/apel
/schemas/server-extra.sql
UTF-8
8,013
3.34375
3
[ "Apache-2.0" ]
permissive
-- Extra views and partitioning for the central APEL server. -- This schema does not need to be loaded by regional servers. -- ----------------------------------------------------------------------------- -- Partitioning for JobRecords to aid query performance and monthly deletions -- More partitions can be added by ...
true
8fb6a65aef6eca691fe27db7422812e8256afd4e
SQL
riosborne6/employee-tracker
/db/seeds.sql
UTF-8
703
3.234375
3
[]
no_license
USE workforce; INSERT INTO Department (name) VALUES ("Sales"), ("Engineering"), ("Finance"), ("Legal"); INSERT INTO Role (title, salary, department_id) VALUES ("Sales Lead", 100000.00, 1), ("Sales Person", 80000.00, 1), ("Lead Engineer", 150000.00, 2), ("Software Engineer", 120000.00, 2), ...
true
c39af1aae1352b213ef8ee3cc4b945abb48a88d7
SQL
OHDSI/Achilles
/inst/sql/sql_server/analyses/813.sql
UTF-8
623
3.734375
4
[ "Apache-2.0" ]
permissive
-- 813 Number of observation records with invalid visit_id select 813 as analysis_id, cast(null as varchar(255)) as stratum_1, cast(null as varchar(255)) as stratum_2, cast(null as varchar(255)) as stratum_3, cast(null as varchar(255)) as stratum_4, cast(null as varchar(255)) as stratum_5, COUNT_BIG(o1.PERSON_ID)...
true
92c8b33e4b97bcf3b9d159f7b4d15bcf18c0d0f2
SQL
janecms/oracleplsql-examples
/chap12_dynamicsql/bulk_collection_into_clause.sql
UTF-8
399
2.75
3
[]
no_license
DECLARE TYPE EmpCurTyp IS REF CURSOR; TYPE NumList IS TABLE OF NUMBER; TYPE NameList IS TABLE OF VARCHAR2(25); emp_cv EmpCurTyp; empids NumList; enames NameList; sals NumList; BEGIN OPEN emp_cv FOR 'SELECT employee_id, last_name FROM employees'; FETCH emp_cv BULK COLLECT INTO empids, enames; CLOSE emp_cv; EX...
true
7a3f6ee61c89f45510c892871d4936b9d657c000
SQL
chen1649chenli/Beyond-LeetCode-SQL
/Interview/01_Facebook_Advertiser_Status/solution.sql
UTF-8
516
3.921875
4
[ "MIT" ]
permissive
-- Step 1. Update existing advertiser UPDATE Advertiser AS a LEFT JOIN DailyPay AS d ON a.user_id = d.user_id SET a.status = CASE WHEN d.paid IS NULL THEN "CHURN" WHEN a.status = "CHURN" AND d.paid IS NOT NULL THEN "RESURRECT" WHEN a.status != "CHURN" AND d.paid IS NOT NULL THEN "EXISTING" END; -- Step 2. ...
true
150cf5399fd138e42435489a259b2e6186bd4367
SQL
athos54/iescomercioAsir
/asgbd/hotel/2.sql
WINDOWS-1250
403
3.46875
3
[ "MIT" ]
permissive
-- Crea una funcin que devuelva el gasto realizado por una reserva (aplicar el iva). alter function gastoRealizadoPorReserva(@idreserva int) returns float begin return (select sum((gastos.precio*gastos.cantidad*(1+servicios.iva/100))) from gastos inner join servicios on servicios.idSERVICIOS = gastos.idSERVICIOS ...
true
b84838922383f7c02a14192855d7f8e48d2ceea4
SQL
adityabrillian/datamax-test
/_no1_datamax.sql
UTF-8
5,003
3.609375
4
[]
no_license
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FO...
true
c553ea34a54c3a9230c58071b36bcd0b1f448099
SQL
john-jyal/ReactStudy
/HappyHouse_Web_Spring/res/notice.sql
UTF-8
342
3.046875
3
[]
no_license
CREATE TABLE `notice` ( `noticeno` int PRIMARY KEY auto_increment , `userid` VARCHAR(20) NULL, `subject` VARCHAR(100) NULL, `content` VARCHAR(2000) NULL, `regtime` TIMESTAMP NOT NULL DEFAULT current_timestamp, constraint `notice_to_member_fk` foreign key (`userid`) references `u...
true
9d6291b9c2f04a5347fe7d53a8f499898187a11b
SQL
altamira/visualstudio
/Sistema de Informação Altamira/EGISADMIN.Database/dbo/Views/vw_TabelaAtributo.sql
UTF-8
391
2.84375
3
[]
no_license
Create view vw_TabelaAtributo as Select A.cd_tabela, A.nm_atributo, N.nm_natureza_atributo, A.qt_tamanho_atributo, A.ic_numeracao_automatica, A.ic_atributo_chave, A.ic_chave_estrangeira, A.nm_campo_mostra_combo_box, A.nm_tabela_combo_box, A.nm_campo_chave_combo_box, A.nu_ordem From Atributo A inner join Na...
true
f547d740c2d5b2833f782303d5bb114a8cabd8db
SQL
zhongyuehang/mis
/保养项目.sql
UTF-8
2,024
2.828125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: localhost Database: bydr -- ------------------------------------------------------ -- Server version 5.7.11-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
true
e58b7ebbef62405db9a71907371e17b0770ecde4
SQL
Djenkins88/Project-Employee-Tracker
/query-all.sql
UTF-8
448
3.921875
4
[ "MIT" ]
permissive
SELECT e.id AS ID, e.first_name AS First, e.last_name AS Last, e.role_id AS Role, r.salary AS Salary, m.last_name AS Manager, d.name AS Department -- JOIN EMPLOYEE to its self FROM employee e LEFT join employee m ON e.manager_id = m.id -- JOIN role to employee table LEFT J...
true
dd9bb999353ee5d1f1e20cbe088400c1f0b094aa
SQL
PCHANUL/nSarang
/server/prisma/migrations/20210103202508_add_bible/migration.sql
UTF-8
265
2.578125
3
[]
no_license
-- CreateTable CREATE TABLE `bible_korHRV` ( `book` INT NOT NULL, `chapter` INT NOT NULL, `verse` INT NOT NULL, `content` VARCHAR(191) NOT NULL, PRIMARY KEY (`book`,`chapter`,`verse`) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
true
056dd96a86cb59a525f301f5170aa4e0881777a8
SQL
UgryumovAlex/Spring_homeWork10
/db_script.sql
UTF-8
680
3.4375
3
[]
no_license
CREATE TABLE users ( username varchar(50) NOT NULL, password varchar(100) NOT NULL, enabled tinyint(1) NOT NULL, PRIMARY KEY (username) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSERT INTO users VALUES ('dima', '{noop}dima2019', 1), ('jorik', '{noop}jorik2013', 1); CREATE TABLE authorities ( use...
true
3e73b68b7d05f067443c7cc892d854676b7f81f4
SQL
pem-a/NSU-Bootcamp
/Desktop/Bootcamp/06-SQL/01-SQL/Solved/query.sql
UTF-8
3,410
4.65625
5
[]
no_license
-- Select all the employees who were born between January 1, 1952 and December 31, 1955 and their titles and title date ranges -- Order the results by emp_no with employees as (select * from employees where to_char(birth_date, 'YYYY-MM-DD') between '1952-01-01' and '1955-12-31') select employees.emp_no, emplo...
true
1338ccae8bf4babb904df79c7ae4bd4b6b0b9464
SQL
blavoie/oracle-scripts
/_blos/extlibs/bluegecko/queue-schedule-info.sql
UTF-8
1,297
2.609375
3
[]
no_license
/* Copyright (c) 2007 Blue Gecko, Inc License: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; wit...
true
1f2f4d4af07bfc410a4843d1efb6350a99daf2cf
SQL
srisesha/Gym-training-portal
/training.sql
UTF-8
5,805
3.375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 13, 2017 at 08:38 AM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
ed3f132a9bc310e5ff8babb202521bc902d95cd1
SQL
vesarium/tasklist
/database/tasklist-api.sql
UTF-8
13,760
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 30, 2020 at 08:35 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
b94fa6a6eefa265399770b13c3de920abb17cb48
SQL
ElenaIvanov/homework-java-siit
/src/main/resources/data_sales_full_DDL&DML.sql
UTF-8
1,556
3.4375
3
[]
no_license
DROP DATABASE IF EXISTS sales; create database sales; use sales; CREATE TABLE EMP (EMPNO INT(4) NOT NULL primary key, ENAME VARCHAR(10), JOB VARCHAR(9), MGR INT(4), HIREDATE DATE, SAL INT(2), COMMENTS INT(2), DEPTNO INT(2)); INSERT INTO EMP VALUES (7369, 'SMITH', 'CLERK', 7902, '17-DEC-1980', 800, NULL, 20), (7499, '...
true
edb97c05a8e0c3de34d5c523b784bf42a736248c
SQL
jdogresorg/counterparty2mysql
/sql/rps_match_expirations.sql
UTF-8
609
3.140625
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS rps_match_expirations; CREATE TABLE rps_match_expirations ( rps_match_id TEXT, -- tx0_address TEXT, tx0_address_id INTEGER UNSIGNED, -- id of record in index_addresses -- tx1_address TEXT, tx1_address_id INTEGER UNSIGNED, -- id of record in index_addresses block_index I...
true
2f27c6b1a966686976029f791d2520a18bfe2c1b
SQL
kumar-shubham/crowdtest
/db/db.sql
UTF-8
16,643
3.109375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.5.16 - MySQL Community Server (GPL) -- Server OS: Win32 -- HeidiSQL Version: 9.3.0.4984 -- -------------------------------------------------------- /*...
true
ba052988d4d843851ac204292eae093238884d49
SQL
CUBRID/cubrid-testcases
/sql/_13_issues/_11_1h/cases/bug_bts_4577.sql
UTF-8
739
3.53125
4
[ "BSD-3-Clause" ]
permissive
-- CUBRIDSUS-4577 CREATE TABLE with_trigger(a int primary key, b varchar(20), c int); INSERT INTO with_trigger VALUES (1, 'AAA', 11), (2, 'BBB', 22), (3, 'CCC', 33); SELECT a, b, c FROM with_trigger order by 1; CREATE TABLE trigger_actions(a smallint primary key, b char(20), c numeric); INSERT INTO trigger_actions(a,b...
true
c6a0331c2d311da3d4c87bf95f9a9d5e4a1219a3
SQL
chrisjhh/sview
/db/runs.sql
UTF-8
1,112
4.15625
4
[]
no_license
-- Table: public.runs -- DROP TABLE public.runs; CREATE TABLE public.runs ( id serial NOT NULL, name character varying(255) COLLATE pg_catalog."default", start_time timestamp with time zone NOT NULL, distance real, duration real, elevation real, start_latlng point, end_latlng point, ...
true
2b89daa172e31c076fc1d2dff615c39b1a3d9653
SQL
ValentinMinder/WordHunt
/database/mot import files/mot2.sql
UTF-8
955,008
2.796875
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Base de données :...
true
d78dd4635ecdd038e8309ae80e9c6b21343031f2
SQL
senthiltamil/CUNY_MSDA
/Week2Assignment.sql
UTF-8
2,077
4.28125
4
[]
no_license
/* Farthest travelling from any origin */ select distinct origin, dest, distance from flights where distance = ( select max(distance) from flights ) ; /* Farthest travelling per Origin */ select distinct flights.origin, flights.dest, f.farthest from flights join (select origin, max(distance) as farthest from f...
true
f708eb26bf58a2bb78c38bdd39b20c9ec3b9a669
SQL
loloschleicher/HistoriaClinica-PWA
/BDD/Script/Consultas/Consultas/Query6.sql
UTF-8
361
3.453125
3
[]
no_license
-- Query 6 -- Listar las drogas cuyos proveedores tienen contratos que vences antes de fin de año. select distinct d.nombreComercial from Drogas d, Droguerias dro, Contratos c where d.drogueria = dro.nombre and dro.nombre = c.drogueria and (c.fechaFin < "2019-12-31 23:59:59" ...
true
9c9149574154f62b497b0ed4d303d559a38576a0
SQL
troychn/javaStudySpace
/distributed/nettyDemo/src/main/resources/bashfile/device.sql
UTF-8
3,832
2.96875
3
[]
no_license
-- ---------------------------- -- Records of dmp_component -- ---------------------------- -- ---------------------------- -- Table structure for `dmp_component_version` -- ---------------------------- DROP TABLE IF EXISTS `dmp_component_version`; CREATE TABLE `dmp_component_version` ( `uuid` varchar(32) NOT NULL C...
true
723c3ad2e1885bc5aba9a4b1b1bed9fc47dd3ac5
SQL
kamy333/ikamych
/sql/historic/chat.sql
UTF-8
766
3.46875
3
[]
no_license
DROP TABLE IF EXISTS chat_friend; CREATE TABLE IF NOT EXISTS `chat_friend` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `user_id` varchar(50) NOT NULL, `name` varchar(50) NOT NULL, `message` TEXT DEFAULT NULL, `date` timestamp DEFAULT CURRENT_TIMESTAMP, `read` tinyint(11) NOT NULL DEFAULT '0', PRIMAR...
true
250facc041e89acfb869938ad1e4603f759196f5
SQL
sebasberra/shu_bases
/scripts/padron2/migra_padron2_profe.sql
UTF-8
2,793
3.328125
3
[]
no_license
/* Elimina la tabla auxiliar si existe */ DROP TABLE IF EXISTS padron_profe; /* Crea una tabla auxiliar con la estructura del archivo de texto */ CREATE TABLE padron_profe( Clave_ExCaja TINYINT, Clave_Tipo TINYINT, Clave_Numero INTEGER, Clave_Coparticipe TINYINT, Clave_Parentesco TINYINT, LeyA...
true
3781bf0b7e2362a746e856be8d926c6c31df1b0f
SQL
dsl2022/noteful_server_2019_deployment_exercise
/migrations/002.do.create_noteful_notes.sql
UTF-8
270
2.9375
3
[]
no_license
CREATE TABLE noteful_notes ( id INTEGER PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, note_name TEXT NOT NULL, content TEXT NOT NULL, date_added TIMESTAMP WITH TIME ZONE DEFAULT now(), folder INTEGER REFERENCES noteful_folders(id) ON DELETE CASCADE NOT NULL );
true
3cf1e743ce4e05d094ea062b3d6c873a9ecebea9
SQL
VladWild/interviews
/2021-09-06-zhenya-sobes/problemaNplus1/src/test/resources/insert.sql
UTF-8
656
2.65625
3
[]
no_license
-- У одного автора может быть много книг -- У книг может быть только один автор -- Начальные данные: -------------------------- -- /-> Книга 1 -- Aвтор 1 -> -- \-> Книга 3 -------------------------- -- Aвтор 2 -> Книга 2 insert into author (id, name) values (1, 'автор 1'); insert into author (id...
true
96cc79356434ec4dd97745cb4ec6b75951c30cb6
SQL
feisishui/oracle-spatial-workshop
/Workshop_Files/labs/06-queries/15_dblinks.sql
UTF-8
2,709
3.71875
4
[]
no_license
------------------------------------------------------------------------------ -- Creating a dblink ------------------------------------------------------------------------------ -- Public dblinks -- (Connect as SYSTEM) CREATE PUBLIC DATABASE LINK orcl112_scott CONNECT TO scott IDENTIFIED BY tiger USING 'orcl112'; CRE...
true
4316d5ee4ee0f3e110baa5540abd8420d0dd1ba5
SQL
KoroteevaS/Library
/library.sql
UTF-8
1,848
3.359375
3
[]
no_license
DROP table IF EXISTS library; CREATE TABLE library ( book_id INT AUTO_INCREMENT, book_name varchar(50), author varchar(50), written char(4), book_language varchar(20), images varchar(70), book_link varchar(70), PRIMARY KEY (book_id) ); INSERT INTO library VALUES ("1","A Christmas Carol", "Charles Dic...
true
23ff44447767d3d43a976252c936aade28bc960a
SQL
songzhilian/nbjj-internet
/sql/acd_bxgs.sql
GB18030
4,153
2.765625
3
[]
no_license
prompt PL/SQL Developer import file prompt Created on 202123 by Administrator set feedback off set define off prompt Disabling triggers for ACD_BXGS... alter table ACD_BXGS disable all triggers; prompt Deleting ACD_BXGS... delete from ACD_BXGS; commit; prompt Loading ACD_BXGS... insert into ACD_BXGS (ID, BXGSMC, BXGSJC...
true
2d155f031a964699f58b5b238039e76b358739d8
SQL
villdimova/SoftUni-MicrosoftSQLServer
/Exam 11.08.2020/06. Negative Feedback.sql
UTF-8
205
3.234375
3
[ "MIT" ]
permissive
/* */ SELECT f.ProductId, f.Rate, f.Description, f.CustomerId, c.Age, c.Gender FROM Feedbacks f JOIN Customers c ON f.CustomerId=c.Id WHERE Rate<5.0 ORDER BY ProductId DESC,Rate
true
4427021000a97a0c356f4b69a70975aceca6d1c9
SQL
wfslithtaivs/PSQL-exercises-
/jane_query.sql
UTF-8
669
3.234375
3
[]
no_license
-- On server side copy(SELECT first_name, last_name, grades.project_title, grades.grade, projects.max_grade FROM students JOIN grades ON (students.github = grades.student_github) JOIN projects ON (grades.project_title = projects.title) WHERE github='jhacks') to '/home/user/src/project-tracker/ja...
true