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
115116211c6a495a3d551d53ff523966b243a00c
SQL
zjjnewman/JavaWeb
/book/web/WEB-INF/lib/sql/create_t_book.sql
UTF-8
259
2.609375
3
[]
no_license
DROP TABLE IF EXISTS t_book; CREATE TABLE t_book( `id` INT PRIMARY KEY auto_increment, `name` VARCHAR(100), `price` DECIMAL(11, 2), `author` VARCHAR(100), `sales` INT, `stock` INT, `img_path` VARCHAR(200) ); ALTER TABLE t_book CHARACTER SET utf8;
true
0e54904f2233e4fe47c5a724d027cf01f2912713
SQL
doesDWQ/swooleFrame
/meta/sql/user.sql
UTF-8
468
3.078125
3
[]
no_license
use swoole; create table IF NOT EXISTS user ( `id` int(11) primary key auto_increment comment '主键', `name` varchar(10) not null default '' comment '', `age` int(10) not null default '0' comment '年龄', `gender` varchar(10) not null default '男' comment '性别', `ctime` int(11) not null default '0' comment '表的创...
true
8cf1aaa21b0feca6cbfb6eee6523baa792d2b07a
SQL
VenkataGangireddy/dap_pstm
/Database/Create Stored Procedures.sql
UTF-8
3,303
4.40625
4
[]
no_license
-- Procedure to Get Topics DELIMITER $$ CREATE DEFINER=`dapproject`@`%` PROCEDURE `Get_Topics`() BEGIN SELECT a.topic_id,a.Name, b.Topic_Entity_Id,b.Entity_Type,b.Entity_Value FROM topics_tbl a, topic_entities_tbl b WHERE a.topic_id = b.topic_id AND a.Active_flag=1 AND b.Active_flag=1; END$$ DELIMITER ; -- Pro...
true
a6ed76aac7bdb8ef8b11a942f0041939e9591667
SQL
tomrembrown/hebrewlettersgame
/database/createTables.sql
UTF-8
1,099
3.671875
4
[ "MIT" ]
permissive
/* ----------------------------------------------------------------- Script to create the Hebrew Letter Game database *** Note this will delete all tables and therefore delete all data -------------------------------------------------------------------*/ -- Assume database has been created and we are logged into the ...
true
257702b0ecff1c0a2e315ce1f76963f4511f1aee
SQL
KadenHerr/KadenHerr-nearbyplaces-api
/db.sql
UTF-8
272
3.015625
3
[]
no_license
create table mynearbyplaces.place ( id bigserial primary key, name text not null unique, address text, info text ); create table mynearbyplaces.review ( id bigserial primary key, username text, comment text, placename text references mynearbyplaces.place(name) );
true
653c30d62846c36fc206a8bf4cccaf1035e8c923
SQL
kawabata-neolis/KATO
/KATO/SQL/common/C_SQL_SHOHINHYOKATANKARIREKI_UPD.sql
UTF-8
547
3.75
4
[]
no_license
MERGE INTO 商品評価単価履歴 AS A USING ( SELECT @p0 AS 商品コード ,@p1 AS 評価単価 ,@p2 AS 登録日時 ) AS B ON ( A.商品コード = B.商品コード AND A.登録日時 = B.登録日時 ) WHEN MATCHED THEN UPDATE SET 評価単価 = B.評価単価 WHEN NOT MATCHED THEN INSERT( 商品コード ,評価単価 ...
true
63030da838049392573bdfeaa7212700372b893b
SQL
zwj499/demo
/src/main/resources/sql/dnf/account.sql
UTF-8
218
2.546875
3
[]
no_license
CREATE TABLE IF NOT EXISTS `account`( `id` INT UNSIGNED AUTO_INCREMENT, `account` VARCHAR(100) NOT NULL, `create_time` BIGINT, `sys_user_id` INT, PRIMARY KEY ( `id` ) )ENGINE=InnoDB DEFAULT CHARSET=utf8;
true
2e77aafd244b43312f456cb52fee307ed7d192ea
SQL
antoonelli/login
/site.sql
UTF-8
1,928
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 08-Dez-2019 às 12:34 -- Versão do servidor: 10.4.8-MariaDB -- versão do PHP: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
true
3a785a97611275226474401659bca8295c6a809e
SQL
radumpopescu/mining-balances
/db.sql
UTF-8
2,145
3.140625
3
[]
no_license
/*!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 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!4010...
true
b1d0e0fb224d2996558dc9ce71196d3fff906c98
SQL
justyeh/www.justyeh.top
/backup/mysql/user.sql
UTF-8
1,285
3.1875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50720 Source Host : localhost:3306 Source Database : justyeh_temp Target Server Type : MYSQL Target Server Version : 50720 File Encoding : 65001 Date: 2019-01-05 11:49:13 */ SET FOREIGN_KEY_CHECKS=0; ...
true
791986a023278ac09cd7411b570881e1d8db826c
SQL
slycie/lib-sql
/latest_record.sql
UTF-8
237
3.171875
3
[]
no_license
# we have to do this to only get the latest record select * from (select *, row_number() over(partition by id order by update_at desc) as latest_record from data_lake.mrr_winks_accommodations order by id) a where latest_record = 1
true
5dd4a41d028095cc88d50224dcac2f242daaa394
SQL
koreahong/bigquery
/ch07/18.sql
UTF-8
422
3.375
3
[]
no_license
CREATE OR REPLACE MATERIALIZED VIEW ch07eu.oneway_rentals AS WITH oneway AS ( SELECT EXTRACT(date FROM start_date) AS rental_date, duration, start_station_name, end_station_name FROM ch07eu.cycle_hire WHERE start_station_name != end_station_name ) SELECT rental_date, AVG(duration) AS avg_duration, start...
true
a7d8e91dc313152d3eaa54df8a06c4d247afc1bb
SQL
MartinGeisse/electronics-game
/resource/dbinit/dbinit.sql
UTF-8
3,048
3.5
4
[]
no_license
DROP SCHEMA IF EXISTS "electronics_game" CASCADE; CREATE SCHEMA "electronics_game"; ----------------------------------------------------------------------------------------------------------------------- -- designs ------------------------------------------------------------------------------------------------------...
true
10c3c2aec9c78d1a491de4243ee27fb426802ec0
SQL
GuilhermeSRibeiro/Trybe
/03 - Desenvolvimento Back-End/Bloco 20/20.2/questions/exer01.sql
UTF-8
706
3.640625
4
[]
no_license
-- 1. Monte uma query que exiba seu nome na tela; SELECT 'Guilherme'; -- 2. Monte uma query que exiba seu nome, sobrenome, cidade natal e idade na tela; SELECT 'Guilherme', 'Ribeiro', 'Belo Horizonte', 31; -- 3. Monte uma query que, além de exibir todas as informações já mencionadas, identifique cada coluna usando o ...
true
a63e6bff183bb5ebb04b4d034c11d2c92fdc00e8
SQL
hspasov/training-projects
/hspasov-sql-ex/task26.sql
UTF-8
405
4.0625
4
[ "Apache-2.0" ]
permissive
-- Short database description "Computer firm" -- Find out the average price of PCs and laptops produced by maker A. -- Result set: one overall average price for all items. SELECT avg(price) AS avg_price FROM ( SELECT price FROM PC JOIN Product ON PC.model = Product.model WHERE maker = 'A' UNION ALL SELECT price FROM ...
true
e5cb612e718a9640206d3cf95a546e569b6c9479
SQL
Swati707/Course-Progress-Tracker-Screenshots
/Microsoft Professional Program in Data Science/Course 5 Querying Data with Transact-SQL/lab8.sql
UTF-8
2,535
4.34375
4
[]
no_license
--Challenge 1: Retrieve Regional Sales Totals --1. Retrieve totals for country/region and state/province SELECT a.CountryRegion, a.StateProvince, SUM(soh.TotalDue) AS Revenue FROM SalesLT.Address AS a JOIN SalesLT.CustomerAddress AS ca ON a.AddressID = ca.AddressID JOIN SalesLT.Customer AS c ON ca.CustomerID = c.Custo...
true
696515eedf929bef7611bf4189346fcd882d87d7
SQL
SanjeevSaraswat/SoftDebugger
/DBScript/01-01-2018/AzureManagement.sql
UTF-8
1,683
3.25
3
[]
no_license
CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'Krish001,@'; CREATE DATABASE SCOPED CREDENTIAL Comapnyadmincredential WITH IDENTITY = 'Sanjeev02Saraswat', SECRET = 'Krish001,@'; CREATE EXTERNAL DATA SOURCE RemoteReferenceData WITH ( TYPE=RDBMS, LOCATION='softdebugger.database.windows.net', DATABASE_NAME='CompanyAdmin_...
true
a52c9d33eeabed35d6e175bc33b1d6a8c8b2574f
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/tables/AUDITORIALIN.sql
WINDOWS-1250
1,525
2.796875
3
[]
no_license
-------------------------------------------------------- -- DDL for Table AUDITORIALIN -------------------------------------------------------- CREATE TABLE "AXIS"."AUDITORIALIN" ( "SAUDITORIA" NUMBER(6,0), "NAUDLIN" NUMBER(6,0), "NAUDNUM" NUMBER(10,0), "TAUDLIN" VARCHAR2(120 BYTE), "FAUDLIN" DATE, "C...
true
671c31c6466577cc7ad6c3a167cfe71161dc272a
SQL
FabioFumioWada/Oracle
/Long_to_Varchar.sql
UTF-8
1,118
3.1875
3
[]
no_license
Long Varchar Conversão A function abaixo, foi adaptada em "29/08/2018", para utilizar os dados de Ocorrências do Aluno (campo Long), para que pudesse ser lido no integrador da Escola em Movimento. CREATE OR REPLACE FUNCTION RM.FNC_LONG_TO_VARCHAR( V_IN_ROWID ROWID, ...
true
385a557a3b8af8a774b1c8e9963ecc45d587105d
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day19/select0547.sql
UTF-8
178
2.625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-18T05:47:00Z' AND timestamp<'2017-11-19T05:47:00Z' AND temperature>=29 AND temperature<=55
true
dce2d2f5d51938c041a202e8d0a6c042c588917d
SQL
lgcarrier/AFW
/5.2.3/Database/Constraints/AFW_13_EXPOR_APLIC_FK1.sql
UTF-8
192
2.78125
3
[ "MIT" ]
permissive
SET DEFINE OFF; ALTER TABLE AFW_13_EXPOR_APLIC ADD ( CONSTRAINT AFW_13_EXPOR_APLIC_FK1 FOREIGN KEY (REF_SESN) REFERENCES AFW_12_SESN (ID_SESN) ON DELETE CASCADE ENABLE VALIDATE) /
true
7eb215632d375c4b6b8a7d223997984a7c18a86e
SQL
rarc41/repaso_practico_SQL_platzi
/ejercicios/selectores_de_rango.sql
UTF-8
412
3.15625
3
[]
no_license
select * from platzi.alumnos where tutor_id in (1,2,3,4); select * from platzi.alumnos where tutor_id >=1 and tutor_id<=10; select int4range(10,20) @>3; select numrange(11.1, 22.2) && numrange(20.0, 30.0); select upper(int8range(15, 25)); select int4range(10, 20) * int4range(15, 25); select isempt...
true
45278d46724379b106fcb864e149e14eaed2b42f
SQL
Auelocks/Friday_Night_Lights
/Resources/FNL_Distance Data Schema.sql
UTF-8
157
2.84375
3
[]
no_license
-- creating table for well distance Create Table well_distance ( well_id VARCHAR NOT Null, Final_dist DECIMAL, PRIMARY KEY (well_id), UNIQUE (well_id) );
true
d23b813b0e1e5abe4d3726c336a69da4aeba4f29
SQL
joyzoso/SQL
/Joes2Pros/Lab9.2_TableHints.sql
UTF-8
361
2.5625
3
[]
no_license
/* ** Joes2Pros.com 2009 ** All Rights Reserved. */ ---Code for Lab 9.2 Table Hints /*Make sure you are using the JProCo database*/ --Skill Check 1: --Put this code in the first query window and run BEGIN TRAN UPDATE [Grant] SET Amount = 1 WAITFOR DELAY '00:03:00' ROLLBACK TRAN --Put this code in the second quer...
true
9814dd397d7695f646832a5f76c66cf5157498bf
SQL
MauricioHz/Gestion-documentos-laravel
/laravel-pipeline-document/pipelinedoc.sql
UTF-8
7,210
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 04-09-2018 a las 20:57:49 -- Versión del servidor: 10.1.31-MariaDB -- Versión de PHP: 7.0.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
1d3798bd9cf8a416b537a1ade76626a9d475254c
SQL
graemenickerson/BootcampX
/2_queries_joins/2_cohort_total_assign_duration.sql
UTF-8
274
3.140625
3
[]
no_license
-- 2_cohort_total_assign_duration.sql -- Graeme Nickerson -- October 2019 SELECT sum(assignment_submissions.duration) as total_duration FROM assignment_submissions JOIN students ON students.id = student_id JOIN cohorts ON cohorts.id = students.cohort_id WHERE cohorts.name = 'FEB12';
true
27f10c2806aff0d1b72f3f3b7edab9a98d7f4d38
SQL
hwj19941028/Oh-mygit
/HTraffic/分析语句/traffic_analysis-解释.sql
UTF-8
19,334
4.25
4
[]
no_license
#创建HIVE数据库 叫 traffic_analysis CREATE DATABASE traffic_analysis; #使用刚才创建的数据库 USE traffic_analysis; #创建数据表 traffic_data CREATE TABLE traffic_data ( GSID string, #卡口ID CAEPLATE string, #车牌 PLATECOORD string, #号牌种类 PASSTIME string, #通过时间 CARBRAND string, #车辆品牌 CARCOLOR string, #车身颜色 PLATECOLOR string,...
true
605dc17b4e75f50ba3679b1884c6b3f18320cf09
SQL
buffyf/postgresqlDB
/todo.sql
UTF-8
1,014
3.453125
3
[]
no_license
brew services start postgresql createdb todolist psql todolist create table todos ( id serial primary key, title varchar(255) Not Null, details text null, priority integer not null default '1', created_at timestamp (0) not null, completed_at timestamp (0) null ); --to view the columns in th...
true
97a6ffca07d8da92045ea7bf481ab77eccc517fd
SQL
arpitnarechania/sqlqueries
/meganz_sdk.sql
UTF-8
178
2.78125
3
[]
no_license
SELECT id, content FROM statecache CREATE TABLE IF NOT EXISTS statecache (id INTEGER PRIMARY KEY ASC NOT NULL, content BLOB NOT NULL) SELECT content FROM statecache WHERE id = ?
true
492145292b1c04cc0b3bd256cfa59df13844a642
SQL
shadiaali/Ali_Shadia_IID-SVG
/info.sql
UTF-8
2,243
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Oct 30, 2018 at 04:06 AM -- Server version: 5.7.23 -- PHP Version: 7.2.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
d7965206844b849c8d3a65d4816be8f25a871744
SQL
kartoza/geocris-inasafe-fba
/fixtures/tests/backend/data/cdema/sql/07_osm_admin_to_admin_boundaries.sql
UTF-8
701
2.953125
3
[ "MIT" ]
permissive
--- Country is equal to admin level 2 insert into country (id, geom, country_code, name) (select id, st_multi(geometry), id, name from osm_admin where admin_level = 2) on conflict DO NOTHING ; --- District is equal to admin level 6 insert into district (id, geom, dc_code, name) (select id, st_multi(geometry), id, name...
true
b10b66c545f5a500fcbdf8ef05b730899437a3ae
SQL
nriccio19/todo-project-backend
/src/database.sql
UTF-8
287
2.65625
3
[]
no_license
CREATE DATABASE todos_db; CREATE TABLE users (id SERIAL PRIMARY KEY NOT NULL, name VARCHAR(30), api_key TEXT); CREATE TABLE todos (id SERIAL PRIMARY KEY NOT NULL, owner_id INTEGER REFERENCES users(id), task TEXT UNIQUE, done BOOLEAN, date_achievement TIMESTAMP NOT NULL DEFAULT NOW());
true
b7f961069046720cd6b4d29ca26151e8cfacd62a
SQL
Javierd-Degree/Practicas_EDAT
/Practica 2/querties.sql
UTF-8
2,828
4.375
4
[]
no_license
--Javier Delgado del Cerro --Javier López Cano --1 --Take the different ISBNs from a book and count its editions and different languages SELECT COUNT(ISBN) as NumEditions, COUNT(DISTINCT(language)) as NumLanguages FROM editions WHERE book_id IN (SELECT ID FROM books WHERE title = 'El Club Dumas'); --2 --First, we ...
true
ea47d96aeabec8f576d322590f83589525475b64
SQL
VivieneFoz/Makder
/Finals/PHP/Student Module/makder.sql
UTF-8
2,494
2.71875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: May 15, 2019 at 08:38 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
c4712c6d8a6c0576200c1b12e9126fac6beb1528
SQL
weberlu88/2019-Spring-MIS-DB
/期末作業/Stored procedure/fk_TopThreePopularItemsBought.sql
UTF-8
420
2.8125
3
[]
no_license
CREATE DEFINER=`catcat`@`192.168.56.1` FUNCTION `fk_TopThreePopularItemsBought`( ) RETURNS varchar(50) CHARSET utf8 BEGIN -- 沒辦法篩月分了 DECLARE outputString varchar(50); SELECT group_concat(Item_id) INTO outputString FROM ( SELECT COUNT(Order_id) AS `count`, Item_id FROM tblOrderItems GROUP BY Item_id...
true
107032da8dc26e64a308d5dad1e6f29f78a86ae2
SQL
garkell/com_gavoting
/administrator/sql/install.mysql.utf8.sql
UTF-8
3,638
3.0625
3
[]
no_license
CREATE TABLE IF NOT EXISTS #__gavoting_positions ( id int(11) UNSIGNED NOT NULL AUTO_INCREMENT, ordering INT(11) DEFAULT '0', state TINYINT(1) DEFAULT '0', checked_out INT(11) DEFAULT '0', checked_out_time DATETIME NULL , created_by INT(11) DEFAULT '0', modified_by INT(11) DEFAULT '0', created_date DATETIME...
true
fbf790ce28ff19d11cc3e64d207467b2463f1b28
SQL
Jasig/ssp-training
/sspTrainingSetup/dataScripts/mssql/sspTrainingSetStudentsExternal.sql
UTF-8
76,061
3.40625
3
[ "Apache-2.0" ]
permissive
/** * Licensed to Apereo under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Apereo licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in ...
true
f59fce87162c1ed04b17cc8bc8cb3856a8713241
SQL
LuisAlbertoGG/Practica1-Ingenieria-de-Software
/CreaTablas.sql
UTF-8
972
3.265625
3
[]
no_license
--Creación de tablas CREATE TABLE USUARIO( IDUSUARIO INT PRIMARY KEY NOT NULL, NOMBRE TEXT NOT NULL, APELLIDOP TEXT NOT NULL, APELLIDOM TEXT NOT NULL, CORREO TEXT NOT NULL, NUMERO INT NOT NULL); CREATE TABLE CONTRASEÑA( ID INT NOT NULL REFERENCES USUARIO(IDUSUARIO), CONTRASEÑA TEXT NOT NULL); --Inserts en USUARIO INS...
true
75c819868313735934aec2301ec7c2e12ea18ff0
SQL
yuanyixiong/SSH
/CRM/crm-03023-55 PM.sql
UTF-8
45,236
2.875
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4529 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.6.15) # Database: qsx_crm # Generation Time: 2016-03-02 07:55:43 +0000 # ***********************************************...
true
d8ed93c50e4d0b3987dc5bcf4fb154a00baf90f9
SQL
yaochuanting/sql_code
/学科排名.sql
UTF-8
983
3.875
4
[]
no_license
####updated by:吴小艳 ####update time:2019-12-20 ####增加流水业绩订单量及去除合同状态为废弃的 ####updated by:姚传婷 ####update time:2020-03-05 ####修改架构,统一使用cdme表 select cdme.class 类型, cdme.name 姓名, cdme.job_number 员编, sum(tcp.sum/100) 流水业绩, count(distinct tcp.contract_id) 流水成单量, cdme.department_name 所在部门 from view_tms_contract_paymen...
true
f3f601b7ae6e0268b925a8f0b7fb716b1de3a8aa
SQL
andrei4002/qWat
/sql/create/10_installation/od_installation_pressurecontrol.sql
UTF-8
6,518
3.21875
3
[]
no_license
/* qWat - QGIS Water Module SQL file :: installation pressure control */ /* CREATE TABLE */ DROP TABLE IF EXISTS distribution.od_installation_pressurecontrol CASCADE; CREATE TABLE distribution.od_installation_pressurecontrol (id serial PRIMARY KEY); COMMENT ON TABLE distribution.od_installation_pressurecontrol IS ...
true
5cf9f6a968c4eea03db42340e1987ad500569f44
SQL
rogepi/forumsys
/forumsys.sql
UTF-8
4,726
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- 主机: localhost -- 生成日期: 2020-12-29 13:27:02 -- 服务器版本: 8.0.22 -- PHP 版本: 7.3.4 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_SET_CLI...
true
e352eb05822b9d532f0fa5e85c1ff58977188598
SQL
sirilalithaadapa/DBMS-lab
/p6-a.sql
UTF-8
265
2.78125
3
[ "MIT" ]
permissive
create or replace procedure db(p in programmer.pname%type) as d programmer.dob%type; begin select dob into d from programmer where pname=p; dbms_output.put_line('Dob is '||d); exception when no_data_found then dbms_output.put_line('NO DATA'); end;
true
179b828e20df96d7edc02befc3372c80a7ff21d7
SQL
CHENG-KAI/Inventory-System-Implementation
/Database- inventory_system_implementation.sql
UTF-8
1,500
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.10 -- http://www.phpmyadmin.net -- -- Host: localhost:8889 -- Generation Time: Oct 18, 2017 at 08:32 AM -- Server version: 5.5.42 -- PHP Version: 7.0.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `inventory_system_implementation` -- -- -----...
true
ac59d607429ff6073d59a3dc681a399d57ce58b7
SQL
DidiMilikina/DataCamp
/Python Programmer - Career Track/11. Introduction to Relational Databases in SQL/01. Your first database/03. ADD a COLUMN with ALTER TABLE.sql
UTF-8
699
3.890625
4
[]
no_license
''' ADD a COLUMN with ALTER TABLE Oops! We forgot to add the university_shortname column to the professors table. You've probably already noticed: In chapter 4 of this course, you'll need this column for connecting the professors table with the universities table. However, adding columns to existing tables is easy,...
true
558e3e002bc85325cc5c9ccb3c821c24af9d7dae
SQL
Ketan14a/Project-Group-Formation-Web-Application
/SQL/spLoadSurveyQuestionsBySurveyID.sql
UTF-8
353
2.96875
3
[]
no_license
USE CSCI5308_24_DEVINT; DELIMITER $$ DROP PROCEDURE IF EXISTS spLoadSurveyQuestionsBySurveyID $$ CREATE PROCEDURE spLoadSurveyQuestionsBySurveyID ( IN SurveyID BIGINT ) BEGIN select distinct Questions.id,Questions.question, Questions.type from SurveyQuestions cross join Questions where SurveyQuestions.surveyID...
true
2fe5f1a1a7b8b980d356a0f260f2e8190582922a
SQL
ThayerMDSG/paxdelay_general
/sql/mysql/load_data/m_CreateAmericaWestItinerariesTable_load.sql
UTF-8
1,176
3.234375
3
[]
no_license
drop table if exists tmp_load_americawest_itineraries; create table tmp_load_americawest_itineraries ( itinerary_id numeric(12, 0) not null, ticket_number numeric(13, 0) not null, num_flights numeric(2, 0) not null, origin char(3) not null, destination char(3) not null, departure_time char(5) not null, depa...
true
9c96b44b5fe31937a61eafbfb404b7e78870b5f4
SQL
Zakaria-Rihani/Labshop
/db/categorie.sql
UTF-8
2,178
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : mer. 19 mai 2021 à 15:05 -- Version du serveur : 10.4.11-MariaDB -- Version de PHP : 7.2.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SE...
true
cfc0bdf7d582d4cc05a9386153f98235bdbef7f1
SQL
technologic27/yelp-reviews
/sql_scripts/schema/checkin_schema.sql
UTF-8
251
2.5625
3
[]
no_license
use yelp; CREATE TABLE `checkin` ( date text, business_id varchar(100), CONSTRAINT checkin_fk FOREIGN KEY (business_id) REFERENCES business(business_id) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
true
e2d602d336610dcc1acbe7ebc3a95cdcab93a85d
SQL
epayne323/sql-challenge
/EmployeeSQL/employees_queries.sql
UTF-8
2,414
4.59375
5
[]
no_license
-- 1. 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 e INNER JOIN salaries s ON e.emp_no = s.emp_no; -- 2. List employees who were hired in 1986. SELECT e.emp_no, e.hire_date FRO...
true
09494b98852d4a8a574128a5d31e93ec0b735da8
SQL
surazhevkirill123/Oracle_DB
/MMF_2_19/upgrade/upgrade001/tables/user.sql
UTF-8
1,028
4.125
4
[]
no_license
DEFINE TABLESPACE_NAME = &&1 DEFINE END_DATA = '_DATA' DEFINE END_INDEX = '_INDEX' CREATE TABLE "user" ( ID INT GENERATED ALWAYS AS IDENTITY INCREMENT BY 1 START WITH 1 MINVALUE 1 NOMAXVALUE NOT NULL , email VARCHAR2(255) NOT NULL , login VARCHAR2(255) NOT NULL , first_name VARCHAR2(255) , last_name VARCHAR2(255) ...
true
d250cf2771df7196cb764837fa5c215c8b562bce
SQL
neostreet/poker_session_data
/nil_below_third2.sql
UTF-8
233
2.59375
3
[]
no_license
use poker select count(*),poker_session_date from poker_sessions where poker_style = 1 and poker_flavor = 3 and num_entries = 6 group by poker_session_date having count(*) >= 3 and max(place) <= 3 order by poker_session_date; quit
true
3e78ce44c62be32b5f043089a210a27b40567bc0
SQL
codershona/SQL-Server-Side-Learning
/SQL NULL Values.sql
UTF-8
1,884
4.15625
4
[]
no_license
SQL NULL Values What is a NULL Value? A field with a NULL value is a field with no value. If a field in a table is optional, it is possible to insert a new record or update a record without adding a value to this field. Then, the field will be saved with a NULL value. Note: A NULL value is different from a zero value...
true
15e7495474640fde6200ecada77b26e56fdb1648
SQL
Aamirbashir/Test-assignment-for-Laravel
/my_films.sql
UTF-8
8,996
3.125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 04, 2018 at 07:26 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.1.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
3963db189d46bc89c3cb360e210f89a656ba6d2a
SQL
rupindermonga/SQLPractice
/datatypes.sql
UTF-8
2,750
4.09375
4
[]
no_license
-- CHAR is of fixed length after that it truncates. it pads on right side with the blanks, though when we retreive training spaces are removed -- if not fixed length use VARCHAR -- Decimal(5,2) ... it can have max 5 digits including decimals and 2 is number of decimals 999.99 -- CREATE TABLE items(price DECIMAL(5,2));...
true
25b50f99b928b68f287bd87b0f4458bf7e64ceee
SQL
imamfadhkur/website-si-penjualan-tiket-KAI
/reservasi_tiketkai.sql
UTF-8
6,017
2.796875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 13, 2020 at 04:58 AM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
104e47b4d8fcb5b3fd7f756d00e30344bb7c0d47
SQL
kabica/LightBnB
/1_queries/average_length_of_reservation.sql
UTF-8
79
2.578125
3
[]
no_license
SELECT ROUND(avg(end_date-start_date),4) as average_duration FROM reservations;
true
e07e705e3d88e5b8ec9cbe3c9d381a3082afef78
SQL
amt1/rental-shop-project
/project-code/db/rental_shop.sql
UTF-8
3,318
3.75
4
[]
no_license
DROP TABLE IF EXISTS past_rentals; DROP TABLE IF EXISTS current_rentals; DROP TABLE IF EXISTS rentals; DROP TABLE IF EXISTS transactions; DROP TABLE IF EXISTS stock_items; DROP TABLE IF EXISTS credit_cards; DROP TABLE IF EXISTS customers; DROP TABLE IF EXISTS sizes; DROP TABLE IF EXISTS item_status_codes; DROP TABLE IF...
true
93ba8de8b4e24495c6d48f697a1728325056f3a7
SQL
fahadekm/PJS
/Scripts/ddl/create_tbl_packages.sql
UTF-8
420
2.71875
3
[]
no_license
CREATE TABLE `packages` ( `ID` bigint(11) NOT NULL AUTO_INCREMENT, `Name` varchar(45) NOT NULL, `Description` varchar(45) DEFAULT NULL, `duration` int(11) DEFAULT NULL, `StartDate` datetime NOT NULL, `EndDate` datetime NOT NULL, `Rate` decimal(10,3) NOT NULL, `UpdatedBy` bigint(11) NOT NULL, `UpdatedD...
true
4654fbad8e5de8a4a77e84e7b1c3ae96b937295f
SQL
AdRoll/batchiepatchie
/migrations/00017_add_job_queue_timestamp_index_to_jobs.sql
UTF-8
275
2.6875
3
[ "MIT" ]
permissive
-- +goose Up -- SQL in this section is executed when the migration is applied. CREATE INDEX job_queue_timestamp_jobs ON jobs (job_queue, last_updated); -- +goose Down -- SQL in this section is executed when the migration is rolled back. DROP INDEX job_queue_timestamp_jobs;
true
068d7910729a8520f9ff21f0e2e28eeae5876c08
SQL
swisscom/open-service-broker
/broker/core/database/src/main/resources/db/migration/V1_0_16__add_PK_service_details.sql
UTF-8
1,344
3.375
3
[ "Apache-2.0" ]
permissive
DROP PROCEDURE IF EXISTS create_IDX_PK_service_details; DELIMITER // CREATE PROCEDURE create_IDX_PK_service_details() BEGIN CREATE TEMPORARY TABLE `tmp_service_instance_service_detail` ( `service_instance_details_id` BIGINT(20) NULL DEFAULT NULL, `service_detail_id` BIGINT(20) NULL DEFAULT NULL ); ...
true
712f0555945d8ecd09734aa46c184e4f9baad1ec
SQL
mohammed-elattar/GuestBookMVC
/blog.sql
UTF-8
9,123
2.640625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 21, 2019 at 10:38 PM -- Server version: 5.7.24-0ubuntu0.16.04.1 -- PHP Version: 7.2.14-1+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!...
true
5015839105743454e8b1f0f364495a34fc66677f
SQL
Greeshmapogula/website-for-recovery-of-payment-delays
/complaintdb (1).sql
UTF-8
4,663
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 24, 2019 at 11:52 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
4addbde80395dc0028990866c2bca180b59001e5
SQL
issyzac/Daarul
/tea/pmngdb.sql
UTF-8
34,719
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 11, 2014 at 10:45 PM -- Server version: 5.6.12-log -- PHP Version: 5.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
0e25a3b22ffcf066cea2ebc7b632e49b24a7fc64
SQL
LIZMF/Proyecto-5
/PrototipoSat.sql
UTF-8
1,466
3.546875
4
[]
no_license
CREATE TABLE REGISTRO( MATRICULA VARCHAR2 (15) NOT NULL, CONTRASENA VARCHAR2 (30) NOT NULL, CONSTRAINT PK_REGISTRO PRIMARY KEY(MATRICULA) ); CREATE TABLE CANDIDATOS ( MATRICULA VARCHAR2 (15) NOT NULL, NOMBRE VARCHAR2(30) NOT NULL, APELL_PATERNO VARCHAR2(30) NOT NULL, APELL_MAT VARCHAR2(30) NOT NU...
true
4f435c87f6a22949bd6dea059a7289da34b09a85
SQL
jasonsedwards/FinishIt
/source/install/schema.sql
UTF-8
2,482
3.703125
4
[]
no_license
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_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAME...
true
31a06f1993981a0f362ee082e3c2d98728eb520a
SQL
Azure4Arjun/SQL_queries
/db_script_drop_index.sql
UTF-8
2,332
4.34375
4
[]
no_license
/* ================================================================================================ Purpose: Outputs DROP statements for all indexes. *** Uncomment and update WHERE clause to filter for a specific table History: 2011-02-22 Tom Hogan Created, based on a script by Jamie Thomson. ...
true
0e43332fde1fe8007b6d9ebba046df75fc29362a
SQL
asenvolev/SoftUni
/C# DB Fundamentals/C# DB Basics - SQL/Data Aggregation/EmployeesMinimumSalaries.sql
UTF-8
202
3.484375
3
[]
no_license
SELECT DepartmentID, MIN(Salary) AS [MinimumSalary] FROM Employees WHERE HireDate > '2000-01-01' AND (DepartmentID = 2 OR DepartmentID=5 OR DepartmentID = 7) GROUP BY DepartmentID ORDER BY DepartmentID
true
d0ab0586070757302b44b6e5c9169465b52d1839
SQL
mayrasillas/Grupo_8_Bits
/archivos .sql/structure.sql
UTF-8
1,624
3.46875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `heroku_4d9c94641d2f658` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `heroku_4d9c94641d2f658`; DROP TABLE IF EXISTS `products`; CREATE TABLE products( id int NOT NULL AUTO_INCREMENT, city VARCHAR(500) not null, description VARCHAR(3000) not null, price VARCHAR(20) NOT NULL, ...
true
704dbf6a69a7cabd55144a06ca09102e2dd46a21
SQL
no5at/k-monitor
/config/schema_sqlite3.sql
UTF-8
460
2.53125
3
[]
no_license
CREATE TABLE ticker_info ( id INTEGER PRIMARY KEY, created_at TEXT, trade_pair TEXT, ask_price REAL, ask_volume REAL, bid_price REAL, bid_volume REAL, last_trade_price REAL, last_trade_volume REAL ); CREATE TABLE triggers ( id INTEGER PRIMARY KEY, created_at TEXT, trade_pair TEXT, trigger_typ...
true
5886c35a2b9fedd37c49e56971d5d6147610b748
SQL
erikschoel/purejs
/db/import_madi.sql
UTF-8
5,173
2.796875
3
[]
no_license
drop temporary table if exists tmp_madi; create temporary table tmp_madi ( madi_code varchar(250) not null, sys_attr_tag varchar(250) not null, sys_attr_type varchar(250) not null, sys_attr_code varchar(250) not null, sys_attr_label varchar(250) not null, sys_attr_desc varchar(250) not null, sys_attr_class varchar(25...
true
7253cd746a0ffe49ef088ff5566221487a8b8307
SQL
cjax44/sql
/mma/4172019 hw.sql
UTF-8
299
3.34375
3
[]
no_license
Select i.OrderNumber as 'PO#', i.orderdate as 'Date Ordered', i.customername as 'Customer', p.Code, p.description as 'Book Description', p.price as 'Price', l.Quantity, i.Total as 'Total' From LineItem l INNER JOIN invoice i on i.ID = l.invoiceID INNER JOIN product p on p.ID = l.productID;
true
2aa5f8d411814802144c579f7c84dd3a72c3ef87
SQL
VladimirAnaniev/FMI-6-Sem
/Databases/4. Joins/3.ships.sql
UTF-8
923
3.875
4
[]
no_license
----- 3.1 ----- ----- Напишете заявка, която за всеки кораб извежда името му, държавата, броя ----- оръдия и годината на пускане (launched). SELECT s.name, c.country, c.numguns, s.launched FROM ships s JOIN classes c ON s.class = c.class; ----- 3.3 ----- ----- Напишете заявка, която извежда имената на корабите, участв...
true
7de19ebfb5ce0ee0986e477f603b2830c9bcd90f
SQL
Eru-oloy/ML_FlaskAPI_Docker
/SQL/SQLite.sql
UTF-8
1,640
4.125
4
[]
no_license
--Creation des tables CREATE TABLE TRANSACTIONS( date_TR DATE, order_id VARCHAR(20), client_id VARCHAR(20), prod_id VARCHAR(20), prod_price FLOAT(8,2), prod_qty int(10) ); CREATE TABLE PRODUCT_NOMENCLATURE( prod_id VARCHAR(20) PRIMARY KEY, prod_type VARCHAR(20), prod_name VARCHAR(20) ); --...
true
2c48fda4e0bfe8882b1bc64e1e3a29e8114d8a92
SQL
julianflowers/Achilles
/inst/sql/sql_server/analyses/602.sql
UTF-8
671
4.125
4
[ "Apache-2.0" ]
permissive
-- 602 Number of persons by procedure occurrence start month, by procedure_concept_id --HINT DISTRIBUTE_ON_KEY(stratum_1) select 602 as analysis_id, CAST(po1.procedure_concept_id AS VARCHAR(255)) as stratum_1, CAST(YEAR(procedure_date)*100 + month(procedure_date) AS VARCHAR(255)) as stratum_2, cast(null as varch...
true
394edf584629cc58e0ba1b0f524ff9a9157ab210
SQL
luciaflores25/CRUD_JSP_II
/Base de Datos/reservahoteles.sql
UTF-8
4,979
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 10-05-2018 a las 14:48:42 -- Versión del servidor: 10.1.30-MariaDB -- Versión de PHP: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
fec5e4225b278b959afd9d2f072eae71e032166f
SQL
PraktikumWebDasar41-02/modul-8-ta-RizkiRahardiputra
/modul8.sql
UTF-8
2,187
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 26 Okt 2018 pada 05.38 -- Versi server: 10.1.34-MariaDB -- Versi PHP: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
dc1f6a1e164960c71dbcbd2c0532d197c55a82a6
SQL
QuanweiHao/cs5200-fall2019-QuanweiHao
/Assignment 2/retrieve/query_3d.sql
UTF-8
85
2.96875
3
[]
no_license
SELECT SUM(p.views) AS total_pageviews FROM page p WHERE p.website = 567
true
8969a20faf45d0e983f92306986d28e5ecb75555
SQL
minssan9/SeohanLib
/src/main/resources/temp.sql
UTF-8
579
2.765625
3
[]
no_license
select booknum,bookname,genre,borrowday,returnday,writer from member where bookname LIKE '%' | #{bookname} | '%'; 도서검색 쿼리 select * from blacklist; 블랙리스트 검색 등록일자순 select * from bulletinboard order by registerday; 제목순 select * from bulletinboard order by title; Cookie[] cookies = request.getCookies(); if(cookie...
true
3b07d371aeca2d7536c88704faf5c728e16d2378
SQL
matthcol/pythonRest202010
/sql/my_command.sql
UTF-8
658
2.890625
3
[]
no_license
-- MySQL/MariaDB admin tips -- NB: if dbname is ommited, connection on None database -- * connection without password (use sudo on linux) -- mysql -u username [-h hostname -P port] -- mysql -u username [-h hostname -P port] dbname -- * connection with password -- mysql -u username [-h hostname -P port] -p -- mysql -u ...
true
ed1e92479d2b82ac6c9e09c9e8f7cab09a671384
SQL
lwolf83/SolutionExo
/Dojo-Merchandising - 1.sql
UTF-8
2,982
3.65625
4
[]
no_license
CREATE PROCEDURE sp_createDataStructure AS BEGIN DROP TABLE IF EXISTS [OrderProduct] DROP TABLE IF EXISTS [Order] DROP TABLE IF EXISTS [ProductStock] DROP TABLE IF EXISTS [Product] DROP TABLE IF EXISTS [Merchant] DROP TABLE IF EXISTS [User] DROP TABLE IF EXISTS [Country] DROP TABLE IF EXISTS [Continent] PRINT('Creati...
true
226fa6c4bcf7d3f5e0f8dfd55cb85ed20dd44bcc
SQL
taufique71/widespace-job-manager
/sql/widespace_job_manager.sql
UTF-8
535
2.953125
3
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS `widespace_job_manager`; CREATE DATABASE `widespace_job_manager`; USE `widespace_job_manager`; DROP TABLE IF EXISTS `job_log`; CREATE TABLE `job_log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `job_key` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL, `exec_time` int(11) NOT NULL, `amount_...
true
263342a08c26c371d803945f34c82abbc7568861
SQL
ignaciolorenzo/lab-stored-procedures
/[lab-stored-procedures] ignacio.sql
UTF-8
1,554
4.03125
4
[]
no_license
use sakila; DROP PROCEDURE IF EXISTS select_action_customers; DELIMITER // CREATE PROCEDURE select_action_customers() BEGIN select first_name, last_name, email from customer join rental on customer.customer_id = rental.customer_id join inventory on rental.inventory_id = inventory.inventory_id join film on film.fil...
true
1ecb11868cfb96f3556ca8daf817501d1f7c5df9
SQL
sogis/gretljobs
/arp_wanderwege_pub/arp_wanderwege_pub_wanderweg.sql
UTF-8
464
2.890625
3
[ "MIT" ]
permissive
SELECT ST_Force2D(ageometry) AS geometrie, surface.aname_de AS oberflaeche, hiking_segment_type.aname_de AS wanderweg_typ FROM arp_wanderwege_v1.hpm_walk_lv95_hiking_way AS hiking_way LEFT JOIN arp_wanderwege_v1.hpm_catalogues_surface AS surface ON surface.t_id = hiking_way.surface LEFT JOIN...
true
72dea386e74c1c872f4c55f4a5774971807d1ea8
SQL
dingjinhui821/julive_database
/sql/julive_app/app_push_als.sql
UTF-8
4,256
3.71875
4
[]
no_license
set hive.execution.engine=spark; set spark.executor.cores=2; set spark.executor.memory=8g; set spark.executor.instances=10; set spark.app.name=app_push_als; set spark.yarn.queue=etl; insert overwrite table tmp_etl.temp_app_push_als select * from julive_app.app_push_als; WITH temp1 AS ( SELECT ...
true
2eb8960f6ac28657209df1b547526d479fd1f6f9
SQL
erolyildiz33/cms
/cms.sql
UTF-8
17,797
3.421875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Anamakine: localhost -- Üretim Zamanı: 14 Ara 2020, 00:52:45 -- Sunucu sürümü: 5.7.31-log -- PHP Sürümü: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
true
808447130517dc837f3887ded6626331bdf0c736
SQL
AstroPoverty/Gift-exchange
/database/initializeDB.sql
UTF-8
2,347
4.15625
4
[]
no_license
CREATE TABLE users ( user_id bigserial PRIMARY KEY, email varchar UNIQUE NOT NULL, password text NOT NULL, first_name text NOT NULL, last_name text NOT NULL ); CREATE TABLE wishlist_items ( wishlist_item_id bigserial PRIMARY KEY, item text NOT NULL, description text ); CREATE TABLE users_wishlist_item...
true
1d29bb7192c32efd24699a6ce75c869b3368d4aa
SQL
AmaroPSI/Base-de-Dados
/ProjetoBD.sql
UTF-8
6,298
3.46875
3
[]
no_license
/*CDBD_T9_G2 Programação de Sistemas de Informação Rent a Car Gonçalo Amaro, estudante n.º 2170400; Joel Runa, estudante n.º 2170397; Pedro Neves, estudante n.º 2170401 */ Use projetobd; /*DROP TABLE IF EXISTS Clientes; DROP TABLE IF EXISTS disponibilidade_veiculo; DROP TABLE IF EXISTS Marca_Carros; DROP TABLE IF EXI...
true
502ba4b72e8f29c33f48dcdbda1ff44c98e6c02e
SQL
dt9819/iMailSystem
/JMailDB.sql
UTF-8
5,468
2.953125
3
[ "Apache-2.0" ]
permissive
CREATE DATABASE IF NOT EXISTS `jmaildb` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `jmaildb`; -- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: jmaildb -- ------------------------------------------------------ -- Server version 5.7.9-log /*!40101 SET @OLD_CHARACTER_SET...
true
3e6af82cb603ffe97472296b867c45e1a606a05e
SQL
SKSteeve/Courses
/05.MySQL-DB/06.Built-In-Functions-Exercise/04.FindAllEmployeesExceptEngineers.sql
UTF-8
139
2.8125
3
[]
no_license
USE `soft_uni`; SELECT `first_name`, `last_name` FROM `employees` WHERE `job_title` NOT LIKE '%engineer%' ORDER BY `employee_id`;
true
636e1c74990f97d0e05d64c16ef3797d1a134d21
SQL
radam-herman/database-exercises
/3.7_group_by_exercises still need nbr 8.sql
UTF-8
4,816
3.796875
4
[]
no_license
-- 3.7_group_by_exercises.sql use employees; show databases; -- show databases output of employees DB information_schema albums_db bayes_827 chipotle elo_db employees fruits_db iris_db join_example_db mall_customers mysql numbers quotes_db sakila svi_db telco_churn titanic_db tsa_item_demand world zillow; descri...
true
e2fd207f8ef4b67f429bda5ff6175980e95c8411
SQL
wf539/LearningTree925SQLProgrammingLanguageIntro
/925_HOCD1_H1_708_G2/Course925Solutions/ho82-2.sql
UTF-8
231
3.296875
3
[ "MIT" ]
permissive
SELECT CategoryID ,COUNT(*) AS Products ,COUNT(SupplierID) AS HaveSupplier ,COUNT(*)-COUNT(SupplierID) AS NoSupplier FROM Products WHERE UnitsInStock < 10 GROUP BY CategoryID ORDER BY Products DESC, CategoryID;
true
7deff03d0a211117ea1e261ec4ba3c1537bacb3e
SQL
guilosost/project-caritas
/modelo/sql/Cursores 1.5.sql
WINDOWS-1252
5,397
3.703125
4
[]
no_license
create or replace PROCEDURE muestra_ayudas ( limite int ) AS CURSOR c IS SELECT oid_a, oid_c, suministradapor, concedida, fechacita, nombre, apellidos, dni FROM ayudas natural join citas natural join usuarios ORDER BY oid_a; BEGIN DBMS_OUTPUT.PUT_LINE('LISTA DE AYUDAS:'); FOR fila IN c LOOP EXIT WHEN C%ROWCOUN...
true
8c2422f8ce6f0207cf085c5b409633079757b86a
SQL
OMR5221/SQLExamples
/SQL Examples/TCS-12896/split_superpersons_4.sql
UTF-8
2,766
3.296875
3
[]
no_license
timing start correct_superpersons_#; DECLARE PROCEDURE split_superpersons AS v_hospital_id NUMBER := ##; TYPE r_sp IS RECORD (person_id NUMBER, id NUMBER, table_oid NUMBER, hospital_id NUMBER, is_demo NUMBER); TYPE t_sp IS TABLE OF r_sp INDEX BY BINARY_INTEGER; sp t_sp; v_new_person_id NUMBER; ...
true
91b3ef967fd436c575e7df4e04eb8998c7888080
SQL
hibow/Algo-practice
/leetcodes/196. Delete Duplicate Emails/deleteduplicateEmails.sql
UTF-8
1,448
4.65625
5
[]
no_license
/* Write a SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id. +----+------------------+ | Id | Email | +----+------------------+ | 1 | john@example.com | | 2 | bob@example.com | | 3 | john@example.com | +----+------------...
true
67b990e3b06a54c73b99deee79addd2544d1bec5
SQL
StevenAvila/IMDA-TYT
/BD/db_basedatos.sql
UTF-8
6,892
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 11-05-2018 a las 21:00:05 -- Versión del servidor: 5.7.11 -- Versión de PHP: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
true
c87812b224e1d629730a9362817af6461b5ff078
SQL
rajat4318/Programs
/Online_PGBooking_UI/onlinepgbooking (4).sql
UTF-8
12,661
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 30, 2018 at 07:53 AM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
c0da9aafc456678606e1d12ec7d4ea403753fa19
SQL
fersoy/Bamazon
/bamazon.sql
UTF-8
1,028
3.234375
3
[]
no_license
-- Create a database called 'Bamazon'. CREATE DATABASE IF NOT EXISTS Bamazon; USE Bamazon; -- Then create a Table inside of that database called `products`. CREATE TABLE products ( item_id INTEGER(11) AUTO_INCREMENT NOT NULL, product_name VARCHAR(30) NOT NULL, department_name VARCHAR(30) NOT NULL, price DECIMAL(10...
true
663e03866400c570c95456eca9cca5f07242f5f3
SQL
Moroam/UNDO
/script.sql
UTF-8
3,984
3.828125
4
[]
no_license
# with a separate procedure for getting json CREATE PROCEDURE `row_to_json`(tabschema varchar(255), tabname varchar(255), id int, out js JSON ) BEGIN declare id_auto varchar(255) default ''; select COLUMN_NAME into id_auto from information_schema.`COLUMNS` where TABLE_NAME = tabname and TABLE_SCHEMA = tabschema and E...
true
9551fd025b2560c50509a04527afe43f1f45bf61
SQL
tessiertodd/Pewlett-Hackard-Analysis
/Queries/queries.sql
UTF-8
7,526
4.28125
4
[]
no_license
-- Find employees born from 1952 to 1955 SELECT first_name, last_name FROM employees WHERE birth_date BETWEEN '1952-01-10' AND '1955-12-31'; -- Find employees born in 1952 SELECT first_name, last_name FROM employees WHERE birth_date BETWEEN '1952-01-10' AND '1952-12-31'; -- Find employees born in 1953 SELECT first_na...
true