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
41fb88ac4da962634cfa8afbaf021a42a1e22e9d
SQL
10Ryuten/Miedzyszkolny-Turniej-Sportowy
/Miedzyszkolny_turniej_sportowy3_-_projekt_create.sql
UTF-8
4,414
3.546875
4
[]
no_license
-- Created by Vertabelo (http://vertabelo.com) -- Last modification date: 2018-02-02 14:58:18.577 -- tables -- Table: DysZawTur CREATE TABLE DysZawTur ( IdZawodnikTurniej integer NOT NULL, IdDyscypliny integer NOT NULL, ZajeteMiejsce integer NULL, CONSTRAINT DysZawTur_pk PRIMARY KEY (IdZawodnikTurni...
true
3b45a59063914c71ffd223bd0775d0fca2d35df3
SQL
imperiuss/guestbook
/src/main/resources/sql/guest_book_table.sql
UTF-8
450
2.828125
3
[]
no_license
CREATE TABLE public.guest_book ( id integer NOT NULL DEFAULT nextval('guest_book_id_seq'::regclass), name character varying(80) COLLATE pg_catalog."default" NOT NULL, email character varying(80) COLLATE pg_catalog."default" NOT NULL, message text COLLATE pg_catalog."default" NOT NULL, date timestamp...
true
6271e9e4f30710029b7b435961007b3ba36bb1b8
SQL
shivdeepmodi/Setup
/sqlpath/soc2.sql
UTF-8
20,933
3.71875
4
[]
no_license
set lines 150 pages 30 col profile for a30 col username for a40 prompt ========================================================== prompt NON-STANDARD PROFILES ON THIS DATABASE prompt ========================================================== select distinct profile from dba_profiles where profile not in ('DEFAULT', ...
true
24a38b04a87ebcc09aa2b542415551005066ffe7
SQL
pilimayora/BicisBA2013
/scripts/create_tables.sql
UTF-8
478
2.984375
3
[]
no_license
CREATE TABLE recorridos_2013 ( trip_id INT NOT NULL AUTO_INCREMENT, usuario_id INT NOT NULL, bicicleta_id INT NOT NULL, origen_fecha DATETIME, origen_estacion_id INT, origen_nombre VARCHAR(200), destino_fecha DATETIME, destino_estacion_id INT, destino_nombre VARCHAR(200), tiempo_uso INT, PRIMARY KEY ( trip_id ) ); CR...
true
d1f9dbd54349f3ba082896717fc160112176b53c
SQL
himkmr/People_Finder_with_JPA
/People_Finder/SQL/states.sql
UTF-8
3,903
2.5625
3
[]
no_license
-------------------------------------------------------- -- File created - Monday-August-24-2015 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Table STATES -------------------------------------------------------- CREATE TABLE "TES...
true
92b9d6c5540a7ebe7ce07187b53afe9b3cb9ea93
SQL
HannaRaus/Module-3
/3.sql
UTF-8
285
3.34375
3
[]
no_license
--3. Вычислить общую ЗП только Java разработчиков. SELECT SUM(d.salary) AS total_cost FROM developers d INNER JOIN developer_skills ds ON d.developer_id=ds.developer_id INNER JOIN skills s ON ds.skill_id=s.skill_id WHERE s.branch = 'Java';
true
42bb2e4019797c1f7a7b727697af76e60294867e
SQL
HYOSEONJIN/hyoseon
/SQL/20201110.sql
UTF-8
6,526
3.984375
4
[]
no_license
-- 2020.11.10 -- 함수 -- 단일행, 집합 함수 -- 단일행 함수 : 숫자, 문자, 날짜, 변환 desc dual; -- 숫자함수 select ABS(-15.5) from dual; -- 절대값 select floor(15.7) from dual; -- 소숫점 절삭 select round(-15.8) from dual; -- 정수타입으로 반올림 select round(-15.693, 2) from dual; -- 몇번째 자리까지 표시할 것인지 선택 select log(10, 100 ) from dual; -- 로그값(지수)구해줌 select pow...
true
3da986eaa41f71a6a467aab0e6d76843618bcc3b
SQL
lamas1999/PracticaProfecionalV1
/database/scrip.sql
UTF-8
16,574
3.140625
3
[]
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='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTI...
true
e3d90f59b40d29d02ee616ea8ab9fa6ed3ccbc64
SQL
s18008/SQL-
/1206/1206.3.sql
UTF-8
72
2.578125
3
[]
no_license
select last_name,hire_date from employees where hire_date >= '1-Jan-99'
true
c581edd0a4759b020e361ed841189bcb6f1b3035
SQL
ireneyang0000/SQL
/1445_apples&oranges.sql
UTF-8
263
3.6875
4
[]
no_license
with sale as ( select sale_date, sum(case when fruit = 'apples' then sold_num else 0 end) as Apple, sum(case when fruit = 'oranges' then sold_num else 0 end) as Orange from sales group by 1 ) select sale_date,sum(apple-orange) as diff from sale group by 1
true
b5c169f553c9eedad9240bcb058cc1bc0f0ce500
SQL
gulbas/bdgb
/lesson3/ustinov_lesson3.sql
UTF-8
2,642
4.375
4
[]
no_license
USE `country`; -- 1. Сделать запрос, в котором мы выберем все данные о городе – регион, страна. SELECT `_cities`.`title` as `Город`, `_regions`.`title` as `Регион`, `_countries`.`title` as `Страна` from `_cities` JOIN `_countries` ON `_cities`.`country_id` = `_countries`.`id` JOIN `_regions` ON `_cities`.`region_id` ...
true
61de26e590d5d73ae4af7e55ebbe3a263d5da681
SQL
cdesmarais/WebDB-Test
/WebDB/StoredProcedures/Common/dbo.DNCacheSEORegions.PRC
UTF-8
572
3.5625
4
[]
no_license
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[DNCacheSeoRegion]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[DNCacheSeoRegion] GO CREATE PROCEDURE dbo.DNCacheSeoRegion As SET NOCOUNT ON SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED select m.MetroAreaID, mn.MacroID, co...
true
702c7d517084b2a8335ddcfcf4b41efec7fee417
SQL
wbonatti/ProjetoInterdisciplinar
/Documentos/create.sql
UTF-8
11,659
3.765625
4
[]
no_license
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 Intranet -- -------------------------------...
true
3926c187026df68f51edc0da30cc5b76f47eb796
SQL
erickone/ABSnewRepository
/nueva iteracion/Queryes/Scripts 30-08-2012/scrp objgast Francisco.sql
UTF-8
2,762
2.9375
3
[]
no_license
CREATE TABLE informix.siifppptipogastointerno ( idtipogastointerno SERIAL NOT NULL, descripcion LVARCHAR(500) NOT NULL, clave LVARCHAR(50) NOT NULL, PRIMARY KEY(idtipogastointerno) constraint "informix".pk_siifppptipogastointerno ENABLED); CREATE TABLE informix.siifppptip...
true
3ff437fa4fc7ef7c1ce160e174b319841a8cea69
SQL
ptcmariano/pdv-mysql-to-rest
/db/create-tables.sql
UTF-8
384
3.140625
3
[]
no_license
CREATE TABLE cupons ( id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, valor_total FLOAT(8) NOT NULL DEFAULT 0, data TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP ); CREATE TABLE itens ( id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, id_cupom INT(6) UNSIGNED, quantidade INT(4) NOT NULL DEFAULT 0, valor_unitario FLOAT(8) NOT ...
true
704c450e7b892c8473ca72354df15e29facd0d56
SQL
leopold-franz/flush_test
/data_processing/sql_database/flushdb_sql_schema.sql
UTF-8
2,419
3.953125
4
[]
no_license
-- Database: smarttoilet-db, Superuser: postgres -- Run the following to execute script from instance: -- "psql --host=34.65.240.155 --user=postgres --password --dbname=smarttoilet -f smarttoilet_db_sql_schema.sql" CREATE DATABASE smarttoilet ; -- -- Name: users; Type: TABLE; Owner: flush -- CREATE TABLE IF NOT EXIST...
true
5bc300efc901a246adf1738b1d99644527bfddfc
SQL
chengBlock/note
/Resources/MySQL-Notes-master/MySQL基础/5.MySQL查询语句/2.基本查询语句.sql
UTF-8
597
3.75
4
[]
no_license
# 查询 # 查询所有字段 select * from studuent; # 查询指定字段 select id, name from studuent; # 使用as给字段起别名 select name as 姓名, age as 年龄 from studuent; # select 表明.字段 ..... from 表名; select studuent.name, studuent.age from studuent; # 可以通过as给表其别名 # select 别名.字段 .... from 表名 as 别名; select s...
true
b7f2bcd5bc804251cbc0cd9ed1dbc3ac389c2d77
SQL
ksy9594/daurp
/Dump20190308/daurp_lecture_attend.sql
UTF-8
3,132
2.828125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: daurp -- ------------------------------------------------------ -- Server version 5.5.62-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /...
true
f4a026322285fd8465986fb6987d4253f69f710b
SQL
rinfer09/KawanSibi
/kawansibi.sql
UTF-8
1,665
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 10, 2021 at 01:09 PM -- Server version: 10.4.16-MariaDB -- PHP Version: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
82a10330ae22d7a6899f6bcd67fc12ae08d99ce8
SQL
ntuaha/TWFS
/database/creatingdb/lsme.sql
UTF-8
225
2.6875
3
[]
no_license
drop table lsme; create table lsme( ETL_Dt timestamp not null default now(), bank_code char(10), Data_Dt timestamp , Bank_Nm TEXT, LN_SME numeric, LN_SME_RATE numeric, MARKET_RATE numeric, PRIMARY KEY (bank_code, Data_Dt) );
true
f9adb6fe8d541b3e067d9d5275a4d5b4deb14d17
SQL
arselv/sql-challenge
/EmployeeSQL/employee_tables.sql
UTF-8
1,214
3.21875
3
[]
no_license
--Drop table if exists DROP TABLE IF EXISTS departments; --Create new departments table CREATE TABLE departments ( dept_no VARCHAR(10), dept_name VARCHAR(30) ); SELECT * FROM departments; --Drop table if exists DROP TABLE IF EXISTS employees; --Create new department managers table CREATE TABLE employees ( emp_no ...
true
8024b6bb9f05e61848b07d0ceb37fc058caef9b6
SQL
scoudeimie/ITSTART_R03_TP
/tchat/doc/sql/tchatdb_create.sql
UTF-8
2,740
3.5625
4
[]
no_license
#------------------------------------------------------------ # Script MySQL. #------------------------------------------------------------ DROP DATABASE IF EXISTS tchatprive; CREATE DATABASE tchatprive DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; USE tchatprive; CREATE TABLE Utilisateur...
true
b2f7f280ec2e90322cc8c16bec0bdea63d92646d
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/tables/TMP_PAGOSRENTA.sql
ISO-8859-1
3,157
3
3
[]
no_license
-------------------------------------------------------- -- DDL for Table TMP_PAGOSRENTA -------------------------------------------------------- CREATE TABLE "AXIS"."TMP_PAGOSRENTA" ( "STMPPARE" NUMBER(6,0), "SSEGURO" NUMBER, "SPERSON" NUMBER(10,0), "FFECPAG" DATE, "ISINRET" NUMBER, "PRETENC" NUMBER(...
true
c00dcec11fe27bab0eb6fc66c0df0b5f8052278c
SQL
antonnaumoff/Departments
/src/main/webapp/sql/create-tables.sql
UTF-8
504
3.765625
4
[]
no_license
CREATE TABLE Department ( department_id INT PRIMARY KEY NOT NULL IDENTITY, title VARCHAR(45) NOT NULL ); CREATE TABLE Employee ( id INT PRIMARY KEY NOT NULL IDENTITY, id_dep INT NOT NULL, title VARCHAR(45) NOT NULL, first_name VARCHAR(45) NOT NULL, second_name VARCHAR(45) NOT NULL, sala...
true
a5ac6531605b1418a4712958ed2728b0e29fd978
SQL
infinite-Joy/programming-languages
/python-projects/mandal-project/voltage_current.sql
UTF-8
394
2.875
3
[]
no_license
drop table if exists voltage_current; create table voltage_current (ID INTEGER PRIMARY KEY, voltage real, current real, Timestamp DATETIME DEFAULT (strftime('%s', 'now'))); insert into voltage_current (ID, voltage, current) values (1, 1.0, 2.0); insert into voltage_current (ID, voltage, current) values (2, 2.0, 4.0);...
true
f671dc6b47652089537dd7071c09238938fd22e4
SQL
gxlioper/ecology
/data/Oracle/sql201609130101.sql
GB18030
847
2.703125
3
[]
no_license
delete from HtmlLabelIndex where id=128544 / delete from HtmlLabelInfo where indexid=128544 / INSERT INTO HtmlLabelIndex values(128544,'6λУűʶֶΡԱǷΪλֶΣҵǰλš') / INSERT INTO HtmlLabelInfo VALUES(128544,'6λУűʶֶΡԱǷΪλֶΣҵǰλš',7) / INSERT INTO HtmlLabelInfo VALUES(128544,'6Post Settings, "department identify fields&quo...
true
478be7d5681f2dbe85b084ce39c92f0eb8b8317e
SQL
kienmarco2408/VTI_Rocket_16
/SQL/Testing_Assignment/Testing_System_Assignment_4.sql
UTF-8
5,835
4.0625
4
[]
no_license
drop database if exists `Testing_System_Assignment_4`; create table if not exists `Testing_System_Assignment_4`; use `Testing_System_Assignment_1`; -- Exercise 1: Join -- Question 1: Viết lệnh để lấy ra danh sách nhân viên và thông tin phòng ban của họ select a.FullName, b.DepartmentName from `account` a join `departm...
true
1ac2b9368b00aabd78368cb27bf9cc5cf3a27a2e
SQL
vishalkarande/pinnacle
/sql databse/publisher.sql
UTF-8
15,265
3.125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 11, 2020 at 06:20 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.2.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
f646a1a724ce0eaf7c5c9c94f9c2ec5926c4a3e3
SQL
eliwitt/SqlWork
/ait/Claims/Payments/Retrieve SR Payments.sql
UTF-8
774
3.65625
4
[]
no_license
select payparts.id, cover.[desc], payparts.AmountPaid, pay.id, pay.Memo, personaddr.AddressLine1, loczip.CityName + ' ' + loczip.StateAbbr + ' ' + loczip.ZipCode, pay.PaymentGrossAmount, pay.GoAutoVendor, convert(nvarchar(10), pay.PaymentDateTime, 101) PaymentDateTime From CLM_PaymentParts payparts Join CLM_...
true
a842e000fa5b96369735170463f81c743c59dd08
SQL
JcGaara/SGA-PLSQL-OPE
/SGA-OPERACION/Procedures/P_RADIOBASE_10_5.sql
UTF-8
6,460
3.09375
3
[]
no_license
CREATE OR REPLACE PROCEDURE OPERACION.P_RADIOBASE_10_5 IS --DECLARE cursor c_RADIOBASE_10_5 is SELECT ubired.descripcion SITE,--1 ubired.codubired codigosite,--2 ambientered.descripcion ambiente,--3 equipored.descripcion equipo,-...
true
2d4df62e65efc898323c5e22fb171c53bf3a5cb6
SQL
akula-srinu/Customization_Test
/custom/SI_TYPE_VIEWS_POC.sql
UTF-8
2,078
2.859375
3
[]
no_license
@utlspon SI_TYPE_VIEWS_POC SET DEFINE OFF; WHENEVER SQLERROR EXIT 920; Insert into NOETIX_VIEWS.N_JOIN_KEY_TEMPLATES (T_JOIN_KEY_ID, VIEW_LABEL, KEY_NAME, DESCRIPTION, KEY_TYPE_CODE, COLUMN_TYPE_CODE, KEY_RANK, KEY_CARDINALITY_CODE, PRODUCT_VERSION, INCLUDE_FLAG, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UP...
true
d4412c7a1b8d0683adb909b05906a3b329babd63
SQL
Anastasoff/Telerik-Academy
/Software-Technologies/Databases/03.SQL-Intro/13.OrderBySalary.sql
UTF-8
220
3.296875
3
[]
no_license
--- 16. Write a SQL query to find all employees that have --- salary more than 50000. Order them in decreasing order by salary. SELECT FirstName, LastName, Salary FROM Employees WHERE Salary > 50000 ORDER BY Salary DESC
true
0e0f0f82e40f93aadde867f18d501510415c1bc0
SQL
polopt/realstate
/modules/langify/database.sql
UTF-8
828
3.21875
3
[]
no_license
CREATE TABLE IF NOT EXISTS `translate_keys` ( `id` int(11) NOT NULL AUTO_INCREMENT, `key` longtext NOT NULL, UNIQUE KEY `id` (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `translate_languages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `file` varchar(4) NOT NULL, ...
true
719ef437c6de5b7208f8c5b093e455a9a720f3bc
SQL
elodiebhs/-BootcampX
/1_queries/nonGmailStudents.sql
UTF-8
162
3.1875
3
[]
no_license
---Get all of the students without a gmail.com or phone number SELECT name, email, id, cohort_id FROM students WHERE phone IS NULL OR email NOT LIKE '%gmail.com';
true
9cb073247789cb4797680fce91bff0ff8385be09
SQL
venkateshvangala/spring-security-poc
/src/main/resources/database/create_tables.sql
UTF-8
3,225
3.921875
4
[]
no_license
-- -- Schema for `users` -- drop table if EXISTS 'sp_users'; create table sp_users( id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, user_name VARCHAR(100) UNIQUE NOT NULL, first_name VARCHAR(100) NOT NULL, middle_name VARCHAR(100) NOT NULL, last_name VARCHAR(100) NOT NULL, mobile INT(15) UNIQUE NOT NULL, email ...
true
b4717f1435f57b066f676604f7b0d2365fc97df5
SQL
fimad/pifuxelck
/sql/migrate-007-008.sql
UTF-8
465
3.40625
3
[ "Apache-2.0" ]
permissive
-- ----------------------------------------------------------------------------- -- Pifuxel Migrate v7-v8 -- -- mysql -h $HOST -u $USER --password $DB < migrate-007-008.sql ALTER TABLE Accounts ADD game_count INT(11) NOT NULL DEFAULT 0; UPDATE Accounts INNER JOIN ( SELECT Accounts.id AS id, SUM(1) AS game...
true
f2f1920db177897cd34ddd8ea720a71dd3d4fcd2
SQL
fongie/CurrencyConverter
/currencyconverter/src/main/resources/schema.sql
UTF-8
1,156
3.890625
4
[]
no_license
CREATE DATABASE IF NOT EXISTS currency_db; USE currency_db; CREATE TABLE IF NOT EXISTS `currency` ( abbreviation VARCHAR(3) PRIMARY KEY, name VARCHAR(30) ); CREATE TABLE IF NOT EXISTS `rate` ( id INTEGER AUTO_INCREMENT PRIMARY KEY, from_abbreviation VARCHAR(3) NOT NULL, to_abbreviation VARCHAR(3) ...
true
5c8a52d8ef8d61b19e73045c5c3d350f37416e68
SQL
sprokushev/Delphi
/MASTER/_DATABASE/Constraints/PAYMENTS_TO_BILLS_FK.sql
UTF-8
431
3.265625
3
[]
no_license
-- -- Foreign Key Constraints for Table PAYMENTS_TO_BILLS -- ALTER TABLE MASTER.PAYMENTS_TO_BILLS ADD ( CONSTRAINT PAYMENTS_TO_BILLS_FK1 FOREIGN KEY (NOM_DOK) REFERENCES MASTER.BILLS (NOM_DOK) ON DELETE CASCADE ENABLE NOVALIDATE); ALTER TABLE MASTER.PAYMENTS_TO_BILLS ADD ( CONSTRAINT PAYMETS_TO_BILLS_...
true
9e117978812f9e7dda0ab4f92fe35bd1ee31733e
SQL
walquiriosaraiva/crudlogin
/banco_dados.sql
UTF-8
611
2.65625
3
[]
no_license
create table contatos ( id int unsigned auto_increment primary key, nome varchar(80) not null, telefone varchar(20) default null, email varchar(80) default null ); create table usuario ( id int unsigned auto_increment primary key, usuario varchar(200) not null, senha varchar(200) not null, ...
true
11d4455d3eefdfce539e9a03adefac617e7323ca
SQL
tasokinnas/JavaWebApp
/bug-tracker/SAMPLE_QUERIES.sql
UTF-8
898
4.15625
4
[]
no_license
--PROJECT SAMPLE QUERIES --QUERY 1: A list of the top 20 users to whom fixed the most bugs. SELECT debugger_id count(bug_id) AS Total_bugs_fixed FROM bugs JOIN Milestones USING (milestone_id) WHERE description = 'complete' GROUP BY debugger_id ORDER BY Total_bugs_fixed DESC LIMIT 20; --QUERY 2: A list of bugs that c...
true
68748039174d8f7a3aa37cff44d92606b079ff9d
SQL
stalkervr/javamentor-jpa-demo
/src/main/resources/db/migration/V20210608_1233__book_genres.sql
UTF-8
217
3.8125
4
[]
no_license
create table book_genres( book_id BIGINT NOT NULL, genre_id BIGINT NOT NULL, FOREIGN KEY (book_id) REFERENCES books(id), FOREIGN KEY (genre_id) REFERENCES genres(id), UNIQUE (book_id, genre_id) );
true
c6d2a8903904c98bfd6650118ebcb952f802a412
SQL
kittenman29/Algo-Problems
/SQL_Problems/revising_the_select.sql
UTF-8
396
3.515625
4
[ "MIT" ]
permissive
-- Query the names of all American cities in CITY with populations larger than 120000. The CountryCode for America is USA. -- Input Format -- The CITY table is described as follows: SELECT NAME FROM CITY WHERE COUNTRYCODE = 'USA' AND POPULATION > 120000; /* Enter your query here. Please append a semicolon ";" at t...
true
b106b4a4701c6df9d7840863fd1febca3a04ac92
SQL
jeancharlesgraillot/eCommerce_JuPi_to_JCP
/bdd_pierre_julie.sql
UTF-8
3,467
3.25
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost -- Généré le : mar. 25 sep. 2018 à 10:14 -- Version du serveur : 5.7.23-0ubuntu0.18.04.1 -- Version de PHP : 7.2.10-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_z...
true
84322c1c207d0e78ab1efdc263d418ee3767ff41
SQL
letingoo/csgsim
/dbscript/procedures/writealarmprobablecause.sql
GB18030
2,021
2.75
3
[]
no_license
----------------------------------------------- -- Export file for user SDEMU -- -- Created by qiaofeng on 2011-9-7, 15:54:48 -- ----------------------------------------------- spool WRITEALARMPROBABLECAUSE.log prompt prompt Creating procedure WRITEALARMPROBABLECAUSE prompt ============================...
true
8fec53ff288415602508dfd98d4e412166f2dc8a
SQL
bellmit/ws
/0 项目文档/.svn/pristine/3e/3e21333a42937d4637fc7a401d20e9b6e295aa4f.svn-base
UTF-8
2,632
2.953125
3
[]
no_license
CREATE TABLE "LIFE".t_member_0910 ( "ID" NUMBER(9) NOT NULL, user_name VARCHAR2(30 BYTE), user_pass VARCHAR2(50 BYTE), email VARCHAR2(50 BYTE), real_name VARCHAR2(50 BYTE), terminal_id VARCHAR2(20 BYTE), reg_time VARCHAR2(14 BYTE), status CHAR, update_time VARCHAR2(14 BYTE), vid VARCHAR2(50 BYTE), ...
true
48cd84f472c1837dccf224bb36ee7bfaa26fb4b9
SQL
FatemehTorabi/Case_Control_matching
/04a_create_dacvap_cc.sql
UTF-8
5,542
3.765625
4
[]
no_license
----------------------------------------------------------- --DacVap: Vaccine Safety --BY: fatemeh.torabi@swansea.ac.uk --DT: 2021-04-08 --aim: match cases to controls ----------------------------------------------------------- --------------------------------------------------------------- -- stage 1: get all el...
true
9e285d31e9a09853963dee341a5291d485b47ae4
SQL
goodyoyo0214/-CS412-Intro-to-Data-mining
/HW2/Q2.sql
UTF-8
483
3.390625
3
[]
no_license
use HW2; select * from business; select distinct City, Category, Rating, Price,count(*) from business group by City, Category, Rating, Price; select distinct state, Category, Rating, Price,count(*) from business group by state, Category, Rating, Price; select state, Rating, Price, count(*) from business where Sta...
true
1c78e97b686644305ef114c1a495899f36ff1524
SQL
alibaba/canal
/parse/src/test/resources/ddl/alter/test_38.sql
UTF-8
2,935
2.734375
3
[ "Apache-2.0" ]
permissive
CREATE TABLE `tb_axmikqwoki` ( `col_emfohlohwo` bit NULL, `col_ubwarukvbl` tinyint(141) unsigned zerofill NOT NULL, `col_amwzbhvmje` numeric NOT NULL DEFAULT '1', `col_qrklyrbbgp` time(6) NOT NULL, UNIQUE `uk_bbaanqoyjv` (`col_qrklyrbbgp`), UNIQUE KEY `col_amwzbhvmje` (`col_amwzbhvmje`) ) ENGINE=InnoDB DEFA...
true
d8f5f9a142328ce5315a65cdf729b972f00c7e96
SQL
sshyran/lithium
/tests/mocks/data/source/database/adapter/mysql_companies.sql
UTF-8
186
2.53125
3
[]
permissive
CREATE TABLE IF NOT EXISTS `companies` ( `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(255), `active` tinyint(1), `created` datetime, `modified` datetime );
true
dc9385c2dafd315f6b00e7f2e747fef5ba562c6b
SQL
Markusstr/Olio-ohjelmointi-harjoitustyo
/Documents/DatabaseFoodSchema.sql
UTF-8
2,966
3.4375
3
[]
no_license
CREATE TABLE "userIDs" ( "username" TEXT NOT NULL PRIMARY KEY, "nickname" TEXT NOT NULL, "password" TEXT NOT NULL, "salt" BLOB NOT NULL, "homeUniId" INTEGER, "admin" INTEGER NOT NULL CHECK("admin" = 0 or ("admin" = 1)) ); CREATE TABLE "university" ( "uniId" INTEGER NOT NULL PRIMARY KEY, "uniName" TEXT NOT NULL...
true
7e60c9b43f405eb8be0c531b30cdd2208f40053b
SQL
Fifiagustina/UKL19
/ukl19.sql
UTF-8
6,831
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 12, 2019 at 07:08 AM -- Server version: 10.1.19-MariaDB -- PHP Version: 7.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
d6e6996af7db3dd68d2c5ce94a9f4ff5d7d8c409
SQL
baczynski/HurtownieDanych
/DATABASE/SQL/Zrodlo/alter tables.sql
UTF-8
1,126
3.640625
4
[]
no_license
ALTER TABLE customer ADD CONSTRAINT PK_customer PRIMARY KEY(customerid); ALTER TABLE orders ADD CONSTRAINT PK_orders PRIMARY KEY(orderid); ALTER TABLE products ADD CONSTRAINT PK_products PRIMARY KEY(prod_id); ALTER TABLE customer_hist ADD CONSTRAINT FK_CUSTHIST1 FOREIGN KEY (customerid) REFERENCES customer (cust...
true
3b097522b9334340fe03ceb8a6b0f5ce831a297b
SQL
leandrogregorio/agendamentoLab
/banco-atual/bd_agenda_lab(25-04-2018).sql
UTF-8
4,001
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 25-Abr-2018 às 23:41 -- Versão do servidor: 5.7.19-log -- PHP Version: 5.4.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
ea13a8ac07e42f96afb9781bb832f82c8b4122f4
SQL
amt1/Weekdays_Homework
/week_3/cinema_crud_sql_hw/marvel.sql
UTF-8
14,452
3.328125
3
[]
no_license
DROP TABLE movies; DROP TABLE people; CREATE TABLE movies ( id SERIAL8 PRIMARY KEY, title VARCHAR(255), year INT2, show_time VARCHAR(255) ); CREATE TABLE people ( id SERIAL8 PRIMARY KEY, name VARCHAR(255) ); INSERT INTO people (name) VALUES ('Jennifer Archibald'); INSERT INTO people (name) VALUES ('Katha...
true
95934fa2fcd5abca1ddae8766d558ba683a28869
SQL
octoadmin/octomarketing.com
/wp-content/uploads/revisr-backups/revisr_octo_loginizer_logs.sql
UTF-8
2,246
2.96875
3
[]
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 utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SE...
true
5f336182df12df03760580b16d47648b328b3054
SQL
tywari/video_task
/test_2019-03-11.sql
UTF-8
4,041
3
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: local-db-rds.cdjofxpgmsdm.ap-south-1.rds.amazonaws.com (MySQL 5.7.17-log) # Database: test # Generation Time: 2019-03-11 13:12:34 +0000 # *...
true
972f3450fad4f1e2a0f5468be1a2678b3382100d
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day09/select2036.sql
UTF-8
178
2.625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-08T20:36:00Z' AND timestamp<'2017-11-09T20:36:00Z' AND temperature>=15 AND temperature<=40
true
df4f6f6537df500ce23bb858905484e2d688e329
SQL
shvmngi/SQL-Zoo
/6_solutions.sql
UTF-8
3,334
4.09375
4
[]
no_license
-- The Join operation /* 1. The first example shows the goal scored by a player with the last name 'Bender'. The * says to list all the columns in the table - a shorter way of saying matchid, teamid, player, gtime Modify it to show the matchid and player name for all goals scored by Germany. To identify German playe...
true
26fd70e3b13e679e359acf2fe32d35cd8c14cf02
SQL
elmehdirahimi/maquetteDb
/maquette.sql
UTF-8
4,063
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.5deb2 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost -- Généré le : lun. 19 oct. 2020 à 10:13 -- Version du serveur : 10.3.23-MariaDB-1 -- Version de PHP : 7.3.15-3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
true
a7bedbdf3ba87b786fc0eaf26c16ede117b9a126
SQL
a3mon/atrail-map
/src/main/resources/db/V1__initial_schema.sql
UTF-8
6,934
3.484375
3
[ "Apache-2.0" ]
permissive
SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET row_security = off; SET search_path = public, pg_catalog; DROP SCHEMA IF EXISTS public CASCADE; CREATE SCHEMA public; CREATE E...
true
7d9a8d8f1ff21a3ef3cdce212fcbb1a546a48db2
SQL
whypigcanfly/SpringBoot_learn
/springbootserver.sql
UTF-8
672
2.84375
3
[]
no_license
DROP DATABASE IF EXISTS `spring_boot_server`; CREATE DATABASE `spring_boot_server`; USE `spring_boot_server`; DROP TABLE IF EXISTS `userinfo`; CREATE TABLE `userinfo`( userid INT NOT NULL AUTO_INCREMENT, username VARCHAR(64) NOT NULL , password CHAR(32) NOT NULL , addtime INT NOT NULL , status INT NOT NU...
true
cf9b1b5e1507f43a93bd1938299309145f05232b
SQL
TamaraAlonso/Base-de-Datos
/DEBERES SQL/Ejercicio 6 - Borrar la tabla Provincias.sql
UTF-8
362
2.53125
3
[]
no_license
DROP TABLE PROVINCIAS CASCADE CONSTRAINTS; /*Modifica el script SQL anterior, añadiendo al final la sentencia necesaria para borrar la tabla PROVINCIAS. ¿Puedes? ¿Influye el que la tabla PERSONAS este relacionada con ésta mediante una clave foránea?. Razona tu respuesta.*/ --EN ESTE CASO SE PUEDE ELIMINAR PORQUE EST...
true
4bd61ed7298d3a2d1cc1d74e63cbd212f464f892
SQL
lcrescenzo/tccepsilon
/Projeto/SQL/Entidades/GrupoResiduo/sp_GrupoResiduo_i.sql
UTF-8
381
2.953125
3
[]
no_license
USE sgr; DROP PROCEDURE IF EXISTS sp_GrupoResiduo_i; CREATE PROCEDURE sp_GrupoResiduo_i ( p_nome VARCHAR(50), p_idUsuario INT ) BEGIN DECLARE id INT; SET id = fn_CapturaIdentificador('GrupoResiduo'); INSERT INTO sgr.gruporesiduo (idGrupoResiduo, nome) VALUES (id, p_nome); CALL sp_His...
true
7ddcb6df5fcb2ef67636dae936e35510236f673c
SQL
chege-maina/php-erp
/database/tbl_emp_benefit.sql
UTF-8
1,477
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 08, 2021 at 10:10 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
c13180cca98834ce056f0f3ca6cf0fad406b71f2
SQL
simplecomplex/php-database
/tests/src/MsSql/sql/test_scx_mssql.structure.sql
UTF-8
2,996
4.15625
4
[ "MIT" ]
permissive
SET ANSI_NULLS ON; SET QUOTED_IDENTIFIER ON; IF NOT EXISTS ( SELECT [name] FROM sys.databases WHERE [name] = 'test_scx_mssql' ) -- SQLserver uses UTF-8 collation by default. CREATE DATABASE test_scx_mssql; -- @todo: Is USE allowed when already using that? USE test_scx_mssql; IF EXISTS...
true
390bd70cb531368356f985f9b64aab600cbb1887
SQL
Alouie412/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/13-count_shows_by_genre.sql
UTF-8
334
4.1875
4
[]
no_license
-- This script displays the genre name and number of shows that fall under each genre -- Shows without genres are ignored SELECT tv_genres.name AS genre, COUNT(tv_show_genres.genre_id) AS number_of_shows from tv_genres INNER JOIN tv_show_genres ON tv_genres.id = tv_show_genres.genre_id GROUP BY genre ORDER BY number_o...
true
12cc6aa764a5e10c40b1ba7272966e032be858ea
SQL
allwaysoft/Oracle-1
/Database performance tuning/Scripts/pkg_estatisticas/Consultar_StatusGeral_Advanced_BDs.sql
UTF-8
2,581
2.984375
3
[]
no_license
REM @Consultar_StatusGeral_Advanced_BDs.sql PROMPT PROMPT PROMPT PROMPT ************ 2: LISTAGEM DE SQLs ATIVOS C/ TEMPO MEDIO DE EXECUCAO MAIOR QUE DESEJADO ************** SELECT * FROM TABLE(PKG_ESTATISTICAS.FC_RETORNA_TOP_SQL); PROMPT *************************************************************************...
true
3b288d4eb313d09c47fc63ef4efcd1d85348122a
SQL
jocinei3500/sgu
/banco de dados/backup/sgu19.sql
UTF-8
24,039
2.890625
3
[ "MIT" ]
permissive
-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.1.61-community /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNE...
true
a5b7cc771f8b3228927104a2b28d6a0be75ea04f
SQL
Shemetx/restBasics
/persistence/src/main/resources/db/migration/V1__init_migration.sql
UTF-8
1,178
4.40625
4
[]
no_license
create table gift_certificate ( id int auto_increment primary key, name varchar(100) not null, description varchar(255) not null, price float not null, create_date times...
true
cb5b90a0785601fda0150dd62f23f4168d9eae43
SQL
ColoradoTiranti/EstacionShell
/estacion.sql
UTF-8
8,862
3.1875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 10-11-2020 a las 04:53:05 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
51ae2655c3d954c7ebe19001c98037426a85dfca
SQL
FELLSAT/Procedimientos
/Procedimientos/Procedimientos 2/PArte 14 N/H3i_SP_CREAR_ACT_GLOSA.sql
UTF-8
1,889
3.328125
3
[]
no_license
CREATE OR REPLACE PROCEDURE H3i_SP_CREAR_ACT_GLOSA -- ============================================= -- Author: FELIPE SATIZABAL -- ============================================= ( v_CODIGO IN NUMBER DEFAULT 0 , v_RADICADION IN DATE DEFAULT 'GETDATE' , v_GENERA IN DATE, v_IDRADICACION IN NVARCHA...
true
8886c2f2543bffdacc0bd450893d9c814188f688
SQL
abemelvin/tiamat
/ansible/install/roles/payments/scripts/create_table.sql
UTF-8
748
3.015625
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; GRANT ALL ON payment_db.* TO root@10.0.0.21 IDENTIFIED BY 'root'; CREATE TABLE `transactions` ( `transac_id` text NOT NULL, `datetime` datetime NOT NULL, `content` text NOT NULL, `amount` double NOT NULL, `credit_card_no` varchar(25) NOT NUL...
true
399a0d353c2fef13dc7a82fdedc421721cfab7c3
SQL
hiro23trial/dev18_php03
/47.yoshino.sql
UTF-8
950
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Feb 23, 2021 at 01:54 AM -- Server version: 5.7.32 -- PHP Version: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `gs_db` -- -- -----------------------------...
true
95319a7a03fccc8217e5f04a692617f2177b9294
SQL
Stathislyb/VirtualDM
/@DATABASE@/dc_ranks.sql
UTF-8
2,026
3.171875
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 27, 2017 at 10:15 AM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
ba104641fc59abe1db906c8f6ff88eb60c138394
SQL
kemonoske/pl_sql_human_resources_crud
/views/job_history_crud_view.sql
UTF-8
12,844
3.515625
4
[ "Apache-2.0" ]
permissive
--Declare the view package of the application CREATE OR REPLACE PACKAGE job_history_crud_view AS -- --Views for job_history entity PROCEDURE create_job_history; PROCEDURE read_job_history; PROCEDURE update_job_history( p_employee_id varchar2, p_start_date varchar2 ); END; / --...
true
5e9d45772bebc812efe785d1ce52194d79a085c3
SQL
joaogomes95/Blue
/Módulo 2/banco de dados/Script.sql
UTF-8
796
3.484375
3
[]
no_license
create table tbl_Autor ( ID_Autor int not null generated always as identity, Nome_Autor varchar(50) not null, Sobrenome varchar, Data_Nasc date, primary key (ID_Autor) ) create table tbl_Livro( ID_Livro int not null generated always as identity, Nome_Livro varchar(50), ID_Autor int not null, ID_Editoraint int not nul...
true
4dfd7ad841d286b8d10af71df93f9ca7ab5d7941
SQL
walzate/reservas-vuelos
/src/main/resources/reservas-vuelos.sql
UTF-8
1,505
3.5625
4
[]
no_license
-- CREACION DEL USUARIO (LA CLAVE ES: reservas_vuelos) CREATE ROLE reservas_vuelos LOGIN ENCRYPTED PASSWORD 'md5dfb56977134faab574fde0fa87a26dea' NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION; --CREACION DE LA BASE DE DATOS CREATE DATABASE reservas_vuelos OWNER reservas_vuelos; --CREACION DE TABLAS ...
true
297ed123b0974b059728a1f7088df44ed689569d
SQL
Ldrago25/Modelo-Logico-E-R-
/db/inser.sql
UTF-8
7,940
3.109375
3
[]
no_license
-- tipos_dptos INSERT INTO tipos_dptos (nombre) VALUES ('CARRERA'); INSERT INTO tipos_dptos (nombre) VALUES ('APOYO'); --ERROR INSERT INTO tipos_dptos (nombre) VALUES (''); INSERT INTO tipos_dptos (nombre) VALUES ('CIENCIAS'); INSERT INTO tipos_dptos (nombre) VALUES ('apoyo'); SELECT * FROM TIPOS_DPTOS; -- edif...
true
536165aa51d49db85cf51449420b2b9c360acb81
SQL
alejandrojcanepa/SSRS
/appSSRS.Desktop/Third Party Authorization Report/p6uj9a000l1s.sql
UTF-8
6,524
2.640625
3
[]
no_license
SELECT "view_3rd_party_authorization"."insured name" AS [Insured Name], "view_3rd_party_authorization"."carrier" AS [Carrier], "view_3rd_party_authorization"."policy number" AS [Policy Number], "view_3rd_party_authorization"."death benefit" AS [Death Benefit], "view_3rd_party_aut...
true
05d83c6e55e3af7037c215eceba9c9eca3b46232
SQL
Komche/laVoieDesSalaf
/iniger.sql
UTF-8
33,477
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost -- Généré le : mer. 07 oct. 2020 à 18:28 -- Version du serveur : 10.1.30-MariaDB -- Version de PHP : 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
true
6ac56fa0a775c615cb411ad69a56de53a4c18c66
SQL
Polus-Software/VUCoeus
/VU_UPD_PROPOSAL_APPROVED_SUBS.sql
UTF-8
2,686
3.09375
3
[]
no_license
CREATE OR REPLACE PROCEDURE COEUS.VU_UPD_PROPOSAL_APPROVED_SUBS ( AV_PROPOSAL_NUMBER IN OSP$PROPOSAL_APPROVED_SUB.PROPOSAL_NUMBER%TYPE := NULL, AV_SEQUENCE_NUMBER IN OSP$PROPOSAL_APPROVED_SUB.SEQUENCE_NUMBER%TYPE := NULL, AV_SUBCONTRACTOR_NAME IN OSP$PROPOSAL_APPROVED_SUB.SUBCONTRACTOR_NAME%TYPE := NU...
true
8b1f960a3882c3c8b2ca274f74333f8b1174b203
SQL
kimjjing1004/MySQL
/sakila/MySQL_query10.sql
UTF-8
851
3.953125
4
[]
no_license
# 10. 영화 'AGENT TRUMAN' 를 보유하고 있는 매장의 정보를 아래와 같이 출력함. # 영화제목, 매장ID, 매장staff first_name, 매장staff last_name, 매장의 address, address2, # district, city, country, 해당 타이틀 "보유수량" select FL.title, ST.store_id, SF.first_name, SF.last_name, AD.address, AD.address2 , AD.district, CT.city, CU.country, count(FL.title) as "보유수량" f...
true
35c58b10cd5b99dbc6c5afe32262a386a3479d39
SQL
hadziqmtqn/BELAJAR-PHP
/buat_database/artikel.sql
UTF-8
5,516
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0-3.fc34.remi -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Waktu pembuatan: 31 Bulan Mei 2021 pada 09.12 -- Versi server: 10.5.10-MariaDB -- Versi PHP: 7.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
true
e0089f573459e7d0a5a61d4b5d00047ab42c4c89
SQL
razafaraz/CS353
/SQL/Data Rows For Testing/channelTestData.sql
UTF-8
2,303
3.5625
4
[]
no_license
/* create table channel( ID int(10) unsigned primary key auto_increment, name varchar(32) not null, description varchar(140), userID int(10) unsigned, since timestamp, foreign key (userID) references user(ID)) ENGINE=InnoDB DEFAULT CHARSET=latin1; */ INSERT INTO channel VALUES( '500000000', -...
true
7e96262bb243900508050b6887ce21872046be9f
SQL
dannyrajakarunanayake/ExpenseTrackerAPI
/prisma/migrations/20210809013052_/migration.sql
UTF-8
537
3.1875
3
[]
no_license
/* Warnings: - A unique constraint covering the columns `[uuid]` on the table `User` will be added. If there are existing duplicate values, this will fail. - The required column `uuid` was added to the `User` table with a prisma-level default value. This is not possible if the table is not empty. Please add this...
true
4bedbf9f24eae6c064c89185d7c40c5393adfb3d
SQL
zunhua5201314/fx-falsework
/server/sql/EMSHIS_IPSM_DBA_base_group_leader.sql
UTF-8
1,863
2.875
3
[ "Apache-2.0" ]
permissive
create table base_group_leader ( id INTEGER not null constraint INDEX33557423 primary key, group_id INTEGER, user_id INTEGER, description VARCHAR(255), crt_time TIMESTAMP(26,6), crt_user VARCHAR(255), crt_name VARCHAR(255), crt_host VARCHAR(255), upd_time TIMESTAMP(26,6), upd_user VARCHAR(255), upd_name...
true
6fb3cfec740288b800bcd0a13698170ace6b97e3
SQL
davidosantos/clients_info
/web/postgressql.sql
UTF-8
4,163
3.59375
4
[]
no_license
CREATE SEQUENCE clientes_seq; CREATE TABLE clientes ( cliente_id INT NOT NULL DEFAULT NEXTVAL ('clientes_seq'), codigo VARCHAR(15) NOT NULL, nome VARCHAR(50) DEFAULT NULL, email VARCHAR(50) DEFAULT NULL, endereco VARCHAR(255) DEFAULT NULL, cidade VARCHAR(50) DEFAULT NULL, estado VARCHAR(50) DEFAULT NUL...
true
2f64a9f5c648df24b8a63f338b013171c3c64e24
SQL
ducksfrogs/udemy_jp_sql
/COMBINE_TABLES.sql
UTF-8
602
3.171875
3
[]
no_license
SELECT users.id, users.last_name, users.first_name, prefectures.name FROM users inner join prefectures on users.prefecture_id = prefectures.id; SELECT u.id, u.last_name, u.first_name, p.name FROM users as u inner join prefectures as p on u.prefecture_id = p.id; SELECT u....
true
d20e55c40eabd8f451a2e38d849afeb6866fc6cd
SQL
johatfie/Books_I_Have_Read
/tables.sql
UTF-8
588
3.25
3
[ "BSD-3-Clause" ]
permissive
drop table if exists book; drop table if exists author; drop table if exists book_author; create table book( book_id INT NOT NULL AUTO_INCREMENT, title VARCHAR(200) NOT NULL, duration INT, PRIMARY KEY ( book_id ) ); create table author( author_id INT NOT NULL AUTO_INCREMENT, f...
true
09dcea2bf07ee0c6d8e3ed8fe38bed36b145291a
SQL
kazenetu/tiny-jaxrs
/sql/postgresql_MT_USER.sql
UTF-8
290
2.828125
3
[]
no_license
-- PostgreSQL用ユーザーテーブル作成DDL create table MT_USER ( USER_ID VARCHAR(30) , NAME VARCHAR(30) , PASSWORD VARCHAR(30) , DATE_DATA date , TIME_DATA time without time zone , TS_DATA timestamp without time zone , constraint MT_USER_PKC primary key (USER_ID) ) ;
true
0b700cbd791dada622ae64289188c44b7af09055
SQL
buckliu/test
/O2Omall/Install/data/1/wst_log_orders.sql
UTF-8
996
2.859375
3
[]
no_license
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `wst_log_orders` -- ---------------------------- DROP TABLE IF EXISTS `wst_log_orders`; CREATE TABLE `wst_log_orders` ( `logId` int(11) NOT NULL AUTO_INCREMENT, `orderId` int(11) NOT NULL, `logContent` varchar(255) NOT NULL, `logU...
true
eaebbfc793020bc7937ff5784d0b356a2ee1fc32
SQL
Reyes213/Nicolas2-Victor2
/src/script_sql.sql
UTF-8
529
3
3
[]
no_license
CREATE DATABASE RESTAURANTE; USE RESTAURANTE; CREATE TABLE `restaurante`.`produtos` ( `id` INT NOT NULL AUTO_INCREMENT, `cod_produto` INT NOT NULL, `descricao` VARCHAR(100) NOT NULL, `tipo` VARCHAR(45), `preco` DECIMAL(10,2) NOT NULL, PRIMARY KEY (`id`)); INSERT INTO PRODUTOS (id, cod_produto, descric...
true
d983feb6516548a26301de418376691cfbfb6b48
SQL
amenalseady11/cpms
/database/seeds/sql/departments.sql
UTF-8
6,105
2.875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 117.53.46.38 Source Server Version : 50561 Source Host : 117.53.46.38:3306 Source Database : zadmin_qs Target Server Type : MYSQL Target Server Version : 50561 File Encoding : 65001 Date: 2019-01-24 07:47:36 */ SET FOREIGN_KEY_CHECKS=...
true
81e4e69863a592fc3323a049cbc6ed64ffa0a077
SQL
dyhmzall/sql
/lesson6/task1/task1.sql
UTF-8
1,071
3.828125
4
[]
no_license
-- Проанализировать запросы, которые выполнялись на занятии, -- определить возможные корректировки и/или улучшения (JOIN пока не применять). -- можно немного изменить запрос (Начинаем создавать архив новостей по месяцам) -- чтобы разбить новости не только по месяцам, но и по годам SELECT COUNT(id) AS media -- груп...
true
ddfe49f428ab050ada39b1aa56c74c3346240f6b
SQL
THodgkin/RappFinexx
/FinanceTrackerPRD/dbo/Views/qryEventDate.sql
UTF-8
1,093
2.984375
3
[]
no_license
CREATE VIEW qryEventDate as SELECT qryEC.event_id ,qryEC.InstanceID ,case when qryEC.period_type_id = 'd' then DateAdd(day,([qryEC].[InstanceID]*[qryEC].[period_frequency])-[qryEC].[period_frequency],[qryEC].[event_start]) when qryEC.period_type_id = 'ww' then DateAdd(week,([qryEC].[InstanceID]*[qryEC].[period_fre...
true
1fbe00b554ede9ed07ee39c308454da606c1e1a7
SQL
devatsrs/neon.web
/dbv-1/data/schema/tblContact.sql
UTF-8
1,942
2.703125
3
[ "MIT" ]
permissive
CREATE TABLE `tblContact` ( `ContactID` int(11) NOT NULL AUTO_INCREMENT, `CompanyId` int(11) DEFAULT NULL, `AccountID` int(11) DEFAULT NULL, `Title` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `Owner` int(11) DEFAULT NULL, `Department` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `NamePrefix`...
true
10299e29ddcdc53da706f5c17772e1d0e58e7be1
SQL
marinfotache/Database-Logic-in-Business-Applications
/06_Triggers/06-00-2_fixed_DDL_script_sales_2015.sql
UTF-8
11,632
3.25
3
[]
no_license
-- Generated by Oracle SQL Developer Data Modeler 4.1.1.888 -- at: 2015-11-18 07:50:11 EET -- site: Oracle Database 12c -- type: Oracle Database 12c -- and fixed by MF DROP TABLE cancelled_invoices CASCADE CONSTRAINTS ; DROP TABLE counties CASCADE CONSTRAINTS ; DROP TABLE current_conta...
true
1b5d60bf8e0829dc6e121196e7467115639c5e7f
SQL
shurup312/accessories
/protected/data/backup_db/28.01.2014/accessories/module_type.sql
UTF-8
1,530
3.0625
3
[]
no_license
-- -------------------------------------------------------- -- Host: -- Server version: 5.6.11 - MySQL Community Server (GPL) -- Server OS: Win32 -- HeidiSQL version: 7.0.0.4053 -- Date/time: 2014-01-31 17:52:35 -- ----------------...
true
e1698112e7f916227e9c040a59c84fd598af0fc2
SQL
mapntc/tarefa-2
/Script.sql
UTF-8
2,247
3.46875
3
[]
no_license
use db_hotel; CREATE TABLE `tb_hospede` ( `id_hospede` int NOT NULL AUTO_INCREMENT, `nm_hospede` varchar(90) NOT NULL, `dt_nascimento` date DEFAULT NULL, `cpf` int DEFAULT NULL, PRIMARY KEY (`id_hospede`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; CREATE TABLE `tb_hotel` ( `id_hot...
true
b6d861939507e77c46e2028642889fcedc81c80a
SQL
dgladowski/repo
/2a/sql/szkola/szkola.sql
UTF-8
660
3.28125
3
[]
no_license
DROP TABLE IF EXISTS oceny; CREATE TABLE oceny ( IDucznia INTEGER, Ocena INTEGER, Data DATE, IDprzedmiotu INTEGER, FOREIGN KEY (IDprzedmiotu) REFERENCES przedmioty(IDprzedmiotu), FOREIGN KEY (IDucznia) REFERENCES uczniowie(IDucznia) ); DROP TABLE IF EXISTS przedmioty; CREATE TABLE przedmioty ( ...
true