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
3f4241894e8290961e6a0d7d01afda023fa08427
SQL
adal22MC/popnjoy
/baseDeDatos.sql
UTF-8
6,273
3.71875
4
[]
no_license
-- CREATE DATABASE POS; create table usuarios( username varchar(250) PRIMARY KEY, password varchar(250) )ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci; insert into usuarios values ('pop', 'pop'); CREATE TABLE categorias( id_categoria int NOT NULL AUTO_INCREMENT, descripcion varchar(150) COLLATE ...
true
64522e75c65f601a88f6985c4c170336d1d22b1c
SQL
daren990/EOA
/src/cn/oa/model/mapper/TeachingSchedule.sql
UTF-8
288
3.015625
3
[]
no_license
/* TeachingSchedule.teacherId.query */ select distinct ts.edu_teacher_id from edu_teaching_schedule ts left join shop_goods c on ts.edu_course_id = c.id $condition /* TeachingSchedule.courseIds.query */ select max(ts.end) end, ts.edu_course_id from edu_teaching_schedule ts $condition
true
4b3ded6b8b4d2dfc867be6ed658f353f7fd28326
SQL
sawh/ostepu-system
/DB/DBFile/Sql/AddPlatform.sql
UTF-8
1,318
3.296875
3
[]
no_license
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; CREATE TABLE IF NOT EXISTS `File` ( `F_id` INT NOT NULL AUTO_INCREMENT, `F_displayName` VARCHAR(255) NULL, `F_...
true
60a895063d925c6e76c724ca98c12cea2f58c7d3
SQL
TomaFlorinUngureanu/Perfumer
/plsql_functions/script creare baza de date.sql
UTF-8
6,299
2.515625
3
[ "MIT" ]
permissive
DROP TABLE parfumuri; CREATE TABLE parfumuri ( id INT NOT NULL, poza varchar2(400), nume varchar2(400), brand varchar2(400), cantitate varchar2(200), pret varchar2(200), sex int, stoc int, note varchar2(400), data_lansare varchar2(400), sezon varchar2(400), ocazie varchar2(400), discount int )...
true
31ef489e67c49a019847f43fc6c7ed9d0eb49918
SQL
apache/incubator-ambari
/ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql
UTF-8
14,473
3.15625
3
[ "Apache-2.0", "MS-PL", "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-free-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 ...
true
b9b54eeac6ab715bc61bc73601d74796b609e25b
SQL
gjp0609/Web
/src/Day3/xkManager/sql.sql
UTF-8
1,032
3.59375
4
[]
no_license
CREATE TABLE T_STUDENT ( SID VARCHAR2(10) PRIMARY KEY, NAME VARCHAR2(10) NOT NULL, SEX VARCHAR2(1) NOT NULL CHECK (SEX IN ('F', 'M')), ID_CARD VARCHAR2(19) NOT NULL, EMAIL VARCHAR2(20), ADDRESS VARCHAR2(50) NOT NULL ); CREATE SEQUENCE STUDENT_SEQ START WITH 1445200001; CREATE TABLE T_TEACHER ...
true
a1329faa589ae626bcbd65422716716bfbcff56d
SQL
PolisG/Tic-Tac-Toe-game
/db/tictactoe.sql
UTF-8
4,439
3.140625
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 14, 2020 at 12:48 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
d0cba1c717025e3b47ab5b496aa60cca3d878a2a
SQL
pivotal/demos
/CMS Star Schema/report.sql
UTF-8
781
3.796875
4
[]
no_license
SELECT t1.id, t1.table_name, CASE WHEN c.relstorage <> 'x' THEN c.reltuples::int ELSE 0 END AS tuples, t1.duration::interval AS hawq_duration FROM reports.cms t1 JOIN pg_class c on split_part(t1.table_name, '.', 2) = c.relname JOIN pg_namespace n on split_part(t1.table_name, '.', 1) = n.nspname and c.relnamespace = n.o...
true
0889728ff128fae217a509adb98a7a7ad01c3086
SQL
ZhaoWenHao1/fabricPlatform
/Key-R-D-based-on-fabric.sql
UTF-8
15,943
3.265625
3
[]
no_license
<<<<<<< HEAD /* Navicat Premium Data Transfer Source Server : 区块链53docker Source Server Type : MySQL Source Server Version : 50711 Source Host : 211.69.198.53:3307 Source Schema : Key-R-D-based-on-fabric Target Server Type : MySQL Target Server Version : 50711 File ...
true
4fe2c8f6a696c176940443f7643a79d49a7c41ff
SQL
greenvc/SqlServer
/Sample/表间完整性引用关系.sql
GB18030
2,291
3.984375
4
[]
no_license
--Ա -- create table person ( bh int not null, xm varchar(20) not null, xb char(2), sfzh varchar(20), constraint bh_ys primary key(bh) ) select * from person insert into person values (130,'','','999') drop table person -- create table person1 ( bh int not null, xm varchar(20) not null, xb char(2), sfzh varchar(20),...
true
1c31f4ae00e89116e03c142b0661b0cd13b6d4e1
SQL
bellmit/flexdb
/2.HOST/1.View/vw_check_hnx_flex.sql
UTF-8
1,509
2.984375
3
[]
no_license
CREATE OR REPLACE FORCE VIEW VW_CHECK_HNX_FLEX AS SELECT o.orderid, od.symbol, od.custodycd, o.afacctno , o.orderqtty, o.quoteprice, o.pricetype , o.txtime FROM odmast o, ood od WHERE o.orderid = od.orgorderid AND od.oodstatus ='B' AND o.pricetype ='LO' AND NOT EXISTS (SELECT 1 FROM sts_orders_hnx sts, st...
true
86acd5c2376585a3d69e486d3deb874a4aace6c8
SQL
Sanne/pnc
/model/src/main/resources/db-update/20000-from-1.8.x-to-2.0.0.sql
UTF-8
3,175
3.328125
3
[ "Apache-2.0" ]
permissive
-- -- JBoss, Home of Professional Open Source. -- Copyright 2014-2020 Red Hat, Inc., and individual contributors -- as indicated by the @author tags. -- -- 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 ...
true
b73efc4f1571a40d1c4648b959fd9016e72758ea
SQL
krishnamohankaruturi/secret
/aart-web-dependencies/db/other/US17640-duplicate-cpass-sessions/cpass-deletes-round3.sql
UTF-8
511
2.71875
3
[]
no_license
delete from studentsresponses where studentstestsid in ( select id from studentstests where testsessionid in (2203365, 2149586, 2149585, 2149576) ); delete from studentstestsections where studentstestid in ( select id from studentstests where testsessionid in (2203365, 2149586, 2149585, 2149576) ); delete from stud...
true
d6da49926c626b516f33d2be8e1c687b67c5be84
SQL
Rohi36a/SQL_PlanB
/PFT -4/PERF TUNING 4 NOTES PART 1.sql
UTF-8
2,550
3.734375
4
[]
no_license
USE PRODUCTDATABASE SELECT * FROM SALES_DATA -- GIVEN A TABLE, HOW TO REPORT THE LIST OF ALL INDEXES? EXEC SP_HELPINDEX 'SALES_DATA' -- HOW TO FIND THE ROOT AND OTHER PAGE INFORMATION OF INDEXES? DBCC CHECKTABLE('SALES_DATA') -- ENSURE NO ERRORS DBCC CHECKALLOC() -- LOOKUP FOR TABLE INFORMATION IN THE OUTPUT -- ...
true
d82c09e287f7cbbf8850cf5008a6b18bce6a9f2a
SQL
brimason81/Songlist
/repetoire.sql
UTF-8
2,267
2.984375
3
[]
no_license
-- MySQL dump 10.16 Distrib 10.1.31-MariaDB, for Win32 (AMD64) -- -- Host: localhost Database: repetoire -- ------------------------------------------------------ -- Server version 10.1.31-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_...
true
c501cde1f68d3e33d256c87af7b7c89ad4db6e64
SQL
Revuj/GameBook
/povoar.sql
UTF-8
93,020
2.59375
3
[]
no_license
PRAGMA foreign_keys = on; --Utilizador INSERT INTO Utilizador(ID,nome,email,password,username,data_nascimento,morada,foto_perfil) VALUES (1,'Darlene Sanders','bmorrow@icloud.com','MBEwSiL!7O','Edendajan','1985-12-24','777 Brockton Avenue, Abington MA 2351','profile1.png'); INSERT INTO Utilizador(ID,nome,email,pass...
true
10fbb9f9b79ed77664dd54cd788f8ab07e385019
SQL
xtayavij/springboot-security-jwt
/rbac__demo.sql
UTF-8
6,988
3.328125
3
[]
no_license
/* SQLyog Ultimate v12.09 (64 bit) MySQL - 5.7.26-log : Database - rbac_demo ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_...
true
b935fe021e12f942e7988e7fa1bb75f00cbce1d1
SQL
rosborne132/backlogger-api
/migrations/003.do.create_backlogger_user_consoles.sql
UTF-8
367
2.609375
3
[]
no_license
CREATE TABLE backlogger_user_consoles ( id INTEGER PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY ); ALTER TABLE backlogger_user_consoles ADD COLUMN user_id INTEGER REFERENCES backlogger_users(id) ON DELETE SET NULL; ALTER TABLE backlogger_user_consoles ADD COLUMN console_id INTEGER REFERENCES backl...
true
906c7729ecc78e0f3d32fefcea637d6b294f116f
SQL
Cherrate96/restaurant-management
/target/classes/_schema.sql
UTF-8
1,539
3.65625
4
[]
no_license
CREATE SEQUENCE hibernate_sequence; CREATE TABLE client( id serial, name varchar(255) NOT NULL, surname varchar(255) NOT NULL, discount double precision NOT NULL, PRIMARY KEY (id) ); CREATE TABLE employee( id serial, name varchar(255) NOT NULL, surname varchar(255) NOT NULL, personal_identity_number varchar(255) UNIQ...
true
9aa30ff49e7405de098c59a624d78eb0540836a8
SQL
Gioovannii/Projet-8-
/PGESTpizza_01_bddConfig/PGESTpizza_03_Dumps/PGESTpizza_02_Dump_Structure_Only.sql
UTF-8
8,537
3.046875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `OC Pizza` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `OC Pizza`; -- MySQL dump 10.13 Distrib 8.0.19, for macos10.15 (x86_64) -- -- Host: localhost Database: OC Pizza -- -------------------------------------------------...
true
b74bdc8104f30af6d80f695dd010c77292047a10
SQL
MarkJaroski/bricolage
/sql/Pg/Bric/Biz/Org/Source.sql
UTF-8
775
3.453125
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
-- -- Project: Bricolage Business API -- -- Author: David Wheeler <david@justatheory.com> -- This DDL creates the table structure for Bric::BC::Org::Source objects. -- -- SEQUENCES. -- CREATE SEQUENCE seq_source START 1024; -- -- TABLE: source -- CREATE TABLE source ( id INTEGER NOT NU...
true
4a23c4f2990444718249f8690be52062174aea9c
SQL
jake-tw/spring-data-demo
/spring-data-jpa-demo/src/main/resources/schema.sql
UTF-8
652
3.40625
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS `post` ( `id` int(20) NOT NULL AUTO_INCREMENT, `topic` VARCHAR(50) NOT NULL, `content` VARCHAR(200) NOT NULL, `like_count` int(20) DEFAULT 0, `create_time` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, `update_time` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB ...
true
74ee7eac30025746216869ea8c1f5fb9a5916a2c
SQL
YairPR/Oracle
/Scripts/Dataguard/troubleshooting_loggap.sql
UTF-8
10,496
4.15625
4
[]
no_license
-- https://www.oracle-scripts.net/data-guard-troubleshooting/ This post provides help troubleshooting a standby database (dataguard). This article covers the following problems: -Troubleshooting Log transport services -Troubleshooting Redo Apply services -Troubleshooting SQL Apply services -Common Problems -Log File ...
true
b3890ff21b0609055bc1f0b322be567fc24a8007
SQL
HRR49Team8/amazonReviews
/server/db/cassandra.cql
UTF-8
1,396
3.375
3
[]
no_license
CREATE KEYSPACE IF NOT EXISTS amazonreviews WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }; USE amazonreviews; DROP TABLE IF EXISTS reviews; DROP TABLE IF EXISTS products; DROP TABLE IF EXISTS users; CREATE TABLE products ( id int PRIMARY KEY, product_name VARCHAR ); CREATE TABLE us...
true
df6786509d1a343cbf7e9acdb3d92999309a3866
SQL
ThomasLeggat/fitness
/database/data.sql
UTF-8
2,159
3.90625
4
[]
no_license
/* Database script for workout tracking */ /* Create database */ DROP DATABASE IF EXISTS fitnessDB; CREATE DATABASE fitnessDB; USE fitnessDB; /* Create User Table */ DROP TABLE IF EXISTS userTB; CREATE TABLE userTB ( userID int(10) AUTO_INCREMENT NOT NULL, userName varchar(30) NOT NULL, CONSTRAINT userIDPK PRIMA...
true
187337658cb574f70d7670a08e405a18ea9d2699
SQL
dimaSkalora/OnlineShelterPet
/src/main/resources/db/populateDB.sql
UTF-8
1,506
2.921875
3
[]
no_license
DELETE FROM user_roles; DELETE FROM pets; DELETE FROM users; ALTER SEQUENCE global_seq RESTART WITH 100000; INSERT INTO users (name, email, password, downplay_weight) VALUES ('User', 'user@yandex.ru', '{noop}password', 0.2), ('Admin', 'admin@gmail.com', '{noop}admin', 0.3); INSERT INTO user_roles (role, user_id) ...
true
ecfd48f84b220ca0a22c64d80291797f71803d52
SQL
ekino/micronaut-demo
/microservices/user/src/main/resources/db/migration/V01__init.sql
UTF-8
282
3.40625
3
[ "MIT" ]
permissive
CREATE TABLE "user" ( id UUID NOT NULL, emailAddress VARCHAR(100) NOT NULL, firstName VARCHAR(100) NOT NULL, lastName VARCHAR(100) NOT NULL, age INTEGER NOT NULL, CONSTRAINT pk_user PRIMARY KEY (id) ); ALTER TABLE "user" ADD CONSTRAINT uk_user UNIQUE (emailAddress);
true
51b6e6984645cce1707b0d3798d267dbf363427e
SQL
NiferaLumzan/IncomeExpense
/daily_account.sql
UTF-8
4,512
3.453125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 15, 2017 at 11:13 AM -- Server version: 5.6.24 -- PHP Version: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
6a29c1d5894687beec7c27412ef62616c262408e
SQL
ghostall2010/pfe-v2
/src/java/pfe-v2.sql
UTF-8
9,334
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : Dim 14 juin 2020 à 17:19 -- Version du serveur : 10.4.10-MariaDB -- Version de PHP : 7.3.12 SET FOREIGN_KEY_CHECKS=0; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET t...
true
22bf3aceea2988be31ad871d79d926da10bab72f
SQL
viniciushrk/depae
/u504061722_rdd.sql
UTF-8
22,797
3.296875
3
[]
no_license
-- -- MySQL Script generated by MySQL Workbench -- -- Wed Jan 16 17:43:37 2019 -- -- 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=@...
true
60efe8bd01c342199b55456a53504c92faa000ff
SQL
Channing-Wang/Database2020
/8.sql
UTF-8
224
3.53125
4
[]
no_license
select c.champion_name from champ as c where c.champion_id not in ( select distinct t.champion_id from match_info as m, teamban as t where m.match_id = t.match_id and m.version like '7.7%' ) order by c.champion_name asc;
true
3b8adaf8bbcc412f85c7f908965e324adfa99cf5
SQL
hkoscielski/oracle-lab
/lista2/24.sql
WINDOWS-1250
688
3.53125
4
[]
no_license
--Zad. 24. Znale bandy, ktre nie posiadaj czonkw. --Wywietli ich numery, nazwy i tereny operowania. Zadanie rozwiza na dwa sposoby: --bez podzapyta i operatorw zbiorowych oraz wykorzystujc operatory zbiorowe. -- --NR BANDY NAZWA TEREN ----------- -------------------- --------------- -- 5 ROCKER...
true
428346593ce36214f5a8ad5af14af0f60b98bd4d
SQL
brianjbeach/aws-database-migration-samples
/mysql/sampledb/v1/schema/transfer_tickets.sql
UTF-8
2,974
3.890625
4
[ "Apache-2.0" ]
permissive
# # Copyright 2017 Amazon.com # # 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 applicable law or agreed to in writ...
true
5172e104cc1cc99dda064e37385a34f817285169
SQL
BrooklynWelsh/CS452_Weather_App
/createtables.sql
UTF-8
2,246
4.15625
4
[]
no_license
-- Code for dropping tables instead of the entire DB, kept just in case needed DO $$ DECLARE r RECORD; BEGIN -- This loop removes all tables in the current DB -- if the schema you operate on is not "current", you will want to -- replace current_schema() in query with 'schematodeletetablesfrom' -- *a...
true
7b2d14c6ee1368ca626b1a08eb62780a15622577
SQL
prism-hr/old-prism-server
/src/sql/change_scripts/0054_action_sequence.sql
UTF-8
11,954
3.296875
3
[]
no_license
alter table action add column action_sequence_start int(1) unsigned after visible_action, add column action_sequence_close int(1) unsigned after action_sequence_start, add index (action_sequence_start), add index (action_sequence_close) ; update action set action_sequence_start = false, ac...
true
d8c19734d21c7d258888c2d093c800586e1c1fad
SQL
DGov1234/Harmony
/main/App/Database/Report/Stored Procedures/GetAllEventsDetails_Central.sql
UTF-8
451
2.65625
3
[]
no_license
-- ============================================= -- Author: Victor Wang -- Create date: 05/13/2011 -- Description: This is to get all events for calendar. -- ============================================= CREATE PROCEDURE [Report].[GetAllEventsDetails_Central] -- Add the parameters for the stored procedure here...
true
01ca3c8c7d15cea0910aa55d781c2d56ea61c23e
SQL
CaptainColavin/TashSultana_Website
/TashSultana/database/staging.sql
UTF-8
488
3.34375
3
[ "MIT" ]
permissive
CREATE DATABASE IF NOT EXISTS TashSultana; USE TashSultana; CREATE TABLE IF NOT EXISTS users ( id SMALLINT NOT NULL, name VARCHAR(255), email VARCHAR(255), password VARCHAR(255), PRIMARY KEY (id) ); CREATE TABLE IF NOT EXISTS goldenbook ( id SMALLINT NOT NULL, date DateTime, text VARCHA...
true
fc44b7c5086e3243a76bad2632c5ce79b0f87f81
SQL
NicePlayOfU/leetcode
/sql/1549.the-most-recent-orders-for-each-product 产品最新订单/1.sql
UTF-8
519
4.40625
4
[]
no_license
# Link: https://leetcode-cn.com/problems/the-most-recent-orders-for-each-product SELECT `product_name`, `p`.`product_id`, `order_id`, `order_date` FROM `products` `p` JOIN (SELECT `o`.`product_id`, `o`.`order_id`, `o`.`order_date`, rank() OVER (PARTITION BY...
true
48e7c9c9b0e92620489eb62c7260eecb79c05155
SQL
violaxing/CSC343
/A3/schema.ddl
UTF-8
4,208
4.1875
4
[]
no_license
DROP SCHEMA IF EXISTS markus CASCADE; CREATE SCHEMA markus; SET search_path TO markus; CREATE TYPE Degree AS ENUM ('certificate', 'undergraduate', 'professional', 'masters', 'doctoral'); CREATE TYPE Skills AS ENUM ('SQL', 'Scheme', 'Python', 'R', 'LaTeX'); CREATE TYPE level AS ENUM ('1', '2', '3', '4', '5'); CREATE DO...
true
14deb337d2ca697cc1ce654a5a8f1a73bf95a3d2
SQL
Arya1818/bdi-web
/WebContent/jsp/db-test.sql
UTF-8
254
2.890625
3
[]
no_license
/* Drop Tables */ DROP TABLE USER_INFO CASCADE CONSTRAINTS; /* Create Tables */ CREATE TABLE USER_INFO ( UI_NUM number(10,0) NOT NULL, UI_NAME varchar2(100) NOT NULL, UI_AGE number(3,0) NOT NULL, PRIMARY KEY (UI_NUM) );
true
85ff3b120218baad423823114cd5144f931e2598
SQL
sifhoda/Mini-Projet
/miniprojet.sql
UTF-8
8,904
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : mer. 04 août 2021 à 10:01 -- Version du serveur : 10.4.11-MariaDB -- Version de PHP : 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SE...
true
d45b476452e950afc6e7f2f327d6e951de40e91b
SQL
rajeshsantha/DataStructuresAndAlgorithmsInScala
/src/com/concept/scala/hackerrank/sql/WeatherObservationStation15.sql
UTF-8
175
3.078125
3
[]
no_license
--https://www.hackerrank.com/challenges/weather-observation-station-15 select round(LONG_W,4) from STATION where LAT_N=(select max(LAT_N) from STATION where LAT_N<=137.2345);
true
1c1e1448fa05901e1829da66ccd42997b5957bd1
SQL
kumc-bmi/i2p-transform
/Oracle/provider.sql
UTF-8
1,663
3.65625
4
[ "MIT" ]
permissive
/** provider - create and populate the provider table. */ insert into cdm_status (task, start_time) select 'provider', sysdate from dual / BEGIN PMN_DROPSQL('DROP TABLE provider'); END; / CREATE TABLE provider( PROVIDERID varchar(50) NOT NULL, PROVIDER_SEX varchar(2) NULL, PROVIDER_SPECIALTY_PRIMARY varch...
true
6a9fe2fefefa8165b89ff3dad18f31014bb4eb97
SQL
Telefonica/rural-planner
/sql/pe/v_coberturas_clusters.sql
UTF-8
2,792
3.984375
4
[]
no_license
CREATE OR REPLACE VIEW {schema}.v_coberturas_clusters as ( SELECT D.centroid, N.centroid_name, D.competitors_presence_2g, D.competitors_presence_3g, D.competitors_presence_4g, D.cluster_weight FROM ( SELECT DISTINCT ON(C.centroid) C.centroid, CASE WHEN C.cluster_weight = 0 THEN 0 ELSE ROUND(SUM(population_competito...
true
c7d164218dbe9eb93a260b0b6ca0b8edcccee272
SQL
georgevasile/demo
/sablon_yii2.sql
UTF-8
28,100
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 05, 2021 at 02:11 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
5a8a6c360f95026e2fd0a688264c4eec7fd357d5
SQL
itspraveenkp/SQL-Server
/Snapshot isolation leve.sql
UTF-8
745
2.96875
3
[]
no_license
--Transaction 1 use UAT Set transaction isolation level serializable Begin Transaction update TBLINVENTORY set ITEMINSTOCK = 5 where id= 1 waitfor delay '00:00:10' commit transaction -- Transaction 2 Set transaction isolation level serializable Select ItemInStock from tblInventory where Id = 1 --Transaction 1 Se...
true
9018f471a1364774bc0d6bbf7eb6baa6169056e0
SQL
ljy607/drugstore
/sql/20140325.sql
UTF-8
825
2.765625
3
[]
no_license
--SELECT SUBSTRING(tt.BZ,Len(tt.bz),1),SUBSTRING(tt.BZ,1,Len(tt.bz)-1),tt.FLAG ----UPDATE tt ----SET tt.FLAG=SUBSTRING(tt.BZ,Len(tt.bz),1),tt.bz = SUBSTRING(tt.BZ,1,Len(tt.bz)-1) --FROM T_TKDZB tt --WHERE tt.FLAG > 200 --SELECT SUBSTRING(tt.BZ,Len(tt.bz),1),SUBSTRING(tt.BZ,1,Len(tt.bz)-1) --UPDATE tt --SET tt.YXBZ=S...
true
efa1639c44023070512cb54070995a54c2222197
SQL
b1XarN/MatrizFODA
/bd_foda.sql
UTF-8
1,413
3.109375
3
[]
no_license
drop database if exists bdfoda; create database bdfoda; use bdfoda; create table USUARIO( loginU varchar(30), nombresApellidos varchar(60), DNI char(8), direccion varchar(60), telefono varchar(60), correo varchar(60), contra varchar(60), tipo varchar(60), primary key(loginU) ); cre...
true
9fef47ed79ceefadc7d1cb11ef02b771bb756f8b
SQL
MierX/XX_DeliciousFood
/Public/df.sql
UTF-8
6,141
3.125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : me Source Server Type : MySQL Source Server Version : 80012 Source Host : localhost:3306 Source Schema : df Target Server Type : MySQL Target Server Version : 80012 File Encoding : 65001 Date: 06/01/2020 10:12:50 */ SET...
true
f84449a77e34e4a71e38dc65ae08aa15089c5b1c
SQL
PanQihang/BSTMS
/database.sql
UTF-8
9,116
3.25
3
[]
no_license
/* SQLyog Ultimate v12.09 (64 bit) MySQL - 5.7.15-log : Database - frame ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHEC...
true
5ba5d4784c87fa6e8894f2287ee8792d212f53ea
SQL
GibranMo/MyClient
/sql/Gifts.sql
UTF-8
1,886
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.6 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 10, 2018 at 06:03 AM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.1.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
7d48ba45c5586a286f980703d1d75f046a79b4d2
SQL
KelvinRonaldo/BancoDeDadosMySQL
/EXEMPLOS BANCO DE DADOS.sql
UTF-8
10,375
3.609375
4
[]
no_license
CREATE TABLE tbl_ator( cod_ator INT NOT NULL PRIMARY KEY AUTO_INCREMENT, nome_ator VARCHAR(100) NOT NULL, data_nascimento DATE NULL, biografia TEXT ); CREATE TABLE tbl_filme( cod_filme INT NOT NULL PRIMARY KEY AUTO_INCREMENT, titulo_filme VARCHAR(100) NOT NULL, duracao_filme TIME NOT NULL, ano_lancamento YEAR NOT NULL...
true
6d260edf42cf6a6b6af9c092c5e95fe2268f8efc
SQL
Mikel-Solla/Bases_SQL
/Select_Operadores_Set.sql
UTF-8
2,453
4.1875
4
[]
no_license
--3 /*Añade a la tabla EMPLEADOS una restricción de integridad referencial para el departamento.*/ ALTER TABLE EMPLEADOS ADD CONSTRAINT EMP_DEPART_FK FOREIGN KEY (DPTO_COD) REFERENCES DEPARTS(DEPT_NO); DESC USER_CONSTRAINTS; --4 /*Añade a la tabla DEPARTS una columna denominada PRESUPUESTO. Los presupuestos de los ...
true
1b51a3cc718ce4dd02a902ea06efeda869900efa
SQL
AleChirinos/Ejemplo-Cuarentena-
/Clase 5/Consultas.sql
UTF-8
1,860
4.03125
4
[ "MIT" ]
permissive
use restaurant; /*EJERCICIO 1*/ /*Con "select"*/ select name from ingredients where vendorid = ( select vendorid from vendors where companyname = 'Veggies_R_Us' ); /*Con "Inner join"*/ select name from ingredients inner join vendors on ingredients.vendorid = vendors.vendorid && vendors.companyname = 'Veggies...
true
cefc927b443d2f4347075725908f80541f1b5a61
SQL
tprlab/teamworld
/sql/pg_create.sql
UTF-8
4,364
3.796875
4
[]
no_license
CREATE TABLE usr(id SERIAL PRIMARY KEY, name VARCHAR(32) UNIQUE, email VARCHAR(32) UNIQUE, regged BIGINT DEFAULT 0, status INT NOT NULL DEFAULT 1, enabled INT NOT NULL DEFAULT 1 , pwd VARCHAR(512) ); CREATE TABLE uperm(id SERIAL PRIMARY KEY, otype VARCHAR(12), oid INT NOT NULL, ...
true
c8cf50f54a6c28732c4401060e207aa5e0bd1f75
SQL
chiestroud/Chinook
/sqlFile/1-non_usa_customers.sql
UTF-8
211
3.1875
3
[]
no_license
-- non_usa_customers.sql: Provide a query showing Customers (just their full names, customer ID and country) who are not in the US. select FirstName, LastName, Country from Customer where Country NOT IN ('USA')
true
1c67e2af70bba437c38e8ea14f6deea930e8c9a5
SQL
GuilhermeViveiros/N.png
/Functions/PodeIrAula.sql
UTF-8
791
3.21875
3
[]
no_license
CREATE DEFINER=`root`@`localhost` FUNCTION `PodeIrAula`(idC int, idA int, inicio DateTime, fim DateTime) RETURNS int(11) READS SQL DATA DETERMINISTIC BEGIN declare result int; set @pacote = (select idPacote from Cliente_tem_Pacote where idCliente=idC); set @lotacao = (select Lotação from Aula where idAula...
true
6a0e5bdc8e46da15ce5ff3e388cb4e10e6ddcf88
SQL
CaronFrederic/ngouboughaziprojectpiscineing3
/EbayECE-2.sql
UTF-8
7,738
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Apr 16, 2020 at 01:30 AM -- Server version: 5.7.26 -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
f6b29cbd831ba92af56d7d03fc09a2baedc66f5b
SQL
cornsmith/SQLServer
/Tuning/IX_GetMissingIndexDetails.sql
UTF-8
598
3.671875
4
[]
no_license
SELECT d.[object_id], s = OBJECT_SCHEMA_NAME(d.[object_id]), o = OBJECT_NAME(d.[object_id]), d.equality_columns, d.inequality_columns, d.included_columns, s.unique_compiles, s.user_seeks, s.last_user_seek, s.user_scans, s.last_user_scan, s.avg_total_user_cost, s.avg_user_impact FROM sys.dm_db_missin...
true
9ab0a90bcf03034154cd542e74075e2a96371054
SQL
iulspop/launch_school_courses
/courses/LS180/theater_queries.sql
UTF-8
942
4.46875
4
[]
no_license
SELECT count(id) FROM tickets; SELECT count(DISTINCT(customer_id)) FROM tickets; SELECT round( (SELECT count(DISTINCT(customer_id)) FROM tickets)::decimal / (SELECT count(customers.id) FROM customers)::decimal * 100, 2) AS percent; SELECT events.name, count(tickets.id) AS popularity ...
true
d19915347a3e546d97700577a289906447e4ca8e
SQL
ronaldb/DavidLeeBot-TT-Bot
/SQL Tables/BACONFACTS.sql
UTF-8
3,374
3.140625
3
[ "MIT" ]
permissive
-- MySQL dump 10.13 Distrib 5.1.41, for debian-linux-gnu (i486) -- -- Host: localhost Database: nodejs_davidleebot -- ------------------------------------------------------ -- Server version 5.1.41-3ubuntu12.6 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS...
true
f872abfc94eb34c9a5e7751db1c483741f6e0ab4
SQL
RizqMahendra/simasar
/database/db_pasar.sql
UTF-8
1,544
3.390625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS db_pasar; CREATE TABLE Pasar ( ID_Pasar VARCHAR(5), nama_pasar VARCHAR(35), lokasi VARCHAR(50), jenis_pasar VARCHAR(10), foto_pasar VARCHAR(20), deskripsi_pasar VARCHAR(500), PRIMARY KEY (ID_Pasar) ); CREATE TABLE Kategori_Kios ( id_katkios VARCHAR(5), jenis_kios VARCHA...
true
99c5ddb3a96e760c697cfc7fefb5f5e91f3feb22
SQL
AimeeLiu01/SQL
/50questions/18.sql
UTF-8
134
3.140625
3
[]
no_license
select * from sc where ( select count(*) from sc as a where sc.cid = a.cid and sc.score<a.score ) < 3 order by cid asc, sc.score desc;
true
feee3b172620fec4d0c203ca8e2577b28d36a651
SQL
desanlesr95/AnalizadorLexico
/Capturas y Base de Datos/base.sql
UTF-8
3,013
2.53125
3
[]
no_license
create database lexicos; use lexicos; create table componentes(componente varchar(30) primary key,clase int,tipo text); insert into componentes values("PROGRAMA",1,"Direccion Tabla Reservada"); insert into componentes values("VAR",1,"Direccion Tabla Reservada"); insert into componentes values("INCLUYE",1,"Direccion T...
true
92c5ccc0f219a39fa75ca93164c96b59d0e58783
SQL
Meadrinker/mars
/mars.sql
UTF-8
7,405
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Czas generowania: 25 Mar 2020, 17:22 -- Wersja serwera: 5.7.26-0ubuntu0.18.04.1 -- Wersja PHP: 7.2.17-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
3145bb11e59b7a8e4f04c5a6db781fce80091091
SQL
jkstill/oracle-script-lib
/sql/showdiscon.sql
UTF-8
726
3.53125
4
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
@clears col constraint_name format a30 col table_name format a30 col constype format a10 col owner format a15 head 'OWNER' set line 100 set echo off set verify off col cowner new_value uowner noprint prompt prompt Show disabled constraints for which user? prompt ( partial names ok ) prompt set feed off term off s...
true
4d61fd13fcb87b08e8a446bfc9e2b892ff9ae782
SQL
Pathik1973Git/MyFirstRepo
/db_Test/DB_SSISDB/internal/Tables/execution_data_taps.sql
UTF-8
700
3.1875
3
[]
no_license
CREATE TABLE [internal].[execution_data_taps] ( [data_tap_id] BIGINT IDENTITY (1, 1) NOT NULL, [execution_id] BIGINT NOT NULL, [package_path] NVARCHAR (MAX) NULL, [dataflow_path_id_string] NVARCHAR (4000) NULL, [dataflow_task_guid] ...
true
ea0729c9d7765d1000b43be1f206a09697d8c022
SQL
wf-oadenaike/TestProject
/TestDBProject/Compliance/Tables/ComplaintsRegister.sql
UTF-8
3,042
2.6875
3
[]
no_license
CREATE TABLE [Compliance].[ComplaintsRegister] ( [ComplaintRegisterId] INT IDENTITY (1, 1) NOT NULL, [ComplainantClientName] VARCHAR (128) NOT NULL, [PartyComplaintAgainst] VARCHAR (2048) NOT NULL, [ReferenceNumbers] VARCHAR (2048) NULL, [Complaint...
true
4b833c0d887e6d3cd7dd51c778756ae3e9a2f9c1
SQL
loooooooo123/one-piece
/node/koa/sql/users.sql
UTF-8
920
2.890625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : huati Source Server Version : 50505 Source Host : localhost:3306 Source Database : huati Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2018-08-01 09:19:22 */ SET FOREIGN_KEY_CHECKS=0; -- -------...
true
9a11ad7b6e7d124e432866adc4b607297a1eaf3e
SQL
Pablorg99/UCO-Practices
/Segundo/BD/Prueba_Tipo.sql
UTF-8
2,005
4.21875
4
[]
no_license
--1. Mostrar el nombre de la localidad y su número de habitantes para el votante con menor edad SELECT l.nombre, l.numerohabitantes FROM votantes v, localidades l WHERE v.localidad = l.idlocalidad AND v.dni = ( SELECT dni FROM votantes WHERE fechanacimiento = (SELECT MAX(fechanacimiento) FR...
true
56c93ff3e61037aeada5c5aa975205ddf914254a
SQL
LabKey/wnprc-modules
/WNPRC_EHR/resources/queries/study/demographicsObs.sql
UTF-8
1,270
3.75
4
[ "Apache-2.0" ]
permissive
/* * Copyright (c) 2010-2015 LabKey Corporation * * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 * */ /* * This query defines an extension on the Id column that other queries can use as an automatic lookup, and is * added in WNPRC_EHRCustomizer.java. It gi...
true
e71c0bdb9b5cfe4fed17dc26987a1fdf0e57c4b6
SQL
arodpes/BAE
/08ConsultasMultiplesYUniones/Ejercicios/00tablaspruebaCrearMysql.sql
IBM852
437
2.84375
3
[]
no_license
use tablasprueba; drop table if exists Tabla1; CREATE TABLE Tabla1 (ID INT, Valor1 VARCHAR(10)); INSERT INTO Tabla1 (ID, Valor1) values (1,'Primero'), (2,'Segundo'), (3,'Tercero'), (4,'Cuarto'), (5,'Quinto'); drop table if exists Tabla2; CREATE TABLE Tabla2 (ID INT, Valor2 VARCHAR(10)); INSERT INTO Tabla2 ...
true
3e04bfccc4bd78d776c0cb49f3c52b2ae2f55644
SQL
emaprojects/EmaCovidFeasibility
/inst/sql/sql_server/table_linkage.sql
UTF-8
463
3.5625
4
[]
no_license
/********* LINKAGE_CHECKS get number of persons and events in cdm table Parameters used in this template: cdmDatabaseSchema = @cdmDatabaseSchema cdmTableName = @cdmTableName cdmFieldName = @cdmFieldName **********/ SELECT 'PERSON.@cdmTableName' AS linking_table, COUNT_BIG(DISTINCT p.person_id) AS PERSONS, COUNT_BIG(D...
true
627fe52baaf56244d36c9d586fbee5d29b80df0c
SQL
The-Ark-Informatics/ark
/ark-database/db-scripts/migration/WagerLIMSExtractionForComparison.sql
UTF-8
9,009
3.15625
3
[]
no_license
SET @STUDY_GROUP_NAME = 'GUARD'; SET @STUDYKEY = 29; SET @STUDYNAME= 'GUARD'; SET @NEWSTUDYKEY = 29; SET @COPYFROMSTUDYKEY = 17; SET @SEARCHNAME1 = 'Biospecimen Detailed Report'; SET @SEARCHNAME2 = 'Locations Info Only'; SET @SEARCHNAME3 = 'Biospecimen Custom Fields'; -- SET @STUDYKEY = 17;17waffs 24vus /* select ...
true
cdf84bdaa885513c554259d00c1dbd409124638f
SQL
Sonam-Bhosale/Venuefinder
/Database/venuefinder 11 march.sql
UTF-8
16,356
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 10, 2020 at 09:00 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 5.6.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
c3bb41b98bef4e7d723a96f74c00ce9ca90b24d0
SQL
ThayerMDSG/paxdelay_general
/sql/mysql/load_data/m_CreateT100MarketsTable_load.sql
UTF-8
874
3.078125
3
[]
no_license
LOAD DATA INFILE '/export/mysql/import/T100D_Market_US_Carrier_2007.csv' INTO TABLE t100_markets FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' IGNORE 1 LINES ( passengers, freight, mail, distance, unique_carrier, airline_id, unique_carrier_name, unique_carrier_entity, region, ca...
true
014b950f6e0d63d64cbcd790aaa39ac341283265
SQL
RaihaanR/event-kiwi
/backend/sql/auth/userFromToken.sql
UTF-8
159
2.984375
3
[]
no_license
SELECT * FROM "users" INNER JOIN ( SELECT "user_id" FROM "tokens" WHERE "val" = ${token} ) AS "tokens" USING ("user_id")
true
ede8c7d2ceab98bb2b8e5567d5bb187e3fdda81b
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/tables/MIG_SIN_TRAMITA_CITACIONES.sql
ISO-8859-1
3,269
3.21875
3
[]
no_license
-------------------------------------------------------- -- DDL for Table MIG_SIN_TRAMITA_CITACIONES -------------------------------------------------------- CREATE TABLE "AXIS"."MIG_SIN_TRAMITA_CITACIONES" ( "NCARGA" NUMBER, "CESTMIG" NUMBER, "MIG_PK" VARCHAR2(14 BYTE), "MIG_FK" VARCHAR2(14 BYTE), "NSI...
true
790324e1e8edd0beccef62a04c39cc1413654b1f
SQL
claudiomoscoso/timectrl-web
/WebContent/WEB-INF/sql/R1.2.15/sp-pFieldsCalculation-1.2.15.sql
UTF-8
19,528
4.0625
4
[]
no_license
DELIMITER $$ /** select * from tattendancelog where cemployeekey='305' and date(cdate) between date('2015-02-26') and date('2015-03-03') and cmarktype in (1,4) order by cdate ; */ DROP FUNCTION IF EXISTS fStartMark; CREATE FUNCTION fStartMark( vEmployeeKey VARCHAR(20), vTolerance INTEGER, vCurrent DATE...
true
63c4e31c4053c13b26648264ff55819f34460b9b
SQL
rhymin90/bbb-backend
/src/main/resources/db/migration/V1.3.0__create_candidates_table.sql
UTF-8
556
3.09375
3
[]
no_license
create table candidates ( id bigserial primary key, firstName text not null, lastName text not null, age int not null, location text not null, job text not null, info text not null, episode int, image text not null ); insert into candidates (id, firstName, lastName, age, location, job, info, episode,...
true
c923dc4bbfcebe38f0667a516ce2109738a085ff
SQL
wrrrg/bamazon
/initialSchema.sql
UTF-8
241
3.046875
3
[]
no_license
DROP DATABASE IF EXISTS bamazon; CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products( id int not null auto_increment, product_name varchar(50) not null, price int default 0, stock_quantity int default 0, PRIMARY KEY (id) );
true
4093a8e62186946ba6fcedf4045fce738006c14a
SQL
LiuXin19996/shop-ssh
/shop/src/shop.sql
UTF-8
58,589
3.265625
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 80011 Source Host : localhost:3306 Source Schema : shop Target Server Type : MySQL Target Server Version : 80011 File Encoding : 65001 Date: 14/10/2019 19:43...
true
18bd60b0a89248d8a14949724507f436610b63bd
SQL
HHA-GAIL/NLP-HomeHealthAssistant
/resources/SQL/Dump/gale_routines.sql
UTF-8
3,020
3.265625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `gale` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `gale`; -- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: localhost Database: gale -- ------------------------------------------------------ -- Server version 5.7.14-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
4ff94a015ca5b958947d91f86ffc4a4be54366d1
SQL
leorondeau/sql-nss
/book-2/chap-4.sql
UTF-8
4,744
4.4375
4
[]
no_license
--Book 2 chap-4 --Produce a report that lists every dealership, --the number of purchases done by each, and the number of leases done by each. select d.business_name, COUNT(CASE WHEN st.name = 'Lease' then 1 END) AS sales_type_lease, COUNT(CASE WHEN st.name = 'Purchase' then 1 END) AS sales_type_purchase FROM d...
true
9558048499c043267c9174014c5f198b88f22b37
SQL
AlbertoConejo7/SISDI-2021
/src/test/java/DataBase Files/funciones.sql
UTF-8
22,623
3.6875
4
[]
no_license
USE `SISDI`; DELIMITER ; CREATE TABLE IF NOT EXISTS `SISDI`.`T_DELETEDOFFICES`( OFFICENUMBER varchar(45) NOT NULL, USER varchar(45) NOT NULL, Date DATETIME NOT NULL ); USE `SISDI`; DROP procedure IF EXISTS insertOffice; DELIMITER $$ USE `SISDI`$$ CREATE PROCEDURE insertOffice (IN offNumber VARCHAR(45),IN reason VARCHA...
true
872341e2596fbb2a404ce11b1c7b34e4329a159c
SQL
AustinRWright/ECE356-FinalProject-SocialMediaNetwork
/PersonPostView.sql
UTF-8
2,481
3.34375
3
[]
no_license
CREATE ALGORITHM = UNDEFINED DEFINER = `monty`@`%` SQL SECURITY DEFINER VIEW `SocialNetworkDB`.`PersonPostView` AS SELECT `SocialNetworkDB`.`PostTable`.`UserID` AS `UserID`, `SocialNetworkDB`.`PostTable`.`PostID` AS `PostID`, `SocialNetworkDB`.`PostTable`.`Text` AS `Text`, ...
true
7e657fea019e9d9aeaf1e433c382cdc5e51582a0
SQL
pisdoktor/mezun
/sql/mezun.sql
UTF-8
11,773
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.4 -- http://www.phpmyadmin.net -- -- Anamakine: 127.0.0.1 -- Üretim Zamanı: 03 Tem 2015, 19:17:16 -- Sunucu sürümü: 5.6.15-log -- PHP Sürümü: 5.6.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
989e43390eb91d4af7cdcf162342ce030d475398
SQL
panicoro/BaseDatos2018
/lab1/consultas/consulta-i/test-1.sql
UTF-8
6,027
3.203125
3
[]
no_license
-- -------------------------------------------------------------------- -- TEST CASE: Successful listing of films directed by two or more women. -- DESCRIPTION: -- The INSERT necessary to perform the query are added. -- You get the id and title of the movies. -- --------------------------------------------------------...
true
49d2ac493ab124aef7eb1c6dcbfc9a6ad2b16c36
SQL
liuxiaoyudian/LightDB
/samples/input/query59.sql
UTF-8
64
2.671875
3
[]
no_license
SELECT R.G, S.A, R.H FROM Reserves R, Sailors S WHERE R.G = S.A;
true
8efd8d6b0c4cf4b71440cca57dead25924eacab2
SQL
MicheasRosenkreuz/DBS-2017
/cv_filmy/FilmySQL.sql
WINDOWS-1250
3,311
4.21875
4
[]
no_license
-- 1. Najdte nzvy film, kter reroval Steven Spielberg. SELECT nazev from Film where reziser='Steven Spielberg' -- 2. Najdte vechny roky film, kter maj hodnocen 4 nebo 5 a seate je vzestupn. select distinct rok from Film join Hodnoceni on Film.id_film=Hodnoceni.id_film where hodnoceni=4 or hodnoceni=5 order by rok -- 3...
true
d1ea57916e787eb5be481c13f9b9b4c18c3b8445
SQL
denisdiaconu/SQL-ex
/main.sql
UTF-8
11,577
3.984375
4
[]
no_license
-- Basics - 1 SELECT population FROM world WHERE name = 'Germany' -- Basics - 2 SELECT name ,population FROM world WHERE name IN ('Sweden', 'Norway', 'Denmark'); -- Basics - 3 SELECT name ,area FROM world WHERE area BETWEEN 200000 AND 250000 -- From world - 1 SELECT name ,continent ...
true
2ccb7cd3d3ac36e4fde0766dbefe4cca54084fd4
SQL
AlmasHosssain/Database-Oracle-
/FUNCTION_ALL.SQL
UTF-8
340
2.671875
3
[]
no_license
CREATE OR REPLACE FUNCTION KOP(AREA NUMBER) RETURN NUMBER IS PI CONSTANT NUMBER(7,3):=3.1416; TOT NUMBER(7,3); BEGIN TOT:=PI * AREA * AREA; RETURN TOT; END; / SET SERVEROUTPUT ON; BEGIN DBMS_OUTPUT.PUT_LINE(KOP(25)); END; / DECLARE V_KOP NUMBER; BEGIN V_KOP:= KOP(30); DBMS_OUTPUT.PUT_L...
true
21f555ee4ae75d11180471ebd9d92da32261c4a5
SQL
Tuscann/Databases-Basics---MySQL---2017
/21.Sample Exam - 12 October 2016/1.Insert data into the following tables.sql
UTF-8
758
3.875
4
[]
no_license
#1. Insert data into the following tables INSERT INTO deposit_types VALUES (1,'Time Deposit'), (2,'Call Deposit'), (3,'Free Deposit'); INSERT INTO deposits(amount, start_date, end_date, deposit_type_id, customer_id) SELECT CASE WHEN c.date_of_birth > DATE('1980-01-01') THEN 1000 ELSE 1500 END + CASE WHEN c.gen...
true
634998d650485ce12039ff750ae0927d229dfb0f
SQL
NicolaeBasso/DB-Basso-Nicolae
/LAB4/query-ex-21.sql
UTF-8
257
3.390625
3
[]
no_license
SELECT s.nume_student, s.prenume_student, count(sr.nota) nota_totala FROM studenti AS s, studenti_reusita AS sr WHERE s.id_student = sr.id_student GROUP BY s.nume_student, s.prenume_student, sr.id_student ORDER BY s.nume_student, s.prenume_student;
true
b75b2d5f62a63979fb494980fc926f83c9aba9ef
SQL
tereva/anubis
/fulltext_search.sql
UTF-8
304
3.015625
3
[]
no_license
SELECT * FROM sites WHERE MATCH(description,kw,title) AGAINST('frigo') SELECT * FROM sites WHERE MATCH(description,kw,title) AGAINST('hotel fakarava') => recherche les lignes dont desc,kw OU title contien fakarava CREATE FULLTEXT INDEX searchindex ON Entries(title, tags, entry); show index from sites
true
0c45b6b2d8ba17dea5a10e6abb23b3254fe89e3f
SQL
dylancressy/Movie-Project
/populate_liafx.sql
UTF-8
1,215
2.90625
3
[]
no_license
INSERT INTO `users` (`user_id`, `user_name`, `user_email`, `user_pass`) VALUES (1, 'test', 'test@testmail.com', '202cb962ac59075b964b07152d234b70'), (2, 'charlesli', '123@bc.edu', '040b7cf4a55014e185813e0644502ea9'), (3, 'alabama amba', 'alabma@bc.edu', 'c96dd568316deb9d8c7dec73b4c27cbb'), (4, 'pikachu', 'pika@bc.edu',...
true
4471cf24fb26692151d159f1f3f12120442a35d2
SQL
mikeven/argyros_admin
/docs/mgideasn_argyros.sql
UTF-8
93,576
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 22-12-2017 a las 22:44:51 -- Versión del servidor: 5.7.11 -- Versión de PHP: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
true
63a20becdbfc68a2597117d9cea895c896b0c4ac
SQL
radtek/abs3
/sql/mmfo/bars/Data/TMP_Z_POLIS_DATACOBUMMFO-8410.sql
WINDOWS-1251
26,276
2.890625
3
[]
no_license
prompt ... -- Create table begin execute immediate 'create table TMP_Z_POLIS ( a1 VARCHAR2(20), a2 VARCHAR2(500), a3 VARCHAR2(20), a4 VARCHAR2(20), a5 VARCHAR2(20), a6 VARCHAR2(20), a7 VARCHAR2(20), a8 VARCHAR2(20) ) tablespace BRSDYND pctfree 10 initrans 1 maxtrans 255 ...
true
a10912af73654ba1bfe0f1de06f5d345cdcd57f0
SQL
paragsaraf/FruitBazar
/vegetble-fruit-shop.sql
UTF-8
4,141
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 20, 2008 at 03:16 AM -- Server version: 5.5.8 -- PHP Version: 5.3.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SE...
true
8e506d247df646ed5844ab5c08330ee852777a9d
SQL
wqxdoc/sht
/db/sql/sql-2017-09-29.sql
UTF-8
1,107
3.125
3
[]
no_license
级别: goods模块需立即更新:goods users模块需立即更新:users admins模块需立即更新:admins 全部模块都需立即更新:alls 可忽略的,暂时可不更新的:ignoreable /** * 21:33 alls */ /*添加goods字段*/ ALTER TABLE goods ADD (toprovince NVARCHAR2(20), tocity NVARCHAR2(20), tocounty NVARCHAR2(20), todetail NVARCHAR2(40), phone NVARCHAR2(20), torealname NVARCHAR2(20), POS...
true