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
317ea0d5f4fcb5d88ee685c2193d4f7ba9e5aeb1
SQL
Pierii/SegundoTermo
/SQL Server Management Studio/SQLQuery1.sql
UTF-8
541
3.15625
3
[ "MIT" ]
permissive
CREATE DATABASE M_PSales; USE M_PSales; CREATE TABLE Cursos( IdCurso INT PRIMARY KEY IDENTITY ,Nome VARCHAR (200) UNIQUE NOT NULL ); CREATE TABLE Disciplinas( IdDisciplina INT PRIMARY KEY IDENTITY ,Nome VARCHAR (200) NOT NULL ,IdCurso INT FOREIGN KEY REFERENCES Cursos (IdCurso) ); CREATE TABLE Alu...
true
7c193c8758065d15b584fdaaea86223c6cbd5fd9
SQL
yakubahmed/Watersuplly
/WaterSupply/watersupply.sql
UTF-8
14,793
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 07, 2020 at 02:06 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
339976dde5db22338fa228510a16d3765e3a7280
SQL
vaibhavk98/bb_fivetran
/models/example/employee_model.sql
UTF-8
527
3
3
[]
no_license
{{ config(materialized="table") }} select * from sample_table where id!=101 /*drop table if exists demofromdbt; create table demofromdbt(id int,employee_name varchar,department varchar,age int); insert into demo_db.sample_scm.demofromdbt values(10,'Alex','IT',26); insert into demofromdbt values(11,'Casey','Sales',23...
true
c96bde9d3ae35813514331a7e3c34759cbf0452b
SQL
h-4vok/uai-ssc-backend
/SSC.Database/Programmability/Stored Procedures/sp_SurveyChoice_getForForm.sql
UTF-8
159
2.796875
3
[]
no_license
CREATE PROCEDURE sp_SurveyChoice_getForForm @Id INT AS BEGIN SELECT sc.Id, sc.ChoiceTitle FROM SurveyChoice SC WHERE sc.SurveyFormId = @Id END
true
8d30d0588ae6eaa8295bc610ed2879545decb8d8
SQL
omegazip/dba_scripts
/custom/Script_OracleBase/Monitoring/ts_datafiles.sql
UTF-8
800
3.15625
3
[]
no_license
-- ----------------------------------------------------------------------------------- -- File Name : http://www.oracle-base.com/dba/monitoring/ts_datafiles.sql -- Author : Tim Hall -- Description : Displays information about datafiles for the specified tablespace. -- Requirements : Access to the V$ views. --...
true
91c05da351ae2869177d5bb1e626b19ea74d2697
SQL
bdickele/sptransp-back-java-sql
/src/main/resources/sql/01_create_seq_and_tables.sql
UTF-8
11,303
3.296875
3
[]
no_license
set SCHEMA 'sptransp'; drop sequence if exists SEQUENCE_USER; CREATE SEQUENCE SEQUENCE_USER MINVALUE 10 MAXVALUE 999999999999999999 START WITH 10 INCREMENT BY 1; drop sequence if exists SEQUENCE_AGR_RULE; CREATE SEQUENCE SEQUENCE_AGR_RULE MINVALUE 10 MAXVALUE 999999999999999999 STA...
true
cf2d98931d3913aa52ed91e5d1206f78c01bd0c6
SQL
nirmal-gope/sql
/restaurants.sql
UTF-8
821
3.125
3
[]
no_license
CREATE TABLE `restaurant` ( `id_restaurant` int(3) NOT NULL, `nom` varchar(100) NOT NULL, `adresse` varchar(255) NOT NULL, `telephone` varchar(10) NOT NULL, `type` enum('gastronomique','brasserie','pizzeria','autre') DEFAULT NULL, `note` int(1) NOT NULL, `avis` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSE...
true
3ae5cc6f57b85d82c5e87c6375babbf3b7854bc9
SQL
olehPatlan/task_4
/RequestsScript.sql
UTF-8
626
4.21875
4
[]
no_license
SELECT teacher.first_name, teacher.last_name FROM teacher INNER JOIN course INNER JOIN student INNER JOIN marks ON student.id = marks.student_id ON course.id = marks.course_id INNER JOIN teacher_course ON course.id = teacher_course.course_id ON teacher.id = teacher_course.teacher_id GROUP BY teacher.id ...
true
671d77bb1fd570a8e41664fc4154065e5fe52278
SQL
anagorko/informatyka
/home/lukom/SQL/kodean.sql
UTF-8
1,773
4
4
[]
no_license
USE kodean; DROP TABLE IF EXISTS towary; CREATE TABLE towary( nazwa VARCHAR(100), rodzaj VARCHAR(100), masa INT, vat VARCHAR(100), EAN VARCHAR(13) ); LOAD DATA LOCAL INFILE '../../../zbior_zadan/112/towary.txt' INTO TABLE towary LINES TERMINATED BY '\r\n' IGNORE 1 LINES; DROP TABLE IF EXISTS kraje; CREATE TABLE kr...
true
d8971b2b371c827d18397748575d2a3b2ff1cf22
SQL
hoon4233/Database-System
/project1/04.sql
UTF-8
101
2.515625
3
[]
no_license
SELECT nickname FROM CatchedPokemon WHERE CatchedPokemon.level >= 50 ORDER BY CatchedPokemon.nickname
true
b5a51937df41471e1ebbf7d8b4cc4a51f2e10b56
SQL
maquiavelo79/bodyflex
/dataBase/[SP]/SP_WAPP_CONSULTA_ETIQUETA_FORM_PUBLICACION.sql
UTF-8
863
3.046875
3
[]
no_license
-- CALL SP_WAPP_CONSULTA_ETIQUETA_FORM_PUBLICACION('?'); -- select * from DROP PROCEDURE IF EXISTS delta.SP_WAPP_CONSULTA_ETIQUETA_FORM_PUBLICACION; CREATE PROCEDURE delta.`SP_WAPP_CONSULTA_ETIQUETA_FORM_PUBLICACION`( IN keyWord VARCHAR(500) ...
true
8170582414bd04be05c89e2e4cc2ecac2e02df99
SQL
usbr/HDB
/oracle_script/METADATA/SNAPSHOT_SITE/new_hdb_fk.sql
UTF-8
1,259
3.609375
4
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
set echo off set heading off set feedback off set pagesize 0 set linesize 200 set verify off spool new_hdb_fk_script.sql -- First drop all the constraints that will be recreated to point to the snapshots. select 'ALTER TABLE '||a.table_name||' DROP CONSTRAINT '||a.constraint_name||';' from all_constraints a where a.r...
true
84efb8396435125f7ce8bd654cb36a46a1a6f46f
SQL
NishantChauhan032/AddressBookSystem_SQL
/AddressBookSystem.sql
UTF-8
7,930
4.125
4
[]
no_license
# UC1 - To create Address Book Service Database show databases; create database AddressBookService; use addressbookservice; select database(); # UC2 - To create address book table with attributes create table address_book ( FirstName Varchar(150) NOT NULL, LastName Varchar(150) NOT ...
true
4dd0173716c75bfbdf22dd87d22c49fb2ccd1212
SQL
joshbenner/imbi
/ddl/tables/v1/cookie_cutters.sql
UTF-8
1,603
3.890625
4
[ "BSD-3-Clause" ]
permissive
SET search_path=v1; CREATE TABLE IF NOT EXISTS cookie_cutters ( "name" TEXT NOT NULL PRIMARY KEY, created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP, created_by TEXT NOT NULL, last_modified_at TIMESTAMP WITH TIME ZON...
true
8d0b2c996f40a54e410b4c9a763b6d55edd84e1b
SQL
yennanliu/CS_basics
/leetcode_SQL/game-play-analysis-iii.sql
UTF-8
3,454
4.53125
5
[]
no_license
-- +--------------+---------+ -- | Column Name | Type | -- +--------------+---------+ -- | player_id | int | -- | device_id | int | -- | event_date | date | -- | games_played | int | -- +--------------+---------+ -- (player_id, event_date) is the primary key of this table. -- This table shows...
true
a320071a407c19611f5eeb0a20a4836db539bebb
SQL
human2l/lms-new
/backup/lms-backup(without spring boot)/lms/src/main/resources/create_table.sql
UTF-8
2,933
3.671875
4
[]
no_license
DROP SCHEMA IF EXISTS `lms_kaiqiu`; CREATE SCHEMA `lms_kaiqiu`; use `lms_kaiqiu`; SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS `admin`; CREATE TABLE `admin` ( `id` int(11) NOT NULL AUTO_INCREMENT, `first_name` varchar(45) DEFAULT NULL, `last_name` varchar(45) DEFAULT NULL, `email` varchar(45) DEFAULT N...
true
d9854dfcd1df84f7a2b534a020ec5cd4ed855645
SQL
pieisland/2021-coding-test-preparing
/프로그래머스 SQL/JOIN/없어진 기록 찾기*(210217).sql
UTF-8
745
3.796875
4
[]
no_license
/* 입양을 간 기록은 있는데, 보호소에 들어온 기록이 없는 동물의 ID와 이름을 ID 순으로 조회하는 SQL문을 작성해주세요. */ SELECT ANIMAL_OUTS.ANIMAL_ID, ANIMAL_OUTS.NAME FROM ANIMAL_INS RIGHT OUTER JOIN ANIMAL_OUTS ON ANIMAL_INS.ANIMAL_ID = ANIMAL_OUTS.ANIMAL_ID WHERE ANIMAL_INS.ANIMAL_ID IS NULL ORDER BY ANIMAL_OUTS.ANIMAL_ID /* - JOIN 대상 테이블들을 적고 어떤 조인을 할건지도(INN...
true
cd045f3d64ecb959c74649c843c4092004a577ce
SQL
mebelousov/antlr_psql
/src/test/resources/sql/select/01474e6b.sql
UTF-8
220
2.71875
3
[ "MIT" ]
permissive
-- file:alter_table.sql ln:1368 expect:true select relname, conname, coninhcount, conislocal, connoinherit from pg_constraint c, pg_class r where relname like 'test_inh_check%' and c.conrelid = r.oid order by 1, 2
true
e5daf947fe89885bfdb7aa4667cadd11a04c9cb4
SQL
BenJD1205/Blog_MVC_PHP
/pdo_blog.sql
UTF-8
12,753
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th8 25, 2021 lúc 04:57 PM -- Phiên bản máy phục vụ: 10.4.19-MariaDB -- Phiên bản PHP: 8.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
d6513cb11f7ea1dc0cb1d926528cae22cf38b431
SQL
BrianLP/DataGrip.PokemonSqlLab
/pokemon_sql/Final Report.sql
UTF-8
403
3.890625
4
[]
no_license
Select p.name as 'Pokemon Name', t.trainername as 'Trainer Name', pt.pokelevel as 'Pokemon Level', t1.name as 'Primary Type', t2.name as 'Secondary Type' from pokemon_trainer as pt inner join pokemons as p on p.id = pt.pokemon_id inner join trainers as t on t.trainerID = pt.trainerID join types as t1 on t1.id = p.pri...
true
9b4a3eb0e8046420b12452772cfe02abbe23b5ad
SQL
N12vana-ing/MemorandumTool
/sql/User.sql
UTF-8
537
2.953125
3
[]
no_license
create table `user_info`( `id` bigint auto_increment COMMENT '自增id', `username` varchar(50) not null COMMENT '用户名', `user_password` varchar(50) not null COMMENT '密码', `telephone` varchar(50) not null COMMENT '手机号码', `email` varchar(50) not null COMMENT '邮箱', `user_code` int(2) not null COMMENT '标志位 1、新建 2、更新 3、删除...
true
8640a541e8752b93b6931d345338ab2f64cce416
SQL
blueissky/framework
/company.sql
UTF-8
5,946
3.046875
3
[]
no_license
/* SQLyog v10.2 MySQL - 5.1.73-community : Database - company ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREI...
true
c1ca0977ba7a1366d2fc0ee4e75c0a20805e3d92
SQL
wanghaogit/yuemee
/sql/proc/sale/001_copy_esku_to_sku.sql
UTF-8
2,796
3.90625
4
[]
no_license
/* * 拷贝素材到spu * 作者:王少宏 * 日期:2018-05-15 */ DELIMITER ||| DROP PROCEDURE IF EXISTS `copy_esku_to_sku` ||| CREATE PROCEDURE `copy_esku_to_sku` ( IN SkuId INT UNSIGNED, IN ExtSkuId INT UNSIGNED, IN UserId INT UNSIGNED, -- 操作ID IN MType INT UNSIGNED, -- 素材类型 主图0 内容图1 推广图2 所有图3 IN ClientIp BIGINT UNSIGNED, -...
true
9e63085c9b4214ec875cf154148087aca2de9515
SQL
OSADP/PortalRepo
/com_osadp_schedule/install.mysql.sql
UTF-8
1,092
2.828125
3
[]
no_license
-- create our main table for each project CREATE TABLE IF NOT EXISTS `#__osadp_release_schedule` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `image` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT '', `notes` text CO...
true
768e209129ed62acec8e6c734aebfe6f36b4d981
SQL
hulitong/maque
/maque.sql
UTF-8
3,717
3.28125
3
[ "Apache-2.0" ]
permissive
/* Navicat MySQL Data Transfer Source Server : hulitong Source Server Version : 80012 Source Host : localhost:3306 Source Database : maque Target Server Type : MYSQL Target Server Version : 80012 File Encoding : 65001 Date: 2019-10-24 20:53:21 */ SET FOREIGN_KEY_CHECKS=0; -- ----...
true
4c98929a42ea1ce8a8d604ee0db6f2076c654e1f
SQL
VictorMiBe/Practica-07-SQL
/Segunda_Parte/primera.sql
UTF-8
104
2.890625
3
[]
no_license
SELECT p.nombre, p.precio, f.nombre FROM fabricante f, producto p WHERE p.codigo_fabricante = f.codigo;
true
c7d238683fcebaef9bd22245abcce370afbf7026
SQL
dylan-galbraith/andrea-parsons-cosmetics
/server/prisma/migrations/20210504232854_/migration.sql
UTF-8
479
2.5625
3
[]
no_license
/* Warnings: - You are about to drop the `_AppointmentToClient` table. If the table is not empty, all the data it contains will be lost. */ -- DropForeignKey ALTER TABLE `_AppointmentToClient` DROP FOREIGN KEY `_appointmenttoclient_ibfk_1`; -- DropForeignKey ALTER TABLE `_AppointmentToClient` DROP FOREIGN KEY `_...
true
2d07c7e680ce9f0e134fbd2595158caf1776dff7
SQL
stominmetal/Site
/SQL-backup/vitron_stomin.sql
UTF-8
5,735
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 19 авг 2016 в 15:23 -- Версия на сървъра: 10.1.13-MariaDB -- PHP Version: 7.0.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
58f26a5d80fbb11080015672ce744a05c2dce94c
SQL
ohjack/newErp
/tran.valsun.cn/database_log/v2.13/trans.sql
GB18030
345
2.515625
3
[]
no_license
ALTER TABLE `trans_email_stat` ADD `nodeId` int(10) DEFAULT '0' COMMENT 'ڵID'; ALTER TABLE `trans_email_stat` ADD `typeId` tinyint(2) DEFAULT '0' COMMENT 'ID0mail1MES'; ALTER TABLE `trans_email_stat` ADD INDEX `addTime` (`addTime`) USING BTREE; ALTER TABLE `trans_email_stat` ADD INDEX `lastTime` (`lastTime`) USING BTRE...
true
3bca1b8f40c993c3a69a8060ed0d77396269d041
SQL
lauratravin/sql-crowdfunding-lab-v-000
/lib/create.sql
UTF-8
543
2.84375
3
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT, age INTEGER); CREATE TABLE projects (id INTEGER PRIMARY KEY, title TEXT, category TEXT, funding_goal DECIMAL(5,2), start_date DATETIM...
true
2becd8638a7a08984e45627a48fac57c880091cc
SQL
stevanmilic/IEPAuctionSale
/IEPAuctionSale/Scripts/database_init.sql
UTF-8
1,375
3.640625
4
[]
no_license
CREATE TABLE Auction( Id INTEGER NOT NULL PRIMARY KEY IDENTITY(1,1), ProductName VARCHAR(50) NOT NULL, Duration INTEGER NOT NULL, StartingPrice INTEGER NOT NULL, CurrentPrice INTEGER, CurrentBider nvarchar(128), [RowVersion] BINARY(256), TimeCreated DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, TimeOpened DAT...
true
2205f6ea42ec28ac087e3c0bfd39db315eda0a2b
SQL
ondratu/morias
/sql/sqlite/eshop_store.sql
UTF-8
1,522
3.6875
4
[]
no_license
create table eshop_store ( item_id integer not null primary key autoincrement, modify_date integer not null, -- unix timestamp in second from 1970-01-01 name text not null, -- item's name price float not null default 0.0, -- item's price with or without VAT description tex...
true
d2bf27bd8c8f131a5507f4493f9f7f62215209c3
SQL
dba-kosova/OracleScripts
/Мониторинг активных сессий/sessions_active_sorted_v2.sql
UTF-8
6,811
3.15625
3
[]
no_license
REM --------------------------------------------------------------------------------------------- REM File: sos_sessions_active.sql REM Description: To list active sessions in a RAC or non-RAC database REM --------------------------------------------------------------------------------------------- REM We...
true
ce91c1d93a788cf0b5ff40e559c96ded692f4868
SQL
Joshua-McGee/BootcampX
/4_queries/cohort_average_assistance_duration.sql
UTF-8
381
3.9375
4
[]
no_license
SELECT avg(total_duration) AS average_total_duration FROM (SELECT cohorts.name, SUM(assistance_requests.completed_at - assistance_requests.started_at) AS total_duration FROM cohorts JOIN students ON cohorts.id = cohort_id JOIN assistance_requests ON students.id = student_id GROUP BY cohor...
true
c22d13720def7405afb5be38e8e46e2756aade72
SQL
mihirjpatel/SQLScripts
/MSSQL - Useful Scripts/Backup - Get All Previous Backup Info.sql
UTF-8
1,692
3.921875
4
[]
no_license
/************************************************* Script Name: Get All Previous Backup Information Created By : Mihir J Patel Description: Gives backup History of all Databases that have been backed up. Changes Made: Author Date Description *************************************************/ ...
true
8b4f1449728d73f97050e1e43683d888f77d574a
SQL
gelarians/MySQL
/02-Vergleichsoperatoren und Verknüpfungen/03-Logische Verknuepfungen.sql
UTF-8
1,526
3.234375
3
[]
no_license
-- Logische Verknuepfungen -- -- AND logische UND, beide Bedingungen müssen erfuellt sein -- OR logisches ODER, eine oder beide Bedingungen müssen zutreffen -- XOR exklusives ODER, es darf nur eine Bedungung zutreffen -- -- ----------------------- WAHRHEITSTAFELN ---------------------- -- Negation (NOT) -- -...
true
c2dce0d570843e3468f2deb6ad27377b955b1cef
SQL
bellmit/ws
/0 项目文档/.svn/pristine/e7/e7c5c4de297a17cf7ca3607bb26efa530673cb0a.svn-base
UTF-8
2,486
3.203125
3
[]
no_license
CREATE TABLE "LIFE".t_pay_order ( "ID" NUMBER(19) NOT NULL, act_order_id NUMBER(19), pay_order_id NUMBER(19), operate NUMBER(3), pay_mode NUMBER(3), pay_channel VARCHAR2(50 BYTE), user_id NUMBER(19), shop_id NUMBER(19), payment_amount NUMBER(9), status NUMBER(3), status_text VARCHAR2(500 BYTE), ...
true
9f4172dd24c8641a95d2684e87d77dab5c4f1290
SQL
AAmanzi/Internship-6-Music
/MusicQuery.sql
UTF-8
7,482
3.421875
3
[]
no_license
BEGIN TRANSACTION; CREATE TABLE Artists ( ArtistId int PRIMARY KEY IDENTITY(1,1), Name nvarchar(30) NOT NULL, Nationality nvarchar(15) ); CREATE TABLE Albums ( AlbumId int PRIMARY KEY IDENTITY(1,1), Name nvarchar(20) NOT NULL, ReleaseYear char(4) NOT NULL ); CREATE TABLE Songs ( SongId int PRIMARY KEY IDENTI...
true
2b3b27df56f6dee78ee4f864c92fde13087e1d90
SQL
jun159/Team3-Cassandra
/cqlscripts/schema.cql
UTF-8
3,139
3.75
4
[]
no_license
DROP KEYSPACE IF EXISTS team3; CREATE KEYSPACE team3 WITH replication = {'class':'SimpleStrategy','replication_factor':1}; USE team3; CREATE TABLE Warehouse ( W_ID int, W_NAME varchar, W_STREET_1 varchar, W_STREET_2 varchar, W_CITY varchar, W_STATE varchar, W_ZIP varchar, W_TAX double, W_YT...
true
f8ccf78600506016fb8017ce506df9eec28eb026
SQL
shagstone/yesimo_work_repo
/staging/tables/stg_suppl_product_media.sql
UTF-8
1,824
3.78125
4
[]
no_license
-- ----------------------------------------------------- -- Table stg_suppl_product_media -- ----------------------------------------------------- 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='TR...
true
f1b0eb746fc104e4bc26c48e2602fb20a03a873e
SQL
ErnestOrnat/RentCar
/sql/TableSQL.sql
UTF-8
1,058
3.125
3
[]
no_license
DROP schema IF EXISTS `avtosalon`; create schema avtosalon; CREATE TABLE `user_table` ( `user_id` INT(100) NOT NULL AUTO_INCREMENT, `fullname` VARCHAR(25) NOT NULL, `password` VARCHAR(20) NOT NULL, PRIMARY KEY (`user_id`) ) AUTO_INCREMENT=50 DEFAULT CHARSET=utf8; CREATE TABLE `car_table` ( `car_id` IN...
true
b03b20184aca7da83980411d6923176219f3b41a
SQL
isomericmagic/EpicorSQL
/costRevenue2016.sql
UTF-8
807
3.921875
4
[]
no_license
SELECT [Customer].[CustID] AS [CustID], [Customer].[Name] AS [Name], SUM([InvcDtl].[ExtPrice]) AS [Total_Revenue], SUM(InvcDtl.OurShipQty*(InvcDtl.MtlUnitCost + InvcDtl.LbrUnitCost + InvcDtl.BurUnitCost + InvcDtl.SubUnitCost + InvcDtl.MtlBurUnitCost)) AS [Total_Cost] FROM Erp.InvcHead AS InvcHead INNER JOIN Erp.Inv...
true
c6133fe03a1341b97038932b80d2b5d8009f5cb2
SQL
jinlulu/CarDeal
/CarDeal/add-user.sql
UTF-8
991
2.78125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50553 Source Host : localhost:3306 Source Database : hw201202 Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2020-12-06 11:09:04 */ SET FOREIGN_KEY...
true
8e3bbd81d40f0d0e85cba6223b024c587c71b2b1
SQL
abdannafik17/laravel8
/public/db_laravel.sql
UTF-8
13,943
3.203125
3
[ "MIT" ]
permissive
/* Navicat MySQL Data Transfer Source Server : MySQL_Local Source Server Version : 50733 Source Host : 127.0.0.1:3306 Source Database : db_laravel Target Server Type : MYSQL Target Server Version : 50733 File Encoding : 65001 Date: 2021-10-26 11:46:57 */ SET FOREIGN_KEY_CHECKS=0; ...
true
b16aec6373d907ce6d7bfbfd4c50049e736601e1
SQL
dannylekim/billsnap
/src/main/resources/scripts/insert_data.sql
UTF-8
20,794
2.609375
3
[]
no_license
-- noinspection SqlResolveForFile INSERT INTO account (id, email, password, first_name, middle_name, last_name, gender, phone_number, birth_date, status, created, updated, location_id) VALUES (1001, 'nobills@inthisemail.com', 'notEncrypted', 'firstTest', 'middleTest', 'lastTest', 'MALE', '541789456...
true
c8a2be2bd7bed4d754349d8133ac681d163c872d
SQL
ulyazen/SITANDU
/app/Database/sitandu (4).sql
UTF-8
12,833
2.703125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 26, 2020 at 11:06 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
e0473298f8ba1f922c8529a9e58ffa834ec69540
SQL
chrisdlarosa/server3
/info/servicios.sql
UTF-8
2,008
3.453125
3
[]
no_license
CREATE TABLE usuarios( id int auto_increment, folio varchar(11) not null unique, nombre varchar(33) not null, apellidos varchar(55) not null, correo varchar(44) not null unique, telefono varchar(11) not null unique, password varchar(555) not null, tipo int(2) not null, registrado date, primary key (id) ); IN...
true
d11564bc705886aa5fb29203cce07500351887fa
SQL
zengjianhai/ecjtuSign
/src/main/resources/sql/sign_examination_questions.sql
UTF-8
990
3.671875
4
[]
no_license
/*题目表*/ create table sign_examination_questions( /*类型_排序序号*/ id nvarchar2(30) primary key, /*类型:选择,填空;比如:1对应选择*/ types nvarchar2(30) not null, /*科目:语文,数学,高等数学,问卷调查;用枚举存储数据*/ subject nvarchar2(20), /*题目内容*/ question nvarchar2(2000) not null, answer nvarchar2(2000), /*创建时间*/ create_time date not null, /*题目被选中...
true
12ad0eb60d15701614b745b57f85e4e1825780b3
SQL
epiii/sister
/lib/dbDump/OLD (dr. server ELYON)/#purchase_order/po_alur_stok.sql
UTF-8
1,263
2.65625
3
[]
no_license
# Host: localhost (Version: 5.5.27) # Date: 2015-06-17 00:22:02 # Generator: MySQL-Front 5.3 (Build 4.128) /*!40101 SET NAMES utf8 */; # # Structure for table "po_alur_stok" # DROP TABLE IF EXISTS `po_alur_stok`; CREATE TABLE `po_alur_stok` ( `id` int(4) NOT NULL AUTO_INCREMENT, `tgl` date NOT NULL, `transa...
true
9273a8c2851a55e31c8ad32d806f78442e1ad2e7
SQL
msdc/SentimentSystem
/SqlPatch/分表.sql
UTF-8
14,645
3.5625
4
[ "MIT" ]
permissive
CREATE TABLE `b_info_classification_field_news` ( `b_id` bigint(64) NOT NULL COMMENT '业务库主键ID', `id` bigint(64) NOT NULL COMMENT '主键ID', `search_result_id` bigint(32) DEFAULT NULL COMMENT '搜索ID', `search_engine` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '搜索引擎', `info_type` varchar(32) COLLATE utf8...
true
d9bc047e04ca3cddd32f14e9c909b20b7e817a2c
SQL
hengkp/virusurf_downloader
/sql_scripts/epitope_views_n_indexes/template/epitope_4_virus+protein_mat_view_with_data_template.sql
UTF-8
8,081
3.390625
3
[ "Apache-2.0" ]
permissive
CREATE MATERIALIZED VIEW public.epitope_$virus_id_$short_prot_name TABLESPACE default_ts AS SELECT DISTINCT epi.iedb_epitope_id, epi.epitope_iri, epi.cell_type, epi.mhc_class, epi.mhc_allele, epi.response_frequency_pos, epi.epi_annotation_start, epi.epi_annotation_stop, epi.is_linea...
true
d2fea6c5f7c2e6408862dfb1e04953930178a389
SQL
nss-crystal-cobras/WorkforceManagement
/BangazonWorkforce/WorkforceSeedData.sql
UTF-8
5,102
2.90625
3
[]
no_license
INSERT INTO Department ([Name], Budget) VALUES ('Gardening', 5670000), ('Technology', 3945830), ('Animal Control', 1928128), ('Spirituality', 10000); INSERT INTO Employee (FirstName, LastName, DepartmentId, IsSuperVisor) VALUES ('Allison', 'Collins', 4, 'true'), ('Jordan', 'Rosas', 3, 'true'), ('Brit...
true
759240ade026f155bdf5668c50cad93d47d036f7
SQL
oktapiancaw/pkl_tmu
/database/project_kasus.sql
UTF-8
3,928
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 03, 2021 at 02:37 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
f7032917e2378de2d3a28852379adc02c7518775
SQL
emmanueletti/bootcampx
/4_queries/6_cohort-with-longest-assistances.sql
UTF-8
1,230
4.59375
5
[]
no_license
-- Get the cohort with the longest average duration of assistance requests. -- uply and long -- first created a table of avg durations -- used the MAX aggregegate on that table to get the highest value -- used that value to filter a table of average durations and cohort names SELECT c.name, AVG(a_r.completed_at - ...
true
657c723b328bfe6e1deada4d37f176cab09f73ff
SQL
thisperfect/dhsx
/backup/database/table/mission.sql
UTF-8
1,629
3.453125
3
[]
no_license
DROP TABLE IF EXISTS `mission`; CREATE TABLE `mission` ( `id` INTEGER NOT NULL AUTO_INCREMENT COMMENT '副本ID' ,`mission_section_id` INTEGER NOT NULL COMMENT '剧情ID' ,`name` VARCHAR(50) NOT NULL COMMENT '副本名称' ,`lock` ...
true
db07fbcdabbf401e613f8cf6e78461c08a8f70b2
SQL
qjhart/ahb-pnw.hart14model-poplar
/csv/histogram.sql
UTF-8
1,129
3.140625
3
[]
no_license
set search_path=to_bcam,m3pgjs,public; create temp table iy as with x as ( select pid, sum(acres_harvested)*0.404686 as ha, (sum(acres_harvested)*0.404686/6711)::decimal(6,2) as fraction from pixel_nass_production where year=2007 group by pid ), y as ( select pid,avg(avg_irrigated_yield) as yield from harv...
true
14b1a7c0c558930a70b01d4b8905b0a1ecb8323a
SQL
anshsvnit/Paper_library
/Database/nitsurat_Papers_library.sql
UTF-8
52,512
2.671875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10.18 -- https://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Mar 18, 2017 at 06:12 AM -- Server version: 5.6.35 -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_C...
true
c0ce446bcda737b59145cef6e490d102cf4b79c4
SQL
ferkopar/ToDoSchema
/TR_XL_INSERT_OR_UPDATE.sql
UTF-8
1,742
3.0625
3
[]
no_license
-------------------------------------------------------- -- DDL for Procedure TR_XL_INSERT_OR_UPDATE -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "TR_XL_INSERT_OR_UPDATE" (p_value NUMBER, p_d...
true
96f06239beda9c7dd316a1f161e77c763a87ee98
SQL
atk14/Atk14Eshop
/db/migrations/0104_pricelists.sql
UTF-8
2,099
3.796875
4
[]
no_license
CREATE SEQUENCE seq_pricelists START WITH 11; CREATE TABLE pricelists ( id INT PRIMARY KEY DEFAULT NEXTVAL('seq_pricelists'), -- contains_prices_without_vat BOOLEAN DEFAULT FALSE NOT NULL, code VARCHAR(255), -- rank INT NOT NULL DEFAULT 999, -- created_by_user_id INT, updated_by_user_id INT, -- created_at TI...
true
0ddc09499f3c843d8a8bdf4ec68555496023b490
SQL
CharityBunyon/MoshSQLMastery
/Completed SQL/limit clause.sql
UTF-8
358
3.296875
3
[]
no_license
-- limit clause select * from customers limit 3; -- kind of like top in sql server select * from customers limit 6, 3; -- offset, skip 6 records and then telll me the next 3 -- page 2: 1-3 -- page 2: 4-6 -- page 3: 7-9 -- get the top three loyal customers select * from customers order by points desc limit 3 -- limi...
true
ebc74df8ce4d91545b91681c85d87eb322908941
SQL
fightx/bianzhongming.github.io
/Oracle/知识库/ORACLE优化常用sql/统计信息查看.sql
GB18030
295
3.078125
3
[]
no_license
--ͳϢ鿴 select * from dba_tables a where a.owner='NCV502' and a.last_analyzed is null ; select * from dba_indexes i where i.owner='NCV502' and i.last_analyzed is null; select table_name from dba_tab_columns b where b.owner='NCV502' and b.LAST_ANALYZED is null group by table_name;
true
a5bfecdbb24d0f4b308d5cd0fbcbecf6351bc25c
SQL
qqwangxiaow/leetcode-fast-and-elegant
/596-Classes More Than 5 Students.sql
UTF-8
103
3.21875
3
[]
no_license
# group by ,having ,distinct select class from courses group by class having count(distinct student)>=5
true
c0f3c17bab156aa1999e20c0a27a499f17a8c5f7
SQL
LarkLib/TestSolutionE430C
/StockDataDownloader/Sql/Deadlock stimulate on SQL Server.sql
UTF-8
1,421
3.265625
3
[]
no_license
--Deadlock stimulate on SQL Server 2008 R2 --Step 1 --note : query window1 create database dbtest alter database dbtest set read_committed_snapshot on; use dbtest Dbcc traceon (1204,-1) DBCC Traceon (1222,-1) Create table dbo.Test1 (col1 int); Create table dbo.Test2 (col1 int); Insert into dbo.Test1 values(...
true
976f523ce49fdd609fd0a65ded9658ae02af7e28
SQL
mfvanek/useful-sql-scripts
/postgresql_indexes/parameters_affecting_index_creation.sql
UTF-8
528
3
3
[ "MIT" ]
permissive
set search_path to public; --show temp_file_limit; --set temp_file_limit = '1 MB'; --set temp_file_limit = '10 MB'; --set temp_file_limit = '100 MB'; --show maintenance_work_mem; --set maintenance_work_mem = '1 MB'; --set maintenance_work_mem = '1 GB'; drop index concurrently if exists idx_ref_without_nulls; create i...
true
dbf62ef48a80f9f3e27f03608f0c8affbeb33f1a
SQL
DarkRepulser1227/DataBase-Oracle-foundation
/课堂sql/DDL.sql
GB18030
2,788
3.8125
4
[]
no_license
--༶ CREATE TABLE banji ( -- ֶ constraINT Լ Լ b_id NUMBER CONSTRAINT pk_b_id PRIMARY KEY, b_name VARCHAR2(50) CONSTRAINT nn_b_name NOT NULL, b_location VARCHAR2(10) CONSTRAINT nn_b_location ...
true
3c7069cf3bc1e49a5aadd76f3fc380135bc36586
SQL
NeetuPradhan/shareApp
/_DB_CHANGES/tbl_announcement(2016-11-14)neetu.sql
UTF-8
3,648
3.140625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50527 Source Host : localhost:3306 Source Database : db_share_app Target Server Type : MYSQL Target Server Version : 50527 File Encoding : 65001 Date: 2016-11-14 19:20:38 */ SET FOREIGN_KEY_CHECKS=0; ...
true
24716cf980d984aa9c058f2f97925974ebbc3fa0
SQL
MarioVasilev99/CSharp-DB-September-2019
/Databases Basics - MS SQL Server/Joins, Subqueries, CTE and Indices/Tasks/03. Sales Employees.sql
UTF-8
191
3.6875
4
[]
no_license
SELECT e.EmployeeID, e.FirstName, e.LastName, d.[Name] AS DepartmentName FROM Employees e JOIN Departments d ON e.DepartmentID = d.DepartmentID WHERE d.[Name] = 'Sales' ORDER BY e.EmployeeID;
true
fdad53a03955cf9d24bcd5cd4dfda1e13440f2c2
SQL
lucamaral/MyMoney
/conf/evolutions/default/13.sql
UTF-8
328
2.890625
3
[]
no_license
# Atualização tabela de reservas # --- !Ups DROP TABLE Reserva; CREATE TABLE Reserva ( idReserva INT UNSIGNED PRIMARY KEY NOT NULL AUTO_INCREMENT, valor FLOAT, idUsuario INT UNSIGNED NOT NULL, foreign key (idUsuario) references Usuario(idUsuario) on delete CASCADE ); # --- !Downs DROP TABLE Res...
true
f56aa4fdbf66c04cd2a0977999583fdc2baa46e9
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/tables/MODELOS.sql
ISO-8859-1
1,109
3.015625
3
[]
no_license
-------------------------------------------------------- -- DDL for Table MODELOS -------------------------------------------------------- CREATE TABLE "AXIS"."MODELOS" ( "CMODELO" NUMBER(2,0), "TMODELO" VARCHAR2(40 BYTE), "CCARGO" NUMBER(2,0) ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRAN...
true
8a215e55655b9276029eca94d31d224f7ebc0a78
SQL
leon230/UTMSReporting
/SQL/SQL/SQL/Ryszard Silarski/double shipments.sql
UTF-8
996
3.53125
4
[]
no_license
SELECT orls.order_release_gid ,COUNT(om.shipment_gid) SHIPMENT_COUNT FROM order_release orls ,shipment sh ,order_movement om WHERE om.order_release_gid = orls.order_release_gid AND om.shipment_gid = sh.shipment_gid AND orls.insert_date >= TO_DATE('2016-01-01','YYYY-MM-DD') AND EXISTS (SELECT 1 FROM shipment_refnum ...
true
b319fee416f03cb65e1f469e2f2c4500ac65b6ae
SQL
johnwarejunior/sql-exercises
/sql/06-load-table-like.sql
UTF-8
151
2.546875
3
[]
no_license
\c sql-exercises COPY likes FROM '/Users/johnware/Desktop/learners-guild/sql-exercises/data/likes.csv' DELIMITER ',' CSV HEADER; SELECT * FROM likes;
true
b8cc3f23e0ebb272d5cbe973f24842bd17c3ee0a
SQL
FernandoLuna2000/TiendaComicsMVC
/TiendaComics.sql
UTF-8
1,278
2.65625
3
[]
no_license
create database TiendaComics; use TiendaComics; create table Comic( id int primary key, numepisodio int, nombre varchar(30), tipocomic varchar (30), costo decimal, editorial varchar(30), foto varchar(30) ); insert into Comic values (1,3,'Venom Carnage','Pasta Blanda',29.00,'MarvelCOMICSMX','venomcarnage...
true
1759248278c652ef3dbcabce57badc18328613b8
SQL
nabind/prism_test
/Database_Scripts/Operation_Schema/MISSOURI/TRANSACTIONAL_MISSOURI/MO_SPECIFIC_DB_OBJECTS/Constraint/CHK_REQUEST_TYPE.sql
UTF-8
249
2.765625
3
[]
no_license
-- Need to add new constraint on request_type in job_tracking for GRF ALTER TABLE JOB_TRACKING DROP CONSTRAINT CHK_REQUEST_TYPE; ALTER TABLE JOB_TRACKING ADD CONSTRAINT CHK_REQUEST_TYPE CHECK (REQUEST_TYPE IN ('SDF','SBE','GDF','GRF'));
true
180d41758ca74acb3ececc276ddea041e2c1fa82
SQL
bernardawj/notey-api
/src/main/resources/table-script.sql
UTF-8
2,981
4.1875
4
[]
no_license
DROP TABLE IF EXISTS notifications; DROP TABLE IF EXISTS tasks; DROP TABLE IF EXISTS project_users; DROP TABLE IF EXISTS projects; DROP TABLE IF EXISTS users; CREATE TABLE users ( id SERIAL NOT NULL UNIQUE, email TEXT NOT NULL UNIQUE, password TEXT NOT NULL, first_name TEXT NOT NUL...
true
39b0af3fd1a90de7aacd7ccc0bd30441c7d20622
SQL
GeronimoOM/Shop2
/res/scripts/shop.sql
UTF-8
8,500
3.0625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: sabaik6fx8he7pua.chr7pe7iynqr.eu-west-1.rds.amazonaws.com Database: vqhw9t4apel93gdk -- ------------------------------------------------------ -- Server version 5.7.11-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 S...
true
057d71e371406f69af7244b82d498af060152315
SQL
batego/db_fintra
/fintra/public/Tables/empresa.sql
UTF-8
446
2.65625
3
[]
no_license
-- Table: empresa -- DROP TABLE empresa; CREATE TABLE empresa ( id serial NOT NULL, short_desc character varying NOT NULL DEFAULT ''::character varying, descripcion character varying NOT NULL DEFAULT ''::character varying, dstrct character varying(4) NOT NULL DEFAULT ''::character varying ) WITH ( OIDS=TRUE...
true
495433f15b901a7861c28bd3c2e4e63d13b4c9e6
SQL
AlgernonAngla/store
/day8查询三国演义统计数据.sql
UTF-8
2,879
4.0625
4
[]
no_license
/* 1. 查询出部门编号为30的所有员工 2. 所有销售员的姓名、编号和部门编号。 3. 找出奖金高于工资的员工。 4. 找出奖金高于工资60%的员工。 5. 找出部门编号为10中所有经理,和部门编号为20中所有销售员的详细资料。 6. 找出部门编号为10中所有经理,部门编号为20中所有销售员,还有即不是经理又不是销售员但其工资大或等于20000的所有员工详细资料。 7. 无奖金或奖金低于1000的员工。 8. 查询名字由三个字组成的员工。 9. 查询2000年入职的员工。 10. 查询所有员工详细信息,用编号升序排序 11. 查询所有员工详细信息,用工资降序排序,如果工资相同使用入职日...
true
24d96cdf1285042d8eabf7a0da571f11728645cf
SQL
loterio/crud-delete
/conf/script_bd.sql
UTF-8
328
3.09375
3
[]
no_license
CREATE DATABASE v3; USE v3; CREATE TABLE `marca` ( `codigo` int(11) NOT NULL AUTO_INCREMENT, `descricao` varchar(45) DEFAULT NULL, PRIMARY KEY (`codigo`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1; INSERT INTO marca(descricao) VALUES ('Little descp'), ('One more'), ('And the last'); SELECT * FROM...
true
cf4574d9fbfeaebc2267f398ae59ba2b45f4c8e7
SQL
ParsaYadollahi/COMP-421
/A1/PG-260869949/pgsql/q17.sql
UTF-8
287
3.046875
3
[]
no_license
SELECT pname, budget FROM project WHERE budget > (SELECT AVG(budget) FROM project WHERE ptype = 'internal' ) ORDER BY budget DESC, pname ASC ; -- pname | budget -- ----------+---------- -- Kodiak | 50000000 -- Otters | 46100000 -- Capybara | 19500000 -- (3 rows)
true
e69aab2c7e0d9bd6c945b97a647e750d8987f3d0
SQL
ericzubin/sistemasintegrados
/Los script/sistemasintegrados2016.sql
UTF-8
27,321
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 23-11-2016 a las 17:49:52 -- Versión del servidor: 10.1.13-MariaDB -- Versión de PHP: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
true
d134b036a884f624b453829a24a5617a43df1bc2
SQL
s4mu3lbk/arifpay-auth
/migrations/schema.sql
UTF-8
4,985
2.734375
3
[ "MIT" ]
permissive
-- MySQL dump 10.13 Distrib 5.7.19, for osx10.13 (x86_64) -- -- Host: 127.0.0.1 Database: gotrue_development -- ------------------------------------------------------ -- Server version 5.7.20 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTE...
true
82cdd82191f0700d9428f8fa3e4e273b32a2ef31
SQL
loveyz1806/Vocabulary-v5.0
/BDPM/scr/02_packs_and_homeopathy.sql
UTF-8
274
3.078125
3
[ "Unlicense" ]
permissive
--create table with homeopathic drugs as they will be proceeded in different way create table homeop_drug as ( select a.* from ingredient a join drug b on a.drug_code=b.drug_code where ingredient like '%HOMÉOPA%' or drug_descr like '%degré de dilution compris entre%' );
true
2c86f6ff770cdb3b7cee3bf63b53e3d09c4f0b6b
SQL
BlankCat/strus2shiro
/strus2csm-shiro/WebContent/WEB-INF/djcourse-db.sql
UTF-8
46,728
3.5
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.10.1 -- http://www.phpmyadmin.net -- -- 主机: 192.168.1.189:3306 -- 生成日期: 2013 年 06 月 17 日 09:50 -- 服务器版本: 5.5.11 -- PHP 版本: 5.2.12 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_C...
true
5cf1a9c199d1a2c8d4a94909d374dc905da2b1c3
SQL
cdesmarais/WebDB-Test
/WebDB/StoredProcedures/Common/dbo.DNGetNLMapGenerationDateTime.PRC
UTF-8
1,895
3.796875
4
[]
no_license
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[DNGetNLMapGenerationDateTime]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[DNGetNLMapGenerationDateTime] GO CREATE PROCEDURE dbo.DNGetNLMapGenerationDateTime ( @Date datetime = NULL OUTPUT ) AS SET NOCOUNT ON SET TRANSACTION...
true
c4b51ccd6a7d0f7e4558a78fac1fc22ee8930188
SQL
ashishsingh2637/Useful-Postgresql-Functions
/functions/json/json_array_merge(json, json).sql
UTF-8
641
2.890625
3
[]
no_license
-- Function: public.json_array_merge(json, json) -- DROP FUNCTION public.json_array_merge(json, json); CREATE OR REPLACE FUNCTION public.json_array_merge( json, json) RETURNS json AS $BODY$ --------------------------------------------------------------------------------------------------- -- Developer : A...
true
5d675395c420d66cd5c66c82ef637932bc144906
SQL
SOLA-TONGA/database
/migration/Lease/lease_validate_migration.sql
UTF-8
3,900
3.59375
4
[]
no_license
-- Script run time <5s -- Run the migration scripts in the following order... -- 1) lands_prep_migration_tables.sql -- 2) lands_migration.sql -- 3) lands_validate_migration.sql -- 4) nobel_estates.sql -- 5) lease_prep_migration_tables.sql -- 6) lease_migration.sql -- 7) lease_validate_migration.sql -- 8) sublease_bac...
true
7fe33e21138d47f4efa39afa6f80c59bbeee5fdf
SQL
AndreaGhizzoni/db_course
/Assignment 2/task3/1.sql
UTF-8
302
3.328125
3
[]
no_license
SET search_path TO assignment2,public; /* in the country with the highest GDP, find the percentege of people over 65. */ SELECT SUM(100-children-adult) AS elderly FROM "Population" p JOIN "Economy" e ON e.country=p.country WHERE e."GDP" = ( SELECT MAX("GDP") FROM "Economy") GROUP BY p.country;
true
292b4ad9b236334b23bb7f688da645d2db5ae97b
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/tables/HISESTADOSEG.sql
ISO-8859-1
1,797
2.890625
3
[]
no_license
-------------------------------------------------------- -- DDL for Table HISESTADOSEG -------------------------------------------------------- CREATE TABLE "AXIS"."HISESTADOSEG" ( "SSEGURO" NUMBER, "NORDEN" NUMBER(4,0), "NMOVIMI" NUMBER(4,0), "CSITUAC" NUMBER(2,0), "CRETENI" NUMBER(2,0), "CBLOQUEOCOL...
true
68459c824c18110edd234f24c40067f7c29f3cd5
SQL
han1997/community
/src/main/resources/db/migration/V4__Create_notification_table.sql
UTF-8
336
2.828125
3
[]
no_license
create table notification ( id bigint auto_increment, notifier bigint not null, notifier_name varchar(100) not null, receiver int not null, outer_id bigint not null, outer_title varchar(50) not null, type int not null, gmt_create bigint not null, status int default 0 not null, constraint notification_pk pri...
true
81d1166e2ca5ef016970574ccfdbb0e635521b24
SQL
neostreet/poker_session_data
/2016_sng_nlhe_balance0.sql
UTF-8
216
2.875
3
[]
no_license
use poker select sum(delta),sum(buy_in),sum(entry_fee),sum(delta+entry_fee),count(*) from poker_sessions where poker_style = 1 and poker_flavor = 3 and num_entries = 6 and left(poker_session_date,4) = '2016'; quit
true
7e7710e21bb888652e18ce21090d8bf971088613
SQL
VB6Hobbyst7/VB-2
/올바로병원_브레인/검사코드찾기.sql
UTF-8
1,747
3.140625
3
[]
no_license
SELECT DISTINCT SLABW_INOUT AS INOUT , SLABWS_DATE AS HOSPDATE , CHAM_KEY AS BARCODE ,SLABW_TIME , CHAM_WHANJA AS PNAME , CHAM_JUMIN1 AS JUMIN1 , CHAM_JUMIN2 AS JUMIN2 , SPECI_DATE AS...
true
5cb8c4d63484b51b921a013654e75a82cb707b76
SQL
andrebestrada/SQL-Challenge
/Employees Schema.sql
UTF-8
1,638
3.875
4
[]
no_license
-- Employees Schema DROP TABLE employees; DROP TABLE titles; DROP TABLE dept_emp; DROP TABLE salaries; DROP TABLE department; DROP TABLE dept_manager; CREATE TABLE employees ( emp_no INT NOT NULL, title_id varchar(10) NOT NULL, birth_date varchar(30) NOT NULL, first_name varchar(30) NOT NULL...
true
450cf275619d892e52029a89fbbeaf1bd345d3c3
SQL
psajbh/GAMELOG
/gamelog_r1/documentation/data_generation/gamelog-views.sql
UTF-8
14,700
2.984375
3
[]
no_license
CREATE VIEW gamelog.v_catcher AS select catchers.tm_gamelog_id_fk as id, catchers.game_code as gc, p.full_name as 'C' from lineitem_pos catchers, person p where catchers.pos_catcher_person_id_fk = p.person_id_pk; CREATE VIEW gamelog.v_firstbase AS select firstbase.tm_gamelog_id_fk as id, firstbase.game_code as gc, p....
true
03784f273c1c696a97fa5212e063eab75307d66a
SQL
kalaiR/shalimar
/db/shalimar.sql
UTF-8
17,632
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 03, 2016 at 11:57 AM -- Server version: 5.1.41 -- PHP Version: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
true
20ea7d556261181c47b2c5a5f462aa90b92a2ffd
SQL
zackzackzackzack/dappboard-etl
/schemas/views/009_dapp_bounties_network_fulfillers.sql
UTF-8
456
3.234375
3
[ "MIT" ]
permissive
CREATE VIEW dapp_bounties_network_fulfillers AS SELECT "public"."dapp_bounties_network"."topic_1" AS "address", count(*) AS "count" FROM "public"."dapp_bounties_network" WHERE ("public"."dapp_bounties_network"."type" = 'FulfillmentAccepted' AND CAST("public"."dapp_bounties_network"."timestamp" AS date) BETWEEN CAST((...
true
faf080e9a695cbb652b9458c2355ef6388103775
SQL
ldreyes8/hphrh
/public/archivos/1492813799_create.sql
UTF-8
24,687
3.109375
3
[ "MIT" ]
permissive
# ---------------------------------------------------------------------- # # Script generated with: DeZign for Databases V8.1.2 # # Target DBMS: MySQL 5 # # Project file: HABITAT-RRHH.dez # # Project name: ...
true
aaca493f852b83ac69651985081d699d13ed257e
SQL
zx337913926/yii2.0
/sql/yii2advanced.sql
UTF-8
4,745
3
3
[ "BSD-3-Clause" ]
permissive
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50505 Source Host : 127.0.0.1:3306 Source Database : yii2advanced Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2018-01-07 19:33:25 */ SET FOREIGN_KEY_CHECKS=0; ...
true
5aafdfd126522fe158bc6b3a4d611e628bfe5d57
SQL
brent-cahill/CS-121
/HW5/cs121hw5/make-airline.sql
UTF-8
3,419
3.84375
4
[]
no_license
-- [Problem 5] -- DROP TABLE commands: DROP TABLE IF EXISTS seat_info; DROP TABLE IF EXISTS flights; DROP TABLE IF EXISTS airplanes; DROP TABLE IF EXISTS purchasers; DROP TABLE IF EXISTS purchase; DROP TABLE IF EXISTS tickets; DROP TABLE IF EXISTS traveler; -- CREATE TABLE commands: CREATE TABLE airplanes( type_cod...
true
e94eb1595af60f3463b19332bf44980e32c7e2d7
SQL
Andonon/CD_MySQL_Sakila
/query4_answer.sql
UTF-8
525
4.09375
4
[]
no_license
#What query would you run to get all the customers in store_id = 1 and inside these cities (1, 42, 312 and 459)? #Your query should return customer first name, last name, email, and address. use sakila; select cu.first_name, cu.last_name, cu.email, ad.address, ad.address2, ci.city, cc.country, ad.postal_code from...
true
da62a409c3019019906756a2dbcc74b62e154808
SQL
MGDevelopment/catalog
/bulk/stage1/DBExtractOracle/DB Objects/Autor_Name_Part.sql
WINDOWS-1252
4,473
3.671875
4
[]
no_license
create or replace FUNCTION Autor_Name_Part( part CHAR, -- N=name, L=last name, T=titles Name_1 VARCHAR2, Name_2 VARCHAR2 ) RETURN VARCHAR2 IS TYPE Names_Array IS VARRAY(32) OF VARCHAR2(200); TYPE Types_Array IS VARRAY(32) OF CHAR; Name1 VARCHAR(200); ...
true