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
1a8d63833057e768a696c3caafcfe1a2f59303ac
SQL
chaitanyarudraraju/Expense-Management-PHP7
/expenselogindb.sql
UTF-8
3,747
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 24, 2019 at 11:45 AM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.1.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
4206e503f31dc779b4d11f59d800e13d9ec9efb0
SQL
CesarJrFontalvo/mensajesApp-java
/target/classes/com/platzi/bd/mensajes.sql
UTF-8
1,512
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3306 -- Tiempo de generación: 29-09-2021 a las 19:05:01 -- Versión del servidor: 5.7.21 -- Versión de PHP: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
true
d5b2c0716c674537ca2a5035a30f381f55cca8a7
SQL
EliteNguyen/SQL
/Thực hành 1/QUANLYNV.SQL
UTF-8
4,999
4.0625
4
[]
no_license
CREATE DATABASE QLNV ON (NAME='QLNV_DATA', FILENAME='C:\SQL\QLNV.MDF') LOG ON (NAME='QLNV_LOG', FILENAME='C:\SQL\QLNV.LDF') USE QLNV --1// BẢNG VỊ TRÍ CREATE TABLE VITRI ( MaVT CHAR(4) PRIMARY KEY, Mota nvarchar(30) ) --2//BẢNG PHÒNG BAN CREATE TABLE PHONGBAN ( MaPB char(4) PRIMARY KEY, TenPB NVARCHAR(10), DiaC...
true
031946a13caff2cc80101a3c5d801918cf41532d
SQL
muthuwebg/TV-api
/migration.sql
UTF-8
2,330
3.71875
4
[ "MIT" ]
permissive
CREATE TABLE `users` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `password` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `token` varchar(255) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL ...
true
ae879ae07e12a4d8a0d9c5020c35a46729244c0a
SQL
lukepharr/dataHW
/HW8/HW8.sql
UTF-8
4,597
4.21875
4
[]
no_license
Use Sakila; #1a select first_name, last_name from actor; #1b select concat(first_name, ' ', last_name) from actor; #2a select first_name, last_name, actor_id from actor where first_name = 'Joe'; #2b select first_name, last_name, actor_id from actor where last_name like '%gen%'; #2c select first_name, last_name, actor_i...
true
eb331a441dc65fb7570d6a2efc66c466fdc56bad
SQL
bellmit/origin
/family_order/sql/.svn/pristine/eb/eb331a441dc65fb7570d6a2efc66c466fdc56bad.svn-base
UTF-8
734
3.0625
3
[]
no_license
select a.serial_number,b.switch_id moffice_id, a.remove_tag,a.destory_time,a.log_id,a.rsrv_str1,a.user_id,a.eparchy_code from tf_b_reuse_log a,td_m_moffice b WHERE a.back_time >= TO_DATE(:START_DATE,'yyyy-mm-dd hh24:mi:ss') AND a.back_time <= TO_DATE(:END_DATE,'yyyy-mm-dd hh24:mi:ss') and a.eparchy_code = :EPARCHY_COD...
true
ada1e955c1e5adabd31128e3dc73f1c89729ae17
SQL
ErosMLima/Training-Jan-2021
/Modules/SQL/Day6/Vatsal Parmar/SQLDay6SubqueryTask.sql
UTF-8
5,610
4.59375
5
[]
no_license
/* Day 6 Subquery Task */ -- 1. Write a query to find the names (first_name, last_name) and salaries of the employees --who have higher salary than the employee whose last_name='Bull'. SELECT FirstName + ' ' + LastName 'Name',Salary FROM Employees WHERE Salary > (SELECT Salary FROM Employees WHERE LastName='Bull'); ...
true
8b4557ec13be00ea7faca163735f7e1f21d5fb46
SQL
codegeartecnologia/prj_engenharia_front
/acadbd.sql
UTF-8
6,303
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 14-Maio-2015 às 03:14 -- Versão do servidor: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
688a4841a97e1247b1f13720a4a33440a2f70f7a
SQL
dxd132630/AcademicProjects
/LibraryManagementProject/SQLschemaSetupQuaries/Creates_and_Triggers.sql
UTF-8
3,255
3.734375
4
[]
no_license
CREATE SCHEMA LIBRARY; USE LIBRARY; CREATE TABLE BOOK ( Book_id varchar(10) not null, Title varchar(100), CONSTRAINT pk_book_id primary key (book_id)); CREATE TABLE BOOK_AUTHORS ( Book_id varchar(10) not null, Author_name varchar(100) not null, Fname varchar(20), Minit varchar(10), Lname varchar(20), primary key (Book_...
true
5996a4ab809fdcb7961018a9bf09a60dd920a5a6
SQL
erifejams/CA-Project-Group-17
/CA Project Group 17.ddl
UTF-8
7,294
3.25
3
[ "MIT" ]
permissive
-- Generated by Oracle SQL Developer Data Modeler 19.2.0.182.1216 -- at: 2019-12-15 20:50:12 GMT -- site: Oracle Database 12c -- type: Oracle Database 12c DROP TABLE branch CASCADE CONSTRAINTS; DROP TABLE car CASCADE CONSTRAINTS; DROP TABLE contract CASCADE CONSTRAINTS; DROP TABLE customer ...
true
317f0b651144ffd2d06efc177dce974efad2d9dc
SQL
zxteloiv/problem-reservoir
/docs/database.sql
UTF-8
3,463
3.5
4
[ "BSD-2-Clause", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.0.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2015-12-01 13:08:27 -- 服务器版本: 10.0.17-MariaDB -- PHP Version: 5.6.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
470bac5eedde6cd6939d4aba530a9561ebb50f5f
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day13/select0427.sql
UTF-8
191
2.765625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-12T04:27:00Z' AND timestamp<'2017-11-13T04:27:00Z' AND SENSOR_ID='235009e5_9e65_4a06_a195_b9498ff0dd79'
true
29db3e10956eba99b7087f1e46fad88d1b383348
SQL
hernan-alperin/urbix
/urbixagg.sql
UTF-8
910
2.640625
3
[]
no_license
select * from (select time, data as "1" from bkn_result where '2015-01-01' <= time and time <= '2015-05-05' and variable_id = 1) as f1 full join (select time, data as "2" from bkn_result where '2015-01-01' <= time and time <= '2015-05-05' and variable_id = 2) as f2 using (time) full join (select time, d...
true
ddc924ede904e8273f21ae4fb3db98472d06e328
SQL
shahidahaamir/phh
/generated-bdd.sql
UTF-8
1,992
3.84375
4
[]
no_license
DROP DATABASE IF EXISTS `magasin`; CREATE DATABASE `magasin`; USE `magasin`; -- --- -- Table 'produits' -- Liste des produits -- --- DROP TABLE IF EXISTS `produits`; CREATE TABLE `produits` ( `idpr` INTEGER NOT NULL AUTO_INCREMENT , `titre` VARCHAR(45) NOT NULL, `ref` VARCHAR(50) NOT NULL, `prix` DOUBLE N...
true
a54d1dafced6255050afbcb273700d2941bdf072
SQL
boolean-dev/learn
/04-sharding-sphere/sql/dbuser0.sql
UTF-8
3,986
3.09375
3
[]
no_license
-- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 5.7.24-log - MySQL Community Server (GPL) -- 服务器OS: Win64 -- HeidiSQL 版本: 10.2.0.5599 -- -------------------------------------------------------...
true
988acb575ea9de7be26683a8e77389341c0a3dbb
SQL
tommyiversonj/openmrs-config-pihemr
/configuration/reports/reportdescriptors/dataexports/sql/edTriage.sql
UTF-8
14,418
3.46875
3
[]
no_license
CALL initialize_global_metadata(); -- set @startDate = '2019-07-01'; -- set @endDate = '2020-12-31'; SELECT encounter_type_id into @EDTriageEnc from encounter_type where uuid = '74cef0a6-2801-11e6-b67b-9e71128cae77'; SELECT encounter_type_id into @consEnc from encounter_type where uuid = '92fd09b4-5335-4f7e-9f63-b2a6...
true
81d505f190d5191955c287a7f8c22177450a8641
SQL
laomd-2/MySQL
/6/6.2.3.sql
UTF-8
464
3.25
3
[]
no_license
DELIMITER // CREATE PROCEDURE Proc_CalTotalPrice4Customer(p_custname CHAR(25)) BEGIN DECLARE L_custkey INTEGER; SELECT custkey INTO L_custkey FROM customer WHERE name=trim(p_custname); UPDATE orders SET totalprice = (SELECT SUM(extendedprice * (1-discount) * (1+tax)) FROM lineitem W...
true
a58c0e41d29db06fcfbe8b3a25716d94a1586f4b
SQL
AnnaGashenko/franch
/franch.sql
UTF-8
20,781
2.890625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.4.15.7 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Дек 09 2016 г., 10:53 -- Версия сервера: 5.5.50-log -- Версия PHP: 5.4.45 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
true
6aaaac6ab5f78058027e94359b98c163e0c1fe23
SQL
ricots/awesome_praktikum_unikama
/UAS PRAKTIKUM PEMROGRAMAN 3/KELOMPOK 2/londry.sql
UTF-8
2,241
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 16, 2016 at 02:55 PM -- Server version: 5.1.41 -- PHP Version: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
true
487f856b247d5d21fc335494ca9863b1f0c2166f
SQL
amartyaamp/corporate-political-nexus
/nexus/app/sql/28_mar/crawldb.sql
UTF-8
1,489
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 28, 2016 at 05:26 PM -- Server version: 5.5.41-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
6b6f9d1ca85ea7e114c6eeaed9df5e097deb7612
SQL
Rutvij-dashputre/Rutvij-Edac2020
/DBT(Assignment 5).sql
UTF-8
2,910
3.75
4
[]
no_license
use assignment; Create table EMP ( EMPNO numeric(4) not null, ENAME varchar(30) not null, JOB varchar(10), MGR numeric(4), HIREDATE date, SAL numeric(7,2), DEPTNO numeric(2) ); Insert into EMP (EMPNO ,ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO ) values(1000, 'Manish' , 'SALESMAN', 1003, '2020-02-18', 600, 30) ; In...
true
2fbe7b81e48b238eb66619dd0af09df2bd4118a6
SQL
NunoAlexandre/innovation-funding-service
/ifs-data-layer/ifs-data-service/src/main/resources/db/migration/V79_9_1__Add_affiliation.sql
UTF-8
847
3.375
3
[ "MIT" ]
permissive
CREATE TABLE affiliation ( id BIGINT(20) PRIMARY KEY NOT NULL AUTO_INCREMENT, user_id BIGINT(20) NOT NULL, affiliation_type ENUM('EMPLOYER', 'PROFESSIONAL', 'PERSONAL', 'PERSONAL_FINANCIAL', 'FAMILY', 'FAMILY_FINANCIAL') NOT NULL, affiliation_exists TINYINT(1) NOT NULL, relation VARCHAR(255), or...
true
2084eee97788a69dfd4c3e16abdf662616d5a8cd
SQL
viniciustakedi/ExerciciosSenai_2S-2020
/banco de dados/Arquivos SQL/exe_Pessoas.sql
ISO-8859-1
1,829
4
4
[]
no_license
CREATE DATABASE exe_pessoas USE exe_pessoas --Criar tabela CREATE TABLE Pessoas ( IdPessoas INT PRIMARY KEY IDENTITY, Nome VARCHAR (200) ); CREATE TABLE Email ( IdUsuario INT PRIMARY KEY IDENTITY, Descricao VARCHAR (200), IdPessoas INT FOREIGN KEY REFERENCES Pessoas (IdPessoas) ); CREATE TABLE Telefone...
true
663c527b7854465f1a424bd1dbe7a6159072e356
SQL
marcusgram/7381792102112121
/administration/storage/tablespaces/undo/UNDO_corruption.sql
UTF-8
2,275
3.375
3
[]
no_license
Unable to drop undo tablespace due to ORA-01548: active rollback segment ------------------------------------------------------------------------ Problem: – create a new undo tablespace and set it to undo tablespace of instance sys@ora11gr2> alter system set undo_tablespace=undotbs2; – but we can not dro...
true
1b9e7035a31e8cc33d6ebdfe2a4152b078a332e7
SQL
meldig/SQL
/schema/structure commune/suppression_structure_commune.sql
UTF-8
2,488
2.890625
3
[]
no_license
/* Suppression de la structure du schéma G_GEO (tables, déclencheurs, vues, indexes, métadonnées spatiales) */ -- 1. Suppression des tables pivots DROP TABLE G_GEO.TA_FAMILLE_LIBELLE CASCADE CONSTRAINTS; DROP TABLE G_GEO.TA_LIBELLE_RELATION CASCADE CONSTRAINTS; DROP TABLE G_GEO.TA_LIBELLE_CORRESPONDANCE CASCADE CONSTR...
true
9e2cdb7b0368070c02793a0ea9641414c7d0260d
SQL
SmarterApp/AP_ItemAuthoring
/sbac-iaip-rpm-installer/iaip-tomcatjasper-rpm/src/main/opt/jasper-update/buildomatic/install_resources/sql/oracle/quartz.ddl
UTF-8
9,176
3.34375
3
[ "Apache-2.0" ]
permissive
-- Comments from the original Oracle Quartz file: -- -- A hint submitted by a user: Oracle DB MUST be created as "shared" and the -- job_queue_processes parameter must be greater than 2, otherwise a DB lock -- will happen. However, these settings are pretty much standard after any -- Oracle install, so most users...
true
38289e378c1c701e663741dcac35f80b9b77cf76
SQL
solaresjuan98/bd1-proyecto1
/util/substring.sql
UTF-8
555
3.171875
3
[]
no_license
SELECT REGEXP_SUBSTR('Hello world !', '[^ ]+', 1, 1) as palabra_1 , REGEXP_SUBSTR('Hello world !', '[^ ]+', 1, 2) as palabra_2 , REGEXP_SUBSTR('Hello world !', '[^ ]+', 1, 3) as palabra_3 FROM DUAL; SELECT REGEXP_SUBSTR('Hello world !', '[^ ]+', 1, 1) as palabra_1 FROM DUAL; SELECT (SELECT REGEXP_SUBSTR(CLIE...
true
6ebf7506ac4c7b494fc5a487d57907ae1da12ce9
SQL
Alirasheed94/FinalWeek8
/db/register.sql
UTF-8
1,718
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 09, 2020 at 10:13 AM -- Server version: 5.6.24 -- PHP Version: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
a080fbfc37cbb9c6eb9b84920e860a54f5952da1
SQL
gicadmin/allo
/PHENIX/Tables/CUSTOMER_ADJUSTMENT_CONSIGNS.sql
UTF-8
2,093
3.546875
4
[]
no_license
CREATE TABLE phenix.customer_adjustment_consigns ( cac_cad_id NUMBER(15) NOT NULL, cac_sequence NUMBER(2) NOT NULL, cac_prf_prd_code VARCHAR2(10 BYTE) NOT NULL, cac_prf_fmt_code VARCHAR2(7 BYTE) NOT NULL, cac_cost_price NUMBER(7,2) NOT NULL, cac_quantity NUMBER(7) NOT NULL, cac_selling_price NUMBER(7,2) N...
true
2e70388f094697d6de966a9f43b6f9e04687808b
SQL
gustavoper/SocExames
/sql/ddl.sql
UTF-8
851
2.828125
3
[]
no_license
create table exame ( id mediumint(8) unsigned not null primary key auto_increment, id_paciente mediumint(8) unsigned not null, id_medico mediumint(8) unsigned not null, id_tipo_exame mediumint(8) unsigned not null, email_paciente varchar(255) not null, observacao_exame text null, id_externo_ex...
true
f158055f00e2c5f4b14b75c0bf50ac8409e2ca57
SQL
kasyJ/taskphp
/migrations/001_add_task.sql
UTF-8
449
2.734375
3
[]
no_license
-- Таблица задач -- -- имена таблиц и полей в бэквотак или без них, ни каких кавычек! CREATE TABLE `tasks` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `username` VARCHAR(255) NOT NULL, `email` VARCHAR(255) NOT NULL, `text` TEXT NOT NULL, `completed` BOOLEAN DEFAULT FALSE, `edited` BOOLEAN DEFAULT FALSE, PR...
true
5b067287ee035e7e8aea4892544365d8403166a3
SQL
diegombt/ss-dba-queries
/reports/ss-tables_in_filegroups.sql
UTF-8
1,066
3.984375
4
[]
no_license
------------------------------------------------------------------------------------------------------------ -- List of Table in Filegroup with table size in SQL Server -- Know list of table under each file group along with size of that table and name of clustered index if any -- http://blog.extreme-advice.com/2013/01/...
true
ed7a62932e75f76461f4486b3a00abe131c42706
SQL
CostanCatalin/KiMo
/plsql/pachet_functii_membri.sql
UTF-8
5,246
4.0625
4
[]
no_license
create or replace package children_functions as TYPE age_distribution IS VARRAY(20) of float; function getAge (child_id in kids_kid.id%type) return number; function getAgeDistribution(year in integer) return float; function getChildrenInThatMonth(month in integer) return number; function getDistance(x1 in fl...
true
9c55ffdef88dbcc8447cb377ee761847a7200e2a
SQL
StewartLivingstone/node1
/vet_tables.sql
UTF-8
3,770
3.765625
4
[]
no_license
USE vet_tables; DROP TABLE owner; DROP TABLE pet; DROP TABLE practice; DROP TABLE vet; #-- Create the owner table CREATE TABLE owner ( owner_id INTEGER NOT NULL , surname CHAR VARYING(25) NOT NULL , forename CHAR VARYING(20) NOT NULL , title CHAR VARYING(4) NOT NULL , tel_number CHAR VARYING(15) , addre...
true
e13a983df43ad2f752a8c24528dfdef314c9aa4e
SQL
debramaelee/sql-exercises
/restaurant_db.sql
UTF-8
2,841
4
4
[]
no_license
CREATE TABLE restaurant ( id serial PRIMARY KEY, name varchar, distance numeric, stars integer CHECK (stars <= 5), category varchar, favorite_dish varchar, does_takeout boolean, last_time_eaten_there date ); -- Write INSERT statements to enter data into the restaurant table. You can paste the statements into t...
true
1adca67fda9eb5f0fd0587c6da9bdd48ad1cd257
SQL
Erv16/Student-Registration-System
/package_tables.sql
UTF-8
11,944
3.828125
4
[]
no_license
SET serveroutput ON; CREATE OR REPLACE PACKAGE student_registration AS TYPE ref_cursor is ref cursor; FUNCTION show_students RETURN ref_cursor; FUNCTION show_courses RETURN ref_cursor; FUNCTION show_pre_requisites RETURN ref_cursor; FUNCTION show_classes RETURN ref_cursor; FUNCTION show_enrollments RETURN ref...
true
d351595c5c3772b4477d4ea01a9956fc1b65ac7e
SQL
dbmdz/cudami
/dc-cudami-server/dc-cudami-server-backend-jdbi/src/main/resources/de/digitalcollections/cudami/server/backend/impl/database/migration/V10.00.00__DDL_Table_for_Licenses.sql
UTF-8
245
2.703125
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS licenses ( uuid UUID NOT NULL PRIMARY KEY, acronym VARCHAR COLLATE "ucs_basic", label JSONB, url VARCHAR COLLATE "ucs_basic" NOT NULL UNIQUE, created TIMESTAMP NOT NULL, last_modified TIMESTAMP NOT NULL );
true
bb2dec1d9fde3d8098049df7b373e30f12ceea44
SQL
EricRicketts/LaunchSchool
/SQL/DatabaseApplications/interacting_with_a_database_in_code/command_line_project/schema.sql
UTF-8
201
2.875
3
[]
no_license
CREATE TABLE expenses ( id SERIAL PRIMARY KEY, amount DECIMAL(6, 2) NOT NULL CHECK (amount >= 0.01), memo TEXT NOT NULL, created_on TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP(0) );
true
3b1fc1aea19056b70e439219e334d943f38f30d8
SQL
leolanavo/MAC0350
/EP1/scripts/DDL.sql
UTF-8
4,475
3.546875
4
[]
no_license
CREATE TABLE IF NOT EXISTS USUARIO( US_ID SERIAL PRIMARY KEY NOT NULL, US_LOGIN CHAR(320) NOT NULL, US_SENHA CHAR(12) NOT NULL ); CREATE TABLE IF NOT EXISTS ALUNO( AL_ID SERIAL PRIMARY KEY NOT NULL, AL_NUSP ...
true
363bfcc58fa81fc632e75d0fa4afda745e34e436
SQL
gcoronelc/PLSQL-2019-08
/Clase02/enrique melendez.sql
ISO-8859-1
1,008
3.171875
3
[]
no_license
/* Ejercicio Desarrollar una funcion que retorne la cantidad de dias de un mes */ CREATE OR REPLACE FUNCTION FN_DIAS_MES (P_MES IN NUMBER) RETURN VARCHAR2 IS V_DIAS VARCHAR2(100); BEGIN CASE P_MES WHEN 1 THEN V_DIAS := 'ENERO'||' - '||'31 DAS' ; WHEN 2 THEN V_DIAS := 'FEBRERO'||' - '||'28 DAS'; WHEN...
true
b78f4f8f74973b92a475a76e1c4ba7ccc285523f
SQL
hectorh30/cc3057-2017
/proyectos/proyecto2-dbms/false-tests.sql
UTF-8
212
2.875
3
[]
no_license
SELECT FROM estudiantes; INSERT INTO estudiante VALUES ('A', 'B'), ('C', 'D'); SELECT nombre FROM estudiante JOIN profesor ON estudiante.profesor_id = profesor.id WHERE estudiante.nombre = 'Pedro' ORDER BY DESC;
true
f380d64f231303ff6449ea9f5347b1668f67cd8f
SQL
getbehindthmule/oath2-security
/src/main/resources/db/migration/V1.0__create_oauth2_schema.sql
UTF-8
2,466
3.46875
3
[]
no_license
-- noinspection SpellCheckingInspectionForFile CREATE SEQUENCE HIBERNATE_SEQUENCE START WITH 100 INCREMENT BY 1; CREATE TABLE OAUTH_CLIENT_DETAILS ( CLIENT_ID VARCHAR(255) PRIMARY KEY, RESOURCE_IDS VARCHAR(255), CLIENT_SECRET VARCHAR(255), SCOPE VARCHAR(255...
true
c90d89d47d4c8472f8bb9f4ae7bc5349bc4b9e0c
SQL
colorfishwyl/alibabaService
/database/更新主键自增序列.sql
UTF-8
343
2.671875
3
[]
no_license
- SELECT MAX(id) FROM illuminations; -- 获得该表当前最大id值 -- SELECT nextval('"illuminations_id_seq"'); -- 获得该表id自增序列值 SELECT setval('"illuminations_id_seq"', (SELECT MAX(id) FROM illuminations)); -- 更新设置当前id自增序列值为最大id --SELECT nextval('"illuminations_id_seq"'); -- 查看下一个id
true
e9efcd708f7d5372898cabbe7b121e4a040e71c6
SQL
luo-hang/study-www-association-qa
/study-www-association-qa/sql/shiant-study.sql
UTF-8
9,563
2.828125
3
[]
no_license
-- ---------------------------- -- Table structure for t_sys_carousel -- ---------------------------- DROP TABLE IF EXISTS `t_sys_carousel`; CREATE TABLE `t_sys_carousel` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号', `title` varchar(500) DEFAULT NULL COMMENT '标题', `domain` varchar(255) NOT NULL COMMENT ...
true
ff2fd64e20c68c83506e22d6a8373b5783ea4166
SQL
natnoel/Bookstore-Database
/dbLoadBook.sql
UTF-8
5,341
2.71875
3
[]
no_license
2011/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ /* BOOKSHOP */ /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ INSERT INTO Product VALUES (1, 23.95, 'Prentice Hall', 'Magnificent colours !!!' ); INSERT ...
true
940ff7d8d4b8f7534289d62d8f6babf810620517
SQL
unbeman/intern_task
/sql/init_001.sql
UTF-8
1,568
3.765625
4
[]
no_license
create database shop; \connect shop; create table if not exists companies ( id serial not null constraint companies_pkey primary key, title varchar not null, description varchar ) ; alter table companies owner to postgres ; create table if not exists tags ( id serial not null constraint tags_pkey prima...
true
7aab51108d216677732f6bbe8b8662af43bc9b74
SQL
zengamer21/POST_Grad
/scripts/create_db_2.sql
UTF-8
2,672
3.71875
4
[]
no_license
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema post_grad...
true
fab7acd42969b9f383a2c31089482483d3755dc0
SQL
Daniel-Droppa/employee-tracker
/employee_db.sql
UTF-8
2,606
4.40625
4
[]
no_license
-- DROP DATABASE IF EXISTS employeeTracker_DB; -- CREATE DATABASE employeeTracker_DB; -- USE employeeTracker_DB; DROP DATABASE IF EXISTS employee_db; CREATE DATABASE employee_db; USE employee_db; CREATE TABLE departments ( DeptID INTEGER, dep_name VARCHAR(30), PRIMARY KEY (DeptID) ); CREATE TABLE roles ( rolesId ...
true
9199265c742d789050b54c3ddb9477b9354add71
SQL
caio-cunha/hiring
/Caio/cliente_xl.sql
UTF-8
1,404
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 10-Jun-2020 às 15:23 -- Versão do servidor: 10.1.38-MariaDB -- versão do PHP: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
aaddd35cd36081986e65c35c70a28b0590fd541d
SQL
ptomulik/veetou
/share/oracle/packages/veetou/tables/ko/ko_missing_protos_j.ddl
UTF-8
1,274
3.15625
3
[]
no_license
CREATE TABLE v2u_ko_missing_protos_j OF V2u_Ko_Missing_Proto_J_t ( -- PK CONSTRAINT v2u_ko_missing_protos_j_pk PRIMARY KEY ( student_id , subject_id , specialty_id , semester_id , classes_ty...
true
6ff67a8e1c65e6dbc3a8bdc9b8d3d0050882d735
SQL
wbband/OA
/SMT.Workflow/SourceCode/SMT.SaaS.FlowSystem/WFTools/DB/Tracking/MySql/StoredProcedures/InsertTrackingDataItem.sql
UTF-8
1,083
3.390625
3
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS InsertTrackingDataItem $$ /* * Insert a single tracking data item */ CREATE PROCEDURE InsertTrackingDataItem ( IN p_WORKFLOW_INSTANCE_ID BIGINT UNSIGNED ,IN p_EVENT_ID BIGINT UNSIGNED ,IN p_EVENT_TYPE CHAR(1) ,IN p_FIELD_NAME VARCHAR(256) ,IN p_TYPE_FULL_NAME V...
true
ac4911c7749c5e2bbabd729f68ad40aac952e166
SQL
Roozbeh-Bazargani/Database-HW
/HW2/main.sql
UTF-8
4,367
4.40625
4
[]
no_license
CREATE TABLE Actor ( actor_id INT, first_name VARCHAR(255), last_name VARCHAR(255), country VARCHAR(255), age INT, gender ENUM('female', 'male', 'other') NOT NULL, PRIMARY KEY (actor_id) ); CREATE TABLE Movie ( movie_id INT, title VARCHAR(255), genre VARCHAR(2...
true
d91b58cf2a49496a0396db31e5ab451bf893a5ee
SQL
leezzx/MySQL-Practice
/3.sql
UTF-8
4,141
4.34375
4
[]
no_license
CREATE TABLE city2 SELECT * FROM city; # city 테이블과 똑같은 city2 테이블 생성 SELECT * FROM city2; CREATE DATABASE suan; # 새로운 데이터 베이스를 생성, USE문으로 새 데이터베이스 사용 USE suan; # 우클릭 REFRESH ALL을 통해 새로고침 가능 SELECT * FROM test; # Table 우클릭 CREATE TABLE을 통해 테이블 생성 가능, 데이터 타입 : https://dev.mysql.com/doc/refman/8.0/en/data-types.html CR...
true
de00661b5076c8288241f33e6e78e79cc38ee63d
SQL
radigost/managers2
/migrations/20170423001.sql
UTF-8
1,000
3.625
4
[]
no_license
-- UPDATE managers_node mn set category= -- case when category ='npc' THEN 'player' -- when category ='player' then 'npc' -- end; -- alter table managers_node add COLUMN text TEXT default ''; UPDATE managers_node mn set text = ( SELECT DISTINCT text from managers_node_choice mnc where mnc.to_node_id=mn.id ); alte...
true
46dd896826fd6b0436ea62300792933c56d03e49
SQL
ivangp61/MMM_CVS
/Database/CVS/SQL Server Scripts1/UAT.sql
UTF-8
8,757
3.234375
3
[]
no_license
SELECT MAX(MC.JobLoadDate) FROM EnterpriseHub.dbo.MemberCompany MC WHERE MC.JobLoadDate = with CVSCAG as ( SELECT [BenefitPkgXRefId] ,[Carrier] ,[Account] ,[GroupNumber] ,[GroupName] ,[Bin] ,[RxPCN] ,[RxGroup] ...
true
bff01138a4200a35a56c4b318d0cabcaf141919c
SQL
whlee21/aumc-daily
/init_load/sprint_2/itf_cost_o_1.sql
UTF-8
5,059
3.34375
3
[]
no_license
/***************************************************** 프로그램명 : ITF_COST_O_1.SQL 작성자 : Won Jong Bok 수정자 : 최초 작성일 : 2020-12-03 수정일 : 소스 테이블(기본) : 소스 테이블(참조) : 프로그램 설명 : 외래 COST 정보 선적재 1 cnt: time: *****************************************************/ DROP TABLE IF EXISTS ITFCDMPV532_daily.ITF_COS...
true
4b74706d75404542b3d0a710fe5a3ec88c1426fd
SQL
nguyensjsu/su18-202-got
/renato/database_script.sql
UTF-8
1,805
3.359375
3
[]
no_license
-- --- -- Globals -- --- -- SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- SET FOREIGN_KEY_CHECKS=0; -- --- -- Table 'users' -- -- --- DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` INTEGER NULL AUTO_INCREMENT DEFAULT NULL, `name` VARCHAR(300) NULL DEFAULT NULL, `email` VARCHAR(100) NULL DEFAULT NULL, ...
true
11cd8c9c9d390793d386382cccd531c648cc7909
SQL
sofiaromorales/db-delivery
/simulaciones/secundarias/3_asignacion_usuarios.sql
UTF-8
3,628
4
4
[]
no_license
---SIMULACION ASIGNACION DE USUARIOS CREATE OR REPLACE PROCEDURE asignacion_usuarios( today DATE ) IS id_usuario INTEGER; id_proveedor INTEGER; flag_registro INTEGER; usuario_nombre VARCHAR(30); usuario_apellido VARCHAR(30); nombre_proveedor VARCHAR(30); BEGIN DBMS_OUTPUT.PUT_LINE('3. ------SIMULACIÓN ASIGNACIÓN ...
true
39ee676b465f84f39d4c41e98364dd0eb9e079d9
SQL
gabrielareisg/replicado
/resources/queries/Graduacao.obterIntercambioPorCodpes.sql
UTF-8
365
2.9375
3
[]
no_license
SELECT O.nomorgpnt, P.nompas, I.dtainiitb, I.dtafimitb from INTERCAMBIOUSPORGAO I INNER JOIN LOCALIZAPESSOA L ON I.codpes = L.codpes INNER JOIN ORGAOPRETENDENTE O ON I.codorg = O.codorg INNER JOIN PAIS P ON O.codpas = P.codpas WHERE L.tipvin = 'ALUNOGR' AND I.dtafimitb > GETDATE() AND L.codundclg IN (__codundcl...
true
04a3ecde5f6de7c931f1ff5fb7d2eda2091f8717
SQL
polyglotm/coding-dojo
/coding-challange/codewars/7kyu/2020-09-10~2020-10-06/easy-sql-ascii-converter/easy-sql-ascii-converter.sql
UTF-8
257
2.734375
3
[]
no_license
-- easy-sql-ascii-converter -- Easy SQL: ASCII Converter -- difficulty: 7kyu -- https://www.codewars.com/kata/594804a218e96caa8d00051b/ SELECT id, ascii(left(name, 1)) AS name, birthday, ascii(left(race, 1)) AS race FROM demographics;
true
1207c0493f0fe80a9741ad75c8bbb05f13a364bb
SQL
afubuntu/PersonalProjects
/ctennisdb/tables/data/non_dependent/data_ctennistournaments.sql
UTF-8
3,322
3.78125
4
[]
no_license
DO $do$ declare __table_name character varying(100); __rows_count numeric; begin __table_name := 'ctennistournaments'; if exists (select 1 from information_schema.tables where table_schema='public' and table_name=__table_name and table_type='BASE TABLE') then insert into ctennistournaments ...
true
99e0491c3d3320735b38c6632750f003143c9052
SQL
Wardenclock1759/kursovaya
/migrations/20200912004236_project.up.sql
UTF-8
215
2.640625
3
[]
no_license
CREATE TABLE "project" ( api_key varchar NOT NULL, project_id bigserial NOT NULL, created_at time NOT NULL, updated_at time, is_active boolean, primary key (api_key, project_id, is_active) );
true
b90cbe09ebfd8b1adcc3a543b5906612865b6632
SQL
diegopajarito/CyclingPathAnalysis
/sql/frictions_description.sql
UTF-8
6,113
4.21875
4
[]
no_license
-- Data Management for describing frictions -- We start from the dissolved grid spots with proportion of -- walking / cycling segments between 50% and 150% ---------------------------------------------------------- --- Second Attempt ---------------------------------------------------------- -- Spatial aggregation...
true
fefcce739f72785db364ea7411ce4f653d6d000f
SQL
hugo098/Curso-PL-SQL
/triggerCompound.sql
UTF-8
838
2.96875
3
[]
no_license
CREATE OR REPLACE TRIGGER trigger1 FOR DELETE OR INSERT OR UPDATE ON regions COMPOUND TRIGGER BEFORE STATEMENT IS BEGIN INSERT INTO log_table VALUES ( 'BEFORE STATEMENT', user ); END BEFORE STATEMENT; AFTER STATEMENT IS BEGIN INSERT INTO log_table VALUES ( ...
true
e67874b574e9b482052dfd600ac7747c93428956
SQL
eragonwien/TTWeb
/TTWebMVC/SQL/04-view-v_appuser.sql
UTF-8
477
3.1875
3
[ "MIT" ]
permissive
CREATE OR REPLACE VIEW v_appuser AS SELECT appuser.id AS appuser_id, appuser.email AS email, appuser.title AS title, appuser.firstname AS firstname, appuser.lastname AS lastname, appuser.disabled AS disabled, appuser.active AS active, role.id AS role_...
true
83d9531c23c8949f56be51f2f1fd957e47b9e46e
SQL
Juanddiazm/proyectoBasesDeDatos
/Script Nivel 3/pkRegistroNivel3.sql
UTF-8
1,401
2.953125
3
[]
no_license
CREATE OR REPLACE PACKAGE pkClienteNivel3 IS FUNCTION pRegistrarCliente(ivCedula VARCHAR2, ivNombre VARCHAR2, ivFechaNacimiento VARCHAR2, ivDireccion VARCHAR, ivTelefono VARCHAR2)RETURN VARCHAR2; FUNCTION pRegistrarAnomalia(ivNombre IN VARCHAR2, ivId IN VARCHAR2) RETURN VARCHAR2; FUNCTION pRegistrarProducto(ivIdProduc...
true
8465026771fc27d63dc4709a5c4a11ef9ea1977f
SQL
longniao/torstack
/examples/example.sql
UTF-8
832
3.015625
3
[ "MIT" ]
permissive
CREATE database test; GRANT ALL privileges ON test.* to test@'127.0.0.1' identified by 'test'; use test; CREATE TABLE `user_account` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(30) NOT NULL DEFAULT '', `nickname` char(36) NOT NULL DEFAULT '', `password` char(64) NOT NULL DEFAULT '', ...
true
eb413e62ccb0feed03472382485cf93ce8ed1d08
SQL
muddasani/poliana_schema
/prod/entities_external.sql
UTF-8
3,651
2.890625
3
[]
no_license
CREATE DATABASE entities_external; CREATE EXTERNAL TABLE IF NOT EXISTS entities_external.candidate_ids( recipient_ext_id STRING, crp_name STRING, party STRING, dist_id_run_for STRING, fec_cand_id STRING ) ROW FORMAT SERDE 'com.bizo.hive.serde.csv.CSVSerde' LOCATION 's3n://poliana.prod/entities/can...
true
635c03c2d1b5f73e243e5c7d792c8682aee5405f
SQL
j7ng/CLFY_SA
/SA/Tables/X_BI_SCENARIOS.sql
UTF-8
809
3.25
3
[]
no_license
CREATE TABLE sa.x_bi_scenarios ( objid NUMBER(22) NOT NULL, x_service_plan_type VARCHAR2(50 BYTE), insert_timestamp DATE DEFAULT SYSDATE NOT NULL, update_timestamp DATE DEFAULT SYSDATE NOT NULL, CONSTRAINT tf_x_bi_scenarios_pk PRIMARY KEY (objid) ); COMMENT ON TABLE sa.x_bi_scenarios IS 'Source for the...
true
cc9b45056ae94f65f871c1d24ec3f8992b52e649
SQL
aldianfebriyanto/project_magang
/schedule/database_crud.sql
UTF-8
6,457
2.75
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 29, 2018 at 06:28 AM -- Server version: 10.1.26-MariaDB -- 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...
true
b2d95730a0cf12ebad7e276781df8d55e5dd405a
SQL
charlotte-schroder/advanced-postgres
/src/locks_advanced/ex1_monitoring_locks.1.sql
UTF-8
738
3.390625
3
[]
no_license
/* ----------------------------------------------------------------------------- | | * Uncomment the line with SELECT pg_sleep(1), and save this file so the | queries are run. Look at the output from this transaction. | | You should see a table displaying data about current locks. | | * Follow the instr...
true
4256435c2bef1793f6a61baa087935d49d969534
SQL
dickanirwansyah/java-springboot-integrated-javascript
/spring-postgresql/src/main/resources/sql/schema.sql
UTF-8
709
3.453125
3
[]
no_license
create table category( id varchar(255) not null unique, name varchar(255) not null, disabled boolean not null, constraint pk_category_id PRIMARY KEY (id) ); create table book( idbuku varchar(255) not null unique, title varchar(255) not null, author varchar(255) not null, quantity int n...
true
630b942617799f0d23e2a7245567def60fe92716
SQL
ITSaninho/Casa
/db.sql
UTF-8
8,359
3.078125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 07, 2018 at 10:50 AM -- Server version: 5.7.11-0ubuntu6 -- PHP Version: 7.0.4-7ubuntu2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
8e0e8d1a46b7c56c354b331d1433ea4c9fef2aad
SQL
sharonshlee/LightBnB
/seeds/01_seeds.sql
UTF-8
1,435
2.796875
3
[]
no_license
-- password: $2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBIDRh70tGevYzYzQgFId2u. INSERT INTO users (name, email, password) VALUES ('lorem', 'lorem@gmail.com', '$2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBIDRh70tGevYzYzQgFId2u.'), ('ipsum', 'ipsum@gmail.com', '$2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBIDRh70tGevYzYzQgFId2u.'), ...
true
463320c7b115866c626eb1d1aa9dca7ae815e328
SQL
ben5962/modelisation_planning
/sqlite_crude/respect_vie_privee_we/export.sqlite3.essai_respect_vie_privee.schema.sql
UTF-8
6,166
3.90625
4
[]
no_license
begin transaction; drop table if exists periodes_travaillees; CREATE TABLE periodes_travaillees ( debut_periode timestamp, fin_periode timestamp CHECK(fin_periode > debut_periode), jour_travaille DATE, CONSTRAINT periode_unique UNIQUE(debut_periode, fin_periode, jour_travaille) ); -- ajout des deux bo...
true
4c6e3d8866d4001c9456d671acf37d935812fd2e
SQL
joshforester/rdboard
/src/sql/init/COURSE.sql
UTF-8
1,375
3.109375
3
[ "MIT" ]
permissive
SET FOREIGN_KEY_CHECKS=0; CREATE TABLE `leaderboard`.`COURSE` ( `id` INTEGER UNSIGNED NOT NULL, `event_id` INTEGER UNSIGNED NOT NULL, `name` VARCHAR(64) NOT NULL DEFAULT 'default', `type` ENUM('default','rogaine','weightedrogaine','modifiedrogaine','pointtopoint','stage') NOT NULL DEFAULT 'default', `length...
true
6fdaa32ab69b06077bfd6ecfa556e3922af6383f
SQL
lukaszgryglicki/old_c
/DBklasa/Morgoth.SQL
UTF-8
4,979
3.15625
3
[ "Apache-2.0" ]
permissive
-- -- PostgreSQL database dump -- SET SESSION AUTHORIZATION 'morgoth'; -- -- TOC entry 3 (OID 2200) -- Name: public; Type: ACL; Schema: -; Owner: morgoth -- REVOKE ALL ON SCHEMA public FROM PUBLIC; GRANT ALL ON SCHEMA public TO PUBLIC; SET search_path = public, pg_catalog; -- -- TOC entry 4 (OID 17492) -- Name: k...
true
fc280f7a814964832161b2c3c67d8a70217ab2d6
SQL
diolektor/torrentpier
/install/sql/ocelot.sql
UTF-8
2,134
2.9375
3
[ "MIT" ]
permissive
SET SQL_MODE = ""; -- ---------------------------- -- Table structure for `bb_bt_tracker` -- ---------------------------- DROP TABLE IF EXISTS `bb_bt_tracker`; CREATE TABLE IF NOT EXISTS `bb_bt_tracker` ( `peer_hash` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', `topic_id` mediumint(8) unsig...
true
e25235f7398400d21710238a20f012394de12d01
SQL
MohamedMedina/SamDb
/com.idemia.sam.be.DB_Management/StoredProcedures/InsertWorkField.Sql
UTF-8
926
2.875
3
[]
no_license
-------------------------------------------------------------------------------------------------------------------- -- Created By : -- Created Date : 2019/11/19 04:32:47 م --------------------Change History---------------------------------------------------------------------------------- -- Change No Date Tim...
true
110287f762f116a881e5c6ff8f19a8daec8768d3
SQL
ria55/JavaWithDB
/src/main/resources/dragonDB_script.sql
UTF-8
885
3.84375
4
[]
no_license
DROP DATABASE IF EXISTS dragonDB; CREATE DATABASE /* IF NOT EXISTS */ dragonDB; USE dragonDB; /* DROP TABLE IF EXISTS dragon */ CREATE TABLE /* IF NOT EXISTS */ dragon ( id INT UNSIGNED AUTO_INCREMENT, unique_name VARCHAR(100) UNIQUE, dragon_text LONGTEXT, rarity ENUM('common','rare','very rare','ep...
true
258214953d1f21dd2a32fea6e63960bc72cb5349
SQL
cfdxkk/tryShoppingSystem_JAVA_JDBC
/ShoppingSystem_JDBC_Java/createDatabase.sql
UTF-8
4,694
3.328125
3
[ "CC0-1.0" ]
permissive
CREATE DATABASE test3; USE test3; /* Navicat MySQL Data Transfer Source Server : localhost-root Source Server Type : MySQL Source Server Version : 50729 Source Host : localhost:3306 Source Schema : purchase Target Server Type : MySQL Target Server Version : 5072...
true
f615de430bbe1aaaa256668b0f8c02faa1eb1490
SQL
Ensembl/ensembl-variation
/sql/patch_67_68_c.sql
UTF-8
5,383
3.046875
3
[ "Apache-2.0" ]
permissive
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- Copyright [2016-2023] EMBL-European Bioinformatics Institute -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may ob...
true
980f1e65fc54fca847d3b3f399bc8790ea572591
SQL
XClouded/avp
/agp-core/src/main/resources/sql/reports/significantactionsreport.sql
UTF-8
1,822
3.796875
4
[]
no_license
SELECT SAD.ACTIONTIMESTAMP AT LOCAL AS SAD_ACTIONTIMESTAMP , OP.USERNAME AS OP_USERNAME , OP.FIRSTNAME AS OP_FIRSTNAME , OP.LASTNAME AS OP_LASTNAME , SAD.ACTIONCODE AS SAD_ACTIONCODE , SAD.ACTIONTYPE AS SAD_ACTIONTYPE , E.SPORTCODE AS E_SPORTCODE , E.ID AS E_ID , E.DESCRIPTION AS E_DESCRIPTIO...
true
4bf0c029794881fc50aebbf841d6999bba2e0604
SQL
FirebirdSQL/x-cvs-vulcanj
/VulcanJ/ddl/nist/flg006.sql
UTF-8
1,029
3.28125
3
[]
no_license
SET NAMES ASCII; CREATE DATABASE 'test.fdb' DEFAULT CHARACTER SET ISO8859_1; -- TEST:0299 FIPS Flagger - identifier length > 18! -- NOTE: OPTIONAL FIPS Flagger test -- FIPS Flagger Test. Support for this feature is not required. -- If supported, this feature must be flagged as an extension to the -- standard. -- NOTE...
true
cd81c501eed53c65cf8a06636aaa544d959694f3
SQL
Naoufal1221/Habilitations
/src/main/resources/static/portail_base/portail_societe_utilisateur.sql
UTF-8
2,802
3.203125
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.16, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: portail_societe -- ------------------------------------------------------ -- Server version 5.7.24 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS...
true
65ccd609bd152780561e0272f87f4ee132dd9883
SQL
whawkins4/arborlibrary
/db/circ/repeatableScripts/newBooks.sql
UTF-8
4,348
3.78125
4
[]
no_license
-- Table: books DROP TABLE book_import; CREATE TABLE book_import ( timestamp character varying , accession character varying , dewey character varying , cutter character varying , copy character varying , last character varying , first character varying , middle character varying , title character varying , subtitl...
true
1b135c38e82f6552e33b2d3daa09656b5653461e
SQL
Boomoon/Project
/Housing.sql
UTF-8
4,782
4.40625
4
[]
no_license
--------------------- CLEANING DATA USING SQL --------------------- -- Check whether there are missing values for propertyAddress or not SELECT * from demo.dbo.home WHERE propertyAddress is null; -- One ParcelID can have multiple uniqueIDs, so the propertyAddress should not be null -- We should consider two columns...
true
534533825249c4cde9d837a216ff7b14cf3724ae
SQL
bmatney/to-do-list
/database.sql
UTF-8
380
2.984375
3
[]
no_license
CREATE TABLE tasks( id SERIAL PRIMARY KEY, title VARCHAR(80) NOT NULL, task_content VARCHAR(80) NOT NULL ); INSERT INTO tasks (title, task_content) VALUES ('Weekend Challenge', 'Complete the weekend challenge to make a to-do list'), ('Sleep', 'Try to get 8 hours of sleep'), ('Read Book', 'Finally get around to reading...
true
064b76492f342dbf189dfedef1922805bdae28c6
SQL
abealsileshi/MySQL
/HW3/HW3.sql
UTF-8
7,931
4.59375
5
[]
no_license
use classicmodels; #1) List in alphabetical order without duplicates the names of the cities in Spain where ClassicModels has customers. (3) select distinct(city) from Customers where country in ('Spain') Order by city asc; #2) List the employee id, last name, first name of each employee who works in Pa...
true
503914631c5819ef97505b4b2102cbcadd393e45
SQL
ev-stepanov/spring-boot
/src/main/resources/data.sql
UTF-8
3,179
2.984375
3
[]
no_license
-- Справочник №1 INSERT INTO Doc_type (id, version, doc_code, doc_name) VALUES (1, 0, 433, 'Passport'); INSERT INTO Doc_type (id, version, doc_code, doc_name) VALUES (2, 0, 24, 'Military ID'); -- Справочник №2 INSERT INTO Country (id, version, citizenship_code, citizenship_name) VALUES (1, 0, 64, 'USA'); INSERT INTO C...
true
336ff0d5fb7fb5e0de3b38472b5cd401a0717763
SQL
medy13/dbshell
/normal_shell/RED_LIST.sql
UTF-8
1,087
2.75
3
[]
no_license
\echo ------------------RED_LIST---------------- select now(); \timing insert into RED_LIST_GPTMP (CMD_TYPE,CUT_ID, MODIFY_TIMES, G_NO) select CMD_TYPE,CUT_ID, MODIFY_TIMES, G_NO from RED_LIST_INC_EXT; delete from RED_LIST using RED_LIST_GPTMP where RED_LIST_GPTMP.CUT_ID=RED_LIST.CUT_ID AND RED_LIST_GPTMP.MODIFY_TIMES...
true
420ec6954f191d58e0871f934bec40f781dc8fe8
SQL
Symplicity/subdivision-list
/data/en/postgres/subdivisions_SS.postgres.sql
UTF-8
1,127
2.6875
3
[ "MIT" ]
permissive
CREATE TABLE subdivision_SS (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_SS" ("id", "name", "level") VALUES (E'SS-EC', E'Central Equatoria', E'states'); INSERT INTO "subdivision_SS" ("id", "name", "level") VALUES (E'SS-EE', E'Eastern Equatoria', E's...
true
a25f8fb0645d88342f079255c57059c670404a93
SQL
diazadha/Basis-Data-Lanjut
/mstore/marketplace (1).sql
UTF-8
21,821
2.984375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 02 Apr 2020 pada 13.12 -- Versi server: 10.4.8-MariaDB -- Versi PHP: 7.1.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
fce060cc56097ef0b605b63c9675912a41aa2b02
SQL
akellan/thaitrip-gatsby
/wp-data/sql/terms.sql
UTF-8
190
3.046875
3
[ "MIT" ]
permissive
SELECT * FROM wp_term_relationships tr INNER JOIN wp_term_taxonomy tt ON tr.term_taxonomy_id = tt.term_taxonomy_id INNER JOIN wp_terms t ON t.term_id = tt.term_id where taxonomy = 'post_tag'
true
7bd70d7a41cf6f215e5d18f4a8d192d56f5e9065
SQL
cbeard22/trackMyEmployee
/schema.sql
UTF-8
1,296
3.875
4
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS employee_trackerDB; CREATE DATABASE employee_trackerDB; USE employee_trackerDB; CREATE TABLE department ( id INT AUTO_INCREMENT NOT NULL, name VARCHAR(30), PRIMARY KEY (id) ); CREATE TABLE role ( id INT AUTO_INCREMENT NOT NULL , title VARCHAR(30), salary DECIMAL(1...
true
17742aa3d8426c5b4470258dc26553762acfbc04
SQL
ViKtorMacias/ScriptsToolServer
/ParametrosSP.sql
UTF-8
520
3.609375
4
[]
no_license
SELECT SCHEMA_NAME(SCHEMA_ID) AS [Schema], SO.name AS [ObjectName], SO.Type_Desc AS [ObjectType (UDF/SP)], P.parameter_id AS [ParameterID], P.name AS [ParameterName], TYPE_NAME(P.user_type_id) AS [ParameterDataType], P.max_length AS [ParameterMaxBytes], P.is_output AS [IsOutPutParameter] FROM sys.objects AS SO INNER ...
true
86bc851f68729a07f0b613e06c38af0c711e13bb
SQL
diegocarreto/SICAP
/DataBase/StoreProcedure/CatalogList.sql
UTF-8
154
3
3
[]
no_license
CREATE PROC CatalogList @type VARCHAR(50) AS SELECT id, name FROM [catalog] WHERE deleted = 0 AND [type] = @type ORDER BY name ASC
true
680a3a6fccd2727348956d2280b46c6845dc281e
SQL
opengauss-mirror/openGauss-server
/src/test/regress/sql/postgis_function_3.sql
UTF-8
31,875
3.125
3
[ "LicenseRef-scancode-mulanpsl-2.0-en", "LicenseRef-scancode-unknown-license-reference", "PostgreSQL", "BSD-3-Clause", "LGPL-2.0-or-later", "LicenseRef-scancode-unicode", "LicenseRef-scancode-warranty-disclaimer", "curl", "GPL-1.0-or-later", "LGPL-2.1-or-later", "LGPL-2.1-only", "CC-BY-4.0", ...
permissive
set current_schema=postgis; SELECT ST_GeometryType(geomA) As geomtype, ST_Contains(geomA,geomA) AS acontainsa, ST_ContainsProperly(geomA, geomA) AS acontainspropa, ST_Contains(geomA, ST_Boundary(geomA)) As acontainsba, ST_ContainsProperly(geomA, ST_Boundary(geomA)) As acontainspropba FROM (VALUES ( ST_Buffer(ST_Point...
true
9b3a6b4816d3f29b3ef85c95eb9e0e75293c68b4
SQL
robertogs2/bases
/Project2/DB_Scripts/6-Security/SecurityTestUser1.sql
UTF-8
1,211
3.125
3
[]
no_license
-- User1 permissions were set for BASESTECBAK data base USE BASESTECBAK; -- ____________________________ --_____________/Allowed operations for User1\___________ -- Recover data queries SELECT * FROM Employee; SELECT * FROM City; SELECT * FROM Community; -- Store data queries INSERT INTO Characteristic ("Name...
true
b250fb1323e0cc11cd8ac2dbccc3f0c3875d47b1
SQL
ituk-ttu/esport-2019-spring-web
/db/src/main/resources/db/migration/V1.1555513347__add_owner_as_member.sql
UTF-8
119
2.921875
3
[ "MIT" ]
permissive
INSERT INTO TICKET_MEMBERS (ticketId, email) SELECT T.id, U.email FROM TICKETS T LEFT JOIN USERS U on T.ownerId = U.id;
true