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
a0b5c3fb9aa622b7c6ecc144cf7cdd1ac2805e8e
SQL
ssezerer/Data-Science
/DBMS/assignments/Assignment_2.sql
UTF-8
1,152
3.828125
4
[]
no_license
--Assignment-2(Manufacturer Database) create database Manufacturer; create table products ( product_id int NOT NULL identity(1,1), product_name VARCHAR(255) NOT NULL, quantity int, PRIMARY KEY(product_id) ); create table components ( component_id int NOT NULL identity(1,1), component_name VARCHAR(255) NOT NULL, [de...
true
abb06a9c2cadbc878a329e3be4ebe59dff7ed929
SQL
booterham/Databanken
/indienopgaven/sql_reeksen/week4.sql
UTF-8
2,813
3.703125
4
[]
no_license
-- opgave 1 select nr as ondernemingsnr, naam from (select nummerplaat, wagen.ondernemingsnr as nr, count(nummerplaat) as yeet from registratieformulier left join wagen using (nummerplaat) inner join filiaal f on wagen.ondernemingsnr = f.ondernemingsnr where merk lik...
true
f61c6f9987073594a1275c041bd5fd49d0e9995a
SQL
mraj9/mybasket
/src/main/resources/sql_table.sql
UTF-8
4,644
3.296875
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.7.24-log - MySQL Community Server (GPL) -- Server OS: Win32 -- HeidiSQL Version: 9.5.0.5196 -- ---------------------------------------------------...
true
f5ca1fee425a24017640e8ba205cca97135ac330
SQL
axel-lanuza/aussietowns
/DBscript/20171107/table_chat.sql
UTF-8
627
3.546875
4
[]
no_license
DROP TABLE IF EXISTS conversation_reply; CREATE TABLE conversation_reply ( id int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, messageContent text, userId int(11) NOT NULL, time DATETIME NOT NULL, conversationId int(11) NOT NULL, FOREIGN KEY (userId) REFERENCES user(id), FOREIGN KEY (conversationId) REFERENCES conve...
true
50f1d85380e3689c3157daf6cd923f7769200af1
SQL
savadev/MySQLToLeetCode
/HardMode/615 Average Salary Departments VS Company.sql
UTF-8
1,895
4.84375
5
[]
no_license
Given two tables as below, write a query to display the comparison result (higher/lower/same) of the average salary of employees in a department to the company's average salary. Table: salary | id | employee_id | amount | pay_date | |----|-------------|--------|------------| | 1 | 1 | 9000 | 2017-03-3...
true
39565f947d6013256fe0c00899a28bd14aa78c49
SQL
BirdyOz/birdyoz.github.io
/gotafe/SQL/2020 - Earliest SSP - collapsed duplicates - incl qual.sql
UTF-8
4,994
3.59375
4
[]
no_license
SELECT email, firstname, lastname, unit, username, REPLACE(SUBSTRING (coursefullname, '\((.*)\,'),'-',', ') AS qual, Min(logtime) AS logtime, Min(VERSION) AS VERSION, Array_to_string(Array_agg(DISTINCT (modulename || ' - ' || action)), ', ') AS actions, Arr...
true
87a2fd6af505bd5e900c2ad1b48554cff20e07c0
SQL
hunt4499/3N_Gallium
/DB/groups.sql
UTF-8
1,929
2.9375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 21, 2020 at 10:58 AM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.1.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
true
f52094d55b51ba44f2c902ba6240d428ef62fc13
SQL
Spand0x/SoftUni
/MySQL/Exam 09 June 2019/06 Newbies.sql
UTF-8
222
3.65625
4
[]
no_license
USE bank; SELECT id, CONCAT(first_name, ' ', last_name) AS full_name, CONCAT('$',salary), started_on FROM employees WHERE salary >= 100000 AND DATE(started_on) >= '2018-01-01' ORDER BY salary DESC ,id;
true
c9014a972a0a58e5a8fb0bc2eea70bd3b562b8c1
SQL
kongyew/gpdb
/src/test/tinc/tincrepo/mpp/gpdb/tests/queries/basic/external_partition/sql/optimizer.sql
UTF-8
1,048
3.46875
3
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "PostgreSQL", "LicenseRef-scancode-other-copyleft", "metamail", "BSD-3-Clause", "LicenseRef-scancode-openssl", "LicenseRef-scancode-other-permissive", "ISC", "Python-2.0", "bzip2-1.0.6", "LicenseRef-scancode-ssleay-windows", "LicenseRef-scanco...
permissive
-- -- @created 2015-07-23 12:00:00 -- @modified 2015-07-23 12:00:00 -- @tags external_partition -- @gpdiff true -- @check ORCA would fallback when query has external partition --start_ignore drop table if exists pt_ext_opt; CREATE TABLE pt_ext_opt ( col1 int, col2 decimal ) distributed by (col1) partition by li...
true
03a1202d836ca2a1a59f62535f510dc0c59eccb7
SQL
Mart1nDimtrov/Getting-Started-with-SQL
/MANAGE_DATA.sql
UTF-8
951
3.4375
3
[]
no_license
-- insert attendee record INSERT INTO surgetech_conference.ATTENDEE (FIRST_NAME, LAST_NAME) VALUES ('Thomas','Nield') -- insert multiple attendees INSERT INTO surgetech_conference.ATTENDEE (FIRST_NAME, LAST_NAME, PHONE, EMAIL, VIP) VALUES ('Jon', 'Skeeter',4802185842,'john.skeeter@rex.net', 1), ('Sam','Scala',21567834...
true
f0fdf9e151c0948f0c2c7174bda74d431e3fcc07
SQL
radtek/abs3
/sql/mmfo/bars/Table/alien_sw.sql
UTF-8
3,516
3.1875
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/ALIEN_SW.sql =========*** Run *** ==== PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
5a50cf69427363d1bda9aa4ab9268d0a4e4171ad
SQL
EyesOfNetworkCommunity/eonweb
/module/reports/reports.sql
UTF-8
537
2.78125
3
[]
no_license
CREATE TABLE reports ( id INT PRIMARY KEY NOT NULL AUTO_INCREMENT, reportName VARCHAR(100) UNIQUE, period VARCHAR(20), cron VARCHAR(20) ); CREATE TABLE reports_hosts ( id INT PRIMARY KEY NOT NULL AUTO_INCREMENT, hostName VARCHAR(100), reportsID INT ); CREATE TABLE reports_services ( id...
true
0d76cda116ac6878dd3d672a654e25ae13b13616
SQL
erleinjoyce/ChatBotAdmin
/hitek_db (1).sql
UTF-8
4,757
2.984375
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 22, 2018 at 01:45 PM -- Server version: 10.1.35-MariaDB -- PHP Version: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
e1c7bc56a384fd84ba542fc9fa3ca53417c398fd
SQL
tonyhristov/Software-Engineering-at-SoftUni
/PHP-Web-Basics/04.Database-Relations-And-Design/03.LongestMagicWandPerDepositGroups.sql
UTF-8
153
2.578125
3
[]
no_license
SELECT deposit_group, MAX(magic_wand_size) AS longest_magic_wand FROM wizzard_deposits GROUP BY deposit_group ORDER BY longest_magic_wand, deposit_group
true
2163a691a28602e5ebd09fef290a00e04d7eeb12
SQL
Auxilium-TCC/Auxilium
/sql/Modulo.sql
UTF-8
235
2.734375
3
[]
no_license
CREATE TABLE MODULO( ID_MODULO INT AUTO_INCREMENT PRIMARY KEY, ID_NIVEL INT, TITULO_MODULO VARCHAR(60) NOT NULL, DESCRICAO_MODULO VARCHAR(280) NOT NULL, CONSTRAINT FOREIGN KEY (ID_NIVEL) REFERENCES NIVEL(ID_NIVEL) );
true
7af84e397f1c3361b4d1c1ebeaa77d19c1da319e
SQL
marcoshakuro/turma16java
/mySQL/ExerciciosLista2/Exercicio3Lista2.sql
UTF-8
2,448
3.40625
3
[]
no_license
create database db_farmacia_do_bem; create table tb_categoria( id bigint auto_increment, nome_categoria varchar(255) not null, marca varchar(255) not null, tipo varchar(255) not null, primary key (id) ); select * from tb_categoria; create table tb_remedio( id bigint auto_increment, nome_remedio varchar(255) not null...
true
368a928429ccf59bed4e93c75ca3351d31d10a77
SQL
developwebdesign/sym-foundation-3
/workspace/install.sql
UTF-8
14,851
3.03125
3
[ "MIT" ]
permissive
-- *** STRUCTURE: `sym_fields_author` *** DROP TABLE IF EXISTS`tbl_fields_author`; CREATE TABLE`tbl_fields_author` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `field_id` int(11) unsigned NOT NULL, `allow_author_change` enum('yes','no') COLLATE utf8_unicode_ci NOT NULL, `allow_multiple_selection` enum('...
true
edd631e9086144ede0941180caa7cd721774aa94
SQL
git-bk/chenxi
/db/表定义.sql
UTF-8
16,607
3.21875
3
[]
no_license
CREATE TABLE `dictionary` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', `gmt_create` datetime DEFAULT NULL COMMENT '创建日期', `gmt_modified` datetime DEFAULT NULL COMMENT '修改日期', `value` varchar(128) DEFAULT NULL COMMENT '数据', `dic_key` varchar(64) DEFAULT NULL COMMENT '数据类型', `dic_order` int(11) ...
true
866b91a42be9ed80db83de2ac1bd69cc810e11c8
SQL
thdus0912Github/dbnote
/20190708마당.sql
UHC
4,754
3.90625
4
[]
no_license
--Լ select abs(-78), abs(78) from dual; select round(4.875, 1) from dual; select custid "ȣ", round(sum(saleprice)/count(*), -2) "ձݾ" from orders group by custid; --Լ select bookid, replace(bookname, '߱', '') bookname, publisher, price from book; select bookname "", length(bookname)"ڼ", lengthb(bookname) "Ʈ " from ...
true
d5a20b4d0ae321704019559bc832a0d85e808b3b
SQL
carlossmarts/terminalAutomotriz
/Test/test9.sql
UTF-8
1,025
2.9375
3
[]
no_license
-- Test 9 /* 9) Se requiere crear un procedimiento que al recibir como parámetro la patente del automóvil, se le dé inicio al montaje del mismo, es decir, que al ejecutar dicho procedimiento el automóvil con la patente indicada es “posicionado” en la primer estación de la línea de montaje que le fue asignada al crear e...
true
e6028505fb5a124b9a280506841a53035b0d2585
SQL
Mikhail-Kozlov/db_task
/tasks.sql
UTF-8
3,726
4.3125
4
[]
no_license
USE PharmDB; /* ============================================= task #7 ============================================= Вывести список всех касс со следующем столбцами: [Аптека], [Адрес аптеки с городом], [Номер кассы], [Описание кассы] ============================================= task #7 ============================...
true
4ea3dbf77f038fd00634951933a60c408a114ec2
SQL
Salamander12/ProjetoBanco-e-ProjetoLPOO
/ProjetoBanco.sql
UTF-8
5,981
3.71875
4
[]
no_license
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema mydb -- -...
true
3cc867e0315e3b61fe50b3fa98d6699d2224a57d
SQL
yourant/repository1
/doc/bbc_script/2017-06-09/b2b_sales_2017-06-05.sql
UTF-8
4,682
3.09375
3
[]
no_license
-- 修改表 alter table t_product_sales_order_main ADD COLUMN "is_package_mail" int2; COMMENT ON COLUMN "public"."t_product_sales_order_main"."is_package_mail" IS '是否包邮 1:包邮 2:不包邮'; CREATE TABLE "public"."t_sales_hb_delivery" ( "id" serial4 NOT NULL, "sales_hb_no" varchar(100), "total_amount_postage_inclusive" float8, "...
true
7aaaae3703e2d56556f0d0298a1755170e6a9c92
SQL
radtek/abs3
/sql/mmfo/bars/Table/err$_sb_p085d3.sql
UTF-8
2,665
2.84375
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/ERR$_SB_P085D3.sql =========*** Run ** PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
ebd035e0451fde5fedc5e6f7cb9e4bc973d6a30c
SQL
o0amandagomez0o/SQLZoo_SQL_Practice_Problems
/udemy_sql_practice.sql
UTF-8
3,966
4.3125
4
[]
no_license
select first_name, last_name from employees where first_name = 'Elvis'; select * from employees where first_name = 'Denis' and gender='M'; select * from employees where first_name = 'Kellie' and gender='F'; select * from employees where first_name = 'Denis' or first_name='Elvis'; select * from employees where first...
true
ae9841b4c33cce8f040dcd1d64fd725d288bb459
SQL
JLLeitschuh/hgl
/doc/sql/20160803.sql
UTF-8
2,845
3.484375
3
[]
no_license
CREATE TABLE `tb_integral_rules` ( `id` INT(10) NOT NULL AUTO_INCREMENT COMMENT '推荐规则id', `shop_id` INT(10) NULL DEFAULT NULL COMMENT '经销商id', `type` INT(10) NULL DEFAULT '0' COMMENT '类型:0 百分比,1 满送', `money` INT(10) NULL DEFAULT '0' COMMENT '满送金额', `pay_money` INT(10) NULL DEFAULT '0' COMMENT '购买金额', `use_situati...
true
031252d2757fa42955e4f8dc26f0c2521248d975
SQL
joaovpr/Roteiros-BD
/roteiro3-118211058.sql
UTF-8
2,916
4
4
[]
no_license
--CLIENTES PODEM TER MAIS DE UM ENDEREÇO --OS ENDEREÇOS PODEM SER RESIDENCIA, TRABALHO OU OUTRO --MEDICAMENTOS PODEM TER VENDA EXCLUSIVA COM RECEITA CREATE TYPE estado AS ENUM('PB','RN','SE','Al','BA','PI','PE','CE','MA'); CREATE TABLE farmacia ( id bigint PRIMARY KEY NOT NULL, bairro VARCHAR(140) NOT NULL, c...
true
f256eaf2f1bb08c17214d732728a7a37f682befa
SQL
Marc-V/sakila
/sakila.sql
UTF-8
2,047
3.6875
4
[]
no_license
select c.first_name, c.last_name, c.email, a.address, a.district, ci.city from customer c, address a, city ci where c.address_id = a.address_id and a.city_id = ci.city_id and ci.city_id=312; select f.film_id, f.title, f.description, f.release_year, f.rating, f.special_features, c.name as genre from film f, category c...
true
8948f575b5822daf2f374257b8ef37664b21bc19
SQL
gpdoud/DNBC5-All
/sql/sum-sales-by-city-gt-60000.sql
UTF-8
150
3.296875
3
[]
no_license
-- sum sales by city -- display if sum is greater than 60k select City, sum(sales), count(*) from customers group by City having sum(sales) > 600000;
true
381ff409e07d43ad4d6c7ad4e1152a5103e19468
SQL
manoel-ats/atssf
/scripts/SP_CARNE_new.sql
MacCentralEurope
3,567
3.046875
3
[]
no_license
SET TERM ^ ; ALTER PROCEDURE SP_CARNE ( DATA_INICIO Date, DIAPGTO Integer, PARCELA Integer, CARENCIA Integer, VALOR_MENSAL Double precision, ID_SOCIO Integer, CODIGO Integer, ID_BANCO Integer, TIT_BANCO Integer, DATA_EMISSAO Date ) AS DECLARE VARIABLE H INTEGER; DECLARE VARIABLE ...
true
204374d472df5f147ea484db532bf3c7b69ece12
SQL
Kinnect/Cleaning_Nashville_Housing_Data
/Code.sql
UTF-8
5,094
4.03125
4
[]
no_license
#Looking at all data SELECT * FROM clean_data.house_data; #Standardize date format #https://database.guide/list-of-date-format-specifiers-in-mysql/ UPDATE clean_data.house_data SET SaleDate = STR_TO_DATE(SaleDate, '%m/%d/%Y'); #Alternative method without replacing column instantly ALTER TABLE clean_data.house_data...
true
c9402e2b4847656e9355052956cb4402d292dbbb
SQL
quuhua911/AiCompetitions
/CarsSalesForecast/src/SQL/LiChuan/lichuan_0313_oil_price_method1.sql
UTF-8
6,144
2.84375
3
[]
no_license
/* * @Author: Hugo1030 * @Date: 2018-03-15 * @Last Modified by: Hugo1030 * @Last Modified time: 2018-03-15 */ -- feature_6_oil_price -- CHNAGELOH: -- 18.3.13 Lichuan init. -- <= ycc_sales_lichuan0313_traintest_method1 -- => ycc_sales_lichuan0313_oil_price_method1 -- -- -- du4ai / TianChi / i...
true
f436f2a268a76ad3c59be7497c5b1d12d9e2f4b4
SQL
marius-rop/timescaledb
/tsl/test/sql/include/compression_alter.sql
UTF-8
9,341
3.9375
4
[ "LicenseRef-scancode-tsl-2020", "LicenseRef-scancode-free-unknown", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "PostgreSQL", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
-- This file and its contents are licensed under the Timescale License. -- Please see the included NOTICE for copyright information and -- LICENSE-TIMESCALE for a copy of the license. \ir compression_utils.sql CREATE TABLE test1 ("Time" timestamptz, intcol integer, bntcol bigint, txtcol text); SELECT table_name from ...
true
207804a7e342b06dd7b37d59fd00ae5b7e8a667f
SQL
prasadvp/ethoca
/online_shopping_application/src/main/resources/data.sql
UTF-8
973
3.90625
4
[]
no_license
DROP TABLE IF EXISTS USER; DROP TABLE IF EXISTS PRODUCT; DROP TABLE IF EXISTS CART; CREATE TABLE USER ( userId INT PRIMARY KEY, name VARCHAR(250) NOT NULL, email VARCHAR(250) NOT NULL ); INSERT INTO USER (userId, name, email) VALUES (307011, 'John', 'john@test.com'), (307012, 'Sam', 'sam@test.com'), (3070...
true
b627752eeb609a91693755fbfc6258d410696f12
SQL
ahueteg/Datamart-MKT
/Lab SQL/MAESTROS/MAESTRO CADENA.sql
UTF-8
941
3.578125
4
[]
no_license
/*MAESTRO CADENA*/ DROP SEQUENCE per.seq_cadenaid; CREATE SEQUENCE per.seq_cadenaid as int MINVALUE 1000 NO CYCLE DROP TABLE [per].[MAESTRO_CADENA]; CREATE TABLE [per].[MAESTRO_CADENA]( CadenaID [VARCHAR](4) PRIMARY KEY, CadenaIDClie [varchar](4) NULL, DescCadena [varchar](20) NULL ) ON [PRIMARY] insert into [pe...
true
be26bdf5a63c5c9ca0747f51a4cd701488c8d071
SQL
bcqtt/search
/src/main/resources/search2.1.0.sql
UTF-8
41,804
3.453125
3
[]
no_license
-- -------------------------------------------------------- -- 主机: 18.8.6.139 -- 服务器版本: 5.5.49-0ubuntu0.14.04.1 - (Ubuntu) -- 服务器操作系统: debian-linux-gnu -- HeidiSQL 版本: 9.3.0.4984 -- ---------------------------------------------------...
true
8ee37ee99d692fc1d6e1d597eab256c207c5b8d5
SQL
tylerprehl/SQL-Practice
/TutorialFiles/SelectDistinct.sql
UTF-8
1,448
3.875
4
[]
no_license
--SELECT DISTINCT is for getting only --distinct values in a specified column; --it removes duplicates...AAAAAAAAARRRRRRRRRRRRRRRRRRRRRGGGGGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHHHHHHAHSDGFASDKFGLASDLKFASDKLVNASDKLFNSDKLFASDKLFKNASDFKLNASDKLFGNASDLFGNASDKLNFASDKLNFASD --"Uses the combo of values in all --specified cols ...
true
62e7b80f18a4eed341ec7a4926bb5f0a88e4b025
SQL
methetushar/Database
/messanger.sql
UTF-8
5,433
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 27, 2020 at 07:39 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
03537ae247d6a5bcf62c5a3873bbc0b7f7fc9b28
SQL
qpzm13467/php49
/movie.sql
UTF-8
1,335
3.5
4
[]
no_license
--创建数据库 CREATE DATABASE movie; --movie表 create table movie ( id int primary key auto_increment, uid int not null, mname varchar(20) not null, marea varchar(10) not null, mtime int not null, typeid int not null, mtype varchar(10) not null )ENGINE=MyISAM DEFAULT CHARSET=utf8; --资源表 create table resource ( rid int prim...
true
505449ddac3d3cd4c876ae082f7278114b56e07b
SQL
anjingbin/starccm
/postgresql/src/test/regress/sql/aggregates.sql
UTF-8
1,049
3.328125
3
[ "PostgreSQL", "BSD-2-Clause" ]
permissive
-- -- AGGREGATES -- SELECT avg(four) AS avg_1 FROM onek; SELECT avg(a) AS avg_32 FROM aggtest WHERE a < 100; -- In 7.1, avg(float4) is computed using float8 arithmetic. -- Round the result to 3 digits to avoid platform-specific results. SELECT avg(b)::numeric(10,3) AS avg_107_943 FROM aggtest; SELECT avg(gpa) AS a...
true
030f53bdb9beec8699472a97ecfda6eb17b3ddf6
SQL
jonathanoleaz/WAD
/EjercicioInventarios/inventarios.sql
UTF-8
738
3.375
3
[]
no_license
drop database inventarios; create DATABASE inventarios; use inventarios; create TABLE categoria( idcategoria int not null auto_increment PRIMARY KEY, descripcion VARCHAR(30) not null unique, precio float not null, existencia int default 50 ); create TABLE articulo( claveart int not null auto_increment PRIMARY KEY, d...
true
629b2fff03e753a843f56c9409176acd0a191e73
SQL
JcGaara/SGA-PLSQL-OPE
/SGA-OPERACION/Packages/PQ_SIAC_WF_CAMBIO_PLAN.sql
ISO-8859-3
2,018
2.703125
3
[]
no_license
create or replace package operacion.PQ_SIAC_WF_CAMBIO_PLAN is /************************************************************************************************ NOMBRE: OPERACION.PQ_SIAC_CAMBIO_PLAN PROPOSITO: Generar WF Cambio de Plan REVISIONES: Version Fecha Autor Solicitado por...
true
084cc4291d79e5975ef8e6a81190845b2d8c0dba
SQL
HugoJBello/python-data-projects-examples
/data_analisis_electoral_data/mysql_scripts/table_creations.sql
UTF-8
4,325
3.21875
3
[]
no_license
-- mysql -u root -- 1234 SET NAMES utf8 DEFAULT CHARSET=utf8 DROP datalyze; CREATE DATABASE datalyze; USE datalyze; DROP TABLE F03_MUN_2015; DROP TABLE F05_1_MUN_2015; DROP TABLE F06_1_MUN_2015; DROP TABLE F09_MUN_2015; DROP TABLE F10_MUN_2015; create table if not exists F03_MUN_2015( TIPO_ELECCION INT(10), ANIO ...
true
a3a74bbdc6299d18cbbfa0ed9e1ae771d4050a37
SQL
sprokushev/Delphi
/MASTER/_DATABASE/Constraints/KLS_VID_USL_NonFK.sql
UTF-8
291
3.34375
3
[]
no_license
-- -- Non Foreign Key Constraints for Table KLS_VID_USL -- ALTER TABLE MASTER.KLS_VID_USL ADD ( CHECK ("USL_NAME" IS NOT NULL) DISABLE NOVALIDATE); ALTER TABLE MASTER.KLS_VID_USL ADD ( CONSTRAINT VID_USL_PK PRIMARY KEY (ID) USING INDEX MASTER.VID_USL_PK ENABLE VALIDATE);
true
901e3bf267353e1b7d09d1ccb6ada063a26cbcd7
SQL
pazruiz/pazruiz.github.io
/tarea84/script/alumnos.sql
UTF-8
1,758
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 22-02-2015 a las 21:32:53 -- Versión del servidor: 5.6.16 -- Versión de PHP: 5.5.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACT...
true
9405e3aaceb48d3dc4249ed4eb82ce77c6dee15d
SQL
blazing1210/sql-study
/10_뷰.SQL
UHC
1,209
3.90625
4
[]
no_license
-- ̺ --ܼ CREATE VIEW EMP_V1(ȣ,̸,,̸,,) AS SELECT EMPLOYEE_ID,FIRST_NAME,LAST_NAME,EMAIL,HIRE_DATE,JOB_ID FROM EMPLOYEES; SELECT * FROM EMP_V1; drop view emp_v1; --̺ DROP TABLE л; --信 ͸ Է( ̺ ƴϱ δ ̺ Է) insert into emp_v1(ȣ,̸,,̸,,) values(333,'','','Peng',sysdate,'IT_PROG'); select * from employees; -- 丸 --׷Լ DML...
true
23cc25d95ed7e43eb78891630c2a1aef15a9f827
SQL
Ladydiana/SQLExercises
/procedures.sql
UTF-8
710
3.65625
4
[]
no_license
-- @Author: Culincu Diana Cristina -- @Repo: https://github.com/Ladydiana/SQLExercises USE exercises; # 1. Procedure to view all employees from a given department DROP PROCEDURE IF EXISTS pEmp; DELIMITER $$ CREATE PROCEDURE pEmp(in deptNo int) BEGIN select * from emp_details where emp_dept=deptNo; END; $$ DELIMITER ...
true
a58654c94932026d689b525802fbcc120d58e810
SQL
YujinJeon416/Oracle_HomeWork_upload
/chun_03.sql
UTF-8
6,103
4.0625
4
[]
no_license
--================================================================ --2021/01/27 02_워크북_v2.0_AdditionalSelect_Function --================================================================ --1. 영어영문학과(학과코드002) 학생들의학번과이름, 입학년도를 --입학년도가 빠른 순으로 표시하는 SQL 문장을 작성하시오. --(단, 헤더는"학번", "이름", "입학년도" 가표시되도록핚다.) select student_no 학번,...
true
72388321a132d0c89680a608c9844da5aef66259
SQL
jimmy-santos27/jimsolution
/backup/IMSystem_db.BackUp.sql
UTF-8
269,190
3.09375
3
[ "MIT" ]
permissive
CREATE TABLE `tblaccountstatus` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `STATNAME` varchar(50) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1; INSERT INTO tblaccountstatus VALUES("1","GOOD ACCT"); INSERT INTO tblaccountstatus VALUES("5","BAD ACCOUNT"); INSERT INTO tbla...
true
6ec6d000243f9fceaa5888fae8729755f835edd9
SQL
mingshi/imot
/all.sql
UTF-8
1,349
3.40625
3
[]
no_license
create database imot; CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户id', `username` varchar(50) NOT NULL DEFAULT '' COMMENT '用户名', `realname` varchar(50) NOT NULL DEFAULT '', `login_time` timestamp NULL DEFAULT NULL, `login...
true
40095742923b0907f0cfcacf9ba427ad8e9b279f
SQL
uprightclear/2020Summer2_INFO6210
/SQL/level1/SQL JOIN Mistake.sql
UTF-8
2,841
4.46875
4
[]
no_license
-- Question: Retrieve customers who have never purchased Product 716 -- Use JOIN to get customers who hava never purchased Product 716 SELECT distinct sh.CustomerID FROM Sales.SalesOrderHeader sh join Sales.SalesOrderDetail sd ON sh.SalesOrderID = sd.SalesOrderID WHERE sd.ProductID <> 716 ORDER BY sh.Custome...
true
6f979699655f46e8ce2d2fa50b800358b77fd8ab
SQL
ravi-soda/HanAcademy
/HanAcademy/database/DDL/DDL_INSERT_DATAANDCONSTRAINTS_V001.sql
UTF-8
3,749
3.421875
3
[]
no_license
/* add not null key constraints */ ALTER TABLE HAN.TESTDB.STUDENTS ALTER COLUMN studID INTEGER NOT NULL ALTER TABLE HAN.TESTDB.PARENT_USER ALTER COLUMN parentID INTEGER NOT NULL ALTER TABLE HAN.TESTDB.PARENT_STUDENT_MAP ALTER COLUMN parentStudID INTEGER NOT NULL ALTER TABLE HAN.TESTDB.PARENT_STUDENT_MAP ALTER COL...
true
83ede905093b9221f61fc0502c14df11994197cb
SQL
rkuruba/cloudwizoz
/db/schema.sql
UTF-8
6,034
3.03125
3
[]
no_license
DROP DATABASE IF EXISTS `cloudwizoz_db`; CREATE DATABASE `cloudwizoz_db`; USE `cloudwizoz_db`; CREATE TABLE `objects` ( `ID` int( 11 ) AUTO_INCREMENT NOT NULL, `Zone` VARCHAR( 255) NOT NULL, `App_ID` VARCHAR(50), `VPC_ID` VARCHAR(50), `Subnet_ID` VARCHAR(50), `Instance_ID` VARCHAR(50), ...
true
1551d505403f9e67ecb8619a5dc67a7bbf67bab0
SQL
veena-excite/eh-data
/redshift/exciteh/history/_nov_23-24_hack.sql
UTF-8
548
2.703125
3
[]
no_license
_nov_23-24_hack insert into tableau_bookings_history select '2017-11-23',convert_timezone('Australia/Sydney',sysdate)::date,* from public.tableau_bookings create table temp as select * from tableau_bookings_history where snapshot_date = '2017-11-24' update temp set snapshot_date = '2017-11-23' ; insert into...
true
28f681b986a75b8f1e693909875c4b6a18f773cd
SQL
kevashcraft/EagleLogger-V2
/db/schema/chat.sql
UTF-8
319
3.046875
3
[]
no_license
DROP TABLE IF EXISTS chat CASCADE; CREATE TABLE chat ( id serial NOT NULL, created timestamp DEFAULT current_timestamp NOT NULL, net_id int REFERENCES nets(id) NOT NULL, user_id int REFERENCES users(id) NOT NULL, message varchar(1024) NOT NULL, deleted boolean DEFAULT false NOT NULL, PRIMARY KEY (id) );
true
a480df1a31ff928bcd112f9891843346d5463d32
SQL
Tbwheeler94/SQL-Challenge
/EmployeeSQL/query.sql
UTF-8
3,309
4.71875
5
[]
no_license
----List the following details of each employee: employee number, ----last name, first name, gender, and salary. --Select Employee Number, Last Name, First Name, Gender, Salary SELECT emp.emp_no, emp.last_name, emp.first_name, emp.gender, sal.Salary --Join Employees and Salaries tables on employee number FROM employe...
true
2ab4ba47d3370170a64a3f1a7f1d5a5c7ecb50eb
SQL
jonkaz1/kelioniuIS
/is.sql
UTF-8
18,905
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 2017 m. Grd 13 d. 08:36 -- Server version: 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_...
true
65a4afaae2bc72fa4c51c1c1a4302cad1ed0ac70
SQL
Milen-Tanev/TelerikAcademy
/DataBases/SQL Intro/Task24.sql
UTF-8
444
3.8125
4
[]
no_license
USE TelerikAcademy ------------------------------------------ -- 24. Employees from sales and finance -- ------ hired between 1995 and 2005 ------- SELECT e.FirstName + ' ' + e.LastName as 'Full name', d.Name as 'Department', e.HireDate as 'Hire date' FROM dbo.Employees e, dbo.Departments d WHERE (d.DepartmentI...
true
c67620ee8348b1a0e42cb1e2611a928756c443d5
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day24/select2041.sql
UTF-8
191
2.703125
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-23T20:41:00Z' AND timestamp<'2017-11-24T20:41:00Z' AND SENSOR_ID='4d378c1f_f6b9_4f6f_9be4_5cac897432a0'
true
4be7f0cdde8cbff21283798355d6f06de72e7749
SQL
BicisportNicolasCarlos/Proyecto_Bici
/1718_projecte_1.sql
UTF-8
2,056
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 17-10-2017 a las 17:27:48 -- Versión del servidor: 10.1.16-MariaDB -- Versión de PHP: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
true
500550ea74aac9d6fc2db7b4c1fea4d97dc7d08e
SQL
afshinizadi/mobile-application-subscription-managment-api
/schema.sql
UTF-8
864
3.453125
3
[]
no_license
use in_app_purchase_managment_db; CREATE TABLE devices ( id int(11) NOT NULL, u_id int(11) NOT NULL, language varchar(35) NOT NULL, os varchar(10) NOT NULL, api_token varchar(80) NOT NULL, INDEX (u_id), UNIQUE KEY(u_id), PRIMARY KEY (id) ) ENGINE=InnoDB CHARACTER SET utf8; CREATE TABLE application...
true
c1aa4d14685ac50c3e60334a6b14f3e29b1cc70f
SQL
aKondratyuk/dbis
/km62/Kondratiuk_Andrii/laboratory3.sql
UTF-8
2,930
3.984375
4
[]
no_license
-- LABORATORY WORK 3 -- BY Kondratiuk_Andrii /*1. Написати PL/SQL код, що по вказаному ключу постачальника додає йому продукти з ключами 111,....111+n, щоб сумарна кількість його продуктів була 10. Назви продуктів - будь-яка ностанта. Ціна кожного продукту наступного продукту на одиницю більша ніж попередній, почин...
true
01aab6b7bcc32a1a644aaf79518da186f008a4a9
SQL
Mysii/CMSC198
/db/development_schema.sql
UTF-8
3,103
4
4
[]
no_license
-- DB user DROP USER IF EXISTS 'cmsc198user'; CREATE USER 'cmsc198user' IDENTIFIED BY 'ZNBhSKChnoTds'; -- APPLICATION DATABASE DROP DATABASE IF EXISTS cmsc198db; CREATE DATABASE cmsc198db; -- GRANTS ALL PRIVILEGE ON APPLICATION DATABASE TO DB USER GRANT ALL ON cmsc198db.* TO 'cmsc198user'@'localhost'; FLUSH PRIVILEGE...
true
015d7743a1aa92260a567184e40f14ab8b0b27f8
SQL
cdignam8304/django-website-tutorial
/mysite/db-queries.sql
UTF-8
265
3.484375
3
[]
no_license
SELECT t.tutorial_title, s.tutorial_series, c.tutorial_category FROM main_tutorial as t INNER JOIN main_tutorialseries as s ON t.tutorial_series_id = s.id INNER JOIN main_tutorialcategory as c ON s.tutorial_category_id = c.id WHERE c.tutorial_category LIKE "%web%";
true
1d31bf0ee14ff766ef437bfef61d159ae598a5d9
SQL
TomasGarcia/ProyectoTAW
/script.sql
UTF-8
3,521
3.71875
4
[]
no_license
DROP SCHEMA IF EXISTS `RedSocial` ; -- ----------------------------------------------------- -- Schema Lavadero -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `RedSocial` DEFAULT CHARACTER SET utf8 ; USE `RedSocial` ; CREATE TABLE amistad ( usuario_id INTEGER NOT NULL, ...
true
893119fef12149bcce0c6b5fb4fcee287c1be3a0
SQL
thangduong3010/PL-SQL
/Script/rdbms_admin/catdbfus.sql
UTF-8
12,253
2.875
3
[]
no_license
Rem Rem $Header: catdbfus.sql 24-may-2005.11:28:09 mlfeng Exp $ Rem Rem catdbfus.sql Rem Rem Copyright (c) 2002, 2005, Oracle. All rights reserved. Rem Rem NAME Rem catdbfus.sql - Catalog creation file for DB Feature Usage Rem Rem DESCRIPTION Rem This file creates the schema objects and PL/SQL packag...
true
ee3096e3522bc22ca4526b5e7b1b184f8dde942a
SQL
code-goddess/work
/任务9/nodebaidu/public/news.sql
UTF-8
1,547
3.25
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `baidunews` -- -- -------------------------------------------------------- -- -- 表的结构 `news` -- CREATE TABLE `news` ( `id` int(11) NOT NULL, `newstype` char(200) NOT NULL, `newstitle` varchar(200) NOT NULL, `newsimg` varchar(2...
true
ab59e73dc12440f7029b04128c75486392020df8
SQL
nelep90/Portfolio_Back_Office
/assets/dbb/Portfolio.sql
UTF-8
4,042
3.109375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 28, 2018 at 02:49 PM -- Server version: 10.0.34-MariaDB-0ubuntu0.16.04.1 -- PHP Version: 7.0.30-1+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"...
true
ccc6a03c4027a6f16c6958275d8b3035c58323bd
SQL
rachaelbaumann/SSMS_Student_Files
/Chapter_6/CH 6 LAB 1/CH 6 LAB 1 Scripts/CH 6 LAB 1 Scripts/UNION.sql
UTF-8
198
2.90625
3
[]
no_license
USE HealthCareSample; SELECT P.FirstName, P.LastName, P.ZipCode, 'Patient' AS [Person Type] FROM Patient AS P UNION ALL SELECT S.FirstName, S.LastName, 'Not Available', S.StaffType FROM Staff AS S;
true
9f4bef7fae5fba2a229646f6683a103dc250012c
SQL
DominiqueTromp/oramigrate
/tpc-ds/tpc_fixes.sql
UTF-8
2,185
2.921875
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
ALTER TABLE TPCDS.CATALOG_PAGE ADD cp_promo_id number; update CATALOG_PAGE t1 SET CP_PROMO_ID = (select t2.P_PROMO_SK from PROMOTION t2 where t1.CP_CATALOG_PAGE_SK=t2.P_PROMO_SK) WHERE EXISTS( SELECT t2.P_PROMO_SK from PROMOTION t2 WHERE t1.CP_CATALOG_PAGE_SK=t2.P_PROMO_SK ); ...
true
7c2db9371b35e71df5f693d79084d65d9278d096
SQL
xiaolancara/Information_architechture
/8th week/M7 Lab 2 resources/dimension_output_example.sql
UTF-8
2,718
3.859375
4
[]
no_license
SET @exec_time = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s'); set @sql = concat(" SELECT distinct ord_disp_dt as 'Date String', YEAR(str_to_date(ord_disp_dt,'%m/%d/%Y')) as Year, MONTH(str_to_date(ord_disp_dt,'%m/%d/%Y')) as Month, Day(str_to_date(ord_disp_dt,'%m/%d/%Y')) as Day, Quarter(str_to_date(ord_disp_dt,'%m/%d/%Y')) ...
true
72e92ca973cf4ce9ad49fb5fe319203ad004770f
SQL
fmilani/dark
/backend/migrations/20200426_223703_better_cron_records_index.sql
UTF-8
105
2.6875
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "BSD-3-Clause" ]
permissive
CREATE INDEX IF NOT EXISTS idx_cron_records_tlid_canvas_id_id ON cron_records (tlid, canvas_id, id DESC)
true
2f21777da31ec227fb55800789bd592a98a252f8
SQL
sevengram/geoweather
/geoweather/sql/geocodes.sql
UTF-8
306
3.0625
3
[]
no_license
DROP TABLE IF EXISTS geocodes; CREATE TABLE geocodes ( id INTEGER PRIMARY KEY AUTOINCREMENT, query TEXT NOT NULL, formatted_address TEXT NOT NULL, longitude REAL NOT NULL, latitude REAL NOT NULL ); CREATE UNIQUE INDEX idx_query ON geocodes (query);
true
23d9366885f39dd8683d9126dc37c3a7369371fc
SQL
BalioFVFX/Database-Basics-MySQL-September-2018
/Table Relations/1. Mountains and Peaks/1. Mountains and Peaks.sql
UTF-8
294
3.4375
3
[]
no_license
CREATE TABLE mountains (id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(50) NOT NULL); CREATE TABLE peaks(id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(50) NOT NULL, mountain_id INT(11), CONSTRAINT FK_mountain_id FOREIGN KEY (mountain_id) REFERENCES mountains(id));
true
9723c5aa42d4a47aef2513755c23b694c3ad4f68
SQL
nagyist/OnlyOffice-CommunityServer
/build/sql/onlyoffice.upgradev111.sql
UTF-8
534
3.078125
3
[ "Apache-2.0", "MPL-1.1", "JSON", "CC0-1.0", "GPL-2.0-or-later", "MIT", "ISC", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.1-or-later", "MPL-2.0", "zlib-acknowledgement", "LicenseRef-scancode-public-domain", "BSD-3-Clause", "MS-PL", "LicenseRef-scancode-ms-net-library", "LicenseRef-sc...
permissive
DELIMITER DLM00 DROP PROCEDURE IF EXISTS upgrade111 DLM00 CREATE PROCEDURE upgrade111() BEGIN IF NOT EXISTS(SELECT * FROM information_schema.`COLUMNS` WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'files_file' AND COLUMN_NAME = 'thumb') THEN ALTER TABLE `files_file` ADD COLUMN `thumb` INT(1) NOT NULL ...
true
63b8faa2cf5a5140d9e5bd90d25bbc928ea8cb9b
SQL
kmaleche/Pewlett-Hackard-Analysis
/Queries/Employee_Database_challenge.sql
UTF-8
937
4.4375
4
[]
no_license
SELECT e.emp_no, e.first_name, e.last_name, t.title, t.from_date, t.to_date INTO retirement_titles FROM employees as e INNER JOIN titles as t ON (e.emp_no = t.emp_no) WHERE (e.birth_date BETWEEN '1952-01-01' AND '1955-12-31') ORDER BY (e.emp_no); SELECT * from retirement_titles; -- Use Dictinct with Orderby ...
true
92563336c167da599cdfd97642a3f33687aaf649
SQL
virtyaluk/leetcode
/problems/1112/solution.sql
UTF-8
276
3.375
3
[]
no_license
# Write your MySQL query statement below select student_id, course_id, grade from ( select *, rank() over(partition by student_id order by grade desc, course_id asc) as rn from Enrollments b ) a where rn = 1
true
c00fe8fa30d0e622858b4fdebe2ac384a4a3060b
SQL
shmztko/SimpleBlog
/doc/schema.sql
UTF-8
1,368
4.21875
4
[]
no_license
/* Create Tables */ DROP TABLE IF EXISTS BLOGS; CREATE TABLE BLOGS ( ID INT NOT NULL AUTO_INCREMENT, NAME VARCHAR(256) NOT NULL UNIQUE, CREATED_AT TIMESTAMP DEFAULT NOW(), MODIFIED_AT TIMESTAMP, PRIMARY KEY (ID) ); DROP TABLE IF EXISTS ARTICLES; CREATE TABLE ARTICLES ( ID INT NOT NUL...
true
fe66980992290d42fd79ca3931ad0eb0e294013f
SQL
sankirthan/spring-boot-multi-datasource
/src/main/resources/sql/customer.sql
UTF-8
592
2.71875
3
[ "Apache-2.0" ]
permissive
create table customer( customer_id int not null, first_name varchar(128) not null, last_name varchar(128) not null, primary key (customer_id) ); insert into customer(customer_id, first_name, last_name) values (1, 'Kevin', 'Keller'); insert into customer(customer_id, first_name, last_name) values (2, 'Jason', 'Cook...
true
55796f0a970f27886035e121bd280f4c1d2731e4
SQL
katherinechi/SQL_projects
/ExpGrad_RegressionData.sql
UTF-8
2,088
3.890625
4
[]
no_license
/* Query data for an analysis of outcomes for expected graduates for the past three semesters */ /* Includes campus, field of study, cumulative GPA, number of fails/withdrawals in courses, number of credits completed at other campuses */ SELECT DISTINCT A.EMPLID AS 'Student ID', A.STRM AS 'EB Term', A.EXP_...
true
a9d284af016fc06429d11c6d9647c2a24ff2cf41
SQL
radtek/abs3
/sql/mmfo/bars/Function/f_get_nd_val.sql
UTF-8
1,222
2.703125
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/function/f_get_nd_val.sql =========*** Run * PROMPT ===================================================================================== CREATE OR REPLACE FUNCTION BA...
true
32aa564075934eb55c7b16f0c5983650bad334d1
SQL
artudevcl/indicadoresuf
/sursteam_ci_ajax_db.sql
UTF-8
24,752
2.9375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 13-09-2021 a las 07:57:02 -- Versión del servidor: 10.4.19-MariaDB -- Versión de PHP: 7.3.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
4f4d3dc5910c8400afd3ec9f5a898d7c87d44014
SQL
judsonc/gpweb
/gpweb/instalacao/sql/atualizar_bd_mysql_134.sql
UTF-8
3,572
2.796875
3
[]
no_license
SET FOREIGN_KEY_CHECKS=0; UPDATE versao SET versao_codigo='8.1.4'; UPDATE versao SET ultima_atualizacao_bd='2012-12-02'; UPDATE versao SET ultima_atualizacao_codigo='2012-12-02'; UPDATE versao SET versao_bd=134; INSERT INTO sisvalores (sisvalor_titulo, sisvalor_valor, sisvalor_valor_id, sisvalor_chave_...
true
d13af1f4cdb72cdd37f8d17d53996c15d35a6245
SQL
esparta86/OnlineDonation
/Documentation/dataScript.sql
UTF-8
2,435
3.078125
3
[]
no_license
use donation; /* DATA */ INSERT INTO donation.USUARIO VALUES(1,'rcolocho',md5('rcolocho1$'),'2018-12-03'); INSERT INTO country VALUES(1,'Afghanistan'); INSERT INTO country VALUES(2,'Albania'); INSERT INTO country VALUES(3,'Argentina'); INSERT INTO country VALUES(4,'Austria'); INSERT INTO country VALUES(5,'Belize'); I...
true
6be0134ae1431af98cad587a0a8644152f8eb926
SQL
oswystan/bitmain
/store/pg.sql
UTF-8
874
3.0625
3
[]
no_license
--------------------------------------------------------------------------------- -- Copyright (C) 2017 wystan -- -- filename: pg.sql -- description: -- created: 2017-06-10 11:57:46 -- author: wystan -- ------------------------------------------------------------------...
true
58ba44b7c65d6a23cdf466ae1ccd519b87f68937
SQL
INNNOVACIS/SRI-Unsa
/SRIUnsa-ejb/src/main/java/com/innnovacis/unsa/util/CreateDatabase.sql
UTF-8
10,681
3.15625
3
[]
no_license
/* Created 11/10/2016 Modified 24/10/2016 Project Model Company Author Version Database mySQL 5 */ drop table IF EXISTS Estado; drop table IF EXISTS ProcesoFlujoDestino; drop table IF EXISTS TipoProduccion; drop table IF EXISTS FondoConcursable; drop table IF EXISTS TipoAsesoria; drop table IF EXISTS Es...
true
8fb640df97821e711a34d63ab6c3bbb3a2622aea
SQL
chenrenli/new.xiaolu.admin
/xiaolu_2018-06-08.sql
UTF-8
4,838
2.890625
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.7.19) # Database: xiaolu # Generation Time: 2018-06-08 11:21:23 +0000 # ************************************************...
true
0b087d7250bbd7ae8e5dc2b9e1d4e8529f9fc1e6
SQL
map82top/db_management_Course_work
/tests/excange_system_role_test.sql
UTF-8
4,078
3.484375
3
[]
no_license
\echo '==================== TEST 1 ======================' \echo 'Create INSTRUMENT TEMPLATE with deleted_time IS NOT NULL' \echo 'Instrument code - 110000' \echo 'Instrument short name - Fgz' \echo 'Instrument long name - Obotljqirijpufbfklmtqfpthojpvsiwvzftgphfcywqfuykbn' \echo 'Coupon rate - 1.0' \echo 'Coupon am...
true
fb3dc02203a999b433cbaadb746bfbba4294b83a
SQL
yashhjaggi1998/dbmsl
/basics/update.sql
UTF-8
677
3.1875
3
[]
no_license
set verify off DECLARE curr_date DATE := CURRENT_DATE; temp integer; id integer; p_cust_id CustomerYashh.cust_id%type; p_DateOfPayment CustomerYashh.dateOfPayment%type; p_Status CustomerYashh.Status%type; p_amount FineYashh.amount%type; BEGIN id := &id; SELECT cust_id,dateOfPayment,Status INTO p_cust_id,p_dateOf...
true
ead06eef15ec9bee1e6853792a2fae531d9c5c3f
SQL
7FigureSwagger/BootcampX
/1_queries/noGmail.sql
UTF-8
104
2.671875
3
[]
no_license
SELECT id, name, email, cohort_id FROM students WHERE NOT email LIKE '%@gmail.com' OR phone IS null;
true
9db616d7e7a7a47f0245c8768bae06f9a6fc5522
SQL
katdiese/sqlDay1
/sqlStore/schema-store.sql
UTF-8
795
3.5625
4
[]
no_license
DROP DATABASE IF EXISTS galvanize; CREATE DATABASE galvanize; \connect galvanize; CREATE TABLE stores( id serial PRIMARY KEY, name varchar(255), location text, web_address text, category text ); CREATE TABLE products( id serial PRIMARY KEY, price decimal, barcode integer UNIQUE, name varchar(255), ...
true
58af89289d0b53ee552cf113012e54dae1a78615
SQL
W-Varg/sisTerminal
/db_terminal.sql
UTF-8
8,107
2.6875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 23-11-2017 a las 02:00:16 -- Versión del servidor: 10.1.19-MariaDB -- Versión de PHP: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
true
356e31e1332954c821cb9f297bda5644180de42e
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day24/select1721.sql
UTF-8
177
2.6875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-23T17:21:00Z' AND timestamp<'2017-11-24T17:21:00Z' AND temperature>=0 AND temperature<=60
true
be083e55a289d11f791b5d18a503eb8b63abecd6
SQL
vudqpf/java
/jsl43_query_연습.sql
UHC
1,101
4.1875
4
[]
no_license
/*ϴ ã*/ select a.empno, a.ename, a.job,a.deptno, b.dname from emp a, dept b where a.deptno = b.deptno; /*̸ 'ALLEN' μ ̸ ã*/ select b.dname from emp a, dept b where a.deptno = b.deptno and a.ename = 'ALLEN'; /*ҹ */ /* İ */ select b.dname from emp a, dept b where a.deptno = b.deptno and a.ename = (SELE...
true
d4bee0fafa67aee316a19a7b650e225d2002cd2c
SQL
qiaokeke/huzhou
/src/main/resources/sql/init.sql
UTF-8
23,334
3.953125
4
[]
no_license
# 一段时间内的数据 http://blog.csdn.net/zhaitonghui/article/details/53080992 SELECT P_TIME,P_A_WGGL FROM tbl_power_info WHERE P_TIME BETWEEN '2017-08-25 ' AND '2017-08-26 '; # 查询本月的数据 select * from tbl_power_info where DATE_FORMAT(P_TIME,'%Y-%m')=DATE_FORMAT(NOW(),'%Y-%m'); # 查询本周的数据,上周的数据,到周六 select * from tbl_power_info wh...
true
534db36dd1867fd072a811f909cc6d530a59928c
SQL
sebasaraujo/aereopuerto
/Aereopuerto/Aereopuerto-ejb/sql/CONDICIONES.sql
UTF-8
857
3.3125
3
[]
no_license
CREATE TABLE CONDICIONES ( CODIGO_CO serial NOT NULL, NOMBRE_CO varchar(100) NOT NULL, ESTADO_CO varchar(1) NOT NULL, USUARIO_ACT_CO integer NOT NULL, FECHA_ACT_CO DATE NOT NULL, CONSTRAINT CONDICIONES_pk PRIMARY KEY (CODIGO_CO) ) WITH ( OIDS=FALSE ); CREATE TABLE TARIFA_CONDICIONES ( CODIGO_TC serial NOT NUL...
true
238995795ebfad76a6c6eb540c038372eda2431f
SQL
popasmuerf/dojo
/dojo.inserts.sql
UTF-8
10,525
3.3125
3
[]
no_license
use dojo; INSERT INTO person(first_name,last_name) VALUES('Jeff','Gordon'); INSERT INTO person(first_name,last_name) VALUES('Saeed','Vanderdoost'); INSERT INTO person(first_name,last_name) VALUES('Rafael','Morales'); INSERT INTO person(first_name,last_name) VALUES('Michael','Brown'); INSERT INTO person(first_name,...
true
6c85ba6e20c92d3045051d354903e25d78ad9f61
SQL
rodawoolf/bionic
/bionic_roda.sql
UTF-8
6,970
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.3 -- https://www.phpmyadmin.net/ -- -- Хост: localhost -- Время создания: Авг 16 2016 г., 12:21 -- Версия сервера: 10.1.14-MariaDB -- Версия PHP: 7.0.10RC1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
422ae4624ef62b99ba3e5046da8f07c4eaf96bbe
SQL
kirant10/utplsql
/rooms_git.sql
UTF-8
3,168
4.15625
4
[]
no_license
create table rooms_git ( room_key number primary key, name varchar2(100) not null ); create table room_contents_git ( contents_key number primary key, room_key number not null, name varchar2(100) not null, create_date timestamp default current_timestamp not null, constraint fk_rooms_git foreign key (room...
true
58dddc8e9cf313bf69fe689c1cacd256caef7906
SQL
HermesBoots/holbertonschool-higher_level_programming
/0x0D-SQL_introduction/15-groups.sql
UTF-8
152
2.96875
3
[]
no_license
-- show the nmber of people with each score in the student table SELECT score, count(*) AS number FROM second_table GROUP BY score ORDER BY score DESC;
true