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
1a163ae0a962d91d919a4c2f329f95054ef20d41
SQL
aiodauidha/c3-wwn
/week5/src/34.sql
UTF-8
133
3.078125
3
[]
no_license
USE test; SELECT DISTINCT t1.SNO FROM Student t1, Choose t2 WHERE t1.SNO = t2.SNO AND (t2.CourseID = "C1" OR t2.CourseID = "C3");
true
2d7b5d720ccae2b647f7a77303de6b95766c025e
SQL
OvidiuEDSgrup/TET
/IMPL/SALARIATI.sql
UTF-8
2,282
2.546875
3
[]
no_license
SELECT TOP 0 * INTO SALARIATI_PERSONAL FROM PERSONAL ----INSERT SALARIATI_PERSONAL SELECT --*, LEFT(S.COD,6) --Marca char 6 ,LEFT(S.NUME,50) --Nume char 50 ,LEFT(ISNULL((SELECT MAX(f.Cod_functie) FROM functii f where f.Denumire like s.functie),s.functie),6) --Cod_functie char 6 ,'1' --Loc_de_munca char 9 ,0 --Loc_d...
true
6f35457e21fc39a71f6524e9d7069373305bbf3c
SQL
sensoham21/Van_Order
/Question1.sql
UTF-8
156
2.953125
3
[]
no_license
SELECT DATE_FORMAT(order_datetime, '%H') AS Hour_of_day, COUNT(idvanOrder) AS Count_of_order FROM vanorder GROUP BY Hour_of_day ORDER BY Hour_of_day;
true
97d16c9a1d457efe0c0503ce33956b6a78b01dc2
SQL
bellmit/origin
/family_order/sql/.svn/pristine/97/97d16c9a1d457efe0c0503ce33956b6a78b01dc2.svn-base
UTF-8
1,306
2.53125
3
[]
no_license
SELECT /*+use_nl(b)*/a.partition_id,to_char(a.user_id) user_id,a.biz_code,a.pre_charge,to_char(a.max_item_pre_day) max_item_pre_day,to_char(a.max_item_pre_mon) max_item_pre_mon,a.is_text_ecgn,a.default_ecgn_lang,a.text_ecgn_en,a.text_ecgn_zh,to_char(a.start_date,'yyyy-mm-dd hh24:mi:ss') start_date,to_char(a.end_date,'y...
true
490410b69749f10396cfada11ce20252dbef39c2
SQL
annavolkova1/test_case_1
/src/main/resources/db/migration/changelog.sql
UTF-8
502
3.046875
3
[]
no_license
-- liquibase formatted sql -- changeset anna:11 DROP TABLE IF EXISTS well; CREATE TABLE IF NOT EXISTS well ( `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` VARCHAR(32) NOT NULL UNIQUE ); DROP TABLE IF EXISTS equipment; CREATE TABLE IF NOT EXISTS equipment ( `id` INTEGER PRIMARY KEY AUTOINCREMENT ...
true
61e3b5e037c29f5cc293b1c49cea75b98859686f
SQL
AuthorProxy/HackerRankChallenges
/SQL/03. Aggregation/002. Revising Aggregations - The Sum Function.sql
UTF-8
167
2.890625
3
[ "MIT" ]
permissive
-- # Problem: https://www.hackerrank.com/challenges/revising-aggregations-sum/problem -- # Score: 10 SELECT SUM(POPULATION) FROM City WHERE District = 'California';
true
1c95462570eec20a9d2f29c655dee12f2f4c3afa
SQL
butter-fly/belling-ImChat
/src/main/webapp/sql/imchat.sql
UTF-8
1,518
3.078125
3
[]
no_license
/* MySQL Data Transfer Source Host: localhost Source Database: imchat Target Host: localhost Target Database: imchat Date: 2017/3/29 10:01:41 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for t_user -- ---------------------------- DROP TABLE IF EXISTS `t_user`; CREATE TABLE `t_user` (...
true
7f1fb8122021bfd1b58c20677f254830bb9039d5
SQL
sergiomm116/DAMGit
/BASES DE DATOS/EJERCICIOS/TEMA 3 - CONSULTAS SQL/1-CONSULTAS BASICAS SQL/EJERCICIOS_CONSULTAS_HOSPITAL.sql
UTF-8
919
3.171875
3
[]
no_license
-- EJERCICIO 1 SELECT MEDICO, APELLIDO, NOMBRE FROM MEDICOS WHERE ESPECIALIDAD='2' AND UNIVERSIDAD LIKE "%MADRID%" OR "%Madrid%" -- EJERCICIO 2 SELECT NOMBRE, APELLIDOS FROM ENFERMEROS WHERE SEXO="M" AND -- EJERCICIO 3 SELECT NOMBRE, APELLIDOS, EDAD, POBLACION FROM PACIENTES WHERE CODIGOPOSTAL LIKE "28%" AND TELEFONO...
true
f716e59da3b177fbf49b4daeb8baa72a29aadfcb
SQL
mbeven/FINM_2016_SPRING
/FINM 32400/quickfix-1.14.3/quickfix/src/sql/mysql/messages_log_table.sql
UTF-8
705
2.9375
3
[ "BSD-2-Clause" ]
permissive
USE quickfix; DROP TABLE IF EXISTS messages_log; CREATE TABLE messages_log ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, time DATETIME NOT NULL, time_milliseconds INT NOT NULL, beginstring CHAR(8), sendercompid VARCHAR(64), targetcompid VARCHAR(64), session_qualifier VARCHAR(64), text BLOB NO...
true
5268307e0e7950d98db95e73539ac770727507d2
SQL
rishitaggarwal1/Tutor_Finder
/sql_file/tutor_finder.sql
UTF-8
4,349
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 05, 2020 at 08:22 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
9374ad4ede854e20fac11e1213a08b73cfd5a3b3
SQL
SpurgeonPrakash/Complete-SQL-Mastery
/16 creating a copy of table.sql
UTF-8
434
3.0625
3
[]
no_license
create table MALE_Salaries as SELECT e.emp_no,e.birth_date,e.gender,s.salary FROM employees.employees e join employees.salaries s on e.emp_no=s.emp_no where e.gender = 'M' # emp_no, birth_date, gender, salary 10001, 1953-09-02, M, 60117 10002, 1953-09-02, M, 62102 10003, 1953-09-02, M, 66074 10004, 1953-09-02, M, 665...
true
964611ccc2ffd3f3d517297e688be29ecb0db0e2
SQL
DANIELEGBETABI/siga-geolocator
/app/sql/ClientesUltimaVenta.sql
UTF-8
1,127
3.375
3
[]
no_license
SELECT [Clientes].NroDocumento ,[Clientes].NombreCliente ,[Clientes].Direccion ,[Localidades].NombreLocalidad ,LEFT([Localidades].IdLocalidad,4) AS CodigoPostal ,[Provincias].NombreProvincia ,[Clientes].Telefono ,[Clientes].Celular ,[Empleados].NombreEmpleado AS Vendedor ,[Clientes].Activo ,( SELECT TOP 1 [...
true
3d7aa74888d0ef8523e0849a1f84f57e698b249e
SQL
catarinamachado/uminho-miei
/3/BD/EventsWorkbench/Manipulation/QuerieView.sql
UTF-8
690
3.1875
3
[]
no_license
CREATE VIEW FDivulgacaoInfluencia as Select D.*, count(PEPD.Participante_Entidade_Id) as Influenciados From Divulgacao as D, PermiteEntrada_Evento_Participante_Divulgacao as PEPD where PEPD.Divulgacao_id = D.id group by PEPD.Divulgacao_id order by ...
true
e08056805a6e71bfb148a693e7f217b160ea9b8f
SQL
MigeloR/Catalogador
/pkmn_data.sql
UTF-8
4,118
3.203125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.49, for Win64 (x86_64) -- -- Host: localhost Database: pkmn -- ------------------------------------------------------ -- Server version 5.6.49-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*...
true
fc8a44ade9be56a4fd25f996e7b329fe71819568
SQL
abdulhamid07/Aplikasi-ZakatFitrah-Berbasis-Desktop
/db_zakat.sql
UTF-8
4,062
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Inang: 127.0.0.1 -- Waktu pembuatan: 05 Jul 2017 pada 18.47 -- Versi Server: 5.5.27 -- Versi PHP: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!401...
true
9b3d274e32df9aa96aa3a5159e1ce67f215d8b93
SQL
aftahoe/jobfairfun
/jobfairserver/src/main/resources/db/mysql/initDB.sql
UTF-8
1,664
3.734375
4
[]
no_license
CREATE DATABASE IF NOT EXISTS jobfair_test_db DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; USE jobfair_test_db; CREATE TABLE IF NOT EXISTS COMPANY ( ID bigint(20) NOT NULL AUTO_INCREMENT, LINK varchar(255), NAME varchar(255), EMAIL varchar(255), PRIMARY KEY (ID), UNIQUE (LINK) ) engine=I...
true
0277d6d0df05fdfbc15b50da26d6577ae6248f3c
SQL
kurtheld/13AprHW
/SQL_Homework.sql
UTF-8
11,987
4.40625
4
[]
no_license
USE sakila; -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 1a. Display the first and last names of all actors from the table actor. SELECT first_name 'First Name', last_name 'Last Name' FROM actor; -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 1b. Di...
true
96d35fe883921e28177e24a40d08dcebe741322e
SQL
LikiPiki/RewriteNotes
/tables.sql
UTF-8
392
2.625
3
[]
no_license
-- if change schema rebild docker compose CREATE TABLE IF NOT EXISTS users ( id SERIAL PRIMARY KEY, username TEXT UNIQUE NOT NULL, password text NOT NULL, is_admin BOOLEAN DEFAULT FALSE ); CREATE TABLE IF NOT EXISTS notes ( id SERIAL PRIMARY KEY, user_id INTEGER NOT NULL, title TEXT NOT NU...
true
9ef1e5c13f271cb967b371515ac611735c49002b
SQL
fanrazi/wita_intern
/wita_intern.sql
UTF-8
7,896
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 11, 2021 at 12:17 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
898c9617c67b82b88241e3c9c514f37b12cd2181
SQL
MDunitz/DidYouDoThat
/SQL_server/db/schema.sql
UTF-8
731
3.53125
4
[]
no_license
DROP TABLE IF EXISTS users CASCADE; CREATE TABLE users ( id SERIAL PRIMARY KEY, UserName VARCHAR(100), hashedPass VARCHAR(250), email VARCHAR(250) UNIQUE, token VARCHAR(500) ); DROP TABLE IF EXISTS tasks CASCADE; CREATE TABLE tasks ( id SERIAL PRIMARY KEY, TaskName VARCHAR(250), userID INTEG...
true
0319bf77dc471abd3b9afea7dafda072b4aa6f38
SQL
mahbuburriad/Bashundhara-Housing-Limited
/Database/bashundhara_housing_limited.sql
UTF-8
19,137
3.046875
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 10, 2017 at 06:57 PM -- Server version: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
2c342a4f85c4ddd9d5532fc05efbdd20ccb46e07
SQL
Yilotana1/student_hostel
/src/main/resources/db/migration/V3__Insert_test_data.sql
UTF-8
885
2.859375
3
[]
no_license
# floor data INSERT INTO floor (number, apartments_count, head_student) VALUES (1, NULL, NULL); INSERT INTO floor (number, apartments_count, head_student) VALUES (2, NULL, NULL); INSERT INTO floor (number, apartments_count, head_student) VALUES (3, NULL, NULL); # apartment data INSERT INTO apartment (number, floor_...
true
2f082d80e1919fab24e9c47ca8aca2ba5e3983ef
SQL
BlaskoEric/CSE572-Database-Systems
/Labs/Lab6/lab06b_Eric.sql
UTF-8
3,255
4.3125
4
[]
no_license
--Lab: Lab 6B Query --Name: Eric Blasko --turn off pause SET PAUSE OFF --start output spool spool lab06BOutput_Eric.txt --1. display employee id, last name and hire date of any employee -- in the same department as ZlotKey, excluding Zlotkey. Sorted -- by employee id SELECT employee_id,last_name,hire_date FROM H...
true
4e68daaf3e220fd70bb0c6b8df60bb94caf53bcf
SQL
victor-bern/go_ecommerce
/src/database/migrations/000002_create_product_table.up.sql
UTF-8
247
2.890625
3
[]
no_license
CREATE TABLE IF NOT EXISTS product ( id serial PRIMARY KEY, title VARCHAR (250) NOT NULL, description VARCHAR (250) NOT NULL, price FLOAT (6) NOT NULL, created_at TIMESTAMPTZ DEFAULT NOW(), updated_at TIMESTAMPTZ DEFAULT NOW() );
true
3fbc75b3dc3c929d30614c1d34c97faeb1153e3e
SQL
Florgardu/ort_tercerCuartimestre
/bd2/TPBD2-FINAL-V.2/vista.sql
UTF-8
493
3.453125
3
[]
no_license
---Vista para buscar inconsitencisas: --si una copia aparece como “D” pero esa misma copia esta --en prestamo sin con fecha de devolución (es decir, esta prestada). CREATE VIEW v_copias_prestamos_inconsistencia as select c.NRO_COPIA , c.NRO_LIBRO, c.ESTADO , p.F_PREST , p.F_DEVOL from COPIAS c inner join PRESTAM...
true
dd7704aa8601ee768fe0260b8696efe96195479f
SQL
Supakoa/PojaBrokcaNaKha
/oldWork/database/form.sql
UTF-8
2,091
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 10, 2019 at 03:40 PM -- Server version: 10.1.35-MariaDB -- PHP Version: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
cbdc2ac90e22d06f0eab71e66ae4e1624324c604
SQL
mulder3062/JpaExample
/ddl/mariadb/create_tables.sql
UTF-8
621
3.609375
4
[ "MIT" ]
permissive
create table todo ( todo_id bigint auto_increment primary key, title varchar(255) null, user_id varchar(32) null, status varchar(20) null, last_modified_date datetime null, created_date datetime null, constraint fk_user_todo foreign key (user_id) references user (user_id) ) engine=InnoDB cha...
true
d58b3998e2c8871eb92d0ab977991662ebe5aacd
SQL
leo-cavalcante/data-ft-par-labs
/Notes/Week-2/2.2.sql
UTF-8
5,271
4.65625
5
[]
no_license
#Who Have Published What At Where? select a.au_id, a.au_fname, a.au_lname, t.title, p.pub_name from titles t inner join titleauthor ta on t.title_id=ta.title_id inner join authors a on ta.au_id=a.au_id inner join publishers p on p.pub_id=t.pub_id; # Who Have Published How Many At Where? select a.au_id, a.au_fname, a....
true
0033343a3e81540207d02e510812e413991bcb1b
SQL
KaterynaTrushko/sql
/12_Date/SQLQuery6.sql
UTF-8
1,217
3.390625
3
[]
no_license
/*ЗАДАНИЕ 6. Напишите SQL-запрос без оператора FROM, который вернет одну строку с результатами выполнения функции DATETIMEFROMPARTS(). Задать следующие аргументы: год – 2019, месяц - 8, день – 31, час -23, минута – 59, секунда – 59, миллисекунда – 999. Создайте второй столбец с результатами выполнения функции DATET...
true
a943596181635a0ed43a7a8664ebeb6ff5226e45
SQL
Cubelrti/GymSpring
/sqlFile/spring_study.sql
UTF-8
2,678
3.3125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : 主机mysql Source Server Type : MySQL Source Server Version : 80012 Source Host : localhost:3306 Source Schema : spring_study Target Server Type : MySQL Target Server Version : 80012 File Encoding : 65001 Date: 27/04/2019...
true
3eae53dbb5ef3f47505b0625e97d56eedbde6d85
SQL
padilhaalucas/modaResaCalendar
/backend/prisma/migrations/20210611111243_unique/migration.sql
UTF-8
924
3.375
3
[]
no_license
/* Warnings: - A unique constraint covering the columns `[brandName]` on the table `Client` will be added. If there are existing duplicate values, this will fail. - Added the required column `email` to the `StaffMember` table without a default value. This is not possible if the table is not empty. */ -- Redefin...
true
ae0693e779b6d7b4e09458e3b9eead92b6e59f0e
SQL
lynacong/bank
/gov.df.f_ebank.lyn/gov.df.f_ebank.lyn.web/src/main/resource/f_ebank/ebank_databaseComment.sql
UTF-8
55,156
2.75
3
[]
no_license
-- ebank_balance_limit_month这张表没有注释 ######################################################################################### SQL_CREATE_COMMENT_EBANK_ACC_BILL = comment on column EBANK_ACC_BILL_DESYEAR.id is '主键'@\ comment on column EBANK_ACC_BILL_DESYEAR.bill_no is '凭证编号'@\ comment on column EBANK_ACC_BILL_DESYEAR.en...
true
5f6ed0e9b383cc219deea294fb3dfb26ded2ac50
SQL
metal-messiah/mtn-rest-service
/core/src/main/resources/db/migration/V1.0.0.11__store_volume.sql
UTF-8
509
3.09375
3
[]
no_license
ALTER TABLE `store_casing` CHANGE COLUMN `volume_total` `store_volume_id` INT(11) NULL DEFAULT NULL AFTER `volume_note`; ALTER TABLE `store_casing` ADD CONSTRAINT `FK_store_casing_store_volume` FOREIGN KEY (`store_volume_id`) REFERENCES `store_volume` (`store_volume_id`) ON UPDATE CASCADE ON DELETE SET NULL; ALTER TA...
true
ca05cbe5d4f01c89c83b60b6ef3b2616d7a57013
SQL
mariok32/ProyectoFG-Mario
/CloudSpace.sql
UTF-8
5,626
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 10-06-2017 a las 20:48:38 -- Versión del servidor: 5.7.16-0ubuntu0.16.04.1 -- Versión de PHP: 7.0.8-0ubuntu0.16.04.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /...
true
06ba780a1726131b93e2f6781206e164f4c65f56
SQL
victorbueno8/CurriculumOnline
/helpers/curriculumdb.sql
UTF-8
6,940
3.546875
4
[]
no_license
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema mydb -- -...
true
64b9f241c5b000a80e614f17723fc0610b84a0e3
SQL
jitendra3109/Airlines_Database_Design
/Sql /schema_sql.sql
UTF-8
3,420
3.78125
4
[]
no_license
DROP SCHEMA airline CASCADE; CREATE SCHEMA airline; SET search_path TO airline; CREATE TABLE company ( c_id CHAR(3) PRIMARY KEY NOT NULL, c_name VARCHAR(20) NOT NULL, head_quarter VARCHAR(20), company_url VARCHAR(30) ); CREATE TABLE flight_status (...
true
025cbc96247c29403900f0375aac32329eefa1a8
SQL
gladiopeace/digital-data-syn
/documents/oms/TB_PUBID.sql
GB18030
1,858
3.34375
3
[]
no_license
/* ================================================================================ ṹ:TB_PUBID ṹ:¥ ṹĿ: ================================================================================ */ drop sequence SEQ_TB_PUBID; drop index AK_TB_PUBID; drop table TB_PUBID; create table TB_PUBID ( PUBID_ID INTEGER ...
true
b87e866aaf3a0a3877916cb57983cf7a7408c8c0
SQL
AlvinMcCray/ETL_Project
/Resources/ETL_Project.sql
UTF-8
662
3.796875
4
[]
no_license
-- Create tables for raw data to be loaded into DROP TABLE players; CREATE TABLE players ( player VARCHAR, college VARCHAR, born FLOAT, birth_city VARCHAR, birth_state VARCHAR ); SELECT * FROM players; DROP TABLE nba_twitter; CREATE TABLE nba_twitter ( player VARCHAR, twitter_favorite_count FLOAT, twitte...
true
2faccf5299c660b7551ce236c6bec2b1cf9aaaa8
SQL
KhlifSeifEddinne/laravelPosts
/saiflaravelproject.sql
UTF-8
7,250
3.171875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : lun. 14 déc. 2020 à 15:39 -- Version du serveur : 10.4.14-MariaDB -- Version de PHP : 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_S...
true
4688f926705edc67606a8448da7d7f9ff64c246d
SQL
Winteuchnyx/private-discussion-project
/PDP/mahasiswa.sql
UTF-8
3,722
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Inang: 127.0.0.1 -- Waktu pembuatan: 05 Jul 2017 pada 06.41 -- Versi Server: 5.5.34 -- Versi PHP: 5.4.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40...
true
f5934bcb7f50276b356937cb5d4eb3d6b97c6243
SQL
trancx/ybtx
/trunk/game/gas/sql/toolsmall.sql
GB18030
1,383
3.265625
3
[]
no_license
################################################################ #̳ ################################################################ ##Ʒ¼ create table tbl_toolsmall_item_buyed ( tib_uDetailID bigint unsigned not null auto_increment, #detail_id cs_uId bigint unsigned not null, #buyer id is_uType tin...
true
a0f6bde237916d62fff6fd1e9bc2759527f4e52c
SQL
agusseputra/capil_api
/db_capil.sql
UTF-8
6,133
2.75
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 11, 2019 at 09:10 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
eb2e7ed83204da40c059b4e63dad933eddb0ebb0
SQL
Ahmed-Sobeih/Query_digital_store
/city_with_highest_total.sql
UTF-8
126
3.4375
3
[]
no_license
select c.city, sum(i.total) from customer c join invoice i on i.customerid = c.customerid group by 1 order by 2 DESC limit 1;
true
8808c32ee99baceebfe9d24716342ad2a8f2ca63
SQL
taylancelikjuventus/BankManagement
/database/bankmanagement1.sql
UTF-8
7,224
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 09, 2021 at 05:19 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
84e80fb3b7ce1e6d76ec50459c6af847d9c7d9ac
SQL
kkaren/BasesDadesAvan_Practiques
/Practica2_BDA/date_dimension.sql
UTF-8
965
3.859375
4
[]
no_license
DROP TABLE IF EXISTS "Date Dimension"; CREATE TABLE "Date Dimension" ( "Date Key" serial, "Date" date, "Full Day Description" text, "Day Of Week" text, "Calendar Month" text, "Calendar Year" integer, "Fiscal Year Month" text, "Holiday Indicator" text, "Weekday Indicator" text ); INS...
true
ac79bb713cd3affa377fdf1fbbb139b8ded9bcaf
SQL
jefsonleonidas/dev-environment
/sql/EMS/select/select_node_data_data_type.sql
UTF-8
623
3.953125
4
[]
no_license
SELECT nd.id_ne_component, nd.id_data_unit, nd.name, nd.id_data_type, dt.name, nd.committed_value FROM ( SELECT * FROM ( SELECT id_node_data, id_ne_component, name FROM node_data WHERE id_ne_component IN ( SELECT id_ne_component FROM ne_component --WHERE naMe ILIKE 'ODU %' ) ) AS nd ...
true
cd3e98ae32f6710f9c56ca1006e2d40ffefde0b9
SQL
toncho666/Procedures-optimization-noSQL
/lesson9.sql
UTF-8
3,732
4.46875
4
[]
no_license
#___________________________________________________________________________________________ /*Создайте таблицу logs типа Archive. *Пусть при каждом создании записи в таблицах users, catalogs и products в таблицу logs помещается *- время и дата создания записи; *- название таблицы; *- идентификатор первичного кл...
true
eb56dc3e2bea422a5f9ef88758bd20e5541504dc
SQL
BloomBooks/analytics-postgreSQL
/2019 notes which may be obsolete/03 Views - for PNG-RISE-BloomReaderDashboard/TimesPerMonPNG.sql
UTF-8
1,000
3.78125
4
[ "MIT" ]
permissive
REVOKE SELECT ON bloomreader.TimePerMonPNG FROM bloomreaderuser; DROP VIEW bloomreader.TimePerMonPNG CASCADE; CREATE VIEW bloomreader.TimePerMonPNG AS SELECT a.id, CAST((a.timestamp AT TIME ZONE 'AEST') AS date) AS timedate FROM (SELECT * FROM bloomreader.application_opened UNION ALL SELECT * FROM...
true
e6c7a4aeee701bb39d43af5b2cae84b161a82da8
SQL
Mritunjoy71/CSE_216-Database-Sessional
/Database Project TV channel management/Project/DataBase Project SQL/Table_Codes.sql
UTF-8
2,314
3.203125
3
[]
no_license
CREATE TABLE "Agriculture" ( "Program_id" int, "Program_name" varchar2(50), "cast" varchar2(50) ); CREATE INDEX "pk" ON "Agriculture" ("Program_id"); CREATE TABLE "Ad_during_program" ( "product_id" int, "program_id" int ); CREATE INDEX "pk" ON "Ad_during_program" ("product_id"); CREATE INDEX "fk" ON "A...
true
ead16af9ebdea017e64fca8178ae8be57b2c07fa
SQL
radtek/abs3
/sql/mmfo/bars/View/v_birthday_staff_ca.sql
WINDOWS-1251
1,783
3.328125
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/View/V_BIRTHDAY_STAFF_CA.sql =========*** Ru PROMPT ===================================================================================== PROMPT *** Create view V_BI...
true
8ceff608fa7e28b1d496e5e6d14572a53650c309
SQL
codythompson/cs345Proj
/test/book.sql
UTF-8
150
2.953125
3
[]
no_license
select copies.copyid, books.title, loans.due from loans left join copies on loans.copyid = copies.copyid left join books on copies.isbn = books.isbn;
true
0cc72dd57f067fa15879901849014d1eb8aa677f
SQL
Saro0800/Basi_di_Dati
/Laboratori/LAB 02/LAB_02.sql
UTF-8
4,848
3.890625
4
[]
no_license
/* Esercizio 1 ------------------------------------------------------- */ SELECT D.DELIVERERID, D.NAME, D.INITIALS FROM DELIVERERS D WHERE D.DELIVERERID NOT IN ( SELECT P.DELIVERERID FROM PENALTIES P ); /* Eserciz...
true
43941d02233e6e3bab025005f99d2d88d217955d
SQL
EfeClojure/gidicodersworkout
/resources/migrations/20150911211033-add-workout-table.up.sql
UTF-8
296
2.59375
3
[]
no_license
CREATE TABLE workout ( -- If you type 'serial' there's no need to precede it with 'int' workout_id serial PRIMARY KEY , creator_id integer NOT NULL , workout_title text NOT NULL , workout_text text NOT NULL , start_date varchar(30) NOT NULL , end_date varchar(30) , is_active boolean );
true
adaab587be2c3362cb80e3fe54195c661bad2722
SQL
burdavicinav/sql_sepo
/_up/2018_06_05/pkg_sepo_raw_operations.sql
WINDOWS-1251
3,322
3.3125
3
[]
no_license
CREATE OR REPLACE PACKAGE pkg_sepo_raw_operations IS -- -- exporttodbf -- NULL_BYTE CONSTANT RAW(1) := Utl_Raw.cast_to_raw(Chr(0)); -- END_FILE CONSTANT RAW(1) := Utl_Raw.cast_to_raw(Chr(26)); -- CP866 CONSTANT NUMBER := 1; WIN1251 CONSTANT NUMBER := 2; FUNCTION GetBytes( p_ra...
true
a360b39cad7b178cf89282c5c3378c0b2b1bbc61
SQL
rmcgibony/sql-to-graph
/load_db.cql
UTF-8
3,362
3.359375
3
[ "MIT" ]
permissive
MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE n,r; LOAD CSV WITH HEADERS FROM 'file:///C:/Users/rmcgibony/Box Sync/Ryan McGibony/Graph Databases Talk/tmp/customers.csv' as line CREATE (c:Customer {id: line.CustomerID}) SET c.company_name = line.CompanyName, c.contact_name = line.ContactName; LOAD CSV WITH HEADERS FROM ...
true
d105397b0f721c318ca26fbae025125ed72e4318
SQL
khvpn/panel_500
/install.sql
UTF-8
20,393
2.640625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 17, 2019 at 02:00 PM -- Server version: 5.7.17-log -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
28851c3c312e80bcb00b928eda54d8192a0e456a
SQL
bellmit/flexdb
/2.HOST/3.Procedure/cf0020.sql
UTF-8
2,235
3.359375
3
[]
no_license
CREATE OR REPLACE PROCEDURE cf0020 ( PV_REFCURSOR IN OUT PKG_REPORT.REF_CURSOR, OPT IN VARCHAR2, BRID IN VARCHAR2, F_DATE IN VARCHAR2, T_DATE IN VARCHAR2 ) IS -- -- PURPOSE: BRIEFLY EXPLAIN THE FUNCTIONALITY OF THE PROCEDURE -- -- MODIFICA...
true
08542cd3c5f144ae41ee6ad25829e547fb7f58e3
SQL
devi06/snowflake-tutorials
/scripts/import_s3.sql
UTF-8
1,342
3.1875
3
[ "Apache-2.0" ]
permissive
-- - create table drop table emp_basic; create or replace table emp_basic ( first_name string , last_name string , email string , streetaddress string , city string , start_date date ); create or replace file format my_csv_format type = csv field_delimiter = ',' skip_header = 1 null_if = ('NULL', 'nul...
true
c854c9864b822883c1756c4bf30727d0f0aec7a3
SQL
jylilov/DBManual
/src/main/resources/sql/create_ships_tables.sql
UTF-8
5,027
2.953125
3
[]
no_license
create table Classes (class varchar(50), type varchar(2), country varchar(20), numGuns smallint, bore real, displacement int); create table Ships (name varchar(50), class varchar(50), launched smallint); create table Battles (name varchar(20), date timestamp); create table Outcomes (ship varchar(50), battle varchar(...
true
403d0a0f569dd807e170e9732274a86e7be18eac
SQL
manikg360/UrlShortner
/SQL/short_urls.sql
UTF-8
364
2.890625
3
[]
no_license
CREATE DATABASE `shortner_database`; CREATE TABLE `shortner_database`.`short_urls` ( `id` int(11) NOT NULL AUTO_INCREMENT, `long_url` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `short_code` varchar(25) COLLATE utf8_unicode_ci NOT NULL, `created` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEF...
true
7eb95f4dfbdecf67e68d4fd56fdebe4684e17852
SQL
Alexandre-Schwarze/Projet-NAV
/sql/showUpdateAlerte.sql
UTF-8
771
3.4375
3
[]
no_license
CREATE DEFINER=`root`@`localhost` PROCEDURE `showUpdateAlerte`() BEGIN /* affiche les alertes de moins de 5 minute*/ Select alertes.longitude, alertes.latitude, alertes.type_alerte_iDtype_alerte, type_alerte.nom from alertes, alerte_utilisateur, type_alerte where alertes.type_alerte_iDtype_alerte = type_alerte.iDtyp...
true
fd4ea30c568f73e556835541a7ce10b8a94141c0
SQL
MRayhanAP/CommissionArt
/DATABASE FILE/commissionart.sql
UTF-8
16,140
2.984375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 05, 2021 at 08:28 AM -- Server version: 10.4.19-MariaDB -- PHP Version: 8.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
741a5f88bb442bb4703db8aac1e4606891c15930
SQL
youngsinatra189/DatabaseAppDev
/c.sql
UTF-8
2,934
3.53125
4
[]
no_license
/* File: c.sql Author: Roshan Sahu Oracle Username: s6_sahuro Description: Passes in information about a new vehicle record and uses newVehRecord procedure to insert the record into Car*/ SET SERVEROUTPUT ON; -- Obtaining the information of the car the user wishes to create a recor...
true
fd2e9260c18d34b5eb477f38ff0b19cd90aea3e1
SQL
xXGeistmeisterXx/tlis-server
/db/init.sql
UTF-8
1,179
3.515625
4
[ "MIT" ]
permissive
CREATE DATABASE IF NOT EXISTS TLIS; CREATE TABLE IF NOT EXISTS customers ( id MEDIUMINT KEY AUTO_INCREMENT, number VARCHAR(16), first_name VARCHAR(32), last_name VARCHAR(32), email VARCHAR(64), grade TINYINT, staff TINYINT(1) ); CREATE TABLE IF NOT EXISTS techs ( id MEDIUMINT KEY AUTO_INCREMENT, customer_id ...
true
973e918c7ac583d292ec4e96cc5f2ebfa8d01ac9
SQL
VEuPathDB/offprint
/lib/sql/oprdb.create.userdb.user.sql
UTF-8
1,075
2.90625
3
[ "Apache-2.0" ]
permissive
DEFINE user=&1 DEFINE passwd=&2 CREATE USER &&user IDENTIFIED BY &&passwd DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP; ALTER USER &&user ACCOUNT UNLOCK; GRANT CREATE SESSION TO &&user; GRANT RESOURCE TO &&user; ALTER USER &&user DEFAULT ROLE ALL; ALTER USER &&user QUOTA UNLIMITED ON USERS; ALTER USER &&user QUO...
true
6f847cd50732d0708a87cddf08a8b514f41488a1
SQL
serrudojc/TalentoDigital2019FullStack
/07_recopilacion/usuarios/usuariostodo.sql
UTF-8
3,182
2.71875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 21-10-2019 a las 00:46:00 -- Versión del servidor: 10.4.6-MariaDB -- Versión de PHP: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
d1b27f6d0c375b00c46a53952ca2fdd3657d7e37
SQL
Himura2la/Cosplay2-Automation
/sql/program.sql
UTF-8
474
4.125
4
[]
no_license
SELECT card_code ||' '|| voting_number ||'. '|| voting_title ||' ('|| REPLACE(GROUP_CONCAT(DISTINCT value), ',', ', ') ||')' FROM list, requests LEFT JOIN (SELECT request_id, value FROM [values] WHERE title = 'Город' AND section_title NOT LIKE '%помощниках') ON request_id = requests.id WHERE list...
true
f502879e0a6d07011f7b5876ae0e50a7acf7b42d
SQL
hastapasta/financereport
/trunk/shell_scripts/mysql_profile/query2.sql
UTF-8
174
2.828125
3
[]
no_license
FLUSH STATUS; select count(id) from fact_data where date_format(fact_data.date_collected,'%Y-%m-%d')>'2011-01-01' AND ((fact_data.entity_id=@eid and fact_data.metric_id=1));
true
59394f362844ce63fbd67aae51c58de25664ebe0
SQL
Van-IoT2020/Git_BaoCaoOpenSource
/eproject_sem1.sql
UTF-8
28,542
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th7 28, 2020 lúc 03:32 PM -- Phiên bản máy phục vụ: 10.4.11-MariaDB -- Phiên bản PHP: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
e8893a2a5fe5d7ecec4bb6be82be68ff24d167d6
SQL
SCM-SISTEMA/scm
/documentos/imprimirContrato/campos_tabela_cleinte.sql
UTF-8
1,791
2.765625
3
[ "BSD-3-Clause" ]
permissive
 ALTER TABLE public.tab_cliente ADD COLUMN operando boolean; ALTER TABLE public.tab_cliente ADD COLUMN parceria boolean; ALTER TABLE public.tab_cliente ADD COLUMN qnt_clientes integer; ALTER TABLE public.tab_cliente ADD COLUMN link_dedicado boolean; ALTER TABLE public.tab_cliente ADD COLUMN zero800 boolean; ...
true
52346ca1a6a107bc21054f345b82f34fec581812
SQL
AyrtonHenrique/fiap-spring
/batch/src/main/resources/schema-all.sql
UTF-8
385
2.625
3
[]
no_license
-- drop table if exists tb_ClienteAluno; (SELECT * FROM TB_CLIENTEALUNO) -- create table if not exists tb_clientealuno -- ( -- rm bigint generated by default as identity, -- nome Varchar(100), -- turma varchar(20), -- cpf varchar(20), -- rg varchar(20)...
true
56372c7f8303c7ea9b2cb887a2629e085645e383
SQL
Miguel619/cs50
/pset7/movies/8.sql
UTF-8
219
3.671875
4
[]
no_license
/* list the names of all people who starred in Toy Story */ SELECT people.name FROM stars INNER JOIN people ON stars.person_id = people.id INNER JOIN movies ON stars.movie_id = movies.id WHERE movies.title = "Toy Story"
true
af60ddf2fab925f0bdb168f510d6c23da0cfed09
SQL
set808/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/13-count_shows_by_genre.sql
UTF-8
285
3.640625
4
[]
no_license
-- lists all shows in hbtn_0d_tvsows that have at least 1 genre linked SELECT tv_genres.name AS genre, COUNT(tv_show_genres.genre_id) AS number_shows FROM tv_show_genres INNER JOIN tv_genres ON tv_genres.id = tv_show_genres.genre_id GROUP BY tv_genres.name ORDER BY number_shows DESC;
true
3056602a32f0afa0dd7fd3f25d120584ff1b58c9
SQL
eh8491/data-models
/mobile/v1/bigquery/sql-runner/sql/standard/02-screen-views/01-main/00-setup-screen-views.sql
UTF-8
6,434
3.453125
3
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
/* Copyright 2021 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by a...
true
6a1ec568716012f5e932c56ec04c0b841aa64ead
SQL
siamik/siamik.github.io
/itn_database.sql
UTF-8
10,780
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 17, 2015 at 08:35 PM -- Server version: 5.5.27 -- PHP Version: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
87177a374b69e8e86725411bf9a8c27d4afd92bb
SQL
TheYoungSensei/projet_sql
/rapport/codes/perte_visibilite.sql
UTF-8
479
3.421875
3
[]
no_license
DROP VIEW IF EXISTS shyeld.perte_visibilite; CREATE VIEW shyeld.perte_visibilite AS SELECT DISTINCT sh.id_superhero, sh.nom_superhero, sh.date_derniere_apparition, sh.derniere_coordonneeX, sh.derniere_coordonneeY FROM shyeld.superheros sh WHERE (date_part('year', age(sh.date_derniere_apparition)) >= 1 OR date_part('m...
true
c3ef622b4f89d21c6e3aba2622318c8aaa6e41a4
SQL
nss-evening-cohort-05/chinook-mccutchan
/sales_agents.sql
UTF-8
214
3.453125
3
[ "MIT" ]
permissive
/*Provide a query showing only the Employees who are Sales Agents.*/ /*Map*/ SELECT e.FirstName, e.LastName, e.EmployeeId, e.Title /*What tables*/ FROM Employee e /*Filter*/ WHERE e.Title = "Sales Support Agent"
true
b0de729d4a50d599512426d9a3d79c01f4bd9553
SQL
afanprima22/gresik
/db/spgs.sql
UTF-8
1,978
2.875
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: Oct 20, 2017 at 04:34 PM -- Server version: 10.1.9-MariaDB -- PHP Version: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
e443490f08be64dd09fbfd54006fc3ac1dfe2235
SQL
pavelcik/jpa1-starterkit
/target/classes/import.sql
UTF-8
7,978
2.5625
3
[]
no_license
insert into car(CAR_NAME,car_type,car_brand,production_year,color,engine_capacity,mileage,engine_power,price_by_day) VALUES ('TOYOTA YARIS','HATCHBACK','TOYOTA','2017','SILVER',1.4,20400,90,220); insert into car(CAR_NAME,car_type,car_brand,production_year,color,engine_capacity,mileage,engine_power,price_by_day) VALU...
true
afc23d27baf8d5a799d03eab6e03a9d9be22ee5e
SQL
freddieb12345/MyEmployeeTracker
/data.sql
UTF-8
653
3.4375
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
USE employees_db; -- import the employees database INSERT INTO department (name) -- Creates default values within the department table for the user to use VALUES ('Finance'), ('Legal'), ('Audit'), ('Tech'), ('HR'), ('Security'); INSERT INTO role (title, salary, department_id) -- Creates default values for the roles ...
true
5b0dd815d75c4535baf79901360e690acd09c431
SQL
abelderviche/electronicalh
/protected/migrations/dump.sql
UTF-8
4,208
3.046875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: electronicalh -- ------------------------------------------------------ -- Server version 5.5.5-10.1.28-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTE...
true
89581d4f638459fef98675153cd7297e72f392c3
SQL
IUIDSL/kgap_lincs-idg
/sql/drugcentral_pd_drugs.sql
UTF-8
534
3.703125
4
[ "CC0-1.0" ]
permissive
SELECT DISTINCT ids.identifier AS pubchem_cid, s.id dc_struct_id, s.name dc_name, s.smiles, s.inchikey, atc.l1_code, atc.l1_name FROM omop_relationship omop JOIN structures s ON omop.struct_id = s.id JOIN identifier ids ON ids.struct_id = s.id JOIN struct2atc s2atc ON s2atc.struct_id = s.id JOIN ...
true
ccb59d886a007a795cbb827bef1cc70d05eb582f
SQL
tinaw25/Exercises
/Exercise_6/zalando.sql
UTF-8
3,772
3.125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `zalando` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `zalando`; -- MySQL dump 10.13 Distrib 5.6.17, for osx10.6 (i386) -- -- Host: 127.0.0.1 Database: zalando -- ------------------------------------------------------ -- Server version 5.6.20 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@...
true
cfa5d649a03ba395fa04171c2d9c90786faeb266
SQL
Vivek-Kamble/MySQL-Notes
/assignment_sql.sql
UTF-8
3,663
3.109375
3
[]
no_license
use chetan create table student_details ( stud_id int primary key,stud_name varchar(50),stud_age varchar (50),stud_gen varchar (10), stud_address varchar(50), stud_phone varchar(10), stud_mail varchar (50)); select * from student_details insert into student_details (stud_id,stud_name,stud_age,stud...
true
18b1051f6cdc9673636f3b13180d9d25b6f67f22
SQL
damoklov/db-procedures-iot
/functions.sql
UTF-8
641
3.953125
4
[]
no_license
USE `mydb`; DROP FUNCTION IF EXISTS FindMaxStudentBirthDate; DROP FUNCTION IF EXISTS FindCityOfEachStudent; DELIMITER // CREATE FUNCTION FindMaxStudentBirthDate() RETURNS DATETIME BEGIN RETURN (SELECT MAX(`birth_date`) FROM `student`); END // DELIMITER ; DELIMITER // CREATE FUNCTION FindCityOfEachStudent(studentID ...
true
4cf01f27701e36b12827c8ff36fc3586e1a1310d
SQL
wien-subs/recrutare
/SQL/user.sql
UTF-8
711
2.59375
3
[ "WTFPL" ]
permissive
/* #Wien-Subs Developer Team# Source Server : local Source Server Version : 100206 Source Host : localhost:3306 Source Database : recrutare Target Server Type : MYSQL Target Server Version : 100206 File Encoding : 65001 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- ...
true
59f635276a08626a801b525619040b326c851e2f
SQL
BrambilasCodes/TrabalhosBD1_RicardoBrambila
/Trabalho03_BD1_RicardoBrambila/Trabalho03_Mysql_BD1_RicardoBrambila.sql
UTF-8
5,766
3.484375
3
[]
no_license
CREATE TABLE Dia( codigo int primary key AUTO_INCREMENT, nome varchar(32) not null UNIQUE ); CREATE TABLE HorarioFuncionamento( abertura varchar(50) not null, fechamento varchar(50) not null, dia_cod int, primary key (abertura, fechamento), constraint dia_cod_fk foreign key(dia_cod) references Dia(codigo) ); ...
true
033efced3472ac85023c85b6e21e51887d446090
SQL
techtronics/upa
/Insidencias/reportes/nuevas/dae/agregar direcciones.sql
UTF-8
1,045
3.34375
3
[]
no_license
select a.rut,a.dv, c.dire_tcalle as direccion, c.dire_tnro as nro, c.dire_tblock as depto, c.dire_tpoblacion as poblacion, (select cast(max(comp_mdocumento) as numeric) from contratos a, compromisos b, alumnos c where a.cont_ncorr=b.comp_ndocto and a.matr_ncorr=c.matr_ncorr ...
true
459837b9d7a614d066a3f98fa1a53486977df0fa
SQL
Ex-Soft/test
/sql/MSSQL/TestMasterDetail/dml.sql
UTF-8
1,033
3.78125
4
[]
no_license
select * from dbo.TestDetailWithNullableIdMaster [detail] left join dbo.TestMaster [master] on [master].id = [detail].IdMaster; select * from dbo.TestMaster [master] left join dbo.TestDetail [detail] on [detail].IdMaster = [master].Id order by [master].Id, [detail].Val; -- update dbo.TestDetail se...
true
8159b419e9436748737ed3d8da0e05ee03b033d9
SQL
ibasu/contact-points
/src/main/resources/db/migration/V1.0__ddl.sql
UTF-8
710
3.53125
4
[]
no_license
CREATE TABLE CONTACT_POINTS_PHONE( ID VARCHAR (255) NOT NULL PRIMARY KEY, CUSTOMER_ID VARCHAR(255) NOT NULL, CONTACT_NO_CODE VARCHAR (3) NOT NULL, CONTACT_NO INTEGER(10) NOT NULL, STATUS VARCHAR (50) NOT NULL, REASON VARCHAR (100), CREATION_TIME TIMESTAMP NOT NULL, LAST_UPDATED_TIME TIMESTAMP, USER_ID...
true
2353830698b985c10b2458d596c0fe8dd9623766
SQL
Limingy1/17Java8
/04 SQLServer2005基础/第6章 课程设计/上机作业/张聪/超市收银项目.sql
GB18030
5,172
3.8125
4
[]
no_license
--Ʒ Category create table Category( Cid int primary key identity(1,1), Cname nvarchar(20) unique not null, Description nvarchar(25) null ) --ƷϢ Ware create table Ware( Wid int primary key, Wname nvarchar(30) unique not null, Cid int not null foreign key references Category(Cid), PurchasePrice decimal(10,2) ...
true
532e3a73910489067afb7c4a91a9299a53af0e38
SQL
sonkamuseva/air_ticket_generator
/air_ticket_generatorDUMP(step2).sql
UTF-8
27,524
3.0625
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.5 -- Dumped by pg_dump version 9.6.5 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min...
true
d7e314e31d1bda607e599bb4cd90167573831262
SQL
naveendhasarathan/eBatch
/eBatch/eBatch.Database/eBatch.Database/dbo/Stored Procedures/GetMenu.sql
UTF-8
527
3.625
4
[]
no_license
create procedure GetMenu (@UserId int) as begin select UserId,moduleId,moduleName from (select UR.UserId ,RM.moduleId, cv.codevalue as moduleName, cv.sortorder from tblUsers U JOIN tblUser_role UR ON U.Id= UR.UserId JOIN tblrolemodule RM ON UR.roleId=RM.roleId JOIN tblCodeValue cv ON cv.Id= RM.moduleId where u.Id ...
true
0de39e0e80507a81357ab9dbc932cf9d1b3b4d38
SQL
chrto/server
/storage/sql/tables.sql
UTF-8
436
3.40625
3
[]
no_license
-- SQLite CREATE TABLE IF NOT EXISTS users ( `id` UUID PRIMARY KEY NOT NULL, `first_name` VARCHAR(50) NOT NULL, `last_name` VARCHAR(50) NOT NULL, `email` VARCHAR(50) NOT NULL, `active` TINYINT(1) NOT NULL DEFAULT 1, `role` VARCHAR(10) NOT NULL DEFAULT 'User' check (role in ('Admin', 'User')), ...
true
d8eba9a4dd9b72bf82983b7f6c2625c65cb4bb75
SQL
LangeHenrik/SDU-ITI-F19
/latra16/Assignment1/src/config/migration.sql
UTF-8
2,591
3.5
4
[]
no_license
-- Reset database DROP DATABASE IF EXISTS latra16; CREATE DATABASE latra16; USE latra16; -- Create tables CREATE TABLE latra16.user ( user_id INT AUTO_INCREMENT PRIMARY KEY, username VARCHAR(255) NOT NULL UNIQUE, hashPassword VARCHAR(255) NOT NULL, firstName VARCHAR(255) NOT NULL, lastName VARCHAR(255) NOT NULL,...
true
dac7ee4521affcc8f0aa10fe743c82b3767231ed
SQL
yKanazawa/aws_monthly_amount
/sql/tokyo_ec2_linux_spec.sql
UTF-8
848
3.03125
3
[]
no_license
SELECT SUBSTRING_INDEX(`Instance Type`, '.', 1) AS `Instance Index` ,`Instance Type` ,`Instance Family` ,`Current Generation` ,`vCPU` ,`Physical Processor` ,`Processor Architecture` -- ,`Processor Features` ,`Clock Speed` ,`Memory` ,`Storage` -- ,`Storage Media` -- ...
true
53c970c54a64015eb57d2be008aefa211eb61b2d
SQL
alexstanro/cubrid-testcases
/sql/_02_user_authorization/_02_authorization/_001_grant/cases/1028.sql
UTF-8
1,167
3.234375
3
[ "BSD-3-Clause" ]
permissive
--+ holdcas on; --Grant two users all privileges on superclass and subclass with keyword of except CALL login('dba','') ON CLASS db_user; CREATE CLASS DCL1 (id INTEGER); CREATE CLASS DCL2 UNDER DCL1 (id INTEGER); CREATE CLASS DCL3 UNDER DCL1 (id INTEGER); CALL add_user('DCL_USER1','DCL1') ON CLASS db_user; CALL add_u...
true
6e53605dba9e2e21d88acd120e1491325a267bfd
SQL
yarden95c/DBProject
/sql_scripts/export_only_structure.sql
UTF-8
6,285
3.390625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `facts_generator_final` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `facts_generator_final`; -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: music_fact_generator -- ------------------------------------------------------ -- Server version 5.7.20-l...
true
6a439043fb50599968e3a43b556fcb2546a6c23e
SQL
VincentWangcf/Vendavo
/webquote3.0trunk/DB_Changes/Branches/V2.2/2.2.1/005updateTRIGGERAUDIT_QUOTE_ITEM.sql
UTF-8
2,014
3.109375
3
[]
no_license
create or replace TRIGGER AUDIT_QUOTE_ITEM BEFORE INSERT OR UPDATE OF QUOTED_MFR_ID,QUOTED_PART_NUMBER,QUOTE_NUMBER,COST,COST_INDICATOR,LEAD_TIME,MOQ,MOV,MPQ,PMOQ,QTY_INDICATOR,QUOTED_QTY,RESALE_INDICATOR,SHIPMENT_VALIDITY,STATUS,MIN_SELL_PRICE,NORM_SELL_PRICE,PRICE_VALIDITY,STAGE,FINAL_QUOTATION_PRICE,QUOTED_PRICE ON...
true
01644ce94e3af21bcace40389e80f8f77bbde583
SQL
oguzsoydemir/oguzsoydemir-online-customer-service
/DB-Schema.sql
UTF-8
846
3.375
3
[]
no_license
use chat; create table `ROOM` ( `socketID` varchar(30), `roomID` char(38) not null, `title` varchar(150), `date` datetime, `isAdmin` boolean, `isActive` boolean ); create table `USER`( `userID` int not null AUTO_INCREMENT primary key, `name` varchar(30) not null, `surname` varchar(30) not null, `email` varchar(50) no...
true