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
d234f93fc16148d51c82b96d94e404c05caff952
SQL
oakmanjacob/nickelbank
/init/table/branch.sql
UTF-8
236
2.96875
3
[]
no_license
create table branch (branch_id numeric(8) generated always as identity, address_id numeric(12) not null, type varchar(8) default 'full' not null, primary key (branch_id), foreign key (address_id) references address);
true
f95330157113932b41573bec5e1c960dffd5f3a2
SQL
AmandaFerreiraGomes/SQL_MYSQL
/CONSULTAS/ex002_criando_tbprodutos.sql
UTF-8
3,193
3.5
4
[]
no_license
USE sucos; /* cria-se tbproduto, a qual terá atributos referentes à descrição de cada produto que será inserido */ CREATE TABLE tbProduto ( `CODIGO` VARCHAR(12), /* futuramente será usado como identificador, não podendo se repetir ao longo de novos cadastros */ `NOME` VARCHAR(100), `EMBALAGEM` VARCHAR(20), ...
true
4250eb8d9aaf97f3adbc9718179a3a54527ef97d
SQL
Xiryl/univr
/Bachelor/2017-2018/software-engineering/StoreManager/db/fill.sql
UTF-8
3,067
2.78125
3
[]
no_license
# Material table INSERT INTO MATERIAL VALUES (NULL, "Stoffa"); INSERT INTO MATERIAL VALUES (NULL, "Plastica"); INSERT INTO MATERIAL VALUES (NULL, "Ferro"); INSERT INTO MATERIAL VALUES (NULL, "Metallo"); INSERT INTO MATERIAL VALUES (NULL, "Tela"); # Sport table INSERT INTO SPORT VALUE (NULL, "Calcio"); INSERT INTO SPOR...
true
d66896a211606de7d30d6da608009931915b23c9
SQL
lontok/lmu_sql
/lecture_exercises_variables_prepared_statements_fname_lname.sql
UTF-8
927
3.140625
3
[]
no_license
################# ### VARIABLES ### ################# # Example 1 # Find the most expensive product using the SET variable method # to store the maximum retail price then using the variable in # another SQL statement's WHERE condition # Example 2 # Find the most expensive product using the SELECT variable method # ...
true
2ac2272a3e589339eeb500e19e65e430e0b434ce
SQL
fikridzkr/Learn-BasicLaravel
/belajar-laravel.sql
UTF-8
2,535
3.0625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 07 Nov 2020 pada 16.33 -- Versi server: 10.4.8-MariaDB -- Versi PHP: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
a3277f299caa464a78bd7120a9d04dbfc1ac0c28
SQL
marinfotache/Baze-de-date-I
/chinook - studiu de caz (SQL & tidyverse)/chinook_11_sql_olap.sql
UTF-8
16,800
3.5625
4
[]
no_license
-- ############################################################################ -- Universitatea Al.I.Cuza Iași / Al.I.Cuza University of Iasi (Romania) -- Facultatea de Economie si Administrarea Afacerilor / Faculty of -- Economics and Business Administration -- Colectivul de Informatică Economică / Dept. of ...
true
70ee05dc49323718547a2116e79976a9fd28651a
SQL
Wling12/data-model
/crebas.sql
GB18030
16,215
3.046875
3
[]
no_license
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 2018.03.15 AM 10:38:23 */ /*==============================================================*/ drop table if exists ConLog; drop table if exists...
true
e0ac3be1f76dd3788c76f48e077dffdbda86c921
SQL
dragomirt/lucrare_an_bd_2020
/raport/Local_DB-2021_01_10_12_43_34-dump.sql
UTF-8
9,945
3.15625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.19, for osx10.15 (x86_64) -- -- Host: 127.0.0.1 Database: apartment_exchange -- ------------------------------------------------------ -- Server version 8.0.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_R...
true
f4a43de2bf836a655ffb0752d8f2bab43ba7fd7b
SQL
treenewbi/groot
/transaction-demo/src/main/resources/sql/create_table.sql
UTF-8
2,196
3.390625
3
[]
no_license
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for t_groot_etcd_modify -- ---------------------------- DROP TABLE IF EXISTS `t_groot_etcd_modify`; CREATE TABLE `t_groot_etcd_modify` ( `etcd_modify_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', `etcd_modify_addr` varchar(255) NO...
true
9e94ef6ab107b40c9e71f2f21ce8e45ef27478bb
SQL
Procrat/eva
/migrations/2019-07-28-094607_add_color_to_time_segments/down.sql
UTF-8
347
3.03125
3
[ "Apache-2.0" ]
permissive
ALTER TABLE time_segments RENAME TO old_time_segments; CREATE TABLE time_segments ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name TEXT NOT NULL, start INTEGER NOT NULL, period INTEGER NOT NULL ); INSERT INTO time_segments (id, name, start, period) SELECT id, name, start, period FROM old_time_segments; DRO...
true
0d132578cc838821119795df034af296cb4321b5
SQL
rukundofiston/JavaChatApplication
/chat.sql
UTF-8
3,854
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.10.1 -- http://www.phpmyadmin.net -- -- Client: localhost -- Généré le : Mer 30 Mai 2012 à 14:53 -- Version du serveur: 5.5.20 -- Version de PHP: 5.3.10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
b2088e223860c31c9a7798da49a531b4f58193ca
SQL
SerafimLazuko/epam-lab
/Database Engineering/SQL_Lab_8_Task.sql
UTF-8
674
3.625
4
[]
no_license
ALTER Table Products Add PriceCategory varchar(20); UPDATE Products SET PriceCategory = 'Cheap' WHERE CAST(UnitPrice AS decimal) BETWEEN 0 AND 20; UPDATE Products SET PriceCategory = 'Average' WHERE CAST(UnitPrice AS decimal) BETWEEN 21 AND 40; UPDATE Products SET PriceCategory = 'Expensive' WHERE CAST(UnitPrice A...
true
5b73985a94c0f2678ea302bd5bda8abdef6b2677
SQL
saurabhshukla01/Localhost_database_dump
/saurabh_petition_db.sql
UTF-8
4,311
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 13, 2020 at 06:25 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.2.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
2a8ddc6fa73d0996480cade1894ec74ea8fb734c
SQL
shuki/micha
/db/db.sql
UTF-8
38,504
2.78125
3
[]
no_license
-- -------------------------------------------------------- -- מארח: 127.0.0.1 -- Server version: 5.5.16 - MySQL Community Server (GPL) -- Server OS: Win32 -- HeidiSQL גירסא: 8.1.0.4545 -- -------------------------------------------------------- /*...
true
3f723de6830443f8888cd6c61fd4a971c1abe260
SQL
DimolSPA/Dimol-Fix-Carteras
/Dimol.Carteras/Dimol.Carteras.Database/dbo/Stored Procedures/Procs2/Find_Maxima_Convencional.sql
UTF-8
209
2.734375
3
[]
no_license
 Create Procedure Find_Maxima_Convencional(@mxc_codemp integer, @mxc_mxcid integer) as select count(mxc_mxcid) from maxima_convencional where mxc_codemp = @mxc_codemp and mxc_mxcid = @mxc_mxcid
true
f45699c829c940aad4868f3b5655eac664383c0e
SQL
nastyagurskaya/EYTestTask1
/TestTask1/dbo.CountMedianAndSum.sql
UTF-8
217
3.28125
3
[]
no_license
CREATE PROCEDURE CountMedianAndSum AS SELECT MAX(d.DoubleNum) AS DoubleMedian FROM (SELECT TOP 50 PERCENT DoubleNum FROM FileLine ORDER BY DoubleNum) d; SELECT SUM(CAST(IntNum AS BIGINT)) AS SumOfInt FROM FileLine;
true
9a4cc9e0158478a451af45f2e294ca83e617e234
SQL
Natt7/JINSHANG
/complete/JINSHANG-76/add.sql
UTF-8
3,415
2.96875
3
[]
no_license
create job t_common_dept_insert_q1(zykie) begin dataset file t_common_dept1_dataset ( schema:T_COMMON_DEPT_schema, filename: "/home/natt/syncdata/oraclesyncdata/t_common_dept/insert/insert.csv", serverid: 0, splitter: (block_size: 10000000) ); dataproc syncher t_common_dept_syncher ( inputs:t_common_dept1...
true
d7bd27a77c0960f3ea94892e86cbfbacd70ba36d
SQL
sidsakhadeo/SplitBills
/apartment.sql
UTF-8
2,289
3.109375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 19, 2012 at 07:14 PM -- Server version: 5.5.28 -- PHP Version: 5.4.3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
d8ae47f3445c59052bd7835427dec6e12d4e70d9
SQL
Micheker/ProjetGarde
/crecheurs.sql
UTF-8
8,118
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3308 -- Généré le : Dim 19 avr. 2020 à 19:20 -- Version du serveur : 8.0.18 -- Version de PHP : 7.4.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
true
bd13db2701b3b82e42a8e6f2eb67d08348ce27ff
SQL
Jerry-WangYouJun/vms
/vipManagerSystem/resources/vms.sql
UTF-8
6,632
2.859375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50130 Source Host : localhost:3306 Source Database : vms Target Server Type : MYSQL Target Server Version : 50130 File Encoding : 65001 Date: 2017-07-29 07:05:06 */ SET FOREIGN_KEY_CHEC...
true
5086814191270cbbec72d1ee31d3d4bcc63d168f
SQL
scchess/LabKey
/server/customModules/onprc_ehr/resources/etl/deprecated/Measurements.sql
UTF-8
11,967
3.53125
4
[]
no_license
/* * Copyright (c) 2012-2014 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
true
21bbece6f6d79e76a148880de45d9cf0606bb524
SQL
jeromanm/kronos
/functions/custom-made/carga_archivo/carga_arch$el_ar_cen$53167$biz.sql
ISO-8859-1
22,541
3.125
3
[]
no_license
create or replace function carga_arch$el_ar_cen$53167$biz(x$super number, x$clase number) return number is v$err constant number := -20000; -- an integer in the range -20000..-20999 v$msg nvarchar2(2000); -- a character string of at most 2048 bytes? v$tipo_archivo ...
true
ec57fcaaef41ee1a064465bdb14264cebce06284
SQL
cocodrips/kaggle-talking-data
/query/expanded/merge_test_and_train.sql
UTF-8
380
2.953125
3
[]
no_license
SELECT * FROM ( SELECT 1 AS is_train, index AS click_id, ip, app, device, os, channel, click_time, attributed_time, is_attributed FROM `kaggle.train_with_id` ) UNION ALL SELECT 0 AS is_train, click_id, ip, app, device, os, channel, click_time, NULL AS ...
true
334e844dc85b0f160735fbd7a8cb5dfab3afca42
SQL
kelvinkurniawan/BukuKasJava
/bukukas.sql
UTF-8
3,121
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 05, 2020 at 04:24 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
d23aa131004a43775fed27ce953aff07c9609c52
SQL
hyewon0617/database
/14.oracle_procedure.sql
UTF-8
10,265
3.78125
4
[]
no_license
/* 1. PL/SQL? 오라클의 Procedural Language extension to SQL의 약자 SQL문장에서 변수정의, 조건처리(if), 반복처리(loop, for, while)등을 지원하며 절차형언어(Procedural Language)라고 한다. declare문을 이용하여 정의되고 선언문은 사용자가 정의한다. PL/SQL문은 블럭구조로 되어 있고 PL/SQL자신이 자체 compile엔진을 가지고 있다. 2. PL/SQL의 장점 1) block 구조로 다수의 SQL문을 한번에 oracle db server로 보내서 처리하기...
true
1fe1d026166c25d623baaaab56d358a21036b49e
SQL
fedichkin/kill_dollar
/src/ru/fedichkindenis/moon_2040/bd/query/get_moon_statistics.sql
UTF-8
100
2.671875
3
[]
no_license
select * from moon_2040.game_statistics gs where gs.game = ? having gs.game_date = max(gs.game_date)
true
a42225223de093d38d48d5d98d27fb2c524d8782
SQL
guyuanzh/json2sql
/sql/db_test_create.sql
UTF-8
1,313
3.390625
3
[]
no_license
DROP DATABASE IF EXISTS `db_test`; CREATE DATABASE `db_test` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; GRANT ALL PRIVILEGES ON db_test.* TO 'test'@'localhost'; FLUSH PRIVILEGES; USE `db_test`; CREATE TABLE IF NOT EXISTS `user` ( `guid` BIGINT UNSIGNED NOT NULL COMMENT '用户唯一id', `account` VARCHAR(80) ...
true
59b2f0b2340b0783e93ca07b0c7d15c7a9c4b301
SQL
262734254/IBP.Website
/IBP.Website/02-数据库脚本包/数据表创建脚本/action_info.SQL
GB18030
2,311
3.546875
4
[]
no_license
-- -------------------------------------------------- -- Generated by Enterprise Architect Version 8.0.858 -- Created On : , 01 ʮ, 2011 -- DBMS : SQL Server 2008 -- -------------------------------------------------- IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id('action_info') AND OBJECTP...
true
afe51fd8add8801c17fdfab68e66ba70c2dc2931
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day20/select0315.sql
UTF-8
178
2.703125
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-19T03:15:00Z' AND timestamp<'2017-11-20T03:15:00Z' AND temperature>=30 AND temperature<=80
true
881bdd4dd7d2a4ab4d4efe5425b33ff4dbad03f7
SQL
Alexey8k/MVC_Framework
/ScriptDb/TestDb.sql
UTF-8
842
3.46875
3
[]
no_license
DROP DATABASE IF EXISTS `Test`; CREATE DATABASE `Test`; USE `Test`; CREATE TABLE `User` ( `id` int NOT NULL AUTO_INCREMENT, `login` VARCHAR(25) NOT NULL, `password` VARCHAR(25) NOT NULL, CONSTRAINT PK_User PRIMARY KEY (`id`) ); CREATE TABLE `Order` ( `id` int NOT NULL AUTO_INCREMENT, `userId` int NOT NU...
true
ba84c5b09a279da29e178e2c4a9998721097c4eb
SQL
ibnufuad91/fyp
/localhost.sql
UTF-8
1,852
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.10.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 04, 2013 at 02:41 PM -- Server version: 5.5.20 -- PHP Version: 5.3.10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
6a8403cf5ce3a41921feac3b280c3c7ae8a9a4d2
SQL
H3llHammer/BackEnd-Cine
/scripts/procedures/addEditpeliculas.sql
UTF-8
935
3.28125
3
[]
no_license
use cinema DELIMITER $$ CREATE PROCEDURE peliculasAddOrEdit ( IN _id int, IN _nombre varchar(100), IN _genero varchar(20), IN _duracion varchar(10), IN _sinopsis text, IN _actores varchar(100), IN _directores varchar(100), IN _id_sala int, IN _imagen blob ) BEGIN IF _id = 0 THEN ...
true
e0525187edac44ebebc016837c2d5fc5f1cdc953
SQL
ferpar76/proyecto-Sipe
/Adsi/sipe.sql
UTF-8
65,933
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 14-08-2018 a las 00:50:48 -- Versión del servidor: 10.1.34-MariaDB -- Versión de PHP: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
2b9ab76a21435bfceea2badb8cb1614af8ba9bcb
SQL
Mr-Phoebe/ACM-ICPC
/OJ/Leetcode/Database/262. Trips and Users.sql
UTF-8
335
3.96875
4
[]
no_license
# Write your MySQL query statement below select Request_at as 'Day', ROUND(COUNT(if(a.`Status` <> 'completed',1,null))/COUNT(*),2) as 'Cancellation Rate' from Trips a inner join Users b on a.Client_Id=b.Users_Id and b.Role='client' where b.Banned='No' and a.Request_at>='2013-10-01' and a.Request_at<='2013-10-03' group ...
true
c018fe7b1328af82f9436036980e63feaaff3f5b
SQL
732618078/Growth-path-of-data-analysis
/Mysql/12-索引.sql
UTF-8
1,215
4.09375
4
[]
no_license
SELECT COUNT(*) FROM emp; SELECT * FROM emp WHERE id=101; #用来查看索引是否正在被使用,并且输出其使用的索引的信息。 EXPLAIN SELECT * FROM emp WHERE id=101\G; -- 创建索引 CREATE INDEX 索引名称 ON TABLE(COLUMN[,COLUMN]...); CREATE INDEX salary_index ON emp(salary); -- 删除索引 DROP INDEX 索引名称 ON 表名; -- 查看索引 SHOW INDEX FROM 表名; -- 自动创建索...
true
0a598b1f9948184cf857c1d4ace46caa4b184011
SQL
onizenso/College
/classes/cs342/ClassNotes/example-plsql.sql
UTF-8
395
2.78125
3
[]
no_license
CREATE OR REPLACE FUNCTION topNAvg ( n IN NUMBER ) RETURN NUMBER IS s NUMBER(9,2) := 0.0; p NUMBER(7,2); CURSOR c1 IS SELECT price FROM room ORDER BY price DESC; BEGIN OPEN c1; FOR i IN 1 .. n LOOP fetch c1 INTO p; s := s + p; END LOOP; CLOSE c1; RETURN s / n; COMMIT; EXCEPTI...
true
349f67b627755471929246ffe119a0437dfa1f5d
SQL
altamira/visualstudio
/Sistema de Informação Altamira/EGISSQL.Database/dbo/Stored Procedures/Procs2/pr_montagem_tabela_produto_historico.sql
UTF-8
2,118
2.96875
3
[]
no_license
 ----------------------------------------------------------------------------------- --pr_montagem_tabela_produto_historico ----------------------------------------------------------------------------------- --Global Business Solution Ltda 2004 ---------------------------...
true
6e1fadae72d29a0dc8e9336a7b34fcbdb93c73f6
SQL
alexjdm/balmetal
/sql/db.sql
UTF-8
3,987
3.390625
3
[]
no_license
CREATE TABLE `balmetal_app`.`PRIVILEGIO`( `ID_PRIVILEGIO` INT NOT NULL AUTO_INCREMENT, `CODIGO_PRIVILEGIO` VARCHAR(50) NOT NULL, PRIMARY KEY (`ID_PRIVILEGIO`) ) ENGINE = MyISAM; CREATE TABLE `balmetal_app`.`PERFIL`( `ID_PERFIL` INT NOT NULL AUTO_INCREMENT, `NOMBRE_PERFIL` VARCHAR(30) NULL, PRIMARY KE...
true
9615b432b3b17f142e5ed82d49cb4c653a456e9a
SQL
hrazith/autumn
/_db/procH1BOverSeasPermanentAddressEducationInsert.sql
UTF-8
1,544
2.859375
3
[]
no_license
DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `procH1BOverSeasPermanentAddressEducationInsert`(IN `AppId` INT, IN `OverseasPermanentAddressDateFrom` VARCHAR(100), IN `OverseasPermanentAddressDateTo` VARCHAR(100), IN `StreetAddress` VARCHAR(500), IN `Address2` VARCHAR(500), IN `City` VARCHAR(500), IN `StatePr...
true
4867f5dbe8596e30cc9fd4244c8f1a7560c7f8ca
SQL
jhoanvasquez/ProyectoSaaS
/database.sql
UTF-8
9,320
3.296875
3
[]
no_license
-- -------------------------------------------------------- -- Host: localhost -- Server version: 8.0.23 - MySQL Community Server - GPL -- Server OS: Win64 -- HeidiSQL Version: 10.2.0.5599 -- -------------------------------------------------------- /...
true
4da6073cb7c0e662378afad72890e1c3adc27ef4
SQL
nss-day-cohort-45/PoKi-queries
/SQLQuery4.sql
UTF-8
4,720
4.15625
4
[]
no_license
 --Expected Answer key: https://gist.github.com/AdamSheaffer/8dda90933e63c35bb7dbf585fc7dee71 -- What grades are stored in the database? select * from Grade; -- What emotions may be associated with a poem? select * from Emotion; --How many poems are in the database? select count(id) from poem; -- Sort authors alp...
true
977502369fd3bcdb0cf21fe2f35d344defbf7c37
SQL
dvliman/berita
/resources/migrations/201904171513-add-news-table.up.sql
UTF-8
310
2.921875
3
[]
no_license
CREATE TABLE news ( id SERIAL PRIMARY KEY, title TEXT NOT NULL, image_url TEXT NOT NULL, category TEXT NOT NULL, content TEXT NOT NULL, source_url TEXT NOT NULL UNIQUE, source_name TEXT NOT NULL, published_at TIMESTAMP );
true
2715f8dddfd303c9ab888a4632a6b3ee418032e3
SQL
amina-bright/Wolf-of-George-Street-
/schema.sql
UTF-8
1,536
3.65625
4
[]
no_license
USE WolfOfGeorgeStreetDB; CREATE TABLE User ( username VARCHAR(25), pw VARCHAR(25), firstName VARCHAR(50), lastName VARCHAR(50), email VARCHAR(50), emailUpdates BIT, creationTime DATETIME, PRIMARY KEY(username) ); CREATE TABLE League ( leagueID INT, leagueName VARCHAR(50), size ...
true
de4059f72242d5ebc068f4754ebe8f670fb8da07
SQL
antlr/grammars-v4
/sql/postgresql/examples/expressions.sql
UTF-8
1,853
3.3125
3
[ "PostgreSQL" ]
permissive
-- -- expression evaluation tests that don't fit into a more specific file -- -- -- Tests for SQLVAlueFunction -- -- current_date (always matches because of transactional behaviour) SELECT date(now())::text = current_date::text; -- current_time / localtime SELECT now()::timetz::text = current_time::text; SELECT n...
true
a8aca0a70f92b248de37371b17b935fb0d10d243
SQL
PalmerEk/chat-server
/sql/schema.sql
UTF-8
352
3.34375
3
[]
no_license
DROP TABLE IF EXISTS chat_messages; CREATE TABLE chat_messages ( id bigserial PRIMARY KEY, uname text NOT NULL, role text NOT NULL, text text NOT NULL, room_name text NOT NULL, created_at timestamp with time zone NOT NULL DEFAULT NOW() ); -- Speed up room_name lookup CREATE INDE...
true
9ec38e5ca7e73a156e858b6cc6dcc331452330e4
SQL
NTXpro/NTXbases_de_datos
/DatabaseNTXpro/ERP/Stored Procedures/Procs1/Usp_Sel_Parametro_Pagination.sql
UTF-8
1,915
4.03125
4
[]
no_license
CREATE PROC [ERP].[Usp_Sel_Parametro_Pagination] @Flag BIT, @IdEmpresa INT, @Page INT, @RowsPerPage INT, @SortDir VARCHAR(20), @SortType VARCHAR(30), @RowCount INT OUT AS BEGIN WITH Parametro AS ( SELECT ROW_NUMBER() OVER (ORDER BY --ASC CASE WHEN(@SortType = 'ID' AND @SortDir = 'ASC') THEN PA.ID END ASC...
true
4b65af3b8813263ef2f179e5b7f3bf0680c6541d
SQL
affinitic/clpsbw.db.pgsql
/clpsbw/db/pgsql/script-sql/create_table_clpsbw.sql
UTF-8
5,559
2.953125
3
[]
no_license
-- sql script pour cplsbw -- by affinitic -- 17-02-10 drop table link_experience_institution_porteur; drop table link_experience_institution_ressource; drop table link_experience_institution_partenaire; drop table link_experience_commune; drop table link_experience_ressource; drop table link_experience_theme; drop tab...
true
3cb79001e12234f027c9fee6e8781725551983ca
SQL
lyrandle1/CS371-Project-2-
/api/Project 2.0.sql
UTF-8
5,858
3.96875
4
[]
no_license
use mysql; DROP TABLE IF EXISTS attendance; CREATE TABLE attendance ( attendence_id int(4) NOT NULL, response_datetime varchar(9) DEFAULT NULL, employee_id int(4) DEFAULT NULL, response_type_id char(1) DEFAULT NULL, meeting_id int(4) DEFAULT NULL, attendance_status char(1) DEFAULT NULL ); DROP TABLE IF EX...
true
d006ebf88b7272f4c48f302e25fcd5be71067082
SQL
nhidh99/uitOOAD
/project/db/db_import/quanlikhachsan_hoadon.sql
UTF-8
2,803
2.984375
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: quanlikhachsan -- ------------------------------------------------------ -- Server version 8.0.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
true
e0f50759988ec7ad943ed0629680de4f3c80ef3c
SQL
lonycc/data_admin
/oauth.sql
UTF-8
5,340
3.203125
3
[]
no_license
-- Adminer 4.2.5 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP TABLE IF EXISTS `oauth_access_tokens`; CREATE TABLE `oauth_access_tokens` ( `access_token` varchar(40) NOT NULL COMMENT '获取资源的access_token', `client_id` varchar(80) NOT NU...
true
38ba952316fe413c3bf742c327498e4d52a436a3
SQL
FDTechEvolution/goldshop
/documents/db/roles 260518.sql
UTF-8
2,018
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 26, 2018 at 08:51 AM -- Server version: 10.1.25-MariaDB -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
918d369c3457d293ed38a340b093c3e0de2ef68f
SQL
irrationalgenius/pantry-mac
/src/db/views/guest_dups_cleanup.sql
UTF-8
670
3.625
4
[ "Apache-2.0" ]
permissive
CREATE OR REPLACE VIEW pantry.guests_dups_cleanup AS SELECT g.id, g.status, (g.first_name::text || ' '::text) || g.last_name::text, g.st_address, max(gv.date_visit) AS max FROM pantry.guests g LEFT JOIN pantry.guest_visits gv ON g.id = gv.guest_id WHERE (g.first_name::text IN ( SELECT guests.first_name ...
true
56c81e08d167c3cf663ba7b4234422a75bac17b1
SQL
mysql-oracle/Mastering-Oracle-SQL-and-SQLPlus
/chapter06/06-08.sql
UTF-8
296
2.765625
3
[]
no_license
merge into master_tab m using delta_tab d on (m.pid = d.pid) when matched then update set m.sales = m.sales+d.sales , m.status = d.status delete where m.status = 'OBS' when not matched then insert values (d.pid,d.sales,'NEW'); select * from master_tab;
true
a5c902842d3f75d64e985f9667c86e08e6507a0e
SQL
linshuguang/grammars
/sparksql/src/test/resources/db/migration/V20180417__db_create.sql
UTF-8
700
3.03125
3
[]
no_license
-- ----------------------------------------------------- -- Table `card_info`.`idempotent_control` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `idempotent_control` ( `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, `instruction_id` BIGINT(20) UNSIGNED NOT NULL, `pay_channe...
true
817ef4d0c9c151c1fc72e7f28cf765c89ad5388e
SQL
AndersonSAndrade/api_cadastro
/src/main/resources/db/migration/V1_0__cria_usuario_schema.sql
UTF-8
561
2.78125
3
[]
no_license
/* * Copyright (c) 2020. Olá todos os direitos reservados para Anderson S. Andrade. * Local do Arquivo: (/Users/andersons.andrade/Desktop/JAVA/SPRING/DEVELOPER/CADASTRO/api/src/main/resources/db/migration/V1_0__cria_usuario_schema.sql) * Projeto: api -> api -> V1_0__cria_usuario_schema.sql * Criador: andersons.andr...
true
c9457f41d97b6e820b7805cab40d7bbb686a752a
SQL
Domainsun/parker
/spider/models/tables.sql
UTF-8
1,475
3.328125
3
[]
no_license
CREATE SCHEMA `parker` DEFAULT CHARACTER SET utf8mb4 ; CREATE TABLE `download_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `video_id` int(11) NOT NULL COMMENT '视频id', `video_url` varchar(200) NOT NULL COMMENT '播放url', `video_title` varchar(200) NOT NULL COMMENT '视频标题', `video_size` int(11) NOT NULL DEFAULT ...
true
a498f9b08c9a19c88e877f4bcab43e780ea6635b
SQL
JorgeAntonio/Blog
/database/blog_practica.sql
UTF-8
5,682
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 18-06-2021 a las 08:08:15 -- Versión del servidor: 10.4.17-MariaDB -- Versión de PHP: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
99c3638f4cfe85b7b5b5a56ebeca8100cc2fa719
SQL
theCreator19/SQL
/Weather Observation Station 7.sql
UTF-8
173
2.546875
3
[]
no_license
# Weather Observation Station 7 # HackerRank Problem Solved using MYSQL. /* Enter your query here. */ select DISTINCT CITY from STATION WHERE CITY REGEXP '[aeiouAEIOU]$';
true
510e8d1403618cb8f8f122da39f210dd23152b8c
SQL
Tenecia/portfolio
/portfolio/PostDeploymentScript.sql
UTF-8
1,376
3.140625
3
[]
no_license
/* Post-Deployment Script Template -------------------------------------------------------------------------------------- This file contains SQL statements that will be appended to the build script. Use SQLCMD syntax to include a file in the post-deployment script. Example: :r .\myfile.sql ...
true
644f49919693e9917c5e6d49d6a784228f5171d0
SQL
ChuckLinsGit/GMS
/gmsdb.sql
UTF-8
19,892
3.34375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Type : MySQL Source Server Version : 50719 Source Host : localhost:3306 Source Schema : gmsdb Target Server Type : MySQL Target Server Version : 50719 File Encoding : 65001 Date: 30/06/2019 0...
true
cb44c36cf25ef3af2e7078d8ff13a73138fe32a9
SQL
mtcarvalho/crawler-noticias
/news-schema/mysql.sql
UTF-8
5,556
3.3125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.21, for Win64 (x86_64) -- -- Host: localhost Database: news -- ------------------------------------------------------ -- Server version 5.7.21-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*...
true
b4ead0adb8de4e74a5e2985848eaafcc8d6ec2b7
SQL
LeZuse/catweazle
/database/sql/triggers/ad_log_prices.sql
UTF-8
554
2.8125
3
[]
no_license
delimiter ;; CREATE TRIGGER ad_log_prices AFTER DELETE ON catweazle2011.prices FOR EACH ROW BEGIN DECLARE change_category INT(11); DECLARE field_changed_name VARCHAR(128); SET change_category = 2; SET field_changed_name = get_price_type(OLD.price_type_id, OLD.minimum_qty); INSERT INTO catweazle2011.change...
true
29b3f9bd76a5325de0b530abdb9800ba82aacd89
SQL
chenshanghao/LeetCode_Database
/牛客网SQL题库/41_针对上面的salaries表emp_no字段创建索引idx_emp_no/41.sql
UTF-8
713
4.4375
4
[]
no_license
# 针对上面的salaries表emp_no字段创建索引idx_emp_no -- 针对salaries表emp_no字段创建索引idx_emp_no,查询emp_no为10005, 使用强制索引。 CREATE TABLE `salaries` ( `emp_no` int(11) NOT NULL, `salary` int(11) NOT NULL, `from_date` date NOT NULL, `to_date` date NOT NULL, PRIMARY KEY (`emp_no`,`from_date`)); create index idx_emp_no on salaries(emp_no); -- ...
true
a7c96dc80c4b9876529053f03a5432aabb350767
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day13/select0430.sql
UTF-8
178
2.625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-12T04:30:00Z' AND timestamp<'2017-11-13T04:30:00Z' AND temperature>=41 AND temperature<=73
true
a309ac619f9750dc801c3ac253a9c827ae1ad453
SQL
Shahrene/Code-alongs
/05-database/flat_file_db_goodfoodhunting/goodfoodhunting.sql
UTF-8
544
2.640625
3
[]
no_license
CREATE DATABASE goodfoodhunting; CREATE TABLE dishes ( id SERIAL4 PRIMARY KEY, name VARCHAR(200), img_url VARCHAR(400) ); SELECT name, img_url FROM dishes; SELECT id, name, img_url FROM dishes; SELECT * FROM dishes; INSERT INTO dishes (name, img_url) VALUES ('jelly', 'http://www.kosovarja.eu/media/kosovarja.eu...
true
a72db5ad355fcad38cf49d1ffdf3867ef4a5c0dd
SQL
AvareeWar/SQL_Training
/SQL_QUERY/Asian_Population.sql
UTF-8
392
4.0625
4
[]
no_license
--Given the CITY and COUNTRY tables, query the sum of the populations of all cities where the CONTINENT is 'Asia'. -- --Note: CITY.CountryCode and COUNTRY.Code are matching key columns. -- --pics here: https://www.hackerrank.com/challenges/asian-population/problem SELECT SUM(CITY.POPULATION) FROM CITY, COUNTR...
true
9721c0425397413c8ad51d187fcc5e90d09f2636
SQL
erwinmacaraig/perl-cig-prj
/db_setup/original/tblPMS_MassPayHolds.sql
UTF-8
500
2.8125
3
[]
no_license
DROP TABLE tblPMS_MassPayHolds; # CREATE table tblPMS_MassPayHolds ( intHoldID INT NOT NULL AUTO_INCREMENT, intPMSHoldingBayID INT NOT NULL, curHold decimal(16,2) default 0, intMassPayHeldOnID INT DEFAULT 0, intRealmID INT DEFAULT 0, intHoldSt...
true
1892965edae856c8b5337d898c9692b191c6f863
SQL
DesignerAndDeveloper/Doctor-App
/doctorappDB.sql
UTF-8
43,722
3.09375
3
[]
no_license
/* SQLyog Enterprise Trial - MySQL GUI v8.05 MySQL - 5.5.5-10.4.6-MariaDB : Database - Docto ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */...
true
bfffc8db8afca747b77ba07c46b16d56c57c4ed8
SQL
niteen11/DataAnalyticsAcademy
/SQL/hospital_database/assignments/ex_04_create_script.sql
UTF-8
2,795
4.125
4
[]
no_license
DROP TABLE IF EXISTS Prescribes; CREATE TABLE Prescribes ( Physician INTEGER NOT NULL, Patient INTEGER NOT NULL, Medication INTEGER NOT NULL, Date TIMESTAMP NOT NULL, Appointment INTEGER, Dose VARCHAR(30) NOT NULL, PRIMARY KEY(Physician, Patient, Medication, Date), CONSTRAINT fk_Prescribes_Physicia...
true
889172920605ffc09b65ba188951d5498cd08957
SQL
RA1NO3O/JspTest
/Dweb/WebContent/JDBC/Nov14th.sql
UTF-8
1,161
3.6875
4
[]
no_license
DROP database `db_student`; CREATE DATABASE `db_student`; use `db_student`; CREATE TABLE `Student`( `s_id` varchar(30) not null primary key, `s_name` varchar(30) not null, `s_birth` date not null, `s_sex` char(2) check(`s_sex`='男' or `s_sex`='女') not null )DEFAULT CHARSET=utf8; INSERT INTO `Student`(`s_id`,`s_name`...
true
e055eeec5ead4746853c5dc9c61fd65b6eba69c7
SQL
cardosoGui/PI-back-end
/Repository/Scripts/Procedures/spDeleteProduct_20190918.sql
UTF-8
104
2.578125
3
[]
no_license
CREATE PROCEDURE spDeleteProduct @Id UNIQUEIDENTIFIER AS UPDATE Product SET IsDeleted = 1 WHERE Id = @Id
true
1f9845d4bd70a90d3b4f15018770e1c340b530b8
SQL
DZubiaga/PL-SQL
/MIO.sql
UTF-8
274
2.609375
3
[ "Apache-2.0" ]
permissive
CREATE OR REPLACE PROCEDURE VISUALIZAR_DATOS_CENTRO(P_ID IN NUMBER, NUMERO OUT NUMBER, T_CURSOR OUT Sys_Refcursor) IS BEGIN SELECT COUNT(*) INTO NUMERO FROM TRABAJADORES WHERE IDCENTRO = P_ID; OPEN T_CURSOR FOR 'SELECT * INTO T_CURSOR FROM CENTROS WHERE ID = P_ID'; END;
true
cd84e64abd7bf57e8a38ee24731bb0f47fb4559b
SQL
EdgarGar/A01021730_bda18
/Evaluaciones/1.Evaluacion/primeraEvalución.sql
UTF-8
2,964
4.21875
4
[]
no_license
--Primera parate de creacion de tabla CREATE TABLE LOG_FILM( idPelicula int NOT NULL, tipo VARCHAR(15) NOT NULL, film_id int NOT NULL, last_value TEXT, new_value TEXT, timestamp TIMESTAMP DEFAULT CURRENT_TIME, PRIMARY KEY(id) ); --Procedur de la tabla create procedure UPDATE_LOG( IN id INT, new_value ...
true
142f899ccaa2ebaaa071801b0aa6f57313738874
SQL
Clayakn/helo
/db/read_posts_nosearch_nouser.sql
UTF-8
118
2.828125
3
[]
no_license
SELECT username, profile_pic, title FROM users INNER JOIN posts ON users.id = posts.author_id WHERE NOT users.id = $1;
true
c3984c74085a45fec18434bea266c6953bd6a61e
SQL
shpunishment/spring-cloud-learning
/spring-cloud-seata-test/account-service/src/main/resources/seata-account.sql
UTF-8
2,124
3.359375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : local 5.7.26 mysql Source Server Type : MySQL Source Server Version : 50726 Source Host : localhost:4306 Source Schema : seata-account Target Server Type : MySQL Target Server Version : 50726 File Encoding : 6...
true
22ecca412e41d29a288b6497f1f9e80e126bb690
SQL
phili67/ecclesiacrm
/src/mysql/install/languages/vi_VI.sql
UTF-8
8,400
2.75
3
[ "MIT" ]
permissive
INSERT INTO `config_cfg` (`cfg_id`, `cfg_name`, `cfg_value`) VALUES (64, 'sDistanceUnit', 'kilometers'), (65, 'sTimeZone', 'Asia/Ho_Chi_Minh'), (100, 'sPhoneFormat', '999 9999999'), (101, 'sPhoneFormatWithExt', '99 999 9999999'), (102, 'sDateFormatLong', 'd/m/Y'), (103, 'sDateFormatNoYear', 'd/m'), (105, 'sDateTimeForm...
true
ea3da3143586a874e2c57476a051800ba6d99cc0
SQL
aminegongi/Wasp_E-Commerce
/INTG 27 20H/bweb (9).sql
UTF-8
32,093
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : sam. 27 avr. 2019 à 18:41 -- Version du serveur : 5.7.24 -- Version de PHP : 7.2.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
true
881e3445cc2b3a6a2f260f68e69c070003d95ac8
SQL
netzlabor-coding-gmbh/nl_auth
/ext_tables.sql
UTF-8
466
2.515625
3
[]
no_license
# # Add SQL definition of database tables # # # Table structure for table 'fe_groups' # CREATE TABLE fe_groups ( tx_nlauth_user_redirectPid TINYTEXT ); # # Table structure for table 'fe_users' # CREATE TABLE fe_users ( tx_nlauth_user_redirectPid TINYTEXT, tx_nlauth_user_confirmedAt INT(10) UNSIGNED NOT NULL DEF...
true
780d4650216f96dedd25eb4585b3ffdfea1d42ed
SQL
Jesus-Acevedo-Cano/holbertonschool-web_back_end
/0x0C-MySQL_Advanced/6-bonus.sql
UTF-8
430
3.59375
4
[]
no_license
-- Add bonus -- Adds a new correction for a student DELIMITER $$ CREATE PROCEDURE AddBonus( IN user_id int, IN project_name varchar(255), IN score float ) BEGIN INSERT INTO projects (name) SELECT project_name FROM DUAL WHERE project_name NOT IN (SELECT name FROM projects); INSERT INTO corrections (user_id,...
true
ba5c6d486f302c3616826cc392c8c7f29f76c23d
SQL
WiharlleyWill/TestePratico-Wiharlley
/Banco de Dados + Instruções/teste_pratico_bd.sql
UTF-8
8,101
2.90625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 22-Jun-2019 às 18:29 -- Versão do servidor: 10.3.15-MariaDB -- versão do PHP: 7.1.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
true
fab0df4639a2f2d613e05736d966bcdb95d6c3ad
SQL
JJPietras/hospital-db-ads
/Dodatki/Anomalie/PhantomRead/T-SQL/T-SQL_Phantom_Read_Reading.sql
UTF-8
471
3.1875
3
[]
no_license
USE Testing; -- DBCC USEROPTIONS; BEGIN TRAN; SELECT * FROM users WAITFOR DELAY '00:00:10' SELECT * FROM users COMMIT TRAN; -- Preventions: -- Serializable isolation level SET TRANSACTION ISOLATION LEVEL SERIALIZABLE; -- SET TRANSACTION ISOLATION LEVEL READ COMMITTED; -- Range Share Lock for whole t...
true
f6789c92c98ed0589194eb6f01931406cb41960f
SQL
wvanheemstra/core
/apps/stories/models/tables/structures/sql/tbl_story.sql
UTF-8
1,284
3.234375
3
[ "MIT" ]
permissive
/* Navicat MySQL Data Transfer Source Server : wvanheem_core_local Source Server Version : 50509 Source Host : 127.0.0.1 Source Database : core Target Server Version : 50509 File Encoding : utf-8 Date: 06/29/2012 12:30:35 PM */ SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; -- ...
true
51f640e3dfed380426b498fc5661e45c303321a5
SQL
shivendra2015iiit/Think_big_CMS
/database/betateam.sql
UTF-8
1,870
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 02, 2017 at 10:05 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
01d00130d1f22141c4f7071227d9718325fa9c6a
SQL
OzuKaGT/adsi2142329b
/PORTAFOLIO/Modelo/portafolio.sql
UTF-8
2,361
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 08-10-2021 a las 06:48:54 -- Versión del servidor: 10.4.17-MariaDB -- Versión de PHP: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
3515cf1708eea73b4e8fd7ad6e439a3b4b87ee6c
SQL
pavel-voinov/oracle-dba-workspace
/scripts/perf/apply_sql_profile.sql
UTF-8
452
2.796875
3
[ "MIT" ]
permissive
ACCEPT task_name PROMPT "Enter SQL Tuning task name: " ACCEPT profile_name PROMPT "Enter SQL Profile name: " DECLARE l_sql_tune_task_id VARCHAR2(200); BEGIN l_sql_tune_task_id := DBMS_SQLTUNE.accept_sql_profile ( task_name => '&task_name', name => '&profil...
true
a6d9470a31bb5601a3236dba6f0237101efabf76
SQL
emil14/remembro
/sql/000001_init.up.sql
UTF-8
843
3.578125
4
[]
no_license
CREATE TABLE user ( user_id SERIAL PRIMARY KEY, email VARCHAR(32) UNIQUE NOT NULL, password VARCHAR(32) NOT NULL ); CREATE TABLE record ( record_id SERIAL PRIMARY KEY, content VARCHAR(255) NOT NULL, created_at DATE NOT NULL, reminders timestamp [] ); CREATE TABLE tag ( tag_id SERIAL PRIM...
true
24f7caa5c6cf8a65013e8d58906fb1284a4ab356
SQL
yj-park/B90M2T1
/DB-Script/script_member.sql
UTF-8
366
3.03125
3
[]
no_license
create table tb_member ( id varchar2(50) not null, password varchar2(20) not null, name varchar2(20) not null, mobile_no varchar2(11), reg_date date default sysdate constraint pk_member primary key (id)) select * from TB_MEMBER insert into tb_member ( id, password, name, mobile_no) values( 'root@naver.com...
true
1140f5a87fed3fb2d2c9c1c1d8e1d9d65ccba6e4
SQL
lsmoriginal/Projects
/Majong/majong_schema.sql
UTF-8
3,321
3.25
3
[]
no_license
CREATE TABLE store( sname VARCHAR(20) PRIMARY KEY, sarea VARCHAR(20), sphone NUMERIC ); CREATE TABLE pizza( pcode NUMERIC PRIMARY KEY, pname VARCHAR(20), psize NUMERIC ); CREATE TABLE sells( sname VARCHAR(20), pcode NUMERIC, sprice NUMERIC, PRIMARY KEY(sname, pcode), FOREIGN KEY(sname) REFERENCES store(sna...
true
743f3f79e9b932dd83492e000d69a4d564e3ea5f
SQL
jorjomir/PHP-Web-Development
/6. Database Relations and design/Employee Address.sql
UTF-8
205
3.5625
4
[]
no_license
select employees.employee_id, employees.job_title, employees.address_id, addresses.address_text from employees inner join addresses on employees.address_id=addresses.address_id order by address_id limit 5
true
03e7ce8a4b753b85d9f74f0872be36319617cbf8
SQL
svwriting/This-is-CS50x
/pset7/movies/12.sql
UTF-8
668
3.921875
4
[]
no_license
-- write a SQL query to list the titles of all movies in -- which both Johnny Depp and Helena Bonham Carter starred. -- Your query should output a table with a single column for the title of each movie. -- You may assume that there is only one person in the database -- with the name Johnny Depp. -- You may...
true
2d4faa154eaa2cff7f2c255742441c4cc111b8cb
SQL
jorki02/Project
/src/main/resources/database.sql
UTF-8
3,140
3.21875
3
[]
no_license
-- Table: users CREATE TABLE users ( password character varying(255) NOT NULL, username character varying(255), id serial NOT NULL ); -- Table: roles CREATE TABLE roles ( id INTEGER NOT NULL, name character varying(255) NOT NULL ); -- Table: user_roles CREATE TABLE user_roles ( user_id integer NOT NULL...
true
68268dc016a6db57716eeb6f10a13607304d48ee
SQL
rezaprimasatya/TrainingBTPN
/hive/hql-assesment/exercises_DataDefinitionAndDataTypes/DDL.sql
UTF-8
835
3.25
3
[]
no_license
CREATE TABLE `movies` ( `id` int NOT NULL AUTO_INCREMENT, `title` varchar(100) CHARACTER SET ucs2 COLLATE ucs2_general_ci NOT NULL, `director_id` int DEFAULT NULL, `copyright_year` year DEFAULT NULL, `length` time DEFAULT NULL, `genre_id` int DEFAULT NULL, `category_id` int DEFAULT NULL, `rating` decima...
true
7ab786f38b9959dbdd0a220c2bbe1f833e1b79eb
SQL
willianmesko/Utilidades-Java-Servlets
/src/sql.sql
UTF-8
2,384
3.546875
4
[]
no_license
CREATE SEQUENCE eventosequence INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 20 CACHE 1; ALTER TABLE eventosequence OWNER TO postgres; CREATE TABLE eventos ( id bigint NOT NULL DEFAULT nextval('eventosequence'::regclass), descricao character varying(500), dataevento character varyi...
true
e727cbc2a559a146351ef8cc2fac4f9e33878c95
SQL
garryck-davies/gmrt
/db/create_cart.sql
UTF-8
90
2.515625
3
[]
no_license
create table cart( cart_id serial primary key, item_id integer references items(item_id) )
true
616f7b3b0478e987724c4d5b83bc9b7114bbae31
SQL
andreimladin/studbox
/src/main/db/tables/year.sql
UTF-8
576
3.46875
3
[]
no_license
USE studbox; DROP TABLE IF EXISTS Year; CREATE TABLE Year ( ObjectId INTEGER NOT NULL, ProfileId INTEGER NOT NULL, Name VARCHAR(150) NOT NULL, ViewNo INTEGER NOT NULL DEFAULT 0, OwnerId INTEGER NOT NULL, CreationDate DATETIME NOT NULL, LastModifiedDate DATETIME NULL DEFAULT NULL, PRIMARY KEY (Object...
true
e8176f7e98029ae1b208e3f591e9c756f7729098
SQL
kevintran95/employee-tracker
/db/seeds.sql
UTF-8
846
2.8125
3
[]
no_license
INSERT INTO departments (departments_name) VALUES ("Executive Staff"), ("Engineering"), ("Legal"), ("Finance"), ('Sales'); INSERT INTO role (title, salary, departments_id) VALUES ("Chief Executive Officer", 300000, 1), ("Head of Engineering", 200000, 2), ("Software ...
true
c3d74f79c20b598749474ba5f4781174d0b3988f
SQL
cfanpnk/launchschool
/backend/database/exercises/subqueries_and_more/schema.sql
UTF-8
492
3.8125
4
[]
no_license
CREATE TABLE bidders ( id SERIAL PRIMARY KEY, name TEXT NOT NULL ); CREATE TABLE items ( id SERIAL PRIMARY KEY, name TEXT NOT NULL, initial_price numeric(6, 2) NOT NULL, sales_price numeric ); CREATE TABLE bids ( id SERIAL PRIMARY KEY, bidder_id INTEGER NOT NULL REFERENCES bidders(id) ON DELETE CASCAD...
true
f1832414dc20e024817dc9d5b03f2fd242ca0663
SQL
thiovan/Simple-Realtime-Chartjs
/chartjs.sql
UTF-8
1,502
3.09375
3
[]
no_license
-- -------------------------------------------------------- -- Host: localhost -- Server version: 5.7.19 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 9.4.0.5125 -- -------------------------------------------------------- /*...
true
5bf9d612204986d4786ae2e6a11a8909d12b1d03
SQL
ayoubHam2000/fs_licence
/s6_repository/sql/plsqlcodes/50/ep32 cursor-examples.sql
UTF-8
679
3.28125
3
[]
no_license
set serveroutput on set autoprint off --%NOTFOUND %FOUND %ROWCOUNT %ISOPEN /* ROWCOUNT : number of fetched elements ISOPEN : ewturn True if the cursor is open NOTFOUND : return True if the cursor not pointe on a element FOUND : return True if the cursor pointe on a element */ -- for cursor declare CURSOR c_c...
true
3cc72b2103f89e2de4cfc9751e6e929ecf1bd334
SQL
Stefan365/kosvopo
/script/kosvopo7.sql
UTF-8
30,174
3.15625
3
[]
no_license
-- Adminer 4.1.0 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP DATABASE IF EXISTS `kosvopo7`; CREATE DATABASE `kosvopo7` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_slovak_ci */; USE `kosvopo7`; DROP TABLE IF EXISTS `a_change`; CREA...
true