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
63a0f44e9157e2b01dae212fd9bc1ed350050cbb
SQL
GregChan/coffee-chat-web
/documents/db20160131.sql
UTF-8
1,999
3.28125
3
[]
no_license
CREATE DATABASE `coffeechat` /*!40100 DEFAULT CHARACTER SET utf8 */; CREATE TABLE `company_desc` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(256) NOT NULL, `industry` int(11) NOT NULL, `size` int(11) DEFAULT NULL, `type` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `id_UNIQUE` (`id`) ) ...
true
c04a9040b51b4401f1ad2dc5d29d117b7078879f
SQL
K-TAX/BaseDatos2019
/DesarrolloPrueba.sql
UTF-8
1,275
3.671875
4
[]
no_license
--1- Lite todas las alumnas SELECT * FROM Alumno WHERE Sexo=1; --2- Guarde 10 Estudiantes INSERT INTO Alumno VALUES (1261212, 'Juan', 'Perez', 'Perez', '1986-07-13', 75.2, 0, 2019, 'PEV') --3 UPDATE Alumno SET Jornada='DIA' WHERE Sexo=1 AND Ingreso=2015; --4 DELETE FROM Alumno WHERE Sexo=0 AND FechaNacimiento='20...
true
14706e579c0ce4aea5a161308ad5efa8eadabf55
SQL
raggid/city-manager-api
/script2.sql
UTF-8
391
2.546875
3
[]
no_license
declare val number; dat date; cout number := 1; begin for i in 1..1000 loop val := 9 - floor(i/100.01); select sysdate-val into dat from dual; insert into EXAME_NF values (i, i, dat, 0); for j in 1..3 loop insert into EXAME_ITEMNF values(cout, i, cout, 1, i*co...
true
4588ceea63b26a5cbcf57a38dcdac3f3a55205e3
SQL
madokast/JavaLearning
/new/201907/src/MySQL/school/school.sql
UTF-8
1,339
3.828125
4
[]
no_license
create database if not exists school; use school; CREATE TABLE if not exists Dept( Did int auto_increment primary key , Dname varchar(10) unique not null default '计算机系' ); CREATE TABLE if not exists Student( Sid int auto_increment, Sname varchar(10) not null, Ssex varchar(3) default 'M', Sage int , Sdept int...
true
b36c5750e9f5f79d1910e48e3963e02d50dd7b33
SQL
MaitRaidmae/AppAnalyzerPLSQL2
/P_RUN_STATS.sql
UTF-8
1,971
2.796875
3
[]
no_license
-------------------------------------------------------- -- DDL for Package P_RUN_STATS -------------------------------------------------------- CREATE OR REPLACE EDITIONABLE PACKAGE "HUNDISILM"."P_RUN_STATS" IS ----------------------------------------------------------------------------- PROCEDURE UPDATE_ROW(...
true
c83067e19916063b02744f370b4b2b1a711be9c7
SQL
knureigs/itech
/lb/ITech2_PDO/Additional/lb_pdo_films.sql
UTF-8
5,930
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 06, 2020 at 11:20 PM -- Server version: 10.1.39-MariaDB -- PHP Version: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
true
aa282368bfa8c773cec39b35f1a1222ebcf34fe7
SQL
RAricardo/Sprinter-Game
/Scripts De Base Datos/SprinterTables.sql
UTF-8
7,226
3.703125
4
[]
no_license
-- ----------------------------------------------------- -- Schema sprinter -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `sprinter` DEFAULT CHARACTER SET utf8 ; USE `sprinter` ; -- ----------------------------------------------------- -- Table `sprinter`.`Proyectos` -- --------...
true
08b249d74873fbec98301ab72bf970800b1b38fd
SQL
AndrejHatzi/MoviesWebsite
/wildkonscia.sql
UTF-8
16,211
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 31, 2020 at 05:40 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
2bbbf2b495522c3e6ef31f8836d79436118524c3
SQL
citusdata/test-automation
/fabfile/pgbench_scripts/pgbench_default_no_transactions.sql
UTF-8
513
2.5625
3
[]
no_license
\set aid random(1, 100000 * 100) \set bid random(1, 1 * 100) \set tid random(1, 10 * 100) \set delta random(-5000, 5000) UPDATE pgbench_accounts SET abalance = abalance + :delta WHERE aid = :aid; SELECT abalance FROM pgbench_accounts WHERE aid = :aid; UPDATE pgbench_tellers SET tbalance = tbalance + :delta WHERE tid = ...
true
0307b3a233e0e6354f7c22970f9b31fda2348c55
SQL
AGESIC-UY/exposure-notifications-server
/migrations/000004_add_time_zone.up.sql
UTF-8
1,828
3.125
3
[ "Apache-2.0" ]
permissive
-- Copyright 2020 Google LLC -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in ...
true
b587725307c05ed9544ead85b36fcc481023c744
SQL
15138626811/syt-work
/数据/查询数据.sql
UTF-8
2,324
4.03125
4
[]
no_license
--查看表内的所有数据 SELECT * FROM 表名; --查询单个字段 select 字段名 from 表名; --查询多个字段 select 字段名1,字段名n from 表名 --以下g_id,g_js等为字段名,base/grade为表名 --条件查询 where关键词 --等于 select * from 表名 where 字段='某值'; select * from base where b_name='王志华'; --不等于 select * from 表名 where 字段!='某值'; select * from 表名 where 字段<>'某值'; --大于和小于 sel...
true
aba85858d56afa2a070604eaed0fa6e001e29c02
SQL
AhreumW/dolle
/dolleProject/src/main/webapp/WEB-INF/sql/CONSTRAINTS/ACCOUNT_MANAGEMENT.sql
UTF-8
954
2.71875
3
[]
no_license
-------------------------------------------------------- -- Constraints for Table ACCOUNT_MANAGEMENT -------------------------------------------------------- ALTER TABLE "GZONE"."ACCOUNT_MANAGEMENT" ADD CONSTRAINT "PK_ACC_IDX" PRIMARY KEY ("ACC_IDX") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATI...
true
f0f09f45ef5f8db83df6ebffcaa743b01eaad013
SQL
bellmit/jigsaw-cms
/database/mysql/init1.0.3.sql
UTF-8
1,183,379
2.890625
3
[]
no_license
# MySQL-Front 5.1 (Build 4.2) /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE */; /*!40101 SET SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES */; /*!40103 SET SQL_NOTES='ON' */; # Host: localhost Database: coolinkclean_new # --------------------------...
true
b88d68a2eaebe77b37c83314da3e1d5e719f38b4
SQL
karlarao/scripts
/performance/find_sql_awr.sql
UTF-8
1,797
3.5625
4
[ "MIT" ]
permissive
set long 32000 set lines 155 col sql_text format a40 col execs for 999,999,999 col etime for 999,999,999.9 col avg_etime for 999,999.999 col lio for 999,999,999,999 col avg_lio for 999,999,999,999 col avg_pio for 999,999,999,999 col rows_proc for 999,999,999,999 head rows col begin_interval_time for a30 col node for 9...
true
b3efd65de1fec7a99e5e6de469da6da46a9ea052
SQL
Shang-SRant/OnlineDoor
/door.sql
UTF-8
2,550
3.1875
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : MySQL Source Server Type : MySQL Source Server Version : 80019 Source Host : localhost:3306 Source Schema : door Target Server Type : MySQL Target Server Version : 80019 File Encoding : 65001 Date: 31/03/2...
true
6b25e9a033da11ec740d84b1914da3d19b877a36
SQL
quantgeni/artificialintelli
/[Python_Codes] Basic+Method+Class+Object/bigdata_BooksOrders.sql
UTF-8
4,514
3.125
3
[]
no_license
-- MySQL dump 10.16 Distrib 10.1.38-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: bigdata -- ------------------------------------------------------ -- Server version 10.1.38-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_S...
true
211b80dc2398f4577c273e95b69117aa1f98f9b9
SQL
SophiaAvvo/Projects
/2016 Projects/First Touch SubChannel Report/20161012_first_touch_query_with_expanded_subchannels_v10.sql
UTF-8
10,614
3.65625
4
[]
no_license
/* note that there are blank source/medium/campaign fields often utm_medium and utm_source are always blank taboola does not show up in any field (campaign, source, medium, url) but referral field, usually with "3d" in front, indicating it is a referral*/ WITH channels AS ( SELECT persistent_session_id ,1 AS Is_Af...
true
323468cc4e0de79d7dfa91dcdeca8bd0f5b48fac
SQL
kimjjing1004/MySQL
/sakila/MySQL_query11.sql
UTF-8
920
3.875
4
[]
no_license
# 11. 영화 'AGENT TRUMAN'를 보유하고 있는 매장의 정보와 해당 타이틀의 # 대여 정보를(대여 정보가 없을 경우에는 관련 컬럼은 null 처리) 아래와 같이 출력함. # 영화제목, 매장ID, 인벤토리ID, 매장의 address, address2, district, city, country, # 대여 일자, 회수일자, 대여고객의 first_name, last_name select FL.title, ST.store_id, IV.inventory_id, AD.address, AD.address2 , AD.district, CT.city, CU.count...
true
303d6a6648cb0a0fdfd73e674c32cc7029ebc706
SQL
troven/certific8
/dbase/schema/skill_trainer.ddl
UTF-8
461
3.203125
3
[]
no_license
# Trainers offer courses/certificates in a Skill SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS c8_skill_trainer; CREATE TABLE IF NOT EXISTS c8_skill_trainer ( trainer_id INT NOT NULL DEFAULT 0, skill_id INT NOT NULL DEFAULT 0, webpage VARCHAR(255), valid_until DATE ) ENGINE=INNODB; ALTER TABLE c8_skill_trai...
true
86cd9a9f525976d912fe44b010affd70d042e8fb
SQL
kulkarna/MDS
/Dev/UtilityManagement/LibertyPower/LibertyPower/dbo/Views/DSPath_vw_1.sql
UTF-8
619
3.359375
3
[]
no_license
CREATE VIEW DSPath_vw AS SELECT p.DealScreeningPathID as PathID, p.Description as PathName, s.StepNumber, st.Description as StepName, t.DealScreeningTransitionID as TransID, t.Disposition, t.CurrentAccountStatus, t.CurrentAccountSubStatus, t.NextAccountStatus, t.NextAccountSubStatus FROM libertypower.dbo.DealScre...
true
2aa4d70237ec3c1e0898e1fd97a7e50819331ade
SQL
danz63/mvc-cms
/db_mvc_cms.sql
UTF-8
4,474
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jun 12, 2021 at 04:42 AM -- Server version: 10.3.27-MariaDB-0+deb10u1 -- PHP Version: 7.3.27-1~deb10u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
c149b7ead216c5d73aa1354d601eb28ab19e9fc2
SQL
Bati4eli/tcpMessenger.server
/src/server/db/sqlFiles/CREATE_TABLES.sql
UTF-8
1,229
3.015625
3
[]
no_license
CREATE TABLE [USERS] ( [USER_ID] INTEGER DEFAULT 100 NOT NULL PRIMARY KEY AUTOINCREMENT, [PHONE] VARCHAR(20) DEFAULT '+7' UNIQUE NOT NULL, [NICKNAME] VARCHAR(20) DEFAULT NULL UNIQUE NULL, [FULLNAME] NVARCHAR(255) DEFAULT '' NULL, [DATEREG] TIMESTA...
true
1271a69717353899fb59c948720ce74b84d467cb
SQL
web-repo/repo_1
/db/tripntour.sql
UTF-8
7,338
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 03, 2021 at 06:35 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
9a89da7ebdb9c97595fbe91f5dfc53d9bf439227
SQL
andersonbp13/book_manager
/BookAPI/src/test/resources/database/data-ft.sql
UTF-8
393
2.671875
3
[]
no_license
SET DATABASE REFERENTIAL INTEGRITY FALSE; DELETE FROM book; SET DATABASE REFERENTIAL INTEGRITY TRUE; INSERT INTO book (id, price, name, author, imageURL, genre) VALUES -- get (1,12313.23,'book 1', 'author 1', 'http://imagen.com', 'comedia'), -- put (2,12313.23,'book 2', 'author 1', 'http://imagen.com', 'comedia'), -- ...
true
aaf9f9d791c80d450df041cf4f63bcca89c553dd
SQL
MPadini/SolutioBackend
/Solutio/Solutio.Infrastructure.Database/Tables/AspNetUserTokens.sql
UTF-8
393
2.96875
3
[]
no_license
CREATE TABLE [AspNetUserTokens] ( [UserId] int NOT NULL, [LoginProvider] nvarchar(450) NOT NULL, [Name] nvarchar(450) NOT NULL, [Value] nvarchar(max) NULL, CONSTRAINT [PK_AspNetUserTokens] PRIMARY KEY ([UserId], [LoginProvider], [Name]), CONSTRAINT [FK_AspNetUserTokens_AspNetUsers_UserId] FOREI...
true
1e882bd342bffc4c47c3df0af45537e3ba29ddfa
SQL
matteo-minerva/nodejs-pollution-report
/nodejs_matteo_minerva.sql
UTF-8
1,956
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Creato il: Mag 05, 2021 alle 13:59 -- Versione del server: 10.4.18-MariaDB -- Versione PHP: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
true
ebb83a0688865953cbc2773326c0dcc9ddc4c547
SQL
dylanwanincorta/EBS-DataSecurity
/OU_LEDGER_INFO.sql
UTF-8
2,280
3.734375
4
[]
no_license
-- Get the period set and period type for each OU select L.LEDGER_ID, L.CHART_OF_ACCOUNTS_ID, L.ACCOUNTED_PERIOD_TYPE, L.PERIOD_SET_NAME , O.ORGANIZATION_ID from HR_ORGANIZATION_INFORMATION O INNER JOIN GL_LEDGERS L ON TO_NUMBER(O.ORG_INFORMATION3) = L.LEDGER_ID AND TRANSLATE(...
true
047d77991f9a08b46c3a8018d9e4c2088ea9cad2
SQL
arunpn/NYCDataScienceAcademy
/SQL/spencerstebbins.sql
UTF-8
3,401
4.09375
4
[]
no_license
/*Q1-----------*/ /*1*/ SELECT id, extra FROM SLEEP; /*2*/ SELECT extra, id FROM SLEEP; /*3*/ SELECT DISTINCT category FROM SLEEP; /*4*/ SELECT id FROM SLEEP WHERE extra > 0; /*5*/ SELECT category, SUM(extra) AS extraSum FROM SLEEP GROUP BY category; /*6*/ SELECT category, COUNT(*) AS categoryNum FROM SLEEP GROUP BY ca...
true
c95047843b4c2dab4f00f14442cce3516d25d8c7
SQL
lingminjun/soph
/src/main/resources/sqls/soph.sql
UTF-8
2,723
3.734375
4
[]
no_license
CREATE DATABASE sophdb; # 记录 信号集(抽象成数据,神经存储数据是有序信号集,描述为故事) DROP TABLE IF EXISTS `s_data`; CREATE TABLE `s_data` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '数据id', `hcode` INT UNSIGNED NOT NULL COMMENT '内容 hash code,这里取java hash code', `md5` varchar(32) DEFAULT NULL COMMENT '内容 md5', `len` INT UNSI...
true
4b9461054fb811bc67b06071e8798bf71de233a3
SQL
flavienbwk/Gitlab-Reward-System
/database/schema.sql
UTF-8
3,899
3.53125
4
[ "MIT" ]
permissive
-- MySQL Script generated by MySQL Workbench -- Sun Nov 24 09:17:55 2019 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_M...
true
4acda40eecf9b06333d8e2ff886bcb99ac3e1c59
SQL
Yundnir/Progresso-BandTec
/2019/Banco de Dados/Exercicio 09/exercicio09.sql
UTF-8
1,399
3.203125
3
[]
no_license
create database adsa; use adsa; create table Aluno ( ra int primary key auto_increment, nome varchar (50), telefone varchar (10) ); select * from Aluno; drop table Aluno; insert into Aluno (nome, telefone) values ('Nicolas Carvalho', '96280-0727'), ('Maria Eduarda', '91234-5678'), ('Oliver Gabriel', '98765-4321'), ...
true
bd116d23026949fa4f4fa41b0f8736a7c3bfd3b2
SQL
yunjeong17/sunProject
/script/순대학생성적뷰.sql
UTF-8
1,613
3.84375
4
[]
no_license
--학생성적조회 뷰 VIEW_ST_GRADE CREATE OR REPLACE VIEW VIEW_ST_GRADE AS SELECT H.S_ID "S_ID", C.CLASS_TYPE_NO AS "TYPENO", SUM(C.CREDIT) "CREDIT" FROM CLASS C JOIN CLASS_HISTORY H ON C.CLASS_NO = H.CLASS_NO GROUP BY C.CLASS_TYPE_NO, H.S_ID; --DROP VIEW VIEW_ST_GRADE; --학생신청학점조회 뷰 VIEW_ST_APPLI CREATE OR REPLACE VIEW VIEW_...
true
ad76aea4b3090324882cbd1b3c0540b3567296b3
SQL
pablow1996/PabloExamen
/EXAMEN/DB.sql
UTF-8
47,275
2.546875
3
[]
no_license
DROP DATABASE IF EXISTS examen; CREATE DATABASE examen character set UTF8mb4 collate utf8mb4_bin; USE examen; CREATE TABLE refranero ( id int(11) AUTO_INCREMENT PRIMARY KEY, sentence varchar (200) NOT NULL ); INSERT INTO refranero (sentence) VALUES ("A barriga llena, corazon contento"); INSERT INTO refranero (sen...
true
de1024864936758cfd1c61ca9f65295993cdcc61
SQL
rockshoxxfox/SEP
/lab1.sql
UTF-8
1,603
4.21875
4
[]
no_license
/* with T as( select distinct SG.StockGroupName, SISG.StockItemID from Warehouse.StockGroups SG join Warehouse.StockItemStockGroups SISG on SG.StockGroupID = SISG.StockGroupID ) select T2.CustomerName,T2.CityName from (select C.CustomerName, CT.CityName, C.CustomerID from Sales.Customers C join Application.Ci...
true
56cfd237aff11fb0db0aa686efb76169b9b5d797
SQL
cmunilla/RecolInline-Server
/database/sql/model/model.sql
UTF-8
31,323
3.46875
3
[ "MIT" ]
permissive
-- MIT License -- -- Copyright (c) 2019 - 2020 Christophe Munilla -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights --...
true
371b55cd4b07a7c6494621d5d5b385e404b615c1
SQL
Schiavi13/Bases-de-datos
/Consultas/consulta8.sql
UTF-8
302
3.078125
3
[]
no_license
/*Obtener las mismas columnas que en el ejercicio 2 pero sacando únicamente las 5 líneas de pedido de menor precio unitario.*/ SELECT NUMPEDIDO AS "Numero de pedido", FAB, PRODUCTO, CANT AS CANTIDAD, CAST((IMPORTE/CANT) AS decimal(9,2)) AS "Precio unitario", IMPORTE FROM pedidos ORDER BY 5 LIMIT 5;
true
6e32d44f8ecf91161356c8cf27811e8b8e9981cb
SQL
smarxdray/graduation-project-management-system
/src/main/resources/sql/values.sql
UTF-8
3,205
2.90625
3
[]
no_license
USE `gpms`; SET FOREIGN_KEY_CHECKS =0; TRUNCATE `comment`; TRUNCATE `private_notice`; TRUNCATE `notice`; TRUNCATE `student`; TRUNCATE `teacher`; TRUNCATE `admin`; TRUNCATE `user`; TRUNCATE `role`; TRUNCATE `teacher_title`; TRUNCATE `major`; TRUNCATE `college`; SET FOREIGN_KEY_CHECKS =1; INSERT INTO `c...
true
1d21fbbd085b57af1031746c324e7902954c6c3c
SQL
cckmit/xinfu
/ccms/WebContent/WEB-INF/action/project/fitness/report/analysis/demand/loaddata/demand/query-demand.sql
UTF-8
397
3.6875
4
[]
no_license
select dm.domain_text_cn, count(1) as num from cc_guest guest left join t_domain dm on guest.demand LIKE concat('%', dm.domain_value, '%') where guest.status!=0 and guest.demand is not null and guest.demand!='' and dm."namespace"='demand' and guest.org_id = ${def:org} and guest.created::date>=${fld:fdate} and guest....
true
87ab47427feba3d383cc9721add4525086ebb24d
SQL
wolfstrasz/SQL-Databases-1
/Queries_1/09.sql
UTF-8
194
3.796875
4
[]
no_license
SELECT SQ.country, COUNT (SQ.ordid) FROM (SELECT * FROM customers C, orders O WHERE C.custid = O.ocust) as SQ WHERE SQ.odate < '2017-01-01' AND SQ.odate >= '2016-01-01' GROUP BY SQ.country;
true
4ba0729ca2d5d0ba0871ca0d120597e7f70dcab3
SQL
jaliste/unitime
/Documentation/Database/Oracle/Changes/40 Curricula renames.sql
UTF-8
3,404
2.921875
3
[]
no_license
/* * UniTime 3.2 (University Timetabling Application) * Copyright (C) 2008 - 2010, UniTime LLC * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at...
true
33dec185dfe8bba937f2615a004a4de68bceea03
SQL
rhololkeolke/EECS_341_Project
/data/eecs_341_project_schema.sql
UTF-8
25,431
3.421875
3
[]
no_license
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -- CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_cata...
true
ed6194cb217683f3a5d986be36e9cec232837924
SQL
DepartmentCustomization/SBC
/CRM-AVR/Conf/DataSources/System.Data.SqlClient/Default/All_Default/Shifts/avr_Select_TimeShift_Team/avr_Select_TimeShift_Team.sql
UTF-8
313
2.65625
3
[]
no_license
select Name -- ,convert(time(0), Plan_start_time) as Plan_start_time -- ,convert(time(0), Plan_end_time) as Plan_end_time ,Plan_start_time ,Plan_end_time -- ,TIMEFROMPARTS (DATEPART(hh, Plan_end_time),DATEPART(minute, Plan_end_time),0,0,0) as Plan_end_time from teams where Id = @teams_id
true
1784889fe115514f17ed014469213fdcda27bbbc
SQL
KYJKYJKYJ/dev
/springdemo/spring_06_mvc/target/classes/part06/table.sql
UTF-8
374
2.625
3
[]
no_license
create table orderitem( id varchar2(20), cnt number(10), remark varchar2(50), address varchar2(100)); select * from orderitem create table emptest as select first_name, salary, hire_date from employees where 1=0; insert all into emptest values(first_name,salary,hire_date) select first_name, salar...
true
9bdf79c0747ed76151a9b36367441b57dd9857a0
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/disparadores/TRG_HIS_PDS_CONFIG_WIZARD.sql
WINDOWS-1250
1,124
2.828125
3
[]
no_license
-------------------------------------------------------- -- DDL for Trigger TRG_HIS_PDS_CONFIG_WIZARD -------------------------------------------------------- CREATE OR REPLACE EDITIONABLE TRIGGER "AXIS"."TRG_HIS_PDS_CONFIG_WIZARD" BEFORE UPDATE OR DELETE ON PDS_CONFIG_WIZARD FOR EACH ROW DECLARE ...
true
fa6ff521ecdf97cc8f0bcf56ecfe000af6ab2da1
SQL
xtfc/pyboard2
/sql/courses_uid.sql
UTF-8
150
3.3125
3
[ "MIT" ]
permissive
SELECT courses.cid, courses.name, entries.level FROM courses, entries WHERE (courses.cid=entries.cid) AND (entries.uid=:uid) ORDER BY courses.cid ASC
true
c7032f9d18a4f487ce5de56a02c6e13620c3bdf8
SQL
brunoyuji/RentS
/bd.sql
UTF-8
5,385
3.59375
4
[]
no_license
drop database rents; create database rents; use rents; create table user_profile (id_user INTEGER primary keY AUTO_INCREMENT, user_name varchar(255) not null, user_status boolean not null, email varchar(255) not null, user_password varchar(255) not null, image varchar(255), birthda...
true
09f7ef7f21152dc050cf525e61405c42f486c507
SQL
662d7/mysql-course
/s10_data_types/date_math.sql
UTF-8
633
3.234375
3
[]
no_license
SELECT * FROM people; SELECT Datediff(Now(), birthdate) FROM people; SELECT name, birthdate, Datediff(Now(), birthdate) FROM people; SELECT birthdt FROM people; SELECT birthdt, Date_add(birthdt, INTERVAL 1 month) FROM people; SELECT birthdt, Date_add(birthdt, INTERVAL 10 secon...
true
d719d4b85cbfa239a91333246f1b19feefd0e786
SQL
agungdh/java_spp
/bin/db.sql
UTF-8
6,269
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 13 Sep 2019 pada 10.23 -- Versi Server: 10.1.25-MariaDB -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
a8ee108d349fd0b19fe8c94f1eb448e8e4389a4e
SQL
jmcguire98/4345-webapp
/CSE4345-frontend/Lyle.io_mysql_create_script.sql
UTF-8
4,348
3.765625
4
[]
no_license
drop database if exists LyleIO; create database LyleIO; USE LyleIO; drop table if exists Users; CREATE TABLE Users ( userName varchar(30) DEFAULT 'user', pass varchar(30) NOT NULL DEFAULT 'password', track varchar(20), email varchar(50) NOT NULL, userID int NOT NULL AUTO_INCREMENT, gradYear int, bio varch...
true
5b61ca0d09a28a526dcedc3ca7afdb43186044fa
SQL
JKord/CreditUnionSoftwareDb
/sql.sql
UTF-8
7,476
3.234375
3
[ "MIT" ]
permissive
# -------------------------------------------------------- # Host: 127.0.0.1 # Server version: 5.5.15 # Server OS: Win32 # HeidiSQL version: 6.0.0.3603 # Date/time: 2012-03-31 22:44:47 # ---------------------------------------------...
true
8fc8a809a34ce16c72de55c955c5eed989994957
SQL
W1SRD/CQP-ACE
/src/db/CQP_Schema-K6TU.sql
UTF-8
19,069
3.515625
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 `mydb` ; CREATE SCHEMA IF NOT EXISTS `mydb` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedis...
true
37abf20db8e86ab80400be4bbf511418432fb815
SQL
arnulfo1920/cinemex
/horarios.sql
UTF-8
1,762
3.28125
3
[]
no_license
use cinemex create table horarios( id int not null primary key, dia Enum ('Lunes','Martes','Miercoles','Jueves','Viernes','Sabado','Domingo'), hora_inicio time not null, hora_fin time, fecha date default null, pelicula_id int null, sucursal_id int null ); describe horarios; INSERT INTO horarios(`id`,`...
true
232c2daf3490f5a0b2e7bfb32567ebd7daa95a32
SQL
PrachiPhatak/database-exercises
/join_exercises.sql
UTF-8
1,648
4.09375
4
[]
no_license
use employees; SELECT d.dept_name, CONCAT(e.first_name, ' ', e.last_name) AS full_name from dept_manager as dm join employees e on e.emp_no = dm.emp_no join departments d on d.dept_no = dm.dept_no where to_date = '9999-01-01' order by dept_name; SELECT d.dept_name, CONCAT(...
true
30b0584554d6c29098eac985d6c47e5492ae5384
SQL
thiagoalvesp/WCFandMVC_POC
/SCRIPT.sql
UTF-8
551
3.59375
4
[]
no_license
use WCF CREATE TABLE CLIENTE( ClienteId Int primary key, Nome Varchar(150) NOT NULL, Sobrenome varchar(150) NOT NULL, Email varchar(100) NOT NULL, DataCadastro Datetime NOT NULL, ATIVO BIT NOT NULL ) CREATE TABLE PRODUTO ( ProdutoId int primary key, Nome Varchar(250) NOT NULL, Valor Numeric(18,2) NOT NULL, ...
true
d75ae588f076db5cf9306446202535bbe0a545bb
SQL
mertbilgic/Veri-tabani-projesi
/prolab2_3.sql
UTF-8
11,614
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Anamakine: 127.0.0.1 -- Üretim Zamanı: 22 Haz 2019, 19:37:09 -- Sunucu sürümü: 10.1.38-MariaDB -- PHP Sürümü: 7.2.17 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
b4aec3adeddad7b904fb33c5263537e306a1dc60
SQL
olmozavala/cca_cont
/DB/SQL_queries/Matlab/AvgByMonthMatlab.sql
UTF-8
141
2.96875
3
[]
no_license
/* Average contaminant divided by month */ SELECT avg(val) as mval, date_part('month',fecha) as mymonth FROM TABLE GROUP BY mymonth
true
c57e1186763690fb270aace6ce40f25c157b9e2a
SQL
hi-lee/Drive-up
/0217/Book_Drive/Book.sql
UTF-8
1,988
3.375
3
[]
no_license
show tables; desc member; desc bookInfo; desc rentalIdv; desc rental; desc board; desc cart; select * from bookInfo where bookNum = 31634; select * from rentalIdv; select * from library; select * from rental; select * from member; select * from bookInfo; select * from cart; select * from cart left join bookInfo on car...
true
1e8c7d57f3cf286179596bf475303b648e67b344
SQL
Batsila/BSU
/DMS/lab_2/lab2.sql
WINDOWS-1251
9,160
3.78125
4
[]
no_license
-- Oracle . -- FPMI-stud\SUBFACULTY\ \\2019\EDU2.sql C:\TEMP . -- . -- EDU1.sql, EDU2.sql . -- , , . , 3, 4. -- . -- , .txt FPMI-serv604\Common-stud\\\_3\Anishchanka.txt. -- : --1. JOB 50 . UPDATE job SET minsalary = minsalary + 50; rollback; --...
true
1fe1609d63f255708655a5d0d2936b984dd02f93
SQL
lbz320/Stanford-DB-Class-Exercises-and-Notes
/DB5_SQL/Movie_ratings_Extra_q5.sql
UTF-8
224
3.21875
3
[]
no_license
SELECT DISTINCT table1.name, table2.name FROM (Rating JOIN Reviewer USING(rID)) table1, (Rating JOIN Reviewer USING(rID)) table2 WHERE table1.mID = table2.mID AND table1.name< table2.name ORDER BY table1.name, table2.name
true
58a387860005835c1a3ddcc78400f3e6fb8203dc
SQL
steeve/brisk
/resources/hive/scripts/metastore/upgrade/derby/upgrade-0.7.0.derby.sql
UTF-8
7,116
3.34375
3
[ "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
-- -- HIVE-417 Implement Indexing in Hive -- CREATE TABLE "IDXS" ( "INDEX_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "DEFERRED_REBUILD" CHAR(1) NOT NULL, "INDEX_HANDLER_CLASS" VARCHAR(256), "INDEX_NAME" VARCHAR(128), "INDEX_TBL_ID" BIGINT, "LAST_ACCESS_TIME" INTEGER NOT NULL, "ORIG_TBL_ID" BI...
true
d3d7ad0c2f5d1b94372395513b4734ef652cb9ab
SQL
gorbunkov/sample-fts-and-search
/modules/core/db/init/hsql/10.create-db.sql
UTF-8
1,151
3.265625
3
[]
no_license
-- begin FAS_CUSTOMER create table FAS_CUSTOMER ( ID varchar(36) not null, VERSION integer not null, CREATE_TS timestamp, CREATED_BY varchar(50), UPDATE_TS timestamp, UPDATED_BY varchar(50), DELETE_TS timestamp, DELETED_BY varchar(50), -- NAME varchar(255), ADDRESS varchar(25...
true
6f9596db051d663660dadbec629b999806d1721b
SQL
tkaczenko/koatuu-parser
/src/main/resources/schema.sql
UTF-8
569
3.71875
4
[]
no_license
drop table if exists location; create table if not exists location ( id bigint not null constraint location_pkey primary key, district varchar(150), koatuu varchar(20) not null constraint location_koatuu_idx unique, location_type varchar(20), region varchar(150), settlement varchar(150) ); alter table...
true
11abdf9f51dff3624dbf155c9da11ae132ec000a
SQL
omegazip/dba_scripts
/custom/sql/ubica_tablap.sql
UTF-8
320
2.78125
3
[]
no_license
set linesize 600 set pagesize 600 set arraysize 999 col ownet format a10 --where table_name like upper('%&nombre_tabla%') select table_owner,table_name,PARTITION_NAME, TABLESPACE_NAME, AVG_SPACE,NUM_ROWS,LAST_ANALYZED from DBA_TAB_PARTITIONS where table_name= upper('&nombre_tabla') order by table_owner, PARTITION_NAME;
true
af9954ae929fd5f20a689d7a5d8a08fa3224792d
SQL
lucy13palmer7/Employee-Dir
/seeds.sql
UTF-8
1,716
2.859375
3
[]
no_license
INSERT INTO department (name) VALUES ("Accounting"), ("Engineering"),('Information Technology'), ("Marketing"), ("Customer Sales Represenative"),('Human Resources'),('Warehouse Managment'); INSERT INTO role (title, salary, department_id) VALUES ("Lead Accoutant", 73000, 1), ("Accountant", 57000, 1), ...
true
349f69bce46107c7ebc4894111981f4c30d9d3c2
SQL
redradishtech/jira-interesting-sql-queries
/boardadmins_without_sprints_permission.sql
UTF-8
2,150
3.5
4
[]
no_license
-- Identifies administrators of Boards who lack 'Manage Sprints' permission in all projects - and therefore will not be able to start Sprints in the Boards they allegedly manage. -- @requires queries.userpermissions -- @provides queries.boardadmins_without_sprints_permission create or replace view queries.boardadmins_w...
true
ef15b98091f7139aba481c6c50e604cf74de6dda
SQL
arilsonsantos/practing
/exercicio-strategy/scripts/scripts/init.sql
UTF-8
1,506
3.21875
3
[]
no_license
CREATE DATABASE exercicio WITH OWNER = postgres ENCODING = 'UTF8' TABLESPACE = pg_default LC_COLLATE = 'en_US.utf8' LC_CTYPE = 'en_US.utf8' CONNECTION LIMIT = -1; \c exercicio CREATE TABLE public.funcionario ( id integer NOT NULL, nome character(30), vl_salario_bruto numeri...
true
78c6572a6a81e8dcf021a7b19c750cbae2ee4922
SQL
fxavier/abtairsmoz
/src/main/resources/db/migration/V02__criar_tabelas_tipo_actor_ actor.sql
UTF-8
530
3.4375
3
[]
no_license
CREATE TABLE tipo_actor ( codigo BIGINT(20) PRIMARY KEY AUTO_INCREMENT, nome VARCHAR(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE actor ( codigo BIGINT(20) PRIMARY KEY AUTO_INCREMENT, nome VARCHAR(50) NOT NULL, sexo VARCHAR(20) NOT NULL, codigo_tipo_actor BIGINT(20) NOT NULL,...
true
5bdb07acb1a87fb837241e1a4c3f915d93cc6ede
SQL
swetha242/Restaurant-Database
/restquery.sql
UTF-8
3,844
4.40625
4
[]
no_license
\c restaurant /*Selects Chefs in the restaurant*/ select employees.name from employees where employees.occupation='Chef'; /* Generates Menu */ select dishes.d_name,dishes.d_price,dishes.dish_type from dishes order by dishes.dish_type; /* Performance of employees*/ select employees.name,avg(rating) from forms,empl...
true
98213e6fcd90ea36b87931afa4b860f7bd103120
SQL
benhamilton/snippets
/sugarcrm-show-records-user-has-edited.sql
UTF-8
2,140
3.90625
4
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
/* Summary: Show what contact records a user has edited in SugarCRM Note: modify timezone values (plural) as required Note: modify where clause dates and username */ select convert_tz(c_a.date_created,'+00:00','+10:00') as 'Date Edited', u.user_name as 'Username', case c.deleted WHEN '0' THEN (concat_ws(' '...
true
344f1e72ac0fd6c9fe55441a8a580bf6fa3e1ec0
SQL
insins/MAIVFOOD
/maiv_food.sql
UTF-8
6,902
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 16, 2013 at 05:55 PM -- Server version: 5.5.20 -- PHP Version: 5.4.3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
318295e3e222aa1d86b6544667bdd3b7e10aa2ff
SQL
lelesouara/lp3finalwork
/DB.sql
UTF-8
13,215
3
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 9.2.4 -- Dumped by pg_dump version 9.2.4 -- Started on 2013-11-26 20:53:20 AMST SET statement_timeout = 0; SET client_encoding = 'SQL_ASCII'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -...
true
e83bbba51e2d4cf86c4d2a8a79cb3ac4d65ef0d6
SQL
ibnoe/bc-miracle
/UPDATE_DB/2010-08-19_12-15-AM.sql
UTF-8
3,386
3.3125
3
[]
no_license
ALTER TABLE `produk` CHANGE `poduk_revised` `produk_revised` INT( 11 ) NULL DEFAULT '0'; /*---------- ALTER VIEW PRODUK ----------------*/ CREATE OR REPLACE VIEW `vu_produk` AS SELECT `produk`.`produk_id` AS `produk_id`, `produk`.`produk_kode` AS `produk_kode`, `produk`.`produk_group` AS ...
true
85fa920e32bb28ab43e63457af4dd2e0e391b62d
SQL
c0ns0le/docker-introscope
/database/9.6.0.0/scripts/dbupgrade-postgres-3.2.1.sql
UTF-8
4,791
2.71875
3
[ "MIT" ]
permissive
-- upgrade database from 3.2.1 to 3.2.2 -- bug 411 create index ts_defects_interval_TranSetIncarnationIdIndex on ts_defects_interval (ts_transet_incarnation_id); create index ts_defects_interval_UserIncarnationIdIndex on ts_defects_interval (ts_user_incarnation_id); create index ts_stats_tran_user_interval_TranSetInd...
true
27ffe3f48b3774cc868178c36e80bc4bd125ae6d
SQL
GuilhermeARS/Gerenciador-de-partidas-MpsBr
/Gerenciador_partidas2.0/Dump20160727.sql
UTF-8
6,847
2.9375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `campeonato` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `campeonato`; -- MySQL dump 10.13 Distrib 5.6.17, for Win32 (x86) -- -- Host: 127.0.0.1 Database: campeonato -- ------------------------------------------------------ -- Server version 5.6.26-log /*!40101 SET @OLD_CHARACTER_S...
true
b1670559a6e48a06e00862e31d53443938bb066a
SQL
VisualAcademy/SqlServer
/SqlServer/SQL2017/Where절.sql
UHC
1,478
4.21875
4
[]
no_license
-- Where : Select ó(AND, OR, NOT) -- ü : 121317 SELECT [s].[SalesOrderID], [s].[SalesOrderDetailID], [s].[CarrierTrackingNumber] FROM [Sales].[SalesOrderDetail] AS [s]; -- : 12 SELECT [s].[SalesOrderID], [s].[SalesOrderDetailID], [s].[CarrierTrackingNumber] FROM [Sales].[SalesOrderDetail] AS [s] WHERE [...
true
89b9f4b032658e515d6117b001b0d04932de162b
SQL
pauljstuart/Scripts
/vba/outlook_syntax_highlighting.sql
UTF-8
15,569
2.78125
3
[]
no_license
Public Sub FormatSelectedText() Dim myInspector As Outlook.Inspector Dim myObject As Object Dim myItem As Outlook.MailItem Dim myDoc As Word.Document Dim mySelection As Word.Selection Dim strItem As String Dim strGreeting As String Dim selection_range As Range Set myInspector = Ap...
true
a99902e9df0493a04276243d91b9c3c8993410b1
SQL
radtek/abs3
/sql/mmfo/bars/View/v_wcs_bid_creditdata_quests.sql
UTF-8
2,473
3.6875
4
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/View/V_WCS_BID_CREDITDATA_QUESTS.sql ======= PROMPT ===================================================================================== PROMPT *** Create view V_WC...
true
739d8af4b01a07d8c64221929c8cc86171a327ae
SQL
faseneo/controlmemo
/sql/querys_varias/QUERYS_VARIAS_Pruebas_SP.SQL
UTF-8
2,881
3.859375
4
[]
no_license
SELECT estado_max_id,memo_id, memo_num_memo, memo_anio, memo_fecha_recepcion, memo_fecha_memo, memo_materia, memo_fecha_ingreso, memo_depto_solicitante_id, memo_depto_destinatario_id, dep.depto_nombre, dep2.depto_nombre as depto_nombre_dest, met.memo_estado_tipo, met.memo_estado_color_bg, met.memo_estado...
true
2008aed8b5d61c367acc716f7f3d43bbfd5dc3d1
SQL
aayushg97/DBCart
/data.sql
UTF-8
5,399
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 19, 2018 at 04:34 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
76809fe6ce1f0f2ae0d327d937378d9e01fecf7e
SQL
opiagile/nac
/src/main/resources/db/migration/postgresql/v1__init.sql
UTF-8
1,495
3.421875
3
[ "Unlicense" ]
permissive
create table empresa ( id int8 not null, cnpj_cpf varchar(255) not null, data_atualizacao timestamp not null, data_criacao timestamp not null, razao_social varchar(255) not null, primary key (id) ); create table funcionalidade ( id int8 not null, ...
true
b1460730c6b3c5bba2ee8c6ca752dbc6ab4d3a87
SQL
ahmadhamdi11/kependudukanKel1PWL
/db_penduduk.sql
UTF-8
3,629
3.125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 26, 2018 at 05:09 AM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
ee7da0a7c1525c588da00a277eec5ea8ededc034
SQL
kbyagnik/dbms-inter-iit-sports
/SQL/team.sql
UTF-8
2,205
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 18, 2015 at 03:45 AM -- Server version: 5.6.14 -- PHP Version: 5.5.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
67263eb22fbb7c86481056f1e1fa60631d9cb323
SQL
wdaweb/resume-WuGe01
/mySQL/res_exp.sql
UTF-8
2,971
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- 主機: 127.0.0.1 -- 產生時間: 2020-07-13 02:16:04 -- 伺服器版本: 10.4.11-MariaDB -- PHP 版本: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
229a8fbea555901609041943b3a8d6ece18884ce
SQL
jworkman119/HTC
/Vertex/BarbDeangelis/ContractBreakout/ContractBreakout_Vertex.sql
UTF-8
588
3.453125
3
[]
no_license
Select PT.Pt_Job_Number as JobCode , PT.pt_emp_number as Employee , sum(PT.Pt_Time_Hours * 24) as HoursWorked , pp.payroll_program_name as Disability , pp.payroll_program_code as Disability_Code from employee join payroll_program PP on PP.payroll_program_id = employee.emp_payroll_program_id join Productivity_Tr...
true
225dd76763c96d9797682b0408f0e11cee42e867
SQL
DMilmont/mode
/Mode/roadster/spaces/~Archived Reports/GA Tags missing from Dealer Website.362cc7fe39c5/Dealers not sending their website traffic to Roadster_.85c5f73091f2.sql
UTF-8
3,122
3.3125
3
[]
no_license
with date_dpid as ( select distinct c.date, dp.dpid, dp.name, dp.tableau_secret as dpsk, dp.status current_status, dp.success_manager, dp.integration_manager, dp.actual_live_date from fact.d_cal_date c cross join ( select distinct dp.dpid, dp.tableau_secret, dp.name, sf.status, sf.success_manager, sf.integration_man...
true
b9cd03a36e17c3eb360a1c7c2a7ddb2439a321cd
SQL
Paulsanjo/ultimate-mysql-bootcamp
/data-types/strings.sql
UTF-8
594
2.953125
3
[]
no_license
-- CHAR(N) CHAR(N) -- fixed length string data type. -- -- if populated with less characters than the data type will hold, the value is right-padded. -- when the value is retrieved, the right-padding is removed unless PAD_CHAR_TO_FULL_LENGTH sql more is enabled. -- -- it is faster for fixed length text. -- VARCHAR(N) ...
true
c481ac4e689a63db7281a5283f3bcf1c8c895a9e
SQL
itspladd/bootcampx
/4_queries/1_total_assistance_requests.sql
UTF-8
157
3.171875
3
[]
no_license
SELECT COUNT(*) AS total_assistances, name FROM teachers JOIN assistance_requests AS reqs ON teachers.id = reqs.teacher_id WHERE name='Waylon Boehm' GROUP BY name;
true
6e8c114c53c4a6c8decebe17e39d39a933651eb3
SQL
wsduarteoficial/admin-lte-laravel-vagrant
/database/subcategories.sql
UTF-8
108,284
3.078125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : Localhost Source Server Type : MySQL Source Server Version : 50721 Source Host : localhost:3306 Source Schema : oiempresas Target Server Type : MySQL Target Server Version : 50721 File Encoding : 65001 Dat...
true
d5a8917b70b8698c71c41ed899b642dd4b2ce742
SQL
kozakjefferson/bigquery-etl
/sql/telemetry/firefox_kpi_dashboard_v1/query.sql
UTF-8
4,856
3.09375
3
[]
no_license
WITH forecast_base AS ( SELECT * FROM `moz-fx-data-derived-datasets.analysis.growth_dashboard_forecasts_current` -- We patch in nondesktop forecasts that exclude Firefox for Fire TV. WHERE datasource NOT IN ('nondesktop_global', 'nondesktop_tier1') UNION ALL SELECT * REPLACE (REPLACE(datas...
true
496399413e6d7fc32a8315eb03bcfe094ec7eaf9
SQL
saquibsayyad/light-inventory
/src/main/resources/schema.ddl
UTF-8
863
3.84375
4
[]
no_license
CREATE TABLE Products( ID SERIAL, NAME VARCHAR(200) NOT NULL, DESCRIPTION TEXT, QUANTITY INT NOT NULL, PRICE NUMERIC(8,2) NOT NULL, TIME_CREATED TIMESTAMP DEFAULT NOW() ); CREATE TABLE Taxes( ID SERIAL, NAME VARCHAR(200) NOT NULL, DESCRIPTION TEXT, RATE NUMERIC(8,2) NOT NULL, ...
true
a4ef2e179901df41c5e7a9dd76405be49830715b
SQL
Valinor13/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/9-cities_by_state_join.sql
UTF-8
188
3.1875
3
[]
no_license
-- Lists all cities contained in database. -- hbtn_0d_usa SELECT cities.id, cities.name, states.name FROM cities INNER JOIN states ON states.id = cities.state_id ORDER BY cities.id ASC;
true
1d673538868f4391484d7d6e1bb89fc917d58b02
SQL
mimannurdin/web-e-arsip
/db/arsip.sql
UTF-8
8,768
3.140625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 03, 2019 at 09:54 PM -- Server version: 10.3.14-MariaDB -- PHP Version: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
9f0096b677876bec794a49a1d7aad04ab92457ad
SQL
glappy/Oracle
/myMem(2018-12-18).sql
UHC
657
2.671875
3
[]
no_license
-- myMemڷ ȭԴϴ -- Ŭ $ ǥ ִ ̺ SYSTEM DICTIONARY Ѵ -- SYS DIC ĪѴ. ý ִ ߿ ̴̺ -- SYS DIC ڷ Ȯ myMem DBA ޾Ƿ Ȯ SELECT * FROM v$datafile ; SELECT NAME FROM v$datafile ; SELECT * FROM dba_tablespaces ; SELECT * FROM dba_data_files ; SELECT * FROM v$controlfile ; SELECT * FROM dba_users ; SELECT * FROM dba_tab_privs; SEL...
true
ff3c3e7af37d992a5dd8fc7133be8e0a0de0d4af
SQL
SamirBoulil/assembly
/politics_pole/scrapper/Database/database_structure_dump.sql
UTF-8
25,822
3.109375
3
[]
no_license
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: politics_pole; Type: DATABASE; Schema: -; Owner: Samir -- CREATE DATABASE politics_p...
true
f08e18dfcfbf8e4a1a63fa6ff719fd6b0369d3d3
SQL
wc43870n/practical_sql
/sessions/03/class_queries/president_age/01_president_age.create.sql
UTF-8
222
3.109375
3
[]
no_license
DROP VIEW IF EXISTS sampdb.president_age; CREATE VIEW sampdb.president_age AS SELECT last_name, state, ROUND(DATEDIFF(death, birth) / 365, 1) as AGE FROM sampdb.president;
true
ee03e3b892b43120d037fa694c962e211a1da6ea
SQL
krishnamohankaruturi/secret
/aart-web-dependencies/db/dml/144.sql
UTF-8
2,067
2.578125
3
[]
no_license
--US13779 Name: Reports Functional Selection Filters INSERT INTO CATEGORYTYPE (typename, typecode, typedescription, originationcode, createddate, createduser, modifieddate, modifieduser) VALUES ('Report Category', 'REPORT_CATEGORY', 'Report Category', 'AART_ORIG_CODE', now(), (select id from aartuser where usern...
true
b795dbb757d3fba777ff8a0f49cfe3d461a09922
SQL
VLAD-KHARCHENKO/PetBankJDBC
/src/main/resources/scripts/create_schema.sql
UTF-8
1,114
3.875
4
[]
no_license
drop schema if exists petBank; create schema petBank character set utf8 collate utf8_general_ci; use petBank; create table user ( id bigint auto_increment, first_name varchar(255), last_name varchar(255), email varchar(255) unique, password varchar(255) not null, isActive boolean, role enum("CUSTOMER", "ADMIN"), prima...
true
3ac3ee305f5e10d4bcf3b21ce6d421d880af35c1
SQL
CelsoSuehara/store_mvc
/_MySQL_init_Script/init.sql
UTF-8
542
3.1875
3
[]
no_license
CREATE DATABASE produtodb; USE produtodb; DROP TABLE IF EXISTS Produtos; CREATE TABLE Produtos( ProdutoId INT AUTO_INCREMENT, Nome VARCHAR(80) NOT NULL, Categoria VARCHAR(50) NOT NULL, Preco DECIMAL (10,2) NOT NULL, PRIMARY KEY(ProdutoId) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES Produtos WRITE; INSERT INTO...
true
9d3ee94179761f5c5490ff5ea0f69a40d9236477
SQL
radtek/abs3
/sql/mmfo/bars/Data/tts/et_t2p.sql
WINDOWS-1251
2,401
2.546875
3
[]
no_license
set lines 1000 set trimspool on set serveroutput on size 1000000 prompt / T2P prompt : T2P: TMP declare cnt_ number; begin -------------------------------- -- -- -------------------------------- begin insert into tts(tt, name, dk, nlsm, kv, nlsk, kvk, nlss, nlsa, nlsb, mfob, flc, fl...
true
c8b18456681d965350d3efb214a4b600c6e2e5a5
SQL
jms844/dbFSRE
/dbFSRE/dbo/Stored Procedures/updateForecastDetail.sql
UTF-8
939
3.359375
3
[]
no_license
-- ============================================= -- Author: Jaryn Seidl -- Create date: -- Description: -- ============================================= CREATE PROCEDURE updateForecastDetail -- Add the parameters for the stored procedure here @DetailForecastId int = 0, @forecast int = 0 AS BEGIN -- SET NOCOUNT...
true