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
45db9c81feecbd218cc8f64a9758f2130c51f054
SQL
anandeka/my-project
/DBScripts/ObjectsScripts/v_bi_mb_recent5_by_feed.sql
UTF-8
5,473
3.40625
3
[]
no_license
create or replace view v_bi_mb_recent5_by_feed as select tt.corporate_id, tt.product_id, tt.product_name, tt.reference_no, tt.activity, tt.cp_id, tt.cpname cp_name,--Bug 63266 Fix added alias name tt.quantity, tt.base_qty_unit_id, tt.base_qty_unit...
true
c812a5b8455c2d116b009ec30facdc2d6efa1f6a
SQL
menghl123/tmac-backend
/src/main/resources/db/migration/V6__article_20180106.sql
UTF-8
891
2.96875
3
[ "Apache-2.0" ]
permissive
CREATE TABLE `article` ( `id` varchar(255) NOT NULL, `title` varchar(255) NOT NULL, `text` longtext NOT NULL, `nature` varchar(255) NOT NULL COMMENT '原创 | 转载 | 翻译', `labels` varchar(255) DEFAULT NULL, `is_private` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否公开', `type` varchar(255) NOT NULL, `is_anonymou...
true
00e5ab63aa1492ee60f0ebcc89e6996f1685155e
SQL
gyoho/DataMining-StackOverflow
/src/HiveSQL/postLinkStats.sql
UTF-8
1,412
3.953125
4
[]
no_license
CREATE TABLE `cmpe239`.`postLink` ( `postId` INT NOT NULL, `relatedPostId` INT NOT NULL, `linkTypeId` INT NOT NULL); LOAD DATA INFILE '/Users/gyoho/Class/Data Mining/Project/Dataset-AskUbuntu/data/postLinks_data.txt' INTO TABLE postLink FIELDS TERMINATED BY '\t' ENCLOSED BY '"' LINES TERMINATED BY '\n' IGNOR...
true
07462a532eeeb0ef47816c44d2acb5f1d009cb30
SQL
nursyahiramusa/omcatalog7
/omcatalog3.sql
UTF-8
17,843
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 09, 2018 at 03:51 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
b29c6df36200636add634ec022ece5466b93a085
SQL
thorwbm/lixiera_sql
/organizar/exams/bloquear_escolas.sql
ISO-8859-1
4,578
3.65625
4
[]
no_license
select * from hierarchy_hierarchy where value = 'ef1d8f0759bfae1c94f1dd51bee311de' drop table #tmp_excluir select application_application_id as application_id into #tmp_excluir -- select distinct grade_nome -- select distinct prova_nome, escola_nome, exame_nome, grade_nome from VW_AGENDAMENTO_PROVA_ALUNO where ...
true
cc93c9054233bc0012b944d7f59fcfedcb4ca61f
SQL
victor-felipe-code/projetos_trybe
/vocabulary-booster/desafio15.sql
UTF-8
255
3.65625
4
[]
no_license
DELIMITER $$ CREATE PROCEDURE buscar_media_por_cargo(IN name_job VARCHAR(50)) BEGIN SELECT ROUND(AVG(E.SALARY), 2) AS "Média salarial" FROM hr.employees AS E INNER JOIN hr.jobs AS J ON E.JOB_ID = J.JOB_ID WHERE J.JOB_TITLE = name_job; END $$ DELIMITER ;
true
16babe024ff61d2a23b2b38d43945dc0e3c79226
SQL
KeeYoungYoon/svc-project
/src/main/resources/schema.sql
UTF-8
378
2.59375
3
[]
no_license
create table svc_table( id INT NOT NULL, title VARCHAR(50), due_date DATE, submission_date DATE, num_fund INT, cur_fund INT, goal_fund INT, likes INT NOT NULL, account_src VARCHAR(10), account_num VARCHAR(50), content VARCHAR(255) ); create table svc_comments( seq INT auto_increment , id INT NOT NULL, nic...
true
539ba0cc4b5c0c2851dc1d712b94a4d18b694036
SQL
alvinchen1988/sql-queries
/sql_queries.sql
UTF-8
1,552
4.125
4
[]
no_license
ex1 SELECT isbn FROM editions JOIN publishers ON editions.publisher_id = publishers.id WHERE publishers.name = 'Random House'; ex2 SELECT editions.isbn, books.title FROM editions JOIN publishers ON editions.publisher_id = publishers.id JOIN books ON books.id = editions.book_id WHERE publishers.name = 'Random Hous...
true
869706c1ad1c00f1cf8e4eb41d283255cf566cbb
SQL
aditiapratama1231/graphql-example
/migration/20210617183830_brand_table.up.sql
UTF-8
343
2.671875
3
[]
no_license
CREATE TABLE brands ( id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, name VARCHAR(30) NOT NULL, created_at timestamp NOT NULL DEFAULT (now()), updated_at timestamp NOT NULL DEFAULT (now()) ); INSERT INTO `brands` (`id`, `name`, `created_at`, `updated_at`) VALUES ('1', 'Logitech', '2021-06-16 16:05:48',...
true
90396918fc69eb96b2c4a7acd445675995d7ea77
SQL
ETD-988-MD/CCP
/sql/hadoop_samples.sql
UTF-8
3,973
3.328125
3
[]
no_license
-- hadoop samples :: all samples are of length 100. This is just a taste of what is available on the hadoop server. --- cash transfers SELECT * FROM hadoop.samples.eventLogs_account__GiveCash SELECT * FROM hadoop.samples.eventLogs_account__MoveCash -- ship insurance SELECT * FROM hadoop.samples.eventLogs_account...
true
37fce2684ebac1749ae7060179bfa88e0ed05ea9
SQL
NicolayD/sql-zoo
/select_from_nobel.sql
UTF-8
2,627
4.75
5
[]
no_license
-- We continue practicing simple SQL queries on a single table. -- This tutorial is concerned with a table of Nobel prize winners: -- nobel(yr, subject, winner) -- Using the SELECT statement. -- Change the query shown so that it displays Nobel prizes for 1950. SELECT yr, subject, winner FROM nobel WHERE yr = 1960; ...
true
04148887503ab7fcd0cd9df795aa80f955a666f0
SQL
manojkrajasekar/Pixels
/Database/POST.sql
UTF-8
1,633
4.21875
4
[]
no_license
DROP PROCEDURE IF EXISTS ADD_POST; /* This stored procedure is executed, when a photo is posted and the details are stored in the database */ DELIMITER // CREATE PROCEDURE ADD_POST ( IN _USER_ID INTEGER, IN _TOPIC_ID INTEGER, IN _URL VARCHAR(254), IN _DESCRIPTION VARCHAR(100), IN _NEXT_TOPIC VARCHAR(100), OUT _PO...
true
e0b24cda8aae7859c837c3bfc3efc196e5fcd90e
SQL
HoangNhatVo/EDnews_-n-web
/Database/Structure table.sql
UTF-8
6,268
3.40625
3
[]
no_license
CREATE database BaoDienTu3N; use BaoDienTu3N; create table PhanHeNguoiDung ( IDPhanHe varchar(10) not null primary key, TenPhanHe varchar(50) not null ); create table TaiKhoanThe ( SKT varchar(15) not null primary key, ChuSoHuu int, SoDu FLOAT ); create table NguoiDung ( ID INT not null primary KEY auto_increment...
true
3ffc617290ab3c4397e7089e1978eed1a62c0a7c
SQL
shirachanat/WinForm-Project
/Information.NewPerson.sql
UTF-8
403
2.671875
3
[]
no_license
 CREATE PROCEDURE [Information].[NewPerson] @PersonId NVARCHAR (9), @PersonName NVARCHAR (50), @Email NVARCHAR (50), @BirthDate date, @Gender NVARCHAR (10), @PhoneNumber NVARCHAR (10) AS BEGIN INSERT INTO [Information].[PersonDetails] (PersonId, PersonName, Email, BirthDate, Gender, PhoneNumber) ...
true
913a101bbffc9b2532a5a04cecac8939c128485c
SQL
Khalida2003/ProjetPHP
/data base/lyk.sql
UTF-8
11,040
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 08, 2021 at 11:32 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
c00579b9d615d15739e81ddd7ccae8f229b9bf2e
SQL
jsiny/180_database_foundations
/ex/5_medium_1/6.sql
UTF-8
162
3.640625
4
[]
no_license
SELECT description, count(customer_id) FROM services JOIN customers_services ON service_id = services.id GROUP BY description HAVING count(customer_id) >= 3;
true
ccce3fff4fc50a4d0e583418fa508da27bf23aa6
SQL
hejiujun/hld
/sql/hld_course.sql
UTF-8
22,512
3.484375
3
[]
no_license
create database /*!32312 IF NOT EXISTS */ hld /*!40100 character set utf8 collate utf8_general_ci*/; use hld drop table if exists v_user; create table v_user ( id bigint(20) not null auto_increment comment '主键', avatar varchar(100) default null comment '头像', account varchar(45) not null ...
true
39f4de59041bd917a806274d54cd022850243d3a
SQL
MCZbase/DDL
/TRIGGER/TD_COLLECTION.sql
UTF-8
753
3.59375
4
[ "Apache-2.0" ]
permissive
CREATE OR REPLACE TRIGGER "TD_COLLECTION" after DELETE on Collection for each row -- ERwin Builtin Wed May 05 11:26:47 2004 -- DELETE trigger on Collection declare numrows INTEGER; begin /* ERwin Builtin Wed May 05 11:26:47 2004 */ /* Collection R/133 Cataloged_Item ON PARENT DELETE RESTRICT */ select co...
true
b115dc503b5f0b003079683ca83aa5e06b0c52a4
SQL
juju669/track
/db/schema.sql
UTF-8
1,066
3.953125
4
[]
no_license
DROP TABLE IF EXISTS department; DROP TABLE IF EXISTS employee; DROP TABLE IF EXISTS role; -- create department table CREATE TABLE department( -- make data fields id INTEGER(11) AUTO_INCREMENT NOT NULL, name VARCHAR(30) NOT NULL, PRIMARY KEY (id) ); -- create role table CREATE TABLE role( -- make...
true
20e9924d0dd5b16a955308bf845808e1849b485d
SQL
deviantfero/popheca
/sqlscripts/tableInit.sql
UTF-8
5,092
3.328125
3
[]
no_license
Create table Usuario( idUsuario serial primary key, nomUsuario varchar(20) not null, apeUsuario varchar(20) not null, emailUsuario varchar(30) not null unique, passUsuario varchar (100) not null, cnxUsuario boolean not null, rol int not null ); create table Reserva( codReserva serial, fechaInicioR date not n...
true
96e9ee24399a8859134187e1024c0d58a55ddffa
SQL
AreebaKazmi/WebDevProject
/WebDevProject/WebDevProject.sql
UTF-8
2,897
2.71875
3
[]
no_license
Insert into dbo.Person (Name, [CNIC/B-Form], [Mobile Number], [Residence Telephone Number]) values ('Tasneem Adnan', 4102949204818, 03924234930,02134020102) Insert into dbo.Person (Name, [CNIC/B-Form], [Mobile Number], [Residence Telephone Number]) values ('Reeba Aslam', 4102949104218, 03014234950,02138021182) Insert...
true
a6430c661321b9e3c3bf127075eec6a432518eca
SQL
J0seCarl0s/Grupo7-GCM
/Desarrollo/SGR/Sprint 2/SGR-SBD/editar_entrada_almacen.sql
UTF-8
439
3.3125
3
[]
no_license
USE `restaurante`; DROP procedure IF EXISTS `editar_entrada_almacen`; DELIMITER $$ USE `restaurante`$$ CREATE PROCEDURE `editar_entrada_almacen`( IN `in_idhistorial_almacen` INT(11), IN `in_cantidad` DECIMAL(8,2) ) BEGIN SET AUTOCOMMIT = 0; START TRANSACTION; UPDATE historial_almacen SET cantida...
true
f205278cf7a560224655539834d05cb7332103b5
SQL
guillez/ramas
/sql/datos/juegos_de_datos/desarrollo/10_sistemas_externos.sql
UTF-8
1,076
2.53125
3
[]
no_license
INSERT INTO sge_unidad_gestion(unidad_gestion, nombre) VALUES ('1', 'UG Guarani'); INSERT INTO sge_encuestado (encuestado, apellidos, nombres, documento_tipo, documento_numero, email, usuario, clave, documento_pais, sexo, fecha_nacimiento, guest, externo ) VALUES (2, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, '...
true
9753b486311808f4f47a813a1199e86a7afa7cc2
SQL
sgadiyar06/MySQL
/practice2.sql
UTF-8
378
2.53125
3
[]
no_license
create table new( name VARCHAR(20), age INT); insert into new values( 'sudarshan',21), ('junior',10), ('abc',3), ('xyz',4), ('pqr',5); select * from new; insert into new values(null,null); select * from new; set sql_mode = ''; insert into new values('adfaifnoaidnfoadinfoadinfoiadnfoiadn',14); select * from new; ...
true
1e3cebcedfdc4e1ca184ae230ced712543f47acf
SQL
amit15110003/payearn
/contact.sql
UTF-8
1,592
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 26, 2018 at 06:49 PM -- Server version: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
39537df8f4fe8d0f657b8db320ed2e241a9ac8c0
SQL
ioaxaca93/spring-test
/ioaxaca/src/main/resources/data_base.sql
UTF-8
565
3.296875
3
[]
no_license
create database BABEL; USE BABEL; CREATE TABLE autor( id int NOT NULL AUTO_INCREMENT, nombre varchar(255) NOT NULL, apellidos varchar(255), primary key(id) ); CREATE TABLE libro( isbn varchar(13) not null primary key, titulo varchar(255), volumen int, autor_id int, foreign key(aut...
true
2be90938001d6a7569dcd746bf949e4b04459b12
SQL
mhetrerajat/ds-challenge
/leetcode/databases/dups_email.sql
UTF-8
163
3.25
3
[ "MIT" ]
permissive
# https://leetcode.com/problems/duplicate-emails/ select tmp.Email from (select count(*) as count, Email from Person group by Email) as tmp where tmp.count >= 2;
true
dc92bbab2d51ee8be45a0c76df691676d7815801
SQL
dahun428/school_Jdbc
/schoolDBfile/school_subjects.sql
UHC
3,704
3.5
4
[]
no_license
-------------------------------------------------------- -- - ȭ-5-05-2020 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Table SCHOOL_SUBJECTS -------------------------------------------------------- CREATE TABLE "HR"."SCHOOL_...
true
08e6283b49cbafda81d5aa741d2b08e561c3f606
SQL
MatyasNagy/NewTodoApp
/SQLQuery1.sql
UTF-8
313
3.125
3
[]
no_license
SELECT FeladatTable.FeladatCim,FeladatTable.FeladatLeiras,FeladatTable.FeladatDate, UserTable.UserName FROM FeladatTable INNER JOIN FeladatKiosztasTable ON FeladatTable.Id = FeladatKiosztasTable.FeladatId INNER JOIN UserTable ON FeladatKiosztasTable.UserId = UserTable.Id WHERE FeladatTable.FeladatCim='Mosas';
true
c985a3d40746468b500e8d2ae9414a52c7813dc4
SQL
udbwwx0629/SQL_note
/MySQL/005_分组查询/006_分组查询-按多个字段分组.sql
UTF-8
177
3.046875
3
[]
no_license
-- 按多个字段分组 -- 案例:查询每个部门每个工种的员工的平均工资 select avg(salary),department_id,job_id from employees group by department_id,job_id;
true
995c1ce72a92d5ac65a462397ec01046246ed3b6
SQL
stefistoeva/PHP-Web-SoftUni
/04.Database-Relations-and-Design/08. Employee Address.sql
UTF-8
180
3.515625
4
[]
no_license
SELECT e.employee_id, e.job_title, e.address_id, a.address_text FROM employees AS e INNER JOIN addresses AS a ON e.address_id = a.address_id ORDER BY e.address_id LIMIT 5
true
8f7683d0b6100a3f316cfa26ce34761d04ede73a
SQL
mariiaGnutova/Hibernate-project
/test-hibernate-project-develop/src/main/resources/db/query.sql
UTF-8
1,317
4.25
4
[]
no_license
-- Role: hb_user -- DROP ROLE hb_user; CREATE ROLE hb_user WITH NOLOGIN NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION; -- Database: Hibernate -- DROP DATABASE "Hibernate"; CREATE DATABASE "Hibernate" WITH OWNER = hb_user ENCODING = 'UTF8' LC_COLLATE = 'Russian_Russia.1251' ...
true
18dd2d572e695d539ae2d22c6f2c981152821f55
SQL
fasikchan/my_first_app
/dbscheme/tables/students.sql
UTF-8
294
2.71875
3
[]
no_license
CREATE TABLE students ( id bigserial NOT NULL, name varchar NOT NULL, family varchar NOT NULL, age integer NOT NULL, in_group integer NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, PRIMARY KEY (id) );
true
cd928894ebbc6bb8b0d74d1dd38ae4c9fda845d0
SQL
alehigino/ProjetoAlmoco
/scripts/Testes.sql
MacCentralEurope
1,800
2.90625
3
[]
no_license
-- CLIENTES --insere EXEC InsCliente 'Joyce Ribeiro', 'Cyjoe', '121212' EXEC InsCliente 'Cliente 01', 'Teste01', '131313' EXEC InsCliente 'Clinete 02', 'Teste02', '101010' EXEC InsCliente 'Clinete 03', 'Teste03', '141414' --seleciona Cliente por usuario EXEC SelCliente 'Cyjoe' --seleciona todos clientes EXEC SelClie...
true
39ec6320d8d817e5c84fcdd85bdfa1ad9a8b9d4d
SQL
louisc12/sql
/consultas_Chinook.sql
UTF-8
2,957
4.09375
4
[]
no_license
-- Fecha de nacimiento de los empleados SELECT "BirthDate" FROM "Employee"; --nombre y apellido de los empleados que nacieron despues de 1995 SELECT "FirstName","LastName","BirthDate" FROM "Employee" WHERE "BirthDate" > '1995-12-31'; --nombre y fecha de nacimiento de los empleados que nacieron en la decada de 1960 SELE...
true
f858aea767377665b22ba772b21a9cdc028df3f0
SQL
medea-project/ipcc-acquire
/question01/count-cumulated-participations-by-wmo-country-group.sql
UTF-8
2,404
4.6875
5
[ "CC-BY-4.0" ]
permissive
-- AUTHORS WITH MULTIPLE PARTICIPATIONS -- Q1. Who are the authors that have participated -- in more than 1, 2, 3, or 4 assessment reports? -- IN EACH WMO (World Meteorological Organization) COUNTRY GROUP, -- count the authors who contributed to: -- * 1+ assessment reports -- * 2+ assessment reports -- * 3+ assess...
true
0fb05647bc9fa12af913730321e3012cc2e1cc29
SQL
priyankgala/Medico
/SQL codes/Medical_Imaging_body_part_disease.sql
UTF-8
2,707
3.140625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.17, for macos10.14 (x86_64) -- -- Host: 127.0.0.1 Database: Medical_Imaging -- ------------------------------------------------------ -- Server version 8.0.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RE...
true
ee28aa492f64a03057372cc4e841ab5f6b5010ef
SQL
djfreshtoast/UsefulSQL
/Script Roles.sql
UTF-8
664
3.90625
4
[]
no_license
SELECT state_desc + ' ' + pm.permission_name + ' ON [' + Isnull(ss.name COLLATE SQL_Latin1_General_CP1_CI_AS, Object_name(pm.major_id)) + '] TO [' + rp.name + ']' FROM sys.database_principals rp INNER JOIN sys.database_permissions pm ON pm.grantee_principal_id = rp.principal_id L...
true
8e7a1a8dfaa6436ec477fe63c1281a4ebafdb55f
SQL
arbabkhan7901/PUCIT-Request-Portal
/PRM/DBProj/RequestPortalDB/PostDeploymentScript/Script.PostDeployment.sql
UTF-8
1,919
3.0625
3
[]
no_license
/* Post-Deployment Script Template -------------------------------------------------------------------------------------- This file contains SQL statements that will be appended to the build script. Use SQLCMD syntax to include a file in the post-deployment script. Example: :r .\myfile.sql ...
true
a53aa24689639605b4b5c68221e49f5acb657ad9
SQL
mirusky-dev/simple-agenda
/.sql
UTF-8
411
3.265625
3
[ "MIT" ]
permissive
CREATE SCHEMA IF NOT EXISTS calendar; CREATE TABLE calendar.appointments ( id bigserial NOT NULL, created_at timestamp NULL, updated_at timestamp NULL, deleted_at timestamp NULL, "name" text NOT NULL, "date" date NOT NULL, "hour" time NULL, "local" text NULL, CONSTRAINT appointments_pkey PRIMARY KEY (id) ); C...
true
485f105c00ea35538bf36ee019f03954abf544aa
SQL
jkstill/oracle-script-lib
/sql/full_sql_text.sql
UTF-8
713
3.546875
4
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
-- full_sql_text.sql -- use this to return the full text of a sql statement -- from statspack data -- the only column available for it (stats$sql_summary.sql_text) -- is not populated as of 9.2.0.6 -- see sp_plan.sql for usage create or replace function full_sql_text( hash_value_in stats$sqltext.hash_value%type, ...
true
41e1ba3f36abcc40c99c9bc7cdd5129c17163dff
SQL
cost-ts/stcommunity
/src/main/resources/db/migration/V1__Create_user_table.sql
UTF-8
1,136
3.0625
3
[]
no_license
# Executive Command: # mvn flyway:clean -- 清空flyway缓存 # mvn flyway:repair -- 修复,再次生成表之前要先执行这个 # mvn flyway:migrate -- 合成表 CREATE TABLE `user` ( `ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID标识', `ACCOUNT_ID` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '账户ID', `NAM...
true
ee617e60fbcebd6fd9607fd11c921981b0360ca4
SQL
roggerfe/projeto-ori-ufu
/db/src/main/resources/db/migration/V03_01__view_tfidf_documento.sql
UTF-8
750
4.15625
4
[]
no_license
-- Query calcula frequencia, tf, idf, tfidf por documento termo CREATE OR REPLACE VIEW public.tfidf_documento as select substring(d.caminho, '[^/]*$') as doc, t.descricao as termo, dt.frequencia as freq, (1 + log(2.0, dt.frequencia)) as tf ,idf, (1 + log(2.0, dt.frequencia)) * idf as tfidf from documento_termo dt ...
true
d9adaa0acab4114ccfe2a2185f7e7bea95d2d20e
SQL
codemetik/Pesanan_Barang
/databases/fashion.sql
UTF-8
5,874
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 23, 2019 at 04:04 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 5.6.39 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
68b48dc3d890b4f2952a046a67d39f418d8aa0bf
SQL
Fetgea/sql-forta
/lesson-13/alias.sql
UTF-8
664
3.609375
4
[]
no_license
/* MYSQL не поддерживает синтаксис "+" SELECT RTRIM(vend_name) + ' (' + RTRIM(vend_country) + ')' AS vend_title FROM Vendors ORDER BY vend_name */ SELECT CONCAT(RTRIM(vend_name), " (", RTRIM(vend_country), ")") AS vend_title FROM Vendors ORDER BY vend_name; SELECT cust_name, cust_contact FROM Customers AS C, Orders A...
true
08c89d7d5d30ae4bffe754914686903ff801906d
SQL
wyfunique/pgvector
/test/sql/functions.sql
UTF-8
548
2.859375
3
[ "PostgreSQL" ]
permissive
SET client_min_messages = warning; CREATE EXTENSION IF NOT EXISTS vector; SELECT '[1,2,3]'::vector + '[4,5,6]'; SELECT '[1,2,3]'::vector - '[4,5,6]'; SELECT vector_dims('[1,2,3]'); SELECT round(vector_norm('[1,1]')::numeric, 5); SELECT round(l2_distance('[1,2]', '[0,0]')::numeric, 5); SELECT l2_distance('[1,2]', '[3...
true
0c66f27095c96646cc6de0f76bad2568155f41ea
SQL
asshurimrepo/e-prescription
/uploads/hms.sql
UTF-8
18,904
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.11.7 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 07, 2013 at 07:51 AM -- Server version: 5.0.51 -- PHP Version: 5.2.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @O...
true
b60941d8a2e0398980aa6de2eb639cac2070edf4
SQL
abdulmajidnaveed/db-restaurant
/descriptions/fig7d.txt
UTF-8
2,627
4.5625
5
[ "MIT" ]
permissive
-- Inspector user: to view summary report of type 4. Fig 7d. -- Restaurants with Complaints (at least 1 non perfect critical item score) -- summary report listing restaurants and customer complaints for -- restaurants with -- number of complaints >= a specified number of complaints -- and an inspection score <= a s...
true
b74b00ea35b1b33f2d3cb3692a64781d788c2fe1
SQL
ltvch/pr
/PC.sql
UTF-8
813
3.25
3
[]
no_license
CREATE TABLE `rout` ( `PC_Num` INT(11) NOT NULL AUTO_INCREMENT, `Ip` CHAR(50) NULL DEFAULT NULL, PRIMARY KEY (`PC_Num`) ) COLLATE='utf8_general_ci' ENGINE=InnoDB AUTO_INCREMENT=2 ; CREATE TABLE `pc` ( `PC_Id` INT(11) NOT NULL AUTO_INCREMENT, `PC_Numb` INT(11) NOT NULL, PRIMARY KEY (`PC_Id`), INDEX `FK_pc_rout` ...
true
52cecc1d45a8363a1c2201a42d10b34d5d481a46
SQL
bcquant1/COEN178
/Lab4/queries_part2.sql
UTF-8
1,517
4.125
4
[]
no_license
set serveroutput on /* Question 5 */ Create or Replace Procedure DisplayMessage(message in VARCHAR) As BEGIN DBMS_OUTPUT.put_line('Hello '||message); END; / Show Errors; exec DisplayMessage('include a message'); SELECT ROUND(DBMS_RANDOM.value (10,100)) FROM DUAL; Create or Replace Procedure setSalaries(low in I...
true
dd1b7d3648861239b2a5f79a0acffa5b0d77653a
SQL
meritokrat-org/meritokrat
/data/sql/team.sql
UTF-8
337
2.78125
3
[ "MIT" ]
permissive
SELECT COUNT(NULLIF(category = 4, FALSE)) AS rgn, COUNT(NULLIF(category = 3 AND region_id = :region, FALSE)) AS cit, COUNT(NULLIF(category = 2 AND region_id = :region, FALSE)) AS dsc, COUNT(NULLIF(category = 1 AND region_id = :region AND district_id = :district, FALSE)) AS prm FROM team ...
true
cf2ccae087811dc08e1717699018c5ae75dc4da3
SQL
jsyi1995/SCU-COEN-Schoolwork
/COEN178/labs/lab5/part5.sql
UTF-8
407
3.5
4
[]
no_license
CREATE OR REPLACE FUNCTION getAmountForOrder (orderno_param IN ORDER_5.orderno%type) RETURN CHAR IS ret CHAR(100); amt ORDER_5.amount%type; BEGIN SELECT amount INTO amt FROM ORDER_5 WHERE orderno=orderno_param; IF sql%notfound THEN ret:='no orders selected'; RETURN ret; ELSIF sql%found THEN ret:=' amou...
true
dcd2d56702cdf1001bc10514a632fc9cb631a0aa
SQL
josuemalonga/projet-quizz
/projet_quizz.sql
UTF-8
1,693
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : mer. 17 juin 2020 à 03:04 -- Version du serveur : 10.1.35-MariaDB -- Version de PHP : 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
true
37d879fa3352fca6ff23a1ec5b806a81c946e28c
SQL
HohShenYien/bizBangkit
/sql/DML_process_guide_new_business_phase_3.sql
UTF-8
9,202
3.890625
4
[]
no_license
//-- START OF PHASE 3 //-- **START OF PROCESS 1** //-- IF ( bus_share_maturity_date LESS THAN <INPUT: date.today> ) {// "Error: Shares cannot be sold!"; } //-- BUS_REPORT_T.rep_total_spent + <INPUT: 1000> //example of spending RM1000 //-- Phase 3 trigger 1: Business spends from account. //-- Results: //-...
true
d8ce8d2a603e2871dfef4ca277046e00ff148d06
SQL
ddluc/harvest-calendar
/sql/month.sql
UTF-8
616
3.40625
3
[]
no_license
CREATE TABLE IF NOT EXISTS month ( id INTEGER NOT NULL, label VARCHAR(32), key CHAR(3) UNIQUE, season INTEGER [], PRIMARY KEY (id) ); INSERT INTO month (id, label, key, season) VALUES (1, 'January', 'JAN', ARRAY[4]), (2, 'February', 'FEB', ARRAY[4]), (3, 'March', 'MAR', ARRAY[4,1]), (4, 'April', 'APR...
true
e66ebccf1a4b191c76ccfa367756d2c8d74e1266
SQL
CS-Database-Project/back-end-api
/database/indexes.sql
UTF-8
109
2.65625
3
[]
no_license
create index idx_orderId on order_item (order_id); create index idx_orderDate on order_details (order_date);
true
b78061553d1bc6beeb9257f48badf849a35f0d1c
SQL
alphagov/pay-ledger
/src/main/resources/migrations/00022_index_transaction_type_for_filtering.sql
UTF-8
205
2.625
3
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
--liquibase formatted sql --changeset uk.gov.pay:index_transaction_type_for_filtering runInTransaction:false CREATE INDEX CONCURRENTLY IF NOT EXISTS transaction_type_idx ON transaction USING btree(type);
true
d9cf821e4e8acf2623ac7451f48913f370ac9818
SQL
Hadden-Industries/oracle
/USERS/RD/FUNCTIONS/TABLE_TO_HTML_CHUNKS.sql
UTF-8
7,311
3.421875
3
[ "MIT", "Apache-2.0" ]
permissive
SET SERVEROUTPUT ON; CREATE OR REPLACE FUNCTION TABLE_TO_HTML_CHUNKS ( gQuery IN VARCHAR2, gIncludeHeader IN INTEGER DEFAULT 0 ) RETURN HTTP_CHUNKS PIPELINED DETERMINISTIC AS gCursor INTEGER := DBMS_SQL.Open_Cursor; Desc_Tab DBMS_SQL.Desc_Tab; rHTTP_CHUNK HTTP_CHUNK := HTTP_CHUNK(0, NULL,...
true
ab3ee3dcdebd7c1fcf94edce985b17ff22d849f9
SQL
sylhuynh/employee-tracker
/db/schema.sql
UTF-8
685
3.921875
4
[]
no_license
DROP DATABASE IF EXISTS employee_trackerDb; CREATE DATABASE employee_trackerDb; USE employee_trackerDb; CREATE TABLE departments ( id INT AUTO_INCREMENT, department VARCHAR(50) NOT NULL, PRIMARY KEY(id) ); CREATE TABLE roles ( id INT AUTO_INCREMENT, title VARCHAR(50) NOT NULL, salary INT , ...
true
534d9cf1d34897c827c9f525758163bac8402b70
SQL
siamislam1603/PL-SQL
/Codes_Lab3/3.sql
UTF-8
320
3.46875
3
[]
no_license
SET SERVEROUTPUT ON; SET VERIFY OFF; DECLARE A MONEY.ID%TYPE; B MONEY.TAKA%TYPE; BEGIN FOR R IN (SELECT * FROM MONEY) LOOP A:=R.ID; B:=R.TAKA; DBMS_OUTPUT.PUT_LINE(A||' '||B); IF MOD(B,2)=0 THEN DBMS_OUTPUT.PUT_LINE(B||' IS EVEN'); ELSE DBMS_OUTPUT.PUT_LINE(B||' IS ODD'); END IF; END LOOP; END; /
true
058f2770426a225a1fabf91667757e1291757727
SQL
Amnia-Oat/Tea
/database/question.sql
UTF-8
2,873
3.3125
3
[ "MIT" ]
permissive
use db_table; #tea_DBを使用 create table question_1( qs1ID int(1) not null, content char(50), choice char(30)); create table question_2( qs2ID int(1) not null, content char(50), choice char(30)); create table q2_asw( herbID int(1) not null, tention char(10), detail text); #テーブルにデータを挿入 insert into question_1 values ('1...
true
1bbb3cf488b954eee7e25c93c66ab6171d26d1f6
SQL
IlhomMusayev/rest_full_api
/database/db.sql
UTF-8
835
3.34375
3
[]
no_license
CREATE DATABASE rest_api; CREATE TABLE users( user_id SERIAL PRIMARY KEY, user_name VARCHAR(255) NOT NULL, user_email VARCHAR(255) NOT NULL UNIQUE, user_password VARCHAR(255) NOT NULL, user_profil VARCHAR(255) DEFAULT 'nophoto.png' ); INSERT INTO users (user_name, user_email, user_password, user_...
true
04144e2d135d627397de2d3a116b3b35d6987e7d
SQL
kentsang45/sqlStudy
/4~6/6-2(MIN,MAX3).sql
UTF-8
99
2.765625
3
[]
no_license
SELECT LEV, SUBSTR(MIN(TO_CHAR(SALARY) || EMP_ID), 9) EMP_ID, MIN(SALARY) FROM TEMP GROUP BY LEV;
true
b41b6e8dec0205b01a6a5decc97828f580b86a58
SQL
TavenYin/taven-springboot-learning
/springboot-sharding-jdbc/sql/init.sql
UTF-8
326
2.671875
3
[]
no_license
CREATE TABLE t_order_0 ( order_id BIGINT NOT NULL, user_id BIGINT NULL, create_time DATETIME NULL, CONSTRAINT t_order_0_pk PRIMARY KEY (order_id) ) ENGINE=InnoDB; CREATE TABLE t_order_1 ( order_id BIGINT NOT NULL, user_id BIGINT NULL, create_time DATETIME NULL, CONSTRAINT t_order_1_pk PRIMARY KEY (order_id) ) ENGINE=I...
true
25827285cde3429232902951d38ccbe725d44df4
SQL
AlessioVallero/OpenAttestation-access-control
/OpenAttestation/Installer/FilesForLinux/init.sql
UTF-8
8,814
3.03125
3
[]
no_license
USE oat_db; CREATE TABLE `PCR_manifest` ( `index` int(11) NOT NULL AUTO_INCREMENT, `PCR_number` int(11) DEFAULT NULL, `PCR_value` varchar(100) DEFAULT NULL, `PCR_desc` varchar(100) DEFAULT NULL, `create_time` datetime DEFAULT NULL, `create_request_host` varchar(50) DEFAULT NULL, `last_update_time` dateti...
true
5ada8c1eef3124aa518ff41bbe09b8dbf845fc87
SQL
tsloughter/service_discovery
/apps/service_discovery_postgres/priv/migrations/V1__Create_services_endpoints_table.sql
UTF-8
1,152
3.828125
4
[ "Apache-2.0" ]
permissive
CREATE EXTENSION IF NOT EXISTS hstore; CREATE EXTENSION IF NOT EXISTS pgcrypto; CREATE EXTENSION citext; CREATE TABLE services ( id UUID NOT NULL DEFAULT gen_random_uuid(), name CITEXT UNIQUE NOT NULL, attributes HSTORE NOT NULL, created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), ...
true
9a93b7f4ad80f96068fef7fc6bec726bf79da187
SQL
akilaamu/BasicBankingsystem
/bank db.sql
UTF-8
2,594
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 16, 2021 at 03:56 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
63ea87cebe10d6bdb691a752fcc466a675f05df8
SQL
rgualp/AbucRemarketing2Bundle
/src/MyCp/FrontEndBundle/Resources/import_scripts/linking_accommodations_with_destination.sql
UTF-8
346
3.53125
4
[ "MIT" ]
permissive
/* Linking every accommodation in database with a destination located in the accommodation's municipality Author: Yanet Morales Ramirez */ update ownership o set o.own_destination = (select min(d.des_id) from destinationlocation dl join destination d on dl.des_loc_des_id = d.des_id where dl.des_loc_...
true
7f94086a8c908a5b811495b32a9a939b8e8439e4
SQL
steveDates/steveDates
/db/matches/get_chats.sql
UTF-8
355
3.25
3
[]
no_license
select * from matched_users mu join users_profile up on up.users_id = mu.user_one where mu.chat_id = ${chat_id} and user_one = ${users_id} or user_two = ${users_id} ; -- select * from matched_users mu -- join messages m on m.chat_id = mu.chat_id -- join users_profile up on up.users_id = mu.user_one or up.users_id = m...
true
4a0cc2ec4e8b8b08890aa7d08966efafb1faf643
SQL
mdgilbert/wiki-tools
/schema.sql
UTF-8
11,992
2.90625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.41, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: reflex_relations_2014 -- ------------------------------------------------------ -- Server version 5.5.41-0ubuntu0.12.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
true
113d568b980106fffeb58f29bd79c12b4e48a716
SQL
adelwin/j-diamond-v2
/diamond-web/src/main/resources/sql/100.diamond_core/110.diamond_core_audits.sql
UTF-8
369
2.71875
3
[]
no_license
/** * Table Name: DIAMOND_CORE_AUDITS */ DROP TABLE DIAMOND_CORE_AUDITS; CREATE TABLE DIAMOND_CORE_AUDITS ( audit_id VARCHAR(32) NOT NULL, audit_type VARCHAR(32) NOT NULL, audit_pk VARCHAR(32) NOT NULL, auditor VARCHAR(32) NOT NULL, audit_date DATETIME NOT NULL, before_value VARCHAR(999), table_name VA...
true
a188b7f00d98e740f0d03646905b41a6e4f4c013
SQL
MyungSinKim/project-template
/template-server/src/main/resources/db/migration/V1__init.sql
UTF-8
563
3.140625
3
[ "Apache-2.0" ]
permissive
CREATE TABLE IF NOT EXISTS product ( `id` BIGINT NOT NULL, created_by VARCHAR(255), created_date DATETIME, last_modified_by VARCHAR(255), last_modified_date DATETIME, category VARCHAR(255), `desc` LONGTEXT, name VARCHAR(255) NOT NUL...
true
c9beee1164c96efbb172f6b1568aa4e358593d70
SQL
m-jerwan/proj_01_tracker
/db/tracker.sql
UTF-8
506
3.46875
3
[]
no_license
DROP TABLE IF EXISTS transactions; DROP TABLE IF EXISTS merchants; DROP TABLE IF EXISTS tags; CREATE TABLE merchants( id SERIAL8 primary key, merchant_name VARCHAR(255) ); CREATE TABLE tags( id SERIAL8 primary key, tag_name VARCHAR(255) ); CREATE TABLE transactions( time_stamp VARCHAR(255), -- TIME IS BE...
true
6a46274a2fb5598705512bc5af8589ddd00774a8
SQL
lucifax301/chelizi
/chelizi/database/v2.0.1.sql
WINDOWS-1252
395
2.546875
3
[]
no_license
ALTER TABLE `db_lili`.`t_student_class_pool` ADD COLUMN `carId` BIGINT(11) NOT NULL COMMENT 'id' AFTER `coachId`, ADD COLUMN `carNo` VARCHAR(32) NULL COMMENT 'ƺ' AFTER `coachMobile`; UPDATE `db_lili`.`t_student_class_pool` SET carId = extra; UPDATE `db_lili`.`t_student_class_pool` AS t1, t_p_car AS t2 SET t1...
true
c11525043fd9a21e78fa87e558b357f739c467b5
SQL
gurpreet19/ec198392_wht
/Database/configuration/03_02_headless_tool/Delta_WST/SourcePackageDefinitions/ECDP_CONTRACT_FORECAST_HEAD.sql
UTF-8
2,488
2.9375
3
[]
no_license
CREATE OR REPLACE PACKAGE EcDp_Contract_Forecast IS /**************************************************************** ** Package : EcDp_Contract_Forecast ** ** $Revision: 1.3 $ ** ** Purpose : Find, generate and aggregate sale forecast data. ** ** Documentation : www.energy-components.com ** ** Create...
true
ad4f286231675352eb34931a365190f7b248dfa8
SQL
primesoftpro/exhibition-db
/db/patches/033.sql
UTF-8
1,157
3.828125
4
[ "Apache-2.0" ]
permissive
SET FOREIGN_KEY_CHECKS=0; ALTER TABLE business_sections DROP FOREIGN KEY business_sections_ibfk_3; ALTER TABLE business_sections DROP COLUMN personid, DROP INDEX personid ; CREATE TABLE business_sections_persons ( id int NOT NULL AUTO_INCREMENT, business_sectioid int NOT NULL, personid int NOT NULL, ...
true
2c49e08e067803ce6c52157c73b717ac8fc2108f
SQL
salvatorebnt/CGM-TEST-BINETTI
/src/test/resources/data.sql
UTF-8
428
3.015625
3
[]
no_license
CREATE TABLE IF NOT EXISTS PATIENT ( ID INT AUTO_INCREMENT PRIMARY KEY, NAME VARCHAR(50) NOT NULL, SURNAME VARCHAR(50) NOT NULL, BIRTHDAY DATE NOT NULL, SECURITY_NUMBER VARCHAR(50) NOT NULL ); CREATE TABLE IF NOT EXISTS VISIT ( ID INT AUTO_INCREMENT PRIMARY KEY, ID_PATIENT INT NOT NULL, VISIT_DATE DA...
true
a33eedc81fb8d4c8e5af64d7602800eb81af3355
SQL
kasunsk/MediSmart
/channel/src/main/resources/data.sql
UTF-8
1,648
3.46875
3
[]
no_license
create TABLE IF NOT EXISTS PATIENT ( NIC VARCHAR(15) PRIMARY KEY, FIRST_NAME VARCHAR(20) , LAST_NAME VARCHAR(20) , DATE_OF_BIRTH VARCHAR(20) , DIABETES INT(1) , BLOOD_PRESSURE INT(1) , CHOLESTEROL INT(1) , ALLERGY INT(1) , NOTES VARCHAR(40), CREATED_DATE TIMESTAMP, LAST_MODIFIED_DATE TIMESTAMP , VERSION INT(3) ); C...
true
ae7601b3726ebe3269ccd1bf57b6dfb8fd2d091a
SQL
AbelCheng/DataWashroom
/DataWashroom/OracleModel/1-Tables/06-WASH_ISTR_DELETE.sql
UTF-8
1,157
3.796875
4
[ "MIT" ]
permissive
CREATE TABLE VPI.WASH_ISTR_DELETE ( ISTR_ID VARCHAR2(32) NOT NULL, DST_TABLE VARCHAR2(61) NOT NULL, -- Destination Table (must include schema.table) DST_FILTER VARCHAR2(1024), CONSTRAINT PK_WASH_ISTR_DELETE PRIMARY KEY (ISTR_ID), CONSTRAINT FK_WASH_ISTR_DELETE FOREIGN KEY (ISTR_ID) REFERENCES VPI.WAS...
true
5a4ae766d613128d87f5befc0ddfa38bd6c46a39
SQL
sourovamin/Case-Study-Criminal-Report
/database/criminal_case.sql
UTF-8
14,664
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 03, 2017 at 06:29 AM -- Server version: 5.6.26 -- PHP Version: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
57b241e44849cc0f97f52868f8c9ec57a6e38209
SQL
TiagoaReis/pastel-king
/backend/createTable.sql
UTF-8
1,247
2.921875
3
[]
no_license
CREATE TABLE `dbpastel`.`user` ( `userID` int NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `password` varchar(255) NOT NULL, `admin` tinyint NOT NULL, `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`userID`) ); INSERT INTO `dbpastel`.`...
true
ddf1a13bee2c1ff6b33e2678041373d34a7e6004
SQL
kenlintw/tradevwork
/INS_ECO01_2_APECO01_DETAIL.sql
UTF-8
1,904
2.59375
3
[]
no_license
create or replace PROCEDURE INS_ECO01_2_APECO01_DETAIL ( in_TRANSID IN VARCHAR2 ) IS mytemp DATE; BEGIN --select sysdate into mytemp from dual; INSERT INTO DGOC_AP_ECO01B0 ( TRANSACTION_ID ,SEQ_NO ,ITEM_ID...
true
c906ab43e1a200df518413dbec789189452f2567
SQL
mastercad/trainingsmanager
/data/dumps/training_diary_x_exercise_option.sql
UTF-8
6,836
3.0625
3
[]
no_license
-- -------------------------------------------------------- -- Host: localhost -- Server Version: 10.1.21-MariaDB-1~jessie - mariadb.org binary distribution -- Server Betriebssystem: debian-linux-gnu -- HeidiSQL Version: 9.4.0.5125 -- ----------------------------...
true
54429ce0112d9717224646123331c5478916e6bb
SQL
Vericlongmore/swoole-websocket-framework
/sql/alert.sql
UTF-8
706
3.34375
3
[]
no_license
UPDATE tbl_account_info SET PASSWORD = 'a8191a3c4bc45d4df5863b58456b5ea0'; ALTER TABLE `tbl_room_list` ADD COLUMN `team_list` VARCHAR(1024) DEFAULT '' NOT NULL COMMENT '球队id' AFTER `closed_time`; ALTER TABLE `tbl_room_list` CHANGE `status` `status` INT(10) DEFAULT -1 NOT NULL COMMENT '状态(房间状态-1:创建中;1:报名中;2:已...
true
189cc0b58b9591bd5906a4107d35f8fd78a9d2e0
SQL
kaoru-drosera/PHP_Learning_Pool
/MnavPHP/chap5.1/mydb_re_MnavPHP.sql
UTF-8
1,850
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Jun 03, 2019 at 05:27 PM -- Server version: 5.7.25 -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
d6933a539ecfd219135f15e549b64816d33665b5
SQL
YujunWu-King/university
/src/main/resources/sql/TZSitePageBundle/TzGetSiteMenuImgs.sql
UTF-8
209
2.859375
3
[]
no_license
select TZ_TYPE_IMG, TZ_NOW_IMG from PS_TZ_SITEI_MNPF_T where TZ_SITEI_ID=? and TZ_MENU_ID=? and TZ_SKIN_ID=( select TZ_SKIN_ID from PS_TZ_SITEI_DEFN_T where TZ_SITEI_ID = ? )
true
82222c451ce39fda30aabb2cfeba3ddd34fd0af5
SQL
korsunskymichael/GhostBusters
/GhostBusters - create_db.sql
UTF-8
1,123
3.265625
3
[]
no_license
DROP SCHEMA IF EXISTS ghostbusters; CREATE SCHEMA ghostbusters; USE GhostBusters; -- ================== assignees ================== DROP TABLE if exists assigness; CREATE TABLE assignees ( assignee_name varchar(50) primary key ); -- insert values INSERT INTO assignees (assignee_name) VALUES ('Peter Venkman'), ...
true
dd5980795315edef37261ed68ce6f4a8c29f8eac
SQL
sonvq/symfony_starter
/database/database after change primary key/vacanzev_etticket.sql
UTF-8
29,623
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 22, 2016 at 09:29 AM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
aa9d6b44810f9253e0bdf2051d47073f9f10781c
SQL
Eisten1996/booking-restaurant-api-2
/booking-restaurant.sql
UTF-8
12,864
3.40625
3
[]
no_license
CREATE SCHEMA IF NOT EXISTS `BOOKING_RESTAURANT` DEFAULT CHARACTER SET UTF8 ; USE `BOOKING_RESTAURANT` ; -- ----------------------------------------------------- -- Table `BOOKING_RESTAURANT`.`RESTAURANT` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `BOOKING_RESTAURANT`.`RESTAUR...
true
002ffff5d87dde75ad29306e58bb914b21946d50
SQL
GeoEra-GIP/Raw-Materials
/processingtransformationplant_vw.FIX.2019.10.16.sql
UTF-8
3,102
3.296875
3
[]
no_license
-- View: public.processingtransformationplant_vw -- -- 2019.10.16 - New version required to solve harvesting problem -- when Processing Transformation Plant has values -- in fields beginlifespanversion or endlifespanversion -- DROP VIEW public.processingtransformationplant_vw; CREATE VIEW public.processingt...
true
2fa7a071c2027f72fd954248b5d0e99deed2f1b3
SQL
YanikPerera/GradingApplicationSystem
/testgrading.sql
UTF-8
5,402
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 08, 2021 at 12:47 PM -- Server version: 10.4.19-MariaDB -- PHP Version: 7.3.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
2b10356b8c4ed5781bbe0179d5e986c1666b7188
SQL
ajbayquen/assignment-1
/assignment 1 SQL.sql
UTF-8
1,055
3.890625
4
[]
no_license
-- Question 1 select distinct dest from flights where distance = (select max(distance) from flights); -- Question 2 select distinct engines from planes order by engines; select tailnum, year, type, manufacturer, model, engines, seats from planes x where x. seats = (select max(y.seats) from planes y ...
true
42ba8769a92780213952ae44777960def120cd76
SQL
EnvyIT/apollo
/docker/Database/apollo_seed.sql
UTF-8
12,296
3.234375
3
[ "MIT" ]
permissive
-- MySQL Script generated by MySQL Workbench -- Thu Nov 26 23:53:10 2020 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ON...
true
0f2d5ef1a5c0d148b9bf16c7abfb7bc388418205
SQL
sbeparey/databases
/src/Northwind/SqlServer/Tables/02. Customers.sql
UTF-8
893
3.484375
3
[]
no_license
DROP TABLE IF EXISTS Customers; CREATE TABLE Customers ( CustomerId NCHAR(5) NOT NULL, CompanyName NVARCHAR(40) NOT NULL, ContactName NVARCHAR(30) NULL, ContactTitle NVARCHAR(30) NULL, "Address" NVARCHAR(60) NULL, City NVARCHAR(15) NULL, Region ...
true
96cf8a269705f1a5bff2a4caad44cc373906be06
SQL
chesstrian/ineldua
/asterisk2/clase5/dbs/agidb.sql
UTF-8
559
2.734375
3
[]
no_license
CREATE DATABASE `agidb`; CREATE TABLE IF NOT EXISTS `agidb`.`clientes` ( `idclientes` INT NOT NULL AUTO_INCREMENT , `cedula` VARCHAR(20) NULL , `telefono` VARCHAR(20) NULL , `nombre` VARCHAR(100) NULL , `activo` INT NULL , PRIMARY KEY (`idclientes`) , UNIQUE INDEX `cedula_UNIQUE` (`cedula` ASC) ) ENGINE ...
true
2c89a87b9f3069027f1cb134f90a3e66e77704b7
SQL
9cbell/SQL-Bolt
/exercises_6-9.sql
UTF-8
1,244
4.125
4
[]
no_license
--exercise 6 --6.1 SELECT title, domestic_sales, international_sales FROM movies JOIN boxoffice ON movies.id = boxoffice.movie_id; --6.2 SELECT title, domestic_sales, international_sales FROM movies JOIN boxoffice ON movies.id = boxoffice.movie_id WHERE international_sales > domestic_sales; -...
true
5c582baad328beb75bb754a7f224a532afa417f1
SQL
yanshiqiang/guide_for_yii2_by_example
/guide_doc/support_data/mac.sql
UTF-8
845,169
2.6875
3
[ "BSD-3-Clause" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 202.206.32.10 -- Generation Time: 2016-01-24 19:06:10 -- 服务器版本: 5.6.16-log -- PHP Version: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40...
true
fbc15496af8300799ed439300934b793dbf53814
SQL
omarjcm/websae
/trunk/docs/dds/uml/v3.0.0/WebSAE/ddl/script.ddl
UTF-8
9,835
2.828125
3
[]
no_license
#@(#) script.ddl CREATE DATABASE IF NOT EXISTS websae; USE websae; CREATE TABLE Faq ( id_faq Integer NOT NULL, #indicador de estado estado int NOT NULL ); CREATE TABLE Evaluacion_Tema_Articulo ( id_evaluacion_tema_articulo Integer NOT NULL, #indicador de estado estado int NOT NULL ); CREATE T...
true
e9b07ec5932f45944da5dc167d3272696033cd02
SQL
reignydeyz/PERI.Prompt
/PERI.Prompt.DB/User.sql
UTF-8
870
3.46875
3
[]
no_license
create table [User] ( UserId integer primary key IDENTITY(1,1), FirstName varchar(30) not null, LastName varchar(30) not null, Email varchar(50) not null unique, RoleId int not null, PasswordHash nvarchar(128) not null, PasswordSalt nvarchar(128) not null, PasswordExpiry datetime null, LastSessionId varchar(5...
true
36c289e8e06e00c4b116f0e2ed36b6d30229cb4d
SQL
natalia0911/Proyecto1-BDII
/SCRIPTS/SP_SelectAuctions.sql
ISO-8859-1
863
3.453125
3
[]
no_license
------------------------------------------------------------------------- --- Creado por: Natalia Vargas --- Fecha creacin: 21/03/2021 --- Descripcin: Listar subastas -------------------------------------------------------------------------- CREATE OR REPLACE PROCEDURE SP_SelectAuction( pSubCat IN SUBASTA.SUBC...
true