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
511a047ad8fda182c4dc0812fbf3a26df690c552
SQL
YujunWu-King/university
/src/main/resources/sql/TZEmailSmsSendBundle/CreateTSI05.sql
UTF-8
219
2.953125
3
[]
no_license
select a.TZ_DYNAMIC_FLAG , a.TZ_SMS_SERV_ID,a.TZ_SMS_CONTENT, a.TZ_YMB_ID from PS_TZ_SMSTMPL_TBL a, PS_TZ_TMP_DEFN_TBL b where a.TZ_YMB_ID=b.TZ_YMB_ID and a.TZ_JG_ID=? and a.TZ_TMPL_ID=? AND a.TZ_KEY_ID = ? limit 0,1
true
3b036cee0c690610c20f79fbaa057ce295d6497d
SQL
34744/Simaje
/evolappliStructure.sql
UTF-8
18,536
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.11.0 -- http://www.phpmyadmin.net -- -- Serveur: localhost -- Généré le : Mar 07 Janvier 2014 à 17:06 -- Version du serveur: 4.1.22 -- Version de PHP: 5.2.3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Base de données: `evolappli` -- -- ---------------------------------------------...
true
cf7c0266d4a2ae645842b7dbd008c2669562f9ec
SQL
eversonsba/projetoLemafJava
/gerenciador_usuarios.sql
UTF-8
3,218
3.453125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Tempo de geração: 19-Mar-2020 às 14:00 -- Versão do servidor: 10.4.11-MariaDB -- versão do PHP: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
true
d96b1096a024a4b335087ab657d0e583d30ac625
SQL
anunia/Patient_Database
/Project_Streams_CSV_Orders-master/Project_Streams_CSV_Orders-master/target/classes/schemaa.sql
UTF-8
1,748
3.40625
3
[]
no_license
drop table patients IF EXISTS; create table patients( patientId integer primary key, firstName varchar(20), lastName varchar(20), city varchar(20), createdAt varchar(20) ) as select patientId, firstName, lastName, city, createdAt from CSVREAD( 'C:/Users/Aneta/Desktop/Załącznik_zadanie_JB/csv/patients.csv', nu...
true
9e77c73809801e81920b82647bacda1ab56ff88c
SQL
Veereshsg/VTU-CSE-LAB-SOLUTIONS
/5th SEM/DBMS LABORATORY - XXCSL58/1. LIBRARY DATABASE/1. CREATION OF TABLES/7. BOOKLENDING.sql
UTF-8
253
2.609375
3
[ "MIT" ]
permissive
CREATE TABLE BOOKLENDING (DATEOUT DATE, DUEDATE DATE, BID REFERENCES BOOK(BID) ON DELETE CASCADE, BRANCHID REFERENCES LIBRARY_BRANCH(BRANCHID) ON DELETE CASCADE, CARDNO REFERENCES CARD(CARDNO) ON DELETE CASCADE, PRIMARY KEY (BID,BRANCHID,CARDNO));
true
ffa7d3283eec034a599c053df6f00ebbd1a96746
SQL
kadamjayesh719/accionLabsAssignment
/firstRun.sql
UTF-8
419
2.765625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `jayesh`; CREATE TABLE IF NOT EXISTS `jayesh`.`user_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, `date_of_birth` date NOT NULL, `role` varchar(45) NOT NULL, `is_active` tinyint(1) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `id_UNIQUE` (`id`), UNIQUE...
true
e229728aa77cc900f2861fc80cfe1ea3902065c1
SQL
WillZWL/project
/database/change script/valuebasket.com/20120716.sql
UTF-8
1,313
2.90625
3
[]
no_license
CREATE TABLE `ebay_auction` ( `id` bigint(20) unsigned NOT NULL, `sku` varchar(15) NOT NULL, `platform_id` varchar(7) NOT NULL, `price` double(15,2) unsigned DEFAULT '0.00', `title` varchar(255) DEFAULT NULL, `note` varchar(256) DEFAULT NULL COMMENT 'Amazon: Condition note for ixten Product Feed', ...
true
9b697c064fb2c00e3dd9317e22c5cbf5dc0a1f3a
SQL
Sergbch/workshop3
/km-62/Ковальчук/sql/sqlalchemy_oracle_connection.sql
UTF-8
473
2.578125
3
[]
no_license
import cx_Oracle from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker oracle_connection_string = 'oracle+cx_oracle://{username}:{password}@{hostname}:{port}/{database}' engine = create_engine( oracle_connection_string.format( username="username", password="password...
true
2ae411d283c8b3a8691c8ce0ba887695e780f587
SQL
aamirsy/SQLScripts
/Mem_usage_By_object.sql
UTF-8
958
4.53125
5
[]
no_license
SELECT obj.name [Object Name], o.type_desc [Object Type], i.name [Index Name], i.type_desc [Index Type], COUNT(*) AS [Cached Pages Count], COUNT(*)/128 AS [Cached Pages In MB] FROM sys.dm_os_buffer_descriptors AS bd INNER JOIN ( SELECT object_name(object_id) AS name, object_id ,index_id ,allocation_unit_id FRO...
true
04ebe6769ddd10d4454c566228b738972af42eac
SQL
szhxjt1334/WoWCircle434
/sql/updates/circle_updates/world/2117_misc.sql
UTF-8
2,038
2.640625
3
[]
no_license
DELETE FROM `conditions` WHERE `SourceEntry` IN (83603, 83611, 84092, 83601, 83609); INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `Comment`) VALUES (13, 1, 83603, 0, 31, 0, 3, 44600, ...
true
9d6e4bda8d65a7df98e7764058ee1c3fee4b1c73
SQL
Alrash/BookTickets
/script/create_and_insert_data.sql
UTF-8
4,637
3.734375
4
[]
no_license
create database `BookTickets`; use `BookTickets`; create table `Area` ( AreaId char(3) not null primary key, AreaName varchar(20) not null ); create table Info ( Id char(14) not null primary key, Name varchar(20) not null, Sex bit not null, Proof varchar(20) not null, Which bit no...
true
f5e15f7185ada7aea7ad42fa2631f60c320fa29f
SQL
worgelabolg/notepad
/sublime 文件/datagurad检查脚本.sql
UTF-8
661
2.5625
3
[]
no_license
datagurad检查脚本 1.检查主备库gap select status,gap_status from v$archive_dest_status; 2.检查主库进程 select process,status from v$managed_standby where process like 'LNS'; 3.检查备库进程 select process,status from v$managed_standby where process in ('RFS','MRP0'); select SEQUENCE#,FIRST_TIME,NEXT_TIME ,APPLIED from v$archived_log...
true
5d692b28f5667a6cd869204cc6f3b200a95657db
SQL
klf-kritth/simple-app-answer
/register.sql
UTF-8
3,990
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Nov 07, 2019 at 12:10 AM -- Server version: 5.7.19 -- 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
b7a284a4fa478040c06179de27b6e50cfc9cd250
SQL
superbe/GB_mySQL
/topic9/transaction.sql
UTF-8
1,627
4.25
4
[ "MIT" ]
permissive
-- Практическое задание по теме “Транзакции, переменные, представления” -- Задание 1. -- В базе данных shop и sample присутствуют одни и те же таблицы, -- учебной базы данных. Переместите запись id = 1 из таблицы shop.users -- в таблицу sample.users. Используйте транзакции. -- Запустили транзакцию. START TRANSACTION...
true
3c0fe83957174025d02227f04ad303bb4bc434a9
SQL
TeamSportsSocial/Scripts
/SportSocial/Procedure/updatePassword.sql
UTF-8
489
2.875
3
[]
no_license
Delimiter ;; Drop procedure if exists updatePassword ;; CREATE DEFINER=`root`@`localhost` PROCEDURE `updatePassword`(IN `IUserId` INT, IN `oldPassword` VARCHAR(5000), IN `newPassword` VARCHAR(5000)) NO SQL Begin If exists(Select 1 from User_tbl where User_id=IUserId and password=oldPassword) then Begin Update User_...
true
87da36cb1a492ce85eb4fba182d468570a018ff6
SQL
PNNL-Comp-Mass-Spec/DBSchema_PgSQL_DMS
/dms/v_lc_cart_config_history_list_report.sql
UTF-8
1,392
3.671875
4
[ "Apache-2.0" ]
permissive
-- -- Name: v_lc_cart_config_history_list_report; Type: VIEW; Schema: public; Owner: d3l243 -- CREATE VIEW public.v_lc_cart_config_history_list_report AS SELECT tih.entry_id AS id, tih.cart, tih.date_of_change, tih.description, CASE WHEN (char_length((tih.note)::text) < 150) ...
true
1e6ee73796fca0b887a909057039b22907abf208
SQL
WentaoLuk/database-assignment
/level1/lab10.sql
UTF-8
1,009
4.4375
4
[]
no_license
SELECT ename, deptno FROM emp WHERE deptno = (SELECT deptno FROM emp WHERE ename='ALLEN'); --QUERY#1: List employees whose salary is less than the salary of ALLEN. SELECT ename, sal FROM emp WHERE sal <= (SELECT sal FROM emp WHERE ename = 'ALLEN'); --Query#2: List employees who work at the same job as SMITH. SELECT ...
true
0cd486d4ba4e4ab95e0f79cafa40e7dd848968f7
SQL
GSilva-N/Repositorio_MySQL
/Lista03/Ex_06.sql
UTF-8
797
3.859375
4
[]
no_license
create database db_cursoDaMinhaVida; use db_cursoDaMinhaVida; create table tb_cursos( id_curso int not null auto_increment, nome varchar(45), decricao varchar(45), carga int, preco double(5,2), primary key(id_curso) ); create table tb_categoria( id_categoria int not null auto_increment, tipo varchar(45), presencial b...
true
004279a034c97d9d3cca1877bbd06b44594bb30b
SQL
altamira/visualstudio
/Sistema de Informação Altamira/EGISADMIN.Database/dbo/Stored Procedures/sp_AlteraDBServer.sql
UTF-8
634
3.15625
3
[]
no_license
 CREATE procedure sp_AlteraDBServer --dados depois da execuçao (novos) @nm_BancoDados char (20), @nm_Server char (20), @cd_usuario int, @dt_usuario datetime, -- dados antes @nm_BancoDados_old char (20) AS BEGIN --inicia a transaçao BEGIN TRANSACTION --gera código e executa travamento UPDATE DBServer SET ...
true
178f65efcfb46b910eed49f4d3323de4436a646e
SQL
HsinTun/php
/address_book.sql
UTF-8
1,713
2.640625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- 主機: 127.0.0.1 -- 產生時間: 2021-04-12 09:10:29 -- 伺服器版本: 10.4.18-MariaDB -- PHP 版本: 7.3.27 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
01a5b23b8f97be51d9cf266d7579c55d39f6fa86
SQL
RodoMark/light-bnb
/1_queries/4_most_visited_cities.sql
UTF-8
183
3.671875
4
[]
no_license
GET city, count(reservations.id) as total_reservations FROM properties JOIN reservations ON reservation.id = reservation_id GROUP BY properties.city ORDER BY total_reservations DESC ;
true
60f5f28ba6cc1db465552e9b0b17ed4b7295a61d
SQL
Darktroy/wini
/q_answers.sql
UTF-8
2,078
3.109375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 30, 2018 at 10:21 AM -- Server version: 10.1.28-MariaDB -- PHP Version: 7.1.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
ad91d759f864d2ae73457f6dfe972aab7e533880
SQL
kronographTL/portfolio-manager
/src/main/resources/data.sql
UTF-8
1,411
2.890625
3
[]
no_license
drop table if exists ticker; create table ticker (ticker_id varchar(255) primary key, market_value double, share_name varchar(255), ticker_code varchar(255), expected_return double, annualized_standard_deviation double ); insert into ticker (ticker_id, ticker_code, share_name, market_Value,expecte...
true
112924be384ed12203eb01e6c03a06f5e0832087
SQL
lukaz-sampaio/casa-codigo
/src/main/resources/db/migration/V1.004__create_table_livro.sql
UTF-8
652
3.171875
3
[]
no_license
CREATE TABLE pgd.tb_livro ( id BIGSERIAL NOT NULL, data_publicacao DATE, isbn VARCHAR(255), numero_paginas INT4 NOT NULL CHECK (numero_paginas>=100), preco NUMERIC(19, 2) NOT NULL CHECK (preco>=20), resumo VARCHAR(500), sumario VARCHAR(255), titulo VARCHAR(255), autor_id int8 NOT NUL...
true
bb6a12decfa63a48bfc9e9c4c652a04a8ae67a19
SQL
exteso/bruno
/src/main/resources/bruno/db/MYSQL/V1_1.0.0__INITIAL_DB.sql
UTF-8
3,251
3.5
4
[]
no_license
create table b_user( id integer auto_increment primary key not null, provider varchar(12) not null, username varchar(128) not null, first_name varchar(255), last_name varchar(255), email_address varchar(255), user_type varchar(64), -- enum: CUSTOMER/SERVICE_PROVIDER/ADMIN user_request...
true
7e48986b27d4dc017ec3f891aa7680902b5c30a1
SQL
muhammad-abdulqayyum/MobilePhoneDistributorDB
/Queries for MOCK EXAM.sql
UTF-8
2,847
4.75
5
[]
no_license
/*Write a Query to display the distributor name, mobile number and email of distributors selling model 'Nokia 1100'. Display the unique records sorted in ascending order based on the distributor name. */ SELECT DISTINCT (D.Distributor_Name), D.Mobile, D.Email FROM Distributor D JOIN Mobile_Master MM ON (D.Distributo...
true
2b6760160b88b00ba0de4b1c9c096a52656ad4e6
SQL
pdeemea/CSO-Toolkit
/stresstest/cpu/cpu_stresstest.sql
UTF-8
695
3
3
[]
no_license
create or replace function generate_text(tlen int) returns varchar as $BODY$ import random random.seed() symbols = list('abcdefghijklmnopqrstuvwxyz 0123456789') return ''.join([ random.choice(symbols) for _ in range(tlen)]) $BODY$ language plpythonu volatile; --set enforce_virtual_segment_number = 16; create table tem...
true
4b32b196e0a5883f160f0cc38641c1a05a81b1c8
SQL
rezihardi/testcode
/sarana.sql
UTF-8
1,472
2.703125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.2.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 29 Jun 2022 pada 08.13 -- Versi server: 10.4.24-MariaDB -- Versi PHP: 7.4.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
c63dff371b1ef45c767cb7c46725650638790e5f
SQL
seba365/DelilahResto
/scriptsDB/delilarestoDB.sql
UTF-8
2,538
3.75
4
[]
no_license
CREATE DATABASE delilahresto; USE delilahresto; CREATE TABLE users ( username varchar(100) NOT NULL, fullname varchar(100) NOT NULL, email varchar(255) NOT NULL, phone varchar(20) NOT NULL, password varchar(255) NOT NULL, address varchar(255) NOT NULL, role enum('admin','basico') NOT NULL, PRIMARY KEY (userna...
true
a7676d814f9af6f96f0076b2bbe3e545c628b6d8
SQL
dileofrancoj/web-avanzado-tm-2c-2020
/backend/tablas_proyecto/inscripciones_cursadas.sql
UTF-8
2,503
2.96875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.21, for macos10.15 (x86_64) -- -- Host: localhost Database: inscripciones -- ------------------------------------------------------ -- Server version 8.0.21 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESU...
true
099f311fba440c218534f0fe7b43f0b82050155d
SQL
wqxdoc/netty-combine
/netty-chat/SBToNettyChat/sql/nettychat.sql
UTF-8
3,766
2.84375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : mypc Source Server Version : 50717 Source Host : localhost:3306 Source Database : nettychat Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2018-08-23 10:32:48 */ SET FOREIGN_KEY_CHECKS=0; -- ----...
true
eb74842f93a6c170f42f760d6945d40881ac9f3c
SQL
lokbiradariprakalp/lokbiradari-config
/openmrs/apps/reports/customsql/villagewise_patient_count.sql
UTF-8
311
3.515625
4
[]
no_license
select county_district as District, address3 as Blocks, city_village as Village, count(city_village) as Patient_Count from person_address where date(date_created) BETWEEN '#startDate#' and '#endDate#' group by city_village having count(city_village) > 0 order by county_district,address3,city_village;
true
967465d155098bbd18bdb4638d5c7c148ea2bbea
SQL
Mdirhalli/Moha
/SQL Functions.SQL
UTF-8
452
2.6875
3
[]
no_license
/* https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-help-transact-sql?view=sql-server-2017 */ -- Reports information about a database object (any object listed in the sys.sysobjects compatibility view), -- a user-defined data type, or a data type. sp_help FD__DIAGNOSIS_DETAIL -...
true
b0cf889aa9a75398fb8c8be7262a693090101fcd
SQL
shansen5/CommonMeals
/db/oc_orders.sql
UTF-8
11,369
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 02, 2016 at 11:31 AM -- Server version: 5.7.16-0ubuntu0.16.04.1-log -- PHP Version: 7.0.8-0ubuntu0.16.04.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
582bc6f794bc980532737ee688ba9b8b6b62bc65
SQL
srwagsta/INFOST_410_scripts
/MySql_assignments/script_files/sql_scripts/Final_Exam_Script.sql
UTF-8
13,357
4.53125
5
[ "Apache-2.0" ]
permissive
USE wagstaff_INFOST_410; /** List the book code and book title for each book. **/ SELECT BookCode, Title FROM Book; /** List complete Publisher table **/ SELECT * FROM Publisher; /** List the name for each publisher in Boston **/ SELECT PublisherName FROM Publisher WHERE City LIKE '%Boston%'; /** List the name of e...
true
2287bed4409fee993cb810f06f31fd985cc1c260
SQL
Abdelhamid-khamis/Data-Analysis-with-Python-Certification
/course_notes.sql
UTF-8
6,969
4.28125
4
[ "MIT" ]
permissive
/* Module 1 - Baisc SQL */ /* Best practice: */ SELECT account_id FROM orders; /* Limit in MS SQL Server: fetch next 15 rows only; */ SELECT occurred_at, account_id, channel FROM web_events limit 15; /* return the 10 earliest orders in t...
true
3157cdaba222be1233578247b324e242edc79422
SQL
nayembabu/spin2Win_Dynamic
/db/spin_data.sql
UTF-8
1,806
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jan 21, 2020 at 03:02 PM -- Server version: 5.7.24 -- PHP Version: 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
a9c6aaa83f71d3664ff23e4b1ffb35ceed48e493
SQL
j-smith3/SQL_Server_Coursework
/SQL Server Coursework/Lab6 - Insert, Update, Deletes/Smith_Justin_lab6_part_2.sql
UTF-8
652
3.734375
4
[]
no_license
--Exercise 1 Select ProductID, 2 AS CategoryID, ProductCode, ProductName, Description, ListPrice, DiscountPercent, DateAdded Into ProductsCopy From Products Where CategoryID<>3; --Exercise 2 Merge Into ProductsCopy AS pCopy Using Products AS prod On prod.ProductID=pCopy.ProductID When Matched ...
true
65ce3c223532ad591bb86e82eba64fdc4b54ab4f
SQL
isabellaoceano/padme-fw
/PadmeMCProd/db/Create_PadmeMCDB.sql
UTF-8
6,462
3.484375
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- 07/14/17 15:53:07 -- 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_MODE='TRADITION...
true
e2860bf4512475634bb13acfb0e12eb10efaf27a
SQL
fleetmack/mines
/me/Writers/erica/20100526_john_wanner_memorial_donors.sql
UTF-8
1,602
3.0625
3
[]
no_license
/*** John Wanner Memorial Gifts ***/ select distinct(id_number) from a_dw_pyramid where receipt IN (select gift_receipt_number from gift where gift_receipt_number IN (select receipt from a_dw_pyramid where flag_memorial = 1) and gift_donor_id = '0000003335') and id_number NOT IN ('0000043266', '0000009136', '000003...
true
88f4b0586f6698cd247a04f7d4f8d05d084c0638
SQL
rahimahmedov/PLSQL_Book_CodeSamples
/ch09/kod_9_8.sql
UTF-8
476
2.875
3
[]
no_license
set serverout on echo on DECLARE CURSOR cur_emp_name IS SELECT ename FROM scott.emp WHERE empno > 7369 and ROWNUM < 6; TYPE names_type IS VARRAY(5) OF scott.emp.ename%TYPE; v_name names_type := names_type(); v_counter NUMBER := 0; BEGIN v_name.extend(5); FOR i IN cur_emp_name LO...
true
7849bc02310df7b5be0989a7ee9b2cdde65d62fc
SQL
kchhan/cs50x
/pset7/movies/10.sql
UTF-8
145
3.109375
3
[]
no_license
SELECT name FROM people JOIN directors, ratings ON people.id = directors.person_id AND ratings.movie_id = directors.movie_id WHERE rating >= 9.0;
true
d8b9fa95525e7d69d650b9852b0d674665d5c249
SQL
haneda3/teng-view-test
/init.sql
UTF-8
723
4.03125
4
[]
no_license
drop database view_test; create database view_test; use view_test; CREATE TABLE `blog` ( `id` INT(10) unsigned NOT NULL AUTO_INCREMENT, `name` VARCHAR(16), PRIMARY KEY(`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `article` ( `id` INT(10) unsigned NOT NULL AUTO_INCREMENT, `blog_id` INT(10) unsign...
true
0846131bdcc7da2f240967bedbc67d75db0bf9b5
SQL
jtcarter2314/Pewlett-Hackard-Analysis
/Queries/Employee_Database_Challenge.sql
UTF-8
5,521
4.25
4
[]
no_license
--Number of Employee titles Retiring SELECT ri.emp_no, ri.first_name, ri.last_name, ti.title, ti.from_date, s.salary INTO titles_retiring FROM retirement_info as ri RIGHT JOIN titles AS ti ON (ri.emp_no = ti.emp_no) INNER JOIN salaries AS s ON (ri.emp_no = s.emp_no); SELECT * FROM titles_retiring; --The Most Unique ...
true
af4cc797eb038d5a963b268f8c55e8f0c9f46ed2
SQL
eisnerh/PCT_315
/BD Nueva/login.sql
UTF-8
713
3.203125
3
[ "Apache-2.0" ]
permissive
SELECT `usuario`.`usuario`, `usuario`.`password`, `usuario`.`colaborador_empleado_id` AS `empleado_id`, `persona`.`nombre` AS `nombre`, `puesto`.`puesto_id` AS `acceso`, `puesto`.`descripcion_puesto` AS `tipo_acceso` FROM `pct3`.`usuario` AS `usuario`, `pct3`.`colaborador` AS `colaborad...
true
12e9c03d658160ddd0d0d0bc328e73c5e4cc8ad0
SQL
diligejy/SQL
/DA_SQL/source_code/ch3/7_5_integration_orderby.sql
UTF-8
859
3.515625
4
[]
no_license
SELECT product_id , score -- 점수 순서로 유일한 순위를 붙임 , ROW_NUMBER() OVER(ORDER BY score DESC) AS ROW -- 순위 상위부터의 누계 점수 계산 , sum(score) over(ORDER BY score DESC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT row) AS cum_score -- 현재 행과 앞 뒤의 행이 가진 값을 기반으로 평균 점수 계산 , AVG(score) over(ORDER BY score DESC ...
true
ebe96631d4855e391cf8510cd07260b250b1408f
SQL
rihtak/dbbackup
/mkce_campus.sql
UTF-8
5,747
2.625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50524 Source Host : localhost:3306 Source Database : mkce_campus Target Server Type : MYSQL Target Server Version : 50524 File Encoding : 65001 Date: 2013-10-21 21:37:16 */ SET FOREIGN_KEY_CHECKS...
true
1a1088201e6e51bcddaa13467a8b8f9aee4dd696
SQL
shubhangis91/SportScout
/sportsscout (8).sql
UTF-8
4,671
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Nov 23, 2019 at 08:08 PM -- Server version: 5.7.24 -- PHP Version: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
83fb99c3d3753c4099835c9ba02af72d647a5cd7
SQL
errorcodexero/Xeroscout
/Database/sproc.sql
UTF-8
10,245
3.546875
4
[]
no_license
-- DROP PROCEDURE `scouting`.`insert_log`; DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `insert_log`(IN p_message varchar(1000)) BEGIN insert into logging (short_msg) values (p_message); END$$ DELIMITER ; -- DROP FUNCTION `scouting`.`get_tag`; DELIMITER $$ CREATE FUNCTION `get_tag`(i integer, tag varc...
true
28de27aafbf9a806a52391792b5a5069a62637e4
SQL
egalli64/oved210
/Scripts/Marina/Script.sql
UTF-8
3,220
4.0625
4
[]
no_license
SELECT * FROM COUNTRIES; --select country_id, country_name --from countries --select first_name, last_name --from employees; --select country_id, country_name --from countries, regions; -- select a single row select * from EMPLOYEES where EMPLOYEE_ID = 105; select * from EMPLOYEES where EMPLOYEE_I...
true
b22d391ff5e57dc8f6cd00086e91cc6d88bd85fb
SQL
codeman98/EyeTestProject
/back_end/数据库表.sql
UTF-8
2,673
3.609375
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- 主机: 127.0.0.1 -- 生成日期: 2020-02-12 04:49:13 -- 服务器版本: 10.1.37-MariaDB -- PHP 版本: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE...
true
6c4302acc6518b2d29035bd88e70424f84375ae5
SQL
mundodron/arduino-bot-aurelio
/Querys/~ebB359.sql
UTF-8
407
3.125
3
[]
no_license
select B.ACCOUNT_NO, B.BILL_REF_NO, B.CLOSED_DATE CLOSED_DATE_C, D.CLOSED_DATE CLOSED_DATE_D, B.TOTAL_DUE from cmf_balance_detail d, cmf_balance b where D.BILL_REF_NO = B.BILL_REF_NO and D.ACCOUNT_NO = B.ACCOUNT_NO and D.CLOSED_DATE is not null and B.CLOSED_DATE is null ...
true
2874479bbeafc981d55d3c1b839f99d33ba0058d
SQL
jzfdoud/sql-ta
/SQL-practice-day2b.sql
UTF-8
262
3.359375
3
[]
no_license
select c.Subject, c.Section, concat(i.Lastname,', ', i.firstname) 'Instructor', i.YearsExperience, i.IsTenured from Class c join Instructor i on i.Id=c.InstructorId --where i.YearsExperience in (10,21) where i.YearsExperience > 9 order by i.Lastname , c.Subject
true
f0798e995aa61a4e54cdcc8f2ea0e96c5f747984
SQL
yotobeZ/eclipse
/HaveFun/mysql-master/mysql-master/SQL编辑器(171031).sql
UTF-8
7,643
2.703125
3
[]
no_license
1. insert into student(Sno,sname, Sbirthday, Sclass ) values('011110101','章海潮','1982.02.07','信管系 0101'); insert into student(Sno,sname, Sbirthday, Sclass ) values('011111103','王天力', '1982.03.04', '电商系 0101' ); insert into student(Sno,sname, Sbirthday, Sclass ) values('011111204',' 董丞悟 ','1982.06.06',' 电商系 0102' ); ...
true
253ae341ff8d4508eccdcb4bb3af1ca4a694b686
SQL
prabhakar267/youtube
/stream009/db.sql
UTF-8
759
3.328125
3
[]
no_license
create table users ( user_id int unsigned not null auto_increment, name varchar(128) not null, primary key (user_id) )engine=innodb default charset utf8 collate utf8_unicode_ci; create table lists ( list_id int unsigned not null auto_increment, user_id int unsigned not null, name varchar(128) n...
true
0830eeff462d20b58ee2ec633c9f9e353b3809cd
SQL
ArturoElosu/Cursos
/DB/Clase 3/Funciones de agregado.sql
UTF-8
1,488
3.640625
4
[]
no_license
select sum(monto) Total from facturas; select count(*) Cantidad from facturas; select max(monto) Maximo from facturas; select min(monto) Minimo from facturas; select avg(monto) Promedio from facturas; select sum(monto) Total, count(*) Cantidad, max(monto) Maximo, min(monto) Minimo, avg(monto)...
true
1b235dc93a5ecafa4eeae32c104f7ca770ce450c
SQL
jackerekson/swl-2-2
/create-view.sql
UTF-8
297
2.640625
3
[]
no_license
-- CREATE VIEW rock AS -- SELECT name FROM track -- WHERE genre_id IN ( -- SELECT genre_id FROM genre -- WHERE name = 'Rock' -- ) -- CREATE VIEW classical_count AS -- SELECT COUNT(name) FROM track -- WHERE genre_id IN ( -- SELECT genre_id FROM genre -- WHERE name = 'Classical' -- )
true
4b773e60adde27aaa5277256796977c3fbda4c2c
SQL
RobertWSmith/TD_SQL
/Base Queries/gdyr_vws.open_order - order line summary.sql
UTF-8
2,086
3.515625
4
[]
no_license
SELECT opn.order_fiscal_yr, opn.order_id, opn.order_line_nbr, cal.day_date AS bus_dt, opn.intra_cmpny_flg, opn.credit_hold_flg, opn.sls_qty_unit_meas_id AS qty_uom, SUM(CASE WHEN opn.open_order_status_cd = 'C' THEN opn.open_order_qty ELSE 0 END) AS open_cnfrm_qty, SUM(CASE WHEN opn.o...
true
f46cb7239ec03ac249cf28b47fe294320129f0cb
SQL
sistemasfce/investigaciones
/metadatos/componentes/toba_datos_tabla/dump_280000873.sql
UTF-8
16,629
2.828125
3
[]
no_license
------------------------------------------------------------ --[280000873]-- DT - proyectos_inv ------------------------------------------------------------ ------------------------------------------------------------ -- apex_objeto ------------------------------------------------------------ --- INICIO Grupo de de...
true
024d97418b87adb4f96861a0895badfe7fbd9cb2
SQL
zydplatform/IICS
/db/andrew/patch-013.sql
UTF-8
806
3.21875
3
[]
no_license
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Author: user * Created: Jun 27, 2018 */ CREATE OR REPLACE VIEW scheduleplan.batchstaffschedules AS SELECT srv.serviceid, sr...
true
3a86a70956c377a362c063a33d875ba878060bf6
SQL
PomCompot/runaway
/src/main/resources/META-INF/db.changelog.sql
UTF-8
4,851
3.65625
4
[]
no_license
--liquibase formatted sql --changeset PomCompot:1 CREATE TABLE IF NOT EXISTS `Gender` ( `idGender` CHAR NOT NULL , PRIMARY KEY (`idGender`) ); INSERT INTO `Gender` (`idGender`) VALUES ('M'); INSERT INTO `Gender` (`idGender`) VALUES ('F'); CREATE TABLE IF NOT EXISTS `City` ( `idCity` INT NOT NULL...
true
38762a34c4aad5f2e0cf14dde53e52e1078c81e3
SQL
MezinEA/BaseOfDate
/HW_04/trigg_new_manager.sql
UTF-8
503
3.484375
3
[]
no_license
use employees; DROP TRIGGER IF EXISTS trigg_new_manager; INSERT INTO employees (emp_no, birth_date, first_name, last_name, gender, hire_date) values ('1000000004','1954-05-01', 'BOB', 'MARLEY', 'M', '2018-08-20'); DELIMITER // CREATE TRIGGER trigg_new_manager BEFORE INSERT ON employees.employees FOR EACH ROW B...
true
11aff45db54041a9c5bcb8d16597ab565062eb73
SQL
cdesmarais/WebDB-Test
/WebDB/StoredProcedures/Reports/dbo.JobReportGet_AGG_DashBoardShiftDateSummary.PRC
UTF-8
1,010
3.6875
4
[]
no_license
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[JobReportGet_AGG_DashBoardShiftDateSummary]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[JobReportGet_AGG_DashBoardShiftDateSummary] GO CREATE PROCEDURE dbo.JobReportGet_AGG_DashBoardShiftDateSummary AS SET NOCOUNT ON SET T...
true
cdc66c918cea101ce1158f57095aaee64d3cb9cb
SQL
SamantaMelissa/Banco-de-dados
/OPTUS/02_DDL.sql
UTF-8
895
3.28125
3
[]
no_license
CREATE DATABASE Optus; USE Optus; CREATE TABLE Usuario( IdUsuarios INT PRIMARY KEY IDENTITY NOT NULL, Nome VARCHAR(100) NOT NULL, Permissao BINARY NOT NULL, Senha VARCHAR (8) NOT NULL, Email VARCHAR (50) NOT NULL ); CREATE TABLE Estilo( IdEstilo INT PRIMARY KEY IDENTITY NOT NULL, Nome VARCHAR (100) NOT NULL ); CRE...
true
9b8ab6c40602b0d94a06ac5012820d8737d9be52
SQL
wcpzzz/CV
/findlove/Database/users.sql
UTF-8
1,713
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- 主机: 127.0.0.1:3306 -- 生成日期: 2018-10-22 10:54:26 -- 服务器版本: 5.7.23 -- PHP 版本: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_S...
true
7cb020eaca3d034c3187141930d9704296905fcf
SQL
jcfg67/ITA_NodeJS
/SPRINT2/Estructura_de_dades-MySQL/N2E1/youtube.sql
UTF-8
8,776
3.5
4
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Tue 09 Feb 2021 03:22:31 PM CET -- 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
3beee94aa8d6862b74a217cfc51b71bf7ea3cd96
SQL
Zalkar02/homework
/SQL/hw3.sql
UTF-8
1,519
3.640625
4
[]
no_license
create database hw3 character set utf8 collate utf8_general_ci; use hw3; create table marka (id int not null primary key auto_increment, name varchar(255) not null); create table model (id int not null primary key AUTO_INCREMENT, name varchar(255), m_id int, constraint fk_marka_model_id foreign key (m_id) refer...
true
dea014c292555ffbadd9223c8aaff73453bb315c
SQL
eYunTaek/SIPMS
/SQL/최종프젝 sql.sql
UTF-8
2,085
3.515625
4
[]
no_license
-- 테이블 CREATE TABLE emp( empno NUMBER PRIMARY KEY, ename varchar2(30) NOT NULL, pass varchar2(60) NOT NULL, civilno varchar2(60) NOT NULL, phone varchar2(60), posi varchar2(50) DEFAULT '사원', sal NUMBER DEFAULT 2000, hiredate DATE DEFAULT sysdate, regdate DATE , pjdo varchar2(30) DEFAULT 'N', permi varchar2(50) DEFAULT ...
true
2a2652277e38da71b2886c3a3916a0df8c069d36
SQL
renxinhe/FullStack_Info_HW06
/HW6_Starter_Code/schema.sql
UTF-8
525
2.84375
3
[]
no_license
-- Insert code to create Database Schema -- This will create your .db database file for use CREATE TABLE customers ( customer_id INTEGER PRIMARY KEY, first_name TEXT, last_name TEXT, company TEXT, email TEXT, phone TEXT ); CREATE TABLE addresses ( address_id INTEGER PRIMARY KEY, street ...
true
634771b4ce90b6ece309438800bd95e7a42ae1fa
SQL
eugenetaranov/dns-mysql
/dns.sql
UTF-8
2,800
3.25
3
[]
no_license
# # 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 2 of the License, or # (at your option) any later version. # # This program is distributed in the h...
true
073f61caac8b2e54fd322091502c44afd6e0180e
SQL
ricardo1470/learn_PostgreSQL
/Objetos almacenados/Crear vistas en PostgreSQL.sql
UTF-8
585
3.265625
3
[ "MIT" ]
permissive
Create or replace view informacion_prestamo AS select prestamo.id, usuario.nombre, usuario.apellido, libro.titulo, prestamo.fecha_salida, prestamo.fecha_devolucion, case prestamo_detalle.devuelto when 'true' then 'Si' when 'false' then 'No' end devuelto, case when prestamo_detalle.mora isnull then 0 else p...
true
3dd340a63252b7e08aee850d4ad0a5b2582010f8
SQL
goodsoul1914/DBA
/Scripts/Algemeen/Agent/drop jobs and jobs_internal schemas.sql
UTF-8
2,414
4.03125
4
[]
no_license
SELECT 'ALTER TABLE ' + QUOTENAME(SCHEMA_NAME(schema_id)) + '.' + QUOTENAME(OBJECT_NAME(parent_object_id)) + ' DROP CONSTRAINT ' + QUOTENAME(name) FROM sys.foreign_keys WHERE schema_id IN ( SCHEMA_ID('jobs'), SCHEMA_ID('jobs_internal')) ORDER BY CASE schema_id WHEN SCHEMA_ID('jobs') THEN ...
true
3f6b9d3330d76b22be7dc56b1136f2135c261685
SQL
richiurb/database
/lab3/lab3_second_attempt.sql
UTF-8
172
3.4375
3
[ "MIT" ]
permissive
SELECT TOP 3 P.[Name] FROM [Sales].[SalesOrderDetail] AS S INNER JOIN [Production].[Product] AS P ON S.[ProductID] = P.[ProductID] GROUP BY P.[Name] ORDER BY COUNT(*) DESC
true
7e34a5efa0d626e65300c3400de7928051a81370
SQL
kalkaniie/beehive3
/sql/km5.Sk.mysql
UHC
2,881
4.09375
4
[]
no_license
############################################################################## # SK MySQL SQL # # - Ŀ ٽ ؾ մϴ. # - ڿܿ մϴ. # - ¥: DATETIME, ? # - : VARCHAR, INT ############################################################################## # ID Ѵ. SQL:SelectSkUsersIdx SELECT SK_USERS_IDX FROM SK_USERS WHE...
true
36725bcaaa9ed47ebd6c1707527af54b0e43fbda
SQL
adbl/inlogger
/db/schema.sql
UTF-8
277
2.6875
3
[]
no_license
drop table if exists users; create table users ( id text primary key, password text not null ); drop table if exists logins; create table logins ( id integer primary key autoincrement, user_id string not null, datetime timestamp not null default CURRENT_TIMESTAMP );
true
ff1e7d2db99707665ae56bed53c656c5bc0faa2e
SQL
enzoroiz/IBD-TP2
/Modelagem/multas_database.sql
UTF-8
4,793
3.234375
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Wed 18 Nov 2015 17:44:14 BRST -- 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_MOD...
true
8d183c9dd809807c0fa14921f88e6c58dbbac876
SQL
joeyzoland/DojoAssignments
/Python/Flask_MySQL/MySQLCountries.sql
UTF-8
1,353
4.34375
4
[]
no_license
select name, language, percentage from countries join languages on country_id where language = "Slovene" order by percentage desc; select countries.name, count(cities.id) as citycount from countries join cities on country_id = countries.id group by countries.name order by citycount desc; SELECT cities.name, cities.po...
true
9f6c005a5ca6092044b2bc05751bc639e4decfbf
SQL
bradybyrd/REPO
/postgres/rlm/TABLE/queries.sql
UTF-8
856
2.921875
3
[]
no_license
-- Name: queries; Type: TABLE; Schema: public; Owner: deploy -- CREATE TABLE public.queries ( id integer NOT NULL, project_server_id integer, plan_id integer, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, name character varying(255), projec...
true
09a1e8c39d4ab64f150e95025e55f499d9a4a109
SQL
rena2henriques/SIBD
/Part2/Project2_grupo15/question5i.sql
UTF-8
872
3.21875
3
[]
no_license
delimiter $$ drop trigger if exists check_doctor_insert; create trigger check_doctor_insert before insert on Study for each row begin if new.doctor_id in ( select doctor_id from Request where Request.number=new.request_number) then call error_doctor_not_allowed(); end if; end$$ drop trigger...
true
d63209910aabb35e4b538a156b52d237137bb6b3
SQL
chillzhuang/SpringBlade
/doc/sql/seata/seata_order.sql
UTF-8
1,778
3.21875
3
[ "Apache-2.0" ]
permissive
/* Navicat Premium Data Transfer Source Server : mysql_localhost Source Server Type : MySQL Source Server Version : 50723 Source Host : localhost:3306 Source Schema : seata_order Target Server Type : MySQL Target Server Version : 50723 File Encoding : 65001 Date: 13/...
true
4b42032e8b53404973a3c462903b38a643c63b24
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/tables/REMESAS_PREVIO_LRE.sql
UTF-8
2,680
2.75
3
[]
no_license
-------------------------------------------------------- -- DDL for Table REMESAS_PREVIO_LRE -------------------------------------------------------- CREATE TABLE "AXIS"."REMESAS_PREVIO_LRE" ( "SCLAVE" NUMBER(8,0), "CEMPRES" NUMBER(2,0), "CABONO" VARCHAR2(50 BYTE), "IIMPORT" NUMBER, "FABONO" DATE, "NR...
true
cf7ba99763b5fa06564206ddd3721c829b23250d
SQL
luckydimdim/data_warehouse
/libra/iva_create_report_cmb_period_missing_accruals.sql
UTF-8
621
3.078125
3
[]
no_license
create definer = iva@`%` procedure iva_create_report_cmb_period_missing_accruals(in current_period_id int) begin if current_period_id is null then set current_period_id = iva_get_period_id(null); end if; select distinct orders.order_id, concat('call iva_create_cmb_accruals(', orders.order_id, ',...
true
28521b4ce52d0f8bf7337a5609cb9d98c2af3a07
SQL
almapowell/lets-talk-about-CRUD
/db/create_message.sql
UTF-8
167
3.15625
3
[]
no_license
insert into messages (user_id, message) values ($1, $2); select m.id, m.user_id, m.message, u.name from messages m join users u on m.user_id = u.id order by m.id asc;
true
4ebcf194c4c68d0d6828a6295cbf7381c1321654
SQL
ReneNyffenegger/oracle-patterns
/DatabaseObjects/Tables/Partitions/composite_list-hash.sql
UTF-8
733
3.25
3
[]
no_license
create table tq84_part_list_hash ( col_dt date, col_vc varchar2(10), dat varchar2(10) ) partition by list (col_vc) subpartition by hash (col_dt) subpartitions 4 ( partition p_foo values('foo' ), partition p_bar values('bar' ), partition p_baz values('baz' ), partition p_null va...
true
41e4a179977396bb1279bb7d682fe1a5282d188d
SQL
matheusmauricio/OuveFacil
/Códigos/OuveFacil (servidor - colocar na pasta do wamp ou xampp)/bancoouvefacil.sql
UTF-8
13,973
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 06-Out-2017 às 23:40 -- Versão do servidor: 10.1.25-MariaDB -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
9b384771bb21edb0e702a5bf7c8363753a92fb1e
SQL
lilyhealey/dev.lilyhealey.co.uk
/admin/db/localhost.sql
UTF-8
4,964
3
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.23, for osx10.8 (x86_64) -- -- Host: localhost Database: org_tester -- ------------------------------------------------------ -- Server version 5.6.23 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */...
true
46216fbe7c2ab45f3ddbfb084f7956f0492065e1
SQL
rajithst/CSCWEB
/CSC-Admin/sqlimports/ssasa.sql
UTF-8
27,040
3.1875
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database:...
true
00eb01b2c1f341b18f97892d22e12a3fadcf62cb
SQL
albertomattos/SQL_gerais
/Mapa de cotações - itens.sql
UTF-8
429
3.453125
3
[]
no_license
select escotite.cod_prd, faprdcad.descricao, escotite.cod_for, escotite.preco_pra, escotite.quant, espagcad.descricao from escotite, escotcad, espagcad, faprdcad where escotite.cod_cot = escotcad.cod_cot and escotite.cod_for = escotcad.cod_for and escotcad.cod_pag = espagcad.cod_pag and faprdcad.codigo = escotite.cod_p...
true
4cd93fdedd90509343d66ffea68017efaf419278
SQL
cesaralonso/pidolacomidaexpress
/sql_pidlacomida-with-values.sql
UTF-8
117,588
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Oct 27, 2017 at 10:04 PM -- Server version: 5.6.35 -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `pidolacomida` -- -- ---------------------...
true
5cb040b898f348d4bd8df922bf0b51c70b3a5076
SQL
danilodesouzapereira/plataformasinap_exportaopendss
/Fontes/BD/Hist/BaseAccess/Consultas/OldVer/v00+/rdPerdaTecnicaAgrupada.SQL
UTF-8
2,242
3
3
[]
no_license
SELECT PerdaTecnica.dttData AS Data, TipoRede.strCodigo AS TipoRede, TipoRede.intTipoRedeId AS TipoRede_Id, COUNT(PerdaTecnica.intRedeId) AS QtdeRedes, SUM(PerdaTecnica.fltEnergiaSuprimento) AS SomaEnergiaSuprimento, SUM(PerdaTecnica.fltEnerg...
true
f7a63dccc7b16285a5c34eb2f314c36c0a6ed717
SQL
rae-shaw/sky-candy-database-api
/seeds/seeds.skill.sql
UTF-8
963
2.625
3
[]
no_license
INSERT INTO skill (apparatus_id, level_id, age_id, priority_id, class_id, action_id, details, warm_up, video) VALUES ((select id from apparatus where apparatus = 'hammock'), (select id from level where level = '2'), (select id from age where age = 'adult'), (select id from priority where priority = 'essential'), ...
true
6cc8cd2d41788e0fe74cb0032cb21056a0244913
SQL
dhenriquedba/SQL
/scripts_auxiliares/Rebuild_A_table.sql
ISO-8859-1
1,447
3
3
[]
no_license
@login prompt prompt ser feito o Rebuild somente da ltima partio (P200607) prompt accept TABELA prompt 'Table to Rebuild: ' set echo off feedback off pages 0 linesize 150 spool __Rebuild_A_table_1.SQL select 'alter index '||i.owner||'.'||i.index_name||' rebuild parallel (degree 8) nologging;' from dba_indexes i,...
true
b94b961783cc4925888297689265e967de329d18
SQL
rwChirs/JS
/NodeJS/00实例/blog/blog.sql
UTF-8
10,755
3.34375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : 我的MySQL Source Server Type : MySQL Source Server Version : 50524 Source Host : localhost:3306 Source Schema : blog Target Server Type : MySQL Target Server Version : 50524 File Encoding : 65001 Date: 04/11/2017 10:56:3...
true
25cf353434832cc822dc5ec73d2e77cf7436bbb7
SQL
OHDSI/WebAPI
/src/main/resources/db/migration/oracle/V2.7.0.20190125141500__fe-analysis-criteria_stat-type-fix.sql
UTF-8
780
3.703125
4
[ "Apache-2.0" ]
permissive
ALTER TABLE ${ohdsiSchema}.fe_analysis MODIFY (stat_type NOT NULL); MERGE INTO ${ohdsiSchema}.fe_analysis_criteria fac USING ( SELECT fc.id, CASE WHEN fc.criteria_type IS NULL THEN CASE WHEN fa.stat_type = 'PREVALENCE' THEN 'CRITERIA_GROUP' WHEN fa.stat_type = 'DISTRIBUTION...
true
c8a6fb15039117b98b68e4b647382be908fd4cb0
SQL
MaskTaoX/learn
/daimadasai/src/javaTest1/sql03.sql
UTF-8
1,119
4.40625
4
[]
no_license
/* student 学生 sc 成绩 course 课程 teacher 老师 第一题 查询平均成绩大于60分的学生id和成绩 如果在返回集字段中,这些字段要么就要包含在Group By语句的后面,作为分组的依据;要么就要被包含在聚合函数中。 */ select SID,avg(SCORE) FROM sc GROUP BY SID HAVING avg(SCORE)>60; /* 第二题 查询同时选课程ID"a"和课程ID"b"的学生学号和姓名 intersect 取交集 写法1 */ select s.sid,s.sname from sc a,student s where a.sid=s.sid and a.cid="...
true
9d2d999d80b772b98ac8ebd195780a97f67b33f1
SQL
Malagutte/training-back-base
/dbs/audit/files/sql/audit-service/oracle/create/audit-service.sql
UTF-8
8,668
3.296875
3
[]
no_license
-- ********************************************************************* -- Update Database Script -- ********************************************************************* -- Change Log: src/main/resources/db/changelog/db.changelog-audit-2_19_2.yml -- Ran at: 04/09/20 08:18 -- Against: null@offline:oracle?version=12.1&...
true
f0c0696c667647e4f58c2fc2399b94e8a8c3d864
SQL
edsonyamble/new-site-1
/assets/data/outgoing/backup.sql
UTF-8
1,966,424
2.859375
3
[]
no_license
UPDATE `user` SET `last_logout` = '2017-04-19 14:16:06' WHERE `id` = '2'; UPDATE `user` SET `last_login` = '2017-04-19 14:16:16', `ip_address` = '::1' WHERE `id` = '2'; UPDATE `user` SET `last_logout` = '2017-04-19 14:16:29' WHERE `id` = '2'; UPDATE `user` SET `last_logout` = '2017-04-19 14:16:29' WHERE `id` = '2'; UPD...
true
182b396c6b2861ecf9873920695c996bfc179095
SQL
obwansan/aptitude-test
/api/db/aptitude-test.sql
UTF-8
6,988
2.984375
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.6.36) # Database: aptitude-test # Generation Time: 2017-10-26 13:53:45 +0000 # *****************************************...
true
42e5d1b278c3e3bb149594ceefe1f99785910930
SQL
Lan2010/GitLib
/mining/wakuang-app/code/app-api_php/newSQL/table/d_home_banner.sql
UTF-8
1,911
3.234375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 数据库 Source Server Version : 50631 Source Host : 120.25.85.171:3306 Source Database : 20161205 Target Server Type : MYSQL Target Server Version : 50631 File Encoding : 65001 Date: 2018-06-09 15:01:16 */ SET FOREIGN_KEY_CHECKS=0; -- --...
true
0669c95e18d6187a8c058c7fdd2f2a7c54064766
SQL
aia05/sql-challenge
/EmployeeSQL/dataAnalysis.sql
UTF-8
2,244
4.71875
5
[]
no_license
--List the following details of each employee: employee number, last name, first name, gender, and salary. select e.emp_no, e.last_name, e.first_name, e.gender, s.salary from employees as e left join salaries as s ON e.emp_no=s.emp_no ORDER BY e.emp_no; --List employees who were hired in 1986. select * from employees ...
true