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
6f5af386142fc478776ac28ad786c570329127ee
SQL
Balk928/CabRido
/ecab.sql
UTF-8
5,864
3.1875
3
[]
no_license
-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.0.51b-community-nt /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_C...
true
02bf82e941db4dd7a770ef9d630d8618a7041ea9
SQL
Rola-Ahmed/cmpd-traffic-helper
/cmpd_accidents/resources/db/mysql_create_accidents.sql
UTF-8
662
2.65625
3
[ "MIT" ]
permissive
-- Seed script for MySQL SQLAlchemy table creation example -- Columns are as varchar from service response text/xml, process if needed as specific types CREATE DATABASE `cmpd_accidents`; CREATE TABLE `cmpd_accidents`.`accidents` ( `EventNo` VARCHAR(150) NOT NULL, `XCoordinate` VARCHAR(150) NULL, `YCoordinate` VAR...
true
0f0fad723192307c4f7c4de2c6bfb2e4eb08867a
SQL
dizhu2341/sun
/O4Src/svr_tradesettle/day/delfun.sql
UTF-8
498
3.703125
4
[]
no_license
DELETE FROM QS_TFLOWTRANSACTION T WHERE T.FUND_ID=-1 AND T.MARKET_GROUP_NO=&1 AND T.FLOW_ID=&2 AND T.FUNC_ID=&3 AND EXISTS (SELECT 1 FROM (select T1.MARKET_GROUP_NO,min(t1.liquidate_date) liquidate_date from qs_tmarketgroup t1 where t1.market_group_no=&1 or &1 = -1 GROUP BY T1.MARKET_GROUP_NO order by t1.market_gro...
true
4f03728b43e6095c286d31881f348543c6332b65
SQL
ysquareimperial/alumni-server
/src/models/alumni.sql
UTF-8
10,107
2.9375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 09, 2021 at 02:55 PM -- 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
c1faee3a3979b0095ed7aefb214f2ccd69aa085f
SQL
AbdeSN/indecis
/indecis.sql
UTF-8
4,662
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Oct 05, 2017 at 04:17 PM -- Server version: 5.7.19 -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
b2e88ad03721e8e7a4b2dea8803140ecaa78e1b7
SQL
radani4k/lesson
/todos/backup.sql
UTF-8
693
3.46875
3
[]
no_license
CREATE DATABASE todo_db; CREATE TABLE `users` ( `id` INT NOT NULL AUTO_INCREMENT, `login` VARCHAR(20) NOT NULL, `password` VARCHAR(32) NOT NULL, PRIMARY KEY (`id`), UNIQUE (`login`) ); INSERT INTO `users` (`login`, `password`) VALUES ('admin', md5('admin')); SELECT `id`, `login`, `password` FROM `users`; ...
true
a9363365c01242231dff6b5cae3aaac413bb477c
SQL
gxb415/Squadbuyer
/db/schema.sql
UTF-8
2,033
4.53125
5
[]
no_license
DROP DATABASE IF EXISTS usercampaigns_db; CREATE DATABASE usercampaigns_db; USE usercampaigns_db; /* Creates table for Users */ CREATE TABLE Users ( UserId INTEGER AUTO_INCREMENT, UserName VARCHAR(255) NOT NULL, UserType VARCHAR(255) NOT NULL, Email VARCHAR(255) NOT NULL, ZipCode INTEGER(10) NOT N...
true
66bde6ff5a3c456b67452daefc4538ab61104dc5
SQL
VinayagamD/SQLTraining
/SQL Basics/CTE/intialize.sql
UTF-8
533
3.25
3
[]
no_license
CREATE SCHEMA cte_example; USE cte_example; DROP TABLE employee; CREATE TABLE employee( emp_id INT NOT NULL PRIMARY KEY, first_name VARCHAR(50) NOT NULL, last_name VARCHAR(50) NOT NULL, manager_id INT NULL ); INSERT INTO employee VALUES (1, 'Ken', 'Thompson', NULL), (2, 'Terri', 'Ryan', 1), (3, 'Rob...
true
3c927729b82cede220371f375324e3455a12b66b
SQL
mcastro0727/Project-2-Bucket-Besties
/models/schema.sql
UTF-8
1,334
3.484375
3
[]
no_license
DROP DATABASE IF EXISTS bucket_besties_db; CREATE DATABASE bucket_besties_db; USE bucket_besties_db; CREATE TABLE Users ( id int NOT NULL AUTO_INCREMENT, firstName VARCHAR (100) NOT NULL, lastName VARCHAR (100) NOT NULL, username VARCHAR (200) NOT NULL, email VARCHAR (200) NOT NULL, lat VARCHAR (100) NOT NULL, lon...
true
5e0281a2bc2dd181abc5389d58d77a83f7b8f6e4
SQL
ApostleDreSong/odyssey
/database/odyssey.sql
UTF-8
2,683
2.515625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.21, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: odyssey -- ------------------------------------------------------ -- Server version 8.0.21 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!...
true
384fd1b945c67f15494f537d4fc10f4b35c6cff1
SQL
laurenoncoffee/TalentCloud
/public_html/tc/sql/24.0.0/insert/base_content_evidence_and_job_poster.sql
UTF-8
10,492
2.765625
3
[ "MIT" ]
permissive
INSERT into base_content (base_content_type_id, base_content_key, base_content_value, base_content_locale_id) VALUES /*Evidence*/ (1,'jobApplicationPositionLabel','For the position of:',1), (1,'jobApplicationPositionLabel','pour le poste de:',2), (1,'applicant-evidence__skill-declaration-title','My Skill Declaration...
true
02bd2f1aabb1ee4bbdbfa41f9576dc2addcec1c1
SQL
caiofior/fioriechiavi.it
/install/data/schema/taxa_attribute.sql
UTF-8
342
2.890625
3
[]
no_license
CREATE TABLE `taxa_attribute` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Id of taxa attribute', `name` varchar(100) NOT NULL COMMENT 'Taxa attribute name', `description` text COMMENT 'Taxa attribute desciption', PRIMARY KEY (`id`), UNIQUE KEY `name_UNIQUE` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 CO...
true
fc68e8d7e5e2927c21f940ca261fc46e5147163b
SQL
hujikol/Tugas-PBO
/Latres/praktikum.sql
UTF-8
3,916
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 01 Bulan Mei 2020 pada 09.15 -- Versi server: 10.4.6-MariaDB -- Versi PHP: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
de1c323a60f651f037a00a6fe07a8441ad1a28bf
SQL
shatimur/Database_geekbrains
/fulldb-23-12-2019-10-47-beta.sql
UTF-8
328,906
2.90625
3
[]
no_license
-- Generation time: Mon, 23 Dec 2019 10:47:30 +0000 -- Host: mysql.hostinger.ro -- DB name: u574849695_22 /*!40030 SET NAMES UTF8 */; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_C...
true
32937829c737bcc9428c97fb57273307baebd482
SQL
radtek/abs3
/sql/mmfo/bars/ForeignKey/chklist.sql
UTF-8
972
2.890625
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/Bars/ForeignKey/CHKLIST.sql =========*** Run *** PROMPT ===================================================================================== PROMPT *** Create constrain...
true
2f0bd09bf3447a55f9ceeda1bdbcc85292f5831f
SQL
MeijiPham/csc200
/sqlite/multi_sql/music_table.sql
UTF-8
519
3.140625
3
[]
no_license
CREATE TABLE "Artist" ( "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE, "name" TEXT) CREATE TABLE "Album" ( "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE, artist_id INTEGER, "title" TEXT) CREATE TABLE "Genre" ( "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE, "na...
true
36ed49dd9a164175c14c608177733f10f0504d13
SQL
elmasoki/xt_scripts
/sql_plsql_obj.sql
UTF-8
570
3.359375
3
[]
no_license
col owner for a10 col object_name for a30 col text for a120 select a.inst_id ,a.SQL_ID ,p.owner,p.object_name ,s.line ,rtrim(s.text,chr(10)) text from gv$sqlarea a left join dba_procedures p on a.PROGRAM_ID=p.OBJECT_ID left join dba_source s ...
true
4a2a5a1510d2151b30e2133de9891216189e585c
SQL
wanghaogit/yuemee
/sql/base/main/07-admin.sql
UTF-8
3,042
3.4375
3
[]
no_license
/** * 阅米数据库初始化脚本 * Author: eglic * Created: 2018-2-19 */ DROP TABLE IF EXISTS `rbac_admin`; CREATE TABLE `rbac_admin` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '用户ID', `user_id` INT UNSIGNED NOT NULL DEFAULT 0 COMMENT '前台用户ID', `role_id` INT UNSIGNED NOT NULL DEFAULT 0 COMMEN...
true
a6736039f7285bf312d7a4dbe1ef39dab7b4565b
SQL
CSharpDevConnect/CSharpDevConnect.TPL
/CSharpDevConnect.TPL.Exercises/scripts/schema.sql
UTF-8
658
3.875
4
[]
no_license
CREATE TABLE user_info ( -- Holds information on each user user_info_id CHAR(32) NOT NULL UNIQUE, user_name TEXT NOT NULL, first_name TEXT NOT NULL, last_name TEXT NOT NULL, CONSTRAINT pk_user_info PRIMARY KEY (user_info_id) ); CREATE TABLE course_info ( -- Holds information on each course course_info_id CHAR(...
true
b87f2dd5e308ac08eeed29a33572b9e81c2e4053
SQL
johnmull400/S-G_GIT_ROUTE
/_MAIN SQL SOLUTIONS/Oft Used Code/Oft Used Code/Oft Used Code/Code for building drop down box data views.sql
UTF-8
598
2.890625
3
[ "MIT" ]
permissive
The code is: CREATE VIEW viw_NIHL_Review_ReasonList as SELECT * FROM ( VALUES (2,1,'Negotiate Only'),(3,2,'Close File'),(4,3,'Instruct Medical'),(5,4,'Request GP Records'), (6,5,'Transfer to Post-Notification Team'),(7,6,'Transfer to Assessment Team'),(8,7,'Transfer to Litigation Team'), (9,8,'...
true
54ca26873092c201d1c621405fce09d625b477a6
SQL
richobaltasar/TicketingApp
/TicketingApp/Database/dbo/Stored Procedures/SP_web_old/SP_Get_PaymentMethod_TotalEDC.sql
UTF-8
576
3.265625
3
[]
no_license
 CREATE PROCEDURE SP_Get_PaymentMethod_TotalEDC @Awal nvarchar(max), @Akhir nvarchar(max) AS BEGIN SET NOCOUNT ON; select isnull(sum(isnull(TotalBayar,0)),0) Total from LogTransaksiPOS where Tunai = 0 and CardNumber != '' and replace(CONVERT(VARCHAR(10), CONVERT(date, replace(left(Datetime...
true
51226b6051809b8cada170659072171e1bb67a75
SQL
jossvega/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/13-count_shows_by_genre.sql
UTF-8
286
3.625
4
[]
no_license
-- Import the database dump from hbtn_0d_tvshows to your MySQL server SELECT tv_genres.name AS genre, COUNT(tv_show_genres.genre_id) AS number_of_shows FROM tv_genres INNER JOIN tv_show_genres ON tv_genres.id = tv_show_genres.genre_id GROUP BY genre ORDER BY number_of_shows DESC;
true
4fff520d7f1e67d4995bbed26f0596a17f0e0143
SQL
gopikavinod/RBM
/eclipse-workspace/HibernateTestPrjct/Script1.sql
UTF-8
377
2.90625
3
[]
no_license
--<ScriptOptions statementTerminator=";"/> CREATE TABLE USERSTORE ( NAME VARCHAR2(100), USERNAME VARCHAR2(20) NOT NULL, PASSWORD VARCHAR2(20), USER_TYPE VARCHAR2(100), LAST_LOGGED TIMESTAMP(11), LOGGED_STATUS NUMBER(2 , 0) ); CREATE UNIQUE INDEX SYS_C007170 ON USERSTORE (USERNAME ASC); ALTER TABLE USERS...
true
dc3895f46d3976d14d682887d198caff940ef886
SQL
HHS/CMS-BizFlow
/database/archive/2019-05-release-prod/scripts/CMS_01_BF.sql
UTF-8
3,534
3.65625
4
[]
no_license
-- CMS_89_HR_Incentives_HHS_FN_GET_ACCCALDAYSDIFF_function.sql -- CMS_90_HR_ERLR_UPdate_condition.sql -- CMS_125_BF_CAL_GrantPermission.sql -- CMS_134_HHS_FN_ADD_BUSDAY.sql -- CMS_136_HHS_FN_ADD_BUSDAY.sql -- CMS_141_BF_HHS_FN_ADD_BUSDAY.sql SET DEFINE OFF; create or replace FUNCTION HHS_FN_GET_ACCCALDAYSDIFF( I_PRO...
true
15da9c3da4a1a39ec06a0f68292a06920a1e8ca2
SQL
indahmanik/itdel-ppw-20-03-simta
/sql/p03_db.sql
UTF-8
16,987
3.125
3
[]
no_license
/* SQLyog Community v13.1.5 (64 bit) MySQL - 10.4.11-MariaDB : Database - p03_db ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=...
true
9dd83ae4e5ff2bb9c6d21dea6ab87e74a7920132
SQL
silviaec/TPIntegradorPHP
/tpintegrador.sql
UTF-8
3,027
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 08-10-2019 a las 02:32:46 -- Versión del servidor: 10.4.6-MariaDB -- Versión de PHP: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
2aee458bfd9ff4200498fee0b8ad6d20b8a7465e
SQL
giminmoon/Textbook-Exchange
/TextbookExchange/textbookexchange.sql
UTF-8
2,628
3.765625
4
[]
no_license
drop database if exists textbookexchange; create database textbookexchange; use textbookexchange; create table User ( userID int(50) primary key auto_increment, email varchar(50) not null, password varchar(200) not null, fname varchar(20) not null, lname varchar(30) not null, ...
true
0853624b373f72cc8b48067a6b9538a852bdaf0a
SQL
priya2911/RDBMS-IBM
/SQLQuery(practice).sql
UTF-8
1,276
3.8125
4
[]
no_license
--1.CREATING DATABASE: ------------------ create database practice --2.USE DATABASE: -------------- use practice; --3.CREATE TABLE: -------------- use practice; create table student( Id int not null, name varchar(20) not null, age int not null, city varchar(25) not null ); --4.INSERTING VALUES: ...
true
3d84c0b8a3e9d322e9facf8eafd5b248972cfe07
SQL
ZekaSG/ClientWeb
/Trim 1/Bootstrap JS/tables2.sql
UTF-8
629
3.46875
3
[]
no_license
create database persones2; use persones2; create table Sexe( id char primary key, Nom varchar(10) ); create table Persona( Nom varchar(30), Email varchar(40) primary key, Edat int, Experiencia int, Sexe char, Foto varchar(50) not null, foreign key (sexe) references Sexe(id) on update cas...
true
2e6c8257a08d0f5049b05f5b0c583b98e5b15d35
SQL
mngerasimenko/bank
/src/main/resources/db.changelog/v-1.0/01-create-bank-table.sql
UTF-8
314
3.234375
3
[]
no_license
CREATE TABLE IF NOT EXISTS bk_bank ( bank_id UUID not null, client_id UUID not null, credit_id UUID not null, PRIMARY KEY (bank_id), FOREIGN KEY (client_id) REFERENCES bk_client (client_id) ON DELETE RESTRICT, FOREIGN KEY (credit_id) REFERENCES bk_credit (credit_id) ON DELETE RESTRICT );
true
49ea4ab17e17b902baf6d8ed43387c7f1c4caa76
SQL
PatrycjaKarbownik/Hades-Travel
/sql/insert_cemetery.sql
UTF-8
698
2.5625
3
[]
no_license
INSERT INTO CEMETERY(NAME_CEMETERY,NAME_BRANCH,ID_ADDR) SELECT 'Centralny', 'Galaxy',1807 FROM dual UNION ALL SELECT 'Kupidyn', 'Galaxy',1810 FROM dual UNION ALL SELECT 'Ukryty', 'Galaxy',1815 FROM dual UNION ALL SELECT 'Wschodni', 'Hades',1820 FROM dual UNION ALL SELECT 'Stary', 'Hades',1827 FROM dual UNION...
true
9db6cc3198931d14a90857080ad9aa9c94eb7814
SQL
chqirsamia/pfa_2
/src/main/resources/command.sql
UTF-8
361
2.828125
3
[]
no_license
drop table command; CREATE TABLE IF NOT EXISTS command( id_commande int PRIMARY KEY NOT NULL AUTO_INCREMENT, totale float, date_commande date, id_user int , CONSTRAINT FK_C2 foreign key (id_user) references users(id) ); /*INSERT INTO commande VALUES (1,1,20,4); INSERT INTO commande VALUES...
true
aafb453b204fbfd198ed8d10057ed6e057ac1cb8
SQL
MichaelArn/Stimmungsbarometer
/stimmungsbarometer.sql
UTF-8
1,438
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Erstellungszeit: 21. Jun 2017 um 11:21 -- 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_CLIEN...
true
27fed0fa3a92cdb98dcc1b071e09c7e409227f65
SQL
i12-sistemas/icom-i12-clienteapp
/api/database/scripts/TEMP.sql
UTF-8
1,874
3.875
4
[ "MIT" ]
permissive
select coletas_nota.remetentecnpj as cnpj, cliente.razaosocial, cliente.fantasia, count(distinct coletas_nota.notachave) as qtdeNota, min(coletas_nota.dhlocal_created_at) as desdeDe, ifnull(group_concat(distinct emailcliente.email), 'contato@i12.com.br') as email, count(distinct req.token) as q from coletas_nota left j...
true
8367c58f40eb995fc27adf037245c5f622a15a51
SQL
Ullaakut/Bloggo
/data/sql/blog_posts.sql
UTF-8
627
2.90625
3
[ "Apache-2.0" ]
permissive
-- Adminer 4.6.3 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; SET NAMES utf8mb4; DROP TABLE IF EXISTS `blog_posts`; CREATE TABLE `blog_posts` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(255) NOT NULL, `content` tex...
true
7b4733fb55c3cc6db2237715103a5cd99444c25d
SQL
SRamosAdriano/locadora
/SQL/tabelas_banco_locadora.sql
UTF-8
2,265
3.578125
4
[]
no_license
CREATE TABLE categoria ( cod_categoria int(11) NOT NULL AUTO_INCREMENT, descricao varchar(50) DEFAULT NULL, PRIMARY KEY (cod_categoria) ); CREATE TABLE cliente ( cod_cliente int(11) NOT NULL AUTO_INCREMENT, nome varchar(100) DEFAULT NULL, telefone varchar(50) DEFAULT NULL, celular varchar(50) DEFAULT NUL...
true
76a8257115b76158538a625d07de721484d90e39
SQL
zhaokejin/shardingsphere-example
/sharding-db-read-write/src/main/resources/cicoding.sql
UTF-8
715
2.59375
3
[]
no_license
CREATE DATABASE `ds1` CHARACTER SET 'utf8' COLLATE 'utf8_general_ci'; CREATE DATABASE `ds1slave` CHARACTER SET 'utf8' COLLATE 'utf8_general_ci'; CREATE TABLE `ds1`.`cicoding` ( `id` varchar(20) NOT NULL, `city` varchar(20) NOT NULL, `region` varchar(20) NOT NULL, `name` varchar(20) NOT NULL, `ld_num` varchar...
true
8d49bd406da47309031a2adccf1ffa46984836e3
SQL
YanyangChen/GoogleLocationAPIExcel
/sql/weeklysqlscripts/WEEKLYSV.sql
UTF-8
786
3.671875
4
[]
no_license
select RSH_TVB_PRODUCT AS PRODUCT, RSH_TVB_PRODUCT_CATEGORY AS CATEGORY, RSH_DEVICE_DETAIL AS DEVICE, 'ALL' AS CITYNAME, WEEK_NO_RSH_YYWK AS WEEKNO, FIRST_DAY_OF_WEEK_RSH AS STARTDATE, --replace LAST_DAY_OF_WEEK_RSH AS ENDDATE, --replace count(distinct VISITOR+UA+VIDEOID+UPID) as SV, count(dist...
true
42718a02ea4902078c16569fd8cfc588d0625b87
SQL
taha-k/TKCrafting
/DBScripts/KtCraftingDb_141004_142034.sql
UTF-8
6,079
3.5
4
[]
no_license
-- Group [Group] create table `group` ( `oid` integer not null, `groupname` varchar(255), primary key (`oid`) ); -- Module [Module] create table `module` ( `oid` integer not null, `moduleid` varchar(255), `modulename` varchar(255), primary key (`oid`) ); -- User [User] create table `user` ...
true
b848528e9ca41dfd625b622031fb6acf57057b4b
SQL
erosinka/biorepo_ror4
/db/change.sql
UTF-8
23,293
4.1875
4
[]
no_license
alter table "attrs" rename to attrs_old; alter sequence "attrs_id_seq" rename to "attrs_old_id_seq"; alter index "attrs_pkey" rename to attrs_old_pkey; --and all other keys of attrs_old alter table attrs_old add column new_id int; --------------------------------------- create table widgets ( id serial not null pr...
true
7e5c6455898c5b2147cc3c61e39c7239b882dabf
SQL
DusanInclement/PlatformeZaObjektnoProgramiranje
/AvioServis.sql
UTF-8
3,761
3.796875
4
[]
no_license
CREATE DATABASE AvioServis USE AvioServis CREATE TABLE Korisnik ( KorisnikId INT IDENTITY(1,1) PRIMARY KEY, Ime NVARCHAR(50) not null, Prezime NVARCHAR(50) not null, Email NVARCHAR(50), Adresa NVARCHAR(100), Pol NVARCHAR(20), KorisnickoIme NVARCHAR(50), Lozinka NVARCHAR(50), TipKorisnika NVARCHAR(20) not null...
true
cdcaea7ab3ac1cc2a406d61560afdf4a34889d8c
SQL
jstntime75/geocaching-exercise
/Geocaching.Exercise.Database/Scripts/Script.Data.Reference.sql
UTF-8
1,342
2.734375
3
[]
no_license
SET IDENTITY_INSERT dbo.[Cache] ON INSERT INTO [Cache] ([Id], [Name], [Description]) VALUES (1, N'Justin''s House', N'Somewhere in Bellevue!'), (2, N'Microsoft Headquarters', N'1 Microsoft Way'), (3, N'Woodland Park Zoo', N'Watch out for the Rhinos!'), (4, N'Seattle Library', N'Read a book!'), ...
true
b37cab49f9a30f3aeeb3b50a7f634ee1868e4ef0
SQL
josepitteloud/VESPA
/capabilities/Channel Mapping/CM - Barb Log station codes map.sql
UTF-8
9,964
3.1875
3
[]
no_license
-- Channel Mapping Log Station code map against service keys select ska.* ,max(s1) as log_option_1 ,max(s2) as log_option_2 ,max(s3) as log_option_3 ,max(s4) as log_option_4 ,max(s5) as log_option_5 ,max(s6) as log_option_6 ,max(s7) as log_option_7 ,max(s8)...
true
0689bccddb77ada651f7d21ab4b398c64f7e5289
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day10/select1127.sql
UTF-8
178
2.65625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-09T11:27:00Z' AND timestamp<'2017-11-10T11:27:00Z' AND temperature>=17 AND temperature<=79
true
35ed90b44b71e00202d51d1639367414805b48f0
SQL
heshansen/myspringcloud
/auth-service/src/main/resources/schema-mysql.sql
UTF-8
2,290
3.09375
3
[]
no_license
USE topbaby_dev; create table oauth_client_details ( client_id VARCHAR(255) PRIMARY KEY, resource_ids VARCHAR(255), client_secret VARCHAR(255), scope VARCHAR(255), authorized_grant_types VARCHAR(255), web_server_redirect_uri VARCHAR(255), authorities VARCHAR(255), access_token_validity INTEGER, refres...
true
9cc8fb88630a90dbb21a193bee3ceb66d1e46b2b
SQL
Mureithi/ci3
/dbv/data/schema/setphysicalcount.sql
UTF-8
547
2.921875
3
[]
no_license
CREATE DEFINER=`root`@`localhost` PROCEDURE `setphysicalcount`( IN p_vaccine_id INT(11) , IN p_batch_number VARCHAR(20) , IN p_date_of_count DATE, IN p_available_quantity INT, IN p_physical_count INT, IN p_discrepancy INT ) BEGIN SET p_discrepancy = p_available_quantity - p_physical_count; INSERT INTO m_physical_cou...
true
40d9ff24b2f208452cd525ca8803e077b22ef3c6
SQL
bbroger/livro-php-fontes
/MVC/ComBD/mini-framework/Customizacao/mini_mvc/mini_mvc3a/db.sql
UTF-8
562
2.65625
3
[ "MIT" ]
permissive
CREATE TABLE `clientes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nome` varchar(55) NOT NULL, `email` varchar(55) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `clientes` (`id`, `nome`, `email`) VALUES (1, 'Maeve Streich II', 'beahan.edd@huels.com'), (2, 'Roosevelt Berge Sr.', '...
true
49e1fb7169ef5a06d65884c0fad5ac5101247956
SQL
Jpub/OraclePLSQL
/list05-10.sql
UTF-8
338
2.984375
3
[]
no_license
DECLARE err EXCEPTION; CURSOR dept_cur IS SELECT deptno FROM dept; BEGIN FOR r IN dept_cur LOOP BEGIN IF r.deptno = 30 THEN RAISE err; ELSE DBMS_OUTPUT.PUT_LINE(r.deptno); END IF; EXCEPTION WHEN err THEN DBMS_OUTPUT.PUT_LINE('예외가 발생'); END; END LOOP; ...
true
8a02194930ab67d271ed9e13f3320a62fd3a6298
SQL
gvjavx/steaksurabaya
/cafeku.sql
UTF-8
5,795
2.59375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 12 Bulan Mei 2019 pada 02.33 -- Versi server: 10.1.36-MariaDB -- Versi PHP: 5.6.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
bb4d02c48c67f20c7e9b2fb5c19468c913f62a0f
SQL
danielpunx1/bad115
/RegistroFIA/sql/pensum.sql
UTF-8
407
2.953125
3
[]
no_license
CREATE OR REPLACE PROCEDURE sp_pensum ( codigo_asignatura1 in PENSUM.CODIGO_ASIGNATURA%type, codigo_carrera1 IN PENSUM.CODIGO_CARRERA%type, tipo_materia1 in PENSUM.TIPO_MATERIA%type, ciclo1 in PENSUM.CICLO%type ) IS BEGIN insert into pensum (codigo_asignatura,codigo_carrera,tipo_materia,ciclo) ...
true
505a225b9b1fc7fca2f8447f94f0683ff0c9418a
SQL
Gk29-dev/SMS
/database/admin.sql
UTF-8
5,411
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 13, 2021 at 04:27 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
9b966d4006826e358d9cb8fd41225c30852a90ed
SQL
sailesh-nama/Flight-Fare-Prediction
/database/flightrecords.sql
UTF-8
4,393
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jun 27, 2021 at 08:25 PM -- Server version: 5.7.31 -- PHP Version: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
true
0be32f7bf469ccf07e11161cd4cf989201c1dd8d
SQL
fengyiqui/iamateapot
/maintenancebutmore/thirdparty/project_related/gis/gis-table.sql
GB18030
4,061
3.640625
4
[]
no_license
-- -- ų齱ʷgis_init_lottery_history_tables洢ʼ -- DROP TABLE IF EXISTS `gis_card_list`; CREATE TABLE `gis_card_list` ( `cardid` char(32), -- 齱ţԲظģ `lotteryid` int unsigned, -- ӦƷID `overduetime` int unsigned, -- ʱ `luckyrate` int unsigned, -- нʣ0100 PRIMARY KEY `cardid` (`cardid`) ) ENGINE=InnoD...
true
02169de2249c2b603cc0afdc1aef5f8876a5b08d
SQL
erpcya/BIRepository
/KPIs/Ventas/Ventas-Descuentos/NotaDeCredito-Producto.sql
UTF-8
713
3.828125
4
[]
no_license
-- Notas de Credito por Producto -- Zurzeit haben "Descuentos" C_Charge_ID besetzt; -- deswegen wird diese SQL null für Produkte ausgeben. -- Solange die Charge verwendet wird, werden die Produkte "null" liefern. SELECT ild.productname as "Producto", -- linenetamtdiscounts beinhaltet bereits ARC (Credit Memo) -- C_...
true
36bc9fd66a9a6f95f2e2859f988a3112994b5dd4
SQL
dosindi/bookstore-vok
/src/main/resources/db/migration/V02__CreateCategory.sql
UTF-8
164
3
3
[]
no_license
create TABLE Category ( id int auto_increment PRIMARY KEY not null, NAME varchar(200) NOT NULL ); create UNIQUE INDEX idx_category_name ON Category (NAME);
true
c5984e9194696645f7004936a895fca418f092c2
SQL
techandmedia/crud-react-next-app
/api-server/training-db_2019-12-04.sql
UTF-8
8,847
2.875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3307 -- Generation Time: Dec 04, 2019 at 09:45 AM -- Server version: 5.6.35 -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
6479c5f61ced05d479b3803f6b0bb0c8e013bbca
SQL
shenshing/koompi-play-testing-repo
/userInfo/migrations/2020-04-05-121109_create_user/up.sql
UTF-8
409
2.859375
3
[]
no_license
-- Your SQL goes here CREATE TABLE users ( user_id SERIAL PRIMARY KEY, user_name VARCHAR(20) NOT NULL, user_gender Varchar(10) NOT NULL, user_email VARCHAR(50) UNIQUE NOT NULL, user_password VARCHAR(100) NOT NULL, create_date TIMESTAMP NOT NULL Default Current_Timestamp, user_profile VARCHAR...
true
756681c577bed724328de7d10922e8f58a65dede
SQL
saikalyankadali/Invoice-Management-System
/register.sql
UTF-8
12,779
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 16, 2013 at 05:58 AM -- Server version: 5.5.16 -- PHP Version: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
2fdc9331d7d0c14e8db9695d28b73973debe23ce
SQL
radtek/abs3
/sql/mmfo/nbu_gateway/Table/tmp_loan.sql
UTF-8
695
2.71875
3
[]
no_license
declare name_already_used exception; pragma exception_init(name_already_used, -955); begin execute immediate 'create global temporary table tmp_loan ( customer_code varchar2(4000 byte), loan_number varchar2(4000 byte), loan_date date, loan_am...
true
f4c909310cfe96e99498a2692c6a1c11f59ebeda
SQL
diegofrazao/p3-bd2-ifpb
/Projeto/documentos/1-script-criacao.sql
UTF-8
4,466
3.796875
4
[]
no_license
CREATE TABLE categoria_cnh( idCategoriaCNH char(3) NOT NULL, descricao text NOT NULL, CONSTRAINT PK_categoria_cnh PRIMARY KEY (idCategoriaCNH) ); CREATE TABLE estado( uf char(2) NOT NULL, nome varchar(40) NOT NULL, CONSTRAINT PK_estado PRIMARY KEY (uf) ); CREATE TABLE cidade ( idCidade serial NOT NULL, nome v...
true
496fe4c6f2ca2cfda60ada67565076c0d55537d0
SQL
jimhu-tamu/hulab_wiki-extensions
/TableEdit/sql/TableEdit_tables.sql
UTF-8
3,413
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 30, 2013 at 11:22 AM -- Server version: 5.5.22-log -- PHP Version: 5.3.22 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARAC...
true
815c5cb277ce4f01d6c12b621db10ac8f41fc7a8
SQL
Karhgath/gem
/Gem/GEM/Leaders/GEL_End.sql
UTF-8
1,051
2.78125
3
[]
no_license
-- INSERT INTO Building_ResourceYieldChanges (BuildingType, ResourceType, YieldType, Yield) SELECT 'BUILDING_ENGLISH_STEAM_MILL', res.Type, yield.Type, 1 FROM Resources res, Yields yield WHERE res.Happiness <> 0 AND yield.Type IN ('YIELD_GOLD', 'YIELD_PRODUCTION'); INSERT INTO Trait_FreeResourceFirstXCities (TraitTy...
true
b962655b032902ee65baa5c2a61b055fb7ad6b45
SQL
jenli810006995/SQL
/LeetCode/608. Tree Node/Tree_Node.sql
UTF-8
308
3.40625
3
[]
no_license
select id, case when tree.id = (select atree.id from tree atree where p_id is null) then 'Root' when tree.id in (select p_id from tree atree where p_id is not null) then 'Inner' else 'Leaf' end as type from tree order by id; -- Link: https://leetcode.com/problems/tree-node/
true
6403ecda9ae1842dd3dc68d15231b57e2ca07935
SQL
Celtus/custom-core2
/database/world/skill_fishing_base_level.sql
UTF-8
9,818
3.109375
3
[]
no_license
-- ------------------------------------------------------------------- -- Unity Database -- ------------------------------------------------------------------- -- Table : skill_fishing_base_level -- Filename : skill_fishing_base_level.sql -- DB Version : 1.0 -- Copyright (C) 2013 Unity <http://unitycore.org/> ...
true
c88573d057b075129df6e9e0d6cfe83b1eda4f04
SQL
j2mc/SALAM
/salam.sql
UTF-8
2,489
3.390625
3
[ "MIT" ]
permissive
CREATE DATABASE `salam`; GRANT USAGE ON *.* TO salam@localhost IDENTIFIED by "s@1aM"; GRANT ALL PRIVILEGES ON `salam`.* TO salam@localhost; FLUSH PRIVILEGES; USE salam; CREATE TABLE `hostdata` (`id` int PRIMARY KEY AUTO_INCREMENT NOT NULL, `host_id` int, `type` tinytext, `data` tinytext); CREATE TABLE `alerts` (`...
true
26b687c8efc4153267b0e5dc21cecf15de78d79e
SQL
gisaacjh/mysql
/subqueries.sql
UTF-8
1,416
4.09375
4
[]
no_license
#SUBQUERIES #SELECT SALARY FROM Employees WHERE Last_Name = "Bull"; #SELECT # FIRST_NAME, # LAST_NAME, # SALARY #FROM Employees #WHERE SALARY > (SELECT SALARY FROM Employees #WHERE LAST_NAME = "Bull"); #ORDER BY SALARY; -----order by y se pone el nombre del campo #2 WRITE A QUERY TI FIND THE NAME ...
true
12f0b5f399cbd1b4e2d79577390a4e0ee5b589fa
SQL
vinguyendev/aeluxtury-shop
/data/db/product_attribute.sql
UTF-8
1,903
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Máy chủ: localhost:3306 -- Thời gian đã tạo: Th10 12, 2019 lúc 08:50 AM -- Phiên bản máy phục vụ: 5.5.56-cll-lve -- Phiên bản PHP: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
409f5751e8d7f17caaa8510059f8d764bf4587b4
SQL
hristopanev/java---fundamentals
/Databases Basics - MySQL/Exercises/Data Aggregation/03. Longest Magic Wand per Deposit Groups.sql
UTF-8
157
2.59375
3
[]
no_license
SELECT deposit_group, MAX(magic_wand_size) AS 'longest_magic_wand' FROM wizzard_deposits GROUP BY deposit_group ORDER BY MAX(magic_wand_size);
true
cec72675445efa17304da5ef79136c61ab66ba87
SQL
LenkaSeg/intro_to_relational_databases
/tournament.sql
UTF-8
1,191
4.28125
4
[]
no_license
-- Table definitions for the tournament project. -- -- Put your SQL 'create table' statements in this file; also 'create view' -- statements if you choose to use it. -- -- You can write comments in this file by starting them with two dashes, like -- these lines here. DROP DATABASE IF EXISTS tournament; CREATE databas...
true
130413aa9202efaa9d393886e0d981d611eb08d6
SQL
rJankowski93/CumpelStore
/data.sql
UTF-8
6,672
2.5625
3
[]
no_license
INSERT INTO `address` (`Id`, `Country`, `City`, `Zip_Code`, `Street`, `House_Number`) VALUES (5, 'Andorra', 'St. Petersburg', '26-398', 'P.O. Box 875, 197 Cum Street', '19'), (6, 'Algeria', 'Cittanova', '33049', '219-2177 Porttitor Rd.', '70'), (7, 'Bosnia and Herzegovina', 'Nieuwerkerken', '57-651', 'P.O. Box 937, 666...
true
415d80bd07d75504eb469d61c00acfbcfd29aef4
SQL
fw2propaganda/wordpress-utility
/MySQL/delete-all-products.sql
UTF-8
525
3.484375
3
[ "MIT" ]
permissive
-- Esse script irá deletar todos os produtos do banco de dados (Woocommerce) DELETE relations.*, taxes.*, terms.* FROM wp_term_relationships AS relations INNER JOIN wp_term_taxonomy AS taxes ON relations.term_taxonomy_id=taxes.term_taxonomy_id INNER JOIN wp_terms AS terms ON taxes.term_id=terms.term_id WHERE object_id...
true
2407651d8f264135c85757d7a950cdb224425f9e
SQL
alexodle/vitamind
/db/schema/processed_forecast.sql
UTF-8
1,005
3.28125
3
[]
no_license
-- DDL generated by Postico 1.5.10 -- Not all database features are supported. Do not use for backup. -- Table Definition ---------------------------------------------- CREATE TABLE processed_forecast ( id SERIAL PRIMARY KEY, city_id integer NOT NULL REFERENCES city(id), date_forecasted date NOT NULL, ...
true
e309c9b35e47f61ea5687bce047bd85c01796a06
SQL
freebz/Effective-SQL
/ch04/ex4-23.sql
UTF-8
211
3.125
3
[]
no_license
-- 코드 4-23 특정 일자의 로그 메시지를 보는 두 번째 쿼리 SELECT L.LogUserID, L.Logger, L.LogLevel, L.LogMessage FROM ProgramLogs AS L WHERE L.LogDate = CONVERT(datetime, '2016-07-04', 120);
true
7bd1665cf80313b7cbf0dc0e58c20b5ae93861b6
SQL
zldoty/agency-data-pipeline
/target/compiled/agency_data_pipeline/base/adwords/adwords_join.sql
UTF-8
286
2.609375
3
[ "MIT" ]
permissive
SELECT day, a.campaign, a.campaignid, account, channel, platform, b.url, cost, impressions, clicks, conversions FROM `adp-apprenticeship`.`agency_data_pipeline`.`adwords_campaigns` a LEFT JOIN `adp-apprenticeship`.`agency_data_pipeline`.`adwords_urls` b ON a.campaignid = b.campaignid
true
3cbccc80adb369a272cd33f2841dd44149789733
SQL
AsciiShell/hse_db_project
/Text/code/view_public.sql
UTF-8
3,545
3.8125
4
[]
no_license
CREATE OR REPLACE VIEW public_user AS SELECT u_id AS id, u_lname || ' ' || u_fname || ' ' || u_patro AS name, u_gender AS gender FROM client; COMMENT ON VIEW public_user IS 'Представление публичной информации о пользователях'; -...
true
f862f0967086255dc56b48fb8555f0a59e25adf5
SQL
Ulysses-WJL/python_database_test
/sql/exercise/exercise17.sql
UTF-8
904
3.90625
4
[]
no_license
# 1、创建函数,实现传入两个float,返回二者之和 DELIMITER $ CREATE FUNCTION test_f1(f1 FLOAT, f2 FLOAT) RETURNS FLOAT BEGIN DECLARE SUM FLOAT DEFAULT 0; SET SUM := f1 + f2; RETURN SUM; END $ SELECT test_f1(1.5, 2)$ # 创建函数,实现传入工种名,返回该工种的员工人数 CREATE FUNCTION test_func2(job_name VARCHAR(35)) RETURNS INT BEGIN DECLARE num INT ...
true
4ccc6de56a2a453a88f615aa5467257b7bbbc774
SQL
parker-erickson/BGTP
/database/dev.sql
UTF-8
1,243
3.40625
3
[]
no_license
CREATE TABLE `user` ( `id` int NOT NULL AUTO_INCREMENT, `username` varchar(32), `email` varchar(64), `password` varchar(128), `phone_number` varchar(20) NOT NULL, PRIMARY KEY (`id`) ); CREATE TABLE `listing` ( `id` int NOT NULL AUTO_INCREMENT, `user_id` int, `game_id` int NOT NULL, `photo_url` varchar(255), ...
true
0f6107a79e9ee29253baf9fac672821efe33db7a
SQL
PacktPublishing/Nginx-High-Performance
/Chapter 7/seo.sql
UTF-8
517
2.515625
3
[ "MIT" ]
permissive
CREATE TABLE `seo_redirect_location` ( `id` int(11) NOT NULL AUTO_INCREMENT, `Org_Location` varchar(45) DEFAULT NULL, `Redirect_Location` varchar(45) DEFAULT NULL, `Redirect_Code` int(11) NOT NULL, PRIMARY KEY (`id`) ) ; INSERT INTO `seo_redirect_location` (`Org_Location`,`Redirect_Location`,`Redirect_Code`)...
true
3342d6d487b08978a786c73d9e5c9b151efe6f86
SQL
activeceron/MySQL-Ejercicios
/parte001/ex038_agenda_amigos.sql
UTF-8
846
3.390625
3
[ "MIT" ]
permissive
/* 1. Elimine la tabla "agenda" si existe: */ DROP TABLE IF EXISTS agenda; /* 2. Cree una tabla llamada "agenda", debe tener los siguientes campos: */ CREATE TABLE agenda( nombre VARCHAR(20), domicilio VARCHAR(30), telefono VARCHAR(11) ); /* 3. Intente crearla nuevamente. Aparece mensaje de error.*/ /*CRE...
true
0c4f1d4474749c91e2bfad08f3c0cdeb40cde66c
SQL
iamitpatil1993/spring-data-jdbc
/src/main/resources/schema.sql
UTF-8
875
3.640625
4
[]
no_license
DROP TABLE EMPLOYEE; DROP TABLE actor; DROP TABLE address; CREATE TABLE EMPLOYEE( EMPLOYEE_ID VARCHAR(36) PRIMARY KEY, FIRST_NAME VARCHAR(36), LAST_NAME VARCHAR(36), DATE_OF_JOINING date, DESIGNATION VARCHAR(36), created_date timestamp default now(), updated_date timestamp default now() ); DROP SEQUENCE ac...
true
1a3c21689067786d35fac481e52c69b43f674abb
SQL
Niutalav/YETICAVE
/schema.sql
UTF-8
2,019
4
4
[]
no_license
CREATE TABLE categories ( id INT(15) NOT NULL, title varchar(45) NOT NULL, alias varchar(45) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE lots ( id INT(15) NOT NULL, date_create datetime NOT NULL, title varchar(45) NOT NULL, description text NOT NULL, image varcha...
true
e3dd01a30d2aefd1613098b437677839036eab52
SQL
mikestevenson86/SQL-Repository
/Mike S Queries/Archives/00 Archive 2018/04 April 2018/CitAssist 2018.sql
UTF-8
608
3.640625
4
[]
no_license
SELECT hsa.commentDate, cl.companyName, cl.clienttype, hsd.disposition, hsa.comments, u.FullName Advisor, c.fName + ' ' + c.sName Contact FROM Shorthorn..cit_sh_HSCitassist hsa left outer join Shorthorn..cit_sh_dealsHS dhs ON hsa.HSID = dhs.hsID left outer join Shorthorn..cit_sh_clients cl ON dhs.clientID = cl.clientID...
true
221fa77eacad8d5be8f35eb8f30675f5084fc8ea
SQL
MaximeGammaitoni/AdneomContest
/MySQL/database.sql
UTF-8
1,073
3.53125
4
[]
no_license
CREATE TABLE `avatar` ( `id` INT NOT NULL AUTO_INCREMENT, `picture` varchar(32) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ); CREATE TABLE `users` ( `id` INT NOT NULL AUTO_INCREMENT, `mail` varchar(32) NOT NULL DEFAULT '', `name` varchar(32) NOT NULL DEFAULT '', `points` INT NOT NULL DEFAULT 0, `fk_avatar...
true
dd8564846c732572cbfbdc2816b3bd2f24c47a4b
SQL
fleetmack/mines
/me/Writers/trisha/20110815_mcs_exclusions_possible.sql
UTF-8
490
3.140625
3
[]
no_license
/*** Those who are DNI or DNM who would otherwise be invited to MCS dinner ***/ select e.id_number, e.pref_mail_name, dw.ass_pref_mail_name from entity e, a_dw_assignment_pm dw where dw.id_number(+) = e.id_number and e.id_number IN (select id_number from a_std_3 where id_number IN (select id_number from mailing_l...
true
9e92bdb7c1d4c6947adfdb6a60f8b1c82cdf456a
SQL
kleberperez1/SQL-Bridge-Week-3
/key_card_system.sql
UTF-8
4,182
3.765625
4
[]
no_license
/* Keycardsystem database This project is where you show off your ability to (1) translate a business requirement into a database design, (2) design a database using one-to-many and many-to-many relationships, and (3) know when to use LEFT and/or RIGHT JOINs to build result sets for reporting. */ DROP TABLE IF...
true
a8d96740a89beaae7c880e29700c95de6f091044
SQL
altamira/visualstudio
/Sistema de Informação Altamira/EGISSQL.Database/dbo/Stored Procedures/Procs1/pr_consulta_remessas_aberto.sql
UTF-8
1,495
3.453125
3
[]
no_license
 CREATE PROCEDURE pr_consulta_remessas_aberto --parametros da stored procedure @ic_parametro int, @cd_mascara_operacao varchar(30), @dt_inicial datetime, @dt_final datetime AS SELECT NS.cd_nota_saida, NV.dt_vencimento_nota, NS.dt_nota_saida, NS.cd_operacao_fiscal, ...
true
00a4c51595315110e5d24dcf84f0600154ecca7f
SQL
hI-Ize/test2
/!DB.sql
UTF-8
67,620
2.71875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Apr 03, 2021 at 05:01 PM -- Server version: 5.7.31 -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@...
true
92f183b50aaa57816bb9f7268b7e847810230717
SQL
lbarrios/uba-dc-bd_2016-1c_tp2
/operaciones.sql
UTF-8
1,713
3.703125
4
[]
no_license
SELECT operacion.id_operacion, operacion.comision, publicacion.precio, publicacion.publicada_por, operacion.id_comprador, valoracion_comprador.id_valoracion as valoracion_comprador_id_valoracion, valoracion_comprador.puntaje as valoracion_comprador_puntaje, valoracion_comprador.comentari...
true
5e94dc0e2da67cadac15f2ed59c4420ff6fd099a
SQL
jessedobbelaere/fork-cms-module-backgrounds
/src/Backend/Modules/Backgrounds/Installer/Data/install.sql
UTF-8
610
2.734375
3
[ "WTFPL" ]
permissive
CREATE TABLE IF NOT EXISTS `backgrounds` ( `id` int(11) NOT NULL auto_increment, `meta_id` int(11) NOT NULL, `language` varchar(5), `title` varchar(255) NOT NULL, `image` varchar(255) NOT NULL, `hidden` ENUM('Y','N') DEFAULT 'N', `extra_id` int(11) NOT NULL, `background_size` varchar(255) NOT NULL, `background...
true
0da6727047356ec6f60baffd5e6652c7d6ee5c7c
SQL
macfleid/Pyl
/PylDb/views.sql
UTF-8
327
2.953125
3
[]
no_license
CREATE VIEW [Playlist_list] AS SELECT * FROM Playlist INNER JOIN Contact on Contact._id = Playlist.Contact__id ORDER BY Contact__id; CREATE VIEW [Playlist_element] AS SELECT * FROM Playlist INNER JOIN Song on Song.Playlist__id=Playlist._id INNER JOIN Contact on Contact._id = Playlist.Contact__id ORDER BY Conta...
true
10c86c9a62262cff77547a1b1ff086c97d6ce8e7
SQL
kaelsilva/BD2-T02
/q7.sql
UTF-8
1,516
2.859375
3
[ "WTFPL" ]
permissive
DROP TRIGGER IF EXISTS adicionar_passageiro; CREATE TRIGGER adicionar_passageiro AFTER INSERT ON cliente_voo FOR EACH ROW UPDATE voo SET num_passageiros = num_passageiros + 1 WHERE codigo = NEW.voo; INSERT INTO cliente(nome, endereco) VALUES ('maria 1', 'rua a 1'); INSERT INTO cliente(nome, endereco) VALUES ('maria 2...
true
acc386f130f5e3ecf4b5300c1b21daecd111469d
SQL
snwfog/peerpen
/src/main/resources/db/fixture/V3014.1.11.5.02__commentfix.sql
UTF-8
27,024
2.75
3
[]
no_license
/* clear all tables first */ SET FOREIGN_KEY_CHECKS = 0; -- Disable foreign key checking. truncate avatars; truncate broadcasts; truncate categories; truncate changesets; truncate comments; truncate documents; truncate `documents_taggables`; truncate `feedables`; truncate groups; truncate `groups_categories`; truncate ...
true
b24e87b19a9b935497e8cc98b8af0efeb7b8cc04
SQL
shubhamsunnyweb/moviedb
/moviedb.sql
UTF-8
6,370
3.140625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 10, 2019 at 08:14 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
2dc778dadd7ab962fee678f86834a354cb41ae24
SQL
Gazal1090/railway-reservation-system
/sql/db.sql
UTF-8
14,508
3.46875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 07, 2020 at 09:20 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
86f89bb5c626f861b890f20b6b92efa0511c6b23
SQL
baminmru/MTZ
/MTZAdministrator/ORACLE/--Procedures.Type.Body--PEKD_1.sql
WINDOWS-1251
288,056
3
3
[]
no_license
/* --PEKD*/ create or replace package body PEKD as procedure PEKD_DELETE(acursession CHAR, aInstanceID CHAR) as aObjType varchar2(255); begin select objtype into aObjType from instance where instanceid=ainstanceid; if aObjType ='PEKD' then declare cursor child_PEKD_ADDS is select PEKD_ADDS.PEKD_ADDSid ID from ...
true
d0b0c3be431d9a6daa14084c0edb3dc393d2d531
SQL
sumitGitHub1/audit-service
/sql/initial-script.sql
UTF-8
666
3.3125
3
[]
no_license
CREATE TABLE events_detail( id serial PRIMARY KEY, event_type VARCHAR (50) NOT NULL, event_type VARCHAR (50) NOT NULL ); insert into events_detail (id, event_type, event_desc) values (1, 'login', 'Macts Login Event'); CREATE TABLE audit_logs( id serial PRIMARY KEY, user_id VARCHAR (20), system_id V...
true
7dcf99be42dc148a1def64592ded373cdde8d613
SQL
tomaszrak/ITgeek-tr
/ITgeek/Schema/ITgeek.sql
UTF-8
9,773
3.46875
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- 11/09/15 12:04:50 -- 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='TRADITION...
true
82d40d6590f8ef3811a8d016b3a5ead8fee2ebed
SQL
Kukuhp/Project
/pemira2/pemira_asik.sql
UTF-8
6,361
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 07 Feb 2017 pada 13.36 -- Versi Server: 10.1.9-MariaDB -- PHP Version: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
16064dc96d492e907bc7d4f20c47ca041474462c
SQL
anehx/timetable
/app/sql/timetable.sql
UTF-8
1,366
3.8125
4
[ "MIT" ]
permissive
CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(50) NOT NULL UNIQUE, `firstName` varchar(50) DEFAULT NULL, `lastName` varchar(50) DEFAULT NULL, `isSuperuser` tinyint(1) NOT NULL, `password` varchar(255) NOT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE...
true
db5153863397307b2349cd4567d263136335c6e7
SQL
marketingdigitalee/Rizos
/Elespectador/EE/drone/DB/drone_registro-estructura.sql
UTF-8
1,337
2.6875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10.15 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 09, 2017 at 06:01 AM -- Server version: 5.1.69-community-log -- PHP Version: 5.3.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACT...
true