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
3d1c87f3f7bbf4efa492409e1b0f7a86b97a857d
SQL
OrionDB/F-TDA
/db_cif2.sql
UTF-8
6,031
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.4 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Mer 08 Juin 2016 à 15:10 -- Version du serveur : 5.6.15-log -- Version de PHP : 5.6.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_S...
true
09ae550928b91f5491e8fb55aed58c60f5cfd1c0
SQL
quyixiao/spring-boot-study
/src/main/resources/test_user.sql
UTF-8
2,984
2.65625
3
[]
no_license
CREATE TABLE `lz_test_user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id', `is_delete` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否删除', `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '生成时间', `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', `type` int(11) D...
true
ac0fe80ab7a08723e79deba233aac942c931af2c
SQL
amritesh19/Hackon
/new_project.sql
UTF-8
6,059
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 28, 2021 at 09:00 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
b6209e4d1d2762f01c3629ba84df9308bf4b2688
SQL
pavel-voinov/oracle-dba-workspace
/scripts/reports/tempfiles.sql
UTF-8
785
2.90625
3
[ "MIT" ]
permissive
/* */ @@reports.inc column file_id format 990 heading "ID" column file_name format a75 heading "File name" column tablespace_name format a20 heading "Tablespace name" column size_mb format 999,999,990 heading "Size, MB" column increment_by_mb format 999,999,990 heading "Increment by, MB" column max_size_mb format 999,...
true
c78fce12e6e426410fb35015678f1512afd36249
SQL
catlizard/eitf05
/eitf05_2015-10-16.sql
MacCentralEurope
2,488
3.25
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4499 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Vrd: 127.0.0.1 (MySQL 5.6.23) # Databas: eitf05 # Genereringstid: 2015-10-16 05:58:28 +0000 # ***************************************************...
true
568853afd67f806a35fc7b73867bb7507c87572a
SQL
Sanuho/inventory
/inventory.sql
UTF-8
27,761
3.0625
3
[]
no_license
/* SQLyog Community v13.1.1 (64 bit) MySQL - 10.1.33-MariaDB : Database - inventory ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECK...
true
ed02a39183b1ccc82ac84c1f1ba0226a3f4a5dff
SQL
anakhleh/Hackathon_app
/Dump20180415/ajmanora_alex_reviewedBy.sql
UTF-8
3,404
3.46875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `ajmanora_alex` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `ajmanora_alex`; -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: alexmanor.com Database: ajmanora_alex -- ------------------------------------------------------ -- Server version 5.6.23-cll-lve /*!40101 ...
true
c99ac489721030bdd42f7f4fdb5a18d761c7dba9
SQL
gladiopeace/digital-data-syn
/documents/oms/TB_INVBI.SQL
UTF-8
2,417
2.890625
3
[]
no_license
/* ================================================================================ 表结构代码:TB_INVBI 表结构名称:调拨收货条码表 表结构目的:局部表 ================================================================================ */ drop sequence SEQ_TB_INVBI; drop index AK_TB_INVBI; drop table TB_INVBI; create table TB_INVBI ( ...
true
391827380d009f2df4e685594d7d31f92556842a
SQL
sendinee/Projet_PHP
/mabase.sql
UTF-8
431
2.875
3
[]
no_license
drop database if exists mail; create database mail; use mail; create table mail( id_mail int(5) not null auto_increment, nom_prenom varchar(60), email varchar(50), texte varchar(300), date DATETIME not null default current_timestamp, new tinyint not null, primary key(i...
true
f7454165c67c58243c1388714e6bef8e628c52e1
SQL
ClJarvis/learning-sql
/22.sql
UTF-8
119
3.015625
3
[]
no_license
SELECT C.SupportRepId AS SalesAgent, COUNT(C.CustomerId) AS NumberOfCustomers FROM Customer C GROUP BY C.SupportRepId
true
6ca701eb48d421e5a98f1500ca20507eebda3880
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day12/select1854.sql
UTF-8
178
2.671875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-11T18:54:00Z' AND timestamp<'2017-11-12T18:54:00Z' AND temperature>=19 AND temperature<=75
true
f2fa4072e63b62d86924d493eca9ac01906d8f60
SQL
AvilaPro/msq1nivel
/clase3/clase2.sql
UTF-8
4,711
3.25
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `clase2` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `clase2`; -- MySQL dump 10.13 Distrib 5.6.13, for Win32 (x86) -- -- Host: 127.0.0.1 Database: clase2 -- ------------------------------------------------------ -- Server version 5.7.11 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
true
3399ac0837b0e3402c88e441349264772aad4549
SQL
aahchn/Database-Systems
/Lab3/createview.sql
UTF-8
456
3.609375
4
[]
no_license
-- Aaron aahchan -- createview.SQL CREATE VIEW CA_NY_Passengers AS SELECT T.CustID, T.AirlineID, T.FlightNum FROM Tickets T, Flights F WHERE T.FlightNum = F.FlightNum AND T.AirlineID = F.AirlineID AND F.Origin IN (SELECT A.AirportID FROM Airports A WHERE A.State =...
true
fb55b1741486071e145fc925849f711712a3890b
SQL
richardgutkowski/EDMC-CDMC-v1-14-Control_Mapping
/Corp_01_Init.sql
UTF-8
2,357
3.328125
3
[ "Apache-2.0" ]
permissive
------- -- Corp_01_Init.sql ------- use role useradmin; create role CORP_DBA; grant role CORP_DBA to user <YOUR_USERNAME>; -- you need this role to continue set up create role CORP_BIZ_OWNER; grant role CORP_BIZ_OWNER to user <YOUR_USERNAME>; -- you need this role to continue set up create role CORP_BIZ_USER; crea...
true
0e03d39bb2df5d12161929b85b375324c8b0da34
SQL
SQLcl/Oracle-dba
/calculate_sql_time.sql
UTF-8
749
2.75
3
[]
no_license
-------------------------------------------------------- -- Date : 2020/03/21 -- Owner : SQLcl -- ver : 1.00 -------------------------------------------------------- select percent ||' %' percent, elapsed_seconds, remaining_second, sid, qcsid, target_desc, username, opname, targe...
true
1929556a33a153061bc67fa93ef737b998bcfb7f
SQL
selgho23/BootCamp_Homework
/SQL_homework/schema.sql
UTF-8
2,292
3.578125
4
[]
no_license
drop table if exists "department_employee"; drop table if exists "department_manager"; drop table if exists "Salaries"; drop table if exists "Titles"; drop table if exists "Departments"; drop table if exists "Employees"; -- Create tables CREATE TABLE "Departments" ( "id" varchar NOT NULL, "department_name...
true
0134e2842236e639c7301b6c59a50a14a8d7f525
SQL
CUBRID/cubrid-testcases
/sql/_23_apricot_qa/_02_performance/_02_function_based_index/cases/function_based_index_function_IFNULL.sql
UTF-8
4,333
3.09375
3
[ "BSD-3-Clause" ]
permissive
--+ holdcas on; set system parameters 'dont_reuse_heap_file=yes'; create table t1( a char(1200), b varchar(1200), c nchar(1200), d NCHAR VARYING(1200), e BIT(1200), f BIT VARYING(1200), g int, h SMALLINT, i BIGINT, j NUMERIC, k FLOAT, l DOUBLE, m MONETARY, n DATE, o TIME, p TIMESTAMP, q DATETIME); i...
true
d605b95fbdd3928a3108e8d2460ad8821c0c804c
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day26/select0458.sql
UTF-8
178
2.625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-25T04:58:00Z' AND timestamp<'2017-11-26T04:58:00Z' AND temperature>=37 AND temperature<=42
true
4e1e4e56b3acd752cf3cf40ac7a6c725707d26dc
SQL
honeyTi/ionic-map-mysql
/database/mysql.sql
UTF-8
4,025
3.484375
3
[]
no_license
-- 创建数据库 CREATE DATABASE mypro_data; -- 进入数据库 use mypro_data; -- 创建表 CREATE TABLE `test`( `test_id` INT UNSIGNED AUTO_INCREMENT, `test_title` VARCHAR(100) NOT NULL, `test_author` VARCHAR(40) NOT NULL, `test_date` DATE, PRIMARY KEY ( `test_id` ) )ENGINE=InnoDB DEFAULT CHARSET=utf8; -- 插入数据 INSERT INTO te...
true
23eb9691b2194b4a7530826c67f9710b7a5809b7
SQL
DenilsonRomero1897/administracionapp
/bdadministracionapp.sql
UTF-8
103,523
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 22-08-2021 a las 22:16:43 -- Versión del servidor: 10.4.20-MariaDB -- Versión de PHP: 8.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
c6db2473212aaceb598bd53abf853198744eb183
SQL
ratneshbh/techelevator
/module-2/04_INSERT_UPDATE_and_DELETE/lecture-final/lecture-mssql.sql
UTF-8
3,892
4.25
4
[]
no_license
-- INSERT -- 1. Add Klingon as a spoken language in the USA INSERT INTO countrylanguage (countrycode, language, isofficial, percentage) VALUES ('USA','Klingon', 0, 0.0006); SELECT * FROM countrylanguage WHERE countrycode = 'USA'; -- 2. Add Klingon as a spoken language in Great Britain (GBR) INSERT INTO countrylan...
true
a0a8f4293d2bcfccd72c70c2b81a42c751ad4b2e
SQL
Peyton-lee/music
/sql/music.sql
UTF-8
3,174
2.734375
3
[ "Apache-2.0" ]
permissive
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50540 Source Host : localhost:3306 Source Database : music Target Server Type : MYSQL Target Server Version : 50540 File Encoding : 65001 Date: 2016-10-28 09:14:17 */ SET FOREIGN_KEY_CHECKS=0; -...
true
4759b46293f41aa47f505159f9e75d0c13e3b3ac
SQL
debelistic/acedepot
/acedrnwm_acedepot.sql
UTF-8
55,035
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: May 29, 2019 at 09:35 AM -- Server version: 10.1.38-MariaDB-cll-lve -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4...
true
e5718d3dee2e4a4c5bb4bf2843a64814602f27b2
SQL
BiserHristov/SoftUni
/05. C# DataBase/01. MS SQL/05. Subqueries and JOINs/Homework_Joins/03. Sales Employees.sql
UTF-8
200
3.65625
4
[ "MIT" ]
permissive
SELECT e.EmployeeID, e.FirstName, e.LastName, d.Name AS DepartmentName FROM Employees e JOIN Departments d ON d.DepartmentID=e.DepartmentID AND d.Name='Sales' ORDER BY e.EmployeeID
true
f136888dd2cc9b3d64b12ad8a8a618585cf99705
SQL
kafikewu/Stock-Market-Prediction
/Apple Prediction with ES.sql
UTF-8
3,256
4
4
[]
no_license
%sql select count(*) from cleaned_APPLE_dataset_TRAIN; %sql --create view cleaned_apple_dataset as select day, close from apple_dataset order by day; --CREATE VIEW cleaned_apple_dataset_TEST AS --SELECT * FROM cleaned_apple_dataset --MINUS --select * from cleaned_apple_dataset where rownum <= 1170; --CREATE V...
true
d3399d10f35feb51c77bf346c4a9289f88c144d6
SQL
web50-zz/mark2
/var/dump/m2_item_variation_files.strc.sql
UTF-8
795
2.828125
3
[]
no_license
CREATE TABLE `m2_item_variation_files` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `created_datetime` datetime NOT NULL, `creator_uid` int(10) unsigned NOT NULL, `changed_datetime` datetime NOT NULL, `changer_uid` int(10) unsigned NOT NULL, `order` int(10) unsigned NOT NULL, `title` varchar(255) NOT ...
true
8ed3c4cbb41e4a99600722109e9df041c53b99cd
SQL
cookecn/Project2
/db/seeds.sql
UTF-8
1,301
2.515625
3
[]
no_license
CREATE DATABASE nerdbox_db; INSERT INTO nerdbox_db.Subscriptions (name,price,number_of_items,premium,shipping,img) VALUES ("One-Time", "29.99", "5-10", "1 PREMIUM Item Guaranteed!", "FREE Shipping Included!", "1"), ("Mini", 11.99, "3-5", "1in3 Chance of PREMIUM Item", "FREE Shipping Included!", "1"), (...
true
2c250df67a62788c576bb3b05078f181b4d6bd26
SQL
molokovskikh/af_internetinterface
/migrations/796_00_AddActToInternet.sql
UTF-8
749
3.484375
3
[]
no_license
CREATE TABLE `internet`.`acts` ( `Id` int(10) unsigned NOT NULL AUTO_INCREMENT, `Period` char(8) DEFAULT NULL, `ActDate` datetime DEFAULT NULL, `Recipient` int(10) unsigned DEFAULT NULL, `Sum` decimal(19,5) DEFAULT NULL, `PayerName` varchar(255) DEFAULT NULL, `Customer` varchar(255) DEFAULT NULL, `Client` INTE...
true
481caaa122216cd3963074044bd390d9e796c522
SQL
LeeYatSan/miniAPP
/felis-recall.sql
UTF-8
2,767
3.578125
4
[]
no_license
CREATE DATABASE felis_recall_db CHARACTER SET utf8mb4; USE felis_recall_db; CREATE TABLE fr_user_login( user_id CHAR(21) NOT NULL COMMENT 'user ID', user_openid CHAR(28) NOT NULL UNIQUE COMMENT 'user WeChar openid', user_state INT(1) NOT NULL COMMENT 'user state: 0 -> offline 1 -> online', last_login_time TIMESTAMP ...
true
11569ca7b059614477353cc222ec3e6cb861a388
SQL
universal-development/polydata-embedded-cms
/polycms-core/src/main/resources/db/sqlite/V1.0.0.3__Tags_table.sql
UTF-8
166
2.75
3
[ "Apache-2.0" ]
permissive
CREATE TABLE tags ( id INTEGER PRIMARY KEY AUTOINCREMENT, _id TEXT, label VARCHAR(255), count INTEGER, data JSON ); CREATE INDEX tags_id_idx ON tags (_id);
true
ca5bb4100eb378e03ece54459cbe32986b800f12
SQL
chengziting/RazorBoot
/data/schema.sql
UTF-8
2,876
3.75
4
[]
no_license
drop table if exists users; CREATE TABLE `razor`.`users` ( `Id` varchar(36) NOT NULL , `Name` VARCHAR(45) NOT NULL, `Password` VARCHAR(100) NOT NULL, `Phone` VARCHAR(11) NULL, `Email` VARCHAR(45) NOT NULL, `QQ` VARCHAR(45) NULL, `Status` INT NOT NULL DEFAULT 0, `CreateDate` DATETIME NOT NULL DEFAULT CUR...
true
70a8625313869b9b8690a80bc31549790938f384
SQL
njiru/ut-rule
/api/sql/schema/seeds/850$permission.sql
UTF-8
1,084
3.3125
3
[ "Apache-2.0" ]
permissive
MERGE INTO [user].[actionCategory] AS target USING (VALUES ('rule') ) AS source (name) ON target.name = source.name WHEN NOT MATCHED BY TARGET THEN INSERT ([name]) VALUES (source.[name]); MERGE INTO [user].[action] AS target USING (VALUES ('rule.decision.fetch', 'rule.de...
true
1e1ae876950b0b5bee80a5f6499a84b36a01c6b4
SQL
JahnDavis27/cs342
/01introduction/lab01_1.sql
UTF-8
746
3.9375
4
[]
no_license
--1a SELECT * FROM departments; --1b. SELECT COUNT(EMPLOYEE_ID) FROM employees; --1c(i) SELECT * FROM employees WHERE salary > 15000; --1c(ii) SELECT * FROM employees WHERE hire_date >= TO_DATE('2002/01/01', 'yyyy/dd/mm') AND hire_date <= TO_DATE('2004/31/12', 'yyyy/dd/mm'); --1c(iii) SELECT * FROM employees WH...
true
c7fa3cdbfb052d18bfe66c8790406da9c5254246
SQL
brokenq/itsnow
/backend/common-services/common-cmdb-service/src/main/resources/META-INF/migrate/20140819150813_insert_ci_types.sql
UTF-8
13,279
3.25
3
[]
no_license
-- // insert_ci_types -- Migration SQL that makes the change goes here. # This tree refer to Managed Engine, Service Now, AdRem NetCrunch # NetCrunch divide devices into: device-class -> category -> subcategory, and use numbering rule in ID # 许多NetCrunch里面的subcategory,例如Cisco的各个型号的路由器,不需要映射成为某个具体的ci type,均映射到Router即...
true
a9feee2bb572586ca431a5b04ca7e659bb64f182
SQL
christineyoo/noteful-server
/migrations/002.do.create_notes.sql
UTF-8
285
3.1875
3
[]
no_license
CREATE TABLE notes ( id INTEGER PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, note_name TEXT NOT NULL, modified TIMESTAMPTZ DEFAULT now() NOT NULL, content TEXT NOT NULL ); ALTER TABLE notes ADD COLUMN folder_id INTEGER REFERENCES folders(id) ON DELETE CASCADE NOT NULL;
true
e19a8bde5c1e68f695c7d9c187ee3f6c376af40a
SQL
swgarverick/Online-Marketplace-DB-Management-System
/database_script.sql
UTF-8
605
3.765625
4
[]
no_license
CREATE TABLE MarketUser ( username varchar(255) NOT NULL, password varchar(255) NOT NULL, total_money_made int DEFAULT 0, total_money_spent int DEFAULT 0, PRIMARY KEY (username) ); CREATE TABLE Item ( ID int NOT NULL, name varchar(255), price float, remaining_quantity int, seller varchar(255), PRIMARY KEY (...
true
c9033be1a90ef014662db09d8cb43ae98b732c17
SQL
silentbalanceyh/vertx-zero
/vertx-pin/zero-rbac/src/main/resources/plugin/sql/rbac/S_ROLE.sql
UTF-8
1,551
3.71875
4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
-- liquibase formatted sql -- changeset Lang:ox-role-1 -- 角色专用表:S_ROLE DROP TABLE IF EXISTS S_ROLE; CREATE TABLE IF NOT EXISTS S_ROLE ( `KEY` VARCHAR(36) COMMENT '「key」- 角色ID', `NAME` VARCHAR(255) COMMENT '「name」- 角色名称', `CODE` VARCHAR(255) COMMENT '「code」- 角色系统名', `POWER` BIT C...
true
943e2a05c31ddb1881f901a365264217f20a086d
SQL
lefex/FE
/mysql/代码/day2/分组函数.sql
UTF-8
2,237
4.375
4
[]
no_license
#二、分组函数 /* 功能:用作统计使用,又称为聚合函数或统计函数或组函数 分类: sum 求和、avg 平均值、max 最大值 、min 最小值 、count 计算个数 特点: 1、sum、avg一般用于处理数值型 max、min、count可以处理任何类型 2、以上分组函数都忽略null值 3、可以和distinct搭配实现去重的运算 4、count函数的单独介绍 一般使用count(*)用作统计行数 5、和分组函数一同查询的字段要求是group by后的字段 */ #1、简单 的使用 SELECT SUM(salary) FROM employees; SE...
true
3ce4f82d3a9f1e7e5fc58e99343389f8074bc2f3
SQL
SociaJL/lightbhb
/seeds/01_seeds.sql
UTF-8
1,692
2.796875
3
[]
no_license
INSERT INTO users (id, name, email, password) VALUES (1, 'jimmy james', 'j@gmail.com', '2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBIDRh70tGevYzYzQgFId2u'), (2, 'ej james', 'ej@gmail.com', '2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBIDRh70tGevYzYzQgFId2u'), (3, 'fjimmy james', 'fj@gmail.com', '2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBI...
true
537c892a16d2cfb94eac97ca1358d46f734b10f1
SQL
hongyong3/TIL
/Flask/데이터베이스(DB)/PJT/PJT/05_order.sql
UTF-8
234
2.609375
3
[]
no_license
SELECT * FROM movies ORDER BY 누적관객수 DESC LIMIT 5; SELECT * FROM movies WHERE 장르 = '애니메이션' ORDER BY 제작국가 ASC, 누적관객수 DESC LIMIT 10; SELECT 감독 FROM movies ORDER BY 상영시간 DESC LIMIT 10;
true
86ae9505805465c085d98f44fc5e447abc1e1222
SQL
lychristy/SQL
/Leetcode/1555. Bank Account Summary.sql
UTF-8
479
4.28125
4
[]
no_license
SELECT u.user_id, u.user_name, tbl2.credit, CASE WHEN tbl2.credit < 0 THEN 'Yes' ELSE 'No' END credit_limit_breached FROM Users u LEFT JOIN (SELECT user_id, sum(credit) credit FROM (SELECT paid_by user_id, -amount credit FROM Transactions UNION ALL SELECT paid_to user_id, amount...
true
a7d0c231a0ea4d2981d6e0655be9d5583cca7f40
SQL
lframosn/BC-MALLAS
/TABLAS INTERIN/01-BALANCE_SALDOS_DIARIOS/01-BALANCE_SALDOS_DIARIOS-CNF_PARAMETROS-SQL.sql
UTF-8
575
2.875
3
[]
no_license
-- SE DEBE CREAR EL SIGUIENTE PARAMETRO IF NOT EXISTS (SELECT 1 FROM CNF.PARAMETROS WHERE PARAMETRO = 'FECINISATDWH') insert CNF.PARAMETROS (PARAMETRO, VALOR) SELECT 'FECINISATDWH', '20190301' -- LA FECHA DEBE SER EL VALOR CON EL QUE SE INICIA A CARGAR EL DWH DE SAT commit; IF EXISTS (SELECT 1 FROM CNF.PARAMETROS WHERE...
true
ddf7360dff3fb04db514732cf28147fe4c137a0e
SQL
Davidnln13/WORK-GS
/Docker/MySQL/setup.sql
UTF-8
2,231
3.6875
4
[]
no_license
CREATE DATABASE IF NOT EXISTS ProjectOrganiser; USE ProjectOrganiser; -- Table `ProjectOrganiser`.`Users` CREATE TABLE IF NOT EXISTS `ProjectOrganiser`.`Users` ( `id` INT NOT NULL AUTO_INCREMENT, `email` VARCHAR(255) NOT NULL, `name` VARCHAR(45) NOT NULL, `surname` VARCHAR(45) NOT NULL, `team_name` VARCHAR(4...
true
a1cc65e3b71114b4027614ccdc471c85f767722b
SQL
kenavoloic/championnat
/application/data/clubs.sql
UTF-8
3,131
2.96875
3
[]
no_license
-- DROP DATABASE IF EXISTS championnat; USE championnat; DROP TABLE IF EXISTS clubs; CREATE TABLE clubs ( equipe_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, nom VARCHAR(80) NOT NULL, siege VARCHAR(80) NOT NULL ); INSERT INTO clubs (nom, siege) VALUES ('Inconnu', 'Inconnu'), ('AC Ajaccio', 'Ajaccio'), ('AC Arles-Avi...
true
d77b068691cde53e1cb6149cb7a28cfcfa28ffa9
SQL
gluix20/agroamerica
/MDO/01 OBI_PLANILLA_VW.sql
UTF-8
2,012
3.59375
4
[]
no_license
select * from obi_planilla_vw; select * from trabajos; CREATE OR REPLACE FORCE VIEW OBI_PLANILLA_VW AS with fecha_carga as ( select 2015 ano from dual ), trab as ( select /*+ USE_NL(t) NO_MERGE(t) PUSH_PRED(t) */ 1 instancia, t.cia, t.planilla, t.locno, t.nomec, t.clave, t.aplic, trunc(t.fecha) fecha, t.codigo, t.an...
true
e6f9adb62306a9b49602c0feb5f8828cca104fd1
SQL
cifpfbmoll/proyecto-1o-daw-equipo-vicky-y-chema
/scripts BBDD/CAMBIOSRESERVAS.sql
UTF-8
251
2.8125
3
[]
no_license
alter table detalles_reserva drop constraint detalles_reserva_numreserva_fkey; alter table detalles_reserva add constraint detalles_reserva_numreserva_fkey foreign key (numreserva) references reservas (numreserva) on delete cascade on update cascade;
true
c481b6d9fd7f07e20249450094254615b6c906bd
SQL
smaricev/jokes
/src/main/resources/db/migration/V1__create_initial_schema.sql
UTF-8
6,577
3.265625
3
[]
no_license
create table category (id serial not null, name varchar(255) not null, primary key (id)); create table joke (id serial not null, content varchar(255) not null, dislikes int default 0, likes int default 0, category int not null, primary key (id)); alter table joke add constraint FKdfboxhr9p13built47f9weg9q foreign key...
true
a6ad7440e016bc920618636c531b130d27f7485a
SQL
CUBRID/cubrid-testcases
/sql/_13_issues/_12_1h/cases/bug_bts_6492.sql
UTF-8
251
2.59375
3
[ "BSD-3-Clause" ]
permissive
CREATE TABLE t1 (a char (10) , unique(a)); INSERT INTO t1 VALUES ('a'); UPDATE t1 SET a='a ' WHERE a LIKE 'a '; UPDATE t1 SET a='a ' WHERE a LIKE 'a '; update t1 set a = 'a ' where a like 'a_'; update t1 set a = 'a ' where a like 'a'; drop table t1;
true
6331a5c14eff97e65c4d1e7e1d124d101ef4633b
SQL
suiboce/spring-security-oauth2
/oauth2.sql
ISO-8859-1
30,671
2.59375
3
[]
no_license
/* SQLyog v12.2.6 (64 bit) MySQL - 5.7.23-log : Database - oauth2 ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@F...
true
caac1f8bfeed26b458d5282d07e3790271e2cc77
SQL
exploring-curiosity/DBMS-Oracle-SQL-Lab
/Assign1/MusicStore/MusicStore_Alter.sql
UTF-8
3,719
3.734375
4
[]
no_license
rem question 10 :It is necessary to represent the gender of an artist in the table. DESC Artist ALTER TABLE Artist ADD (gender char(1)); DESC Artist rem ********************************************************* rem Question 10 new entry with gender rem ********************************************************* I...
true
d5121f810b3dbbb14032509962b6705af0dc1ae3
SQL
DongLee99/algorithm-study
/programmers/59411/epicarts.sql
UTF-8
149
3.546875
4
[]
no_license
SELECT AO.ANIMAL_ID, AO.NAME FROM ANIMAL_OUTS AO INNER JOIN ANIMAL_INS AI ON AO.ANIMAL_ID = AI.ANIMAL_ID ORDER BY AI.DATETIME - AO.DATETIME LIMIT 2
true
a058639576c8ec098917b3fe54ec92e30a1f654d
SQL
BackupTheBerlios/oec
/OEC/SQL/schema.sql
UTF-8
4,587
4
4
[]
no_license
################################################ # # FILE DESCRIPTION: # Select couser name, number of question, max number of options # # CREATION DATE / BY: # 15 Mars 2006 BY Abbas Adel # # LAST MODIFY / BY: # 2 May 2006 BY Abbas Adel # # MODIFICATIONS: # 1- Added TID to Question which references Teacher(TID); # 2- A...
true
a074b84706110b58d4834016c95d6dc2a265278a
SQL
batego/Soporte_Fintra
/Solicitud de consulta Clientes en PRometheus.sql
UTF-8
1,254
3.375
3
[]
no_license
-- Ticket# 3399 description -- Solicitud de consulta Clientes en PRometheus -- Se solicita consulta a la base de clientes en Prometheus que tenga la siguientes características: -- - Linea Educativo -- - Clientes que se les hizo desembolso entre mayo de 2016 y agosto de 2017 y hoy no tengan deuda con Fintra. select n...
true
c4617bd8e0f298cb0113419441b130534b89596d
SQL
Oleksiibgeota/CarPartsAnalytics
/src/main/resources/SQL.init-SQL/init.sql
UTF-8
1,256
3.8125
4
[]
no_license
CREATE DATABASE car_base; CREATE TABLE user ( id_user MEDIUMINT NOT NULL AUTO_INCREMENT, name VARCHAR(20) NOT NULL, PRIMARY KEY (id_user) ); CREATE TABLE currency( id_currency MEDIUMINT NOT NULL AUTO_INCREMENT, name_currency VARCHAR(20), PRIMARY KEY (id_currency) ); CREATE TABLE category( id_category...
true
5a9de5e41f71d80d1769d31e98f26e9cb4ca98a0
SQL
Akaash-Agarwal/Performance-Analysis-Using-SQL
/2_Analyzing_Website_Performance.sql
UTF-8
12,367
4.125
4
[]
no_license
#1. IDENTIFYING TOP WEBSITE PAGES SELECT pageview_url, COUNT(DISTINCT website_pageview_id) AS pvs FROM website_pageviews WHERE created_at < '2012-06-09' GROUP BY pageview_url ORDER BY pvs DESC; ##################################################################################################################...
true
5161a2235b56b5b8aaa956afbf13df4e23210fbf
SQL
gicadmin/allo
/PHENIX/Packages/WOD_PACK.sql
UTF-8
2,392
2.609375
3
[]
no_license
CREATE OR REPLACE PACKAGE phenix.WOD_PACK AS PROCEDURE INIT_RECORD_PROC( p_rec OUT NOCOPY warehouse_operation_days%ROWTYPE); FUNCTION GET_FULL_FUNC( p_wod_whs_code IN warehouse_operation_days.wod_whs_code%TYPE, p_wod_day IN warehouse_oper...
true
7826cc6993cb47064b1973201e9581726d3aeaec
SQL
vkhitev/db-labs
/7-functions.sql
UTF-8
1,689
3.625
4
[]
no_license
USE tolling; -- 7.x Functions DROP function IF EXISTS total_beet_supply; DELIMITER $$ CREATE FUNCTION total_beet_supply (_id INT) RETURNS DECIMAL(10, 2) BEGIN RETURN ( SELECT IFNULL(SUM(beet_supplied), 0) FROM supply WHERE supply.agent_id = _id ); END$$ DROP function IF EXISTS total_sugar_estimated; DEL...
true
fc3c80209aa09d8aba3a8a186db1a9fb8cc72931
SQL
Gaia3D/hmd
/doc/설계/블록/블록질문.sql
UTF-8
4,477
3.46875
3
[]
no_license
1. 요청 - 요청 테이블 목록 - 11개 PM07_E50 PM07_D15 DTB_BLK_BASIC -- 블록 -- 하위 블록 조회, 블록 위치 찾기 쿼리에서 사용 BTB_STD_JUNGBAN -- 정반 -- 정반 현황 조회 쿼리에서 사용 PTB_SHIP_BASIC -- 도크 -- 도크 배치 현황 쿼리에서 사용 PTB_STD_MFGIND -- 사업장 설명 SPP_LIST_HMD_VIEW -- 도크 배치, 호선 형상 조회를 위해 필요 SPP_DOCK_ARRANGE_HMD_VIEW -- 도크 배치, 호선 형상 조회를 위해 필요 ...
true
7109aa2f580d05876121413137c8734c685d1e10
SQL
ArunKumar477/curch_app
/sql/pos_churchqweqe.sql
UTF-8
8,918
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 12, 2017 at 12:29 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
b03e2f6279fc9c98d3caf92b3b0b7471930b7eef
SQL
grinchen/WebUsers1.2
/WebContent/SQL_scripts/adress_creating.sql
UTF-8
345
3.375
3
[]
no_license
CREATE TABLE `users`.`adress` ( `id` INT AUTO_INCREMENT, `country` VARCHAR(30) NOT NULL, `region` VARCHAR(30) NOT NULL, `city` VARCHAR(30), `street` VARCHAR(30), `building` VARCHAR(30), `app` INT, `id_user` INT NOT NULL, PRIMARY KEY (`id`), UNIQUE INDEX (`id_user`), FOREIGN KEY (`id_user`) REFEREN...
true
c7e9299a3b99f1b2a5df9a436d410399be15ad00
SQL
frank-quoc/SQL-Tutorial
/MySQL_tut/4_update_and_delete.sql
UTF-8
973
3.765625
4
[]
no_license
DROP TABLE student; CREATE TABLE student ( student_id INT AUTO_INCREMENT, name VARCHAR(20), major VARCHAR(20), PRIMARY KEY(student_id) ); INSERT INTO student(name, major) VALUES('Jack', 'Biology'); INSERT INTO student(name, major) VALUES('Kate', 'Sociology'); INSERT INTO student(name, major) VALUES('C...
true
c6101b5b73739dbefcb2bc018a44e24459f288e9
SQL
acm-projects/CloudEnsemble
/Server/pages_db.sql
UTF-8
10,755
2.6875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.21, for Win64 (x86_64) -- -- Host: localhost Database: pages_db -- ------------------------------------------------------ -- Server version 8.0.21 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*...
true
79f947d6d2f45c19e6c11f5b1959586bc5bf4f02
SQL
souravrrp/AKG-SCIL-SQL
/QUERY/Queries/item_ledger_discrete.sql
UTF-8
2,914
3.609375
4
[]
no_license
/* Formatted on 12/24/2014 11:04:07 PM (QP5 v5.136.908.31019) */ SELECT mic.category_id, mmt.transaction_id, mmt.inventory_item_id, mmt.organization_id, lt.lot_number, mmt.transaction_date, mmt.transaction_type_id, mmt.created_by, mmt.creation_da...
true
de98719be11dd5adb6acc48e842dca9159a7544c
SQL
TinchoLorenzo/SolvdCourseUniversity
/buildingCompanyMartin/database/CUD.sql
UTF-8
2,583
3.671875
4
[]
no_license
INSERT INTO Clients (name, email) VALUES ("James Bond", "jamesbond@gmail.com"), ("Jane Doe", "janedoe@gmail.com"); INSERT INTO COUNTRY(name, abbreviation) VALUES ("Argentina", "ARG"), ("Brazil", "BR"); INSERT INTO CITIES(name, abbreviation, country_id, zip_code) VALUES ("Tandil", "TAN"...
true
50803a7ee6b2a489af54777c252ee3372aa5f1e1
SQL
omiguelgomes/FEUP_BDAD
/Entrega 3/int7.sql
UTF-8
119
3.03125
3
[]
no_license
SELECT gender AS 'Genero', count(gender) AS 'Numero total' FROM person GROUP BY gender order by gender desc;
true
283f83065894413f8dacb5af4a179ce70a9deb41
SQL
olegtaranenko/prsrc
/dbupdate-parent/prior/src/main/liquibase/procedures/setManagerId.sql
UTF-8
470
3.078125
3
[]
no_license
if exists (select '*' from sysprocedure where proc_name like 'setManagerId') then drop procedure setManagerId; end if; create procedure setManagerId ( in p_manag varchar(20) ) begin declare v_managId tinyint; begin select managId into v_managId from GuideManag where manag = p_manag; if...
true
2053af4cca85e9018cffb72d52745a6ee1268920
SQL
SkillsFundingAgency/das-payments-v2-validation
/src/SFA.DAS.Payments.Verification.Earnings/SQL/Payments.sql
UTF-8
880
2.734375
3
[ "MIT" ]
permissive
SELECT [DeliveryPeriod] ,[CollectionPeriod] ,[AcademicYear] ,[Ukprn] ,[LearnerReferenceNumber] ,[LearnerUln] ,[PriceEpisodeIdentifier] ,[Amount] ,[LearningAimReference] ,[LearningAimProgrammeType] ,[LearningAimStandardCode] ,[LearningAimFrameworkCode...
true
e3ec0678e50d5f7c2c8cf4f449c5adeecd8ef944
SQL
WuXG1996/demo
/src/db/springboot.sql
UTF-8
1,494
3.21875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 本地 Source Server Version : 50722 Source Host : localhost:3306 Source Database : springboot Target Server Type : MYSQL Target Server Version : 50722 File Encoding : 65001 Date: 2018-09-12 19:52:37 */ SET FOREIGN_KEY_CHECKS=0; -- -----...
true
3ade4f0b275daf7fe1d981352e4f6d5db1b4913a
SQL
regiamariana/API-BackEnd
/Senai.AutoPecas.WebApi/01_AutoPecas_CRIACAO.sql
UTF-8
705
3.171875
3
[ "MIT" ]
permissive
CREATE DATABASE T_AutoPecas; use T_AutoPecas; CREATE TABLE USUARIOS ( IDUSUARIO INT PRIMARY KEY IDENTITY ,EMAIL VARCHAR(200) NOT NULL UNIQUE ,SENHA VARCHAR(200) NOT NULL ); CREATE TABLE FORNECEDORES ( IDFORNECEDOR INT PRIMARY KEY IDENTITY ,CNPJ INT NOT NULL ,RAZAOSOCIAL VARCHAR (200) NOT NULL UNIQUE ,NOMEFANT...
true
3b15a7acc738258a13b3edac9b4ad5555c935461
SQL
BojanapuMohan/group-app
/db/employee_shift_replacements_view.sql
UTF-8
440
3.296875
3
[]
no_license
CREATE OR REPLACE VIEW employee_shift_replacements AS SELECT new_shift.created_at AS created_at, new_shift.start_date AS start_date, new_shift.end_date AS end_date, initial_shift.employee_id AS employee_id, new_shift.shift_id AS shift_id, new_shift.shift_replacement_reason_id AS shift_replacement_reason_id...
true
5d6de08f1fd8a40eb2c173e808f5b914a82440db
SQL
Racenet/website
/htdocs/forum/admin/mods/CH214d/root/install_cat/schemas/mysql_2_1_1RC5.sql
UTF-8
405
2.71875
3
[]
no_license
ALTER TABLE phpbb_forums ADD forum_subs_hidden TINYINT( 1 ) NOT NULL; ALTER TABLE phpbb_users ADD user_dst smallint(1) NOT NULL DEFAULT '0'; DROP TABLE phpbb_users_cache; CREATE TABLE phpbb_users_cache ( user_id MEDIUMINT(8) NOT NULL DEFAULT '0', cache_id VARCHAR(5) NOT NULL DEFAULT '', cache_data LON...
true
882570f68ef48264c48f5a7b3a67c6af1a79ea46
SQL
roisin-jin/aylien-tech-challenge
/mysql/scripts/setup.sql
UTF-8
1,366
3.453125
3
[]
no_license
-- ----------------------------------------------------- -- Table `api_user` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `api_user` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT, `email` VARCHAR(128) NOT NULL, `app_id` VARCHAR(64) NOT NULL, `app_key` VARCHAR(64) NOT NULL, `has_expire...
true
db3ea5b7655df92a86c335ac6bd92cf1432881a7
SQL
saif43/cropper
/cakeworld.sql
UTF-8
3,338
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 10, 2018 at 04:49 PM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
d1c6572aa1768a40a5f1d8a760a77cee8f554e16
SQL
JoaoPauloAntunes/WEB
/_1_SQL/uri-online-judge-postgreSQL/Aceitos/2606 - Categorias - URI Online Judge/2606.sql
UTF-8
1,204
3.875
4
[]
no_license
CREATE DATABASE uri2606; DROP DATABASE uri2606; USE uri2606; CREATE TABLE categories( id int primary key auto_increment, name varchar(50) ); drop table categories; CREATE TABLE products ( id INT PRIMARY KEY, name VARCHAR(50), amount INT, price FLOAT, id_categories INT, FOREIGN KEY (id_cat...
true
ad4ca2c91a37512d0263af51fdbf7d3e2de9252a
SQL
steemitworldmap/steemworldmap.com
/SQL/01_CREATE_markerinfo_TABLE.sql
UTF-8
1,689
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Nov 01, 2017 at 09:24 AM -- Server version: 10.0.31-MariaDB-cll-lve -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
true
a70e8e7a03ee527153ac35b7ae329386ac8aebad
SQL
snd-snd/Spring_ojakgyo
/ojakgyo_javaDB.sql
UTF-8
2,397
4.125
4
[]
no_license
-- javaDB -- -- 회원정보 -- create table members( userId varchar2(50) not null, userPw varchar2(100) not null, userName varchar2(50) not null, nickName varchar2(50) not null unique, email varchar2(100) not null, groupCode1 varchar2(100), groupCode2 varchar2(100), groupCode3 varchar2(100), groupCode4 va...
true
99f5348420a88a73c7d1c169318eb1f6892897ab
SQL
jiujitsufarmer/lahman-baseball-data
/data/baseball.sql
UTF-8
1,013
4.5
4
[]
no_license
select schoolnick, count(schoolnick) from schools group by schoolnick ; select * from collegeplaying where playerid = 'priceda01' ; select * from salaries where playerid = 'priceda01' ; -- FROM people p JOIN collegeplaying cp JOIN schools s -- WHERE p.playerid = cp.playerid AND cp.schoolid = s.schoolid select ...
true
96af581f25bb2c8ebb9b3ec1567c954e2e782152
SQL
LoriWhite24/CoreJavaStandAloneShoppingAppV1
/target/classes/shopping_app.sql
UTF-8
17,623
3.34375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `shopping_app` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `shopping_app`; -- MySQL dump 10.13 Distrib 8.0.21, for Win64 (x86_64) -- -- Host: localhost Database: shopping_app -- -------------------------------------...
true
e2e3b0dc7c54cd61983b5fefe80967f935f42cd6
SQL
karmadilos/octopus
/backend/sql/portfolio.sql
UTF-8
1,251
3.578125
4
[]
no_license
create table if not exists user( id int not null AUTO_INCREMENT, username varchar(32) not null, email varchar(64) not null, password varchar(128) not null, descriptions varchar(255), primary key(id), unique(email) ); create table if not exists educations_info( id int not null AUTO_INCRE...
true
c8ddec6e88db75a1c60b71948d81b71d561c4fc2
SQL
borisbotev/SoftUni
/Databases Basics/03.BuiltInFunctions/11.MixOfPeakAndRiver.sql
UTF-8
239
3.765625
4
[ "MIT" ]
permissive
SELECT Peaks.PeakName, Rivers.RiverName, LOWER(Peaks.PeakName) + LOWER(SUBSTRING(Rivers.RiverName, 2, DATALENGTH(Rivers.RiverName) - 1)) AS 'Mix' FROM Peaks, Rivers WHERE RIGHT(Peaks.PeakName, 1) = LEFT(Rivers.RiverName, 1) ORDER BY 'Mix'
true
f75b089fad8aebc0842ea7d1e40df0d9cce1b415
SQL
yoonju4095/database
/database/createbook.sql
UHC
1,681
2.515625
3
[]
no_license
insert into Book values(1,'౸ ', '½', 7000); insert into Book values(2,'౸ƴ ', '', 13000); insert into Book values(3,'౸ ', 'ѹ̵', 22000); insert into Book values(4,' ̺', 'ѹ̵', 35000); insert into Book values(5,'ǰ ', '½', 8000); insert into Book values(6,' ܰ躰 ', '½', 6000); insert into Book values(7,'߱ ߾', '̵̻', 2000...
true
fb32c9d302c7e4c409fab19956bc4188363e9771
SQL
rafaavc/bdad-project
/triggers/gatilho1_adiciona.sql
UTF-8
1,563
4.3125
4
[]
no_license
PRAGMA foreign_keys = ON; PRAGMA case_sensitive_like=OFF; /* Ao ser adicionado um episode role com role de character e characterName, tenta preencher o campo characterName com participações anteriores na mesma série e com o mesmo role. Se não encontrar um valor possível para esse campo, elimina a entrada. */ create...
true
1bf828e54d01fc7de4e007b1db1d71191d0724cf
SQL
vitorpre/lot
/app/Config/Backup bd/lot.sql
UTF-8
7,254
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 30-Abr-2015 às 22:58 -- Versão do servidor: 5.6.16 -- PHP Version: 5.5.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
618d95bfc8af5dcd5e38d39d72705b011012f806
SQL
rgisreventlov/Kairos
/csv/watches.sql
UTF-8
3,242
2.890625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 06, 2020 at 06:55 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
4a8dfe380fefef59c3dc012ef289b3c4a70c005a
SQL
SvetlanaBicanin/MATF-materijali
/3. godina/rbp vezbe/cas11.sql
WINDOWS-1250
3,982
4.1875
4
[]
no_license
-- 1. Pronai poslednji poloeni ispit za svakog studenta. Izdvojiti indeks -- studenta i datum polaganja poslednjeg ispita. select d.indeks, max(coalesce(datum_usmenog, datum_pismenog)) "Datum polaganja" from dosije d left join ispit i on d.indeks = i.indeks and ocena > 5 and status_prijave = 'o' group b...
true
3a3077e1d95eca948b65e1fffc8a6bc35971e52f
SQL
curso-basedatos/bd2
/disparadores-dos.sql
UTF-8
843
2.984375
3
[]
no_license
--Solucion CREATE TABLE CONTACTO( ID INTEGER, NOMBRE VARCHAR2(30), EDAD INTEGER, INGRESO DATE, CONSTRAINT PK_ID_CONTACTO PRIMARY KEY(ID) ); INSERT INTO CONTACT...
true
4f833aaa2d3e3cfd381f1d93642dc71891f1e19a
SQL
Lo-Wongo/simulation-2
/db/table_schemas/create_properties_table.sql
UTF-8
320
2.71875
3
[]
no_license
CREATE TABLE Properties ( PropertyId SERIAL PRIMARY KEY, UserId INT, Name TEXT, Description TEXT, Address TEXT, City TEXT, State TEXT, Zip TEXT, Image TEXT, Loan DECIMAL, MonthlyMortgage DECIMAL, DesiredRent DECIMAL, RecommendedRent DECIMAL, FOREIGN KEY ( UserId ) REFERENCES Users(UserId) );
true
571bcfb051a8678f719d4cdedd28292e74d23dac
SQL
florapetersen/sql-crowdfunding-lab-onl01-seng-pt-052620
/lib/insert.sql
UTF-8
1,771
2.828125
3
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
INSERT INTO users (name, age) VALUES ("Flora", 29), ("Marina", 29), ("Lucia", 34), ("Miranda", 34), ("Robert", 68), ("Michael", 68), ("Theano", 67), ("Mouratides", 67), ("Katie", 30), ("Jeanne", 30), ("Stephanie", 29), ("Nicole", 29), ("Kate", 36), ("Skye", 36), ("Eugenie", 33), ("Aimee", 34), ("Karisse", 34), ("Ashley...
true
cc0e5178c6aa62ea18ac83dff0c1411147c2bbb9
SQL
jclima31/devmediaJDBC
/editora/src/main/resources/sql/procedures.sql
UTF-8
885
3.640625
4
[]
no_license
DELIMITER $$ CREATE PROCEDURE `db_example`.`uppercase_titulo` (IN idLivro INT) BEGIN update livros set titulo = UPPER(TITULO) WHERE ID_LIVRO = idLivro; END -- -------------------------------------------------------------------------------- -- Routine DDL -- Note: comments before and after the routine body will...
true
0086a0f470d45b326d17c71e09b4dd59baf2cb6b
SQL
blackice999/paginaweb
/sql/tables/users.sql
UTF-8
416
3.0625
3
[]
no_license
CREATE TABLE `users` ( `id` int(11) NOT NULL, `first_name` varchar(50) NOT NULL, `last_name` varchar(50) NOT NULL, `username` varchar(50) NOT NULL, `email` varchar(255) NOT NULL, `password` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UN...
true
6dbd57bef324705b227781dab993e1743e701225
SQL
SyogoHorita/SQL
/Q2.sql
UTF-8
286
2.75
3
[]
no_license
create table item_category(category_id int primary key auto_increment,category_name varchar(256)not null); select * from item_category; create table item(item_id int primary key auto_increment,item_name varchar(256)not null,item_price int not null,category_id int); select * from item;
true
4ca8b875153b0b2979056f5d259b304e3b162e93
SQL
kevinvelasquez9/nba-database
/sql/Query13.sql
UTF-8
460
3.484375
3
[]
no_license
-- Query13.sql DELIMITER // DROP PROCEDURE IF EXISTS Query13 // CREATE PROCEDURE Query13() BEGIN WITH T AS (SELECT playerName, season, pointsPerGame, assistsPerGame, reboundsPerGame FROM Statistics WHERE pointsPerGame >= 10 AND assistsPerGame >= 10 AND reboundsPerGame >= 10) SELECT se...
true
f1ae569e837de4be0ab2118fbe89da5ee3e49d5c
SQL
a864610877/MEINUO
/ecard.web/sql/PointRebate.QueryForUser.sql
UTF-8
234
3.21875
3
[]
no_license
select t.* from PointRebates t where t.State = 1 and exists(select * from AccountLevelPointRebates g where t.pointRebateid = g.pointRebateid and g.accountLevel = @accountLevel and g.AccountTypeId = @AccountTypeId)
true
b8e37779d99019e4ad005dd008ff280b15ee4ae0
SQL
bielfox/chamados
/anexos/anexos.sql
UTF-8
1,375
2.75
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.12deb2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 02, 2015 at 05:44 PM -- Server version: 5.6.24-0ubuntu2 -- PHP Version: 5.6.4-4ubuntu6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHA...
true
7f707966a738d06762b25c6ac93fd082218e5172
SQL
ofenloch/mysql-tutorial
/tutorial.sql
UTF-8
3,124
4.46875
4
[]
no_license
-- This is the database used in this tutorial -- Delete the database if it exists DROP DATABASE IF EXISTS `tutorial`; CREATE DATABASE `tutorial`; USE `tutorial`; -- Delete table pet if it exists DROP TABLE IF EXISTS `pet`; -- Create the table CREATE TABLE `pet` ( `name` varchar(20), `owner` varchar(20), `...
true
e2cd612b829ea6520eda04edf68fd2f5588b1522
SQL
dronjax/AxeApolloSpaceAcademy-data
/AASA.sql
UTF-8
11,961
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.8.1deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 01, 2013 at 05:16 PM -- Server version: 10.0.4-MariaDB-1~raring-log -- PHP Version: 5.4.9-4ubuntu2.3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET...
true
ff252d4c0cddac1e7c772b11fc6f8cf2bda3de99
SQL
marcosbarker/serratec.residencia
/serratec.ProjetoAplicado/treinamentoApi/scriptsDB/db_t2m_treinamentos.sql
UTF-8
10,617
3.453125
3
[]
no_license
-- public.certificacoes definition -- Drop table -- DROP TABLE public.certificacoes; CREATE TABLE public.certificacoes ( id serial NOT NULL, tempo_validade numeric NOT NULL, id_treinamento int4 NULL, CONSTRAINT certificacoes_pkey PRIMARY KEY (id) ); -- public.certificacoes foreign keys ALTER T...
true
c9674df6e9ab442a2beb79aaa11b49395ad79501
SQL
zajako/lineage-jimin
/sql/server/character_skills.sql
UTF-8
1,072
2.796875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 60008 Source Host : localhost:3306 Source Database : bone Target Server Type : MYSQL Target Server Version : 60008 File Encoding : 65001 Date: 2011-10-05 19:40 */ SET FOREIGN_KEY_CHECKS...
true
b1714a22963ec784ebe265b604c439552bc6a407
SQL
piccicla/rms_exercise
/installation/database.sql
UTF-8
699
3.515625
4
[]
no_license
CREATE USER "user" WITH PASSWORD 'user'; CREATE DATABASE "exercise" WITH OWNER="user" ENCODING='UTF8' TEMPLATE=template0; \connect "exercise"; CREATE EXTENSION postgis; CREATE SCHEMA exercise; GRANT ALL PRIVILEGES ON SCHEMA exercise TO "user"; GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA exercise TO "user"; CREATE TA...
true
773685cef6711accda28458b77bf904d6ae3eb1e
SQL
OvidiuEDSgrup/TET
/DEBUG/140924/SQLQuery1.sql
UTF-8
221
2.703125
3
[]
no_license
select p.Contract,* from pozdoc p where p.Factura='AG940327' and p.Cod='BST-CRB061604' and p.Cod_intrare='ST876893' select * from pozdoc p where p.Cod='BST-CRB061604' and 'ST876893' in (p.Cod_intrare,p.Grupa)
true