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
af40a62b4aaeec50fc1d61e57e7db761d161be8b
SQL
davidchaoFSO/MDD1305
/assets/mdd1305_2013-05-15.sql
UTF-8
1,895
2.90625
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 3408 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: 127.0.0.1 (MySQL 5.5.25) # Database: mdd1305 # Generation Time: 2013-05-15 22:32:54 -0500 # *************************************************...
true
3592e9328eab3ed2b879d79609effd3c0471ecee
SQL
monicassilva/SQLforDataScience
/YelpDatasetSQLLookup.sql
WINDOWS-1252
12,413
3.890625
4
[]
no_license
--Data Scientist Role Play: Profiling and Analyzing the Yelp Dataset Coursera Worksheet --This is a 2-part assignment. In the first part, you are asked a series of questions that will help you profile and understand the data just like a data scientist would. For this first part of the assignment, you will be assesse...
true
8e564f396c817ec01f779f96e1e1f5437b000c46
SQL
TestSmallWhite/show-me-the-code
/day-two/show_me_the_code.sql
UTF-8
335
2.6875
3
[]
no_license
-- day two sql drop database if exists show_me_the_code; create database show_me_the_code; use show_me_the_code; create table day_two( `id` int(10) primary key, `key` varchar(40) not null, `isUse` int(1) default 0 not null, `createTime` varchar(20) not null, `useTime` varchar(20) not null )engine=innodb defaul...
true
0a2a8e89736063900fe5c60d6dcd144c6d2e814d
SQL
momokanni/SpringSecurity_SpringMVC
/src/main/resources/jupiter.sql
UTF-8
103,915
3.25
3
[]
no_license
/* SQLyog Ultimate v12.09 (64 bit) MySQL - 5.1.73-log : Database - jupiter ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CH...
true
f6bc615c3594b6f0a6480ac1cba4b4faab04550c
SQL
Anis360/.Net-2020-UC
/GestionEtudiants/students.sql
UTF-8
1,210
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Mer 13 Mai 2020 à 21:34 -- Version du serveur : 5.6.17 -- Version de PHP : 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_...
true
911a6ea4538a45e7785da7bb009a4f5d1d503557
SQL
wenqy/springcloud-study
/account-demo/sql/sql.sql
UTF-8
1,006
3.125
3
[]
no_license
/* SQLyog Ultimate v12.2.6 (64 bit) MySQL - 5.7.19-0ubuntu0.16.04.1 : Database - account ********************************************************************* */ CREATE DATABASE `tcc` ; CREATE DATABASE /*!32312 IF NOT EXISTS*/`tcc_account` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin */; USE `tcc_accoun...
true
fff1ad7849a714e0a6c7dcec5e8ebee56bdb3bbf
SQL
joaomarques90/LI4
/Back-End/Base_Dados/iQueue_populacao_utilizador.sql
UTF-8
17,484
2.71875
3
[]
no_license
USE iqueue; /* CALL create_servico("Talho dos Amores", "Talho", "08:00:00", "20:00:00", 41.5450103, -8.4020387, TRUE); CALL create_servico("Talho dos Amores 2", "Talho", "08:00:00", "20:00:00", 41.5450103, -8.4020387, TRUE); CALL create_servico("Pingo Amargo", "Supermercado", "0...
true
102f34c4a66af8c95a3f16e67f934b30194d4099
SQL
Faye413/ETL-work-
/smartystreets/hive_create_address_tables_hql.sql
UTF-8
5,059
2.671875
3
[]
no_license
DROP TABLE IF EXISTS directmail.pre_validated_loanapps_addresses_raw; CREATE EXTERNAL TABLE directmail.pre_validated_loanapps_addresses_raw ( number string , fc_loan_app_id string , full_name string , business_name string , address string , city string , state string , zip string , loan_application_c...
true
176759db47d52604c60747164939e02c60869cad
SQL
t6d2/StudentProject
/StudentSQL/Insert_Data.sql
IBM852
2,133
3.125
3
[]
no_license
use StudentLife insert into Subjects (Description) values ('Chimica'), ('Fisica'), ('Italiano'), ('Matematica'), ('Storia') insert into ClassRoomTaskTypes (Description) values ('Compito'), ('Interrogazione'), ('Verifica') insert into ClassRoomTasks (WhenDate, Vote, TaskId, SubjectId) values ('2018-02-02',5,2,1), ('2...
true
bb09866d92edaf4736b485c15f33b54a5d4181e9
SQL
ahnayem/e-comerce-rokomari-
/db_rokomari.sql
UTF-8
7,242
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 04, 2019 at 07:10 AM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
d425592c96389ac9f58316dc30ecbbc0c565246d
SQL
atok889/si-terpadu
/SIA-Terpadu/test/org/sql/jasoet/catatan RekapAll.sql
UTF-8
99,998
3.4375
3
[]
no_license
-- Pada query ini tiga hal yg penting yaitu anggaran, pencairan dana , pengajuan atau LPJ -- Dalam query ini bagian pencairan dan pengajuan saling berkaitan -- yg ditampilkan pada adalah SELECT * FROM (SELECT anggaran.no AS no1, anggaran.nm AS nm1, anggaran.kodepos AS k...
true
0395b462c2b6519ac6c05aafa47ab2f74528763d
SQL
kaiqiangli/myblog
/ddl/db.sql
UTF-8
1,435
3.703125
4
[]
no_license
CREATE DATABASE `user` /*!40100 DEFAULT CHARACTER SET utf8 */; use `user`; /** 用户表 */ CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(45) DEFAULT NULL COMMENT '用户名', `password` varchar(45) DEFAULT NULL COMMENT '用户密码', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT...
true
6ae0374e7e109bedcddfcbf26cea74dc70184e46
SQL
spicytuner/test-rep
/SQL/get_cursor.sql
UTF-8
135
2.84375
3
[]
no_license
select a.name, b.value from v$statname a, v$mystat b where a.statistic# = b.statistic# and lower(a.name) like '%' || lower('&1')||'%';
true
dbc7e23cd28abb6797e30deb4026c5952dcdaae7
SQL
giggals/Csharp
/Database Programmability and Transactions/Cash in User Games Odd Rows/SQLQuery1.sql
UTF-8
354
3.875
4
[ "MIT" ]
permissive
CREATE FUNCTION ufn_CashInUsersGames(@gameName VARCHAR(32)) RETURNS TABLE AS RETURN ( SELECT SUM(e.Cash) AS [SumCash] FROM( SELECT g.Id , ug.Cash , ROW_NUMBER() OVER (ORDER BY ug.Cash DESC) AS [RowNumber] FROM Games AS g JOIN UsersGames AS ug ON ug.GameId = g.Id WHERE g.Name = @gameName) AS e W...
true
010996940c8fef07465b59487981a22fa1f7edeb
SQL
4iwi33/Class
/SQL/new1.sql
UTF-8
1,240
2.65625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Мар 16 2020 г., 16:38 -- Версия сервера: 5.6.38 -- Версия PHP: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
b352d112d953d93683d1801d8c1186919a052a37
SQL
epintos/dinuxpropiedades-v2
/src/test/java/resources/insert.sql
UTF-8
3,694
2.859375
3
[]
no_license
INSERT INTO USERS(name ,surname ,password ,phone ,email,username,usertype) values('Juan', 'Gomez','a','2-123-5436','juan@gomez.com','juang','USER'); INSERT INTO USERS(name ,surname ,password ,phone ,email,username,usertype) values('Olivia', 'Perez','a','5-896-7845','olivia@perez.com','olive','USER'); INSERT INTO USERS(...
true
9f22df2ccd485a60769ccff352b385f4128effcc
SQL
zydplatform/IICS
/db/gerald/facility_procurement_plan.sql
UTF-8
4,375
3.875
4
[]
no_license
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Author: IICS * Created: May 8, 2018 */ ALTER TABLE store.orderperiod ADD COLUMN setascurrent BOOLEAN; ALTER TABLE store.orde...
true
4db63a0d849d23d11abfb8ac791d1ecb02f22e57
SQL
625343614/Lulu
/kaola/kaola.sql
UTF-8
579
3.125
3
[]
no_license
SET NAMES utf8; DROP DATABASE IF EXISTS kaola;#这是删除数据库 CREATE DATABASE kaola CHARSET=UTF8; USE kaola; CREATE TABLE IF NOT EXISTS `kl_users`( `user_id` int(11) PRIMARY KEY AUTO_INCREMENT, `user_name` varchar(100), `user_pwd` varchar(100) ); INSERT INTO `kl_users` VALUES(NULL, 'Lulu', '123456'); #insert into kl_use...
true
09ea9bed204421eaa1b865965b432b518831a6e4
SQL
INN/migration-scripts
/client-migrations/NPQ/npq_update_patch_2015_06_12.sql
UTF-8
7,513
3.53125
4
[]
no_license
-- REMEMBER: After loading the prepared tables into vagrant, staging or production -- -- Check siteurl, home, upload_url_path in wp_NEWBLOGID_options table. -- Change wp_user_roles to wp_NEWBLOGID_user_roles in wp_NEWBLOGID_options table. -- Prefixes are needed to push the new users/usermeta values outside of the rang...
true
72a2bb648bd29f60d5098c1bdc866b51a93ac3b3
SQL
edelay12/knex-practice
/blogful-scripts/create.blogful.sql
UTF-8
1,571
2.984375
3
[]
no_license
CREATE TABLE blogful_articles ( id INTEGER PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, title TEXT NOT NULL, date_published TIMESTAMP DEFAULT now() NOT NULL, content TEXT ); /* INSERT INTO shopping_list (title, content, date_published) VALUES ('blog title 1', 'content 1' , now() - '21 days'::INTE...
true
8fc41c3b82ce5efb40958d4ccd906dd30e084aa8
SQL
dataGriff/MyGymDB
/MyGymDB/import/Procedures/pr_PopulateSex.sql
UTF-8
235
2.8125
3
[]
no_license
CREATE PROCEDURE [import].[pr_PopulateSex] AS SET NOCOUNT ON; INSERT INTO [import].[Sex] ( [Description] ) SELECT 'Male' AS 'Description' UNION ALL SELECT 'Female' AS 'Description' EXCEPT SELECT [Description] FROM [import].[Sex];
true
471065687038dce674af006b512c62cfca317543
SQL
xandregarcia/inventory_sys
/inventory.sql
UTF-8
2,694
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 19, 2019 at 01:54 AM -- Server version: 5.7.11 -- PHP Version: 7.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
c78875695fef049a194fb9a5aaabed74b1ff45ee
SQL
DilanMasMas/EPE-1
/biblioteca.sql
UTF-8
3,253
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3306 -- Tiempo de generación: 31-05-2018 a las 04:21:25 -- Versión del servidor: 5.7.21 -- Versión de PHP: 5.6.35 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
true
f9124c3cd53d805b8f976a12fd9548f63e638270
SQL
luzzetti/HackerRank_Solutions
/SQL/03 - Aggregation/14 - [Medium] - Weather Observation Station 18.sql
UTF-8
299
3.40625
3
[]
no_license
-- Autore: Christian Luzzetti -- Mail: Christian.luzzetti@gmail.com -- HackerRank: https://www.hackerrank.com/ select round(abs(min(s.lat_n) - max(s.lat_n)) + abs(min(s.long_w) - max(s.long_w)),4) -- Manhattan DIstance: In a plane with p1 at (x1, y1) and p2 at (x2, y2), it is |x1 - x2| + |y1 - y2|. from ...
true
6ace0faf3804ff2e2b7c2131577bc09fbcabfc1d
SQL
germanfriday/DBSA-Site
/mysql/DBSA.sql
UTF-8
7,410
3.046875
3
[]
no_license
-- Dump of database DBSA -- -- Date: 2004-12-01 13:07:09 -0500 -- User: Chris Freitag -- -- Dump by YourSQL (http://www.mludi.net/YourSQL/) CREATE TABLE Counties ( County text NOT NULL ) TYPE=MyISAM; CREATE TABLE Meetings ( Id int(3) NOT NULL auto_increment, County text, City text, Day text, Time text,...
true
d663e42f6da58137333af87c63cdd75f4947202e
SQL
kellycoles/BangazonExerciseQueries
/BangazonExerciseQueries.sql
UTF-8
5,632
4.5625
5
[]
no_license
-- 1 List each employee first name, last name and supervisor status along with their department name. Order by department name, then by employee last name, and finally by employee first name. --SELECT e.FirstName, e.LastName, e.IsSupervisor, d.Name --FROM Employee e Join Department d ON d.Id = e. departmentId --ORDER...
true
616360aeda3f90a14d9a0b26da594f4da07d1321
SQL
bmyerz/myrial_apps
/mcl/MCL_MyriaQL.sql
UTF-8
1,542
3.15625
3
[]
no_license
matA = scan(matrix); -- shbae:matrix should be replaced with actual table name. -- define constant values as singleton tables. epsilon = [0.001]; prunelimit = [0.00001]; -- initialize oldChaos and newChaos for stop condition. oldchaos = [1000.0]; newchaos = [1000.0]; -- while there is an epsilon improvement do old...
true
b7dd458e4ac40f328525c0b27e82ac812328ef47
SQL
gajop/twitter-sentiment
/sql/create.sql
UTF-8
2,923
3.65625
4
[]
no_license
DROP TABLE IF EXISTS twitter_status_sentiment; DROP TABLE IF EXISTS twitter_followers; DROP TABLE IF EXISTS twitter_friends; DROP TABLE IF EXISTS twitter_retweets; DROP TABLE IF EXISTS twitter_status_user_entity; DROP TABLE IF EXISTS twitter_status_url_entity; DROP TABLE IF EXISTS twitter_status_symbol_entity; DROP T...
true
e199f9a0c41036a367233d7cbaa73ee7ebcffc48
SQL
stevenx2010/frontserver
/database/ad_serving_log.sql
UTF-8
2,021
2.90625
3
[]
no_license
-- MySQL dump 10.16 Distrib 10.1.31-MariaDB, for Win32 (AMD64) -- -- Host: localhost Database: revive -- ------------------------------------------------------ -- Server version 10.1.31-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
true
1a9a88ac41316734a8f63ae877e2716573617ae3
SQL
DariuszUstrzycki/Workshop2
/sql/db.sql
UTF-8
833
4.125
4
[]
no_license
CREATE DATABASE school; CREATE TABLE user_group( id INT AUTO_INCREMENT, name VARCHAR(255), PRIMARY KEY(id)); CREATE TABLE user ( id BIGINT AUTO_INCREMENT, username varchar(255) NOT NULL, email varchar(255) NOT NULL UNIQUE, password varchar(255) NOT NULL, user_group_id INT DEFAULT NULL, PRIMAR...
true
b7f86a95cbedda8b3ce4b87eb04c648cf4a00c56
SQL
jgarzonext/packages
/function/F_DESCENTIDADSIN.sql
WINDOWS-1250
1,012
2.8125
3
[]
no_license
-------------------------------------------------------- -- DDL for Function F_DESCENTIDADSIN -------------------------------------------------------- CREATE OR REPLACE EDITIONABLE FUNCTION "AXIS"."F_DESCENTIDADSIN" (pcenti NUMBER) RETURN VARCHAR2 IS /*************************************************************...
true
f400a25c27dbc08ce12dbfb21f070228663a4b57
SQL
SongHaeJeong/SafoodWeb
/Safood/마무리/SQL/TABLECREATE.sql
UTF-8
4,291
3.53125
4
[]
no_license
CREATE TABLE `allergy` ( `aid` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, PRIMARY KEY (`aid`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8; CREATE TABLE `food` ( `code` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, `supportpereat` decimal(6,2) DEFAULT NULL, `ca...
true
a0a1c68d1b1483b0cd4a07d33655e518ec082bc6
SQL
derrickoswald/CIMApplication
/ShortCircuit/src/main/resources/shortcircuit_schema.sql
UTF-8
9,725
3.390625
3
[ "MIT" ]
permissive
create keyspace if not exists cimapplication with replication = {'class': 'SimpleStrategy', 'replication_factor': 1 }; create table if not exists cimapplication.version ( program text, build text, version text, time timestamp, primary key ((program), version) ) with clustering order by (version asc...
true
15cbf59667fa94490c0e07bd40a5f5f701cd5b75
SQL
malyshev-sergey/JD2017-09-20
/src/by/it/mustaphin/jd03_03/sql/mustaphin_roles.sql
UTF-8
281
2.59375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `mustaphin` DEFAULT CHARACTER SET utf8; USE `mustaphin`; DROP TABLE IF EXISTS `roles`; CREATE TABLE `roles` ( `id_role` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(45) NOT NULL, PRIMARY KEY (`id_role`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
true
a31827d19cd947db935410a6abeb3b608bfb547f
SQL
gustamms/saver-mail
/BD_DDL.sql
UTF-8
5,448
3.234375
3
[]
no_license
-- -------------------------------------------------------- -- Servidor: 127.0.0.1 -- Versão do servidor: 10.4.6-MariaDB - mariadb.org binary distribution -- OS do Servidor: Win64 -- HeidiSQL Versão: 11.1.0.6116 -- ------------------------------------------------...
true
d37c6a6cd8dfe45d416fcf727bbf4c05efbe19ce
SQL
academika/india
/INIT_DATABASE.sql
UTF-8
3,248
4.4375
4
[]
no_license
create database if not exists fileup; use fileup; /*BEWARE!*/ drop table if exists node_access; drop table if exists users; drop table if exists node_links; drop table if exists trash; drop table if exists super_trash; drop table if exists shared_nodes; drop table if exists nodes; drop table if exists email_verificati...
true
32faed735a564bc6b96ecb0bb1e84ff248eff77d
SQL
tsymbaland/loftschool_php_intensive
/final_project2_mvc/db_dump_loft_mvc.sql
UTF-8
2,636
3.453125
3
[]
no_license
create schema if not exists loft_5_7 collate utf8mb4_unicode_ci; create table if not exists categories ( id bigint unsigned auto_increment primary key, name varchar(100) not null, description text not null, created_at timestamp null, updated_at timestamp null, constraint categories_name_unique unique (name) ...
true
bd89ad555b798dd843329ab226bf67144256a3d3
SQL
erjan/coding_exercises
/stratascratch/medium/interview_questions/Highest Salary In Department.sql
UTF-8
335
3.5625
4
[ "Apache-2.0" ]
permissive
Find the employee with the highest salary per department. Output the department name, employee's first name along with the corresponding salary. with help as( select first_name, department, salary , rank()over(partition by department order by salary desc) as rank_salary from employee ) select * from help where r...
true
c080060c0e8081f3d3207804829b99d066471a90
SQL
tingley/globalsight
/main6/tools/install/data/ERs/8.6.9.0/GlobalSight_8.6.9.0.2.sql
UTF-8
902
3.0625
3
[]
no_license
## GBS-4140: Native JSON Filter. INSERT INTO known_format_type (ID, NAME, DESCRIPTION, FORMAT_TYPE, PRE_EXTRACT_EVENT, PRE_MERGE_EVENT) VALUES (57, 'JSON','JavaScript Object Notation','json','JSON_IMPORTED_EVENT','JSON_LOCALIZED_EVENT'); INSERT INTO EXTENSION (NAME, COMPANY_ID, IS_ACTIVE) ( SELECT 'json', c.id, 'Y'...
true
0c4ebed7e79dc1cde44b7b2f5c7ffb06a1d8a526
SQL
2narayana/Recommender-System-for-E-learning
/conf/evolutions/default/1.sql
UTF-8
3,886
3.078125
3
[ "Apache-2.0" ]
permissive
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table abstract_item ( id bigint not null, title varchar(255), short_description varchar(255), description varchar(255), ...
true
fa315a5c4704689da3712295b04a4140d090ba18
SQL
gicadmin/allo
/PHENIX/Packages/READ_EDI_INVOICE_PACK.sql
UTF-8
6,453
2.984375
3
[]
no_license
CREATE OR REPLACE PACKAGE phenix.READ_EDI_INVOICE_PACK IS --loop parmi les headers disponible PROCEDURE CALL_FIND_ERRORS_PROC( p_type IN VARCHAR2, p_log_id IN NUMBER DEFAULT NULL --csc2362 ); --loop parmi les headers disponible PROCEDURE CALL_TRANSFERT_PROC( p_type IN VARCHAR2, p_log_id IN NUMBER DEFAULT NU...
true
94d48e1f446faa8cea47cb1b016375b01e76a35b
SQL
samuel-robinet/BD_S2
/td2.sql
UTF-8
17,040
3.953125
4
[]
no_license
R11: select nomEmploye, prenomEmploye from Employes where salaireEmploye >2000 R12: select nomCamping from Campings where villeCamping='Palavas' and nbEtoilesCamping=5; R13 select nomEmploye, prenomEmploye from Employes E join Campings C on E.idCamping=C.idCamping where nomCamping='Les Flots Bleus' order by salaire...
true
308a6a2b76faed590b8471bd3820a5c252149bd6
SQL
tim-pemrograman/pondok-sambal
/tugaskul_PondokSambal.sql
UTF-8
5,448
3.15625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 06, 2021 at 05:43 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
e7c469a9cd23acc675f00c94441c0e8c14a50bc1
SQL
Polina-MD80/JavaDB
/Exams/Royal UK Bank/Royal_Bank_create_table_queries.sql
UTF-8
3,046
4.46875
4
[]
no_license
#02. Insert INSERT INTO cards (Card_number, card_status, bank_account_id) SELECT reverse(full_name), 'Active', id FROM clients WHERE id BETWEEN 191 AND 200; #04. Delete DELETE FROM employees where id not in (SELECT employee_id FROM employees_clients); #05. Clients SELECT id, full_name from clients ORDER BY id; #...
true
0ad101a5896d37b544358bb1ffcc4fa98918996a
SQL
JeremiaJ/HotelBookingService
/flaskapi/hotel_booking.sql
UTF-8
4,923
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 22, 2017 at 06:37 PM -- Server version: 5.6.24 -- PHP Version: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
27760df28be8a170c0803202eb79f7c4f53745b4
SQL
phuoc2811002/VueJS
/webcopy.sql
UTF-8
10,140
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: May 19, 2020 at 04:16 AM -- Server version: 5.7.26 -- PHP Version: 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
53e1e80140a38bf211a0f8e469841c765533cc1d
SQL
oow6/-
/shujuku_db.sql
UTF-8
5,037
2.734375
3
[]
no_license
# MySQL-Front 5.1 (Build 4.2) /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE */; /*!40101 SET SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES */; /*!40103 SET SQL_NOTES='ON' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS */; /*!40014 SET UNIQUE...
true
de21295260ae7dc00e760110cb91fcaeabe5da85
SQL
suchaspro/data-manage
/project/p-绿植点月度运营数据.sql
UTF-8
4,407
4.21875
4
[]
no_license
/** * 2015 cai * * 月度运营数据统计报告 */ with w日期范围 as ( select '[2015-01-01,2015-08-31]'::daterange as 范围 ), w销售_2015 as ( select 部门.二级部门编号, 日历.月, sum(t1.未税金额)/10000 as 销售金额, sum(t1.成本)/10000 as 销售成本, sum(coalesce(t1.实发数量*t2.单位成本,t1.成本))/10000 as 产品销售成本, count(distinct t1.产品长代码) as 销售sku, sum(t1.实发数量*t1.建...
true
e1c428ebd1c9a276c4ebf85ef4c2de7ae6b6b48d
SQL
nisharam/deltax_assignment
/delta.sql
UTF-8
2,631
3.375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 31, 2019 at 01:41 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
04d57e9c5f3576504086e8299cbb8daab3d8e3e0
SQL
Jeremias333/AgendaFX
/Data_Base(Dumps)/Dump_AgendaFX_2020_04_29.sql
UTF-8
2,645
2.984375
3
[ "BSD-2-Clause" ]
permissive
-- MySQL dump 10.13 Distrib 5.7.12, for Win32 (AMD64) -- -- Host: localhost Database: agendafx -- ------------------------------------------------------ -- Server version 5.7.28 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!...
true
e39bc2160a2412a4230edbf757520634cffbee16
SQL
Garusi1/150225-5781-Databases
/‏‏integration3.sql
UTF-8
325
3.25
3
[]
no_license
SELECT * FROM opr_per_prod INNER JOIN firearms ON opr_per_prod.pid = firearms.id INNER JOIN eithan.operation ON eithan.operation.op_id=opr_per_prod.opid INNER JOIN product_subcategory ON firearms.spid = product_subcategory.spid where product_subcategory.supplier like '%US%' order by product_subcategory.suppl...
true
de17808005cef5217f0c17129b8aed045b042c12
SQL
danielvdao/cs347
/f10053.sql
UTF-8
380,957
2.8125
3
[]
no_license
set define off verify off feedback off whenever sqlerror exit sql.sqlcode rollback -------------------------------------------------------------------------------- -- -- ORACLE Application Express (APEX) export file -- -- You should run the script connected to SQL*Plus as the Oracle user -- APEX_050000 or as the owner ...
true
8bdcf10215fde960c00f935b8d065b26f9fa2e7b
SQL
jiangqiang520/xyfProjects
/EBank-zhw/src/main/resources/sql/ebank_transfer.sql
UTF-8
1,818
3.5
4
[]
no_license
DROP TABLE IF EXISTS `ebank_transfer`; CREATE TABLE `ebank_transfer`( `id` INT UNSIGNED PRIMARY KEY AUTO_INCREMENT, -- `order_no` VARCHAR(50) NOT NULL UNIQUE COMMENT '转账订单编号,其它服务的订单编号', `ebank_order_no` CHAR(32) COMMENT '合并后的订单编号,合并订单是...
true
08ce7109d2d9d12448bee51d21edad037f116209
SQL
unisung/database
/sql/ch13.sql
UTF-8
5,379
3.546875
4
[]
no_license
--권한(privilege), SQL> connect sys as sysdba Enter password: Connected. SQL> create user usertest01 2 identified by pass1 3 default tablespace users 4 temporary tablespace temp 5 quota unlimited on users 6 ; User created. SQL> connect usertest01/pass1 ERROR: ORA-01045: user USERTEST01 lacks CREATE SESSI...
true
2811b69b3dbc31e149eaa2c721c6d5ab242162e6
SQL
kivitendo/kivitendo-erp
/sql/Pg-upgrade2/tax_id_if_taxkey_is_0.sql
UTF-8
211
2.828125
3
[]
no_license
-- @tag: tax_id_if_taxkey_is_0 -- @description: Aktualisierung der Spalte tax.id, wenn tax.taxkey = 0 ist. -- @depends: UPDATE tax SET id = 0 WHERE taxkey = 0; UPDATE taxkeys SET tax_id = 0 WHERE taxkey_id = 0;
true
af41d7f4af86d9c3fb6e861d4d4bbc775532dd29
SQL
tuanemtv/eibdp
/org.eib.application.ui/Script/Query to Excel/LN/LN - 26. Du no phan theo nhom no phong giao dich.sql
UTF-8
1,453
3.71875
4
[]
no_license
-- DEFINE h_trdt = '20101030' SELECT A.BRCD, B.LCLBRNM CHI_NHANH, A.DEPTCD, C.DEPTNM PHONG_GIAO_DICH, DECODE(INDFLG, 'Y', 'CA_NHAN', 'DOANH_NGHIEP') KHACH_HANG, A.GRP NHOM_NO, A.CCYCD LOAI_TIEN, A.DSBSBAL DU_NO, CS1.EXCROSSCAL(A.BRCD, 'VND', A.TRDT, A.CCYCD, A.DSBSBAL, '01', 'VND', '01') DU_NO_QUY_DOI FROM...
true
10f4080afb34e1950a9fee32109f322c97c6a04c
SQL
jxu96/veterinary_clinic_database
/RO_v2/INSERTs.sql
UTF-8
3,030
3.078125
3
[ "MIT" ]
permissive
insert into Classes_especes_animales values('mammifere'); insert into Especes values('chien', 'mammifere'); declare ref1 ref TypEspece; begin select ref(Es) into ref1 from Especes Es where Es.nom = 'chien'; insert into medoc values('rinoxolone','desc_rinoxolone', listeEspecesAutorisees(RefEspece(ref1))); end; / ...
true
6d7e2ae4e3bed3853caa8dd1dc9f4056857b73e1
SQL
munraj-grewal/bootcampX
/4_queries/assistance_requests_data.sql
UTF-8
471
4.03125
4
[]
no_license
SELECT teachers.name AS teacher, students.name AS student, assignments.name AS assignment, (assistance_requests.completed_at - assistance_requests.started_at) AS duration FROM students JOIN assistance_requests ON students.id = assistance_requests.student_id JOIN teachers ON teachers.id = teacher_id JOIN assignment_subm...
true
bfd8d2be7a5f5bf52db4a3ff8f6916a1fe1c426f
SQL
soywalker/iShareBooks-web-application
/application/vertical-prototype/backend/database/table_creation.sql
UTF-8
6,549
3.375
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Mon Mar 22 19:35:51 2021 -- 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
bae03e229cdc87e51b4759844fd81c3ef3077fe8
SQL
hemanth-git/csharp
/MockTest/dump/university_personal_info.sql
UTF-8
2,725
3.140625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `university` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `university`; -- MySQL dump 10.13 Distrib 5.6.23, for Win64 (x86_64) -- -- Host: localhost Database: university -- ------------------------------------------------------ -- Server version 5.5.5-10.1.7-MariaDB /*!40101 SET @OL...
true
5ce467c5bd54bee209d77138fe5402021ec6209a
SQL
Hady-Eslam/Virtual-Database
/Academic_Year.sql
UTF-8
35,363
3.515625
4
[]
no_license
/**___________________________________________INDEX_________________________________________________*/ /**___________________________________________INDEX_________________________________________________*/ /**___________________________________________INDEX_________________________________________________*/ /**________...
true
ff74c0640835f17ecc51848992209582713cc630
SQL
jonrun2018/lesson
/php/SQL/SQL++.sql
UTF-8
18,691
4.0625
4
[]
no_license
------------------------------ -- SQL не чувствителен к регистру, поэтому не важно большими или маленькими буквами написаны команды или именна баз данных -- пишите как вам удобно; -- Все переносы на новую строку поставлены для удобства, вы можете ставить как вам удобно, -- можете вообще не ставить и писать в одну стро...
true
f84624f4a45a19c12bed1062b1f0899aa7b4321c
SQL
plopezuma/oracle
/top_sessions_last_hour.sql
UTF-8
1,380
4.28125
4
[]
no_license
-- Top Sessions for the past hour SELECT s.sid, s.serial#, s.username, s.status, s.machine, s.osuser, logon_time, s.SQL_ID, round(p.PGA_USED_MEM/1024/1024,2) "PGA MB", st.value/100 as "CPU SEC" FROM v$sesstat st, v$statname sn, v$session s, v$process p W...
true
80ed4186374214c05fcda467df0e2d690b0f03e9
SQL
disreskekt/TestTask
/SQLQuery9.sql
UTF-8
176
3.40625
3
[]
no_license
SELECT Products.Name, Categories.Name FROM dbo.Products LEFT OUTER JOIN dbo.ProductsCategories ON Id = ProductsId LEFT OUTER JOIN dbo.Categories ON CategoriesId = Categories.Id
true
4a116276e10d9dacf246fea582acc85b9fedab4d
SQL
ajones239/StudiPlay
/src/controller/QuizProgram Database SQL.sql
UTF-8
36,174
3.21875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `quizprogram` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `quizprogram`; -- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64) -- -- Host: 127.0.0.1 Database: quizprogram -- ------------------------------------------------------ -- Server version 5.7.18 /*!40101 SET @OLD_CHAR...
true
c2f85db0037b843d6fb88638967b4bfa7610e347
SQL
bregmanh/BootcampX
/3_queries_group_by/total_assignment_submission.sql
UTF-8
279
3.9375
4
[]
no_license
SELECT cohorts.name as cohort, COUNT(assignment_submissions.*) as total_submissions FROM students JOIN cohorts ON cohorts.id = students.cohort_id JOIN assignment_submissions ON assignment_submissions.student_id = students.id GROUP BY cohorts.name ORDER BY total_submissions DESC;
true
cfd1bc710fb57bfce1b095227fefcfa6572e290c
SQL
SharmaAnshusharma/EmployeLoginLogoutChart
/Login_logout_chart/Database File/login_logout_charts (4).sql
UTF-8
3,798
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 20, 2021 at 10:19 AM -- 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
f9daee767e8567138f41de88fc4ca7cdedf91641
SQL
vijaydairyf/TimelyFish
/SolomonApp/dbo/Stored Procedures/dbo.PJNOTES_SDLL.sql
UTF-8
278
2.625
3
[]
no_license
 create procedure PJNOTES_SDLL @parm1 varchar (4) , @parm2 varchar (64) , @parm3 varchar (2) as select notes1, notes2, notes3 from PJNOTES where note_type_cd = @parm1 and key_value = @parm2 and key_index = @parm3 order by note_type_cd, key_value, key_index
true
90be347dae1a37272b3dd0d0cdf062af4884256a
SQL
anphetamina/CoText
/DBSampleOnlySchema.sql
UTF-8
1,988
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Creato il: Ott 26, 2020 alle 08:57 -- Versione del server: 10.4.14-MariaDB -- Versione PHP: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
4e0a720f3d64ca461d5c0d7868129a534ed0b9a8
SQL
armandoroman20/database-exercises
/join_exercises.sql
UTF-8
2,193
5.03125
5
[]
no_license
use employees; # write a query that shows each department along with the name of the current manager for that department. # Start with departments table # then JOIN with dept_manager table using dept_no as the common thread # then JOIN with the employees table, using the *emp_no* as the common thread # NOTE: ensure t...
true
f9a702a150c3b3684113867318f638513ca98593
SQL
giaphattram/BigQueryPublicDatasetTraining
/GoogleAnalytics_GoogleMerchandiseStore.sql
UTF-8
6,628
4.3125
4
[]
no_license
#Exploring the public dataset from google analytics for google merchandise store #Dataset Url: https://www.blog.google/products/marketingplatform/analytics/introducing-google-analytics-sample/ #Google Analytics' BigQuery Export Schema: https://support.google.com/analytics/answer/3437719?hl=en #This self-training partl...
true
6a007880e9a2ddedbb0c1d762df4c886eaebc1db
SQL
arielprzcvgn/Piscine_PHP
/day05/ex16/ex16.sql
UTF-8
142
2.984375
3
[]
no_license
SELECT COUNT(*) FROM `member_history` WHERE ('2006-10-30' <= `date` AND `date` <= '2007-07-27') OR DATE_FORMAT(`date`, '%m-%d') = '12-24';
true
f9b2909b92aad63d9c2af68a7a7d5ba53369b127
SQL
NetSPI/PowerUpSQL
/templates/tsql/Get-InstallationDate.sql
UTF-8
1,464
3.359375
3
[ "BSD-3-Clause" ]
permissive
-- Option 1: createdat FROM master.sys.syslogins -- Tested version: 2022, 2016, 2014, 2012 -- Requirements: sysadmin -- Reference: https://www.dbrnd.com/2016/03/sql-server-script-to-find-installation-date-time-and-authentication-mode/ SELECT createdate AS InstallationDate ,CASE SERVERPROPERTY('IsIntegratedSecurity...
true
e0f8ab9792c32824e3becc8fd997e737e9c12143
SQL
mmmmm2016/PLSQL
/labs/plpu/solns/sol_01.sql
UTF-8
355
2.65625
3
[]
no_license
--The SQL Script to run the solution for Practice 1 --Uncomment code below to run the solution for Task 3 of Practice 1 /* SELECT LAST_NAME, SALARY FROM EMPLOYEES WHERE SALARY > 10000; / */ --Uncomment code below to run the solution for Task 4 of Practice 1 /* SET SERVEROUTPUT ON BEGIN DBMS_OUTPUT.PUT_L...
true
d1dca3da51bc4ff660e6aff56f41c4964b079c36
SQL
yiru0922/SupervisingStudySystem
/mysql/sss.sql
UTF-8
2,668
3.078125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : server Source Server Version : 50725 Source Host : localhost:3306 Source Database : Demo Target Server Type : MYSQL Target Server Version : 50725 File Encoding : 65001 Date: 2019-04-22 23:39:12 */ SET FOREIGN_KEY_CHECKS=0; -- -------...
true
03b61e16243ef98e959997a82a249b6a5d41b8b4
SQL
jonliu6/Programming
/MyNotebook/src/main/sql/data_initialization.sql
UTF-8
1,542
3.28125
3
[]
no_license
-- login by using: c:\temp> psql -h localhost -d xproject_db -U xuser -W -- xproject_db> \list SELECT * FROM information_schema.tables WHERE table_type = 'BASE TABLE' AND table_schema NOT IN ('pg_catalog','information_schema'); CREATE TABLE t_knowledge_category (id INTEGER, name VARCHAR(30), parent_id INTEGER, CONSTRA...
true
b7fb231a3edd8d5371864c49dc76908adcba1991
SQL
Bersiden/shotUrl
/project.sql
UTF-8
2,378
3.015625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 08, 2021 at 08:15 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 7.3.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
e27ade138b89467fbf4fa8846454777d804217dd
SQL
syamil09/DynamicModel
/db/exam1.sql
UTF-8
2,233
3.140625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 03, 2021 at 03:30 AM -- 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
6f4cb8e0b5a06490e50e36a79771e2f9e636b111
SQL
VictorTurra/MercVitrineApp
/script.sql
UTF-8
3,083
3.75
4
[]
no_license
CREATE DATABASE MercVitrineApp; USE MercVitrineApp; CREATE TABLE IF NOT EXISTS Produto ( idProduto INT NOT NULL AUTO_INCREMENT, Descricao VARCHAR(45) NOT NULL, PrecoUN DECIMAL(6,2) NOT NULL, QtdEstoque INT NOT NULL, PRIMARY KEY (idProduto)); CREATE TABLE IF NOT EXISTS Login ( idLogin INT NOT NULL AUTO_INC...
true
f9b6ab5ec655cebb50601528e5d2e1585c8a20be
SQL
ophielia/biblio
/newsql_online10292015.sql
UTF-8
2,347
3.71875
4
[]
no_license
/** app setting **/ INSERT INTO appsetting(id, key, value, version) VALUES (nextval('hibernate_sequence'), 'biblio.testclient', '1', 0); INSERT INTO appsetting(id, key, value, version) VALUES (nextval('hibernate_sequence'), 'biblio.inventory.showtoreconcile', '15', 0); /** new select keys / values **/ insert int...
true
711a81b0749f6d3211e434c89e7e78dc024eb632
SQL
vctrmarques/interno-rh-sistema
/rhServer/src/main/resources/db/migration/sprint_1-10/V1_2018_11_06_17_20__CREATE_TABELA_CNAE.sql
UTF-8
393
2.703125
3
[]
no_license
-- Criação de tabela cnae -- Wallace Nascimento CREATE TABLE cnae ( id bigint NOT NULL IDENTITY(1,1), created_at datetime2(7) NOT NULL, updated_at datetime2(7) NOT NULL, created_by bigint, updated_by bigint, codigo_secao varchar(1) NOT NULL, nome_secao varchar(200) NOT NULL, codigo_classe bigint NOT NU...
true
bf09a0f533cca667e453f0f3d741ce9387a5414e
SQL
joao-salgado/workload
/src/main/resources/db/migration/V17__inserir_dados_referentes_as_atividades.sql
UTF-8
20,858
3.21875
3
[]
no_license
INSERT INTO area (codigo, descricao) VALUES (1, 'Ensino, Pesquisa e Extensão'); INSERT INTO area (codigo, descricao) VALUES (2, 'Produção Docente'); INSERT INTO area (codigo, descricao) VALUES (3, 'Orientações Acadêmicas'); INSERT INTO area (codigo, descricao) VALUES (4, 'Gestão Acadêmica'); INSERT INTO area (codigo, d...
true
aa625700981698cd30d5d9c4ad6baddc8fb93585
SQL
dysonance/Fantasy
/src/data/db/query/receivers.sql
UTF-8
1,489
3.84375
4
[]
no_license
with wr_plays as ( select pp.gsis_id, pp.drive_id, pp.play_id, g.season_year as year, g.week, play.down, play.yardline, play.yards_to_go as togo, p.full_name as name, pp.team, pp.receiving_tar as targets, pp.receiving_re...
true
c969786e4fdd37ce66c66a630c9b03d628485216
SQL
whlee21/aumc-daily
/init_load/sprint_2/mt_rule_death.sql
UTF-8
1,781
3.75
4
[]
no_license
drop table if exists itfcdmpv532_daily.mt_rule_death; create table itfcdmpv532_daily.mt_rule_death as select t.uid , t.patient_id , t.death_dt , t.select_cause , t.reference_gb , case when t.death_dt is null then 'A' --사망일자가 없는 경우 when t.death_seq <> 1 then 'B' --사망건수...
true
a37b04e3e4d284c51d6aaa8a65257ce7a918c0ca
SQL
fbertsch/fenix-migration-dash
/queries/firefox_android_nightly_top_migration_errors.sql
UTF-8
2,811
3.625
4
[]
no_license
WITH all_migration_attempts AS ( SELECT client_info.client_id, TIMESTAMP_TRUNC(submission_timestamp, MINUTE) AS minute, TRUE as attempted, COALESCE(metrics.boolean.migration_history_any_failures, FALSE) AS history_failed, COALESCE(metrics.boolean.migration_bookmarks_any_failures, FALSE) AS bookmar...
true
f413004f15994fd3ef44b24dfa2dad5d70b1bf17
SQL
AbdullahQureshi1080/Database_Project
/FCM-ALL/FootballClubManagement-System/Tables_DDL/Club.sql
UTF-8
3,178
3.28125
3
[]
no_license
-------------------------------------------------------- -- File created - Thursday-May-30-2019 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Table CLUB -------------------------------------------------------- CREATE TABLE "FCM...
true
b3e8b1b6869737f3965633c8ba23b084b7805223
SQL
Acepmon/haccp_mes
/database/migrations/bom_config.sql
UTF-8
640
2.6875
3
[ "MIT" ]
permissive
CREATE TABLE `BOM_CONFIG` ( `ITEM1_ID` VARCHAR(20) NOT NULL COMMENT '자재ID1', -- ITEM1_ID `BOM_VER` VARCHAR(100) NOT NULL COMMENT 'BOM 버젼', -- BOM_VER `ITEM2_ID` VARCHAR(20) NOT NULL COMMENT '자재ID2', -- ITEM2_ID `BOM_YN` CHAR(1) NULL COMMENT 'BOM 사용구분', -- BOM_USE_YN `PROD_QTY` DECIMAL(10) NULL COMMENT ...
true
8db93cb5ee2d1bae58decea89090934090a17256
SQL
kswic/hsbc-twitter
/src/main/resources/schema.sql
UTF-8
727
3.890625
4
[]
no_license
drop table if exists user CASCADE; drop table if exists post CASCADE; drop table if exists subscription CASCADE; create table user ( id varchar(10) primary key ); create table post ( id bigint auto_increment primary key, author_id varchar(10), message varchar(140), create_time times...
true
fadf68e7435bb649c18328bb631db4231b097729
SQL
jlucasldm/coursera
/pythonForEverybody/usingDatabasesWithPython/assignment1/assignment1.2/Counts.sql
UTF-8
1,090
2.71875
3
[]
no_license
BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "Counts" ( "org" TEXT, "count" INTEGER ); INSERT INTO "Counts" VALUES ('uct.ac.za',96); INSERT INTO "Counts" VALUES ('media.berkeley.edu',56); INSERT INTO "Counts" VALUES ('umich.edu',491); INSERT INTO "Counts" VALUES ('iupui.edu',536); INSERT INTO "Counts" VALUES ('caret...
true
4006fb3d2effb4fbbf4eebdc2ec5ef6f6aadae67
SQL
Athesz/School-PHP-Exam
/etterem.sql
UTF-8
3,517
3.390625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Gép: 127.0.0.1 -- Létrehozás ideje: 2020. Júl 25. 14:07 -- Kiszolgáló verziója: 10.4.11-MariaDB -- PHP verzió: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
true
734985a2d135472099adb410db536752f2fad422
SQL
NB-famous/student_cohort_Db
/4_queries/7_avg_ass_req_wait_time.sql
UTF-8
265
2.890625
3
[]
no_license
/* Average Assistance Request Wait Time Calculate the average time it takes to start an assistance request. Return just a single column here. same as LHL soln */ SELECT avg(started_at - created_at ) as average_wait_time FROM assistance_requests;
true
97d17b20d193163e6163c0d8c9778d8f6eec3b13
SQL
torvik23/hsa_l4_stress_testing
/docker/mysql/docker-entrypoint-initdb.d/init.sql
UTF-8
652
2.9375
3
[]
no_license
-- if your $DATA_PATH_HOST/mysql is exists and you do not want to delete it, you can run by manual execution: -- mysql -u root -p < /docker-entrypoint-initdb.d/createdb.sql -- docker-compose exec mysql bash CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) COLLATE utf8mb4_unicode_ci ...
true
a6bd1da04217db7643901fbd3e01437b78cc36fe
SQL
jazlalli/ph-stats
/data/queries/queries.sql
UTF-8
1,646
4.0625
4
[]
no_license
-- ranked distribution of posts by day of the week COPY (SELECT to_json(array_agg(r)) FROM ( SELECT AVG(votes_count), dayofweek FROM ( SELECT votes_count, EXTRACT(DOW FROM created_at) as dayofweek FROM posts ) as a GROUP BY dayofweek ORDER BY dayofweek ASC, AVG(votes_count) DESC ) as r) TO '/Users/jazlalli/ph-...
true
fb5f0c7914d73f26a8594148cf98284024c4baff
SQL
devists/booksDen
/dev/booksden_book_structure.sql
UTF-8
1,445
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 08, 2016 at 03:40 PM -- 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
205cb0687c6072938c5b96b8fc374f9c7a70a589
SQL
Allenchen11/lottery_SQL
/lottery.sql
UTF-8
2,276
3.1875
3
[]
no_license
GRANT ALL PRIVILEGES ON lottery.* TO 'frank'@'localhost'; create table coupon( coupon_id INT NOT NULL AUTO_INCREMENT, coupon_serial_number VARCHAR(100) NOT NULL, coupon_status VARCHAR(10) NOT NULL DEFAULT '0', coupon_update_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY ( coupon_id ) ); create t...
true
28a297705797c490d6b70cc91fbf9e17b7359aa8
SQL
xcechack/perun
/perun-notification/src/test/resources/pn_data.sql
UTF-8
3,741
3.53125
4
[ "BSD-2-Clause" ]
permissive
CREATE TABLE pn_audit_message ( message character varying(4000), id bigint NOT NULL ); CREATE TABLE pn_object ( id bigint NOT NULL, name character varying(256), properties character varying(4000), class_name character varying(256) ); CREATE TABLE pn_pool_message ( id bigint NOT NULL, ...
true
1e96af9887acc0ac0e15a709a4d647c1bf605a4b
SQL
Remon128/AqarSite
/AqarSite.sql
UTF-8
1,635
3.34375
3
[]
no_license
create database aqarsite; use aqarsite; create table UserAccount ( ID int primary key auto_increment, userName text not null, userPassword text not null, fullName text, email text not null, picture text, phone text ); create table Advertisement( ID int primary key auto_increment, size int...
true
9424f5380b27772aa3e266b7f700697bf89e30d3
SQL
4ubakkah/stocks_demo
/src/main/resources/liquibase/changesets/initial/db_schema.sql
UTF-8
956
3.390625
3
[]
no_license
--liquibase formatted sql --changeset root:schema.create.table.stock author:nikita.biloshytskyi contexts: init CREATE TABLE `STOCK` ( `ID` BIGINT NOT NULL AUTO_INCREMENT, `VERSION` INT NOT NULL DEFAULT 0, `NAME` VARCHAR(50) NOT NULL, `CURRENT_PRICE` DE...
true
8ef2c5ef0832a4c5f97ff0b47e4179bcae63a1ba
SQL
ehayanis/easypharma
/src/main/resources/META-INF/PrescriptionTable.sql
UTF-8
1,537
3.09375
3
[]
no_license
-- -- TOC entry 165 (class 1259 OID 16438) -- Dependencies: 5 -- Name: prescription; Type: TABLE; Schema: public; Owner: easypharma; Tablespace: -- CREATE TABLE prescription ( id integer NOT NULL, ref character varying(50), client_id integer, medecin_id integer, start_date date, en...
true
d60604c44519abf964955f09e4f7b85c5aa7335f
SQL
hkuk1004/SQL
/chapter02_연습문제.sql
UHC
2,357
3.703125
4
[]
no_license
/* Q1. ̺ ˻϶. */ /* Q2. ȣ, ̸, ˻϶. */ /* Q3. ڻȣ(manager) ߺ ϰ ˻϶. */ /* Q4. μȣ ߺ ϰ ˻϶. */ /* Q5. 6 ޿ ˻϶. */ /* Q6. μȣ, μ̸, ѱ ˻϶. */ /* Q7. Ի, ̸ '80/12/17' Ի SMITHԴϴ.' ˻϶. */ /* Q8. μȣ 30 ̿ μ̸ ˻϶. */ /* Q9. 10 μ ٹϴ MANAGER ̸ ˻϶. */ /* Q10. "CLERK"̸, 81 Ŀ Ի ȣ ̸ ˻϶. */ /* Q11. 20 μ...
true