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
297593672540b7843ed18d45878901509f221b5b
SQL
gdg-work/SkillFactory__SDA6__Case_A10
/sql/04_create_rus_with_geoip.sql
UTF-8
474
3.21875
3
[]
no_license
create temporary table c10_users_with_geoip as with uid_ip as ( -- <1> select id as uid, last_sign_in_ip as ip_addr, last_sign_in_ip::inet - '0.0.0.0'::inet as int_addr -- <2> from case10.users ) select u.uid, u.ip_addr, u.int_addr, geoip....
true
00afbc22d0964c351945c4614c4bd506e90a1e4b
SQL
alter-sachin/buildar_webapp
/database/scripts/181228_01.sql
UTF-8
582
2.859375
3
[ "MIT" ]
permissive
INSERT INTO `executedScripts` (`name`, `description`, `createdDate`, `executedDate`) VALUES ('181228_01', 'New stripe plans table', NOW(), NOW()); CREATE TABLE `plans` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(128) NOT NULL DEFAULT '', `description` varchar(255) DEFAULT NULL, `stripeProd...
true
a5b19e7620e92a4d5091a38773681cf670f50dc6
SQL
CrazyRocks/EvaOAuthClient
/sql/tables.sql
UTF-8
1,260
2.703125
3
[ "BSD-3-Clause", "Zend-2.0", "PHP-3.01" ]
permissive
DROP TABLE IF EXISTS `eva_oauth_accesstokens`; CREATE TABLE IF NOT EXISTS `eva_oauth_accesstokens` ( `adapterKey` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `token` varchar(520) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `version` enum('OAuth1','OAuth2') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'OAuth2', ...
true
00dc8be8bdbeace9365b819be6b7036cbecb2279
SQL
lefonque/exercise
/examples/example-springmvc/sqls/bbs_file.sql
UTF-8
568
2.703125
3
[]
no_license
DROP TABLE BBS_FILE; CREATE TABLE BBS_FILE( S_BBS_ID VARCHAR2(50), I_BBS_IDX INTEGER, I_FILE_IDX INTEGER, S_LOCAL_FILEPAHT VARCHAR2(2000), S_SERVER_FILENAME VARCHAR2(2000), S_SERVER_PATH VARCHAR2(2000), S_FILE_TYPE VARCHAR2(50), C_THUMB_YN CHAR(1), C_MAJOR_YN CHAR(1), PRIMARY KEY(S_BBS_ID,I_BBS_IDX,I_FILE_IDX...
true
b9a18b2997236cd4461d2518377a0fda3f8d7bf2
SQL
ebeilmann/DixieStateUniversity
/cs4307/sql_vqs3_files/listing0601.sql
UTF-8
195
3.046875
3
[]
no_license
SELECT MIN(price) AS "Min price" FROM titles; SELECT MIN(pubdate) AS "Earliest pubdate" FROM titles; SELECT MIN(pages) AS "Min history pages" FROM titles WHERE type = 'history';
true
969b1b3194ed0cebd576b35816789bf9d5e423ba
SQL
FDMediagroep/issues
/src/main/resources/db/migration/V1__baseline.sql
UTF-8
1,249
3.9375
4
[]
no_license
# Simply describes the list. `list_id` is intended to hold a combination of 'publication' and 'list name', i.e. `fd/home.fd4.opening` CREATE TABLE `article_list_meta` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, # numerical ID for smaller index `publication` CHAR(4) CHARACTER SET latin1...
true
81f389c65d206903af2928b67daebd1e93d38c1d
SQL
Mo0nRiv3r/BaiPaJoin061321
/db/baipajoin.sql
UTF-8
16,421
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 07, 2021 at 07:33 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 7.3.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
cc1adf1b60029b4383b733e5747a886f402e1a4e
SQL
j7ng/CLFY_SA
/SA/Tables/ADFCRM_SOLUTION_SCRIPT_TOKENS.sql
UTF-8
1,011
3.34375
3
[]
no_license
CREATE TABLE sa.adfcrm_solution_script_tokens ( token VARCHAR2(100 BYTE) NOT NULL, description VARCHAR2(400 BYTE) NOT NULL, token_value VARCHAR2(4000 BYTE) NOT NULL, changed_date DATE DEFAULT SYSDATE, changed_by VARCHAR2(50 BYTE), change_type VARCHAR2(100 BYTE), CONSTRAINT adfcrm_sol_script_token_p...
true
d1d3921270e5155952118ff33638b3540158956d
SQL
msquitieri/craigslistpoetry-api
/db/structure.sql
UTF-8
7,490
3.0625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.49, for osx10.11 (x86_64) -- -- Host: localhost Database: craigslistpoetry-api_development -- ------------------------------------------------------ -- Server version 5.5.49 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@C...
true
3f61deb8b8bf9dcf235993fc844b01265051fd24
SQL
baokiddy/SQL_introduction
/sql_homework_1.sql
UTF-8
8,234
4.59375
5
[]
no_license
-- Use Sakila db for the following statements -- USE sakila; -- Display first and last name columns from actor table SELECT first_name, last_name FROM actor; -- Add new column named ActorName ALTER TABLE actor ADD `Actor Name` VARCHAR(50); -- Add first and last name of each actor into ActorName column UPDATE a...
true
19496cb388a2d2ce3549af85089d09f43f84ba8f
SQL
devnandito/godocusy
/app/db/migrations/20210211180916_table_person.sql
UTF-8
701
3.125
3
[]
no_license
-- +goose Up -- SQL in section 'Up' is executed when this migration is applied CREATE TABLE client ( pk serial NOT NULL, created_at timestamptz NOT NULL, update_at timestamptz NOT NULL, first_name varchar(140) NOT NULL, last_name varchar(140) NOT NULL, ci varchar(12) NOT NULL, birthday date NULL, sex varchar(1...
true
eb12b4b569cb8b1323cf43d5c9f890b31999f6fc
SQL
DimolSPA/Dimol-Fix-Carteras
/Dimol.Carteras/Dimol.Carteras.Database/dbo/Stored Procedures/Procs2/Trae_Reporte_Cpbt_Caja.sql
UTF-8
1,857
2.59375
3
[]
no_license
 Create Procedure Trae_Reporte_Cpbt_Caja(@ddi_codemp integer, @ddi_sucid integer, @ddi_anio integer, @ddi_numdoc integer, @edi_idiid integer) as SELECT view_documentos_diarios.tci_nombre, view_documentos_diarios.ddi_numcta, view_documentos_diarios.bco_nombre, view_documentos_diar...
true
6c1b919d0c2c4bd7978a78cefcf993840fbcc7b9
SQL
davidemoraschi/APISA
/PANDAS_MALAGA/CARGA CAMAS del DIA POR AREA.sql (recovered).sql
ISO-8859-3
4,658
3.25
3
[]
no_license
/* Formatted on 26/03/2014 11:41:39 (QP5 v5.163.1008.3004) PANDAS Copyright (c) 2013 -Davide Moraschi (davidem@eurostrategy.net) Todos los derechos reservados. Prohibida su reproduccin Total o Parcial. */ DROP TABLE TEMP_CAMAS_A1; CREATE TABLE TEMP_CAMAS_A1 NOLOGGING NOPARALLEL NOMONITORING AS SELECT CAH_AH_CODIGO NA...
true
904b7294e9482cb75183a444feb04c823fd98459
SQL
vm2narola/spring-jwt-security
/src/main/resources/schema.sql
UTF-8
693
3.546875
4
[]
no_license
drop table if exists role; drop table if exists user; drop table if exists user_roles; create table role (id bigint not null auto_increment, description varchar(255), name varchar(255), primary key (id)) engine=MyISAM; create table user (id bigint not null auto_increment, password varchar(255), username varchar(255), p...
true
bdbc566e2cbf8c15aca12572f01a051139873f51
SQL
jonathan-rSantos/MySQL
/Lista 4/Atividade 6.sql
UTF-8
3,110
4.125
4
[]
no_license
create database db_cursoDaMinhaVida; use db_cursoDaMinhaVida; -- 3 atributos relevantes create table tb_categoria( id bigint auto_increment, duracao int (2) not null, professor varchar(255) not null, tipo varchar(255) not null, primary key (id) ); -- Popule esta tabela Categoria com até 5 dados. insert into tb_categ...
true
d295421a7f3deb0328401cdbec202c5a9f0273f4
SQL
mentorat/project5
/openfoodfact.sql
UTF-8
1,640
3.875
4
[]
no_license
SET NAMES utf8; DROP DATABASE IF EXISTS openfoodfact; CREATE DATABASE openfoodfact; USE openfoodfact; CREATE TABLE category( id INTEGER UNSIGNED AUTO_INCREMENT, name VARCHAR(200) NOT NULL, PRIMARY KEY(id) )ENGINE=InnoDB; CREATE TABLE Category_product( id INTEGER UNSIGNED AUTO_INCREMENT, category_id INTEGER ...
true
208a33ba1b765d5be60fb4b4fbdf141c064a81d0
SQL
97amarnathk/storage-api
/src/test/db/00-supabase-schema.sql
UTF-8
2,080
3.1875
3
[ "Apache-2.0" ]
permissive
-- Set up reatime create publication supabase_realtime for all tables; -- Supabase super admin create user supabase_admin; alter user supabase_admin with superuser createdb createrole replication bypassrls; -- Extension namespacing create schema extensions; create extension if not exists "uuid-ossp" with schem...
true
919afe100e89e314a8216c363716d0c70f4698e7
SQL
jdcsma/projavawebapp
/ch24/advanced-mappings-many-to-many/database/create.sql
UTF-8
787
3.65625
4
[ "MIT" ]
permissive
CREATE DATABASE AdvancedMappingsManyToMany DEFAULT CHARACTER SET 'utf8' DEFAULT COLLATE 'utf8_unicode_ci'; USE AdvancedMappingsManyToMany; CREATE TABLE schools ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(128) NOT NULL ) ENGINE = InnoDB; CREATE TABLE students ( id BIGINT UNSIGNED NO...
true
1f5dc72328aabd06e8e590950a7d4c63456260ed
SQL
Letsifer/ServiceCourseWork-2
/src/main/resources/db/migration/V0/V0.0.1__create_currency_table.sql
UTF-8
465
3.625
4
[]
no_license
create table converter.currency( id serial, title varchar not null, shorttitle varchar, constraint currency_pk primary key (id) ); create unique index unique_currency_title on converter.currency using btree(title); COMMENT ON TABLE converter.currency IS 'Список валют'; COMMENT ON COLUMN convert...
true
38099d4e99c93f1ddfff850ca99960eee2be0f6c
SQL
lizalin/Angular
/laravel api 20210825 2111.sql
UTF-8
13,667
2.828125
3
[]
no_license
-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.5.5-10.4.19-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@CO...
true
855233ad24cc1a6a4b4196f06667707832192543
SQL
sundewei/sadoop
/src_backup/TASK.sql
UTF-8
396
3.578125
4
[]
no_license
SELECT blocks.LOC_ID, blocks.START_IP_NUM, blocks.END_IP_NUM, locs.COUNTRY, locs.CITY, locs.LATITUDE, locs.LONGITUDE FROM I827779.CITY_IP_BLOCKS blocks, I827779.CITY_LOCATIONS locs WHERE blocks.LOC_ID = locs.LOC_ID AND blocks.LOC_ID in ( SELECT LOC_ID FROM ( SELECT LOC_ID, COUNT(0) FROM I827779.C...
true
0388b9fbca8fce3c968a891faff061d72a72bc81
SQL
yardSchtick/yard-schtick
/db/sale/get_sale_by_distance.sql
UTF-8
963
4.15625
4
[]
no_license
-- $1 = user latitude, $2 = user longitude, $3 distance in miles, $4 user id SELECT sale.id, ( 6371 * acos( cos( radians( $1 ) ) * cos( radians( latitude ) ) * cos( radians( longitude ) - radians( $2 ) ) + sin(radians($...
true
5aa559f6e3e82760c46d1d54e27aa088491ed30b
SQL
yangqiaosheng/spatialdm
/OracleSpatialWeb/sql/PostgreSQL/DDL/flickr_world_tags_count.sql
UTF-8
465
3.125
3
[]
no_license
-- Table: flickr_world_tags_count -- DROP TABLE flickr_world_tags_count; CREATE TABLE flickr_world_tags_count ( id integer NOT NULL, radius integer NOT NULL, person text, "hour" text, "day" text, "month" text, "year" text, total text, tag_num integer, tag_sum_num integer, CONSTRA...
true
2e5d1f1cb9c8ff89a455c3bc49b6f4a91d32e37d
SQL
nguyenlamkhoa011202/lam-khoa
/Hotel-Managerment-Project-Official-Last/database/hotel.sql
UTF-8
4,721
3.15625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.26, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: hotel -- ------------------------------------------------------ -- Server version 8.0.26 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40...
true
816b21dc980122bfb44c60a4da535ea02354c588
SQL
Yisaki/eventalarm
/sql/t_event.sql
UTF-8
1,882
3.140625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 200 Source Server Version : 50621 Source Host : 192.168.3.200:3306 Source Database : mybatis Target Server Type : MYSQL Target Server Version : 50621 File Encoding : 65001 Date: 2018-04-01 00:51:46 */ SET FOREIGN_KEY_CHECKS=0; -- ---...
true
6ca0d35bf046af0e2b5c04239524796f617cd681
SQL
VERTICA-FAST/FAST
/vsql/NETSUITE/NS_Payment_terms.sql
UTF-8
5,540
3.484375
3
[]
no_license
/**** ****Script Name : NS_Payment_terms.sql ****Description : Incremental data load for NS_Payment_terms ****/ /* Setting timing on**/ \timing /**SET SESSION AUTOCOMMIT TO OFF;**/ \set ON_ERROR_STOP on CREATE LOCAL TEMP TABLE Start_Time_Tmp ON COMMIT PRESERVE ROWS AS select count(*) count, sysdate st...
true
90237b790799b9f6b119f0bd66793983f60f9bd5
SQL
beyzapac/Kafe-Otomasyon
/login.sql
UTF-8
1,151
2.65625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Anamakine: 127.0.0.1 -- Üretim Zamanı: 09 Haz 2020, 08:08:03 -- Sunucu sürümü: 10.4.11-MariaDB -- PHP Sürümü: 7.2.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
true
19892b5681ac564c9b84f7f27970f871b056113d
SQL
matrupihai/WebLib
/sql/0.1.sql
UTF-8
2,945
3.796875
4
[]
no_license
CREATE TABLE "DBA"."100_AUTHORS" ( "author_id" NUMERIC(9,0) NOT NULL DEFAULT AUTOINCREMENT, "author_name" VARCHAR(255) NULL, PRIMARY KEY ( "author_id" ASC ) ); CREATE TABLE "DBA"."101_PUBLISHERS" ( "publisher_id" NUMERIC(9,0) NOT NULL DEFAULT AUTOINCREMENT, "publisher_name" VARCHAR(255) NULL, PRIMARY KEY ( "publ...
true
c7e8d5c087a1412cb7ffc5dbfb5b791389bd18ef
SQL
tywalch/sql-scripts
/SQLite/spiceworks/TimeToFirstComment.sql
UTF-8
1,509
4.15625
4
[]
no_license
SELECT t.id, t.Category, u.email ,CASE t.assigned_to WHEN 54 THEN 'Bobby' WHEN 4 THEN 'Tyler' END as 'Assigned To' ,(strftime('%s',MIN(c.Created_At)) - strftime('%s',t.created_at)) / 60 as 'Minutes to First Comment' ,CASE WHEN ((strftime('%s',MIN(c.Created_At)) - strftime('%s',t.created_at)) / 60) < ...
true
2dabd47ac5703d27492ba74040ded188c7940030
SQL
hpenev/JavaEE
/SQL_homework/SQL Basics/task17.sql
UTF-8
101
2.859375
3
[]
no_license
SELECT department_name, city FROM departments JOIN locations USING (location_id)
true
11db260d6ed93de30762739bfa276070045fab54
SQL
usersdy/SXXM
/server_vue_pc/TP-LINK_vue_pc.sql
UTF-8
31,623
3.28125
3
[]
no_license
#设置编码为utf8 SET NAMES UTF8; #丢弃数据库,如果存在的话 DROP DATABASE IF EXISTS tplink_vue_pc; #创建新的数据库 CREATE DATABASE tplink_vue_pc CHARSET=UTF8; #进入数据库 USE tplink_vue_pc; -- 创建用户信息表; create table tplink_user( uid INT AUTO_INCREMENT PRIMARY KEY, uname VARCHAR(128), upwd VARCHAR(128), phone BIGINT ); IN...
true
53fc71f7b41ed6600a2c33e5ca2109575c3f29e4
SQL
iljun/OnePageServer
/classes/production/OnePage/sql/db.sql
UTF-8
4,421
3.703125
4
[]
no_license
DROP TABLE IF EXISTS onepage.location; CREATE TABLE onepage.location ( `locationId` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'pk', `latitude` double NOT NULL COMMENT 'latitude', `longitude` double NOT NULL COMMENT 'longitude', `name` varchar(500) NOT NULL COMMENT 'location name', `engName` varchar(500) NU...
true
7748c715f7d55914430eb63a12949b2ba78a150f
SQL
Teradata/jaqy
/tests/unittests/json/json_import_5.sql
UTF-8
1,302
3.1875
3
[ "Apache-2.0" ]
permissive
-------------------------------------------------------------------------- -- .import json command test -------------------------------------------------------------------------- .run ../common/mysql_setup.sql USE vagrant; -- Cartographic Boundary Shapefiles - States -- https://www.census.gov/geo/maps-data/data/cbf/cb...
true
c86ffee14d0f44ca82ac01ecb1ba17e3246020d6
SQL
maumaya8110/SICAS_WF_SAT
/SICASv20/sql scripts/data_definition_language_20130312.sql
UTF-8
2,560
3.96875
4
[]
no_license
select table_name from information_schema.tables where table_type = 'BASE TABLE' and table_name not like 'Temp%' and table_name not like 'sysdiagrams' order by table_name select * from ComisionesServicios select TABLE_NAME Tabla, COLUMN_NAME Columna, CASE IS_NULLABLE WHEN 'YES' THEN 'Si' ELSE 'No' END A...
true
2c71fcb0cf0c3062ef0a7ddcc67351245fe7faeb
SQL
ashutoshaggoyal633/project
/cms.sql
UTF-8
1,730
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 21, 2021 at 09:45 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
c8a77cca7c3c403fbedb852657f39b623efe01d5
SQL
kamairen/trabalho_bd1
/arquivos/select_9.2.sql
UTF-8
936
3.265625
3
[]
no_license
import psycopg2 conn = psycopg2.connect(host = "tuffi.db.elephantsql.com", port = "5432", database = "epiisgzj", user = "epiisgzj", password = "rPcFrCdmPfIHaGYn_j105uSkXOf1Q2up") cur = conn.cursor() #Seleciona todos os jogadores do sexo masculino cur.execute("""select * from jogador where sexo = 'M'""") result = cur.f...
true
c18678e5363028563d239b7f1c8712ccdc477c44
SQL
jwalter9/Raptor-AntiPhish
/db/adminProcs.sql
UTF-8
7,322
3.578125
4
[ "Apache-2.0" ]
permissive
DELIMITER $$ DROP PROCEDURE IF EXISTS `admin` $$ CREATE PROCEDURE `admin`() BEGIN IF `raptorData`.checkSession(@mvp_session) != 1 THEN SET @mvp_template = 'login'; END IF; END $$ DROP PROCEDURE IF EXISTS `login` $$ CREATE PROCEDURE `login`(IN uname VARCHAR(128), IN pass VARCHAR(128), OUT err VARCHAR(32)) BEGI...
true
948468e323e43a2808c840e517682e537a20458f
SQL
jivdhaliwal/nhs-virtual-visit
/db/migrations/mssql/sqls/20201218000002-create-organisation-table.sql
UTF-8
328
2.96875
3
[ "MIT" ]
permissive
CREATE TABLE dbo.[organisation] ( [id] int IDENTITY(1, 1) NOT NULL, [name] nvarchar(255), [created_at] datetime DEFAULT GETDATE(), [created_by] int, [type] nvarchar(255) NOT NULL, [uuid] uniqueidentifier NOT NULL DEFAULT newid(), [status] tinyint DEFAULT 0, CONSTRAINT PK_organisation PRIMARY KEY...
true
f1e185fb8e9a20357c50566c2ed5af28275ee3d6
SQL
tenderne13/hotelP
/hotelP/WebRoot/SQL/hotel_20170609.sql
UTF-8
8,078
3.03125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50619 Source Host : localhost:3306 Source Database : hotel Target Server Type : MYSQL Target Server Version : 50619 File Encoding : 65001 Date: 2017-06-09 13:33:07 */ SET FOREIGN_KEY_CH...
true
c51c484d98bfc7ba324cea0dee713e9800388c39
SQL
jhonarendra/api-android-restoran
/db_fifteen_resto.sql
UTF-8
15,250
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 22 Nov 2018 pada 07.35 -- Versi Server: 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_CHA...
true
3f4039b16c3580467eddb970f6f7bc76a5739c54
SQL
hakdj/mariadbtest
/0803_erdcloud.sql
UTF-8
1,175
3.625
4
[]
no_license
DROP TABLE IF EXISTS `cust`; CREATE TABLE `cust` ( `id` VARCHAR(10) NOT NULL, `pwd` VARCHAR(10) NOT NULL, `name` VARCHAR(20) NOT NULL ); DROP TABLE IF EXISTS `item`; CREATE TABLE `item` ( `id` INT NOT NULL, `name` VARCHAR(20) NULL, `price` INT NOT NULL, `rate` FLOAT NULL DEFAULT 3.3, `regdate` DATE NULL ); ...
true
2fd896c8b0561013faf0fe574c11d8da7b05f1ff
SQL
x-cpu/SQL
/Weekly_Production_counts_Bob_3.sql
UTF-8
2,016
3.859375
4
[]
no_license
Select FROM (select distinct top (100) d.pbatch BatchName, count(distinct d.dcsid) DCSID, count(d.ImageID) Docs, sum(d.NumPages) Images, YEAR(d.ImageDateTime) Year, datepart(WEEK, d.ImageDateTime) Week from document d where d.imagedatetime >= '2018-07-18' and d.ImageDateTime <= '2018-07-18 23:59:59.999' ...
true
dafc5df6dee0409add5f3bb3020602996b841d2e
SQL
milo-codes/imdb_inner_joins_lab
/db/imdb.sql
UTF-8
497
3.0625
3
[]
no_license
DROP TABLE IF EXISTS roles; DROP TABLE IF EXISTS actors; DROP TABLE IF EXISTS movies; CREATE TABLE actors ( id SERIAL8 PRIMARY KEY, f_name VARCHAR(255), l_name VARCHAR(255) ); CREATE TABLE movies ( id SERIAL8 PRIMARY KEY, title VARCHAR(255), genre VARCHAR(255) ); CREATE TABLE ...
true
fb592b89370a277c06e9ef911f23af49fecdcf6f
SQL
vitorcool45/Vitor
/BD ex1/BD ex1.sql
UTF-8
762
3.265625
3
[]
no_license
create database db_generation; USE db_generation; create table tb_funcionarios( id bigint auto_increment, nome varchar (255) not null, idade int, cargo varchar (30) not null, setor varchar (30) not null, salario decimal (7,2), primary key (id) ); INSERT INTO tb_funcionarios(nome, idade, cargo, setor, salario) VALUE...
true
17cc21d41a14cae74ca383b6194aeaf843c38163
SQL
radtek/EaglePicher
/Reports/QuickReports/ExportLicense/exportlicense_sql.sql
UTF-8
490
2.953125
3
[]
no_license
SELECT lc.export_license_id, l.license_number, l.description, l.authority_license_no, l.issuing_authority, l.state, to_char(l.issued_date,'MM/dd/YYYY'), to_char(l.effective_from, 'MM/dd/YYYY'), to_char(l.expires, 'MM/dd/YYYY'), lc.qty_licensed, lc.part_no, lc.amt_licensed...
true
35b9a9cde8cb0c8ed021166cb74d99a520526831
SQL
klauspeng/YII2_Learn
/yii_blog.sql
UTF-8
1,578
2.765625
3
[ "Apache-2.0" ]
permissive
# Host: 127.0.0.1 (Version: 5.6.35-log) # Date: 2017-08-16 23:15:12 # Generator: MySQL-Front 5.3 (Build 4.57) /*!40101 SET NAMES utf8 */; # # Structure for table "yb_article" # DROP TABLE IF EXISTS `yb_article`; CREATE TABLE `yb_article` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `type` int(8) unsigned DEFAULT '...
true
c4ebf33ac61f3f1f10cc97915f045a7e83394de3
SQL
AbhinayThota/RBMS
/PLSQL_Code/MONTHLY_PROD_REPORT_s.sql
UTF-8
346
2.875
3
[]
no_license
/* package specifications for case 4 monthly sale report */ /* we have implemented both functions and procedures for case 4*/ CREATE OR REPLACE PACKAGE Monthly_prod_report as type ref_cursor is ref cursor; function Fun_report_monthly_sale(prod_id in varchar2) return ref_cursor; procedure Proc_report_monthly_sale(pro...
true
e1f1f1b07ecc8ce08a3ed88e9dac69493234e946
SQL
shadisalama/sql-challenge
/EmployeeSQL/Q3.sql
UTF-8
307
3.53125
4
[]
no_license
SELECT employees.emp_no, employees.last_name, employees.first_name, dept_manager.dept_no, departments.dept_name, dept_manager.from_date, dept_manager.to_date FROM employees INNER JOIN dept_manager ON dept_manager.emp_no = employees.emp_no LEFT JOIN departments ON dept_manager.dept_no = departments.dept_no;
true
e7ea2193d13ce570c516d380b0c939506b282364
SQL
tiffanyposs/DatabaseHomework
/seed.sql
UTF-8
1,656
3.328125
3
[]
no_license
CREATE TABLE songs ( id INTEGER PRIMARY KEY, title TEXT, album_id INTEGER ); CREATE TABLE albums ( id INTEGER PRIMARY KEY, names TEXT, artist_id INTEGER ); CREATE TABLE artists ( id INTEGER PRIMARY KEY, name TEXT ); INSERT INTO artists (name) VALUES ("Red Hot Chili Peppers"), ("Rolling Stones"), ("Led Zeppe...
true
f6a6fbd57e7f1a78700f12d0d8b2e720dcef0898
SQL
aeife/masterprojekt
/db-backups/mysql/masterprojekt.sql
UTF-8
1,983
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Erstellungszeit: 01. Mrz 2013 um 16:53 -- 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 */; /*!4...
true
e8428920447284d48ca3c96c268191d9d5c1d0de
SQL
Pertou/Aquarium-Monitoring-System
/Cloud/aquarium-monitoring.sql
UTF-8
4,914
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost -- Généré le : lun. 26 oct. 2020 à 14:05 -- Version du serveur : 10.3.25-MariaDB-0+deb10u1 -- Version de PHP : 7.3.19-1~deb10u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 ...
true
e160c01006932bbe3ade036f0d7353ef5d1f04ae
SQL
f0rtung/magnet_test_task
/create_db.sql
UTF-8
2,163
3.484375
3
[]
no_license
CREATE TABLE CommentInfo ( CommentID INTEGER PRIMARY KEY AUTOINCREMENT, LastName text NOT NULL, FirstName text NOT NULL, MiddleName text, RCRelation integer, Phone text NOT NULL, Email text NOT NULL, Comment text NOT NULL, FOREIGN KEY (RCRelation) REFERENCES RegionCityRelations(RelationID) ); CREATE TABLE Reg...
true
a41de5d2da8ac700b7f29687ba985cc72c26ed6d
SQL
StrotherTroiano/SQL
/1141-user-activity-for-the-past-30-days-i/1141-user-activity-for-the-past-30-days-i.sql
UTF-8
209
3.546875
4
[]
no_license
/* Write your T-SQL query statement below */ SELECT activity_date AS day, COUNT(DISTINCT user_id) AS active_users FROM Activity WHERE activity_date BETWEEN '2019-06-28' AND '2021-08-27' GROUP BY activity_date
true
2390206aa7c9ac13e55c060aaec999c21be7330a
SQL
vandraz/project-bipaloka
/dbbipa.sql
UTF-8
20,896
3.0625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 05 Des 2019 pada 09.12 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
bf780966b4c8bd31687d01457ca54c6accea03e6
SQL
sieuquay626/BaoCaoCSDL
/BaoCao/query.sql
UTF-8
2,909
4
4
[]
no_license
---*** 1.Xuất ra thông tin nhân viên có giới tính nữ SELECT * FROM NHANVIEN WHERE GioiTinh=N'Nữ' ---*** 2.Xuất ra danh sách nhân viên có số điện thoại là 11 chữ số và có chức vụ là hướng dẫn viên SELECT * FROM NHANVIEN NV,CHUCVU CV WHERE NV.MaCV=CV.MaCV AND LEN(SDT) =11 AND TenCV = N'Hướng dẫn viên' ---*** 3.Xuất ...
true
bad9b8e6e301d259825857044d5c1cb5a4c75102
SQL
akashpatole43/maverick
/DB_folder/dassaultsystemes_user_medical_history.sql
UTF-8
2,538
2.96875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.21, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: dassaultsystemes -- ------------------------------------------------------ -- Server version 8.0.21 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
true
d0467219600c7e1b94407194c3bab70d47f6cf08
SQL
idies/Turbulence
/scripts/mhddb024/CreatePartitionFunctionScheme.sql
UTF-8
3,944
2.75
3
[]
no_license
create partition function zindexPFN(bigint) as range left for values(822083583, 838860799, 855638015, 872415231, 889192447, 905969663, 922746879, 939524095, 956301311, 973078527, 989855743, 1006632959, 1023410175, 1040187391, 1056964607) alter database mhddb024 add filegroup [FG1] alter database mhddb024 add ...
true
ce2b18b723d99e628b8dc625bc0b28df96f10be7
SQL
Caonisandaye/LeetCode
/1270.sql
UTF-8
426
3.65625
4
[]
no_license
##LC 1270. All People Report to the Given Manager #Solution SELECT D.employee_id FROM Employees A JOIN Employees B ON A.employee_id = 1 AND A.employee_id = B.manager_id JOIN Employees C ON B.employee_id = C.manager_id JOIN Employees D ON C.employee_id = D.manager_id WHERE D.employee_id <> 1 #Result Ru...
true
0931a55757b3bcac81c16ac604405e46a4101adb
SQL
ravelz/CodeNameOtot
/1718157_raymasterio.sql
UTF-8
4,364
3
3
[]
no_license
# Host: localhost (Version 5.5.5-10.1.21-MariaDB) # Date: 2020-03-06 14:28:19 # Generator: MySQL-Front 6.0 (Build 2.20) # # Structure for table "1718157_barang" # DROP TABLE IF EXISTS `1718157_barang`; CREATE TABLE `1718157_barang` ( `1718157_KdBarang` char(6) NOT NULL DEFAULT '', `1718157_NmBarang` varchar(3...
true
d5c9456969c1d7f6543b93ad6591ede8ba02555f
SQL
donaldrivard/Food-Bank
/datasets/sample.sql
UTF-8
918
2.78125
3
[]
no_license
BEGIN TRANSACTION; CREATE TABLE "Account" ( id INTEGER NOT NULL, "Name" VARCHAR(255), "ParentId" VARCHAR(255), record_type VARCHAR(255), PRIMARY KEY (id) ); INSERT INTO "Account" VALUES(1,'Test Account 2','',NULL); INSERT INTO "Account" VALUES(2,'Test Account 1','',NULL); CREATE TABLE "Delivery__c" ( id INTEG...
true
7a70236ecea6f986c1198a9d4890f73a186e8bec
SQL
Arielgmv/master_php
/aprendiendo-sql/09-ejercicios/ejercicio10.sql
UTF-8
224
2.953125
3
[]
no_license
/* 10.- Visualizar los apellidos de los vendedores, fecha y número de grupo, ordenado por fecha descendente, mostrar los 4 últimos */ SELECT apellidos, fecha_alta, grupo_id FROM vendedores ORDER BY fecha_alta DESC LIMIT 4;
true
a3837f3934531dfd99f048d5500a3ddddb33740c
SQL
apache/nifi
/nifi-registry/nifi-registry-core/nifi-registry-framework/src/main/resources/db/migration/default/V2__Initial.sql
UTF-8
2,347
3.78125
4
[ "CC0-1.0", "Apache-2.0", "MIT", "LicenseRef-scancode-unknown" ]
permissive
-- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may not...
true
ad094092352ff0a2924cb504fee229b1519e57ae
SQL
Marcalzotto/Proyecto_egdo
/egdo_db_script/TablausuarioModificado.sql
UTF-8
2,803
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 11-07-2016 a las 05:28:31 -- Versión del servidor: 5.6.16 -- Versión de PHP: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
3f0ee68941afc2eea96f3eb8518a1b5dcf671225
SQL
delphi1977/NewDicomPACS
/Database/oracle/constraints/asu.tdgstadia_fk_key.sql
UTF-8
233
2.765625
3
[]
no_license
ALTER TABLE ASU.TDISPGROUPSTADIA DROP CONSTRAINT TDGSTADIA_FK_KEY / -- -- Non Foreign Key Constraints for Table TDISPGROUPSTADIA -- ALTER TABLE ASU.TDISPGROUPSTADIA ADD ( CONSTRAINT TDGSTADIA_FK_KEY PRIMARY KEY (FK_ID)) /
true
b4a101d34155848b2e2060b0a8b078ebb72a2f91
SQL
LucasNO/filmes2
/DumpLocadora02122015.sql
UTF-8
7,023
3.28125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `locadora` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `locadora`; -- MySQL dump 10.13 Distrib 5.6.23, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: fatec_filmes -- ------------------------------------------------------ -- Server version 5.6.24 /*!40101 SET @OLD_CHARACTER_SET_CL...
true
028bd90d158698de3fa17f4fe312ac56d5a99909
SQL
xnull/rent4me
/realty/realty-sql/src/main/resources/sql/v1/V1_52__create_indexes_fix_constraints.sql
UTF-8
711
3.234375
3
[]
no_license
DELETE FROM apartments where data_source<>'INTERNAL'; CREATE UNIQUE INDEX apartments$unique_external_id_idx ON apartments USING BTREE (external_id, data_source) WHERE external_id IS NOT NULL and external_id <> ''; CREATE INDEX apartments$description__idx ON apartments USING GIN (lower(description) gin_trgm_ops); CR...
true
eb6c2a707d69cd0c037da84f0315f5efcb82d247
SQL
yungchidanielcho/LeetHub
/nth-highest-salary/nth-highest-salary.sql
UTF-8
700
4.09375
4
[]
no_license
CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT BEGIN RETURN ( # Write your MySQL query statement below. -- Get Salary where rank is N SELECT unique_salary FROM (SELECT unique_salary, -- Create a table of unique salary with rank. Optimize by limiting table length to N ...
true
dbbc43a408da9bb707e6acc610af9151cd1c38be
SQL
EPAMHackathons/2016-mogilev-artezio
/src/main/resources/db/migration/V3__changed_user_table.sql
UTF-8
265
2.703125
3
[]
no_license
-- Alter tables -- Table: user ALTER TABLE "user" ADD COLUMN gender VARCHAR (10) NOT NULL; ALTER TABLE "user" ADD COLUMN birth_date TIMESTAMP; INSERT INTO "user" (login, email, password, gender, birth_date) VALUES ('user', 'user@test.com', '$2a$10$bliv0GnZxtwCELrGYlzV2Oo7BjwCrKrUL2HB9FR7gvAGmIreTdM7O', 'MALE', now()...
true
6fac8e5cfc2e97653ff12cb7100fb0dc313070fb
SQL
eis-group-opensource/jcr
/runtime/database/exigen-jcr-dialect-mssql-base/src/main/java/com/exigen/cm/database/dialect/mssql/sql/TrigerUnstructured.sql
UTF-8
625
3.265625
3
[]
no_license
CREATE TRIGGER %%TRIGGER_NAME%% ON %%USER-NAME%%.%%TABLE-UNSTRUCTURED-PROP%% AFTER INSERT,UPDATE AS IF UPDATE(DOUBLE_VALUE) OR UPDATE(DATE_VALUE) OR UPDATE(BOOLEAN_VALUE) OR UPDATE(LONG_VALUE) UPDATE %%TABLE-UNSTRUCTURED-PROP%% SET STRING_VALUE=(CASE WHEN i.DOUBLE_VALUE IS NOT NULL THEN CAST(i.DOUBLE_VALUE AS VA...
true
48eecf1a3f87d0953a49973ad5b21baaaf9d4c5f
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/01039_mergetree_exec_time.sql
UTF-8
347
2.796875
3
[ "Apache-2.0", "BSL-1.0" ]
permissive
DROP TABLE IF EXISTS tab; create table tab (A Int64) Engine=MergeTree order by tuple() SETTINGS min_bytes_for_wide_part = 0, min_rows_for_wide_part = 0; insert into tab select cityHash64(number) from numbers(1000); select sum(sleep(0.1)) from tab settings max_block_size = 1, max_execution_time=1; -- { serverError 159 }...
true
456f26114fd4596c3235fca522d38abf75611531
SQL
MrPandoyo/parking-system
/src/main/resources/db/migration/V1.0.1.2019042401__Schema_Awal.sql
UTF-8
2,784
3.40625
3
[]
no_license
create table harga ( id varchar(36) not null, amount decimal(19,2) not null, duration_length integer not null, duration_type varchar(255) not null, nama varchar(255), primary key (id) ) engine=InnoDB; create table member ( id varchar(36) not null, alamat varchar(255), foto_ktp varchar...
true
333be9a075dae3502f7b68ec3934b384d0d26805
SQL
skchaudhari903/Wipro-PJP
/RDBMS - SQL - JDBC/DDL/Assignment03/lab_10_03.sql
UTF-8
364
2.90625
3
[]
no_license
CREATE TABLE emp ( id NUMBER(7), last_name VARCHAR2(25) CONSTRAINT ln NOT NULL, first_name VARCHAR2(25), dept_id NUMBER(7), CONSTRAINT emp_pk PRIMARY KEY ( id ), CONSTRAINT emp_fk FOREIGN KEY ( dept_id ) REFERENCES dept ( dept_id ) ); INSERT INTO emp VALUES (...
true
55e04f62a0b40c18c4c363a3320f049daa2f4c95
SQL
cjhqp/pet_shop
/petshop_doc/petshop.sql
UTF-8
5,519
2.59375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: 192.168.7.43 Database: pet_shop -- ------------------------------------------------------ -- Server version 5.1.71 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;...
true
d37166a1c9e41cf71d1126b90dbf4c5c306861f5
SQL
7micle7/TraineeTasks
/Database/DML.sql
UTF-8
452
3.8125
4
[]
no_license
SELECT * FROM Products WHERE ProductName LIKE 'C%'; SELECT * FROM Products WHERE Price = (SELECT MIN(Price) FROM Products); SELECT Price FROM Products INNER JOIN Suppliers ON Products.SupplierID = Suppliers.SupplierID WHERE Country = 'USA'; SELECT SupplierName FROM Products INNER JOIN Suppliers ON Products.Suppl...
true
0a6c9a4273ec4256d2c85c4d125a463a92c162cc
SQL
ehbc221/java-mini-projects
/application java+mysql/application_java_mysql/base de donneé/etude.sql
UTF-8
1,452
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- Client: localhost -- Généré le: Jeu 04 Septembre 2014 à 16:39 -- Version du serveur: 5.6.12-log -- Version de PHP: 5.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
true
d0c8ad3c7dcb104f89d8f6f66f58d11e5d33746d
SQL
DanmarksAdresser/Dawa
/packages/server/psql/schema/navngivenvejkommunedel_postnr_mat_view.sql
UTF-8
1,252
3.890625
4
[ "MIT" ]
permissive
DROP VIEW IF EXISTS navngivenvejkommunedel_postnr_mat_view CASCADE; CREATE VIEW navngivenvejkommunedel_postnr_mat_view AS ((SELECT DISTINCT nvk.id as navngivenvejkommunedel_id, postnummer_id FROM dar1_husnummer_current hn JOIN dar1_darkommuneinddeling_current k ON hn.darkommune_id = k.id JOIN dar1_navngiven...
true
30e1672be6c222ccfcb3b68ee570eaabd88c2dc0
SQL
denvens/bigbay-payment
/doc/sprint7.sql
UTF-8
998
3.21875
3
[]
no_license
/* 20190130 分销关联订单 新增交易号 add by sss */ -- bigbay_sales ALTER TABLE bigbay_distribution_records ADD COLUMN wechatTransactionId VARCHAR(32) default ''; -- bigbay_active_distributions 添加createdAt,updatedAt ALTER TABLE `bigbay_active_distributions` ADD COLUMN `createdAt` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创...
true
b724c8a24d5e9e1245562aea29344e53deadacd0
SQL
raymondyou97/NEU_Coursework
/CS3200/proceduresfunctionstriggers/PrceduresFunctionsTriggers/uservariablesSQL.sql
UTF-8
3,800
3.890625
4
[]
no_license
use world; select @test := 2; -- command to set the value of a variable -- variables not initialized are assumed to be NULL and of date type text set @test := 2; select @test + 1; -- returns 3 -- can set a variable equal to the return of a query select @numB := count(*) from country where name like 'B%'; select @numB...
true
a472551b5da5a897e8be1a86f4ece0e50dcccf41
SQL
fabiomigliorini/MGdb
/SQLs/Produto - Descontinua ou Inativa Variacao.sql
UTF-8
894
3.46875
3
[]
no_license
/* -- VERIFICA SE VARIACAO ESTA ATIVA select * from tblprodutovariacao pv inner join tblproduto p on (p.codproduto = pv.codproduto) where coalesce(pv.inativo, p.inativo) is null and pv.codprodutovariacao in ( 47088 , 16165 , 40301 ) -- VERIFICA SE VARIACAO ESTA DESCONTINUADA select * from tblprodutovariacao pv whe...
true
f1eb57ad17a3a838956e3d114baa446c3439008a
SQL
ppc78229/RateMyRecipe
/sql/schema.sql
UTF-8
1,633
4.3125
4
[]
no_license
/* sql script to create database and tables for Recipe.com. */ /*Creates database*/ DROP DATABASE IF EXISTS recipe; CREATE SCHEMA recipe; /*Uses database recipe*/ USE recipe; /* Create the 'Category' table. */ CREATE TABLE Category( id int NOT NULL AUTO_INCREMENT, category varchar(30) NOT NULL, PRIMARY KEY(id) ); /...
true
fdca05512b57c2cf74a3ebc87eb918e087b8dd1a
SQL
ealevchenko/IDS-RailWay
/sql/Selects/Проверка функций ids.sql
WINDOWS-1251
514
2.578125
3
[]
no_license
use [KRR-PA-CNT-Railway] --select * from [IDS].[get_view_station_status]() --select * from [IDS].[get_view_station_status_of_id](6) --select * from [IDS].[get_arrival_sostav_of_id_outer_way](12) select * from [IDS].[get_view_wagons_of_outer_way](12) select * from [IDS].[get_view_ways_status_of_station](6) -- sele...
true
9091493c992d589afcdf4b7a9d9e844903770fc0
SQL
viz21/stockmanagement
/finance/sql/dailybalance.sql
UTF-8
1,738
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 31, 2017 at 10:05 AM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
016da4aeedd4dc3326c69fd51908e7fd3b5a9f2a
SQL
UMLworker/UMLWork
/sql_script/开课计划.sql
UTF-8
1,776
3.265625
3
[]
no_license
/* SQLyog Ultimate v12.09 (64 bit) MySQL - 5.7.21 : Database - uml_open_course_db ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN...
true
b727e5b1a4b5882edd7f798d6e061aff5f0d9710
SQL
odairpedrosojunior001/UDACITY-DADOS
/order by 4.sql
UTF-8
102
2.65625
3
[]
no_license
SELECT occurred_at,total_amt_usd FROM orders ORDER BY occurred_at DESC,total_amt_usd DESC LIMIT 5;
true
7ba16e7ec090f1d9a3e902c4ec4c8cd1270ec9cc
SQL
wild006/ForumACME
/forumTables.sql
UTF-8
591
3.359375
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS SUJET( id INTEGER NOT NULL AUTO_INCREMENT, nom varchar(50), date DATETIME, user varchar(100), parent INTEGER REFERENCES SUJET(id), INDEX (date), PRIMARY KEY ( id ))ENGINE = innoDB CHARACTER SET utf8 COLLATE utf8_general_ci; CREATE TABLE IF NOT EXISTS MESSAGE( id INTEGER NOT NUL...
true
23bc1e6d5418598fd9977609d3fecc60718cdd22
SQL
OHDSI/Achilles
/inst/sql/sql_server/export/drugera/sqlPrevalenceByGenderAgeYear.sql
UTF-8
1,692
4.0625
4
[ "Apache-2.0" ]
permissive
SELECT c1.concept_id AS concept_id, concat(cast(num_stratum_4 * 10 AS VARCHAR), '-', cast((num_stratum_4 + 1) * 10 - 1 AS VARCHAR)) AS trellis_name, --age decile c2.concept_name AS series_name, --gender num_stratum_2 AS x_calendar_year, -- calendar year, note, there could be blanks ROUND(1000 * (1.0 * num_count_v...
true
718a635d2104add1574a8a83b574014c5aa2ddc3
SQL
Good725/ideabubble-lamp
/application/model/model-20180703173000.sql
UTF-8
31,962
3.15625
3
[]
no_license
/* ts:2018-07-06 17:30:00 */ /* Add the 39 (uTicket) theme */ DELIMITER ;; INSERT INTO `engine_site_themes` (`title`, `stub`, `template_id`, `date_created`, `date_modified`) SELECT '39', '39', (SELECT `id` FROM `engine_site_templates` WHERE `stub` = '04' LIMIT 1), CURRENT_TIMESTAMP, CURRENT_TIMESTAMP FROM `e...
true
c275259c7872cbc2148ad76753065cd771a0edeb
SQL
seungbeomi/development
/java/hibernate/spring-hibernate/src/main/java/book/hibernate3/mapping01/component/script.sql
UTF-8
271
2.578125
3
[]
no_license
DROP TABLE IF EXISTS EMPLOYMENT; CREATE TABLE EMPLOYMENT ( ID BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1), KOR_SURNAME VARCHAR(50), KOR_NAME VARCHAR(50), ENG_SURNAME VARCHAR(50), ENG_NAME VARCHAR(50), FAMILY_ORIGIN VARCHAR(50), PRIMARY KEY(ID) );
true
6f64c95b324f494b54cf657cf0d66e34ce0f46c6
SQL
akbars95/souvenir_project
/src/main/resources/db/stored_procedure/insertSouvenirPhoto.sql
UTF-8
382
2.828125
3
[]
no_license
DROP PROCEDURE IF EXISTS souvenir.insertSouvenirPhoto; DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `insertSouvenirPhoto`(IN souvenir_photo_pathIN VARCHAR(255), IN souvenir_photo_souvenir_idIN INT(11)) BEGIN INSERT INTO souvenir_photos(souvenir_photo_path, souvenir_photo_souvenir_id) VALUES (souvenir_p...
true
f0f37a2355924977c4e56968e5f947142520ff49
SQL
pablo17sanchez/SQLSERVER2008R2
/MIS QUERYS/Crea Mes Tipo Letra.sql
UTF-8
378
2.609375
3
[]
no_license
select CASE n.mes_correspondiente WHEN 1 THEN 'Enero' WHEN 2 THEN 'Febrero' WHEN 3 THEN 'Marzo' WHEN 4 THEN 'Abril' WHEN 5 THEN 'Mayo' WHEN 6 THEN 'Junio' WHEN 7 THEN 'Julio' WHEN 8 THEN 'Agosto' WHEN 9 THEN 'Septiembre' WHEN 10 THEN 'Octubre' WHEN 11 THEN 'Noviembre' WHEN 12 THEN 'Diciembre' End Mes_Corre...
true
4868887a48a22e494f33b85977e2adfaf4da20c3
SQL
lainslie-18/database-exercises
/case_exercises.sql
UTF-8
2,125
4.71875
5
[]
no_license
use employees; -- 1. Write a query that returns all employees (emp_no), their department number, their start date, their end date, and a new column 'is_current_employee' that is a 1 if the employee is still with the company and 0 if not. select emp_no, dept_no, from_date as start_date, to_date as end_date, IF(to_date...
true
442c80b476467c845b62e8703cb317051dcf0ea0
SQL
TheBestProject/whiteboard
/whiteboard/db/getGroupInfo.sql
UTF-8
239
3.390625
3
[]
no_license
select id, name from groups where id = $1 -- select distinct -- users.name, -- groups.id -- from users -- join group_members on users.id = group_members.user_id -- join groups on groups.id = group_members.group_id -- order by groups.id
true
05fe4a74721a50251c3b1ffe866b4963cf0a5b4b
SQL
isgasho/go-admin-1
/docs/sql/go.sql
UTF-8
4,029
3.09375
3
[ "MIT" ]
permissive
/* Navicat MySQL Data Transfer Source Server : 192.168.100.50 Source Server Version : 50722 Source Host : 192.168.100.50:3306 Source Database : go Target Server Type : MYSQL Target Server Version : 50722 File Encoding : 65001 Date: 2019-01-17 09:48:18 */ SET FOREIGN_KEY_CHECKS=0; ...
true
25fd320afdc6068acc01b3993e31f16d9f0c6b87
SQL
sokogfb/tender_managment
/railway.sql
UTF-8
4,265
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.3 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 22, 2012 at 03:00 PM -- Server version: 5.1.50 -- PHP Version: 5.3.9-ZS5.6.0 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHA...
true
c2480f06a275eae3faa23571f85965bd53d8c27f
SQL
crewtool/Face-Recognition
/mysql/init.sql
UTF-8
322
3.3125
3
[]
no_license
USE images_db; CREATE TABLE images ( id int NOT NULL PRIMARY KEY AUTO_INCREMENT, url VARCHAR(300) NOT NULL, people VARCHAR(300) NOT NULL ) PARTITION BY RANGE COLUMNS(id)( PARTITION p0 VALUES LESS THAN (5), PARTITION p1 VALUES LESS THAN (10), PARTITION p2 VALUES LESS THAN MAXVALUE )...
true
e1b43a8e93d0cdecd9ebdf13913ddaf1f26d99d2
SQL
sousa-marta/oop-desafio-fake-insta
/banco_de_dados/oop_desafio.sql
UTF-8
485
3.390625
3
[]
no_license
CREATE DATABASE oop_desafio; USE oop_desafio; CREATE TABLE users ( id INT PRIMARY KEY AUTO_INCREMENT, firstName VARCHAR(50) NOT NULL, lastName VARCHAR(50) NOT NULL, username VARCHAR(50) NOT NULL UNIQUE, encPass VARCHAR(256) NOT NULL ); CREATE TABLE posts ( id INT PRIMARY KEY AUTO_INCREMENT, ima...
true
cd07d3ba9b52df1d6b2e95e4dc20749242d14df9
SQL
ashismo/repositoryForMyBlog
/struts/store/documents/tables/medical_store.sql
UTF-8
23,516
3.25
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.13, for Win32 (x86) -- -- Host: localhost Database: medical_store_final_db -- ------------------------------------------------------ -- Server version 5.5.13 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RES...
true
2521fd56204154b140dcac2549d2bd1f01fdf4cc
SQL
LCQ622/Post-Bar
/bbs的MySQL数据库结构.sql
UTF-8
12,937
3.25
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50721 Source Host : localhost:3306 Source Database : bbs Target Server Type : MYSQL Target Server Version : 50721 File Encoding : 65001 Date: 2019-06-02 10:31:28 */ SET FOREIGN_KEY_CHECKS=0; -- ...
true
8b1c4d186fc0bd10ab85da21f84589f2e38f2158
SQL
meggsimum/sauber-sdi-docker
/db/update-files.d/005_create_metainfo_tables_views.sql
UTF-8
3,846
4.03125
4
[ "MIT" ]
permissive
\c sauber_data CREATE TABLE IF NOT EXISTS station_data.tab_station_metainfo ( idpk_station_metainfo SERIAL PRIMARY KEY, station_code TEXT UNIQUE, profile_url TEXT, image_url TEXT, description TEXT, external_resource TEXT ); GRANT SELECT,INSERT ON station_data.tab_station_metainfo TO app; C...
true
30aa068db53946ba01f5a5328116100b0ba99353
SQL
CopyGithub/tools
/Doll/src/com/cc/table_sql/catch_record.sql
UTF-8
412
2.640625
3
[]
no_license
drop table if exists `catch_record`; CREATE TABLE `catch_record` ( `id` bigint(20) NOT NULL , `created_time` datetime NOT NULL , `updated_time` datetime NOT NULL , `account_id` int(11) NOT NULL , `doll_id` int(11) NOT NULL , `room_id` int(11) NOT NULL , `status` smallint(5) UNSIGNED NOT NULL , PRIMARY KEY (`id`)...
true