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
a9f44ed76bbcc7a40e47c8af3cb79b41ab5f8f94
SQL
Magicoach/database
/procedures/magicoach/calculate_part_all3.sql
UTF-8
18,988
3.5625
4
[]
no_license
DELIMITER $$ CREATE PROCEDURE `calculate_part_all3`(IN new_part int) SQL SECURITY DEFINER CONTAINS SQL BEGIN SET @new_part = new_part; SET @lastTIME = '2015-01-19 03:14:07'; SET @lastPART = 0; SET @lastX = 0; SET @lastY = 0; /* DROP TABLE IF EXISTS magic_table_1; DROP TABLE IF EXISTS magic_table_2; DRO...
true
dcb57ef61f43ac4c75eb2796bcf4a260c57544f1
SQL
bzyuser/duanzu
/SQL/duanzu.sql
UTF-8
11,661
3.03125
3
[]
no_license
/*==============================================================*/ /* DBMS name: Sybase SQL Anywhere 12 */ /* Created on: 2018/5/21 22:16:01 */ /*==============================================================*/ DROP TABLE IF EXISTS check_in_out_time_arrange; DR...
true
9c32ec4607cb7de137d87a4cc0d044864dfd0e31
SQL
mandeepdahiya/emailer
/initializer/db.sql
UTF-8
1,328
3.21875
3
[]
no_license
CREATE DATABASE `emailer`; DROP TABLE IF EXISTS `email_jobs`; CREATE TABLE `email_jobs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `sender` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `recipient` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `subject` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `mes...
true
c73c08a336d9fca9ed83e7090d51fd9878d8deba
SQL
jafar007shaikh/DATA26
/s2.sql
UTF-8
2,004
2.71875
3
[]
no_license
-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.0.7-beta-nt /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_...
true
cbbc7e70461131cb8013878e7756f7b4961f42d4
SQL
Christellefz/Portofolio-Back
/data/Portofolio.sql
UTF-8
5,061
3.328125
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
372024dddeab4da1d3adb5d7d33b640da1dfc07b
SQL
bringitps/ExperimentDesigner
/src/main/resources/sql/SQL_SERVER_CREATE_VwVerticalReport_STMT.sql
UTF-8
605
3.71875
4
[]
no_license
CREATE VIEW vwVerticalReport AS SELECT VwVerticalRpt.VwVerticalRptId AS 'Id', VwVerticalRpt.VwVerticalRptName AS 'Name', VwVerticalRpt.VwVerticalRptDescription AS 'Description', CreatedByUser.UserName AS CreatedBy, VwVerticalRpt.CreatedDate, LastModifiedByUser.UserName AS LastModifiedBy, VwVerticalRpt.Modi...
true
41dff237d88750d3a454413cf4e9c78c326eb99f
SQL
GreanBeetle/shoe-store
/empire_kicks.sql
UTF-8
6,045
3.125
3
[ "MIT" ]
permissive
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.3 -- Dumped by pg_dump version 9.6.3 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min...
true
7287fa2c160d997e211b5db57b3124edf8da89d7
SQL
dstreev/hdp-conversions
/hdp.conversion.sentry/src/main/resources/sql/hdfs-sentry.sql
UTF-8
1,014
3.65625
4
[ "Apache-2.0" ]
permissive
SELECT collect_set(r.grp) AS grp, a.privilege_scope AS scope , CASE SUBSTR(SUBSTR(a.path,1,LENGTH('hdfs://') +LENGTH('$nameservice')) ,1,4) WHEN "hdfs" THEN SUBSTR(a.path,LENGTH('hdfs://') +LENGTH('$nameservice') +1) ELSE a.path END AS path, a.action as action FROM sen...
true
248f8fe24c2f18ee35db0d9a535064cbaabd6dcc
SQL
phunhog/CTSA-TIN
/TIN/ALS/ALS_TIN_.sql
UTF-8
5,362
3.8125
4
[]
no_license
--Select --e.MRN --, e.identity_type_ID --,Max(e.DX_Date) as DXDate --,Datepart(yyyy,e.DX_Date) as DxYear --, e. DX_CODE --, e.DX_DESCRIPTION -- a.patientEthnicity -- ,Sum(kounter) --, e.patientSex -- , e.patientEthnicity --, 1 as Kounter --from --( select distinct --e.ENCOUNTER_ID e.MRN --, e.identity_type...
true
8be506503e07c0c45aede5025fe92d24cf4f6a12
SQL
ALgosZen/eurocup2016
/sql_q13_sol.sql
UTF-8
188
3.359375
3
[]
no_license
SELECT distinct(player_name) FROM goal_details a JOIN player_mast b ON a.player_id=b.player_id JOIN soccer_country c ON a.team_id=c.country_id WHERE posi_to_play='DF' ORDER BY player_name;
true
4107737bda99535ab6473ba1dcb3817e9f25b4f7
SQL
KhanggNguyen/M2
/S3/HMIN302-EApplication/P3/1 - Les bases du Web du PHP/TP3/TP3_solution/chuck.sql
UTF-8
1,099
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.5 -- http://www.phpmyadmin.net -- -- Client: localhost -- Généré le: Ven 23 Août 2013 à 14:42 -- Version du serveur: 5.5.31-MariaDB -- Version de PHP: 5.5.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_C...
true
1d3a67e77bb05dde132b24610e2baa1fe44d513b
SQL
rasekdk/Community
/db/Community_noData_DB.sql
UTF-8
9,793
3.25
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.22, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: myReddit -- ------------------------------------------------------ -- Server version 8.0.23-0ubuntu0.20.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_S...
true
8d62e4c9e575b0fcf6af7dc9f09ddfa1e431244a
SQL
azuya/Simple-Photo-Gallery
/schema.sql
UTF-8
1,203
3.125
3
[ "ISC" ]
permissive
-- phpMyAdmin SQL Dump -- version 2.11.9.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 17, 2009 at 12:59 PM -- Server version: 5.0.13 -- PHP Version: 5.2.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -------------------------------------------------------- -- -- Table structure for table ...
true
1433b0468c054e46ea843ad23228de83cccd34ff
SQL
4nc3str4l/SQL_Course
/self_join.sql
UTF-8
814
4.0625
4
[]
no_license
/* Joins the table with itself Possible aplicaiton: imagine that we want to find the employees that their location are the same than once employee */ SELECT a.customer_id, a.first_name, a.last_name, b.customer_id, b.first_name, b.last_name FROM customer AS a, customer AS b WHERE a.first_name = b.last_name ORDER ...
true
40a2f48fd690bf6060ce1f40d936fd8ac3d0acb3
SQL
agungdhewe/fgtacloud4u
/apps/fgta/riset/pros02/pros02.sql
UTF-8
2,528
3.21875
3
[ "BSD-3-Clause" ]
permissive
CREATE TABLE `mst_pros` ( `pros_id` varchar(16) NOT NULL , `pros_name` varchar(60) NOT NULL , `pros_iscommit` tinyint(1) NOT NULL DEFAULT 0, `pros_commitby` varchar(14) , `pros_commitdate` datetime , `pros_version` int(4) NOT NULL DEFAULT 0, `pros_isapprovalprogress` tinyint(1) NOT NULL DEFAULT 0,...
true
728ca9e4096ba48cf444ed3a9ae9e55e17c68693
SQL
j7ng/CLFY_SA
/SA/Tables/TABLE_RPT.sql
UTF-8
1,011
3.0625
3
[]
no_license
CREATE TABLE sa.table_rpt ( objid NUMBER, title VARCHAR2(80 BYTE), sqr_text LONG, sqr_param VARCHAR2(255 BYTE), dev NUMBER, rpt2sqr_param NUMBER(*,0) ); ALTER TABLE sa.table_rpt ADD SUPPLEMENTAL LOG GROUP dmtsora459593680_0 (dev, objid, rpt2sqr_param, sqr_param, title) ALWAYS; COMMENT ON TABLE sa.t...
true
49afc28aa8566b4de4f42a2a8d99bb67396c7263
SQL
hardsky/music-head
/db/WriteSiteNews_Interface.sql
UTF-8
4,882
2.578125
3
[ "MIT" ]
permissive
SET NAMES 'utf8'; /*WriteSiteNews page; Code = 55*/ /*English*/ /*gvNews*/ insert into site_interface (Text, Control_Id, Code, LangId, Comment, MultipleCont, ColumnIdx) select "Date", "gvNews", 55, site_language.Id , "WriteSiteNews page", 1, 1 from site_language where LangCode = "en"; insert into site_interface (Text...
true
960506e5ea32bf5b6d7350474c510736dc40d206
SQL
danielrodriguezac/ethanol
/ethanol.sql
UTF-8
3,678
3.046875
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
-- -- Database: `ethanol` -- -- -------------------------------------------------------- -- -- Table structure for table `bans` -- CREATE TABLE IF NOT EXISTS `bans` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(100) DEFAULT NULL, `ip` varchar(100) DEFAULT NULL, `created_at` int(11) NOT NULL, `exp...
true
ce3c08256108690a733ce0ca0da0b3f06c867e25
SQL
Nickmcd4/Node.js-MySQL
/bamazonn_db.sql
UTF-8
817
3.109375
3
[]
no_license
CREATE DATABASE bamazon_DB; USE bamazon_DB; CREATE TABLE products( item_id INTEGER NOT NULL AUTO_INCREMENT, product_name VARCHAR(50) NOT NULL, department_name VARCHAR(50) NOT NULL, price DECIMAL(10, 2) NOT NULL, stock_quantity INT(10) NOT NULL, PRIMARY KEY (item_id) ); INSERT INTO products (prod...
true
c181fd05e26aec4c9f2cec62cd9ec60e5c2974f3
SQL
ashishkishore/CodeBase
/Nested_table.sql
UTF-8
634
3.0625
3
[]
no_license
create type subject_list is table of varchar2(20); / create table dept_nested_subjects(dept_name varchar2(20),hod_name varchar2(20),course_offered subject_list) NESTED TABLE course_offered STORE AS SYS_GEN_TBL; / select * from DEPT_NESTED_SUBJECTS; insert into DEPT_NESTED_SUBJECTS values('Arts','H.N.P',subject_list('...
true
1967e9daea58c712db6003e4bc04af08786c64a6
SQL
Jiajianou/Highlander
/database/testData.sql
UTF-8
13,491
2.6875
3
[]
no_license
--/Users/jiajianou/Desktop/projects/Highlander/database/testData.sql TRUNCATE TABLE users restart identity CASCADE; TRUNCATE TABLE posts restart identity CASCADE; TRUNCATE TABLE comments restart identity CASCADE; TRUNCATE TABLE votes restart identity CASCADE; --***************users INSERT INTO users VALUES ( DEFAUL...
true
ae70dd572afa933abc4295ca268556f8e41f7236
SQL
elapalm/WIP-Bamazon
/bamazon.sql
UTF-8
1,205
3.828125
4
[]
no_license
--To create the database and insure there isn't a duplicate DROP DATABASE IF EXISTS bamazon_DB; CREATE DATABASE bamazon_DB; -- To insure the correct table is being used USE bamazon_DB; -- To create the table CREATE TABLE products( item_id INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(100) NOT NULL, department...
true
765ba94221bd3edb10dee4269ef9502c428c9afd
SQL
Yana-Savchenko/Trello-app-api
/trelloDB.sql
UTF-8
6,768
2.78125
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 10.4 -- Dumped by pg_dump version 10.4 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', '', fal...
true
b3083fff5b188d32bf7008d69e1ce38e715ae9df
SQL
jacobaschulz/AdventureWorks-Sample
/Querying AdventureWorks.sql
UTF-8
600
4.03125
4
[]
no_license
USE AdventureWorks2012; --Retrieving the CustomerID, how many orders they placed, and SubTotal for each SELECT soh.CustomerID, COUNT(soh.CustomerID) AS CustomerCount, soh.SubTotal FROM Sales.SalesOrderHeader soh GROUP BY soh.CustomerID, soh.SubTotal; --Using OFFSET to retrieve the ...
true
d8c8992ebdf931c602a63bc2d4c7e87c840ee868
SQL
misty-garcia/database-exercises
/repeat_3.4.sql
UTF-8
880
3.984375
4
[]
no_license
-- Use the albums_db database. use albums_db; -- Explore the structure of the albums table. describe albums; -- Write queries to find the following information. -- The name of all albums by Pink Floyd select * from albums where artist = 'Pink Floyd'; -- The year Sgt. Pepper's Lonely Hearts Club Band was released sel...
true
8038d59f8d3125e9b85c29d329f5a7ffa41ad1dd
SQL
SangJun-GitHub/DBS301
/Lab6/L6_112293170_Park.sql
UTF-8
3,455
4.4375
4
[]
no_license
-- *********************** -- Name: Sang Jun Park -- ID: 112293170 -- Date: 2018-06-17 -- Purpose: Lab 6 DBS301 -- *********************** -- Q1. SET AUTOCOMMIT ON (do this each time you log on) -- so any updates, deletes and inserts are automatically committed before you exit from Oracle. -- Q1. SOLUTION -- SET A...
true
9d1c11bba93622d73b1a2eac85f522d36718695a
SQL
radtek/abs3
/sql/mmfo/bars/Table/xml_refreqv_par.sql
WINDOWS-1251
3,494
2.921875
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/XML_REFREQV_PAR.sql =========*** Run * PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
2b4bcd29db6858539349fb436dd897849ba73742
SQL
saiful-islam/OnlineQuery
/Database/SQLDataViewerAuthenticationDB/SQLDataViewerAuthenticationDB/vc/Functions/IsObjectDropped.sql
UTF-8
422
3.296875
3
[]
no_license
CREATE function [vc].[IsObjectDropped](@objectId int,@datetime datetime) returns int begin if exists ( select * from vc.ObjectDropedPeriodRange where ObjectId=@objectId and ( ( @datetime is not null and @datetime>=StartDatetime and (EndDatetime is null or @datetime<EndDatetime) ...
true
e8d8f02121bbd1146a0dee65534969baabad3e90
SQL
ilyach12/department-app
/dao/src/main/resources/db/db.sql
UTF-8
1,208
3.890625
4
[]
no_license
DROP TABLE IF EXISTS DEPARTMENT; DROP TABLE IF EXISTS EMPLOYEES; DROP TABLE IF EXISTS USERS; CREATE TABLE IF NOT EXISTS DEPARTMENT ( ID BIGINT AUTO_INCREMENT PRIMARY KEY NOT NULL, DEPARTMENTNAME VARCHAR(2147483647) NOT NULL ); CREATE UNIQUE INDEX IF NOT EXISTS "DEPARTMENT_ID_uindex" ON DEPARTMENT (ID); CREATE ...
true
50b738509e4e6300221cd369faecf64d053c2938
SQL
eclipse907/spring-and-kotlin-eclipse907
/academy_project/src/main/resources/db/migration/V5__change_car_table.sql
UTF-8
537
3.65625
4
[]
no_license
ALTER TABLE car ADD COLUMN car_model_id BIGINT; UPDATE car SET car_model_id = ( SELECT id FROM car_model WHERE car_model.manufacturer = car.manufacturer_name AND car_model.model_name = car.model_name ); DELETE FROM car WHERE car.car_model_id IS NULL; ALTER TABLE car ADD CONSTRAINT fk_car_mo...
true
4ddae991cdc0b4a9620d98ae03594351686d1fc7
SQL
Pawek/xddialogs
/xddialogs_dump.sql
UTF-8
2,512
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.9.0 -- http://www.phpmyadmin.net -- -------------------------------------------------------- -- -- Структура таблицы `pfx_dialog` -- CREATE TABLE `pfx_dialog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `public` int(11) NOT NULL, `hash` varchar(50) NOT NULL, `userid` int(11)...
true
a091dfe9cfd65bc22978ad2c1d808a4c0b1074e0
SQL
zmf514468780/springboot-
/parent/Dump20190618/zmf-shop-order_order_info.sql
UTF-8
2,517
2.921875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64) -- -- Host: 127.0.0.1 Database: zmf-shop-order -- ------------------------------------------------------ -- Server version 8.0.11 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RES...
true
ae36abaf7d52f48231965582e31b7f0dc4667e3a
SQL
yani5752000/BootcampX
/1_queries/rollover.sql
UTF-8
186
3.609375
4
[]
no_license
SELECT students.name, students.start_date, cohorts.name, cohorts.start_date FROM students JOIN cohorts ON students.cohort_id = cohorts.id WHERE students.start_date <> cohorts.start_date;
true
13d0024cfa667013d04db6e24617be7267733798
SQL
dfperezc/Py-It1
/data/esquematablas.sql
UTF-8
8,798
3.578125
4
[]
no_license
--- Sentencias SQL para la creación del esquema de parranderos --- Las tablas tienen prefijo A_ para facilitar su acceso desde SQL Developer -- USO -- Copie el contenido de este archivo en una pestaña SQL de SQL Developer -- Ejecútelo como un script - Utilice el botón correspondiente de la pestaña utilizada -- Creaci...
true
2086c12b0977908e68d2594dc1c1b9ac4c8d83c2
SQL
RipaltaOriol/neilit
/db_neilit_schema.sql
UTF-8
18,883
3.453125
3
[]
no_license
create table currencies ( id int auto_increment primary key, currency varchar(3) not null ); create table languages ( language varchar(2) not null primary key ); create table roles ( id int auto_increment primary key, role varchar(40) not null, price_i...
true
a47e042e19362349031fbe1b72d084e7c88d7c73
SQL
HebertSam/SQL_query_practice
/Friendships_practice_queries.sql
UTF-8
917
3.359375
3
[]
no_license
insert into users (first_name, last_name, created_at, updated_at) values ("Chris", "Baker", now(), now()), ("Daina", "Smith", now(), now()), ("James", "Johnson", now(), now()), ("Jessica", "Davidson", now(), now()), ("Seth", "Edmunds", now(), now()), ("Dan", "Bock", now(), now()), ("Raymond", "Perlman", now(), now());...
true
a903e06cb7a9431e4243570551039114e8a17e29
SQL
L-dongkyung/oracle_study
/CHECK0512.sql
UTF-8
363
2.921875
3
[]
no_license
CREATE TABLE EX2_9( NUM1 NUMBER CONSTRAINTS CHECK1 PRIMARY KEY, CHECK (NUM1 BETWEEN 1 AND 9), GENDER VARCHAR2(10) CONSTRAINTS CHECK2 CHECK (GENDER IN ('MALE','FEMALE')) ); ALTER TABLE EX2_9 DROP CONSTRAINTS CHECK1; ALTER TABLE EX2_9 DROP CONSTRAINTS CHECK2; ALTER TABLE EX2_9 DROP CONSTRAINTS SYS_C00703...
true
78a75379291b6a85f22a3861e5821b43dedf2000
SQL
chrisissin/what2do
/struct.sql
UTF-8
845
3.984375
4
[]
no_license
SET SQL_MODE='NO_AUTO_VALUE_ON_ZERO'; INSERT INTO `what2do`.`poi` (`id`, `name`, `lon`, `lat`, `time`, `placeid`) SELECT tf.`id`, tf.`name`, tf.`lon`, tf.`lat`, tf.`time`, tf.`placeid` FROM `what2do`.`places` tf WHERE NOT EXISTS(SELECT placeid FROM `what2do`...
true
b4d99d98f3e2ba8e4ae2a915aa5b856a3e2b410e
SQL
sergiomm116/DAMGit
/BASES DE DATOS/EJERCICIOS/TEMA 3 - CONSULTAS SQL/Z/FuncionesComplementarias.sql
WINDOWS-1252
958
3.53125
4
[]
no_license
--Obtn en una columna el apellido y el oficio de cada uno de los empleados de la tabla EMPLE,de la siguiente manera: APELLIDO es OFICIO, por ejemplo, SANCHEZ es EMPLEADO (hay que anidar dos funciones CONCAT). SELECT CONCAT (CONCAT(APELLIDO, ' ES '),OFICIO) "CONCATENACION" FROM EMPLE; --Visualiza la columna TITULO de ...
true
91258af5b61523c77d68a175202b3017dbb7a59d
SQL
cathymoreno/db_kardex
/dbkardex10-04-2021.sql
UTF-8
7,277
3.21875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64) -- -- Host: localhost Database: db_kardex -- ------------------------------------------------------ -- Server version 8.0.23 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /...
true
4e8c20ad21a490c9366777f331ed2dca455ad4e8
SQL
Hades75013/P10-BibliothequeV2
/DumpCreationJeudedemoDB_P10.sql
UTF-8
9,688
2.578125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `p7-microservice` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `p7-microservice`; -- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64) -- -- Host: localhost Database: p7-microservice -- ------------------------------------------------------ -- Server version 5.7.29-log /*!40101 SE...
true
16eb5fad34a1af3afd2d223cf1aff9b93c8df2e6
SQL
Jerrytr/citybike-stats
/database.sql
UTF-8
465
3.421875
3
[]
no_license
DROP DATABASE IF EXISTS bike_info_db; CREATE DATABASE bike_info_db; USE bike_info_db; CREATE TABLE Bikestations ( StationID VARCHAR(10) NOT NULL, StationName VARCHAR(255) NOT NULL, StationLon VARCHAR(255) NOT NULL, StationLat VARCHAR(255) NOT NULL, PRIMARY KEY(StationID) ); CREATE TABLE Bikestats ...
true
015c8d679639407643d6c4b64a9c5aa470f75f39
SQL
BillGrover/SocialNetworkZerone
/backend/src/main/resources/db/migration/V3__persons_init.sql
UTF-8
2,482
2.640625
3
[]
no_license
# password: 12345678 # emails: alf1@mail.ru, alf2@mail.ru, alf3@mail.ru... insert into persons (about, birth_date, confirmation_code, email, first_name, approval, block, last_name, last_online_time, message_permission, password, phone, photo, registration_date, city_id, country_id) VALUES ('About...
true
5db02b5d290aa162555615740bcd0856d9e0823a
SQL
fpmi-tp2021/labrabota5-gr13-1-travelagency
/docs/Travel_Agency_create.sql
UTF-8
1,583
3.71875
4
[]
no_license
-- Created by Vertabelo (http://vertabelo.com) -- Last modification date: 2021-03-25 17:48:16.498 -- tables -- Table: Bus CREATE TABLE Bus ( Number integer NOT NULL CONSTRAINT Bus_pk PRIMARY KEY, Name text NOT NULL, Mileage double NOT NULL ); -- Table: Crew_members CREATE TABLE Crew_members ( Personne...
true
55aa86ce266468d1e29a02d706f6aef606d81265
SQL
jinjing2013/bidata
/pdm/sql/checklist.sql
UTF-8
13,234
3.734375
4
[]
no_license
-- 清空表数据 truncate table pdm.checklist; -- 插入检测量数据,19n年以前的历史数据 insert into pdm.checklist select a.autoid ,a.db ,b.province ,a.cverifier ,null ,null ,case when a.feeler_mechanism is not null then a.feeler_mechanism else a.bi_cusname end ,a.ddate ,a.bi_cuscode ,a.bi_...
true
d531a81fd8da9586d4e8217c67835641dc82cca3
SQL
Good725/ideabubble-lamp
/plugins/timetables/model/model-20190820151900.sql
UTF-8
566
3
3
[]
no_license
/* ts:2019-08-20 15:19:00 */ INSERT INTO `engine_resources` (`type_id`, `alias`, `name`, `description`, parent_controller) VALUES (1, 'timetables_view_planner', 'Timetables View Planner', 'Timetables View Planner', (SELECT id FROM `engine_resources` o WHERE o.`alias` = 'timetables')); INSERT IGNO...
true
f31000fed80ad6e01aaafe687b7626857bcdf653
SQL
TechbearCoding/SQL_10.12
/Day6/task1.sql
UTF-8
2,080
4.0625
4
[]
no_license
CREATE TABLE Students( studentId INT PRIMARY KEY AUTO_INCREMENT, studentName VARCHAR(20) NOT NULL, studentLastName VARCHAR(20) NOT NULL, courseId INT ); CREATE TABLE Lecturers( lecturerId INT PRIMARY KEY AUTO_INCREMENT, lecturerName VARCHAR(20) NOT NULL, lecturerLastName VARCHAR(20) NOT NULL, ...
true
3c8152c4089aba333e551dad74d674c95e8c5b71
SQL
jjordan00/NextGen
/NextGen SQL Scripts/Conversion Stuff (OBSOLETE)/DUps.sql
UTF-8
500
3.375
3
[]
no_license
DELETE FROM DEMOGRAPHICS$ WHERE SSN IN ( SELECT SSN FROM ( SELECT SSN ,ROW_NUMBER() OVER (PARTITION BY [SSN] ORDER BY SSN) AS [ItemNumber] -- Change the partition columns to include the ones that make the row distinct FROM DEMOGRAPHICS$ ) a WHERE...
true
31d6e14d711e17a9404c4d98a59fb9aedad82a26
SQL
dssg/infonavit-public
/db_scripts/create_clean_loans_by_year.sql
UTF-8
1,519
4.03125
4
[]
no_license
CREATE TABLE clean_loans_by_year AS ( WITH loan_abd AS (SELECT cl.*, ad.abandon_year, ad.abandon_month FROM clean_loans cl LEFT OUTER JOIN abandonment_date ad ON (cl.credit_id_41 = ad.cv_credito) ) SELECT cur_year, past, la.*, CASE WHEN abandon_year IS NOT NULL AND abandon_mont...
true
556d751ec8f3d700eea2b32de559de3acf1df18b
SQL
apache/oodt
/workflow/src/test/resources/workflow.sql
UTF-8
3,452
3.703125
4
[ "Apache-2.0", "GPL-1.0-or-later", "BSD-3-Clause", "MIT", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unknown", "LicenseRef-scancode-unknown-license-reference" ]
permissive
DROP TABLE workflows IF EXISTS; DROP TABLE workflow_condition_map IF EXISTS; DROP TABLE event_workflow_map IF EXISTS; DROP TABLE workflow_tasks IF EXISTS; DROP TABLE workflow_task_map IF EXISTS; DROP TABLE workflow_instances IF EXISTS; DROP TABLE workflow_instance_metadata IF EXISTS; DROP TABLE workflow_conditions IF ...
true
c1d2f585989f67877ea31c37f876c862d46d47b1
SQL
achmadnabawi/sparkdata
/wrt/pinpaizhishu/huazhuangpin/ppzs_brandid_weeksold_feedcount.sql
UTF-8
840
3.109375
3
[]
no_license
-- drop table wlservice.ppzs_brandid_weeksold_feedcount; -- create table wlservice.ppzs_brandid_weeksold_feedcount as -- select t1.brand_id,t1.weeksold,t2.good_count,t2.mid_count,t2.bad_count from -- (select * from wlservice.ppzs_brandid_weeksold where ds = '20161106')t1 -- join -- (select * from wlservice.ppzs_brandid...
true
b25338e7b8685802f89dcd89261254ce87268895
SQL
RichyHBM/Dux
/leaderboards/database/create-sqlite.sql
UTF-8
281
3.171875
3
[ "Apache-2.0" ]
permissive
CREATE TABLE IF NOT EXISTS Leaderboards ( Id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE, GameId INTEGER NOT NULL, LeaderboardName TEXT NOT NULL, StartTime INTEGER, EndTime INTEGER, Descending NUMERIC DEFAULT 0, UNIQUE(GameId, LeaderboardName) );
true
2776f37cf8ce7e9ee5956d978912019d51d36814
SQL
cooleditphoto/PayrollChallenge
/src/main/resources/schema.sql
UTF-8
491
2.9375
3
[]
no_license
CREATE TABLE IF NOT EXISTS `time_report`( `id` INT UNSIGNED AUTO_INCREMENT, `date` DATE NOT NULL, `hours_worked` decimal(10,2) NOT NULL, `job_group` VARCHAR(40) NOT NULL, `employee_id` INT NOT NULL, `report_id` INT NOT NULL, PRIMARY KEY ( `id` ) ); INSERT INTO time_report (`date`, hours_wo...
true
4692a3a79d3850e8de3bdcb18650e9e6ee6b6a02
SQL
bradybyrd/REPO
/postgres/rlm/INDEX/index_preferences_on_user_id_and_active.sql
UTF-8
205
2.671875
3
[]
no_license
-- Name: index_preferences_on_user_id_and_active; Type: INDEX; Schema: public; Owner: deploy -- CREATE INDEX index_preferences_on_user_id_and_active ON public.preferences USING btree (user_id, active); --
true
f5a9cfdf4486adca1d91a5207119d4fdbc9e71e6
SQL
dsalexan/august
/queries/grade/select_eventos_turma_tq_idturma.sql
UTF-8
223
3.21875
3
[ "MIT" ]
permissive
SELECT E.descricao AS descricao_evento, ET.data, ET.hora, ET.sala, ET.descricao AS descricao_evento_turma FROM evento_turma AS ET INNER JOIN evento AS E ON ET.id_evento = E.id_evento WHERE id_turma = $/id_turma/
true
2995be01fd719069423024b8e58cacabcedefe5f
SQL
higebu/docker-zabbix-db
/partition.sql
UTF-8
5,772
3.734375
4
[]
no_license
SELECT 'history_log'; ALTER TABLE history_log DROP KEY history_log_2; ALTER TABLE history_log ADD KEY history_log_2(itemid, id); ALTER TABLE history_log DROP PRIMARY KEY ; ALTER TABLE history_log ADD KEY history_logid (id); SELECT 'history_text'; ALTER TABLE history_text DROP KEY history_text_2; ALTER TABLE history_tex...
true
333f7d32f68451d9532bc7444989cf071957ab25
SQL
adjmogollon/apiprocedure
/src/main/resources/viewAndProcedure.sql
UTF-8
2,078
4.09375
4
[]
no_license
CREATE OR REPLACE VIEW `infoCliente` AS select c.id numeroCliente, c.nombre nombreCliente, c.apellido apellidoCliente, c.email CorreoCliente, r.id numeroRegion, r.nombre nombreRegion from clientes as c inner join regiones as r on (c.region_id = r.id); DELIMITER $$ CREATE PROCEDURE `cantidadFacturasTodosClientes`()...
true
9878c29d99de4f7ea2d55af050033cacc7dcca8a
SQL
jgarzonext/packages
/paquete body/PK_PLANESPENS.sql
ISO-8859-1
50,522
2.609375
3
[]
no_license
-------------------------------------------------------- -- DDL for Package Body PK_PLANESPENS -------------------------------------------------------- CREATE OR REPLACE EDITIONABLE PACKAGE BODY "AXIS"."PK_PLANESPENS" AS --------------------------------------------------------------------------- PROCEDURE lee AS...
true
add058328eb856d1a6eeaa574ba3c3df8c85a788
SQL
61160079SE/project_AC
/databases/ac_money_type.sql
UTF-8
1,733
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 02, 2021 at 02:22 PM -- Server version: 5.6.38-log -- PHP Version: 7.3.19-1+0~20200612.60+debian9~1.gbp6c8fe1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone...
true
e9f17c60c877d262bfe5623ff5823939dc0318b4
SQL
ThomasIdgeo/ep_structure
/scripts_sql/EP_init.sql
UTF-8
73,889
3.625
4
[ "CC0-1.0" ]
permissive
/*EP*/ /* Initialisation de la structure des données éclairage public*/ /* Objectif : Créer une structure de tables relationnelles répondant aux enjeux de gestion par la Communauté de Commune Thann-Cernay (CCTC)*/ /*Auteur : Stéphane Ritzenthaler*/ -- ############################################################...
true
cd3e20dfcce584a92737b6e87631b926e35bd8d3
SQL
KainosGurung/plsql
/sample projects/book word counts/book_queries.sql
UTF-8
4,128
4.9375
5
[]
no_license
--How many unique words are there across all books? Note that to be unique, a word must only appear once. SELECT COUNT(*) FROM m_wordcounts WHERE wordid IN (SELECT wordid FROM (SELECT wordid, COUNT(wordid) FROM m_wordcounts GROUP BY wordid HAVING COUNT(wordid) = 1 ) ) AND count = 1; --...
true
f8e155b125192d85f4dcd85cc5c3e82c64a806e5
SQL
syahrialakbarm/CovicareWEB
/covicareweb.sql
UTF-8
7,140
2.609375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 13, 2021 at 03:14 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
b1bb8e239be07382d453fa3294124ef935ebd9e4
SQL
postgresqlacademy/pwaf
/pwaf-core/src/00_pwaf/10_types_and_domains/15_http_request.sql
UTF-8
663
3.203125
3
[ "MIT" ]
permissive
-- DO $body$ BEGIN IF NOT EXISTS ( SELECT 1 FROM pg_type JOIN pg_namespace ON typnamespace=pg_namespace.oid WHERE nspname='pwaf' AND typname='http_request' ) THEN CREATE TYPE pwaf.http_request AS (method pwaf.http_request_method, path text[], param_names text[], param_values tex...
true
12918ad0f4d2f7bb43fc929c72d056d802b43e3d
SQL
alansutiawan/uas_web2.0
/uas_web.sql
UTF-8
40,676
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 27, 2019 at 04:59 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
12d3e98b32cf31e2770e99179bff593b8afa441c
SQL
sarabbani/springboot-cloudfoundry
/src/main/resources/schema.sql
UTF-8
161
2.578125
3
[]
no_license
CREATE TABLE BOOK ( ID INT(11) NOT NULL, TITLE VARCHAR(50) DEFAULT NULL, DESCRIPTION VARCHAR(255) DEFAULT NULL, PRICE DOUBLE NULL, PRIMARY KEY (ID) );
true
e7844dbb59a1ad2da4296179fb4bf5b176c19536
SQL
ThameeraHettiwatta/bankAppIonic
/src/assets/project.sql
UTF-8
2,284
3.671875
4
[]
no_license
CREATE TABLE IF NOT EXISTS transction( transaction_id integer primary key AUTOINCREMENT not null, account_no integer not null, credit boolean not null, date_time datatype text not null, amount real not null, --primary key (transaction_id), foreign key(account_no) references account(account_no) ON...
true
81f26e87fb2efcf7606bd75e267f79465044aa82
SQL
LzrCampos/Marvel-UAM
/back/queryDoencas1.sql
UTF-8
238
3.625
4
[]
no_license
SELECT * FROM doenca WHERE id IN ( SELECT d.id FROM doenca AS d INNER JOIN doeenca_x_sintoma AS dxs ON dxs.fk_doenca = d.id INNER JOIN sintomas AS s ON s.id = dxs.fk_sintoma WHERE s.name IN ('','','') )
true
5e24c1c3268b3de793c163cf11211229136d3e11
SQL
JamesCohenour/JamesCohenour.github.io
/Projects/Upload/SQL Final.sql
UTF-8
9,285
3.3125
3
[]
no_license
DROP TABLE borrower CASCADE CONSTRAINTS; CREATE TABLE borrower ( name varchar2(50) not null, address varchar2(50), major varchar2(50), department varchar2(40), job varchar2(30), BID char(9), BType varchar(8) not null, primary key (BID) ); DROP TABLE publisher CASCADE CONSTRAINTS; CREATE TABLE publisher ( n...
true
6ee17f3c417469a47158ba0c2d6e5cbf382f716b
SQL
misael1254/Primaria_boleta_calificaciones
/primaria.sql
UTF-8
74,705
2.984375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : Carolina's Project Source Server Type : MySQL Source Server Version : 50524 Source Host : localhost:3306 Source Schema : primaria Target Server Type : MySQL Target Server Version : 50524 File Encoding : 65001 ...
true
5f24e1d7bb14f53f34c19691c277e62b40ab0cd5
SQL
noname863/instagram-practice
/sql/011.sql
UTF-8
159
2.90625
3
[]
no_license
USE gram_database; SELECT DATEDIFF(CURRENT_DATE(), PHOTO_POST.CREATION_DATE) AS DAYS_FROM_FIRST_POST FROM PHOTO_POST ORDER BY PHOTO_POST.CREATION_DATE LIMIT 1;
true
3631aa6d3da21cc5dc9daf1b05aef0791bd2b7bb
SQL
kymmando/cs122-sql-couriers
/createtables.sql
UTF-8
2,576
3.40625
3
[]
no_license
Drop database IF EXIST Couriers; create database Couriers; use Couriers; CREATE TABLE customer_t (customer_id INTEGER(11) NOT NULL, customer_name VARCHAR(25) NOT NULL, customer_address VARCHAR(30), customer_No INTEGER(11), CONSTRAINT customer_pk PRIMARY KEY (customer_ID)); CREATE TABLE sender_t ( sender_id INTE...
true
04fbb3e2b865b9f1b0b0c165acdeedea05c7ed35
SQL
user50/geoportal
/src/main/resources/GeoObjectDaoImpl.getAllowedUsersByObjectId.sql
UTF-8
439
3.34375
3
[]
no_license
select u.* from geo_user u inner join geo_layer_to_user lu on lu.user_id = u.id and lu.permissions = 1 inner join geo_layer_to_object o on o.layer_id = lu.layer_id where o.object_id = :id union select u.* from geo_user u inner join geo_user_to_role ur on ur.user_id = u.id inner join geo_layer_to_role lu on lu.role_id =...
true
f66d31231d59b0bccf2837ab5ecc5d98773db168
SQL
Percona-Lab-results/Clickhouse-ColumnStore-SSB-Jul2020
/ColumnStore-queries/q1-1.sql
UTF-8
199
2.953125
3
[]
no_license
SELECT SUM(lo_extendedprice * lo_discount) AS revenue FROM lineorder, dim_date WHERE lo_orderdate = d_datekey AND d_year = 1993 AND lo_discount BETWEEN 1 AND 3 AND lo_quantity < 25;
true
b35ea6c8970b96fe66cde4af81bc619d740f1713
SQL
AlperKocaman/METU-CENG
/CENG352 - Database Management Systems /Pub-Field Database(HW2)/my_queries/task_3_6.sql
UTF-8
1,101
4.4375
4
[]
no_license
select max_author_table.year, a2.name, max_author_table.max_value as count from author a2, (select author_year_table.year as year, max(total) as max_value from (select p.year as year, count(*) as total from publication p, ...
true
d4632c88e71185e4883bf94482a60a7bd2ad3f40
SQL
dorianvieira/gestionContactJee
/script.sql
UTF-8
1,447
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Dec 09, 2018 at 09:18 PM -- Server version: 5.7.21 -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `examen2016` -- -- -------------------------...
true
255fcf82615bb524f2871f1d32e4e1e02edea5a9
SQL
wkollernhm/openup
/docs/sources/tbl_source_slovak_bratislava.sql
UTF-8
1,077
2.671875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.6 -- http://www.phpmyadmin.net -- -- Host: localhost -- Erstellungszeit: 25. Jul 2013 um 08:59 -- Server Version: 5.0.96 -- PHP-Version: 5.2.14 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40...
true
3b1547730a78b0b64d0c05f8edbfbea8f4257d11
SQL
delphiDevelopment/delphiDevelopment.github.io
/delphiSQL/createTables.sql
UTF-8
2,671
3.15625
3
[]
no_license
# noinspection SqlNoDataSourceInspectionForFile /* ********************************************************************* http://www.mysqltutorial.org ********************************************************************* Name: MySQL Sample Database for Python Link: http://www.mysqltutorial.org/ Version 1.0 *************...
true
1bf17bda3335b902f3c2f11770866c73e04ae119
SQL
latentgod/phpPractice
/security.sql
UTF-8
6,926
2.859375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.24, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: security -- ------------------------------------------------------ -- Server version 5.6.24-0ubuntu2.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARAC...
true
9108230fdbcab9bc31e249e2a3d40b66955de1d3
SQL
JiayueChen/PlantStore-with-Database
/final_1531.sql
UTF-8
2,538
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jul 30, 2019 at 05:23 PM -- Server version: 5.7.24 -- PHP Version: 7.2.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
048c015afb8bef97cfb49e988fb5a02e5dd1ec30
SQL
xujihui/IslandTrading
/服务器端技术攻关/Server_Island_v8.0/jfinal_demo.sql
UTF-8
15,724
3.265625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50506 Source Host : localhost:3306 Source Database : jfinal_demo Target Server Type : MYSQL Target Server Version : 50506 File Encoding : 65001 Date: 2016-12-01 08:41:01 */ SET FOREIGN_KEY_CHECKS...
true
52f4efb13210fe76b7e50f4849a1c681e6b8fe08
SQL
CUBRID/cubrid-testcases
/sql/_01_object/_06_index/_001_index/cases/1008.sql
UTF-8
654
3.46875
3
[ "BSD-3-Clause" ]
permissive
-- insert/update/delete/select and use "using index .." when select create class ddl_0001(col1 int, col2 string, col3 char(10), col4 varchar(10)); SELECT * FROM ddl_0001 order by 1; INSERT INTO ddl_0001 VALUES (1,'a','a','a'); INSERT INTO ddl_0001 VALUES (2,'a','a','a'); UPDATE ddl_0001 set col1=3 WHERE col1=1; ...
true
d4626d9ac6f5695d8a07f65016470ced1ca1a047
SQL
azamhizbul/shoes-admin2
/db/trigger_update_stok_from_transaksi_end_user.sql
UTF-8
214
2.796875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
CREATE TRIGGER `update_stok_by_end_user` AFTER INSERT ON `tb_transaksi_end_user_peritem` FOR EACH ROW UPDATE tb_barang SET tb_barang.stok = tb_barang.stok - NEW.total_item WHERE tb_barang.id_barang = NEW.id_barang
true
c8e4dcd61b0d0a167474057a4539cc43bffe24c1
SQL
Dong-Jun-Shin/Study_Oracle_SQL_19_09
/Oracle SQL/SCOTTUSER Query/SCOTTUSER(19.09.24).sql
UTF-8
1,731
3.90625
4
[]
no_license
--emp를 이용해서 emp01로 복사 테이블을 만들어준다. CREATE TABLE emp01 AS SELECT * FROM emp; --emp01의 모든 부서번호를 30번으로 수정한다. UPDATE emp01 SET deptno = 30; --emp01의 모든 사원의 급여를 10% 인상 UPDATE emp01 SET sal = sal*1.1; --emp01의 모든 입사입을 오늘 날짜로 바꾼다. UPDATE emp01 SET hiredate = SYSDATE; --사원 테이블을 다시 생성한다. DROP TABLE emp01; CREATE TABLE emp01 A...
true
02076569a46cf9e5b000af9aa363cd166f086afa
SQL
echoliv/kg
/other/sql/audio.sql
UTF-8
688
3.859375
4
[]
no_license
select substring(userid,-1),count(distinct(userid)),sum(eff_play_count),sum(eff_play_duration) from dal.la_normal_mid_collect_detail where dt='2019-08-07' and fo like '/电台/有声电台/推荐/%' and substring(tv,0,3)='930' group by substring(userid,-1); select count(distinct(t1.userid)),count(*) from ( select userid,albumid from ...
true
e20e3c178993a0f0f0335a4d5cb890df163f11a3
SQL
yoheia/yoheia
/oracle/tpt_scripts/xmon.sql
UTF-8
2,121
2.609375
3
[ "Apache-2.0" ]
permissive
------------------------------------------------------------------------------ -- -- Copyright 2017 Tanel Poder ( tanel@tanelpoder.com | http://tanelpoder.com ) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a c...
true
28c5da68f178681d60847cdf0d2ce9d3d7dfac0c
SQL
umisz/sip
/posyandu.sql
UTF-8
5,198
3.046875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 23 Okt 2017 pada 11.38 -- Versi Server: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
e52c1f5fa85ca83191cfa3323581f7341ea79688
SQL
Toth-Gabor/ajax-poets
/src/main/resources/init.sql
UTF-8
10,540
3.28125
3
[]
no_license
/* Database initialization script that runs on every web-application redeployment. */ DROP TABLE IF EXISTS poems; DROP TABLE IF EXISTS users; CREATE TABLE users ( id SERIAL PRIMARY KEY, name TEXT NOT NULL, email TEXT UNIQUE NOT NULL, password TEXT NOT NULL, CONSTRAINT...
true
5bf464163888a63160a92c992b2285651d90cee8
SQL
pablo17sanchez/SQLSERVER2008R2
/MIS QUERYS/recibo vendedor.sql
UTF-8
1,839
3.1875
3
[]
no_license
SELECT RMDTYPAL FROM RM20101 R INNER JOIN RM00101 R1 ON R.CUSTNMBR=R1.CUSTNMBR WHERE CUSTCLAS='VENDEDOR' GROUP BY RMDTYPAL SELECT * FROM GL00100 WHERE ACTINDX=785 SELECT ACTINDX,ACTDESCR FROM GPHN.dbo.GL00100 WHERE ACTDESCR LIKE '%Cobrar%' OR ACTDESCR LIKE '%Efec%' ORDER BY ACTDESCR SELECT * FROM RM10101 WHERE DOCNUM...
true
ba6a250e2b257be83fc13a7c0d467a825cd992ba
SQL
linhchi33a/NgocLinhChiProject
/CMSC 321 Database/Chi_Nguyen_MIDTERM_SQL.sql
UTF-8
3,515
3
3
[]
no_license
CREATE TABLE MAP( id_map INT(2) NOT NULL, name_map VARCHAR(255), popularity_map VARCHAR(20), PRIMARY KEY(id_map) ); CREATE TABLE MODES( id_mode INT(2) NOT NULL, name_mode VARCHAR(255), populartity_mode VARCHAR(20), availible BOOLEAN, map_id INT(2) NOT NULL, PRIMARY KEY(id_mode), F...
true
c9f6271297d2609614ac885af4b3ad572926498c
SQL
NCTraCSIDSci/camp-fhir
/CAMP-FHIR/src/main/resources/SQL/ResourceSQL/OperationOutcome.sql
UTF-8
1,100
2.515625
3
[]
no_license
drop table if exists `OperationOutcome`; CREATE TABLE `OperationOutcome` ( id varchar(64), OprtnOutcome_Issue_Cd TEXT COMMENT 'OperationOutcome.Issue.Code', OprtnOutcome_Issue_Dtls_Cdg_Cd TEXT COMMENT 'OperationOutcome.Issue.Details.Coding.Code', OprtnOutcome_Issue_Dtls_Cdg_Dsply TEXT COMMENT 'OperationOutcome.Issue.D...
true
14d1e21ec4bc43257e71af56ae1a86b8193e46d8
SQL
Tecdiary/laravel-sql-dump
/tests/database/formatted.sql
UTF-8
446
2.921875
3
[ "MIT" ]
permissive
-- Generating SQL dump file from Laravel migrations -- -- migration: create_users_table -- create table "users" ( "id" integer not null primary key autoincrement, "name" varchar not null, "email" varchar not null, "password" varchar not null ); create unique index "users_email_unique" on "users" ("email"); --...
true
95bfb6755076a376f71976e120e563f120057374
SQL
fwi/fwutil-jdbc
/src/test/resources/db-test-hsql-struct.sql
UTF-8
548
3.1875
3
[ "MIT" ]
permissive
-- HSQL table creation -- This file must be UTF-8 encoded. -- Format is explained in nl.fw.util.jdbc.NamedQuery.loadQueries. -- The brackets below mark the beginning of a (new) query --[] -- since no name is given, query will be named "1" create table users ( id bigint generated by default as identity (start ...
true
0a94c26d69935a588c4226057817a31ff182ea50
SQL
ilitvak/le-beurre
/schema.sql
UTF-8
455
3.125
3
[]
no_license
DROP DATABASE IF EXISTS users; CREATE DATABASE users; USE users; CREATE TABLE userLog ( id int NOT NULL AUTO_INCREMENT, username varchar(50), password varchar(50), PRIMARY KEY (ID) ); CREATE TABLE meals ( food_item varchar(250), username varchar(50), userID int NOT NULL, Primary KEY (userID) ) /* ...
true
9a1a44c9aa3cbb5af3e4ae7ec702519128f5ab82
SQL
chaneychan/ums
/src/sql/ums.sql
UTF-8
922
3.078125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : ums Source Server Type : MySQL Source Server Version : 50718 Source Host : localhost Source Database : ums Target Server Type : MySQL Target Server Version : 50718 File Encoding : utf-8 Date: 08/24/2017 15:38:18 PM */ S...
true
57c28b45c491ab2ee96aa6f89516c2a4cf77d3dd
SQL
catalinajalba/design4green_60
/sql/iris_families_france_precision.sql
UTF-8
7,010
2.75
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 11.9 (Debian 11.9-0+deb10u1) -- Dumped by pg_dump version 11.9 -- Started on 2020-11-06 10:51:03 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_string...
true
dc1fde3de1115d0a13ef2b0a970a3945288b1619
SQL
vchiranjeevi/SpringBootTraining
/src/main/resources/schema.sql
UTF-8
219
2.53125
3
[]
no_license
DROP TABLE IF EXISTS PRODUCT; CREATE TABLE PRODUCT( id INT AUTO_INCREMENT PRIMARY KEY, version INT NOT NULL, name VARCHAR(250) NOT NULL, productId VARCHAR(250) DEFAULT NULL, price DECIMAL(19,2) NOT NULL );
true
70e0035eccfbf734deea5357bb2bd654af5a3029
SQL
potatoHVAC/leetcode_challenges
/sql/196.1_delete_duplicate_emails.sql
UTF-8
253
2.921875
3
[]
no_license
# Delete Duplicate Emails # https://leetcode.com/problems/delete-duplicate-emails/ # Completed 5/1/19 DELETE FROM Person WHERE id NOT IN ( SELECT id FROM ( SELECT MIN(id) AS id FROM Person GROUP BY email ) as p1 );
true
4e3389ab874ad37aaf7fe6cf698f525e834a0505
SQL
htakemoto/nestjs-sample
/db/init.sql
UTF-8
643
3.15625
3
[]
no_license
-- create schema CREATE SCHEMA sample; -- create table CREATE TABLE sample.user ( id TEXT NOT NULL, first_name TEXT NOT NULL, last_name TEXT NOT NULL, is_active BOOLEAN NOT NULL, CONSTRAINT user_pkey PRIMARY KEY (id) ); -- insert sample data INSERT INTO sample.user ("id", "first_name", "last_name", "is_acti...
true
3bb126e9683cbe923739b05d4ebec9abc6da0ab0
SQL
Velocima/habit-tracker
/db/setup/2_seeds.sql
UTF-8
780
2.8125
3
[]
no_license
INSERT INTO users (email, name, password_digest) VALUES ('polina@polina.com', 'Polina', 'a1b2c3d4e5f6jkl'), ('ridwan@ridwan.co.uk', 'Ridwan', 'f1g2h3j4k5lavsb'), ('max@max.co.uk', 'Max', '1w2e3r4t5y6u7i'); INSERT INTO habits (email, habit_name, habit_description, habit_frequency, frequency_target) VALUE...
true
4d698cb306c8044ae0d6223fd44d6567e33af6a8
SQL
tostasmistas/SIBD
/part2/final files/overlap_periods.sql
UTF-8
10,035
3.671875
4
[]
no_license
drop trigger if exists check_valid_wears_u; drop trigger if exists check_valid_wears_i; drop trigger if exists check_valid_connects_u; drop trigger if exists check_valid_connects_i; drop trigger if exists check_valid_period_i; delimiter $$ create trigger check_valid_period_i before insert on Period for each row be...
true