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
836b973e9ed83d3ba19b559f9767d4b8f740d6b1
SQL
iver99/fssme
/savedsearch-schema/src/main/sql/1.9.0/emaas_savesearch_seed_data_params.sql
UTF-8
17,575
3.046875
3
[]
no_license
REM Copyright (c) 2013, 2014, 2015, 2016, Oracle and/or its affiliates. REM DESCRIPTION REM MERGE DATA FROM EMS_ANALYTICS_SEARCH_PARAMS TO EMS_ANALYTICS_SEARCH REM MERGE DATA FROM EMS_ANALYTICS_CATEGORY_PARAMS TO EMS_ANALYTICS_CATEGORY REM REM NOTES REM NONE REM REM MODIFIED (MM/DD/YY) REM ...
true
c3495c62ac238f94ca8fb42bcced41b0033fa118
SQL
BackupTheBerlios/nase-svn
/doc/trunk/www-doc/mainpage.sql
UTF-8
1,497
3
3
[]
no_license
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <HTML><HEAD><TITLE>NASE/MIND Documentation System</TITLE> <LINK REL="STYLESHEET" HREF="/nase/doc/www-doc/shtml.css"> </HEAD> <BODY bgcolor=#FFFFFF text=#000000> <IMG SRC="/nase/doc/www-doc/nasedoc.gif" HEIGHT=210 WIDTH=320 ALIGN=TEXTTOP> <BR> <BR> <UL> <LI> <A HREF="/na...
true
741ce479a5c9bd7cef1c248f24e4de93d971489f
SQL
crishenrique/cms-codeigniter
/assets/sql/tbl_admin_logs.sql
UTF-8
448
2.84375
3
[]
no_license
-- -- Estrutura da tabela `tbl_admin_logs` -- DROP TABLE IF EXISTS `tbl_admin_logs`; CREATE TABLE IF NOT EXISTS `tbl_admin_logs` ( `id_admin_log` int NOT NULL auto_increment, `name_admin_log` varchar(255) DEFAULT NULL, `access_admin_log` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ip_admin_log` varchar(255) DEF...
true
1fe151e880175b0235fd93062d5b54ab4bbc75e1
SQL
sylvain-pierrot/js-td7_PIERROT-AUBERTIN
/adherent.sql
UTF-8
1,766
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost -- Généré le : ven. 27 mars 2020 à 17:31 -- Version du serveur : 5.5.47-0+deb8u1 -- Version de PHP : 7.2.22-1+0~20190902.26+debian8~1.gbpd64eb7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION;...
true
930e6f251b40ee4978fcb0edaea1515d12d91452
SQL
maurotlxd/archivos
/ColegioProy/baseDatos/Carga_Datos.sql
UTF-8
1,333
3.046875
3
[]
no_license
use colegio; set names utf8; insert into Contador Values( 'Usuario', 5, 10); insert into Contador Values( 'Pago', 5, 10 ); insert into Contador Values( 'Matricula', 5, 10 ); insert into Contador Values( 'Estudiante', 5, 10); insert into usuario values (10000,'mauro','12345'), (10001,'juan','123456'), (10002,'dani...
true
7b8f0c4b8525f9bc1c37b31bd31fbbe4b8d13142
SQL
APochiero/DatabaseCatenaRistorazione
/Event/SuggerisceNuoviPiatti&VariazioniMensilmente.sql
UTF-8
2,623
3.6875
4
[]
no_license
DROP EVENT IF EXISTS SuggerisciNuoviPiattieVariazioni; CREATE EVENT SuggerisciNuoviPiattieVariazioni ON SCHEDULE EVERY 1 MONTH ON COMPLETION PRESERVE DO CREATE TABLE IF NOT EXISTS MV_NuoviPiattiSuggeriti ( RANK INT, NuovoPiatto VARCHAR(6), MediaVoto DOUBLE, TotaleValutazioni INT, PropostoDa VARCHA...
true
f2ed6aaaf6d6e424c5f9877f6a27be2338f46aec
SQL
Madhav-77/Madhav-77.github.io
/sql/foodgasm.sql
UTF-8
7,749
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 23, 2020 at 12:17 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
459a2a4df9c6859ac88d43bfe1dd275c24e1e5a5
SQL
soojeong-DA/SQL
/SQL로 맛보는 데이터 전처리 분석/5장(상품리뷰데이터).sql
UTF-8
6,632
4.5625
5
[]
no_license
describe dataset2; SELECT * FROM dataset2; /*Division별 평점 분포 계산*/ -- 1. Division Name별 평균 평점 SELECT `Division Name`, -- 컬럼 이름에 공백이 있을 경우, 역따옴표(어포스트로피)로 묶어서 씀! AVG(rating) FROM dataset2 GROUP BY 1 ORDER BY 2 DESC; -- 2. Department별 평균 평점 SELECT `Department Name`, AVG(rating) FROM dataset2 GROUP BY 1 ORDER BY 2 DE...
true
db049fdcc45567b68dffc0b657662fb87ac57b17
SQL
jeffcfho/safegraph_snowflake_demo
/2_LearnMoreAboutTheTwoStarbucks.sql
UTF-8
871
3.328125
3
[]
no_license
--- QUERY 2 --- This query compares and contrasts the two Starbucks identified in Query 1. --- The Duarte Starbucks has visitors travel from much further (distance_from_home = 32km) and stay --- much longe (median_dwell = 98 mins) rvs the Orange Starbucks (distance_from_home = 4.7km; --- median_dwell = 9 mins). --- ...
true
e88550ee9784e0b83d3231091e1c6be2ae27e169
SQL
Ralph2g/web
/database/tienda.sql
UTF-8
1,085
3.375
3
[]
no_license
create database tienda; use tienda; create table producto( idProd int(3) not null, nombre varchar(25) not null, precio decimal(8,2) not null, descr varchar(500) not null, consola varchar(10) not null ); create table compra( idProd int(3) not null, idCarr int(3) not null, cant i...
true
f86586956648da7b57798fcb36ca1b68ddedd658
SQL
chengxurui/yeah2020
/huarui/ad.sql
UTF-8
2,861
3
3
[ "MIT" ]
permissive
/* MySQL Data Transfer Source Host: localhost Source Database: ad Target Host: localhost Target Database: ad Date: 2009-9-3 14:38:05 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for aboc_ad -- ---------------------------- DROP TABLE IF EXISTS `aboc_ad`; CREATE TABLE `aboc_ad` ( `ad...
true
7f01ade8582c0cb857e31f56754f28269e96e529
SQL
cgrady357/Perl-MicroStrategy-Scripts
/get_start_date.sql
UTF-8
115
2.6875
3
[]
no_license
select TO_CHAR((max(lt.LOG_DATE)), 'YYYY-MM-DD HH24:MI:SS') from log_user.log_table lt where lt.HOST = 'ISERVER1'
true
c65930e8e85b36f19c20c512c4eeae40a97a8931
SQL
dindaapratiwii/PraktikumWebB
/Pertemuan 12/multipleuser.sql
UTF-8
1,559
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 06 Bulan Mei 2020 pada 06.43 -- Versi server: 10.1.33-MariaDB -- Versi PHP: 7.2.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
0cea3666b4936a0d6687d2c6f7158fe1adec3f2f
SQL
ClickHouse/ClickHouse
/tests/queries/1_stateful/00022_merge_prewhere.sql
UTF-8
275
2.5625
3
[ "Apache-2.0" ]
permissive
DROP TABLE IF EXISTS test.merge_hits; CREATE TABLE IF NOT EXISTS test.merge_hits AS test.hits ENGINE = Merge(test, '^hits$'); SELECT count() FROM test.merge_hits WHERE AdvEngineID = 2; SELECT count() FROM test.merge_hits PREWHERE AdvEngineID = 2; DROP TABLE test.merge_hits;
true
472750df85c0f242127188cdd94e85021b013d2f
SQL
onrtklu/SOSAPI
/SOS.Database/Restaurant/Tables/Rate.sql
UTF-8
713
3.421875
3
[]
no_license
CREATE TABLE [Restaurant].[Rate] ( [Id] INT IDENTITY (1, 1) NOT NULL, [Restaurant_Comment_Id] INT NOT NULL, [OrderRate] INT NULL, [RestaurantRate] INT NULL, [FoodRate] INT NULL, [ServiceRate] INT NULL, [WaiterRate] INT ...
true
927f2dbdafd9beaaa88f09cab14c3223f0e8cebd
SQL
universityLS/javaweb
/CampusAllInOne/sql/ddl_campusAllInOne.sql
UTF-8
4,111
3.390625
3
[]
no_license
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 2017/6/8 1:01:22 */ /*==============================================================*/ drop table if exists comment; drop table if exist...
true
6ce5fae3eccc1adf2638485b2b3600f64640c1e7
SQL
derula/swlrp-server
/schema/setup.sql
UTF-8
1,279
3.578125
4
[]
no_license
CREATE TABLE `accounts` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `email` VARCHAR(40) DEFAULT NULL, `password_hash` VARCHAR(255) NOT NULL, `session_hash` VARCHAR(255) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE (`email`) ) ENGINE=InnoDB; CREATE TABLE `characters` ( `id` INT(11) NOT NULL, `ac...
true
fe456e09d50b02ed6ff99937f5554e5f37af713c
SQL
Nort321/id_sa
/dump/dump_2021-05-28_02:20.sql
UTF-8
10,372
2.703125
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 13.2 -- Dumped by pg_dump version 13.2 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', fal...
true
c4013abb08b4c0d630a10a9b9d35d990556ea6ca
SQL
thepiwo/open-lifelogging
/src/main/resources/db/migration/V2__Create_tokens_table.sql
UTF-8
247
3.25
3
[ "MIT" ]
permissive
CREATE TABLE "tokens" ( "id" BIGSERIAL PRIMARY KEY, "user_id" BIGINT, "token" VARCHAR NOT NULL ); ALTER TABLE "tokens" ADD CONSTRAINT "USER_FK" FOREIGN KEY ("user_id") REFERENCES "users" ("id") ON UPDATE RESTRICT ON DELETE CASCADE;
true
e0bcdece875b35f262e416494a6ee2747b3c8447
SQL
DeyanDanailov/MS-SQL-Server
/ExamPreparation/Databases MSSQL Server Exam - 28 Jun 2020/10.Select Second Oldest Important Colonist.sql
UTF-8
337
3.953125
4
[ "MIT" ]
permissive
SELECT JobDuringJourney,FULLNAME, RANKQUERY.RANK FROM (SELECT TC.JobDuringJourney AS JobDuringJourney, C.FirstName+' '+C.LastName AS FULLNAME, ( DENSE_RANK() over (PARTITION BY TC.JobDuringJourney ORDER BY C.BirthDate)) AS RANK FROM Colonists AS C JOIN TravelCards TC on C.Id = TC.ColonistId) AS RANKQ...
true
5d368da24e41fd9a1528c290b780bc0f862ad821
SQL
Mkelly0717/PSO_PROD
/Tables/UDT_COUNTRY_ABC_CLASS_CONSTRAINT.sql
UTF-8
312
2.671875
3
[]
no_license
-------------------------------------------------------- -- Constraints for Table UDT_COUNTRY_ABC_CLASS -------------------------------------------------------- ALTER TABLE "SCPOMGR"."UDT_COUNTRY_ABC_CLASS" ADD CONSTRAINT "PK_UDT_COUNTRY_ABC_CLASS" PRIMARY KEY ("ABC_CLASS", "COUNTRY") USING INDEX ENABLE
true
97b7108c491b035dd01b2967cecf134213eeff34
SQL
navarna/Bibliotheque
/src/creation_trigger.sql
UTF-8
1,476
2.5625
3
[]
no_license
/* AUTEUR Navarna */ \echo 'creation trigger' CREATE TRIGGER verifAjout_bu BEFORE INSERT OR UPDATE ON bu FOR EACH ROW execute procedure ajoutBu_trigger() ; CREATE TRIGGER verifAjout_Doc BEFORE INSERT OR UPDATE ON document FOR EACH ROW execute procedure ajoutDoc_trigger() ; CREATE TRIGGER verifAjout_Exe...
true
9c1fd475c46c7c40effeb4335264a87aad57b006
SQL
technomaker2012/repo
/TpJdbc/data/script_creation.sql
UTF-8
888
3.796875
4
[]
no_license
create TEXT table PRODUIT( id_article integer, nom varchar(20) not null, prix double not null ) ; SET TABLE PRODUIT SOURCE "PRODUIT;fs=|" create TEXT table client( id_client integer, nom varchar(20) not null, ) ; create TEXT table facture( num_cmd integer, date_facture date, id_client integer not null, ) ; ...
true
0cafc846ff73cbed31df6411bfa217cf5ec87ca4
SQL
yougotserv-d/SDC
/reviewsServiceShema.sql
UTF-8
5,675
3.984375
4
[]
no_license
/* meta table with characteristics as json*/ DROP TABLE IF EXISTS products; CREATE TABLE products ( id SERIAL PRIMARY KEY, name VARCHAR ); DROP TABLE IF EXISTS chars; CREATE TABLE chars ( id SERIAL PRIMARY KEY, product_id INT NOT NULL, name VARCHAR NOT NULL ); COPY chars(id, product_id, name) FROM '/Users...
true
fdfc3508d3bb15ba5b70273574fa653a4e3644ff
SQL
kumar2411sanjaygithub/product-cart-stripe
/DB/stripeproduct.sql
UTF-8
11,714
2.78125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.6deb5ubuntu0.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Sep 29, 2021 at 11:47 PM -- Server version: 5.7.35-0ubuntu0.18.04.2 -- PHP Version: 7.2.24-0ubuntu0.18.04.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET...
true
ae392631c93d31c1ecdb97a3f65ac725424564a8
SQL
zahedmohammed/HealthCare
/DAO/src/main/resources/db/migration/V4__savings_account_and_savings_transaction_table.sql
UTF-8
1,397
3.734375
4
[]
no_license
-- author Mohammed Shoukath Ali -- Table: primary account CREATE TABLE savings_account ( id character varying(255) NOT NULL, created_by character varying(255), created_date timestamp without time zone NOT NULL, inactive boolean NOT NULL, modified_by character varying(255), modified_date timestamp without ...
true
e046ed7a90a844fd594e93e8ef83eff42e05c0cd
SQL
DaniellKondoff/Databases----MS-SQL-Server
/6.Subqueries and JOINs/13. Count Mountain Ranges.sql
UTF-8
199
3.53125
4
[]
no_license
Select mc.CountryCode,Count(mc.CountryCode) as MountainRanges from MountainsCountries as mc JOIN Mountains as m ON mc.MountainId=m.Id Where mc.CountryCode IN('BG','US','RU') Group BY (mc.CountryCode)
true
ff027adf54ccbc2502467137fefb92b153ac5bda
SQL
ThoughtWorksInc/objective8
/migrations/019_add_stars.up.sql
UTF-8
285
2.921875
3
[ "MIT" ]
permissive
CREATE TABLE objective8.stars ( _id SERIAL PRIMARY KEY, _created_at timestamp DEFAULT current_timestamp, objective_id integer REFERENCES objective8.objectives (_id) NOT NULL, created_by_id integer REFERENCES objective8.users (_id) NOT NULL, active boolean NOT NULL DEFAULT true);
true
97882ffcc7ab8bf05998deda243a7baf10ce8af4
SQL
Shirleyxxy/lc-sql-database
/find-interview-candidates.SQL
UTF-8
855
4.25
4
[]
no_license
WITH winners AS ( SELECT contest_id, gold_medal AS user FROM Contests UNION ALL SELECT contest_id, silver_medal AS user FROM Contests UNION ALL SELECT contest_id, bronze_medal AS user FROM Contests ), winners_order AS ( SELECT contest_id, user, ROW_NUMBER() OVER(PARTITION BY user ORDER BY con...
true
dd69e1521f6213b43e7f1695b0f4b6e434242fe8
SQL
ASDAFF/bitrix-site.quickstart
/bitrix/modules/redsign.prokids/install/modules/redsign.grupper/install/db/mysql/install.sql
UTF-8
436
2.515625
3
[]
no_license
CREATE TABLE IF NOT EXISTS b_redsign_grupper_groups ( ID int(11) NOT NULL AUTO_INCREMENT, XML_ID varchar(255) NULL, CODE varchar(255) NULL, NAME varchar(255) NOT NULL, SORT int(18) NOT NULL DEFAULT 500, ICON_PATH varchar(500) NULL, PRIMARY KEY (ID) ); CREATE TABLE IF NOT EXISTS b_redsign_grupper_binds ( ID int...
true
cae769f88500cba9f7e66c43bfb6134a1f80f577
SQL
rcancino/sw2
/sw2-core/src/main/java/com/luxsoft/sw3/contabilidad/services/Poliza_De_Ventas_Detalle.sql
UTF-8
2,067
3.71875
4
[]
no_license
select 'VENTAS' AS TIPO,V.SUCURSAL_ID,V.ORIGEN,0 AS CUENTA_ID,'' AS DESCRIPCION,'' AS REFERENCIA,'' AS REFERENCIA2,sum(V.TOTAL) AS TOTAL,sum(V.IMPORTE) as IMPORTE,sum(V.IMPUESTO) AS IMPUESTO from SX_VENTAS V WHERE V.FECHA='2011/05/31' AND V.TIPO='FAC' GROUP BY V.ORIGEN,V.SUCURSAL_ID ----TESORERIA / BANCOS ------...
true
54b4e2da04377dc4305d75789790af18fabc6ccb
SQL
dippydippo/School
/DSy/final_project/bookstore.sql
UTF-8
12,202
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 15, 2021 at 04:11 PM -- Server version: 10.4.16-MariaDB -- PHP Version: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
a68e8571378e26ee385e7cbcd8b6adaa6f46fcbb
SQL
iobis/mbon
/queries/output.sql
UTF-8
1,631
3.515625
4
[]
no_license
select row_to_json(a) from ( select id, ( select array_to_json(array_agg(row_to_json(t))) from ( select eov.id, eov.name from goos.eov_question eq left join goos.eov on eov.id = eq.eov_id where eq.question_id = question.id ) t ) as eovs, ( select array_to_json(array_agg(row_to_json(t))) from...
true
a08d89810d0f089e5a86e0f811243c4779d99919
SQL
PoldiChen/know-about-me-SpringBoot
/src/main/resources/project.sql
UTF-8
351
2.53125
3
[]
no_license
CREATE TABLE `project` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, `role` varchar(45) NOT NULL, `duration` varchar(45) NOT NULL, `skills` varchar(200) NOT NULL, `description` varchar(200) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `id_UNIQUE` (`id`) ) ENGINE=InnoDB AUTO_I...
true
f76a37ea124bfc13fd03d127b8d913908e30676a
SQL
azureitstepkharkov/ckj09
/BuriakovskiyVitaliy/КласРаб_191031_15ЗАДАЧ/sysoper~5.sql
WINDOWS-1251
369
2.90625
3
[]
no_license
-- , 590 0 SELECT EMPLOYEE_ID, FIRST_NAME, LAST_NAME, EMAIL, PHONE_NUMBER, HIRE_DATE, JOB_ID, SALARY, COMMISSION_PCT, MANAGER_ID, DEPARTMENT_ID FROM HR.EMPLOYEES EMP WHERE PHONE_NUMBER LIKE '590%0'
true
f3acc974451647c77d87972ae305d9f84d8d8d3e
SQL
sohel473/online-book-store
/mysql/createTable.sql
UTF-8
3,383
4.40625
4
[]
no_license
-- 1. CUSTOMER TABLE DROP DATABASE IF EXISTS online_book_shop; CREATE DATABASE online_book_shop; USE online_book_shop; CREATE TABLE users ( u_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, user_name VARCHAR(255) NOT NULL, created_at TIMESTAMP DEFAULT NOW() ); -- 2. BOOKS TABLE CREATE TABLE books ( b_id I...
true
b9aeb4e4cfd1c18100d12506e8010f0f2c115abc
SQL
AlexeyKashintsev/Clinic
/app/Пациенты/Запросы/Список пациентов.sql
UTF-8
503
3.484375
3
[]
no_license
/** * * @author Алексей * @name qPatientsByParams * @public * @readonly */ Select t1.man_patient_id, t1.surname, t1.firstname, t1.patronymic, t1.sex , t1.date_oft_birth, t.company_id, t.job_id From man_patient t1 Left Join man_workplace t on t.man_id = t1.man_patient_id and t.active = true Where (:firstname i...
true
62ade815c4116d904a3df912754397ca215bd3ba
SQL
calvinmerrell/whats-quackin
/DB/seed.sql
UTF-8
1,358
3.1875
3
[]
no_license
-- CREATE TABLE users ( -- user_id SERIAL PRIMARY KEY, -- username VARCHAR(50) not null, -- hash VARCHAR(500) not null, -- first_name VARCHAR(100) not null, -- last_name VARCHAR(100) not null, -- email VARCHAR(100) not null, -- street_address VARCHAR(100), -- city VARCHAR(50), -...
true
ed2577fc5a2b97567c1a11abf753c30b70777867
SQL
1190452/LAPR3
/Database/Procedures/updateActualChargingPlaces.sql
UTF-8
731
2.828125
3
[]
no_license
CREATE OR REPLACE PROCEDURE updateActualChargingPlacesR (p_id park.id%type) IS v_places int; BEGIN SELECT actualChargingPlaces INTO v_places FROM park WHERE id = p_id; IF v_places not like 0 THEN UPDATE park SET actualChargingPlaces = actualChargingPlaces - 1 WHERE id = p_id; END IF; ...
true
217503b9492d9bdfefbaef1698994b753ac7e88e
SQL
saitokenta/facebook
/sql/scheme.sql
UTF-8
926
3.453125
3
[]
no_license
CREATE TABLE IF NOT EXISTS `user` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `facebook_id` bigint(19) unsigned NOT NULL, `nickname` varchar(255) NOT NULL, `create_at` datetime default NULL, `update_at` datetime default NULL, INDEX INDEX_1 (facebook_id), PRIMARY KEY (`id`) ) ENGINE=INNODB DEFAULT CHA...
true
66c06e9d6d4627247f8f3ec6d828ef726aca3fc3
SQL
dNano/Eclipse_vtb_monitoring
/22_10_2013/monitoring/RemoteSystemsTempFiles/KM_EVENT.sql
UTF-8
1,108
3.375
3
[]
no_license
--<ScriptOptions statementTerminator=";"/> CREATE TABLE KM_EVENT ( ID_EVENT NUMBER(38 , 0) NOT NULL, ID_EVENT_CALENDAR NUMBER(38 , 0) NOT NULL, ID_EVENT_RESULT NUMBER(38 , 0), ID_EVENT_STATUS NUMBER(38 , 0), ID_EXECUTOR NUMBER(38 , 0), START_DATE DATE, EXECUTED_DATE DATE, PLAN_DATE DATE NOT NULL, RES...
true
ed8dedb2eb5a504e50c3b348c836c0986befc135
SQL
X00127379/FinalPro
/conf/evolutions/default/2.sql
UTF-8
2,029
2.609375
3
[ "Apache-2.0" ]
permissive
c insert into category (id,name) values ( 1,'Rice' ); insert into category (id,name) values ( 2,'Chicken' ); insert into category (id,name) values ( 3,'Curry' ); insert into category (id,name) values ( 4,'Vegetarian' ); insert into category (id,name) values ( 5,'Beef' ); insert into category (id,name) values ( 6,'House...
true
212e7ae32bba12f997085354e43de4a586482912
SQL
oscarmendozach/HR_database
/DDL_ETL.sql
UTF-8
2,506
4
4
[]
no_license
/*Tables creation following the physical model*/ CREATE TABLE education( EDLVL_ID SERIAL PRIMARY KEY, ED_LVL VARCHAR(50) ); CREATE TABLE employee( EMP_ID VARCHAR(10) PRIMARY KEY, EMP_NM VARCHAR(50), EMAIL VARCHAR(50), HIRE_DT DATE, EDLVL_ID INT REFERENCES education(EDLVL_ID) ); CREATE TAB...
true
ef94dad348edbf2447af68f66b6cb2c8b0a7d06b
SQL
chdtu-fitis/deanoffice-backend
/src/main/resources/db/migration/V7__student_fixes.sql
UTF-8
871
2.546875
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.3 -- Dumped by pg_dump version 9.6.3 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
649c03a0e5b1a99a48b53171f70d3315bce50f9f
SQL
cdesmarais/WebDB-Test
/WebDB/StoredProcedures/OTRestaurant/UpdateProfile/dbo.OTR_PriceQuartile_GetAllLanguages.PRC
UTF-8
1,203
3.8125
4
[]
no_license
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[OTR_PriceQuartile_GetAllLanguages]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[OTR_PriceQuartile_GetAllLanguages] GO create procedure dbo.OTR_PriceQuartile_GetAllLanguages ( @RestaurantID int ) ...
true
330cd43ac95163a466e9d52b248169fb7ea7cec1
SQL
Orbit-680/orbit-db
/Scripts/Multiple queries/Orbit.sql
UTF-8
8,687
3.21875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `orbit`; USE `orbit`; DROP TABLE IF EXISTS `school_student`; DROP TABLE IF EXISTS `account_link_student`; DROP TABLE IF EXISTS `account_link_teacher`; DROP TABLE IF EXISTS `grade`; DROP TABLE IF EXISTS `assignment`; DROP TABLE IF EXISTS `attendance`; DROP TABLE IF EXISTS `conduct`; DROP T...
true
1202db1b606b369b24ae503627331ce94617a248
SQL
knstvk/cuba-component-data-import
/modules/core/db/init/hsql/10.create-db.sql
UTF-8
4,643
3.046875
3
[ "Apache-2.0" ]
permissive
-- begin DDCDI_IMPORT_LOG create table DDCDI_IMPORT_LOG ( ID varchar(36) not null, VERSION integer not null, CREATE_TS timestamp, CREATED_BY varchar(50), UPDATE_TS timestamp, UPDATED_BY varchar(50), DELETE_TS timestamp, DELETED_BY varchar(50), -- FILE_ID varchar(36) not null, ...
true
7b27df31fc4dd100cc0c7e969f6972244dac6cd4
SQL
bravesoftdz/sgts
/sql/oracle/patch_15.01.2009/procedures/3/337_D_MEASURE_TYPE_PARAM.prc
WINDOWS-1251
442
2.703125
3
[]
no_license
/* */ CREATE OR REPLACE PROCEDURE D_MEASURE_TYPE_PARAM ( OLD_MEASURE_TYPE_ID IN INTEGER, OLD_PARAM_ID IN INTEGER ) AS BEGIN DELETE FROM MEASURE_TYPE_PARAMS WHERE MEASURE_TYPE_ID=OLD_MEASURE_TYPE_ID AND PARAM_ID=OLD_PARAM_ID; COMMIT; END; -- /* */ COMMIT
true
b9be4beb32fbbf88ec6cd77f1a0bfd73e8b3dfa6
SQL
xzhuah/Forest
/Design Material/database.sql
UTF-8
2,752
3.765625
4
[]
no_license
/*前端开发所看到的表名,前端开发不用考虑真实表名,属性名,以这个文件为准即可,后台会做封装*/ create table Client( username varchar(50) primary key, email varchar(100), passward varchar(50), ); create table FollowUser( follower varchar(50) references Client, followee varchar(50) references Client, primary key(follower,followee) ); create table Story( id ...
true
ab797f06d3637229113d82782e546e6946a9699e
SQL
jaymendelsohn/PL-SQL-Loops
/item1.sql
UTF-8
464
2.84375
3
[]
no_license
SET SERVEROUTPUT ON SET VERIFY OFF ACCEPT input_cost PROMPT 'How much does it cost?: ' ACCEPT input_coh PROMPT 'How much money do you have?: ' DECLARE out_ans NUMBER; BEGIN dbms_output.put_line('The item costs '||&input_cost); dbms_output.put_line('You have $'||&input_coh||' in your wallet'); out_a...
true
472abfa132155fb2a4745f73266022b8c39b0ca6
SQL
jrjr-randy/backoffice
/sql/query/report - distributor rank and last order.sql
UTF-8
2,223
4.1875
4
[]
no_license
CREATE TABLE temp.last_order_dates AS SELECT business_center_id, MAX(os.timestamp) last_order_date FROM orders o JOIN order_statuses os ON o.order_id=os.order_id AND os.order_status_type_id=2 GROUP BY business_center_id; CREATE INDEX idx_last_order_dates ON temp.last_order_dates (business_center_id); SELECT d.distrib...
true
12611bf99a59db3545921468d4422140241dc892
SQL
ywang2014/JavaProject
/UserManageSystem/src/createDBscript.sql
GB18030
219
2.921875
3
[]
no_license
DROP TABLE user; # ɾܴڵıٴ±ȫ CREATE TABLE user( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(50) NOT NULL, sex VARCHAR(10) NOT NULL, birthday DATE );
true
e224bc983e2b76cb7f98aaa5a8ae7364e8cacfb6
SQL
hold12/CDIO_final_sql
/views/foreman_productbatchcomponent.sql
UTF-8
670
3.359375
3
[]
no_license
DROP VIEW IF EXISTS foreman_productbatchcomponent; CREATE VIEW foreman_productbatchcomponent(productbatch_id, ingredientbatch_id, ingredient_id, ingredient_name, supplier, tare, net_weight) AS SELECT productbatchcomponent.productbatch_id, productbatchcomponent.ingredientbatch_id, ingredient.ingredient_id, ...
true
64e4a38e15edfa0df86075f3fa7e18ea085ffd1d
SQL
Ivan-Ramadhan/belajar_laravel
/file_sql/belajar.sql
UTF-8
5,363
3.03125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 03, 2019 at 04:18 AM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
45ba8d570be298f0a0400a05a8cdecb33bf920c0
SQL
cadehc/SQLHW
/Q7.sql
UTF-8
579
3.734375
4
[]
no_license
-- Question #7, employee number, first/last name of all employees in sales and development departments select dept.dept_name, employee.first_name, employee.last_name, employee.emp_no from dept_emp inner join dept on dept.dept_no = dept_emp.dept_no inner join employee on dept_emp.emp_no = employee.emp_no where dept_na...
true
d8020af5427aa3711dee1df5dd8a03c223f5eb49
SQL
WojciechEryk/SQL
/JOINY1.sql
UTF-8
466
3.578125
4
[]
no_license
use northwind; #select Orders.OrderID, customers.ContactName, orders.OrderDate #FROM orders INNER JOIN customers ON orders.CustomerID = customers.CustomerID; #select customers.ContactName, orders.OrderId From Customers #left join orders on customers.CustomerId=orders.CustomerID Order by customers.ContactName; #selec...
true
017f1968a8aface8da10c27f964a7735baf048cc
SQL
andreyang/AdHocReports
/rg_migration.sql
UTF-8
1,436
3.515625
4
[]
no_license
--This report is to provide the client team with insight that helps the migration to Butterfly. drop table if exists ay_temp_rg_migration; create table ay_temp_rg_migration as select lower(reflect('java.net.URLDecoder', 'decode', params['rg_publisher'], 'utf-8')) publisher, regexp_replace(reflect('java.net.URLDecoder...
true
4b1529ff39e3959e20153ffa834f10f0b12b9ee2
SQL
MrD0079/portal
/sql/rzayreestrsend.sql
WINDOWS-1251
5,512
3.46875
3
[]
no_license
/* Formatted on 14.02.2017 17:14:20 (QP5 v5.252.13127.32867) */ DECLARE text CLOB; subj VARCHAR2 (255); attach CLOB; BEGIN FOR a IN (SELECT id, return_mail, ps, pe, CASE WHEN ps = pe T...
true
0d057429041cde0cf5f22b4efd74ca2fcb69f058
SQL
kirahelberg/burger
/db/schema.sql
UTF-8
258
2.6875
3
[]
no_license
-- Create the database DROP DATABASE IF EXISTS burger_db; CREATE DATABASE burger_db; -- USE burger_db; CREATE TABLE burgers ( id INT NOT NULL AUTO_INCREMENT, burger_name VARCHAR (255) NOT NULL, devoured BOOLEAN NOT NULL, PRIMARY KEY (id) );
true
76768330d147a59c55cc5da6346a903fcc9efe45
SQL
boltonmark/dev
/PostgreSQL/wip/json_sample.sql
UTF-8
1,178
3.609375
4
[]
no_license
select row_to_json(t) from ( select text , pronunciation , ( select array_to_json( array_agg(row_to_json(d))) from ( select part_of_speech , body from definitions where word_id = words.id order by position asc ...
true
eaf0e5d937de28d4498358bef0dc6bf3d1ec8f75
SQL
AvshalomTam/SQL-89276
/ex1/final/q05.sql
UTF-8
172
3.1875
3
[]
no_license
SELECT count(first_name) AS 'Count' FROM customer, city, address WHERE customer.address_id = address.address_id AND address.city_id = city.city_id AND city.city = 'Aurora';
true
99297ed75bccf81c9eddd47c3601531a62d2bdcc
SQL
vidyavathibm/sql
/assessment02a.sql
UTF-8
5,002
4.3125
4
[]
no_license
create table Customer (Customer_id integer,Cust_Name varchar(20),City varchar(20),Priority_num integer,Salesman_id integer,Purchased_Amount integer); create table Salesman(Salesman_Id integer,Salesman_Name varchar(20),City varchar(20),Sales_Manager_id integer,Monthly_Target integer); select * from customer ; delete fr...
true
b2836027bc697b74c97b9d6bdffd5fbbef36cbeb
SQL
mirjahal/micronaut-kotlin-realworld-example-app
/src/main/resources/migrations/V2__create_follow_table.sql
UTF-8
414
3.359375
3
[]
no_license
CREATE TABLE IF NOT EXISTS user_follow ( follower_user_id VARBINARY(16) NOT NULL, followed_user_id VARBINARY(16) NOT NULL, CONSTRAINT followers_id_pk PRIMARY KEY (follower_user_id, followed_user_id), CONSTRAINT follower_user_id_fk FOREIGN KEY (follower_user_id) REFERENCES `user` (id), CONSTRAINT fol...
true
83876c9885993ca3dd1b71e89c4e10233c35ca19
SQL
michael-petterson-06/JavaScript-Projetos-FrontEnd
/20-mysql-one-for-all/desafio7.sql
UTF-8
348
3.71875
4
[]
no_license
CREATE VIEW perfil_artistas AS SELECT a.artist_name AS artista, b.album_name AS album, COUNT(c.artist_id) AS seguidores FROM SpotifyClone.artists a INNER JOIN SpotifyClone.albums b ON a.artist_id = b.artist_id INNER JOIN SpotifyClone.followers c ON a.artist_id = c.artist_id GROUP BY 1, 2...
true
f28e738a033b88d5bcbe19b35a2a35f392c70e7a
SQL
MariRomNick/sql_homeworks
/lesson_8_homework.sql
UTF-8
4,311
4.5625
5
[]
no_license
--task1 (lesson8) -- oracle: https://leetcode.com/problems/department-top-three-salaries/ select Department,Employee,Salary from ( select Employee.Name as Employee ,Department.Name as Department , Salary, dense_rank () over (partition by DepartmentId order by Salary desc) as drn from Employee join Department on ...
true
8e52e093456195d1d232a327e577e12485f8a76a
SQL
urielmishima/Projeto
/ChatBot.sql
UTF-8
4,553
3.59375
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 ChatBot -...
true
218d3ca6a37ba02b2f8104fe260a0321a6a912fb
SQL
nurullarina/Handling-File-Async-dan-Sync
/file/formulir_user.sql
UTF-8
2,839
2.734375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 19, 2020 at 11:01 AM -- 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
8e3139de14672f1c79f5c0ff5311471524a35ba0
SQL
FloydHsiu/MemberCardAPI
/DB_Ver_2_0.sql
UTF-8
2,221
3.765625
4
[]
no_license
CREATE TABLE IF NOT EXISTS VERIFY( ID INT NOT NULL AUTO_INCREMENT, PHONE VARCHAR(11) NOT NULL, IDCARD VARCHAR(11) NOT NULL, PRIMARY KEY(ID) ); CREATE TABLE IF NOT EXISTS COMPANY( ID INT NOT NULL AUTO_INCREMENT, NAME VARCHAR(20) NOT NULL, ICON VARCHAR(25) NOT NULL, PRIMARY KEY(ID) ); CR...
true
0e72e0afad26025188ab64db385274d2342e54bc
SQL
robirbf/jurnalpulsa
/sql/jurnalpulsa.sql
UTF-8
11,078
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 14, 2018 at 10:23 AM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
7856a3639c93e7dcad72211969213730f98ad9c0
SQL
debjava/Core-Tutorials-I
/Genericmessagesrc/database/oracle/Tables/email_address_configuration.ddl
UTF-8
1,736
2.546875
3
[]
no_license
/******************************************************************************************************* * Copyright 2006 IDEAL INVENT Technologies Pvt. Ltd. * * IDEAL INVENT Technologies Pvt. Ltd reserves all rights in the Program as delivered. * * The Program or any portion thereof may not be reproduced in ...
true
702e919750b2f00c7c9e601ceb747ad23460a53a
SQL
wangyuxuan1990/SpringAll-Demo
/05.Spring-Boot-MyBatis-MultiDataSource/src/main/resources/mysql_sql_one.sql
UTF-8
563
2.75
3
[]
no_license
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for student -- ---------------------------- DROP TABLE IF EXISTS `student`; CREATE TABLE `student` ( `SNO` varchar(3) NOT NULL, `SNAME` varchar(10) NOT NULL, `SSEX` char(2) NOT NULL, `DATASOURCE` varchar(10) DEFAULT NULL ) ENGINE=Inno...
true
682bcdb72e477951089d833450eadb5c784b8614
SQL
long0419/MicroCommunity
/java110-db/db/StoreService/create_purchase_apply.sql
UTF-8
5,224
3.328125
3
[ "Apache-2.0" ]
permissive
/* Navicat Premium Data Transfer Source Server : dev.db.java110.com_3306 Source Server Type : MySQL Source Server Version : 50645 Source Host : dev.db.java110.com:3306 Source Schema : tt Target Server Type : MySQL Target Server Version : 50645 File Encoding : 65001 D...
true
39272b6863a18d46461a1100554bd8c3b0fd1c75
SQL
gorun8/easyfk
/src/baseapps/party/entitydef/mysql/party.sql
UTF-8
28,962
3.234375
3
[ "Apache-2.0" ]
permissive
/* * Project:Easy Web Framework * Description: * EasyFK stands for Easy Web Framework.It's an open source product for E-Business / E-Commerce.It * was launched by a chinese Hezhiping(QQ:110476592) in 2015.The goal of EasyFK is to provide a * foundation and starting point for reliable, secure , simple-to-use ,cost...
true
6549260f399cffa758bcca3c2547b2f35c692c21
SQL
michrija/selfizee
/data-struct/struct/editeur_templates_photos_tags.sql
UTF-8
1,480
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : mer. 18 sep. 2019 à 06:49 -- Version du serveur : 5.7.21 -- Version de PHP : 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
true
bb53e44232abb6e02d7ca53851b9b8e3ee90891e
SQL
fguan/autoparts-warehouse
/nested_subqueries.sql
UTF-8
1,488
4.1875
4
[ "MIT" ]
permissive
-- nested_subqueries.sql -- NESTED SUBQUERIES -- Find the hire date of all employees that work in Sales select concat(ep.firstname,' ', ep.lastname) AS "Sales People", ew.hiredate from employeeWork_tbl ew INNER JOIN employeePersonal_tbl ep ON ep.empid = ew.empid where ew.deptid = (select deptid from dept_tbl where dep...
true
af71f6bd664e26ea51bbe55c6d400153ab8fd46e
SQL
gERYHWeb/medportal-yii
/migration/test_mission.sql
UTF-8
5,652
3.046875
3
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
-- -- PostgreSQL database dump -- -- Dumped from database version 9.4.4 -- Dumped by pg_dump version 9.4.4 -- Started on 2018-03-01 08:01:28 SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages =...
true
79ece29b720d589c23a55258ec363866f513d013
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day20/select2350.sql
UTF-8
178
2.671875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-19T23:50:00Z' AND timestamp<'2017-11-20T23:50:00Z' AND temperature>=39 AND temperature<=84
true
8c7175ee0ca00b045ef8c249996587ef50a13cb3
SQL
YCPRadioTelescope/RT-Contracts
/src/main/resources/db/changelog/65-DHT22-integration.sql
UTF-8
1,389
3.34375
3
[]
no_license
-- liquibase formatted sql -- changeset tfranks:120 CREATE TABLE humidity ( id INT(11) NOT NULL AUTO_INCREMENT, humidity FLOAT(5, 2) DEFAULT NULL, location INT DEFAULT NULL, time_captured BIGINT(20) DEFAULT NULL, insert_timestamp TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP(6), update_timestamp TIME...
true
0534dc4d762382159b43f5f3c1e16855b438f350
SQL
dszhengyu/theblueisland
/2015_mobile/data_version2/load_csv_train.sql
UTF-8
520
2.828125
3
[]
no_license
load data infile 'z:\\theblueisland\\tianchi_mobile_recommend_train_user.csv' into table _train_user fields terminated by ',' optionally enclosed by '"' escaped by '"' lines terminated by '\n' IGNORE 1 LINES (user_id, item_id, behavior_type, user_geohash, item_category, @time) set time = STR_TO_DATE(@time, '%Y-%m-...
true
7d7099831b74239fddbebc9144f380833a002e6d
SQL
myokapis/BudgetTools
/Database/Views/dbo.vwBudgetLineSets.sql
UTF-8
644
3.4375
3
[ "MIT" ]
permissive
CREATE VIEW dbo.vwBudgetLineSets AS SELECT s.BudgetLineSetId, s.EffInDate, s.EffOutDate, bl.BudgetLineId, bl.BudgetLineName, bl.BudgetLineDesc, sbl.DisplayName, bl.IsAccrued, bc.BudgetCategoryId, bc.BudgetCategoryName, bc.BudgetCategoryDesc, bg.BudgetGroupId, bg.BudgetGroupName, bg.BudgetGroupDesc FROM dbo.BudgetL...
true
4f1495d020c04b0d0b53d80ce7ed68b2e02e84f0
SQL
taras-m0/book_test
/install.sql
UTF-8
8,011
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Время создания: Ноя 01 2017 г., 21:19 -- Версия сервера: 5.5.25 -- Версия PHP: 5.4.29 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- База данных: `testdb` -- -- ---------------------------------------...
true
97823442b2560dcf05d83b062e44f76e35deb3d9
SQL
Dillongrow/sql-challenge
/EmployeeSQL/Query.sql
UTF-8
1,669
4.53125
5
[]
no_license
--Salary by employee SELECT emp.emp_no, emp.last_name, emp.first_name, emp.gender, sal.salary FROM employees AS emp INNER JOIN salaries AS sal ON emp.emp_no= sal.emp_no; --Employees hired in 1986 SELECT first_name, last_name, EXTRACT (YEAR FROM hire_date) As YEAR FROM employees WHERE hire_date > '12/31/1985' AND...
true
bfd60079614f1c4daf948a57e2999c5ffeb40261
SQL
tnation-mscs/1714TNation
/1714tnation2c/1714tnation2c.sql
UTF-8
2,957
4.25
4
[]
no_license
--Tyler Nation --Exercise 2C: Summary queries, groups, joins --PropertyManager db --2C.1) Columns: State, City, count buildings. Group by State, City. SELECT State, City, COUNT(BuildingName) AS [Building Count] FROM Building GROUP BY State, City --2C.2) Columns: City, count buildings. Group by Cit...
true
4a523b992318f5f627c4a337c966785550bbbd79
SQL
jansforte/oracle
/airbnb/CRUD_CITY.sql
UTF-8
2,657
3.765625
4
[ "MIT" ]
permissive
-- -- -- AUTHOR: JEISON ANDRES FUENTES ORTEGA -- AUTHOR: JOHAN SEBASTIAN FUENTES ORTEGA -- DATE: 20/05/21 -- -- ---------------------------------------- CREATE OR REPLACE PACKAGE crudCity IS FUNCTION getCity (p_Id IN city.id%TYPE) RETURN city%ROWTYPE; FUNCTION putCity (p_id IN city.id%TYPE, p_updated_at IN city...
true
866b009601839bb8f2096274827d759e497969b2
SQL
DeboraMiyake/LP1
/bdprojeto.sql
UTF-8
8,746
3.109375
3
[]
no_license
CREATE DATABASE bdprojeto; CREATE TABLE tblogin( id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, nome VARCHAR(90) NOT NULL, usuario VARCHAR(64) NOT NULL, senha VARCHAR(64) NOT NULL, perfil VARCHAR(30) NOT NULL ); INSERT INTO `tblogin` (`id`, `nome`, `usuario`, `senha`, `perfil`) VALUES (1, 'Débora Miyake', ...
true
10af167468ef42974cd59eb59543182c6683d21f
SQL
diogocezar/dctb-old-systems
/luthieriacaverna/www/www/bd/sql/sql.sql
UTF-8
1,702
3.078125
3
[ "MIT" ]
permissive
CREATE TABLE Noticias ( id INTEGER NOT NULL, titulo VARCHAR(200) NOT NULL, descricao TEXT NOT NULL, autor VARCHAR(200) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE Trabalhos ( id INTEGER NOT...
true
a46ac5b90edf9d96beed3463471968223bb7c958
SQL
CindyZhouJiahui/wnm617_202060_01-1
/jiahui.zhou/track_users (1).sql
UTF-8
1,957
2.796875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 18, 2020 at 11:18 PM -- Server version: 5.6.47-cll-lve -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
true
24a744034021a66609f9d9572e9c809ec0caf093
SQL
ppxweed/Home-Work
/heroku_e87df673985abe6_customers_description.sql
UTF-8
2,253
2.828125
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64) -- -- Host: eu-cdbr-west-03.cleardb.net Database: heroku_e87df673985abe6 -- ------------------------------------------------------ -- Server version 5.6.49-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RE...
true
4f4ad198bd4a5a6c946985b3b2026d706021ac1e
SQL
alok2002shukla/alok2002shukla.github.io
/otp_login/database/users.sql
UTF-8
1,222
3.21875
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; ...
true
c9485b223d3e4edb2bd4002babe3cf0dea6d6ca3
SQL
daduAmar/ARANS
/arans (2).sql
UTF-8
11,870
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 29, 2018 at 07:26 AM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.1.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
256db3738c99b426d6268629e55dfa3bddcb0b53
SQL
fdjskla/2020-08-otus-spring-golubkov
/homework-5/src/main/resources/schema.sql
UTF-8
592
3.671875
4
[ "MIT" ]
permissive
DROP TABLE IF EXISTS BOOKS; DROP TABLE IF EXISTS AUTHORS; DROP TABLE IF EXISTS GENRES; CREATE TABLE BOOKS(ID BIGINT AUTO_INCREMENT PRIMARY KEY, TITLE VARCHAR(255), TEXT CLOB, AUTHOR_ID BIGINT, GENRE_ID BIGINT); CREATE TABLE AUTHORS(ID BIGINT AUTO_INCREMENT PRIMARY KEY, NAME VARCHAR(255)); CREATE INDEX AUTHOR_NAME ON A...
true
d800324619e092f7f54adc4e5c788434314a145c
SQL
nhhuy1804/Wmall
/Resources/data/schema/POS_SD.sql
UHC
1,506
2.765625
3
[]
no_license
<P001DeletePastTrans_SAT010T> --SAT010T DELETE FROM SAT010T WHERE CD_STORE = @CD_STORE AND NO_POS = @NO_POS AND DD_SALE < @DD_SALE; </P001DeletePastTrans_SAT010T> <P001DeletePastTrans_SAT011T> --SAT011T DELETE FROM SAT011T WHERE CD_STORE = @CD_STORE AND NO_POS = @NO_POS AND DD_SALE < @DD_SALE; </P001DeletePas...
true
7090982b03025b0e2b79bcd680c60a74b4b68eb6
SQL
khomri/lo54-project
/src/main/resources/BDDLO54.sql
UTF-8
3,065
3.734375
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: khalil * Created: 22 mai 2016 */ # ----------------------------------------------------------------------------- # ...
true
e6ff9af8c414aa6f6905726233a0bbbdc2d26b9a
SQL
InnervisionGit/prodajalna
/php/Seminarska/Prodajalna.sql
UTF-8
3,987
3.546875
4
[]
no_license
-- MySQL Script generated by MySQL Workbench -- čet 13 dec 2018 17:27:58 CET -- 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...
true
fcb7767eab0f8ad9886908b5c894184983155f12
SQL
trwylde/Hand-N-Paw
/models/schema.sql
UTF-8
1,154
3.5
4
[]
no_license
DROP DATABASE IF EXISTS breeds_db; -- CREATE DATABASE exampledb; CREATE DATABASE breeds_db; USE breeds_db; CREATE TABLE breeds( id INT NOT NULL AUTO_INCREMENT, breed_name VARCHAR(75) NOT NULL, -- Name of breed size INT NOT NULL, -- Relates to avg height of breed (scale of 1-3) outdoor_space INT N...
true
1df65616087e13cdda7ed14cbfa4bb30e52b43c4
SQL
soverc/writehive_server
/sql/schema/invoices.sql
UTF-8
617
3.109375
3
[]
no_license
-- -- Table structure for table `invoices` -- SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; CREATE TABLE IF NOT EXISTS `invoices` ( `id` int(255) unsigned NOT NULL auto_increment, `author_id` int(255) unsigned default '0', `article_id` int(255) unsigned default '0', `invoi...
true
25b85d873fa78be8b34395c5f758a57984ba9378
SQL
lmotta/bd_espacial
/sql/join_inner.sql
UTF-8
167
3.09375
3
[]
no_license
SELECT t.id, r.code_name AS "revestimento", geom FROM cb.tra_trecho_rodoviario_l AS t INNER JOIN dominios.revestimento AS r ON t.revestimento = r.code LIMIT 100
true
dedc5690a4720804f728d31fce3c9731c318a97b
SQL
nilsKolliker/Exercice-pratique-Entr-e-en-CDA
/scripte.sql
UTF-8
409
2.734375
3
[]
no_license
Drop DATABASE IF EXISTS ExoCDA; CREATE DATABASE IF NOT EXISTS ExoCDA DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; USE ExoCDA; DROP TABLE IF EXISTS ville; CREATE TABLE IF NOT EXISTS ville ( id int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, nom varchar(50) NOT NULL, numerodedepartement int(11) NOT NULL, cod...
true
b0d3cf576a0bdb92a11713ce54c81920b2e3301d
SQL
yuyenchu/cse414-ayu1998
/hw/hw3/submission/hw3-q2.sql
UTF-8
285
3.578125
4
[]
no_license
select distinct f.origin_city as city from FLIGHTS as f where f.actual_time is not NULL and f.origin_city not in (select F.origin_city from FLIGHTS F where F.actual_time >= 180) order by city asc;
true
1cd4fd416ae24b3473d36057baf82b9885e99b64
SQL
jpqy/LightBnB
/migrations/02_guest_reviews.sql
UTF-8
642
3.171875
3
[]
no_license
DROP TABLE IF EXISTS rates, guest_reviews; CREATE TABLE rates ( id SERIAL PRIMARY KEY NOT NULL, start_date DATE NOT NULL, end_date DATE NOT NULL, cost_per_night INTEGER NOT NULL, property_id INTEGER REFERENCES properties(id) ON DELETE CASCADE ); CREATE TABLE guest_reviews ( ...
true