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
b7208654332db2c9f7bf0a0e4b5a06ab154ff794
SQL
paulacandido/Atividade-de-banco-de-dados-relacional-Mysql-Opcional
/Atividade de banco de dados relacional Mysql (Opcional).sql
UTF-8
4,257
3.5625
4
[]
no_license
-- Crie um banco de dados para um serviço de uma loja de móveis e decoração, o nome do banco deverá ter o seguinte: db_nome minha_casa_mais_bonita, onde o sistema trabalhará com as informações dos produtos desta loja. -- CREATE DATABASE db_minha_casa_mais_bonita; -- Crie uma tabela de categorias utilizando a habilidad...
true
5960f6e74e6cd224806cd28e3fcbea938a4b7b4e
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/tables/TIPOS_CUENTA.sql
ISO-8859-1
1,965
3.015625
3
[]
no_license
-------------------------------------------------------- -- DDL for Table TIPOS_CUENTA -------------------------------------------------------- CREATE TABLE "AXIS"."TIPOS_CUENTA" ( "CTIPBAN" NUMBER(3,0), "NORDEN" NUMBER(1,0), "LONGITUD" NUMBER(2,0), "FORMATO" VARCHAR2(50 BYTE), "POS_ENTIDAD" NUMBER(2,0)...
true
c9c6c650ecfc305eabb692130c378dd1e079f0de
SQL
Praz-715/bukucatatankerja
/bukucatatan.sql
UTF-8
2,769
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 28, 2021 at 03:21 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
e0e5c7c9acf583b146bf62b699f4dc25b46ad881
SQL
Justdoit2/Rental-Management-System
/t1.sql~
UTF-8
1,071
3.4375
3
[]
no_license
CREATE OR REPLACE PROCEDURE t1(branchNo_param IN Branches.branchNo%type) AS CURSOR emp_cur IS SELECT Rental.* FROM Rental WHERE Rental.supervisorId IN (SELECT Employees.employeeId FROM Employees WHERE Employees.branchId= (SELECT Branches.branchNo FROM Branches WHERE Branches.branchNo=branchNo_param)); result_rec...
true
e6b354767d1d3b4f1b2a11ec3bcc23d633fa50a3
SQL
hqottsz/MXI
/assetmanagement-database/src/upgrade/plsql/lib/liquibase/8/1/0/0/sql/MTX-852-4.sql
UTF-8
6,888
3.546875
4
[]
no_license
--liquibase formatted sql --changeSet MTX-852-4:1 stripComments:false endDelimiter:\n\s*/\s*\n|\n\s*/\s*$ CREATE OR REPLACE PROCEDURE migrate_alt_id( p_table_name IN VARCHAR2 ) IS v_step NUMBER(4); v_convert_flag NUMBER(1); v_trigger_name VARCHAR2(30); v_trigger_sql VARCHAR2(1000); v_err_...
true
a4c77593af122a471bb1fb2e33cb2c6b20c84a1c
SQL
mamo716/craft-common-11
/Quiz2alter.sql
UTF-8
537
2.96875
3
[]
no_license
create schema DBPrac; use DBPrac; create table clinets( Client_ID int primary key auto_increment, Client_FirstName varchar(255) not null, Client_LastName varchar(255) not null, Client_NickName varchar(255), Client_Age int, Client_Gender char(255) not null, Client_Country char(25), Client_Salary float ); Alter table cl...
true
1071a4cfb964962b2b9cf79da19a6dfb4abd56b8
SQL
caringbridge-marketing/SQL-Queries
/MTD NRV.sql
UTF-8
126
3.09375
3
[]
no_license
select count(fu.userId) from fct_user fu join dim_date dd on fu.datekey = dd.rowdatekey where dd.year = 2016 and dd.month = 11
true
5d642569097412c7edc26c048816f99857f859d1
SQL
NecmettinCeylan/Py_Works
/0_Completed_Udemy_the_complete_sql_bootcamp/q20.sql
UTF-8
130
2.859375
3
[]
no_license
SELECT SUM(amount) AS total, extract (month from payment_date) AS month FROM payment GROUP BY month ORDER BY total DESC LIMIT 1
true
cfd50f4f3315c5e1bec67fd294512ad2215f8630
SQL
danieldiamond/gitlab-analytics
/transform/snowflake-dbt/models/sources/gitlab_dotcom/gitlab_dotcom_repository_languages.sql
UTF-8
565
3.265625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
WITH source AS ( SELECT * FROM {{ source('gitlab_dotcom', 'repository_languages') }} QUALIFY ROW_NUMBER() OVER (PARTITION BY project_programming_language_id ORDER BY _uploaded_at DESC) = 1 ), renamed AS ( SELECT MD5(project_programming_language_id)::VARCHAR AS repository_language_id, pr...
true
3d3d665d750670e15210a3a48b568a135556c2b7
SQL
koushiksoft/credit-suisse
/socialMedia/src/main/resources/data.sql
UTF-8
323
2.703125
3
[]
no_license
DROP TABLE IF EXISTS USER; CREATE TABLE USER ( id VARCHAR(20) PRIMARY KEY, NAME VARCHAR(250) NOT NULL, GENDER VARCHAR(20) NOT NULL, ); INSERT INTO USER (id, NAME, GENDER) VALUES ('U1001','MARRY','FEMALE'), ('U1002','SALLY','FEMALE'), ('U1003','JOHN','MALE'), ('U1004','ROHN','MALE'), ('U1005','JIMM','MALE...
true
aa18658b94093b2ab5f3d9264e1ab195d84366b2
SQL
yana5k/DB-Lab3
/create.sql
UTF-8
3,139
2.71875
3
[]
no_license
-- Generated by Oracle SQL Developer Data Modeler 19.4.0.350.1424 -- at: 2020-05-02 16:09:22 EEST -- site: Oracle Database 11g -- type: Oracle Database 11g CREATE TABLE albumgenre ( id_album INTEGER NOT NULL, genre VARCHAR2(30) NOT NULL ); ALTER TABLE albumgenre ADD C...
true
4e299b1062d4e582a15b47113faba970c57a5751
SQL
lukassaari/Newsapp-intnet-project
/Backend/dbTables.sql
UTF-8
1,604
3.28125
3
[]
no_license
use emilmar; # Byt till eget användarnamn # Om det finns en tidigare databas drop trigger if exists readCount; drop table if exists comments cascade; drop table if exists articles cascade; drop table if exists sources cascade; drop table if exists users cascade; create table sources ( title varchar(255) PRIMARY KEY,...
true
ed63b9b0b9f09f36bbf871d6461c3f66304b1087
SQL
omar378501/open-hack
/src/main/resources/db/migration/V1__init.sql
UTF-8
1,353
3.65625
4
[ "Apache-2.0" ]
permissive
CREATE TABLE user ( id int unsigned NOT NULL AUTO_INCREMENT, first_name varchar(50) NOT NULL, last_name varchar(50) NOT NULL, email varchar(255) NOT NULL , screen_name varchar(255) NOT NULL, portrait_url varchar(255), business_title varchar(255), about_me text, street varchar(100), ...
true
2d54c24918f9510186753cea9d12520b6e867188
SQL
baf2117/TEO_DB
/Tables/Alumno_Actividad.sql
UTF-8
628
3.609375
4
[]
no_license
CREATE TABLE IF NOT EXISTS `Alumno_Actividad` ( `Nota` decimal(5,2) DEFAULT '0.00', `id` int(11) NOT NULL, `id_act_alumno` int(11) NOT NULL AUTO_INCREMENT, `id_actividad` int(11) NOT NULL, PRIMARY KEY (`id_act_alumno`), KEY `Alumno_Actividad_Actividad_FK` (`id_actividad`), KEY `Alumno_Actividad_users_...
true
697984081314e2d418e845958d872b2220dd5f02
SQL
agustinfarinia1/ChinemaCenter
/Schema/3-salas.sql
UTF-8
485
3.375
3
[]
no_license
USE chinemacenter; CREATE TABLE salas ( id_sala int NOT NULL AUTO_INCREMENT, id_cine int NOT NULL, nombre varchar(50) NOT NULL, capacidad int DEFAULT 1, precio float DEFAULT 0, estado int DEFAULT 1, CONSTRAINT PK_SALAS PRIMARY KEY (id_sala), CONSTRAINT FK_SALAS FOREIGN KEY (id_cine) REFERENCES cines(id...
true
809645fb6af1c9c65134e1e13fb4ef431554426e
SQL
Talenel/Customers
/SQL Files/customer1.sql
UTF-8
2,054
4.03125
4
[]
no_license
Drop table if exists address; drop table if exists isEmployee; Drop table if exists customer; Drop table if exists companies; #alter table customers add CustID int not null auto_increment primary key; Create table address as ( Select CustID, StreetAddress, City, State, ZipCode from customers ); #Select count(*...
true
166057e5d9d7a83e4cf0c1ea7796debb37c82d66
SQL
devsambuca/myTestDB
/src/main/resources/4.sql
UTF-8
390
2.9375
3
[]
no_license
/*Добавление поля (cost - стоимость) в таблицу Projects .*/ ALTER TABLE projects ADD COLUMN cost INT NOT NULL; /*Стоимость каждого проекта*/ UPDATE projects SET cost = 200000 WHERE id = 1; UPDATE projects SET cost = 150000 WHERE id = 2; UPDATE projects SET cost = 60000 WHERE id = 3; UPDATE projects SET cost = 500000...
true
0b085828be952c55ccbdcfae63e14b0f430ef993
SQL
lvanbrussel/IBF-system
/services/API-service/src/api/data/sql/get-event-summary-country.sql
UTF-8
1,117
4.03125
4
[]
no_license
select to_char(max("endDate") , 'yyyy-mm-dd') as "endDate", to_char(min("startDate"), 'yyyy-mm-dd') as "startDate", max(country_code) as "countryCode", max("activeTrigger"::int)::boolean as "activeTrigger" from ( select e."placeCode" , coalesce(a2.country_code , a1.country_code) as country_code, ...
true
f380263adff13e6b3e2915d14f33a53bf8e700c3
SQL
cbanquo/nft-pipeline
/transform/models/staging/platforms/stg_platform_open_sea_sales.sql
UTF-8
1,003
3.65625
4
[]
no_license
/* Tables */ WITH open_sea_sales AS ( SELECT * FROM {{ source('raw_python', 'open_sea_sales')}} ), /* Transformations */ -- wouldn't normally tansform but needed to flatten the JSON flattened AS ( SELECT --FK data:buyer::TEXT AS to_account_id, data:s...
true
234a68cb30d4ca000a8c915dd7ca96bc9912219f
SQL
anandeka/my-project
/DBScripts/CorporateScripts/CorporateScripts_34.sql
UTF-8
4,225
2.734375
3
[]
no_license
Insert into DRFM_DOC_REF_NO_MAPPING (DOC_REF_NO_MAPPING_ID, CORPORATE_ID, DOC_ID, DOC_KEY_ID, IS_DELETED) Values ('DRFM-DFT-PI-&corpId', '&corpId', 'CREATE_DFT_PI', 'DFT-PI', 'N'); Insert into DRF_DOC_REF_NUMBER_FORMAT (DOC_REF_NUMBER_FORMAT_ID, DOC_KEY_ID, CORPORATE_ID, PREFIX, MIDDLE_NO_START_VALUE...
true
d851675c6502ade1d7aecc4f66e5c5f4f42db039
SQL
supportficct/INF312
/Projects de Josue/ejercicio 4.sql
UTF-8
1,278
3.4375
3
[]
no_license
--EMPLEADOPS QUE TRABAJAN EN EL MISMO PROYECTO QUE ALFREDO SELECT DISTINCT empleado1.CI,empleado1.nombre,proyecto.nombre FROM [empleado proyecto],empleado1,proyecto WHERE empleado1.CI=[empleado proyecto].CI and [empleado proyecto].NP=proyecto.NP AND [empleado proyecto].NP IN ( SELECT [empleado proyecto...
true
56b106bd7a784bb21ce3a13451effa983183f63c
SQL
xjtuwangke/ctc-docs
/CTC-Client/revise/20151216/novel2.sql
UTF-8
9,333
3.25
3
[]
no_license
CREATE TABLE T_AdCategories ( adCategoryId INT PRIMARY KEY NOT NULL IDENTITY, adCategoryTheme VARCHAR(50) DEFAULT '' NOT NULL, adCategory0 VARCHAR(50) DEFAULT '' NOT NULL, adCategory1 VARCHAR(50) DEFAULT '' NOT NULL, createdAt DATETIME DEFAULT getdate() NOT NULL, createdBy INT NOT NULL ); CREATE...
true
cd526fc43f5db5e29ec23f32291fcb39c21a9cc2
SQL
smartsupun/Food-ordering
/food/database_file/items.sql
UTF-8
1,840
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 12, 2021 at 03:54 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
46168c17324d6ac83125669b184834e426daa677
SQL
erikayahata/projetoweb
/insert_data.sql
ISO-8859-1
8,402
2.75
3
[]
no_license
-- usuario INSERT INTO `usuario` VALUES (2,'maria@gmail.com','Maria','Silva',NULL,'11111111','1234'); INSERT INTO `usuario` VALUES (3,'paulo@gmail.com','Paulo','Costa',NULL,'111111111','1234'); -- endereco INSERT INTO `endereco` VALUES (1,'Rua','Conselheiro Lafayette','30','','Santa Paula','So Caetano do Sul','SP...
true
19c68d1b611fb1738032c8aa37d7815213ae0e6b
SQL
0wen26/pl-sql
/T4/ejer1A.sql
UTF-8
583
3.4375
3
[]
no_license
CREATE TABLE TEMP( NUM_STORE NUMBER(7,2), CHAR_STORE VARCHAR2(35), DATE_STORE DATE); DECLARE --Declara dues variables i assigna el següents valors a aquestes variables: v_message varchar2(35):='This is my first PL/SQL program'; v_date_written date :=sysdate(); BEGIN --Emmagatzema els valors d'aquestes...
true
d0ad5ef5d37d1124236b97a3e3c8f39c034ea03e
SQL
kcvikrant/SQL-Data-Analysis-and-Visualization-Projects
/SQL for Statistics Essential Training/04.Linear_Models.sql
UTF-8
1,364
4.1875
4
[ "MIT" ]
permissive
/***************** Linear Models ****************/ /* Linear Model such as regression are useful for estimating values for business. Such as: We just run an advertising campaign and expect to sell more items than usual. How many employees should we have working? */ /*********** Computing Intercept (employee shifts on...
true
30921f18b9d90ac13bb237b894c68da0da955206
SQL
ddekroon/PMotion
/web-app/includes/misc-updates.sql
UTF-8
1,422
3.390625
3
[]
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: derek * Created: 10-Feb-2018 */ --Create Emails Table CREATE TABLE `data_perpetualmotion`.`emails_dbtable` ( `id`...
true
02639f230d0738bf00ea2a88c1035899ad74e692
SQL
akaplya/mview
/source/drop.sql
UTF-8
1,083
3.84375
4
[]
no_license
DELIMITER $$ USE `mview`$$ DROP PROCEDURE IF EXISTS `drop`$$ CREATE DEFINER=`root`@`localhost` PROCEDURE `drop`( p_schema_name VARCHAR(64), p_mview_name VARCHAR(60) ) BEGIN DECLARE l_view_name VARCHAR(64); DECLARE l_changelog_enabled INTEGER; SELECT view_name, changelog_enabled INTO l_view_name, l_cha...
true
0f35ae58a4a86a2f83ed3149cdbfe7870a9d529b
SQL
uriguri/class2020
/SQL/2020-11-09.sql
UTF-8
5,697
4.34375
4
[]
no_license
-- scott 계정이 소유한 테이블 객체를 확인 : Tab -> 사용자가 가지는 테이블의 정보를 저장하는 데이터 딕셔너리 select * from tab; -- 테이블의 구조 확인 : DESC -- 테이블의 데이터를 검색하기전 구조를 확인 할 때 Desc emp; Desc dept; -- 데이터의 조회 명령 : Select -- SELECT 컬럼명 , ... FROM 테이블 이름 -- SELECT의 결과는 -> TABLE 이다~! SELECT * -- 컬럼 이름들을 기술해준다. 기술하는 순서에 따라 결과도 순서에 맞게 출력 FROM e...
true
adfe617212c6c5d0582163a051e407d308de4be5
SQL
qweqweqweasdasdasd/swoft
/orders_mian.sql
UTF-8
884
2.84375
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
/* Navicat MySQL Data Transfer Source Server : 127.0.0.1 Source Server Version : 50553 Source Host : 127.0.0.1:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2020-02-24 21:00:33 */ SET FOREIGN_KEY_CHECKS=0; -- ----...
true
b06ee210670ea0fa6e2e387845848d691fe36b92
SQL
ironmanbr/poc-teste
/database.sql
UTF-8
805
3.625
4
[]
no_license
CREATE TABLE customers ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(200) NOT NULL, email VARCHAR(150) NOT NULL, payment_type VARCHAR(20) DEFAULT 'transference', created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY(id) ); CREATE TABLE products ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, ...
true
ab7f3161c40ae18be851377c2348f55770fd8883
SQL
saintkarl/tpkwhm
/sql/WHMTPK/addTableUpdateOweHistory.sql
UTF-8
950
3.390625
3
[]
no_license
CREATE TABLE `OweLog` ( `OweLogID` bigint(20) NOT NULL AUTO_INCREMENT, `CustomerID` bigint(20) NOT NULL, `PrePay` Double, `Pay` Double, `PayDate` TIMESTAMP NULL, `CreatedBy` bigint(20) NOT NULL, `CreatedDate` timestamp NULL, PRIMARY KEY (`OweLogID`), KEY `FK_OweLog_Customer` (`CustomerID`), CONSTRAI...
true
befa3e2ab22308210a62336b16f457cc04d8feda
SQL
jworkman119/HTC
/Pinnacle/Reports/Administrative/AdministrativeHouts_ByCounselor.sql
UTF-8
816
3.84375
4
[]
no_license
Select Date ,Description , StartTime ,EndTime , ((cast(strftime('%s',EndTime)as float) - cast(strftime('%s',StartTime)as float))/60)/60 as TotalTime From Administrative Join Staff on Administrative.Staff_ID = Staff.ID Where Staff.FirstName || ' ' || Staff.LastName = 'Teresa Cucchiara' and strFtime('%m',Date)...
true
08e054ec3fbf7a419caf8cc050a77a028254ba4c
SQL
shura105/business-assistant-1
/shop/business (6).sql
UTF-8
24,833
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Июл 19 2020 г., 19:57 -- Версия сервера: 10.4.11-MariaDB -- Версия PHP: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
09e4c702e5beaaa260e91c96bdea3c6723607cdb
SQL
ryo27-jp/sql_practice
/chapter4.sql
UTF-8
2,354
3.75
4
[]
no_license
-- CREATE TABLE ShohinIns -- (shohin_id CHAR(4) NOT NULL, -- shohin_mei VARCHAR(100) NOT NULL, -- shohin_bunrui VARCHAR(32) NOT NULL, -- hanbai_tanka INTEGER DEFAULT 0, -- shiire_tanka INTEGER, -- torokubi DATE, -- PRIMARY KEY (shohin_id)); -- CREATE TABLE ShohinCopy -- (shohin_id CHAR(4) NOT NU...
true
b243aadee16a3233a138a12a6ebaf161b46f4c0b
SQL
GeorgeK95/RealEstateBiddingSystem
/real-estate-bidding-system-api/src/main/resources/types.sql
UTF-8
659
3.09375
3
[ "MIT" ]
permissive
/*CREATE TABLE IF NOT EXISTS `types` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL PRIMARY KEY (`id`), UNIQUE (type_name) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=256 ; -- -- Dumping data for table `types` --*/ INSERT INTO...
true
f985817065263118f47903d150fd8b315fc4ba12
SQL
yb7984/Springboard-Projects
/22-sql-joins/queries.sql
UTF-8
1,226
4.625
5
[]
no_license
-- write your queries here -- Join the two tables so that every column and record appears, regardless of if there is not an owner_id. Your output should look like this: SELECT * FROM owners FULL JOIN vehicles ON owners.id = vehicles.owner_id; -- Count the number of cars for each owner. Display the owners first_name, ...
true
2fc5ff1ddd19bc2b5e517a8801e85d6b5c23c434
SQL
aviwembekeni/waiter-availability
/waiter-availabilty-script.sql
UTF-8
852
3.71875
4
[]
no_license
drop table if exists users, weekdays, shifts; create table users ( id serial not null primary key, user_name text not null, full_name text not null, user_type text not null ); create table weekdays ( id serial not null primary key, day_name varchar(20) ); create table shifts ( id serial not null primary key, ...
true
860ce4d166d2572cb4d07a1f3b51bd55162feead
SQL
diego777183/practicasBBDD
/practica2/postgresql/scriptPosgresql.sql
UTF-8
1,745
3.421875
3
[]
no_license
DROP TABLE IF EXISTS imparte; DROP TABLE IF EXISTS participa; DROP TABLE IF EXISTS pdi; DROP TABLE IF EXISTS asignatura; DROP TABLE IF EXISTS proyectoInvestigador; DROP TABLE IF EXISTS docente; DROP TABLE IF EXISTS investigador; DROP TABLE IF EXISTS empleado; DROP TABLE IF EXISTS asignatura; DROP TABLE IF EXISTS tabla...
true
fe2a7cbc53a17d9bff64f41f6701a02568de4ec3
SQL
Lightzzs/sprint-2-back-end
/senai_inlock/Inlock_03_DQL.sql.sql
UTF-8
506
3.40625
3
[]
no_license
USE Inlock; SELECT * FROM TiposDeUsuario; SELECT * FROM Usuario; SELECT * FROM Estudios; SELECT * FROM Jogos; SELECT email AS Usuarios FROM Usuario; SELECT nomeEstudio AS Estudios FROM Estudios; SELECT nomeJogo AS Jogos FROM Jogos; SELECT Jogos.nomeJogo AS Jogos , Estudios.nomeEstudio AS Estudios FROM Jogos INNER JO...
true
7f6dc8eba0e2f55fbbd44bd3e096f4996ba62ea0
SQL
Yamini-S/DBMS
/FinalProject_DB/FinalProject_Group14/FlatFiles/export.sql
UTF-8
114,933
2.921875
3
[]
no_license
-------------------------------------------------------- -- File created - Wednesday-April-27-2016 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Table DIMABSENCECODE -------------------------------------------------------- CREATE TAB...
true
5ce8f90ce5011f3bb5080ba4cf2741d3235eaf14
SQL
igorf/otus-java-2017-06-fedorenko
/hw10/data/tables.sql
UTF-8
2,579
3.046875
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Версия 5215 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Адрес: localhost (MySQL 5.7.17) # Схема: otushw # Время создания: 2017-08-15 20:41:06 +0000 # ****************************************************...
true
662c36f28308c7a52f8cd7cfa35ea906aeb2be00
SQL
sweeneygood/sql-challenge
/EmployeeSQL/sql-challenge-queries.sql
UTF-8
4,051
4.6875
5
[]
no_license
/**************************************************** List the following details of each employee: employee number, last name, first name, sex, and salary. ****************************************************/ SELECT employees.emp_no, employees.last_name, employees.first_name, employees.sex, salaries.sa...
true
7a884c0e6870d0f7eaf4ef22f7bdddf522300f31
SQL
Configurellc/SELECT-todo-FROM-list
/todo_app.sql
UTF-8
1,372
3.890625
4
[]
no_license
DROP USER IF EXISTS "michael"; CREATE USER "michael" WITH password 'stonebreaker'; DROP DATABASE IF EXISTS "todo_app"; CREATE DATABASE "todo_app"; \c todo_app DROP TABLE IF EXISTS "tasks"; CREATE TABLE "tasks" ( id serial, title varchar(255), description text, created_at timestamp WITHOUT TIME ZONE DEFAULT no...
true
d23f0bcbd6870e23d6b6807f0826d55aaa4c4d42
SQL
adiyaari01/MySQL_project
/Dump20200805/book_store_customer.sql
UTF-8
2,797
2.859375
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64) -- -- Host: localhost Database: book_store -- ------------------------------------------------------ -- Server version 8.0.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESUL...
true
cefe9e1964466ac09e7552963b9eae398dd8cab8
SQL
troastarrr/order
/lalamove_order_order_tb.sql
UTF-8
972
2.84375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64) -- -- Host: 127.0.0.1 Database: lalamove_order -- ------------------------------------------------------ -- Server version 8.0.11 -- -- Table structure for table `order_tb` -- CREATE DATABASE IF NOT EXISTS lalamove_order; USE lalamove_order; DROP TABL...
true
26b4a70d2973dab3f0e244311450f75f681f210a
SQL
skunal8197/class
/MP2/iTrust/sql/data/uc51.sql
UTF-8
5,267
3.203125
3
[]
no_license
/* Insert Central Hospital*/ INSERT INTO hospitals(HospitalID, HospitalName, Address, City, State, Zip) VALUES ('9','Central Hospital','12345 Central Pkwy','Greensboro','NC','27401') ON DUPLICATE KEY UPDATE HospitalID = HospitalID; /*Insert HCP Shelly Vang*/ INSERT INTO personnel( MID, AMID, role, lastName, firstName...
true
8bb54fc1c529175862ab74eb00f7b4b3852f536b
SQL
yuntifree/Server
/db/activity.sql
UTF-8
662
2.734375
3
[]
no_license
use yunxing; CREATE TABLE IF NOT EXISTS reserve_info ( id int unsigned NOT NULL AUTO_INCREMENT, name varchar(64) NOT NULL, phone varchar(16) NOT NULL, sid int unsigned NOT NULL, reserve_date varchar(128) NOT NULL, btype tinyint unsigned NOT NULL, pillow tinyint unsigned NO...
true
481746c91e0a2e0c12d0de94c31edc3533a91677
SQL
tautvydascoding/2017-11-kurso-medziaga
/uzduotys/MAMP/projektai/Tadas/DB-Backups/crypto_hoot-20171209_0230.sql
UTF-8
8,406
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Dec 09, 2017 at 12:30 AM -- Server version: 5.6.34-log -- PHP Version: 7.1.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
6ed2ba361ecf3ed04587f3bbe668798f2c2f3ae7
SQL
InnovateUKGitHub/innovation-funding-service
/ifs-data-layer/ifs-data-service/src/main/resources/db/migration/V165_2_2__fix_competitions_missing_competition_organisation_configs.sql
UTF-8
904
3.5
4
[ "MIT" ]
permissive
-- IFS-7197 some competitions are missing comp org configs -- some of the database work was done at an earlier point -- this fixes the ones that have been added since but were not being maintained by the codebase ALTER TABLE competition_organisation_config ADD COLUMN temporary_competition_id bigint(20); INSERT INTO co...
true
d61753e506c9bdd4090d202c85d9fbe17d336a5e
SQL
HakanSunay/state_exam
/db/2016-07-12/solution.sql
UTF-8
595
4.0625
4
[]
no_license
-- Task 1 -- A) SELECT t.name, title FROM movie m JOIN (SELECT name, cert FROM movieexec WHERE cert IN (SELECT producerc FROM movie WHERE title='Pretty Woman')) t ON m.producerc=t.cert; -- Task 2 -- Г) select STUDIONAME, STARNAME, COUNT(*) from MOVIE M join STARSI...
true
1d9eb1a063bdcbd3a52c7d7172d378fbaf2dbae7
SQL
fredy8/Seng-Bytes-Bits
/SQL/schema.sql
UTF-8
1,934
3.421875
3
[]
no_license
DROP SCHEMA SENG_BYTES; CREATE SCHEMA SENG_BYTES; USE SENG_BYTES; CREATE TABLE Editor ( id INT NOT NULL AUTO_INCREMENT, username VARCHAR(100) NOT NULL, password VARCHAR(100) NOT NULL, nombre VARCHAR(100) NOT NULL, apellido VARCHAR(100) NOT NULL, tipo INT NOT NULL DEFAULT 0, fecha_de_miembro TIMESTAMP NOT NULL D...
true
ccb92bfaf44c900ea248fb58d2d9bd6ae16b9027
SQL
radtek/abs3
/sql/mmfo/bars/Table/tmp_adm_resource_back_2402.sql
UTF-8
3,476
3.046875
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/TMP_ADM_RESOURCE_BACK_2402.sql ======= PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
0db9e11782903e2442940b6aeebeb83aa3a62df6
SQL
saudborg/Dishup_web
/database/CreateSQLScript.sql
WINDOWS-1252
4,627
3.578125
4
[]
no_license
--CRIAO DA TABELA DE PASES --A SIGLA DO PAIS ESTA DEFINIDA COMO UNICA --A SIGLA DO PAIS TEM QUE TER TAMANHO IGUAL A 3 --A DESCRICAO DO PAIS NAO PODE SER EM BRANCO CREATE TABLE pais( idPais INT NOT NULL, siglaPais CHAR(3) NOT NULL, nmPais VARCHAR(50) NOT NULL, CONSTRAINT pais_pk PRIMARY KEY(idPais), CONSTRAINT sigl...
true
e76b022ba565c1bb6be311d7f6be23a85ab1d94b
SQL
smartdevkz/ebazar
/db_ebazar.sql
UTF-8
7,531
2.828125
3
[]
no_license
-- MySQL dump 10.11 -- -- Host: localhost Database: db_ebazar -- ------------------------------------------------------ -- Server version 5.5.25 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_C...
true
cbbbd74b4f6befdccac91fe9d9f176b38d5c7e15
SQL
584669/work_didi
/work/demo_1.sql
UTF-8
661
2.875
3
[]
no_license
select count(*) from ( select param, row_number() over (partition by param['order_id'] order by param['timestamp'] desc) rank from gulfstream_ods.ods_log_g_driverecosys_feeinterceptor where concat(year,month,day) between '20200525' and '20200525' and param ['order_id'] is not null ...
true
88fb250325f3a5d6f9f2b4152c0ca88df8be3023
SQL
luisroel/soccersoft
/dbobjects/MySQL/Stats/Seven/All/spStats_Get_All7Strength.sql
UTF-8
316
3.140625
3
[]
no_license
DROP PROCEDURE IF EXISTS spStats_Get_All7Strength; DELIMITER $$ CREATE PROCEDURE spStats_Get_All7Strength(From_p DATETIME, To_p DATETIME) BEGIN SELECT * FROM vwStats_Get_All7Strength HW WHERE HW.Time BETWEEN From_p AND To_p ORDER BY HW.Time , HW.Tournament , HW.Home; END$$ DELIMITER ;
true
e195120e6d81291d77319d70cd87e20134369451
SQL
xiaoy597/CMSC-RPT
/SQL/SMS_QRY_2_VLD_OPEN_TRAD_HOLD_OAP_RPT.sql
UTF-8
9,159
3.15625
3
[]
no_license
/* 版本信息:1.0 创建者 :XYU 功能描述:有效、新开、参与、持有一码通数据报表 加载类型:全量加载 源 表: NSODATA.CSDC_INTG_UAP_SEC_ACCT -- CSDC_J0002_整合_统一账户平台证券账户表 NSODATA.CSDC_INTG_SEC_ACCT -- CSDC_J0001_整合_证券账户表 NSODATA.CSDC_H_SEC_TRAN -- CSDC_J1015_沪_证券过户表 NSODATA.CSDC_S_SEC_TRAN -- CSDC_J2018_深_证券过户表 NSODATA.CSDC_H_CRDT_ACCT_HLD -- CSDC_J1029_沪_信用账户持有...
true
4f1071625ee6a6a61b1b358a3ddb1a6b1b4abc49
SQL
orsonz/bookshelf
/src/main/resources/data.sql
UTF-8
3,819
3.3125
3
[]
no_license
insert into role (id, role_name) values (1, 'admin'); insert into user (id, full_name, email, password) values (1, 'Admin Admin', 'admin@gmail.com', 'admin'); insert into user_role(user_id, role_id) values (1,1); insert into role (id, role_name) values (2, 'user'); insert into user (id, full_name, email, password)...
true
e4d5075eac691b38f262adaacf8538d75eb70b9d
SQL
rechandler/contractGenerator
/api/db/migrations/20210729003446_update_source/migration.sql
UTF-8
872
3.578125
4
[ "MIT" ]
permissive
/* Warnings: - You are about to drop the column `categoryId` on the `Source` table. All the data in the column will be lost. */ -- DropForeignKey ALTER TABLE "Source" DROP CONSTRAINT "Source_categoryId_fkey"; -- AlterTable ALTER TABLE "Source" DROP COLUMN "categoryId", ADD COLUMN "states" TEXT[]; -- CreateT...
true
840995cb97809f284052246d3967c3a39db94ccb
SQL
Avare0/avare
/LESSON5.sql
UTF-8
1,700
4.15625
4
[]
no_license
CREATE DATABASE less_5; USE less_5; DROP TABLE users; CREATE TABLE users ( id SERIAL PRIMARY KEY, created_at VARCHAR(20), updated_at VARCHAR(20) ); INSERT INTO users VALUES (NULL, NOW(), NOW()); INSERT INTO users VALUES (NULL, NOW(), NOW()); INSERT INTO users VALUES (NULL, NOW(), NOW()); INSERT INTO users VALUES (N...
true
7c60a8d228f06392ddb5cb8e0e4e647edf87c92d
SQL
ngondek/Relational-Database-of-a-bakery
/Piekarnia Projekt/ZAPYTANIA.sql
WINDOWS-1250
3,282
4.25
4
[]
no_license
-- Wypisanie adrsow piekarni, ktre znjaduja sie w Warszawie SELECT adres FROM PIEKARNIA WHERE miasto = 'WARSZAWA' ; --Wypisanie nazwy i ceny wyrobow,ktorych cena jest wieksza od 7 i mniejsza od 50, w kolejnosci od najdrozszego do najtanszego SELECT nazwa, cena FROM WYROB WHERE cena > 7 AND cena < 50 ORDER BY...
true
e48ae41fad7b5e8c7902e29eb76bf8d39139affd
SQL
sebastian-e-campetella/product-review
/src/main/resources/schema-dev.sql
UTF-8
1,075
3.4375
3
[]
no_license
-- -- Table structure for table `products` -- DROP TABLE IF EXISTS `products`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `products` ( `id` bigint(20) NOT NULL, `description` varchar(255) DEFAULT NULL, `list_price` float DEFAULT NULL, ...
true
dec7b0c6e0714b52eb57df6fc90db185a1183e37
SQL
BlackWind57/membrane-clinic
/Membrane2/appointment.sql
UTF-8
2,066
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 04, 2014 at 02:06 PM -- Server version: 5.6.16 -- PHP Version: 5.5.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
449be6a31c03e2d8c29eb5e1abe80f3f87f8b134
SQL
sfalvarez/CodeHubTaller8
/Consulta6.sql
UTF-8
181
3.21875
3
[]
no_license
/* 6. */ SELECT d.department_name, COUNT(*) cuenta FROM employees e INNER JOIN departments d ON d.department_id = e.department_id GROUP BY d.department_id ORDER BY cuenta DESC;
true
5eb0c3138169427c290e5201fd29ca1dc3502193
SQL
Bitizen/iOPS
/iops (1).sql
UTF-8
27,010
3.71875
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 24, 2014 at 10:07 AM -- Server version: 5.6.11 -- PHP Version: 5.5.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
8ff90733744fb552261046adf7b4aa5751b221d0
SQL
PameFSL/OSPF
/Proyecto_verion_final/s-07-p_sinonimo.sql
ISO-8859-1
870
3.140625
3
[]
no_license
--@Autorer: Salgado Fernndez Pamela/Miramontes Sarabia Luis Enrique --@Fecha creacin: 09/06/2018 --@Descripcin: Creacin de sinonimos para todas las tablas set serveroutput on declare v_n_sinonimo user_tables.table_name%type; v_n_tabla user_tables.table_name%type; v_num number (2,0); v_crea_s varchar2(200); curso...
true
5fe4aeeb028376a2c041bdb284bbf6744564e98d
SQL
Jairortega/siparweb
/public/vs/vsalidas.sql
UTF-8
1,199
2.796875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 27, 2018 at 02:06 AM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.1.17 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
true
8506f2cbb193a70e61cf81c0f87339ea51cf6141
SQL
Parth-Dab/car_sell_website
/car_sell_website.sql
UTF-8
9,532
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 07, 2021 at 06:57 AM -- 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
e97342ad0b7594ab767b49582ed65fc4d104529a
SQL
tboqi/tbqapps
/php/tbq.com/tbq.com.160729.sql
UTF-8
6,280
2.96875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.1.73, for redhat-linux-gnu (i386) -- -- Host: localhost Database: tbq.com -- ------------------------------------------------------ -- Server version 5.1.73 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
true
be1b4cb9b89e36021bfa964b530e01620fc8c756
SQL
albertomattos/SQL_gerais
/Privilégios - cópia.sql
UTF-8
793
3.15625
3
[]
no_license
select t.*, t.rowid, u.descricao from fapricad t, famodcad u where t.cod_mod = u.cod_mod and t.sistema = u.sistema and t.sistema = 'FAT' and cod_grupo in ('REPAL') order by t.cod_mod /* --insert into faccicad values ('127','01','351550','','','P21','C00','C00','C00','0.00','0.00','0.00','0.00') --insert into faccicad...
true
d803767ee439ccb0cff162995f053a59084f75a2
SQL
luckywujl/CRM
/dump/crm_haxxj_com_crm_custom_sdetail.sql
UTF-8
3,906
2.84375
3
[ "Apache-2.0" ]
permissive
-- MySQL dump 10.13 Distrib 8.0.22, for Linux (x86_64) -- -- Host: localhost Database: crm_haxxj_com -- ------------------------------------------------------ -- Server version 8.0.16 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *...
true
df475ff487dc96ef93a791fd73598282ba5afe92
SQL
mzimhle/twinslounge
/enquiry.sql
UTF-8
1,125
2.765625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50612 Source Host : localhost:3306 Source Database : emanager Target Server Type : MYSQL Target Server Version : 50612 File Encoding : 65001 Date: 2014-11-17 19:13:54 */ SET FOREIGN_KEY_CHECKS=0; -- ...
true
f0217809ced990b1de31d088c0d15ccbb87962f8
SQL
harmim/bangor-icp-3046-labs
/e-shop/sql/structure.sql
UTF-8
5,439
3.953125
4
[]
no_license
-- Author: Dominik Harmim <harmim6@gmail.com> SET NAMES utf8mb4; CREATE DATABASE `icp3046_eshop` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci; USE `icp3046_eshop`; -- Created and edited columns tells when the product has been created or edited, auto insert current datetime, -- moreover edited co...
true
3c3dee37e3738b166764bd099020bfe3255023ae
SQL
iag-geo/image-classification
/aerial_imagery/swimming_pools/xx_prep_gnaf_cad_tables.sql
UTF-8
2,361
3.71875
4
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
-- create subset of property boundaries for NSW/ACT drop table if exists data_science.aus_cadastre_boundaries_nsw; create table data_science.aus_cadastre_boundaries_nsw as select cad_pid, jurisdiction_id, state, parcel_type, geom from geo_propertyloc.aus_cadastre_boundaries where state in (...
true
e664ceb9b132c264fa82a1fe71944a269e58cb06
SQL
vyshky/pg-sql-query-performance
/config/postgresql/monitoring_stat_activity_idle.sql
UTF-8
1,460
3.671875
4
[ "Apache-2.0" ]
permissive
DROP FUNCTION IF EXISTS public.monitoring_stat_activity_idle(); CREATE OR REPLACE FUNCTION public.monitoring_stat_activity_idle() RETURNS TABLE( usename name, datname name, state text, query_md5 character varying, query character varying, count bigint, sum_idle_seconds double prec...
true
f351195d3b787c59cd6813f39f450ee9825c15f6
SQL
ws26calvin/cs342
/project/schema.sql
UTF-8
1,852
3.765625
4
[]
no_license
--Wasiq Sohail@queries --CS 342 --Schema for a basketball database containing the 2015-16 NBA season CREATE TABLE Team ( id VARCHAR(3), --The official 3 letter acronym is used here rather than a surrogate key location VARCHAR(30), --City or region team is from name VARCHAR(20), division VARCHAR(20), ...
true
c50bd46e883759ef959baf4e4132a2d4511e5404
SQL
jhuang0416/Mysql
/NTU_Beginner/NTU_Chapter5.sql
UTF-8
5,250
3.828125
4
[]
no_license
SELECT Suppliers.name FROM Suppliers WHERE Suppliers.supplierID NOT IN (SELECT DISTINCT supplierID FROM Products_Suppliers); INSERT INTO Products_Suppliers VALUES ( (SELECT productID FROM Products WHERE name = 'Pencil 6B'), (SELECT supplierID FROM Suppliers WHERE name = 'QQ Corp')); DELETE FROM Products_Suppliers W...
true
12e1ee919acc15ab1302ce388fa0dcf348e6d398
SQL
wrishel/tevs_ancillary
/b/n_harts_ballot_voteops.sql
UTF-8
568
3.515625
4
[]
no_license
DROP VIEW n_harts_ballot_by_precinct; CREATE OR REPLACE VIEW n_harts_ballot_by_precinct AS SELECT precinct_name, choices_across_contests_in_precinct, total_votes_in_precinct, total_ballots_in_precinct, choices_across_contests_in_precinct * total_ballots_in_precinct as voteops_in_precinct FROM (SELECT harts.pre...
true
6ae972fce4be58b597f7fdabd40863ba63b88591
SQL
singhgolu/ecommerce
/practice_db.sql
UTF-8
17,965
3.140625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 24, 2018 at 07:21 AM -- 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
3a3b6305a050615139998fb37eb33ac132e48052
SQL
GAGICRC/OpenAwards
/votos-20170325-1324.sql
UTF-8
4,554
3.0625
3
[ "MIT" ]
permissive
-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.6.25 /*!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 */; ...
true
e5c5b9dfbeb9896c793e4d460e00705338eecbec
SQL
changastyle/ABM-Telefonos
/db/generic.sql
UTF-8
5,224
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 07-01-2017 a las 02:38:30 -- Versión del servidor: 10.1.19-MariaDB -- Versión de PHP: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
true
b2abd73479277752cf470556e8255d59d77560ff
SQL
amizba/BuscadorWebSimple
/bbdd/ebook.sql
UTF-8
3,070
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 27-01-2021 a las 21:18:30 -- Versión del servidor: 10.4.14-MariaDB -- Versión de PHP: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
9a57f139c7a58f3ebce268d9dbdbc27c46ab443b
SQL
NicTavares/cornucopia
/src/main/resources/schema.sql
UTF-8
5,033
3.984375
4
[]
no_license
USE cpsc_304; SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS RecipeHasTag; DROP TABLE IF EXISTS RecipeHasIngredient; DROP TABLE IF EXISTS RecipeHasEquipment; DROP TABLE IF EXISTS RecipeHasTechnique; DROP TABLE IF EXISTS UsrFavouriteRecipe; DROP TABLE IF EXISTS UsrHasIngredient; DROP TABLE IF EXISTS Course; DROP TABLE...
true
b4c813e361bd217cb44c402fa7e88ce646108462
SQL
gschreiner/prog3
/Script-tables.sql
UTF-8
1,693
3.65625
4
[]
no_license
CREATE SEQUENCE seq_pk_clientes START 1; CREATE TABLE Clientes ( id int PRIMARY KEY DEFAULT nextval('seq_pk_clientes'), nome varchar(100), sobre_nome varchar(100) ); CREATE SEQUENCE seq_pk_produto START 1; CREATE TABLE Produtos ( id int PRIMARY KEY DEFAULT nextval('seq_pk_produto'), nome varchar(100), detalhes ...
true
e7acf331d3bf8bd75f316d4ca818c643a3b5ff73
SQL
haithem-Ayeb/vino_etu
/data/vino__bouteilles_stats.sql
UTF-8
2,564
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 06, 2020 at 01:24 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
b5ad7e5a2a2ec653b49ca31b44273300a46ddf23
SQL
SOVANTHOEUN/we_garden
/src/main/resources/documents/WE_GARDEN SCRIPT/_USER DATA.sql
UTF-8
15,999
3.1875
3
[]
no_license
/* DEPARTMENT */ DELETE FROM "user".department; INSERT INTO "user".department(id, name, first_manager, second_manager) VALUES (1, 'General Management', 0, 0); INSERT INTO "user".department(id, name, first_manager, second_manager) VALUES (2, 'Local Business', 0, 0); INSERT INTO "user".department(id, name, first_manager...
true
bf5a25037ac25e8d9bc606ff72e55c300928ca8c
SQL
Mahima-Panchal/StudentComplainSystem
/sql/complain_system-(05-1-2020).sql
UTF-8
5,594
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Oct 05, 2020 at 01:47 PM -- Server version: 5.7.21 -- PHP Version: 5.6.35 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
02ed2032d41b6a0a3b1c09b927656fd4689030f6
SQL
tran0202/thuviendulieu
/scripts/Olympic/o_barcelona1992.sql
UTF-8
7,234
3.359375
3
[]
no_license
# Insert new tournament # Replace all the tournament_id # Olympic Football Tournament Barcelona 1992 INSERT INTO tournament (name, start_date, end_date, tournament_type_id, logo_filename) VALUES ('Olympic Football Tournament Barcelona 1992', '1992-07-24', '1992-08-08', 9, '1992.png'); INSERT INTO group_tournament (t...
true
a9b05b7697d09a6cc01c0845d2333b93c5f472d7
SQL
stambi4a/DatabasesBasicsMYSQL
/My SQL/Data Definition and Datatypes/Exercises/softuni.sql
UTF-8
2,788
3.71875
4
[]
no_license
-- CREATE DATABASE softuni -- CREATE TABLE towns( -- id INT PRIMARY KEY AUTO_INCREMENT NOT NULL, -- name VARCHAR(50) -- ); -- -- -- CREATE TABLE addresses( -- id INT PRIMARY KEY AUTO_INCREMENT NOT NULL, -- address_text VARCHAR(50), -- town_id INT -- ); -- -- -- CREATE TABLE departments( -- id INT PRIMARY KEY AUTO_INCRE...
true
c4510aa074180e914786c323114150138f72a921
SQL
hongkai118/pcode
/erp_k/db10.sql
UTF-8
30,152
3.046875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : k1 Source Server Type : MySQL Source Server Version : 80023 Source Host : localhost:3306 Source Schema : db10 Target Server Type : MySQL Target Server Version : 80023 File Encoding : 65001 Date: 11/06/2021 23:19:49 */ S...
true
f700f0ee464413ed1683bbb77d63086c6d2d8d83
SQL
Mdimov1/Java-DB-MySQL
/MySQL - Project/Family Tree DB/1. Family Tree Database.sql
UTF-8
2,011
3.84375
4
[]
no_license
CREATE DATABASE `Family_Tree`; USE `Family_Tree`; CREATE TABLE `Families`( `Family_Id` INT(10) UNSIGNED PRIMARY KEY AUTO_INCREMENT NOT NULL, `Name` VARBINARY(50) NOT NULL, `Description` VARBINARY(255) NULL, `Note` VARBINARY(255) NULL ); CREATE TABLE `Roles`( `Role_Code` INT(10) UNSIGNED PRIMARY KEY NOT ...
true
56a5898a1b086667cfad62021b0658604c90ac1a
SQL
METIS-GEO/projets_ftth
/PROJETS/METIPOST/03_analyses_thematiques_pg_routing.sql
UTF-8
6,521
3.90625
4
[]
no_license
/* ------------------------------------------------------------------------------------- Auteur : Marine FAUCHER (METIS) Date de création : 05/05/2018 Objet : Préparation de la route topologique pour isochrones et itinéraires Modification : Nom : ///// - Date : date_de_modif - Motif/nature : ////// -------------------...
true
d6aa2dc07bfb7ad79ee7e53269ef2662bbdbdd95
SQL
ittechblog/training
/src/main/resources/db/migration/V1.0.0__初始化表.sql
UTF-8
726
2.96875
3
[ "Apache-2.0" ]
permissive
drop table if exists PAY_SHOP_AUDIT; /*==============================================================*/ /* Table: PAY_SHOP_AUDIT */ /*==============================================================*/ create table PAY_SHOP_AUDIT ( ID bigint(20) not null AUTO_IN...
true
5277fb4680bdf499314fdfb3385594871fb5b4be
SQL
marcosptf/mysqlDeveloper
/FunctionsMySql/getGI.sql
UTF-8
1,345
2.546875
3
[]
no_license
DELIMITER $$ USE `rpm_controlex`$$ DROP FUNCTION IF EXISTS `getGIGid`$$ CREATE DEFINER=`root`@`192.168.0.%` FUNCTION `getGIGid`(p_pu CHAR(100),p_marca_id INT) RETURNS INT(8) DETERMINISTIC BEGIN DECLARE aux_GIG_id INT DEFAULT 0; DECLARE dado,dado1,dado2,dado3,dado4,dado5,dado6,dado7,dado8,dado...
true
38dc364bfa4739addf6d6891d8c8ef972f83cb86
SQL
andrewfschorr/Aframe
/pages.sql
UTF-8
106
2.53125
3
[ "MIT" ]
permissive
CREATE TABLE pages ( page varchar(30) NOT NULL, PRIMARY KEY (page), UNIQUE KEY page (page) );
true
32ed4317078288707308e7942e399bc4ba616d62
SQL
dalealleshouse/db-fundamentals
/postgres/sql/create_db.sql
UTF-8
506
3.140625
3
[]
no_license
CREATE DATABASE okr; \c okr; CREATE TABLE portfolios ( id SERIAL PRIMARY KEY, name VARCHAR(50) NOT NULL, abbreviation VARCHAR(5) ); CREATE TABLE objectives ( id SERIAL PRIMARY KEY, portfolio_id INTEGER NOT NULL REFERENCES portfolios(id), year INTEGER NOT NULL, quarter INTEGER NOT NULL, ...
true
2f29190e98f667fdf76e80846f9d86773231a62b
SQL
allstar2601/Datenbank
/SelectAufgaben1.sql
UTF-8
1,536
3.578125
4
[]
no_license
SELECT '1.1) In den Übungen 1.2 bis 3.14 soll mit den Tabellen LIEFERANT, TEIL, PROJKET und AUFTRAG gearbeitet werden. Damit man bequemer arbeiten kann, sollen Synonyme (L, T, P, LTP) für diese Tabellen angelegt werden. Mit MySQL nicht möglich' as 'INFO'; SELECT '1.2) Erstelle eine Projektliste mit al...
true
745239afa6407e35889cb958621afe42150b56aa
SQL
charlescollings/Bamazon
/schema.sql
UTF-8
301
3.109375
3
[]
no_license
DROP DATABASE IF EXISTS bamazonDB; CREATE DATABASE bamazonDB; USE bamazonDB; CREATE TABLE products ( item_id INT AUTO_INCREMENT NOT NULL, product_name VARCHAR(50) NOT NULL, department_name VARCHAR(50) NOT NULL, price DECIMAL(10,2) NOT NULL, stock_quantity INT(10) NOT NULL, PRIMARY KEY (item_id) );
true
dc39231f8fb10b9516c92f4ea8c7bbabc89092e9
SQL
Sphinx500/fromulario_heroku
/sql/alumnos.sql
UTF-8
678
2.84375
3
[]
no_license
USE hd331w2qe3rpldjj; CREATE TABLE students( id INT(4) NOT NULL AUTO_INCREMENT PRIMARY KEY, matricula char(10) NOT NULL, nombre char(10) NOT NULL, pri_ap varchar(100) NOT NULL, seg_ap varchar(100) NOT NULL, age char(3) NOT NULL, fdate date , gender varchar(20) NOT NULL, st...
true