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
e1b7bef7ddefd7b80c421b740c76c0bd8e09b1ad
SQL
MadVitaliy/trpz_2_all_labs
/Lab2/Lab2.sql
WINDOWS-1251
8,294
3.734375
4
[]
no_license
use Lab1ClassWork; --1 select * from Discipline; select * from StudyGroup; select * from Position; --2 select distinct Surname +' '+ Name +' '+ Patronymic as "", Oklad from Employee; --3 select DateExam, Mark, StudentId, EmployeeId from Exam; --4 select Surname +' '+ Name +' '+ Patronymic as "", Stipendia, RecordBook...
true
15dc5045eaca4b728d8d326bf91160ea67df0cbb
SQL
shaqtee/adi_scafolding
/storage/laratrust26-7.sql
UTF-8
26,454
2.953125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 25, 2021 at 09:33 PM -- Server version: 10.5.10-MariaDB-log -- PHP Version: 7.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER...
true
5162eb6c1fd04fe07dd74a35c681fca6e0d09d44
SQL
sblashuk/epam-cource-cinema
/src/main/resources/sql/insert-data.sql
UTF-8
1,520
2.921875
3
[]
no_license
INSERT INTO auditorium (name, number_of_seats) VALUES ('Small', 50), ('Big', 100); INSERT INTO event_rating (name) VALUES ('LOW'), ('MID'), ('HIGH'); INSERT INTO event (name, base_price, event_rating_id) VALUES ('Kingsman 2', 5.0, 1); INSERT INTO role (role_name) VALUES ('admin'), ('user'), ('manag...
true
cf7dbcd3f2587e2f9a76190178e1e267e508f4f7
SQL
Naudar79/www
/php-training-mysql/reunion_island.sql
UTF-8
807
3.5625
4
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; -- -- Base de données : `becode` -- -- -------------------------------------------------------- -- -- Structure de la table `hiking` -- CREATE TABLE `hiking` ( `id` int(11) NOT NULL, `name` varchar(400) NOT...
true
7887f33011f682ce5f89daf6537a6e6f61ff41a6
SQL
rexfordcode/codefights
/databases/queriesExecution.sql
UTF-8
2,561
4.0625
4
[]
no_license
/* https://app.codesignal.com/arcade/db/exotic-dishes/Mxv2EhqjsGs3oPkNG You're working at a company that sells handmade toys. You're supposed to write a monthly report for your managers about how the company is doing. It takes a lot of time to create these reports manually, so you decided to write a function that will...
true
ef126889129c87ba71f8c5dd26dee65ea30d5b9b
SQL
liwen666/lw_code
/tempcode/src/main/java/commons/execscript/sql/bgt/common/common_239_.sql
GB18030
18,563
3.234375
3
[]
no_license
CREATE OR REPLACE PROCEDURE IND_SP_ZYAuditSumProc(v_TaskID varchar2,v_DestModelID varchar2,v_AgencyID varchar2) AS v_RelaTableName varchar2(32); v_UserManaDistrict varchar2(32); v_AuditTypeID varchar2(32); v_ModelID varchar2(32); -- v_TaskBudgetLevel varchar2(10); v_SQL varchar2(30000); v_sql2 varchar2(500...
true
867c9401a1699eff04d82790a131cf4959ecfb68
SQL
xt-coder/sina-services
/sina-dao/src/main/java/cc/pp/sina/dao/weirenwu/bozhu_price.sql
UTF-8
2,438
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 2014-03-12 14:26:38 -- 服务器版本: 5.5.34-MariaDB-log -- PHP Version: 5.5.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
125b75d1b6ede0ceaaff67b011216e8b4b26c791
SQL
PS2Solutions/Cars_DataBase
/DML/UpdateQuotMaterialDetails.sql
UTF-8
355
2.65625
3
[]
no_license
DELIMITER $$ CREATE PROCEDURE `UpdateQuotMaterialDetails`(IN `QuoteID` INT(11), IN `MaterialID` INT(11), IN `UnitRate` decimal(10,3), IN `Quantity` INT(10), IN `Amount` decimal(10,3)) BEGIN INSERT INTO quotationdetails(QuotationID, MaterialID, UnitRate, Quantity, Amount) VALUES(QuoteID, MaterialID, UnitRate, Quan...
true
c09774b24fb4161eb088ef9645b2bd83393d4cef
SQL
jaimersoncorreia/bdii
/lista02/lista02.sql
UTF-8
423
3.34375
3
[]
no_license
#a select P.nome, P.cpf, P.email, I.data, I.tipo_inscricao_id, I.codigo from participante_inscricao I join participante P on (I.participante_id = P.id) limit 5; select P.nome, P.cpf, P.email, I.data, I.tipo_inscricao_id, I.codigo from participante_inscricao I join participante P on (I.participante_id = P.id) limit 5; ...
true
be900891fcea6fae9bc293a7b4be19c3d7938db6
SQL
e1313326363/Centro-de-rehabilitacion-de-Alcoholismo-y-Drogadiccion_2
/Clinica_script.sql
UTF-8
23,432
3.34375
3
[]
no_license
/*==============================================================*/ /* DBMS name: PostgreSQL 8 */ /* Created on: 16/11/2021 1:29:48 */ /*==============================================================*/ /*==========================================...
true
af0a17e1659b63508e78819cc97e1e5a16fadee8
SQL
mattias/go-pcdsh
/migrations/2_create_log_attributes_table.sql
UTF-8
292
3.109375
3
[]
no_license
-- +migrate Up CREATE TABLE log_attributes ( id int not null auto_increment, log_id int not null, `key` varchar(255), value varchar(255), primary key (id), index (`key`), index (value ), foreign key (log_id) references logs(id) ); -- +migrate Down DROP TABLE log_attributes;
true
f1b3bb1eaf73e59dd956c0172cacc678542485c8
SQL
AlysterF/sql_murder_mystery
/scripts.sql
UTF-8
1,531
4.03125
4
[]
no_license
--SQLite used directly in the challenge website (https://mystery.knightlab.com/) --Recover the crime scene report SELECT * FROM crime_scene_report WHERE date = 20180115 AND city = "SQL City" AND type = "murder"; --Finding the first witness SELECT * FROM person WHERE address_street_name = "Northwestern Dr"...
true
75dea0cbc61beeb9e77eafa834c81cb9d9198ec0
SQL
ebrahimsalehi1/frontend_projects
/SQL/Alikonjkav/code.sql
UTF-8
362
3.8125
4
[]
no_license
-- Section1 select id from users where nick like 'am%' order by id -- Section2 select from_user_id from relations group by from_user_id order by 1 -- Section3 select id from messages where (from_user_id,to_user_id) not in ( select from_user_id,to_user_id from relations where blocked=true ) and deleted_at is not...
true
afa30160247e605396d6bc7726b3ed47ed08a14a
SQL
christiantriadataro/Pharmacy-Managament-System
/pharmacydb.sql
UTF-8
3,477
3.40625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 10, 2021 at 04:58 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
44af155858e19b52b87a4869cd6113cbc2320821
SQL
DalavanCloud/hawq
/src/test/regress/sql/goh_gphdfs.sql
UTF-8
9,526
3.375
3
[ "MIT", "BSD-4-Clause-UC", "BSD-3-Clause", "ISC", "bzip2-1.0.6", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "BSD-4-Clause", "Artistic-2.0", "PostgreSQL", "LicenseRef-scancode-unknown" ]
permissive
\c hdfs -- -- Create demoprot (for testing) -- CREATE OR REPLACE FUNCTION write_to_file() RETURNS integer as '$libdir/gpextprotocol.so', 'demoprot_export' LANGUAGE C STABLE; CREATE OR REPLACE FUNCTION read_from_file() RETURNS integer as '$libdir/gpextprotocol.so', 'demoprot_import' LANGUAGE C STABLE; DROP PROTOCOL IF ...
true
f5d9e8611d82395249ac32faf5184fc3ee9cbf29
SQL
ciscucordo/escacsvdt
/bd/BASEDADES_ESCACSVDT_MYSQL.sql
UTF-8
11,008
3.59375
4
[]
no_license
/*per connectar a la bd root dins el SHELL: SHELL>mysql --host=localhost --user=root --password=anderssenvsk12 escacsvdt */ /*per connectar a la bd escacsvdt dins el SHELL: SHELL>mysql --host=localhost --user=escacsvdt --password=escacsvdt escacsvdt */ /*-------------------------------INICI executar des de ...
true
3166b9c7cc1aed2bfd60ff54e1afc1f07597a59b
SQL
eniko50/proba
/materijal/22_Baze_podataka_2/zadaci/student.sql
UTF-8
1,941
3.6875
4
[]
no_license
DROP DATABASE vp; CREATE DATABASE vp; USE vp; create table student ( id integer auto_increment, br_indeksa varchar(10) not null, ime varchar(100) not null, prezime varchar(100) not null, primary key (id) ); create table predmet ( id integer auto_increment, naziv varchar(200) not null, primary key(id) ); c...
true
66a88b7e7bb32727ed516d55c1b62521b3ff7599
SQL
manikandanganesh2791/StudentApplication
/ddl-scripts02.sql
UTF-8
8,265
2.75
3
[]
no_license
/* Source-Staging of admissions_info */ CREATE TABLE `Stg_admissions_info` ( `application_id` INT(10) UNSIGNED NOT NULL DEFAULT '0', `creation_date` CHAR(10) CHARACTER SET utf8 DEFAULT NULL, `last_updated_date` CHAR(10) CHARACTER SET utf8 DEFAULT NULL, `submitted_date` CHAR(10) CHARACTER SET utf8 DEFAUL...
true
03b226a19937b82992818c1c4dd17375b67cb7d3
SQL
JaviCodx/cs50x
/pset7/movies/9.sql
UTF-8
153
3.578125
4
[]
no_license
SELECT name FROM people WHERE id IN ( SELECT stars.person_id FROM stars JOIN movies ON stars.movie_id = movies.id and movies.year = 2004) ORDER BY birth
true
633025a7fe86b560acc857e1936f2f6c0f6742f9
SQL
monti773/bamazon
/schema.sql
UTF-8
1,317
3.390625
3
[]
no_license
CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products ( item_id INT(100) AUTO_INCREMENT, product_name VARCHAR(40) NOT NULL, department_name VARCHAR(40) NOT NULL, price DECIMAL(10,2) NOT NULL, stock_quantity INT(100) NOT NULL, product_sales DECIMAL(10,2) NOT NULL, PRIMARY KEY (item_id...
true
7f18b6715ed35f2ccc4e5c8c172c9d309f199815
SQL
giggals/Csharp
/Joins, Subqueries, CTE and Indices/10. Employees Summary/SQLQuery1.sql
UTF-8
328
3.9375
4
[ "MIT" ]
permissive
SELECT TOP(50) e.EmployeeID , e.FirstName + ' ' + e.LastName AS EmployeeName, m.FirstName + ' ' + m.LastName AS ManagerName , d.[Name] AS DepartmenName FROM Employees AS e JOIN Employees AS m ON m.EmployeeID = e.ManagerID JOIN Departments AS d ON d.DepartmentID = e.DepartmentID ORDER BY e.Em...
true
7354ea21cd0250eaf654289b21b5f4a8b149c2ea
SQL
daniel2483/SQLPractice
/queries/SQL_Create_Report.sql
UTF-8
1,167
2.984375
3
[]
no_license
-- -------------------------------------------------------------------------------- -- Routine DDL -- Note: comments before and after the routine body will not be stored by the server -- -------------------------------------------------------------------------------- DELIMITER $$ CREATE DEFINER=`root`@`%` PROCED...
true
0e530548ed508824173bcbb5916896fb54d1a85a
SQL
bborzechowski/spring-database-auth-basic
/src/main/resources/start.sql
UTF-8
589
2.734375
3
[]
no_license
-- roles insert into role(role_id, role) values (1, 'ADMIN'); insert into role(role_id, role) values (2, 'USER'); -- users insert into user(id, active, email, lastname, login, name, password) values (1, 1, 'teges@mail.com', 'Nowak', 'admin', 'Stefan', '$2a$10$z7iFcwS4VpDYYb82VZVsl.11EmMqlQUpNv.Ukz4w5Cyulva5nq45q'); ...
true
8e338c7964c9b5576e808e99be1e0faa919b42d6
SQL
crypteaux/CSCI_5125
/queries/04.sql
UTF-8
236
2.859375
3
[]
no_license
SELECT name, title FROM person NATURAL JOIN works NATURAL JOIN job NATURAL JOIN job_profile WHERE name = 'Daniel DeKerlegand' UNION SELECT name, title FROM person NATURAL JOIN worked NATURAL JOIN job NATURAL JOIN job_profile WHERE name = 'Daniel DeKerlegand';
true
3fcce85c882beac7f71560bf68b3b92e648ab5f5
SQL
danstowell/solar-panel-detection
/db/fit.sql
UTF-8
1,268
3.5
4
[]
no_license
/* ** Create table containing fit dataset */ \echo Creating fit table ... drop table if exists raw.fit; drop table if exists fit; create table raw.fit ( fit_id int, extension char(1), postcode_stub varchar(7), technology varchar(24), installed_capacity float...
true
c116412e3894ced968b58871809b8b437fb8e585
SQL
BAEintelli/TIL
/quiz 1.sql
UTF-8
1,404
4.1875
4
[ "MIT" ]
permissive
#1. country 테이블에서 중복을 제거한 Continent를 조회하세요. SELECT DISTINCT(Continent) FROM country #2. 한국 도시중에 인구가 100만이 넘는 도시를 조회하여 인구순으로 내림차순하세요. SELECT * FROM city WHERE CountryCode="KOR" AND Population > 1000000 ORDER BY Population DESC #3. city 테이블에서 population이 800만 ~ 1000만 사이인 도시 데이터를 인구수순으로 내림차순하세요. SELECT * FROM city WHERE...
true
806b4f70f980be475eee79b9f96c47b657d1a554
SQL
c-eng/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/13-count_shows_by_genre.sql
UTF-8
221
3.859375
4
[]
no_license
-- Display genres and number of shows linked to genre SELECT name, count(*) AS number_of_shows FROM tv_genres INNER JOIN tv_show_genres ON tv_genres.id=tv_show_genres.genre_id GROUP BY name ORDER BY number_of_shows DESC;
true
3ca7ce832e44b2b265380badea74d370dccfc04c
SQL
yanoandri/SalesOrder-Pro
/PFSHelper.DataAccessLayer/dbFrameworkPFS/dbFrameworkPFS/dbo/Stored Procedures/uspTMPT_FirstStagingPscRmwCipDelete.sql
UTF-8
865
2.625
3
[]
no_license
 /*********************************************************************************************************************** Copyright (c) 2015 PT Profescipta Wahanatehnik. All Rights Reserved. This software, all associated documentation, and all copies DESCRIPTION Name : uspTMPT_FirstStagingPscRmwCipDelet...
true
bb91609a578ae265e50adc7a33a68a8f4c53bf6a
SQL
Al-ta-iR/yandex.praktikum
/09_ data_extraction/04.sql
UTF-8
236
3.328125
3
[]
no_license
SELECT festival_name AS festival_name, extract(WEEK FROM festival_date) AS festival_week FROM festivals WHERE festival_city = 'Москва' AND festival_date < '2018-09-30' AND festival_date > '2018-07-23'
true
784a447d36583f65163f8b179c57a4ec28e541a2
SQL
DamonWcl/jeesite
/web/db/db2/filemanager.sql
UTF-8
2,058
3.453125
3
[ "GPL-1.0-or-later", "AGPL-3.0-only", "Apache-2.0", "AGPL-3.0-or-later", "LicenseRef-scancode-other-copyleft" ]
permissive
/* Drop Tables */ DROP TABLE js_filemanager_shared; DROP TABLE js_filemanager_folder; /* Create Tables */ -- 文件管理文件夹 CREATE TABLE js_filemanager_folder ( id varchar(64) NOT NULL, parent_code varchar(64) NOT NULL, parent_codes varchar(1000) NOT NULL, tree_sort decimal(10) NOT NULL, tree_sor...
true
d98883ebfb5042781088912b76ae75f040e1779b
SQL
bluepoet/SimpleBoardService
/board.sql
UTF-8
261
2.53125
3
[]
no_license
CREATE TABLE `board` ( `article_no` INT(11) NOT NULL, `title` VARCHAR(100) NOT NULL, `content` VARCHAR(1000) NOT NULL, `author` VARCHAR(30) NOT NULL, `score` INT(11) DEFAULT '0', PRIMARY KEY (`article_no`) ) ENGINE=INNODB DEFAULT CHARSET=utf8
true
d95489a6c04978579aae56da7e4e2ccb016858fa
SQL
EnsemblGenomes/RNAseqTHS
/make_tables.sql
UTF-8
2,681
3.4375
3
[]
no_license
/* reset existing DB: */ DROP TABLE IF EXISTS CRAMS; DROP TABLE IF EXISTS ORGS; DROP TABLE IF EXISTS AERUNS; DROP TABLE IF EXISTS ENASUBS; DROP TABLE IF EXISTS STUDY; DROP TABLE IF EXISTS SAMPLE; DROP TABLE IF EXISTS ATTRIBUTES; DROP TABLE IF EXISTS NAME_CHECK; /* set up DB: */ CREATE TABLE IF NOT EXISTS CRAMS ( ...
true
d9a426b2bbc6839d3bdbb886df45e5ccc47257af
SQL
xiaeryu/LeetCode
/departmentHighestSalary.sql
UTF-8
748
4.15625
4
[]
no_license
######################################################################### ## LeetCode Number 184 Department Highest Salary ## Problem description can be found here: ## https://leetcode.com/problems/department-highest-salary/ ## MySQL query statement ######################################################################...
true
6b3114693adba589753b1cfbc52b494c6013fad2
SQL
emanuelgostner/flashcardsystem
/src/main/resources/schema.sql
UTF-8
2,320
4
4
[]
no_license
CREATE DATABASE IF NOT EXISTS massedterm; CREATE TABLE IF NOT EXISTS users ( username VARCHAR(128) PRIMARY KEY, password VARCHAR(128) NOT NULL, enabled CHAR(1) CHECK (ENABLED IN ('Y','N') ) NOT NULL ); CREATE TABLE IF NOT EXISTS authorities ( username VARCHAR(128) NOT NULL, authority VARCHAR(128) ...
true
9e8c91f8d657af349d6c8dc4e4ac8ea4e4aef50b
SQL
anishmo99/SQL
/higherThan75Marks.sql
UTF-8
86
2.75
3
[ "MIT" ]
permissive
SELECT NAME FROM STUDENTS WHERE MARKS > 75 ORDER BY SUBSTRING(NAME, -3, 3) ASC, ID ASC
true
98090f346570c8767282448bb45875452beb4451
SQL
mail4deepali/Mangalam
/SQLScripts/2020_02_03_15_29_PunamGhule Created table user_candidate_map.sql
UTF-8
403
3.4375
3
[]
no_license
CREATE TABLE user_candidate_map ( id smallint primary key, user_id smallint, candidate_id smallint ) ; ALTER TABLE public.user_candidate_map ADD CONSTRAINT user_user_id_map_fkey FOREIGN KEY (user_id) REFERENCES public.user_table (id); ALTER TABLE public.user_candidate_map ADD CONSTRAINT user_cand...
true
71f6d5f48831b1efb89fe4ab73e935f4d5a0cc81
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day23/select2227.sql
UTF-8
177
2.6875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-22T22:27:00Z' AND timestamp<'2017-11-23T22:27:00Z' AND temperature>=4 AND temperature<=50
true
f3262dd455f0a2bf87eb37a454b251fdd6b68535
SQL
cem-ege-saygili/CoursePlanner
/inputs/sampleCreateViewQueries/view4.sql
UTF-8
890
3.921875
4
[]
no_license
CREATE VIEW FreshmanCourses_NumClassesForClassTypes AS SELECT c.CourseSubject || ' ' || c.CourseCatalog as "Course Name", cl.ClassComponent as "Class Type", count(*) as "Number of Classes" from Classes cl natural join Class_Course_Infos cci natural join Courses c where c.CourseCatalog < 200 and c.CourseSubject != 'E...
true
4e7d3893f688a1c6e20f7bcc8a60e617e0ce1de2
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day28/select1307.sql
UTF-8
178
2.65625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-27T13:07:00Z' AND timestamp<'2017-11-28T13:07:00Z' AND temperature>=44 AND temperature<=64
true
92c0adcf0ef9f2d67ade65dd5cfa167802720b88
SQL
WilliamSlackBros/EstudosCmdsSql
/exemplo de criacao de tabela.sql
UTF-8
5,315
3.25
3
[]
no_license
CREATE TABLE "DBAMV"."PW_REGISTRO_ALTA" ( "CD_REGISTRO_ALTA" NUMBER(8,0) NOT NULL ENABLE, "DT_REGISTRO_ALTA" DATE, "CD_ATENDIMENTO" NUMBER, "CD_PRESTADOR" NUMBER(12,0), "CD_DOCUMENTO_CLINICO" NUMBER(8,0), "CD_USUARIO" VARCHAR2(30 BYTE), "TP_SITUACAO" VARCHAR2(20 BYTE), "DS_OBS_ALTA" VARCHAR2(2000 B...
true
2166c3a56066731f69b6cd4ec594933e2f4aff19
SQL
zihanbobo/guns-vip
/_docs/_guns_rest_mysql.sql
UTF-8
60,410
3.375
3
[]
no_license
DROP DATABASE IF EXISTS guns; CREATE DATABASE IF NOT EXISTS guns DEFAULT CHARSET utf8 COLLATE utf8_general_ci; USE guns; /* Navicat MySQL Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50727 Source Host : localhost:3306 Source Schema ...
true
ec6a4c71f3bf76b8e487bdd5e1b5a1b8b954ecb4
SQL
ilya5006/excel-parser
/export.sql
UTF-8
6,162
3.3125
3
[]
no_license
— —- — Globals — —- — SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; — SET FOREIGN_KEY_CHECKS=0; — —- — Table 'personal_data_employees' — — —- DROP TABLE IF EXISTS `personal_data_employees`; CREATE TABLE `personal_data_employees` ( `id_employee` MEDIUMINT(5) NOT NULL AUTO_INCREMENT, `first_name` VARCHAR(50) NOT NULL, `secon...
true
9d2fb32e5c2e25d6dea8e43b3526aac140901f32
SQL
Galaraz/SQL_Playground
/mysql-one-for-all/desafio2.sql
UTF-8
259
3.234375
3
[]
no_license
CREATE VIEW estatisticas_musicais AS SELECT COUNT(DISTINCT S.song_id)AS cancoes, COUNT(DISTINCT ART.artist_id) AS artistas, COUNT(DISTINCT ALB.album_id) AS albuns FROM SpotifyClone.songs AS S JOIN SpotifyClone.artists AS ART JOIN SpotifyClone.albums AS ALB;
true
c65f9294a91a6e1f56b1a7e4c68ed7e0df5c0457
SQL
bmillss/PotLuck
/assessment8sql.sql
UTF-8
592
2.828125
3
[]
no_license
create schema potluck; use potluck; create table TeamMember(Id integer auto_increment, FirstName varchar(50)not null, LastName varchar(50) not null, EmailAddress varchar(50) not null, AttendanceDate varchar(50) not null, GuestName varchar(50), primary key(Id)); create table Dish(Id integer not null auto_increment, ...
true
0943902a9b8fe40e4de33629cb6aac89ad3e65d4
SQL
arifcse11/custom-mvc
/custom-mvc.sql
UTF-8
2,598
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 20, 2018 at 08:35 AM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
82c08ba0f9fe5936eb172878e3d03987f039f19e
SQL
spark-2020/utils
/MySQL/sot_contracts_quotes/statuses_voucher_template.sql
UTF-8
9,654
4.25
4
[ "Apache-2.0" ]
permissive
# What this script will do: # # - Create a table `statuses_voucher_template` to list the possible statutes for a record. # - Create a trigger `uuid_statuses_voucher_template` to automatically generate the UUID for a new record. # - Create a table `logs_statuses_voucher_template` to log all the changes in the table. # -...
true
b38f7aaef764472b541c0c1e48ec1386b675cc17
SQL
LadoBago/Coursera.WebDevSpring
/Assignments/library/src/main/resources/db/migration/V1_0_0__Init_Db.sql
UTF-8
618
3.671875
4
[]
no_license
CREATE SEQUENCE book_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE MAXVALUE 2147483647 CACHE 1; CREATE TABLE book ( id integer NOT NULL DEFAULT nextval('book_id_seq'), title VARCHAR (255), description VARCHAR (255), PRIMARY KEY (id)); CREATE SEQUENCE author_id_seq START WITH 1 INCREMENT BY 1...
true
c56a5dbadccdca38047b7e459676bd6d7dfa8a34
SQL
Rashld/SQL
/stepic_sql/2_3_09.sql
UTF-8
1,208
3.84375
4
[]
no_license
Задание Выведите список всех источников клиентов и суммарный объем заказов по каждому источнику. Результат должен включать также записи для источников, по которым не было заказов. Ожидаемый формат результата: +-------------+----------------+ | source_name | sale_sum | +-------------+----------------+ | source 1 ...
true
87f401645370053f63a18f3d3e25a7ed840a75d2
SQL
sitmeister/SQL_Employee_Tracker
/db/seeds.sql
UTF-8
752
3.3125
3
[ "MIT" ]
permissive
USE employees_db; INSERT INTO departments (name) VALUES ("Instructor"), ("Teaching Assistant"), ("Student"), ("Student Support"); INSERT INTO roles (title, salary, department_id) VALUES ("Main Instructor", 1000000.00, 1), ("TA", 80000.00, 2), ("Student", -14000.00, 3), ("Stud...
true
fd797c5e765239d6ffd6e768797b24c153e378c0
SQL
dhenriquedba/SQL
/scripts_auxiliares/IOT.sql
UTF-8
1,898
3.34375
3
[]
no_license
CREATE TABLE TESTE_CONTA ( NR_SEQ_PESSOA NUMBER(6), NR_SEQ_CTACONTAB NUMBER(6), NR_CTACONTAB VARCHAR2(30 byte), DS_CTACONTAB VARCHAR2(50 byte), NR_SEQ_CTACONTAB_PAI NUMBER(6), DS_DET_CTACONTAB VARCHAR2(1000 byte), CONSTRAINT R_550_1 FOREIGN KEY(NR_SEQ_PE...
true
3d9ab6f542688b4a46ff915aee9c3713ea77efe8
SQL
pmirand6/soliris
/base_datos/bajada_pablo/soliris/FU_VAL_PAC_EDAD.sql
UTF-8
1,807
3.390625
3
[]
no_license
-- -------------------------------------------------------- -- Host: localhost -- Versión del servidor: 5.7.24 - MySQL Community Server (GPL) -- SO del servidor: Win64 -- HeidiSQL Versión: 11.0.0.5965 -- -------------------------------------------------------- /...
true
2b473b6a0f430fdcbbdd0610df34c7ab9780aae0
SQL
mateuszrusiecki/test_b2b
/plugins/Photo/schema.sql
UTF-8
639
3.25
3
[]
no_license
-- -- Struktura tabeli dla `photos` -- CREATE TABLE IF NOT EXISTS `photos` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `img` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `slug` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `page_id` int(10) unsigned DEFAULT NULL, `title` varchar(255) COLLATE ut...
true
8de416b85dca3e2dee6b4392d50a914a28f1ae02
SQL
geralvaredo/MySQL
/PL - SQL/PLSQL - Parte II/Teoria/28 - FUNCTION.sql
UTF-8
1,112
3.59375
4
[]
no_license
CREATE FUNCTION check_sal RETURN Boolean IS dept_id employees.department_id%TYPE; empno employees.employee_id%TYPE; sal employees.salary%TYPE; avg_sal employees.salary%TYPE; BEGIN empno:=205; SELECT salary,department_id INTO sal,dept_id FROM employees WHERE employee_id= empno; SELECT avg(salary) INTO av...
true
0d9172e3fe4d7eba8b2aab0dbc64fbac93fa97ab
SQL
AldythNahak/Java-Persistence-API
/db_kampus.sql
UTF-8
1,259
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Sep 24, 2017 at 02:48 PM -- Server version: 5.5.24-log -- PHP Version: 5.4.3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
0394c18842d5ba6cdff119841ff7a50ae6021bb6
SQL
ibismurilloa/CIO
/SCRIPTCRISTIAN.sql
ISO-8859-10
4,156
3.65625
4
[]
no_license
CREATE DATABASE DB_CIO USE DB_CIO --TABLA CAMIONERO CREADA POR CRISTIAN RIVERA MUOZ CREATE TABLE CAMIONERO ( CED_CAMIONERO VARCHAR(20) PRIMARY KEY, NOMBRE VARCHAR(20), APELLIDO VARCHAR(20), TELEFONO VARCHAR(20), DIRECCION VARCHAR(20), SALARIO FLOAT ) --TABLA CAMIONES CREADA POR CRISTIAN RIVERA MUOZ CREATE TABLE CA...
true
12f0e33ba9f69da7655bc49dacc5b72bc2e0512a
SQL
Yundnir/Projeto-Vaccinus
/backup/Projeto_PI_Grupo_11_Vaccinus.sql
UTF-8
2,925
3.359375
3
[]
no_license
create database dbVacina; use dbVacina; create table tbUsuario ( idUsuario int primary key auto_increment, nome varchar (50), email varchar (40), telefone char (12), cnpj char (18), senha varchar (100) ); insert into tbUsuario (nome, email, telefone, cnpj, senha) values ('Renato Paulino', 'renato.paulino@band...
true
90c6ec1979ab1f4d6919e10b65a4432749e825d2
SQL
katyush0611/PHP-school-project
/public/php-project.sql
UTF-8
5,567
3.390625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 27, 2018 at 07:51 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
4e76cda4ff089374fcd44ebd32929c7c1ddf8755
SQL
hanbomal/BOMALpro
/WebContent/sql/study_relation.sql
UTF-8
323
2.5625
3
[]
no_license
DROP table studyrelation PURGE ; CREATE table studyrelation( memberId VARCHAR2(100) , studyName VARCHAR2(100) , joinPoint INT, nickName VARCHAR2(100) , joinDate DATE NOT NULL , lastDate DATE NOT NULL , position VARCHAR2(100), leader VARCHAR2(100), status INT ); SELECT * FROM studyrelation...
true
42d90d7692d0976439d1ed7123327c1cc7834240
SQL
CUBRID/cubrid-testcases
/sql/_17_sql_extension2/_02_full_test/_05_date_time_function/_02_year/cases/year_007.sql
UTF-8
1,672
2.671875
3
[ "BSD-3-Clause" ]
permissive
--pass out-of-range data of string type to the parameter --1. [error] out-of-range argument: date type select year(date'13/11/1989'); select year(date'05/33/1901'); select year(date'2/20/10000'); select year(date'0-1-1'); select year(date'1999-04-31'); select year(date'03-02-31'); --2. [error] out-of-range a...
true
29088f8801eb0a26c3feba60506e2db29ce62e53
SQL
bogiesoft/YiiHotelReservation
/protected/modules/openbooking/data/yii-booking-th.sql
UTF-8
6,826
3.46875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 04, 2015 at 12:47 PM -- Server version: 5.6.12-log -- PHP Version: 5.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
29efb553bf11d716843083ffa65706e7005b5a51
SQL
AnnBond/MyFirstBlog-MFB-
/post.sql
UTF-8
6,579
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.15.5 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Авг 02 2017 г., 23:55 -- Версия сервера: 5.5.48 -- Версия 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_CLIENT *...
true
eed23a86c93851f93113309bd433d09b27864bad
SQL
ipsdileeprakesh/PG-Practices
/March_10.SQL
UTF-8
355
2.828125
3
[]
no_license
SQL --- 1. Demonstrate the usage of GROUP BY in SQL 2. Demonstrate the usage of ORDER BY in SQL 3. Demonstrate the usage of simple join between 3 tables 4. Create a table with Primary key and demonstrate the constraint violation PostgreSQL ---------- 1. How to find the OS uptime and PostgreSQL uptime 2. Display t...
true
87a3ead64469a76ca295285f8f817467d319d0aa
SQL
yefc/CBOE
/subprojects/Classic/ChemInv/config/oracle_install_scripts/Create_blank_ChemInv_DB/sql/Create/Create_Synonyms.sql
UTF-8
4,575
2.71875
3
[]
no_license
-- Copyright Cambridgesoft Corp 2001-2006 all rights reserved --######################################################### -- Create schema views --######################################################### connect &&InstallUser/&&sysPass@&&serverName prompt '#########################################################'...
true
710382758f544f722103014418b166735f675e1d
SQL
sirikon-experiments/metatype-orm
/docker/metatype-devenv/sql/initial_schema.sql
UTF-8
202
2.71875
3
[ "MIT" ]
permissive
CREATE TABLE "events" ( id serial PRIMARY KEY, name VARCHAR (255) NOT NULL, active BOOLEAN NOT NULL ); INSERT INTO "events" (name, active) values ('Txalaparta', true), ('Kalejira', false);
true
b178e74bf80328f552c3d34afd6e701a4e8df95b
SQL
shuyiz666/covid19-vaccine-availability-tracker
/query.sql
UTF-8
656
4.125
4
[]
no_license
-- number of shaws and starkmarket SELECT Store, COUNT(*) FROM BI GROUP BY Store -- percentage of store could be scheduled for each store brand SELECT Availability, COUNT(*) FROM BI WHERE Store = 'Star Market' GROUP BY Availability SELECT Availability, COUNT(*) FROM BI WHERE Store = 'Shaws' GROUP BY Availability -- ...
true
48e2f2de18b6cb39d3d720955b5c8bca229ad93b
SQL
WalkingInTheAir/ELearning
/ELearning/resource/e-learning.sql
UTF-8
19,805
3.171875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50096 Source Host : localhost:3306 Source Database : e-learning Target Server Type : MYSQL Target Server Version : 50096 File Encoding : 65001 Date: 2015-07-06 21:57:37 */ SET FOREIGN_K...
true
a3d7fd78048c97cbf4028c415d6c4b086251161b
SQL
kylinsystems/idempiere-installation-script
/utils/chuboe_bi_init_permissions.sql
UTF-8
1,019
3.59375
4
[]
no_license
-- The purpose of this script is to help you create views that are easily used inside a BI or analytics tool. -- Step 1: create dedicated BI access credentials CREATE ROLE biaccess; GRANT USAGE ON SCHEMA adempiere TO biaccess; ALTER USER biaccess WITH PASSWORD 'SOMEPASSWORD897'; ALTER USER biaccess WITH LOGIN; -- Ste...
true
9bdc93fbb8887cb78e3e90556a38f38af52ddc7f
SQL
Roshan4u/Hadoop
/Hive/hivestmts.txt.sql
UTF-8
11,871
3.328125
3
[]
no_license
CREATE DATABASE NYSE_STOCKS_DATA WITH DBPROPERTIES('creator' = 'bhuvan','date' = '12/03/1988') ---create table general synatx CREATE TABLE table_name(column1 datatype,column2 datatype,...........,columnn datatype) [ROW FORMAT DELIMITED] FIELDS TERMINATED BY _____ [COLLECTIONS TERMINATED BY ____] [MAP KEYS TERMINATE...
true
e4a0531d50a370a6f5728aca4216473b2807a632
SQL
bellmit/washington-sgge-1-0-0
/jquery/Prototipo/source/complexmo-test/setup/complexmo-oracle.sql
UTF-8
4,254
3.875
4
[]
no_license
DROP SEQUENCE "PERSON_SEQ"; CREATE SEQUENCE "PERSON_SEQ" MINVALUE 1 MAXVALUE 99999 INCREMENT BY 1 START WITH 3 NOCACHE ORDER CYCLE; commit; DROP TABLE "PERSON"; CREATE TABLE PERSON (ID NUMBER(10,0) PRIMARY KEY, FIRST_NAME VARCHAR2(25), MIDDLE_NAME VARCHAR2(10), LAST_NAME VARCHAR2(50),...
true
ee47317a2d13666fb709bc41a7fabb9bb472d6e2
SQL
adminsemy/testTree
/sql/test.sql
UTF-8
3,417
2.890625
3
[]
no_license
-- Valentina Studio -- -- MySQL dump -- -- --------------------------------------------------------- /*!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 */; /*!40014 SET @OLD...
true
c3914a91547efc501406801062d8b54093049f7d
SQL
bartschs/sql_admin
/xdepcsv.sql
UTF-8
2,099
3.09375
3
[]
no_license
rem NAME rem depend.sql rem FUNCTION rem search for SQL objects dependencies rem NOTE rem start from SQL*Plus as user rem MODIFIED rem 27.03.02 SBartsch - made it rem set verify off set linesize 100 set arraysize 4 set long 10000 set maxdata 30000 set pagesize 40; set heading off set feedback off clear colu...
true
da743f41f0eb26a9cde3c4bdfb933763ef0db600
SQL
daydreammsp/grimlund_gas
/database.sql
UTF-8
1,523
3.703125
4
[]
no_license
CREATE TABLE person ( id SERIAL PRIMARY KEY, username VARCHAR (80) UNIQUE NOT NULL, password VARCHAR (1000) NOT NULL ); CREATE TABLE "cars" ( "car_id" serial NOT NULL UNIQUE, "car_model" varchar, "car_make" varchar, "car_year" varchar, "car_miles" varchar, CONSTRAINT cars_pk PRIMARY KEY ("car_id")...
true
054d6e8b893204f1f034804690ad5ac367111380
SQL
polarbears-xzf/xzfgit
/zoeMonitor/checkup_report/content_init_parameter.sql
UTF-8
1,248
2.9375
3
[]
no_license
-- Created in 2018.10.11 by polarbears -- Copyright (c) 20xx, CHINA and/or affiliates. -- All rights reserved. -- Name: -- content_init_parameter.sql -- Description: -- 基本说明 -- Relation: -- 对象关联 -- Notes: -- 基本注意事项 -- 修改 - (年-月-日) - 描述 ---- ======================================= -- Oracle非默认初始化参数设置 -- ===...
true
dc500cadf07dcf10823b66972bd143ec68d5ef2c
SQL
adenurisqo/IYKRA-DF6
/Ade Nur Istiqomah - Modul 5 Coding SQL.sql
UTF-8
1,562
4.15625
4
[]
no_license
--Ade Nur Istiqomah --Practice Case - Modul 5 Coding SQL --Data Fellowship Batch 6 --Pre-training Period --1. How many movies about 'astronauts' select count(film_id) from film where description like'%stronaut%'; --2. How many movies with rating R and replacement cost rangin between $5 - $15? select count...
true
62059d452812e8e89f8d2449848f6bc6d948026d
SQL
NancyRosanda/PhpOnline2018
/sbacic/mysql/zadaca_za_ispit.sql
UTF-8
2,246
3.859375
4
[]
permissive
#3.15. Ime i prezime studenta te naziv i ocjenu za svaki ispit SELECT imeStud,prezStud,nazPred,ocjena FROM ispit i JOIN stud s ON i.mbrStud=s.mbrStud JOIN pred p ON p.sifPred=i.sifPred; #3.17. Ispiši nazive predmeta i organizacijske jedinice kojima pripadaju za one kolegije koji imaju više od 20 upisanih studenata ...
true
670e6af81a5438a9ab4183b4770a5bf32e37dcba
SQL
Jaimedgp/Unipuntes
/baseDeDatos.sql
UTF-8
12,584
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4deb1 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 26-05-2017 a las 12:38:38 -- Versión del servidor: 5.7.17-0ubuntu0.16.10.1 -- Versión de PHP: 7.0.15-0ubuntu0.16.10.4 -- -- Base de datos: `Apuntes` -- -- --------------------------------...
true
88965beee7a8f477e6e55e066c9a22006cb0c923
SQL
PeregHer/breizhibus
/breizhibus.sql
UTF-8
4,408
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8081 -- Generation Time: Dec 11, 2020 at 10:58 PM -- Server version: 5.7.24 -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
f39fe057a1972559f166b0b6be37019a9cc9f708
SQL
jenny241093/DB-Basics-MSSQL
/ExamPrep2/ExamPrep2/08. Best Rated Products.sql
WINDOWS-1252
484
4.0625
4
[]
no_license
--Select top 10 best rated products -- ordered by average rate (descending) -- then by amount of feedbacks -- (descending). --Required columns: -- Name -- Description -- AverageRate --average Rate for each product -- FeedbacksAmount -- number of feedbacks for each product SELECT TOP 10 p.Name, p.Description, AVG(...
true
444c1bb1f3b24847ade9b83b2d6dd0c7eb89990a
SQL
qyftxp/HR_PROJ
/src/main/resources/public.sql
UTF-8
30,881
2.9375
3
[]
no_license
/* 创建 HR_DB 数据库。 */ create database HR_DB; use HR_DB; create table users ( -- 登录用户表 u_id int auto_increment primary key, -- user_id : 主键,自动增长列 ...
true
b0a8d6370f938d44f68c588b570ad6ecd1a6a1ca
SQL
tuma01/bazar
/amachi-model/DATA/DDL/MUNICIPIO.sql
UTF-8
772
3.75
4
[]
no_license
CREATE TABLE `municipio` ( `MUN_ID` INT(11) NOT NULL AUTO_INCREMENT, `MUN_NAME` VARCHAR(50) NOT NULL COLLATE 'utf8_unicode_ci', `FK_DTO_ID` INT(11) NOT NULL, `CREATED_BY` VARCHAR(50) NOT NULL COLLATE 'utf8_unicode_ci', `CREATED_DATE` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, `MODIFIED_BY` VARCHAR(50) NUL...
true
04e96d639ac9db6b083765721c2c7cd079a28b85
SQL
labanish/ORDS
/vacancies.sql
UTF-8
4,929
2.90625
3
[]
no_license
-------------------------------------------------------- -- File created - Friday-November-08-2019 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Table VACANCIES -------------------------------------------------------- CREATE TABLE "L...
true
8d99b116d14031cacb58202f4cc81ab9918e1518
SQL
citusdata/postgresql-hll
/sql/disable_hashagg.sql
UTF-8
4,163
3.734375
4
[ "Apache-2.0" ]
permissive
-- ---------------------------------------------------------------- -- Regression tests for disabling hash aggregation -- ---------------------------------------------------------------- -- Since we get different results for 3 different PG version sets, add following -- queries to specify version of the output easier....
true
f8c398af8651b2e350c593bf1273e2ff2686aa5f
SQL
vutuantrung/ITI.DBPython
/sql/20192504.003.Install-tTiradeCreate.sql
UTF-8
395
2.828125
3
[]
no_license
create table if not exists tirades ( id_tirade integer not null primary key, id_piece integer not null, id_personnage integer not null, acte integer, scene integer, constraint tirades_fk1 foreign key ( id_piece ) references pieces ( id_piece ), constraint tirades_fk...
true
70a5b983dde786135c4d7e88cadced48e4401841
SQL
elyeel/bootcampx
/4_queries/most_confusing_assignments.sql
UTF-8
256
3.609375
4
[]
no_license
SELECT assignments.id as id, assignments.name as name, day, chapter, count(assistance_requests.id) as total_requests FROM assignments JOIN assistance_requests ON assignment_id = assignments.id GROUP BY assignments.id ORDER BY total_requests DESC;
true
c1061b00f155f7cb86e0a034f3feaf3f7908cd46
SQL
koroshiya/SPOTS
/sql/SP_ScanUser.sql
UTF-8
7,170
4.0625
4
[]
no_license
/*ScanUserIO userID smallint unsigned not null AUTO_INCREMENT, userName varchar(30) not null unique, userPassword char(40) not null, email varchar(100) not null, title character not null, status character not null, PRIMARY KEY (userID) */ /*insert_user(userName, userPassword, userRole[, email, title])*/ DELIMI...
true
5c75c93f1bf16e35d63564ecee058f6c5edbd259
SQL
mahruskh/simple-crud-codeigniter
/db_cidatasiswa.sql
UTF-8
4,106
2.78125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 14 Jun 2017 pada 10.33 -- Versi Server: 10.1.16-MariaDB -- PHP Version: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT...
true
2ef2488e28976ac8f8ab8f44e969c9fc92ae0b59
SQL
zyra83/docker-image-geonames
/import/data/import.sql
UTF-8
7,269
3.640625
4
[]
no_license
DROP DATABASE IF EXISTS geoname; CREATE DATABASE geoname; USE geoname; -- -- Table structure for table `admin1_codes` -- CREATE TABLE `admin1_codes` ( `code` varchar(255) NOT NULL, `label` varchar(255) DEFAULT NULL, `ascii_label` varchar(255) DEFAULT NULL, `geoname_id` bigint(20) DEFAULT NULL, PRIMARY KE...
true
00353bd304a509b9b363f344d769b3430ef862bc
SQL
Hatooz/jsramverkbackend
/db/migrate.sql
UTF-8
722
3.171875
3
[]
no_license
DROP TABLE IF EXISTS info; DROP TABLE IF EXISTS texts; DROP TABLE IF EXISTS users; CREATE TABLE IF NOT EXISTS users ( email VARCHAR(255) NOT NULL, password VARCHAR(60) NOT NULL, UNIQUE(email) ); CREATE TABLE IF NOT EXISTS info ( aboutme TEXT NOT NULL ); CREATE TABLE IF NOT EXISTS texts ( kmom INT...
true
27b940c49e6de8a9e36831dd900f4309db50d1f2
SQL
hgeza06/ref
/dolgozó adatok/user.sql
UTF-8
2,848
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Gép: 127.0.0.1 -- Létrehozás ideje: 2020. Jan 28. 21:46 -- Kiszolgáló verziója: 10.4.11-MariaDB -- PHP verzió: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
473c6567c9a165de0ba9f8d440063aa95065c1b4
SQL
gabrielrussoc/mac0350
/ep2/test-function-calls.sql
UTF-8
2,653
2.90625
3
[]
no_license
select cadastro('a@z.com', '1234', '10000000701', 'nelson', 'M', '2019-01-01'); select insere_professor('10000000701', '9298041', 'IME'); select insere_aluno('10000000701', '9298041', '45'); select insere_administrador('10000000701', '9298041', 'ze ruela'); select insere_curriculo('45x', '9298041', 'bcc 45x', 'IME', ...
true
fd3353b40d074fa0377e6b8a1c0ede619dd9763e
SQL
bluescreen/treeview
/data.sql
UTF-8
6,399
3.1875
3
[]
no_license
DROP TABLE IF EXISTS "announcements"; DROP TABLE IF EXISTS "clubs"; DROP TABLE IF EXISTS "competitions"; DROP TABLE IF EXISTS "competitors"; DROP TABLE IF EXISTS "federations"; DROP TABLE IF EXISTS "matches"; DROP TABLE IF EXISTS "users"; DROP TABLE IF EXISTS "teams"; DROP TABLE IF EXISTS "referees"; DROP TABLE IF EXIS...
true
055f76752d5fd667ab918361c6521334fa35043b
SQL
bug-here/pern_stack
/scripts.sql
UTF-8
652
4
4
[]
no_license
create table employee( id integer NOT NULL DEFAULT nextval ('employee_seq'), name varchar(100)NOT NULL, age varchar(100)NOT NULL, constraint emp_cons PRIMARY KEY(id) ); create table department( dept_id integer NOT NULL DEFAULT nextval('department_seq'), dept_name varchar(100)NOT NULL, constraint dept...
true
e2ed0826cb67d216c91d918361594e59c6c8217e
SQL
JainilTrivedi/PHPProject_CE138_CE148
/PHPProject_CE138_CE148/final_online_quiz.sql
UTF-8
9,472
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 30, 2021 at 03:50 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
8c6811718fbced3e5557e9bcb155fb2fe9b7b8d6
SQL
DdarkSaber/CSLR51---DBMS-Lab
/Week 1/1-SWCo.sql
UTF-8
1,606
3.6875
4
[]
no_license
/** */ CREATE DATABASE SWCom; USE SWCom; CREATE TABLE Employee ( Empid INT AUTO_INCREMENT PRIMARY KEY, EmpName VARCHAR(40) NOT NULL, Addr VARCHAR(50), DoB DATE, Salary INTEGER ); --DESC Employee; INSERT INTO Employee (Empname, Addr, DoB, Salary) VALUES ( 'IAmGroot', 'Somewhere in Space', '2012...
true
ec2f4efd54b3b68089d1216861ede9c053728858
SQL
mdborhan/book-borrowing-and-returning-
/database_sql/boighor.sql
UTF-8
33,178
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 10, 2018 at 06:21 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
7243ccfc4e6b98cecf6276584527c386ceaa0ff1
SQL
bailram/PersewaanBuku
/database_persewaan_buku.sql
UTF-8
2,652
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 09, 2020 at 01:01 PM -- 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
64b37427ceae49c15499c450ab1c9dc29a7e81fd
SQL
M-Dutta/DatabaseProjects
/Project4/Query6.sql
UTF-8
272
3.78125
4
[]
no_license
/*List the names of students who have taken all courses offered by department v8 (deptId)*/ explain analyze select s.name from Project4.student as s, Project4.transcript as t, Project4.course as c where c.deptId='deptId626720' and c.crsCode = t.crsCode and s.id = t.studId
true
3a3bc263ac252b554f692c72175255eb11f831bd
SQL
sucosuco/sucosuco_spring-suco_talk
/sucotalk/src/main/resources/schema.sql
UTF-8
1,143
3.328125
3
[]
no_license
create table if not exists MEMBER ( id bigint auto_increment not null, name varchar ( 255 ) not null unique, password varchar ( 255 ) not null, primary key ( id ) ); create table if not exists ROOM ( id bigint auto_increment not null, name ...
true
c95697b92d45729233df6e9d2e73135e62822b24
SQL
AnaNava1996/BEDU-Banco-Santander-3-caminos-Data-Analytics
/Etapa_1/Session_3/Reto_2.sql
UTF-8
643
3.953125
4
[]
no_license
########### ¿Cuál es el nombre de los empleados que realizaron cada venta? SELECT e.nombre, e.apellido_paterno, e.apellido_materno, venta.clave FROM empleado AS e INNER JOIN venta ON e.id_empleado = venta.id_empleado; ########## ¿Cuál es el nombre de los artículos que se han vendido? ...
true
5a75b73c12e2cf6b6af5f45a4c388c47981eceec
SQL
allancalderon/checkapp_webserver_login
/db_schema/checkapp_login_users.sql
UTF-8
1,198
3.4375
3
[ "MIT" ]
permissive
drop database checkapp; create database checkapp; use checkapp; create table users( id int(11) primary key auto_increment, unique_id varchar(23) not null unique, name varchar(255) not null, chatuid varchar(255) not null unique, email varchar(255) not null unique, encrypted_password varchar(255) ...
true