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
4fc80dcb3b4895dbcd07bbe0616364f0d0138c87
SQL
xXAntonioXx/SistemaDeLLavesCSTI
/BD/Desarrollo/procedimientos_inventario.sql
UTF-8
5,443
3.640625
4
[]
no_license
/*-----------------------------------------------------*/ /*---------------- REGISTRO DE OBJETOS ---------------*/ /*---------------------------------------------------*/ /*Registro de un objeto en la base de datos*/ /*CREATE DEFINER = CURRENT_USER PROCEDURE....*/ DELIMITER // DROP PROCEDURE IF EXISTS sp_registrar_o...
true
c85ac3b1f63f3bab1e4dcede76868161c324b1d5
SQL
Lacerd/projeto_ds
/PROJETO DS BANCO/DSScript.sql
UTF-8
2,343
3.96875
4
[]
no_license
create database projeto_ds; use projeto_ds; create table cliente ( cod_cliente int auto_increment primary key, nome varchar (255), telefone varchar (255), endereco varchar (255), email varchar (255), idade int, salario double ); -- PROCEDURES DO BANCO -- Procedure Inserir Cliente DELIMITER $$ drop procedure if ...
true
cf65db2cccc8b4c8a09e3c80fee9e45b18d3dc57
SQL
alejandrox1/apisnoop
/apps/hasura/migrations/250_view_api_schema.up.sql
UTF-8
798
3.0625
3
[]
no_license
-- Create -- #+NAME: api_schema view CREATE OR REPLACE VIEW "public"."api_schema" AS SELECT bjs.bucket, bjs.job, d.key AS schema_name, (((d.value -> 'x-kubernetes-group-version-kind'::text) -> 0) ->> 'kind'::text) AS k8s_kind, (d.value ->> 'type'::text) AS resource_type, (((d.value -> 'x-k...
true
83c50160dec0fe1bab32047a4ff48e6039c34e1f
SQL
jobongie/ETL
/PostgreSQL/query.sql
UTF-8
1,253
3.875
4
[]
no_license
-- -- Create the first table -- CREATE TABLE "states_winner_df"( -- "State" VARCHAR, -- "Pollster" VARCHAR, -- "Clinton" DEC, -- "Trump" DEC, -- "Clinton Adjusted" DEC, -- "Trump Adjusted" DEC, -- "Winner" VARCHAR); -- -- Check data import -- SELECT * -- FROM states_winner_df; -- -- Create the ...
true
13f54fc045368e46fdb016107abbc3fccd777eeb
SQL
Gfilinic/FOI_DataBase2_Project
/Kafic_DB_Script_WorkBenchSync.sql
UTF-8
2,960
3.078125
3
[]
no_license
-- MySQL Workbench Synchronization -- Generated: 2020-01-15 22:03 -- Model: New Model -- Version: 1.0 -- Project: Name of the project -- Author: Goc 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, SQ...
true
57e28d51b99c3324fb4b6bf6ca0b9ca328494dbc
SQL
thinkful-ei-emu/ashley-capstone-server
/migrations/002.do.create_artiste_users.sql
UTF-8
344
2.6875
3
[]
no_license
CREATE TABLE users ( id SERIAL PRIMARY KEY, user_name TEXT NOT NULL UNIQUE, first_name TEXT NOT NULL, last_name TEXT NOT NULL, email TEXT NOT NULL UNIQUE, password TEXT NOT NULL, collector BOOLEAN DEFAULT FALSE NOT NULL ); ALTER TABLE galleries ADD COLUMN user_id INTEGER REFERENCES users(id) ...
true
e55d5defdc13f2aaabcfdef7100b882c5a897c28
SQL
acolley/toggler
/migrations/2019-03-18-210307_create_events/up.sql
UTF-8
352
3.3125
3
[]
no_license
CREATE TABLE events ( id TEXT PRIMARY KEY NOT NULL, aggregate_id TEXT NOT NULL, generation INTEGER NOT NULL, created_at TEXT NOT NULL, type TEXT NOT NULL, data TEXT NOT NULL ); CREATE INDEX ix_events_aggregate_id ON events (aggregate_id); CREATE UNIQUE INDEX uq_aggregate_id_generation_id ON eve...
true
ff7654fc4a03efe168124f9694984385f7d0f8cf
SQL
kevinshuai/Coding_Practice
/sql/Ollivander's_Inventory.sql
UTF-8
616
4
4
[]
no_license
/* the minimum number of gold galleons needed to buy each non-evil wand of high power and age. Write a query to print the id, age, coins_needed, and power of the wands that Ron's interested in, sorted in order of descending power. If more than one wand has same power, sort the result in order of descending age. */ sele...
true
e3e0fc67c41ed6f3250075eef22bc7e8c4d721d1
SQL
AimeeTan/ZPSGateway
/Zebra.DB.ZPS.Gateway/@ToLIB/Functions/SackMft_LedgerByCharge.sql
UTF-8
3,720
2.890625
3
[]
no_license
--Daxia CREATE FUNCTION [shpt].[SackMft#LedgerByCharge](@sackMftID bigint) RETURNS TABLE WITH SCHEMABINDING, ENCRYPTION AS RETURN ( select MatterID=x.ID, ContractID=0, [LedgerPartyID]=p.AID, u.ChargeID, u.ChargeAmt, u.CurrencyID from shpt.SackMft#Base() x join core.Party#Raw() p on p.ID=x.HubID cross apply core...
true
3be43543232bb1ace1afc1576dbd7656d1e6a28c
SQL
DenisKotolenko/Tim-814repo
/LolFightProjekat/SQLQuery1.sql
UTF-8
5,598
3.1875
3
[]
no_license
CREATE TABLE [Admin] ( [IdAdmin] INT IDENTITY (1, 1) NOT NULL, [Username] NVARCHAR (45) NULL, [Password] NVARCHAR (45) NULL, [eMail] NVARCHAR (200) NULL, CONSTRAINT [PK_dbo.Admin] PRIMARY KEY CLUSTERED ([IdAdmin] ASC) ); CREATE TABLE [User] ( [IdUser] INT IDENTITY (1, 1) NOT NULL, [...
true
102c37b5a60051f31f01780c5b8a48c11eff6c1d
SQL
kim123/InventorySystem
/WebRoot/scripts/procedures/AddEloadDailySales.sql
UTF-8
522
2.65625
3
[]
no_license
DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `AddEloadDailySales`(in p_eloadproductid int(11), in p_priceid int(11), in p_quantity int(11), in p_updatedBy varchar(50), in p_eloadtype varchar(20)) BEGIN DECLARE v_result varchar(50); SET v...
true
05346e8e8a5e0c34f2b3043ff46cd0cb2138ec9d
SQL
ObsidianHub/php_image-slider
/galery.sql
UTF-8
2,096
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.3 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Фев 02 2018 г., 19:09 -- Версия сервера: 5.6.37 -- Версия PHP: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTE...
true
a064c819eff3030e6880bf86681df0ec2747de9e
SQL
naveenkod22/MySQL
/Query/4-Summarizing Data/4.4 rollup operator.sql
UTF-8
480
3.6875
4
[ "MIT" ]
permissive
-- 4.4 rollup operator -- only avalible in mysql use sql_invoicing; select state, city, sum(invoice_total) as total_sales from invoices i join clients c using (client_id) group by state, city with rollup; -- Exercise select pm.name as payment_method, sum(amount) as total from payments p join pay...
true
e111bd44cc6a5d8bced3f5cf51d17480a039b826
SQL
jielen/puer
/documents/数据库/puer_database_update.sql
GB18030
100,860
2.890625
3
[]
no_license
--1 CREATE OR REPLACE VIEW V_SF_DOC_SEND AS SELECT D.ENTRUST_ID, MAX(D.RECIEVOR) AS RECIEVOR, MAX(D.RECIEVOR_TEL) AS RECIEVOR_TEL, MAX(D.SEND_DATE) AS SEND_DATE FROM SF_DOC_SEND D GROUP BY D.ENTRUST_ID; CREATE OR REPLACE VIEW V_SF_JD_REPORT AS SELECT R.ENTRUST_ID,MAX(R.REPORT_C...
true
b52f959102131f6b1dbf83c7e0d7f3676af5b96f
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day11/select2041.sql
UTF-8
178
2.609375
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-10T20:41:00Z' AND timestamp<'2017-11-11T20:41:00Z' AND temperature>=37 AND temperature<=50
true
d0c57acded905a21f1e8c45981e2fb0956924ce9
SQL
victolima/Bancas-TCC
/data-base/SQL.sql
UTF-8
2,545
3.96875
4
[]
no_license
-- Criar tabela Professor CREATE TABLE professor ( nome varchar(100), titulacao varchar(15), primary key(nome) ); -- Inserir dados na tabela Professor INSERT INTO professor (nome, titulacao) VALUES ('Antonio Alfredo Lacerda', 'Especialista'), ('Cristine do Carmo Schmidt Bueno de Moraes', 'Mestre'), ('Mar...
true
8ddaf2ac653bff7052fb775e4175475bac9e8290
SQL
hzr958/myProjects
/scmv6/dbscripts/history/6.0.4/test/v3pdwh.sql
UTF-8
3,854
3.265625
3
[]
no_license
-- 数据库脚本登记示例 --原因(有CQ号带上CQ号) 2016-12-8 WSN begin --中间放sql语句 --原因(有CQ号带上CQ号) 2016-12-8 WSN end type NUMBER(2) --原因(有CQ号带上CQ号) 2017-05-23 zjh begin -- Create table create table PDWH_PUB_CITED_TIMES ( pdwh_pub_id NUMBER(18) not null, cited_times NUMBER(8), update_date DATE default sysdate, type ...
true
a3b6588c770f438290034faf2448986243c716e5
SQL
bellatrixdatacommunity/data-structure-and-algorithms
/leetcode/databases/duplicate-emails.sql
UTF-8
988
3.859375
4
[ "MIT" ]
permissive
/* ## Questions ### 182. [Duplicate Emails](https://leetcode.com/problems/duplicate-emails/) SQL Schema Create table If Not Exists Person (Id int, Email varchar(255)) Truncate table Person insert into Person (Id, Email) values ('1', 'a@b.com') insert into Person (Id, Email) values ('2', 'c@d.com') insert into Person...
true
217cad875f2d1089a1f9d684f49acd9a0df22817
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day11/select1700.sql
UTF-8
264
2.828125
3
[]
no_license
SELECT sen.name FROM SENSOR sen, SENSOR_TYPE st, COVERAGE_INFRASTRUCTURE ci WHERE sen.SENSOR_TYPE_ID=st.id AND st.name='WiFiAP' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['3054','1425','5100_8','5032','6036','5074','1422','4243','6032','2048'])
true
9a9294c5a4bbd07649084c45b39bf32332d6d4d4
SQL
hsosik/ifcb-analysis
/analyze_by_class/tag_by_roi_one_timeseries2.sql
UTF-8
868
4.15625
4
[ "MIT" ]
permissive
with tag_roi_list as ( select wt.bin || '_' || lpad(cast(wt.roi as text), 5, '0') as binroi, tl.name, tl.id from classify_nonnegated_tags wt, classify_taglabel tl where wt.tag_id = tl.id and cast(wt.timeseries_id as uuid)=(select id from classify_timeseries where url like '%%%s/') order by bin, roi ), class_roi_list a...
true
f393a324efa8d10f3fc93bc565297d8e190c0993
SQL
qvantage/unisonvs2010code
/Unison/Queries/HR/TimeCard-Totals Insert-Update Fixing Queries.sql
UTF-8
2,929
3.71875
4
[]
no_license
Select ead.EmployeeID, ead.PayrollEnding, ead.DeptNo, Sum(ead.RegHrs) as TotRegHrs, Sum(ead.OTHrs) as TotOTHrs, Sum(ead.DTHrs) as TotDTHrs from UN_HR.dbo.EmployeeActivityDetail ead where ead.Processed = 0 AND ead.PayrollEnding = '05/14/2006' group by ead.EmployeeID, ead.PayrollEnding, ead.DeptNo order by employeeid,...
true
7fd2c74734b48ab7a1de0354b32736e264e4451d
SQL
seufster71/toasthub-db
/cborgtech-db/toasthub-trade/configuration_db.sql
UTF-8
646
2.859375
3
[]
no_license
DROP TABLE IF EXISTS `ta_configuration`; CREATE TABLE `ta_configuration` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `identifier` varchar(64), `backloaded` bit(1) DEFAULT 0, `is_active` bit(1) DEFAULT 1, `is_archive` bit(1) DEFAULT 0, `is_locked` bit(1) DEFAULT 0, `lockowner_id` bigint(20) DEFAULT NULL, `modifie...
true
352d4b0a5dcd955c7bacc28ff4a24d0e0db31856
SQL
popmusicfan1992/SQL
/GROUP_BY_HAVING.sql
UTF-8
1,370
3.984375
4
[]
no_license
USE DAOTAO -- xuất ra số lượng giáo viên trong từng bộ môn mà số giáo viên > 1 -- having -> như where của select nhưng dành cho group by -- having là where của group by SELECT BOMON.MABM, COUNT(*) FROM GIAOVIEN, BOMON WHERE BOMON.MABM = GIAOVIEN.MABM GROUP BY BOMON.MABM HAVING COUNT(*) > 1 -- Xuất ra mức lương và ...
true
d17988163777dc814821952fe86526957dcaadad
SQL
JJavier98/FBD
/PRACTICAS/ejercicios sql/crea 2.sql
UTF-8
856
3.265625
3
[]
no_license
create table libro2( codlibro int CONSTRAINT clave_primaria primary key, titulo varchar2(15) ); create table tema2( tipo varchar2(15) CHECK (tipo IN ('policiaca', 'romantica', 'juvenil', 'novela')), primary key (tipo) ); create table trata2( codlibro references libro2(codlibro), tipo reference...
true
6a3f1a7a641135368697c24aa28555d6ff302808
SQL
mgrbic12/i308
/Lab9i308Team32.sql
UTF-8
3,283
3.203125
3
[]
no_license
Team 32 I308 Lab 9 : M2 Max Grbic, Hunter Probus, EJ Santiago, Mitch Gilbert 3/18/2019 CREATE TABLE artist(aid int auto_increment, fname varchar(20), lname varchar(20), dob date, gender varchar(20), primary key (aid))engine = innodb; CREATE TABLE band(bid int auto_increment, name varchar(20), year_formed int, ...
true
f2a2cacd69b1b5a706f918678103db83c559a5a2
SQL
wagnermarques/SIN5009WithBonitasoft
/tomcat/setup/platform_conf/sql/postgres/createTables.sql
UTF-8
31,485
3.5625
4
[ "Apache-2.0", "GPL-2.0-only" ]
permissive
CREATE TABLE configuration ( tenant_id INT8 NOT NULL, content_type VARCHAR(50) NOT NULL, resource_name VARCHAR(120) NOT NULL, resource_content BYTEA NOT NULL ); ALTER TABLE configuration ADD CONSTRAINT pk_configuration PRIMARY KEY (tenant_id, content_type, resource_name); CREATE INDEX idx_configuration ON confi...
true
df86d5ff99fac75e15c731c02f33bb666ad673db
SQL
orekav/dosideas-jee001
/src/main/resources/schema.sql
UTF-8
1,412
3
3
[]
no_license
DROP TABLE IF EXISTS pais; DROP TABLE IF EXISTS provincia; CREATE TABLE pais ( id BIGINT IDENTITY PRIMARY KEY, nombre VARCHAR(50) ); CREATE TABLE provincia ( id BIGINT IDENTITY PRIMARY KEY, id_pais BIGINT, nombre VARCHAR(50), FOREIGN KEY(id_pais) REFERENCES pais(id) ); INSERT...
true
255233eb98b442fdde555f99ae5dfedd1296b331
SQL
manami-c/my-sql-scripts
/EDDB-subquery.sql
UTF-8
149
3.234375
3
[]
no_license
/*creat a list of students that have SAT scores below the average of all students*/ select * from Student where SAT < (select avg(sat) from student)
true
aac8da3fcd0acae1b7b70d8f4b003aa0fdb909d7
SQL
lgmoore/site2
/users.sql
UTF-8
2,089
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Host: ictstu-db1.cc.swin.edu.au -- Generation Time: Sep 05, 2017 at 02:17 AM -- Server version: 5.5.52-MariaDB -- PHP Version: 7.0.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
true
1613281093cb71efe0ecdcf9560a5cb7a92b60b6
SQL
joninjais/postgres-sql
/เอกสารค่ารักษาระบบเบิกจ่ายตรง1.sql
UTF-8
8,099
3.65625
4
[]
no_license
select q.hospital ,q.d_visit ,q.pt_age ,q.HN ,q.VN ,q.pt_type ,q.PID ,q.pt_name ,q.plan ,q.address ,q.item16group ,q.b_item_id ,q.item_common_name ,q.item_nick_name ,q.draw ,q.discharge ,q.visit ,sum(q.order_qty) as order_qty ,q.order_price ...
true
5efd7b5728f868e8c49641427399467117b14d12
SQL
bubdm/View-plug-ins
/View-plug-ins/OracleModel/2-Views/02-VIEW_LAST_BATCH_LOG.sql
UTF-8
254
2.953125
3
[ "MIT" ]
permissive
CREATE OR REPLACE VIEW VPI.VIEW_LAST_BATCH_LOG AS SELECT LOG_TIME, BATCH_ID, PROGRESS_STEP, PROGRESS_DESC, SPENT_TIME FROM VPI.VIEW_EXTRACT_BATCH_LOG WHERE BATCH_ID = (SELECT MAX(BATCH_ID) FROM VPI.EXTRACT_BATCH_LOG) WITH READ ONLY;
true
c7c86c0f1886fb0cbd4ff84a7d38e0dcbff56e4e
SQL
Alejandro0120/clases
/BD/Dacathlon/codigo.sql
UTF-8
3,870
3.796875
4
[]
no_license
DROP DATABASE IF EXISTS dacathlon; CREATE DATABASE `dacathlon` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ; USE `dacathlon`; CREATE TABLE `dacathlon`.`personas` ( `idPersona` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, `nif` VARCHAR(9) NOT NULL, `nombre` VARCHAR(45) NULL, `apellidos` VARCHAR(45) NULL...
true
58bd9507db4647d2c9dc9a1d5b8d68381903af22
SQL
dlwhitehurst/my-api
/src/models/schema/addresses.sql
UTF-8
684
3.46875
3
[]
no_license
CREATE TABLE IF NOT EXISTS `addresses` ( `id` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, `person` INT(11) DEFAULT NULL, `address1` VARCHAR(50) DEFAULT NULL, `address2` VARCHAR(50) DEFAULT NULL, `city` VARCHAR(50) DEFAULT NULL, `state` VARCHAR(50) DEFAULT ...
true
745e80f2d0c4d6d683adabf0b778c41a95744655
SQL
ahnty0122/SQL
/SQL 기초 1/문제 3~6.sql
UTF-8
1,905
4.25
4
[]
no_license
-- 문제 3 -- 만들어놓은 mydb에 아래와 같이 테이블을 만들어라. -- 테이블명 : EMP -- 열이름 -- deptNo -- deptName -- job -- sal create table emp( deptNo int, deptName char(10), job char(5), sal int, primary key(deptNo) ); -- 문제4 -- 만들어진 emp테이블에 아래의 데이터를 삽입하라 -- 10, '인사팀', '사원', 250 -- 20, '재무팀', '대리', 300 -- 30, '법무팀', '과장', 350 -...
true
a1732108ba52e86b61d5e571cd465a8d8efd75e6
SQL
MariaGolownia/telegram_bot
/src/main/java/com/telegram/citybot/sql/insert.sql
UTF-8
2,127
2.75
3
[]
no_license
INSERT INTO public.city_info(city, info) VALUES ('Рим', 'Посетите развалины Колизея и прикоснитесь к памятникам истории, которые уходят корнями на несколько веков назад)))'); INSERT INTO public.city_info(city, info) VALUES ('Минск', 'Полистайте старинную книгу в Национальной библиотеке,прогуляйтесь по Троицкому Пред...
true
c536560ab597ff75e122f770ee466875f382506d
SQL
singhraman4282/mySQLNavy
/navy_schema.sql
UTF-8
1,030
2.828125
3
[]
no_license
CREATE TABLE fleet ( id INTEGER PRIMARY KEY, fleet_name VARCHAR(50) ); INSERT INTO fleet (fleet_name) VALUES ('Abraham'); CREATE TABLE ship ( id INTEGER PRIMARY KEY, ship_name VARCHAR(50), dateBuilt VARCHAR(10) ); INSERT INTO ship (ship_name, dateBuilt) ...
true
e9971c49c7822c074a81540f0b32c996acf46e2f
SQL
the2baddavid/web_comic
/database/web_comic_4-19.sql
UTF-8
3,412
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.2deb1ubuntu1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 19, 2012 at 09:31 AM -- Server version: 5.1.61 -- PHP Version: 5.3.2-1ubuntu4.14 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!401...
true
84c550d3e8c3529ed19ca6315c31bcc2b0158acd
SQL
ksumrall/SumDataTierGenerator
/DataTierGenerator.SchemaExtractor/EmbeddedResources/ExtractDatabasePrimaryKeys.sql
UTF-8
494
4.15625
4
[]
no_license
SELECT SCHEMA_NAME(t.schema_id) AS schema_name ,t.NAME table_name ,i.NAME AS index_name ,c.NAME AS column_name ,key_ordinal FROM sys.indexes AS i INNER JOIN sys.index_columns AS ic ON i.object_id = ic.object_id AND i.index_id = ic.index_id INNER JOIN sys.tables t ON i.object_id = t.object_id...
true
327032039c7e190000f5ed16da74d5074f1fca34
SQL
projCa/gitH
/Genesis_driving/dbase.sql
UTF-8
9,999
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Sep 11, 2018 at 08:05 PM -- Server version: 5.7.21 -- PHP Version: 5.6.35 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
3070ad3789866330180b649617a8811879a3aec8
SQL
dobbsjos/MySQL
/schema.sql
UTF-8
637
3.5625
4
[]
no_license
DROP DATABASE IF EXISTS employee_trackerDB; CREATE database employee_trackerDB; USE employee_trackerDB; CREATE TABLE departments ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(30) NOT NULL ); CREATE TABLE role_position ( id INT not null AUTO_INCREMENT PRIMARY KEY, title VARCHAR(30) NOT NULL, sa...
true
eead31674224b7cbee17e4ec3ee8e0bb55a07d61
SQL
ezpublishlegacyprojects/ca_countrylist
/trunk/ca_countrylist/sql/mysql/mysql.sql
UTF-8
446
2.6875
3
[]
no_license
CREATE TABLE IF NOT EXISTS `ezcountryinfo` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `country_code` text NOT NULL, `languages` text NOT NULL, `continent` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE IF NOT EXISTS `ezcountrytranslation` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `count...
true
a70e22f89c37b2e6b6d0ba83007db477d501617f
SQL
FIXER3600/Aula-1-BD-3
/Aula1.sql
MacCentralEurope
1,432
3.65625
4
[]
no_license
USE master; create table tbl_cad_prod( id_prod int identity(1,1), nome varchar(100) not null, preco float not null, lot int not null, val Date, PRIMARY KEY (id_prod)); create table tbl_cli( id_cli int, nome char(50), Age int, ender varchar(200), PRIMARY KEY (id_cli)); create table tbl_vda( id_vda int, data Date, id_cli...
true
2be4b045f64b865e9763d3257f4db0b67942b4de
SQL
CJBuck/AssetWorksConversion
/Loading/VendorContract/CurrentCycle/Code/Copy TransformPurchaseOrdersVendorContractFiles To TargetPurchaseOrdersVendorContractFiles.sql
UTF-8
190
2.609375
3
[]
no_license
INSERT INTO TargetPurchaseOrdersVendorContractFiles SELECT * FROM TransformPurchaseOrdersVendorContractFiles VCF WHERE VCF.[Control] IS NOT NULL AND ISNULL(VCF.VendorContractID, '') <> ''
true
7aafe4804c9d079f7745d487e410e264c884d445
SQL
onkar-tendulkar/portfolio-tracker
/src/schema/portfolio/tables.sql
UTF-8
595
3.359375
3
[]
no_license
CREATE TABLE security ( id INT auto_increment, symbol VARCHAR(10) NOT NULL, name VARCHAR(250) NOT NULL, created_time timestamp NULL DEFAULT CURRENT_TIMESTAMP ); CREATE TABLE portfolio ( id INT auto_increment, user_id INT, name VARCHAR(250) NOT NULL, created_time timestamp NULL DEFAULT ...
true
39ac7dddf177ead3b4e69924a4f72c35adfd7673
SQL
rikiahmad2/appmelati
/melati.sql
UTF-8
12,793
2.9375
3
[ "MIT" ]
permissive
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.4.14-MariaDB - mariadb.org binary distribution -- Server OS: Win64 -- HeidiSQL Version: 11.2.0.6213 -- -----------------------------------------------...
true
e06ca76f6aa1805f28e78ce33cff48b4f928dae3
SQL
NikosBakalis/i-aso
/MySQL/iaso_prototype-v08.2.sql
UTF-8
8,682
3.734375
4
[]
no_license
DROP DATABASE IF EXISTS iaso_hospital_db_v08; CREATE DATABASE IF NOT EXISTS iaso_hospital_db_v08 CHARACTER SET utf8mb4; USE iaso_hospital_db_v08; CREATE TABLE IF NOT EXISTS hospital ( afm VARCHAR(20) PRIMARY KEY, name VARCHAR(30), first_street_name VARCHAR(30), first_street_number VARCHAR(4), primary_pho...
true
c5ffc4748ea15f5fedca0fac5156348d26e2f80b
SQL
Gustavo-Braga/gestao-escolar
/scripts/002-create-tables.sql
UTF-8
2,604
3.859375
4
[ "MIT" ]
permissive
CREATE TABLE GES.PessoaFisica( Id INT IDENTITY NOT NULL, EntityId UNIQUEIDENTIFIER NOT NULL, DataCriacao DATETIME NOT NULL, Nome VARCHAR(400) NOT NULL, Cpf VARCHAR(11) NOT NULL, NomeSocial VARCHAR(400) NULL, Sexo CHAR(1) NOT NULL, DataNascimento DATETIME NOT NULL ); ALTER TABLE GES.PessoaFisica ADD CONSTRAINT P...
true
72f9f0b359ba0b806f429be784218d8a770390a9
SQL
rhett715/spring-boot-asura
/shiro-rbac-admin/src/main/resources/my_rbac.sql
UTF-8
2,635
3.90625
4
[ "MIT" ]
permissive
DROP TABLE IF EXISTS `sys_user`; CREATE TABLE `sys_user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户主键id', `username` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户名', `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '密码'...
true
7e90a0c314fcc7cbca46f1d7200454ccdf94e8a1
SQL
sogis/gretljobs
/afu_oekomorphologie_csvimport/linien_event/calc_geom.sql
UTF-8
1,204
3.53125
4
[ "MIT" ]
permissive
SET search_path TO ${dbSchema}; WITH fraction_measures_raw AS ( SELECT c.vongnrso / public.st_length(g.geometrie) AS m_von, c.bisgnrso / public.st_length(g.geometrie) AS m_bis, c.t_id AS csv_tid, g.t_id AS base_tid FROM ${eventTable} c JOIN gewaesserbasisgeometrie g ON c.rgewaesser = ...
true
063f7b89bf0cc07ecb0c4776ef1a50db145dd252
SQL
lucasca95/harvard_flask_python_course
/project1/www/db/create.sql
UTF-8
1,178
3.625
4
[ "Apache-2.0" ]
permissive
-- Creación de tablas sin relaciones CREATE TABLE users( user_id SERIAL PRIMARY KEY, user_fullname VARCHAR NOT NULL, user_email VARCHAR UNIQUE NOT NULL, user_password VARCHAR NOT NULL, user_level INTEGER NOT NULL DEFAULT 1 CHECK (user_level >= 0) ); CREATE TABLE books( book_id SERIAL PRIMARY K...
true
39813b84c9f2658dc2f62210a1be3e315847c58c
SQL
cgapti/mining
/DBScripts/Table_Scripts/Tbl_Stone_Details.sql
UTF-8
3,245
3.046875
3
[]
no_license
-------------------------------------------------------- -- File created - Wednesday-December-21-2016 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Table TBL_STONE_DETAILS -------------------------------------------------------- C...
true
c5d234085b36c4475f381f199e38d4fa69080db7
SQL
joshbrogdon5/personal-project
/db/backup.sql
UTF-8
3,915
3.359375
3
[]
no_license
create table users( id serial primary key, user_name varchar(180), email varchar(180), auth_id text, picture text ); create table products( id serial primary key, category varchar(80), title varchar(180), description varchar(250), image text, price integer ); create ta...
true
3c09ae7d9fea9ee6374d5446cf07e0196f5ede3e
SQL
orenzeki/CompEngineeringProjects
/CENG352 Database Management Systems/MP1/Answers/q12.sql
UTF-8
805
4.09375
4
[]
no_license
select toBoston.year, toBoston.airline_code, (toBoston.cnt) as boston_flight_count, (toBoston.cnt*100.0/toAll.cnt2) as boston_flight_percentage from (select fr.year, fr.airline_code, (count(*)) as cnt from flight_reports fr where fr.dest_city_name like 'Boston%' and fr.is_cancelled = 0 group by...
true
429a2249c2897651426be52021dd2ec1e0790b95
SQL
am-e/DataScienceProject
/tennisDB/tennis_routines.sql
UTF-8
9,243
3.5625
4
[]
no_license
CREATE DATABASE IF NOT EXISTS `tennis` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `tennis`; -- MySQL dump 10.13 Distrib 5.6.17, for Win32 (x86) -- -- Host: 127.0.0.1 Database: tennis -- ------------------------------------------------------ -- Server version 5.6.20 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
true
65b6f8941c7341e2f30ab061551cc59481f709f8
SQL
David-Luque/sql-mysql-course
/mySQL/Data_Types/end_section_exercises.sql
UTF-8
705
3.09375
3
[]
no_license
-- CREATE TABLE inventory -- ( -- item_name VARCHAR(100), -- price DECIMAL(8,2), -- quantity INT -- ); -- SELECT CURTIME(); -- SELECT CURDATE(); -- SELECT DAYOFWEEK(CURDATE()); -- SELECT DATE_FORMAT(NOW(), '%w'); -- SELECT DAYNAME(NOW()); -- SELECT DATE_FORMAT(NOW(), '%W...
true
8bf307767862ad0db96d45f1b3797a41b183dfff
SQL
JPoulin90/Winter21SQL
/lab01/ddl.sql
UTF-8
2,123
3.890625
4
[]
no_license
drop database if exists `csd220_lab1_jordanpoulin` ; /* question 1 */ create database if not exists `csd220_lab1_jordanpoulin` character set utf8mb4 collate utf8mb4_unicode_ci ; /* question 1, 2 */ use `csd220_lab1_jordanpoulin`; /* question 3 */ drop table if exists `csd220_lab1_jo...
true
be26555ea22f70e8b788a8098463dfc899d82b5b
SQL
HeyMo0sh/Farm_Safety_DEMO_Source
/onside/Tables/FtpDownloadProcessingTask.sql
UTF-8
630
2.53125
3
[]
no_license
CREATE TABLE [FtpDownloadProcessingTask] ( [Id] BIGINT IDENTITY (1, 1) NOT NULL, [TaskState] INT NOT NULL, [DelayProcessingUntilUtc] DATETIME2 (7) NOT NULL, [StartProcessingUtc] DATETIME2 (7) NULL, [EndProcessingUtc] DATETIME2 (7) NULL...
true
ae85869573922d0cb35738cd2e4b6d8e308a58fe
SQL
hajonie/pressearchiv3
/Pressearchiv3/admin/sql/install.sql
UTF-8
6,724
3.03125
3
[]
no_license
CREATE TABLE IF NOT EXISTS `#__pressearchiv_articles` ( `id` int(11) NOT NULL auto_increment, `catid` int(11) NOT NULL, `title` varchar(250) NOT NULL, `alias` varchar(255) NOT NULL, `released` date NOT NULL default '0000-00-00', `sourcesid` int(11) NOT NULL, `author` varchar(250) NOT ...
true
ce0fbde1220fddd47f633c795a7b95af9e210b05
SQL
LusiZidarova/Project_couriers
/project_evropat.sql
UTF-8
6,800
3.84375
4
[]
no_license
-- -------------------------------------------------------- -- Host: localhost -- Server version: 5.7.24 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 11.0.0.5919 -- -------------------------------------------------------- /...
true
1a8bc6ceed6a37b98c315649500859106fd313b7
SQL
bailipeng5799/Demo
/bookstore/sql.sql
UTF-8
197
2.96875
3
[]
no_license
--创建购物车表 CREATE TABLE carts( id VARCHAR(100) PRIMARY KEY, total_count INT NOT NULL, total_amount DOUBLE(11,2) NOT NULL, user_id INT NOT NULL, FOREIGN KEY(user_id) REFERENCES users(id) )
true
6f46d44cc89c40def494d3e57de5af096d565c2d
SQL
QizixiAlex/spot-a-song
/backend/db/complex_query.sql
UTF-8
411
3.953125
4
[]
no_license
/*find out playlist relation between a given user and all songs */ /*Nested Query and Outer Join*/ SELECT user_playlists.playlist_name, songs.song_id, songs.title FROM (SELECT song_id, playlists.playlist_name FROM playlists, playlist_songs WHERE user_id = 1 AND playlists.playlist_id = playlist_songs.p...
true
6bfe3fcf08541aac6b3140d96449ac393d991103
SQL
mohit-99/Project
/Database_Data.sql
UTF-8
14,791
3.359375
3
[]
no_license
/* SQLyog Ultimate v11.11 (64 bit) MySQL - 5.0.27-community-nt : Database - pythondb ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FORE...
true
4d51222355eef4b85d135101d72b7a88dba40bd5
SQL
leahgean/MarketingAutomationTool
/DBScripts/27_CREATE_TABLE_ContactListJob.sql
UTF-8
624
2.734375
3
[]
no_license
CREATE TABLE ContactListJob( JobId INT IDENTITY(1,1) NOT NULL PRIMARY KEY, JobName VARCHAR(50) NOT NULL, JobStatusId TINYINT NOT NULL, AccountID UNIQUEIDENTIFIER NOT NULL REFERENCES Account(AccountID), CreatedBy UNIQUEIDENTIFIER NOT NULL REFERENCES [User](UserID), FileFormat VARCHAR(5) NOT NULL, OriginalFileName...
true
75644a8ef384df7577e8d1610bfc1da65a7329af
SQL
treysmith8742/Better-5C-Menu-
/favorites.sql
UTF-8
417
3.34375
3
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS MENU; CREATE DATABASE MENU; USE MENU; CREATE TABLE Students( student_id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, fname VARCHAR(256) NOT NULL, lname VARCHAR(256) NOT NULL, password VARCHAR(256) NOT NULL ); CREATE TABLE Favorites( student_id INT NOT NULL, meal VARCHAR(256)...
true
b5b8436d9289f58699899da77993077837150805
SQL
jerubball/HackerRank
/SQL/Database/DB_students.sql
UTF-8
1,159
3.5
4
[ "Unlicense" ]
permissive
-- MySQL create database if not exists HackerRank; use HackerRank; -- Subdomains: BasicSelect, BasicJoin drop table if exists STUDENTS; create table STUDENTS ( ID int, Name varchar(30), Marks int ); drop table if exists GRADES; create table GRADES ( Grade int, Min_Mark int, Max_Mark int ); inse...
true
9894ba97d7846cf4faabc0a5d40a64f1f68674e8
SQL
Randy-Blancett/do-php-user-manager
/User_Manager/sql/tables/users_schema.sql
UTF-8
1,171
3.09375
3
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
# This is a fix for InnoDB in MySQL >= 4.1.x # It "suspends judgement" for fkey relationships until are tables are set. SET FOREIGN_KEY_CHECKS = 0; -- --------------------------------------------------------------------- -- users -- --------------------------------------------------------------------- DROP TABLE IF ...
true
37db4821453028ab7fa4fba70a77a0796b5af45b
SQL
victorkryz/HR-Utils
/install/uninstall.sql
UTF-8
771
2.625
3
[ "MIT" ]
permissive
set serveroutput on set feedback off whenever oserror exit failure; whenever sqlerror exit SQL.SQLCODE; prompt "HR-Utils" uninstalling ... declare procedure exec_ddl(p_strStatement varchar2) as begin execute immediate p_strStatement; exception when others then null; end; begin exec_ddl('drop packa...
true
72e2decf6c7164b904322ae5aed9c3d4d9654311
SQL
luismorenolopera/bd-actividades-1-5
/Actividad4.sql
UTF-8
5,170
2.578125
3
[]
no_license
INSERT INTO Region (IdRegion,NomRegion) VALUES ('1','Este'), ('2','Oeste'), ('3','Centro'), ('4','Norte'), ('','') INSERT INTO Ciudad (IdCiudad,Nomciudad) VALUES ('1','Valencia'), ('2','Alicante'), ('3','Castellon'), ('4','Babajoz'), ('5','A Coruña'), ('6','Madrid'), ('7','Pamplona'), ('','') INSERT INTO Director (Id...
true
a65bf50113a6945328e1739f9ef6f708cb29674b
SQL
Jaco26/3-weekend-challenge
/database.sql
UTF-8
845
3.5625
4
[]
no_license
CREATE TABLE tasks ( id SERIAL PRIMARY KEY, task VARCHAR(120), category VARCHAR(40), notes VARCHAR(240), completed VARCHAR(5), due_date DATE, date_added DATE ); CREATE TABLE completed_tasks ( id SERIAL PRIMARY KEY, task VARCHAR(120), task_id INT, category_id INT, notes VARCHAR(240), due_date DATE, date_c...
true
f3a0590c2ca15d0c79cdf468d272d627570df0ab
SQL
TYPO3-svn-archive/fluidlayout
/ext_tables.sql
UTF-8
634
2.890625
3
[]
no_license
# # Table structure for table 'tx_fluidlayout_template' # CREATE TABLE tx_fluidlayout_template ( uid int(11) NOT NULL auto_increment, pid int(11) DEFAULT '0' NOT NULL, tstamp int(11) DEFAULT '0' NOT NULL, crdate int(11) DEFAULT '0' NOT NULL, cruser_id int(11) DEFAULT '0' NOT NULL, deleted tinyint(4) DEFAULT '0' N...
true
d1f107fe9ed77572f253344f7c5cac816e7d022f
SQL
VSmigielski/mThree-Java-Program-Training
/HotelDB MySQL Database/VeronicaMcCormick-HotelDB.sql
UTF-8
2,642
4.3125
4
[]
no_license
-- Delete database if it exists, start from scratch each time -- Good for new development DROP DATABASE IF EXISTS HotelDB; -- Create database CREATE DATABASE HotelDB; -- Use the correct database for the table creation USE HotelDB; -- Create table RoomType CREATE TABLE `RoomType` ( `RoomTypeID` INT PRIMARY KEY AUT...
true
37a4098a2ed04d4a79f93e5505cbf317eea0e0d8
SQL
LeoShe23/MyWebApp
/src/main/resources/initmagDB.sql
UTF-8
2,654
3.484375
3
[]
no_license
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTI...
true
56952a51e2e754becbffb0959448d6af4d58a515
SQL
tzeuch0922/employee-tracker
/example_seed.sql
UTF-8
395
2.78125
3
[]
no_license
INSERT INTO department (name) VALUE ('Software'); INSERT INTO role (department_id, title, salary) VALUE (1, 'Software Engineer', 78000), (1, 'Senior Software Engineer', 145000), (1, 'Software Manager', 125000); INSERT INTO employee (first_name, last_name, manager_id, role_id) VALUE ('Joe', 'Bedna...
true
dbba81f1670b89b90a164a50fbc3198f2730f291
SQL
SocialGouv/emjpm
/packages/hasura/migrations/default/1670000096706_add_dpf_to_view_nation_indicateur_login/up.sql
UTF-8
1,807
3.625
4
[ "Apache-2.0" ]
permissive
CREATE OR REPLACE VIEW "public"."view_nation_indicateur_login" AS SELECT u.type, count(m.id) AS count FROM mandataires m, users u WHERE ((m.user_id = u.id) AND (u.active = true) AND (u.last_login > (now() - '1 mon'::interval))) GROUP BY u.type UNION SELECT u.type, count(DISTINCT sm.service_id) AS ...
true
d9e226b339fef53a09a45a1a80f2bb987ab6ac1c
SQL
feastbeast/gallery
/database/schema.sql
UTF-8
276
3
3
[]
no_license
DROP DATABASE IF EXISTS gallery; CREATE DATABASE gallery; GRANT ALL PRIVILEGES ON DATABASE gallery TO postgres; \connect gallery; CREATE TABLE lists ( place_id INT NOT NULL, name TEXT NOT NULL, photos TEXT[10] NOT NULL, CONSTRAINT place_pk PRIMARY KEY (place_id) );
true
4b659a01d7e40240a842a23a0a2bf6dcc7f8df46
SQL
btabuenca/R-Statistical-Computing
/Logistics/data/MinsWaitEnter.sql
UTF-8
492
3.4375
3
[]
no_license
SELECT COUNT(*) num_registros, grouped AS mins_waiting FROM ( SELECT r.idregistro, TRUNC((fechahorainicioae - r.fechahoraregistro) * 24 * 60) AS grouped FROM registros r, autorizacionesentradas auen WHERE r.idregistro = auen.idregistro AND r.fechahoraregistro >= TO_DATE('15/07/2016 00:00...
true
310aae0dc58f7fa2591a889e3e76d4827d81e30c
SQL
complitex/flexpay
/ab/etc/sql/update/2008_02_12.sql
UTF-8
6,547
3.3125
3
[]
no_license
-- Create street type temporals table create table street_types_temporal_tbl ( id bigint not null auto_increment, begin_date date not null, end_date date not null, create_date date not null, invalid_date date not null, street_id bigint not null, stre...
true
a98770aa7e8565d3509c1b5f8524755d4353fece
SQL
djakapm/espodeng
/sql/query_list.sql
UTF-8
1,168
3.875
4
[]
no_license
#Search Location Query select orl.id,ord.name as district_name,orc.name as city_name,ors.name as state_name from ongkir_ref_location orl left join ongkir_ref_district ord on ord.id = orl.district_id inner join ongkir_ref_city orc on orc.id = orl.city_id inner join ongkir_ref_state ors on ors.id = orl.state_id where or...
true
a6fdbe9a1ae32dc791234168e7d49c9945cee393
SQL
MuhamadIsmuaji/nilam
/db_universitas.sql
UTF-8
1,950
3.1875
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 21, 2016 at 11:20 PM -- Server version: 5.5.47-MariaDB-1ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
3c30031833a192760766d955dfaccdc385b89e01
SQL
robgalicia/katsa_php
/Database/Store/sp_agendaentregable_sel.sql
UTF-8
313
2.71875
3
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS sp_agendaentregable_sel $$ CREATE PROCEDURE sp_agendaentregable_sel(IN pidagendaentregable int) begin select identregable, idpuesto, fechacompromiso, cantidadentregable from agendaentregable where idagendaentregable=pidagendaentregable; end$$ DELIMITER ;
true
fb03618e6c7f04149fbb10457941672d384f7d02
SQL
muntaza/Open_Persediaan
/sql1_persediaan/persediaan_barang_sql2/persediaan_barang2_rsud.sql
UTF-8
415
2.96875
3
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
DROP VIEW IF EXISTS view_persediaan_barang2_rsud; CREATE VIEW view_persediaan_barang2_rsud AS SELECT *, sum(jumlah) OVER (PARTITION BY kode_barang ORDER BY serial, tanggal, id_persediaan) as pra_saldo FROM view_persediaan_barang_rsud WHERE 1 = 1 AND id_skpd = 6; GRANT ALL PRIVILEGES ON view_persediaan_barang2_...
true
8f2c7c95097bf6a5da11e43296b6cbe9e241c29a
SQL
tszylkiewicz/crimes
/conf/evolutions/default/2.sql
UTF-8
6,508
3.03125
3
[]
no_license
# --- Sample dataset # --- !Ups insert into category (id, name) values (1, 'Assault'); insert into category (id, name) values (2, 'Arson'); insert into category (id, name) values (3, 'Burglary'); insert into category (id, name) values (4, 'Fraud'); insert into category (id, name) values (5, 'Kidnapping'); insert into...
true
a0dc95d8fccc95400158474b3916952ad72f7c1d
SQL
thachgiasoft/O2S_InsuranceExpertise
/SQL InsuranceExpertise/SQL_Check thong tuyen tu dong.sql
UTF-8
5,043
3.25
3
[]
no_license
---Check thông tuyến ngày 12/8 --Lấy danh sách viện phí của khoa chưa check ok http://gdbhyt.baohiemxahoi.gov.vn/ 31153_BV viettiep31153 select bh.bhytid, mrd.hosobenhanid, mrd.vienphiid, hsba.patientid, hsba.patientname, to_char(hsba.birthday, 'dd/MM/yyyy') as birthday, hsba.birthday_...
true
ed66201180de66039560908a7bc0650d90c7200d
SQL
bellmit/prip-jdal
/京东安联保单登记实施/01-Workspace/02-脚本开发/标的表/家财险_费用损失家财险_个人资金账户信息表(ProCitem_JC_Account).sql
UTF-8
980
2.765625
3
[]
no_license
ora_db=$1 user_name=$2 user_pwd=$3 log_file=$4 sqlplus ${user_name}/${user_pwd}@${ora_db}<<! WHENEVER SQLERROR EXIT SQL.SQLCODE set timing on; spool ${log_file} ALTER SESSION ENABLE PARALLEL DML; INSERT /*+ append PARALLEL(16) */ INTO MID_PROCITEM_JC_ACCOUNT SELECT /*+ PARALLEL(16) */ '000000' AS TRANSACTIONNO , '...
true
237b96831544f34bc2d043783fe4dcf2b5c7cd51
SQL
SiddharthPanchanathan/Connect4
/target/scala-2.10/classes/evolutions/default/1.sql
UTF-8
793
3.125
3
[]
no_license
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table game ( id bigint not null, turn integer, board clob, win_streak clob, constraint ck_game_turn check...
true
40afdf53994ddaa56c774d002fd8c90d575b6bd1
SQL
itikizera/SQL-querys
/CONFERE TOTAL FGTS.sql
UTF-8
1,480
2.921875
3
[]
no_license
SELECT T.* FROM( SELECT RA_FILIAL,RA_MAT,RA_NOME,RA_CATEG,RA_OCORREN,RA_SITFOLH,RA_AFASFGT,RA_RESCRAI,RA_DEMISSA,RA_ADMISSA,RA_TPCONTR ,ISNULL((SELECT SUM(RC_VALOR) FROM SRC010 WHERE D_E_L_E_T_ = '' AND RC_FILIAL = RA_FILIAL AND RC_MAT = RA_MAT AND RC_PD IN ('701','702')),0) BASE_INSS ,ISNULL((SELECT SUM(RC_VALOR)...
true
a605f44b254e563b8f64b317bccbd5a59100bf8e
SQL
dante7qx/springboot
/springboot-quartz/src/main/resources/schema-h2.sql
UTF-8
687
2.859375
3
[]
no_license
drop table t_scheduler_job if exists; create table t_scheduler_job ( id bigint not null auto_increment, job_id varchar(64) not null, job_name varchar(256) not null, job_class varchar(256) not null, job_desc varchar(2048) not null, cron varchar(64) null, previous_fire_time timestamp null, fire_time timestamp nul...
true
615ab09baf4e2700497df276d01513095a01b840
SQL
Harshita1907/IMDB-CASE-STUDY
/IMDB.sql
UTF-8
26,653
4.65625
5
[]
no_license
USE imdb; /* Now that you have imported the data sets, let’s explore some of the tables. To begin with, it is beneficial to know the shape of the tables and whether any column has null values. Further in this segment, you will take a look at 'movies' and 'genre' tables.*/ -- Segment 1: -- Q1. Find the total ...
true
3d94e9124568feeb56af78338363fae8faa9e040
SQL
dave/dontstayin
/Bobs/Sql/Update Scripts/0300 - Add IsExtendedDisplay to Article.sql
UTF-8
489
3.375
3
[]
no_license
IF NOT EXISTS( SELECT * FROM sys.tables [table] INNER JOIN sys.columns [column] ON [table].object_id = [column].object_id WHERE [table].name = 'Article' AND [column].name = 'IsExtendedDisplay' ) BEGIN ALTER TABLE dbo.Article ADD IsExtendedDisplay bit NOT NULL DEFAULT 0 EXECUTE sp_addextendedproperty N'MS_Des...
true
f09e8ffb4f893fa6345ca2f7c9e2ece97d6486f8
SQL
ljw222/Healthy-Easy-Recipes
/secure/init.sql
UTF-8
7,219
3.453125
3
[]
no_license
-- TODO: Put ALL SQL in between `BEGIN TRANSACTION` and `COMMIT` BEGIN TRANSACTION; -- TODO: create tables -- CREATE TABLE `examples` ( -- `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE, -- `name` TEXT NOT NULL -- ); --Users Table CREATE TABLE users ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQU...
true
58ee8dd35714ca9e01077f12d1799112185b4d97
SQL
adgsgutierrez/proyecto_nt
/mavenproject1/modelamiento/Script de la Base de Datos.sql
UTF-8
6,744
3.5625
4
[]
no_license
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema mydb -- -...
true
eea9014ea0a560f0dc7cf695f874396733462d92
SQL
jeremyxie712/opalForm
/opalAdmin-eason/dbv/data/revisions/2/DiagnosisTranslationMH.sql
UTF-8
709
2.671875
3
[]
no_license
CREATE TABLE `DiagnosisTranslationMH` ( `DiagnosisTranslationSerNum` int(11) NOT NULL, `RevSerNum` int(11) NOT NULL AUTO_INCREMENT, `EducationalMaterialControlSerNum` int(11) DEFAULT NULL, `Name_EN` varchar(2056) NOT NULL, `Name_FR` varchar(2056) NOT NULL, `Description_EN` text NOT NULL, `Description_FR` ...
true
5b82bb56c5097b87451deef6f028078de6e80454
SQL
skarnov/library-management-system
/db_evis_library_management_system.sql
UTF-8
7,587
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 02, 2016 at 03:33 PM -- Server version: 10.1.10-MariaDB -- PHP Version: 5.5.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
75f58ad34c31bacc220de3afbb2d291dcebe9708
SQL
noikiy/Rk_Cms
/src/main/resources/init_system_h2.sql
UTF-8
2,047
2.6875
3
[ "Apache-2.0" ]
permissive
/* system_user */ INSERT INTO system_user(ID,NAME,PASSWORD,SALT,SEX,DESCRIPTION,IS_LOCKED,CREATE_DATE,REGISTER_IP,OPENID,PROVIDERID) VALUES (1,'admin',NULL,NULL,0,"超级管理员",0,'2014-02-01 00:12:40','127.0.0.1','admin','local'); /* .system_role */ INSERT INTO system_role(ID,NAME,DESCRIPTION) VALUES (1,'admin','超级管理员:...
true
b7b8d098abe5d60a81f853d7d6783121116ba22b
SQL
jgroottebromhaar/SQLWiseOwl
/WiseOwl/CalculationsWithDates/The Great Owl sees all.sql
UTF-8
191
3.03125
3
[]
no_license
SELECT EventName, EventDate AS 'NotFormatted', FORMAT(EventDate, 'd', 'zu') AS 'UsingFormat', CONVERT(varchar, EventDate, 101) AS 'UsingConvert' FROM tblEvent WHERE YEAR(EventDate) = 1994;
true
f859c5670bddbdc5edd8a973860e720dc3f0bb5d
SQL
Jothy90/RMP
/Database/rmp.sql
UTF-8
2,190
3.890625
4
[]
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'; DROP SCHEMA IF EXISTS `rmp` ; CREATE SCHEMA IF NOT EXISTS `rmp` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ;...
true
daffddf143c7e164ba8c8c1e0f51fee5ad975277
SQL
RobertWSmith/TD_SQL
/Ad Hoc Reports/Back Order.sql
UTF-8
3,309
3.5
4
[]
no_license
SELECT Q.PBU_NBR , CASE WHEN Q.DAY_DATE > CURRENT_DATE THEN CURRENT_DATE ELSE Q.DAY_DATE END AS REF_DT , Q.BEGIN_MONTH , CAST(BEGIN_MONTH AS FORMAT 'MMM') (CHAR(3)) AS MONTH_NAME , Q.CAL_YR AS BEGIN_YEAR , SUM(CASE WHEN Q.FRDD_IN_MONTH_IND = 'Y' ...
true
25bc15f3aa023f2a44a97de52aae3a2918e24258
SQL
barbalex/apf2
/sql/apflora/one_offs/2021-01-31_v_q_ekzieleinheit_ohne_massn_zaehleinheit.sql
UTF-8
2,663
3.5625
4
[ "ISC" ]
permissive
select tax.artname, --ekzaehleinheit.ap_id, --ekzaehleinheit.zaehleinheit_id, zaehl_einheit_werte.text as zaehleinheit, ekzaehleinheit.zielrelevant, ekzaehleinheit.not_massn_count_unit as entspricht_keiner_massnahmen_zaehleinheit, zaehl_einheit_werte.corresponds_to_massn_anz_triebe as entspricht_anzahl_tr...
true
9e7069001b03de40e735176ca50de6d856743ba9
SQL
panosc-portal/helm-charts
/panosc-postgres/postgres-config-files/account-service.sql
UTF-8
5,744
2.90625
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.15 -- Dumped by pg_dump version 12.1 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', f...
true
bfb3cbcd37cb02c4c531a4a31999b3237b284ff6
SQL
hiro23trial/dev18_php02
/47.yoshino.sql
UTF-8
1,603
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- ホスト: localhost:3306 -- 生成日時: 2021 年 1 月 09 日 03:57 -- サーバのバージョン: 5.7.32 -- PHP のバージョン: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- データベース: `gs_db_kadai` -- -- ----------------------------------------------...
true