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
ba50a8a9e541dc1cd912c3c602b6e3c007d76df7
SQL
Spontecorp-CA/futboldata
/database/Scripts/clasificaciónXJornada.sql
UTF-8
500
3.640625
4
[]
no_license
SELECT eq.nombre AS EQUIPO, sum(cl.j_jugados) AS JJ, sum(cl.j_ganados) AS JG, sum(cl.j_empatados) AS JE, sum(cl.j_perdidos) AS JP, sum(cl.goles_favor) AS GF, sum(cl.goles_contra) AS GC, sum(cl.diferencia) AS Diff, sum(cl.puntos) AS Pts, j.alias AS Jornada FROM clasificacion cl JOIN equipo eq ON cl.equipo_id = eq...
true
b4666a8c2f0725f3346db2b1ac24f6bc78bd0820
SQL
eurekastein/nocualquierpendejolopuedehacer4.0
/lo que no cualquier pendejo haria.sql
UTF-8
847
3.8125
4
[]
no_license
update ciudades set grado_carretera = j.count from (select h.id_c, count(h.nombre) from (select gu.id_c, nombre from (select c.id as id_c, rp.id, rp.geom, rp.nombre, rp.codigo from red_primaria as rp join ciudades as c on st_crosses (rp.geom, c.geom)) as gu group by nombre, id_c ) as h group by id_c) as j where ciudad...
true
4ed93e9ce35b1ae49d987b840b8c3304497a7d96
SQL
mikeysanzo1962/Database
/SQL Normalization 3.sql
UTF-8
5,102
3.578125
4
[]
no_license
--Michael Sanzo --DBMS --11/11/2016 -- Lab 9: Normalization Three -- Weak entities drop table if exists engineers; drop table if exists astronauts; drop table if exists fco; drop table if exists crew; drop table if exists systemsINspace; drop table if exists partsINsystems; drop table if exists catalog; -- Strong en...
true
69b46720ebc6b8bb83d92647513d83902fa0b175
SQL
fabiodamas/erp_desktop
/SQLs Testes/pedidos.sql
UTF-8
441
3.28125
3
[]
no_license
select * from produtos; select * from pedidos ; SELECT pedidos_produtos.* FROM pedidos, pedidos_produtos, produtos WHERE pedidos.NPedido = pedidos_produtos.NPedido and pedidos_produtos.CodigoProduto = produtos.CodigoProduto -- and produtos.NMolde <> '' and pedidos.DataProducao i...
true
dd7b547a2c30ac0d9d89b43a506db64e21e53271
SQL
marsahrakorpi/FoundUp-PHP-and-MySQL
/database/companydatabase.sql
UTF-8
9,455
2.6875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 20, 2017 at 11:36 PM -- 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
116c97b00c29d78e2dcc8b42ae81c07bb7738dc8
SQL
GQAdonis/GraphQL-DotNet-2.4.0_in_AspNetCore-3.0.0-preview5
/GraphQL_1/SQLScripts/Aggregation_Product-TransactionHistoryQuantity.sql
UTF-8
618
3.828125
4
[]
no_license
SELECT p.ProductID, p.[Name], p.ProductNumber, p.MakeFlag, p.Color, p.ReorderPoint, /* th.TransactionType, */ COUNT (th.Quantity) AS CountOfTransactionHistoryQuantity FROM [AdventureWorks2016_EXT].[Production].[Product] p LEFT JOIN [AdventureWorks2016_EXT].[Production].[TransactionHistory] ...
true
7c2c2ac14068c1cb980d1dbc41d7c0155dea8686
SQL
MrRobu/integration-laravel
/cabvet-oracle-queries.sql
UTF-8
5,802
4
4
[ "MIT" ]
permissive
--DROP VIEW OLAP_FACTS_Prescription_AMOUNT; CREATE OR REPLACE VIEW OLAP_FACTS_Prescription_AMOUNT AS SELECT p.pet_id, pre.medication, i.invoice_date , SUM(pre.amount * pre.unit_price) as AMOUNT FROM invoice i INNER JOIN prescription pre ON i.invoice_id = pre.invoice_invoice_id INNER JOIN medical_recor...
true
2008cec5f08b3c64fa2f64161e8075677a546c0f
SQL
VolodymyrBalamut/AirportInfo
/DB/queries/CityLoad.sql
UTF-8
3,007
3.59375
4
[]
no_license
 /*insert city*/ /*drop table #tempCity;*/ create table #tempAirportLoad( Code nvarchar(200) null, AirportName nvarchar(200) null, CityName nvarchar(200) null, CountryName nvarchar(200) null, AirportCode nvarchar(200) null, AirportCode2 nvarchar(200) null, CoordX nvarchar(200) null, CoordY nvarchar(2...
true
ea0300b7549476475afbab8a35f4f4186c135823
SQL
soroluciano/TPWeb3
/SQL/Creacion tablas.sql
ISO-8859-10
1,263
3.34375
3
[]
no_license
CREATE TABLE profesor ( id_profesor int primary key identity, nombre varchar(50), apellido varchar(50), mail varchar(50), contrasea varchar(50)); CREATE TABLE alumno ( id_alumno int primary key identity, nombre varchar(50), apellido varchar(50), mail varchar(50), contrasea varchar(50)); CREATE TABLE curso ( id_curso ...
true
da91f92ca8948357a20077d945447ea2ca60637d
SQL
xinxinhuang/Week07DemoGroupA
/src/java/database/NotesDB.sql
UTF-8
639
3.59375
4
[]
no_license
DROP DATABASE if exists NotesDB; CREATE DATABASE NotesDB; USE NotesDB; CREATE TABLE Users( id NUMBER AUTO_INCREMENT PRIMARY KEY, firstName VARCHAR2(30) CONSTRAINT SYS_USERS_FNAME_NN NOT NULL, lastName VARCHAR2(30) CONSTRAINT SYS_USERS_LNAME_NN NOT NULL, email VARCHAR2(100) CONSTRAINT SYS_USERS_EMAIL_NN NOT NULL CO...
true
d54d58120e4230d2645db816a6092ac54170dfbd
SQL
saqi/FinalYearProject_PHP
/retail-db_2014-04-21.sql
UTF-8
3,688
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1:3306 -- Generation Time: Apr 21, 2014 at 11:42 PM -- Server version: 5.5.37 -- PHP Version: 5.4.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
b84e6e748fdd9f412b1c4cc58b5eee27e1d9af02
SQL
petkoxray/SQL-Course
/Basic CRUD/18.sql
UTF-8
166
2.828125
3
[]
no_license
CREATE VIEW v_employees_job_titles AS SELECT CONCAT_WS(' ', first_name, IF (middle_name is NULL, "", middle_name), last_name) AS full_name, job_title FROM employees
true
950ce592587da4d84d5accdcc5847f07b226dfd9
SQL
esalcidom/arkhe_contacts
/arkhe_contacts/src/main/resources/db/migration/V1__Tables.sql
UTF-8
3,941
3.265625
3
[]
no_license
CREATE TABLE TABLE_USER ( ID SERIAL PRIMARY KEY, USERNAME VARCHAR(30) NOT NULL, PASS VARCHAR(100) NOT NULL ); CREATE TABLE TABLE_AUTHORITY( ID SERIAL PRIMARY KEY, NAME VARCHAR(30) NOT NULL ); CREATE TABLE USER_AUTHORITY( USER_ID BIGINT, AUTHORITY_ID BIGINT ); CREATE TABLE TABLE_CONTACT( ...
true
6ce8609a7437e01438158b376790a36433ae3bba
SQL
danieldhian/WEB-UAS-Pupuqin
/UAS/db (1).sql
UTF-8
3,767
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 07 Jun 2021 pada 07.16 -- Versi server: 10.4.17-MariaDB -- Versi PHP: 8.0.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
true
2248c7bb7515ba1d9aa44af3b086791347bb1ea2
SQL
Liunerd/sqlzoo-solution
/self_join.sql
UTF-8
3,583
4.375
4
[]
no_license
/* https://sqlzoo.net/wiki/Self_join */ -- 1. /* How many stops are in the database. */ select count(*) from stops; -- 2. /* Find the id value for the stop 'Craiglockhart' */ select id from stops where name = 'Craiglockhart' -- 3. /* Give the id and the name for the stops on the '4' 'LRT' service. */ select ...
true
6c54db77e5f270c755c0a91cc6a9867a03c58151
SQL
liufuyang/rb62-wasm
/try2.sql
UTF-8
431
2.953125
3
[]
no_license
CREATE TEMP FUNCTION `magic_function`(x INT64, y INT64) RETURNS INT64 LANGUAGE js OPTIONS ( library=[ "gs://fh-bigquery/js/inexorabletash.encoding.js", "gs://liufuyang/public/rb62-wasm/base62.js" ] ) AS ''' return wasm.then(() => { return wasm_bindgen.sum(x, y); }); ...
true
ee08f13f40cdf324b9a4b3957434876eaea23ac3
SQL
Wikifab/UsersPagesLinks
/includes/tables.sql
UTF-8
913
3.25
3
[ "MIT" ]
permissive
CREATE TABLE /*_*/userspageslinks ( -- Key to user.user_id upl_user_id int unsigned NOT NULL, -- Key to the page upl_page_namespace int(10) unsigned DEFAULT NULL, upl_page_title varbinary(255) DEFAULT NULL, upl_page_id int(10) unsigned DEFAULT NULL, upl_type varbinary(255) DEFAULT '', -- Timestamp...
true
e9daf2a70d3efcff1307fe498c450342b6e09000
SQL
JavierHerreraM/take-notes-database
/procedures/notes/delete_note.sql
UTF-8
138
2.515625
3
[]
no_license
DELIMITER $$ CREATE PROCEDURE `delete_note`(note_id_value INT) BEGIN DELETE FROM notes WHERE note_id = note_id_value; END$$ DELIMITER ;
true
a2d0ff40a3cc53ca0a0da1f7aaa75befcf4ca4ba
SQL
jeffscott2/ceiling-zero
/week_4_code/4.1.sakila.1.table.sql
UTF-8
12,782
4.5625
5
[]
no_license
/* Mon) # Single Table Queries Tue) # Multi Table Queries Wed) # Setting up a local DB, more practice */ # = /* Intro The equals sign is primarily used in the WHERE clause to filter the returned rows to those with a specific value in a field: select * from actor where first_name = 'ED' ; */ /*...
true
631698532d81377c4c8e114326e8703294498a12
SQL
belaklord/ProyectosJava
/sql/c1.sql
UTF-8
3,717
4.375
4
[]
no_license
/*1. Hallar un listado de alumnos con nombre y apellidos (los dos) ordenado por apellido1 * (0,2 pt)*/ select nombre, apellido1,apellido2 from alumno order by apellido1; /*2. Hallar un listado de asignaturas con codigo de asignatura, cod_interno, descripcion, nHoras * ordenado por numero de horas de mayor a menor...
true
00d9f468c567df67ec28fd268ea014cede8f47c7
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day12/select1428.sql
UTF-8
178
2.671875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-11T14:28:00Z' AND timestamp<'2017-11-12T14:28:00Z' AND temperature>=48 AND temperature<=95
true
1ab9ecbf33f8ff66509193458de05cbee31aa435
SQL
udibagas/salwa
/database/salwa_timeline.sql
UTF-8
7,257
3.515625
4
[ "MIT" ]
permissive
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `salwa_timeline` AS SELECT `videos`.`video_id` AS `id`, `videos`.`updated` AS `time`, `videos`.`title` AS `title`, `videos`.`desc` AS `content`, NULL AS `img`, `videos`.`url_video_youtube` AS `file`, `users`.`name` AS `user`...
true
c69b3ed1934b709c61d718a74c6ca29c310436fa
SQL
huifer/javaBook-src
/mybatis-3/src/test/java/org/apache/ibatis/autoconstructor/CreateDB.sql
UTF-8
1,688
3.4375
3
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
-- -- Copyright 2009-2018 the original author or authors. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unles...
true
c43e0505811be9644cf44933b57e3cb9763a1bdd
SQL
overcls/yiifcms
/protected/data/temp/db.sql
UTF-8
25,868
3.3125
3
[]
no_license
/** * 安装数据表 */ -- -- Table structure for table `#@__ad` -- DROP TABLE IF EXISTS `#@__ad`; CREATE TABLE `#@__ad` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id', `position_id` int(10) unsigned NOT NULL COMMENT '广告位ID', `title` varchar(50) NOT NULL COMMENT '广告名称', `title_alias` char(40) NOT NULL...
true
ada199fd9d49d6cd5174595cfa418bc7ad84fd32
SQL
stankoech/todo
/conf/evolutions/default/1.sql
UTF-8
1,052
2.859375
3
[]
no_license
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table category ( id bigint auto_increment not null, name varchar(255), description varchar(255), constraint pk_category primary ...
true
b3b785911948c6ba7416090a69d4ad54d1238783
SQL
CafeIN-kh/CafeIN
/src/main/webapp/docs/cafein_table.sql
UHC
14,325
3.46875
3
[]
no_license
/* * ܷŰ ī ü ̺ * */ /* u_user ̺ - ȸ * * u_level : (0:Ϲȸ,1: 2: 3: ) */ drop table u_user; create table u_user( u_uid varchar2(20) not null, u_email varchar2(50) not null, u_name varchar2(15) not null, u_password varchar2(15) not null, u_reg_date date not null, u_level number defa...
true
175ff7e2d0b3d75ab22a3e3d4e8a234f6a58730e
SQL
Jordan-Castillo/sqlPractice
/CARS/CARS-test.sql
UTF-8
1,683
2.90625
3
[]
no_license
/* By: Jordan Castillo Date: 10 / 2 / 17 Email: jtcastil@calpoly.edu TEST FILE */ tee lab2-CARS-output.txt use jtcastil; \! echo '********************************' \! echo Let us see what tables there are \! echo '********************************' show tables; \! echo '*******************************' \! echo...
true
a6eb40073eafcdf67b133664bcb1b94d1702d882
SQL
MidaxoInc/midaxo-dev
/models/base/DEAL.sql
UTF-8
1,268
3.34375
3
[]
no_license
select d.deal_id, c.company_id, f.property_sales_territory as territory, d.deal_pipeline_stage_id, d.deal_pipeline_id, d.property_forecast_stage as forecast_stage, d.owner_id, d.property_dealname as deal_name, f.property_name as company_name, d.property_closedate::timestamp_ntz as closedate, d.pro...
true
0edbf0e2b19f42f6af99760bbd869ce42a9a6680
SQL
lev13m/Trinetix
/db.sql
UTF-8
2,663
3.75
4
[]
no_license
/* SQLyog Enterprise v10.42 MySQL - 5.5.31-0ubuntu0.12.04.1 : Database - trinetix ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIG...
true
13701bd1707321731a213c92abaa7bdc23286b59
SQL
Lee-jaeyong/bookPjt
/bookPjt/SQL/데이터베이스.sql
UTF-8
19,520
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.3 -- http://www.phpmyadmin.net -- -- 호스트: localhost -- 처리한 시간: 19-12-11 00:09 -- 서버 버전: 5.1.41 -- PHP 버전: 5.2.12 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- 데이터베이스: `library` -- -- -------------------------------------------------------- -- -- 테이블 구조 `adminanswar` -- CREATE T...
true
23eabab47f18154fc8cbf51c48da84605413c75d
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day12/select2034.sql
UTF-8
177
2.640625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-11T20:34:00Z' AND timestamp<'2017-11-12T20:34:00Z' AND temperature>=4 AND temperature<=83
true
4c904947897d3a95127b6edc65131dbb992b68b5
SQL
GMCSensor/2
/rilevazione.sql
UTF-8
3,146
2.546875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.7 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 15, 2018 alle 15:33 -- Versione del server: 5.6.33-log -- PHP Version: 5.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
b963d008aac7a37bc58cb4429d3ece6d13efded2
SQL
imhari213/Blockchain_POC-s
/ethereum/digital-certificates/Dump20180802.sql
UTF-8
2,784
2.953125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 192.168.99.100 Database: certificates -- ------------------------------------------------------ -- Server version 5.7.22 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESUL...
true
4aebc7803e1c328eae6cd7bed623573f110f996c
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day17/select1335.sql
UTF-8
177
2.671875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-16T13:35:00Z' AND timestamp<'2017-11-17T13:35:00Z' AND temperature>=9 AND temperature<=97
true
73ad3fbaeb9ed79627bc675924a38d9d51de5822
SQL
helifee/corp-project
/workspace/platform-doc/数据库初始化脚本/流程/view_flow_instance_stat.sql
UTF-8
711
3.078125
3
[]
no_license
CREATE VIEW `view_flow_instance_stat` AS SELECT `pt_flow_instance_operate_log`.`instance_id` AS `instance_id`, `pt_flow_instance_operate_log`.`operator_ids` AS `operator_ids`, `pt_flow_instance_operate_log`.`company_id` AS `company_id`, `pt_flow_instance_operate_log`.`dept_id` AS `dept_id`, `pt_flow_instance_opera...
true
b7c1b49c9c4af666b801e695f25eed5f8b80c69d
SQL
NolSpencer/db-project
/export.sql
UTF-8
12,789
3.265625
3
[]
no_license
CREATE DATABASE pet_adoptionDB; CREATE TABLE `LOCATION`( `id` int NOT NULL, `facilityname` varchar(100) NOT NULL, `addr1` varchar(100) NOT NULL, `addr2` varchar(100), `city` varchar(35) NOT NULL, `state` CHAR(2) NOT NULL, `zip` varchar(20) NOT NULL, `phone` varchar(20) NOT NULL, `e...
true
6f21e275d6d18f5d4ded8019bdf95ba951647fa5
SQL
lfinger02/Goverment_services
/e-Assessment/exams/business_studies/business_studies.sql
UTF-8
2,015
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 22, 2019 at 10:35 PM -- Server version: 10.1.22-MariaDB -- PHP Version: 7.1.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
5093d181e5e24636ff6b66873a5f3f91fc81078e
SQL
626848357/dh2y-admin
/tp-dh2y-admin-3.2/DataBase/tp-dh2y-admin-3.2-2017-7-6.sql
UTF-8
7,720
3.09375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : MyPC Source Server Version : 50523 Source Host : localhost:3306 Source Database : tp-cdn-push Target Server Type : MYSQL Target Server Version : 50523 File Encoding : 65001 Date: 2017-07-06 16:10:07 */ SET FOREIGN_KEY_CHECKS=0; -- --...
true
7de22f8212368f2dfa271a3507c0564dc4026a45
SQL
BreannaSouthworth/Card-and-Deck-Management-System
/MySQL Scripts/CDM_YuGiOh_ DB.sql
UTF-8
3,588
3.53125
4
[]
no_license
drop database if exists cdm_yugioh_db; create database cdm_yugioh_db; use cdm_yugioh_db; drop table if exists card; create table card( card_id int primary key auto_increment, card_name varchar(50) not null, card_text varchar(700) null, legal boolean default '1', tradional_format_ruling varchar(15) not null, advance_fo...
true
01d0655e9225d2520ebfd5ec9d475d85388c644a
SQL
Mbeug/projet_COO
/requete_similarite.sql
UTF-8
794
3.28125
3
[]
no_license
/*Requetes n°6*/ select P1.ID_PROFIL,P2.ID_PROFIL, cast( case when P1.NOM=P2.NOM then 1 else 0 end + case when P1.SEXE=P2.SEXE then 1 else 0 end + case when P1.AGE=P2.AGE then 1 else 0 end + case when P1.COULEUR_CHEVEUX=P2.COULEUR_CHEVEUX then 1 else 0 end + case when P1.TAILLE_CHEVEUX=P2.TAILLE_CHEV...
true
57c999afbbc3259cd07593e34522f2780b3e3fa9
SQL
mathavanwithu/cscripts
/sql/cs_high_latency.sql
UTF-8
4,954
3.0625
3
[]
no_license
---------------------------------------------------------------------------------------- -- -- File name: cs_high_latency.sql -- -- Purpose: Finds SQL with high latency matching some string -- -- Author: Carlos Sierra -- -- Version: 2018/08/06 -- -- Usage: Execute connected to CDB or PDB. -- -- ...
true
a0535fa9cf74cd8437cf2048caaf26574bd58cf4
SQL
zblogcn/zblogphp
/zb_system/defend/createtable/pgsql.sql
UTF-8
6,272
2.828125
3
[ "MIT" ]
permissive
CREATE SEQUENCE %pre%post_seq; CREATE TABLE %pre%post ( log_ID INT NOT NULL DEFAULT nextval('%pre%post_seq'), log_CateID integer NOT NULL DEFAULT '0', log_AuthorID integer NOT NULL DEFAULT '0', log_Tag varchar(250) NOT NULL DEFAULT '', log_Status smallint NOT NULL DEFAULT '0', log_Type integer NOT NULL DEF...
true
6f16e5eddeec5af71c60b3a6b31d46784fe58c68
SQL
rpura951/erp_python
/inventory_system_inventory.sql
UTF-8
2,583
2.9375
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64) -- -- Host: localhost Database: inventory_system -- ------------------------------------------------------ -- Server version 8.0.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
true
2039bcfeac435d280ee201390399ad1f9a4ac772
SQL
kshashov/TimeTracker
/timetracker-web/src/main/resources/db/migration/V1.0__release.sql
UTF-8
3,686
3.515625
4
[ "MIT" ]
permissive
create table public.actions ( id int8 generated by default as identity, active boolean not null, title varchar(255) not null, project_id int8 not null, primary key (id) ); create table public.closed_days ( obs date not null, project_id int8 not null, ...
true
ac75a7e40a4c94ded2d5994f053e8234a8be6b86
SQL
onshinpei/vue-jianshu
/server/db/user_detail.sql
UTF-8
1,450
3.234375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3308 Source Server Version : 50720 Source Host : localhost:3308 Source Database : qq Target Server Type : MYSQL Target Server Version : 50720 File Encoding : 65001 Date: 2018-04-10 23:39:24 */ SET FOREIGN_KEY_CHECKS=0; -- -...
true
f5cfaa5d3496ca0ffd535ebf4bc1e5401c941c99
SQL
tiffanyrapo/rookie
/src/main/resources/AppleSoppingWeb.sql
UTF-8
1,871
3.28125
3
[]
no_license
CREATE DATABASE AppleShoppingWeb; CREATE TABLE APPLE_COMMODITY_( COMM_NUMBER_ SUBSTRING , COMM_NAME_ varchar(255) , COMM_BOOKAUTHOR_ SUBSTRING , COMM_PRESS_ SUBSTRING , COMM_PUBLISH_ DATE , COMM_PRICE_ INT(30), COMM_STOCOMM_STOCK_ NUMBER(255), COMM_ADDEDTIME_ TIMESTAMP , COMM_DISM...
true
feb28ae47857b397cb0ab6f2ef1f4a7c23476da6
SQL
QUANWEIRU/My-Work-In-OracleEBS
/GL/Q_GL_Flex_Field_Structure_Details.sql
UTF-8
996
3.6875
4
[]
no_license
SELECT DISTINCT fifs.id_flex_structure_code, fsav.application_column_name, ffsg.segment_name, DECODE (fsav.segment_attribute_type, 'FA_COST_CTR', 'Cost Center Segment', 'GL_ACCOUNT', 'Natural Account Segment', 'GL_BALANCING', 'Balancing Segment',...
true
c280a1aa70f99cb996ef9f11caa8dd02db14df69
SQL
Ansrosel/Project_PKL
/kopi (2).sql
UTF-8
42,974
2.984375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 23, 2021 at 04:57 AM -- Server version: 10.4.19-MariaDB -- PHP Version: 7.4.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
ae735d71760480282d5fa2792505726b124f2af9
SQL
qb184/CSE3421-Team_Project
/Simple Queries/Q5-f.sql
UTF-8
90
2.546875
3
[]
no_license
/* f. Find the most profitable seller (i.e. the one who has brought in the most money) */
true
0e0e608d33ea49309be212b2f08b841c554316ee
SQL
MitziAiled/SistemaEvaluacion
/SistemaEvaluacion/src/java/app/scriptbd/script.sql
UTF-8
1,169
3.125
3
[]
no_license
create database evaluacion; /**********TABLAS**********/ create table usuario( id_usuario INT NOT NULL AUTO_INCREMENT, usuario VARCHAR(50) NOT NULL, pass VARCHAR(50) NOT NULL, tipo VARCHAR(50), NOT NULL, PRIMARY KEY (id_usuario) ); /*FALTA CREAR*/ create table Examen( id_examen int NOT NULL AUTO_INCREMENT, materia VARC...
true
9504a0d0f70beb25c7f42870e13fde64c7d2caf0
SQL
dev-jeongwoo/learning-nodejs
/7/createTable.sql
UTF-8
561
4.09375
4
[]
no_license
create table users( id int not null auto_increment, name varchar(20) not null, age int unsigned not null, married tinyint not null, comment text null, create_at datetime not null default now(), primary key(id), unique index name_UNIQUE (name ASC)); create table comments( id int not null auto_increment, commenter int n...
true
f84b2b30cbe929321f55ca5dbe6282176f809103
SQL
vanquyenit/cobanubuntu
/shoplv.sql
UTF-8
9,370
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Dim 05 Février 2017 à 21:33 -- Version du serveur : 5.6.24 -- Version de PHP : 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_S...
true
0f70e30d20bc38fc38f3599f9a8ee5433dbb0abb
SQL
pkallas/Simple_Book_Store
/seeds/load-data.sql
UTF-8
676
2.78125
3
[ "MIT" ]
permissive
\c simple_book_store COPY books (title, img_url, price, in_stock, isbn, publisher) FROM '/Users/pkallas/Desktop/Simple_Book_Store/seeds/csv/books.csv' DELIMITERS ',' CSV; COPY authors (first_name, last_name) FROM '/Users/pkallas/Desktop/Simple_Book_Store/seeds/csv/authors.csv' DELIMITERS ',' CSV; COPY genres (name) FR...
true
bb0d7d66b6b5f550d75e706c00514f607e452392
SQL
kun-woo/yeohangout
/305_pj_1.sql
UTF-8
33,066
3.9375
4
[]
no_license
-- DROP DATABASE -- IF EXISTS `sample_305`; -- -- CREATE DATABASE `sample_305`; -- -- USE `sample_305`; CREATE TABLE Airline ( Id CHAR(2), Name VARCHAR(100) NOT NULL, PRIMARY KEY (Id)); CREATE TABLE AdvPurchaseDiscount ( AirlineID CHAR(2), Days INTEGER NOT NULL, DiscountRate NUMERIC(10,2) NOT NULL, PRIMARY KEY (Air...
true
1cc0b3a67a95c7f63ce13898350ec2e38976200d
SQL
dinhduynhat2001/cpps
/Install .sql
UTF-8
5,658
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 30, 2017 at 03:23 AM -- Server version: 10.1.10-MariaDB -- PHP Version: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHA...
true
62a09f44600dfe953c3a572b65766bc9d350a0bf
SQL
keeleys/kboot
/kboot_2018-09-12.sql
UTF-8
10,723
2.859375
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.22) # Database: kboot # Generation Time: 2018-09-12 07:57:12 +0000 # *************************************************...
true
5f670ea6d32becc6345ee99b0971764b96ab90f5
SQL
fyubang/Projects_Ecole_Polytechnique
/Big_data_analytics/hw3/Q5.sql
UTF-8
579
4.28125
4
[]
no_license
with auth_venues_top3 as( select authid, count(distinct venue.name) as num_venue from venue, papers, paperauths where venue.id = papers.venue and papers.id = paperauths.paperid group by authid order by num_venue desc limit 3) select auth_venues_top3.authid, authors.name, venue.name, count(papers.id) from auth_ve...
true
2e8f2f066388e7b9dac31ca7c9c79edd48ae179c
SQL
chandrakiranck/SQL
/TakeHome2.sql
UTF-8
3,910
4.5625
5
[]
no_license
USE HR; # Q1. List all IT related departments where there are no managers .(2 rows)[NOTE:DEPARTMENT TABLE] SELECT * FROM DEPARTMENTS WHERE DEPARTMENT_NAME LIKE 'IT%' AND MANAGER_ID IS NULL; # Q2. Print a bonafide certificate for an employee (say for emp. id 123) as below: #"This is to certify that <full name> with em...
true
5b2f6de076b3139a1bdbc5564ce686a55cb835a7
SQL
taguz91/PF-Instituto-M3A-F1
/BaseDatos/Importar/BDAnterior/EjesFormacion.sql
UTF-8
690
3.1875
3
[]
no_license
Copy ejesformacion("eje_codigo", "eje_id", "eje_nombre", "eje_carrera") To 'C:\Backups Postgresql\ejesFormacionP1.csv' delimiters ';' with CSV HEADER; CREATE TABLE ejesformacion( "eje_codigo" integer, "eje_id" character varying(15), "eje_nombre" character varying(100), "eje_carrera" integer )WITH(OIDS = FALS...
true
3099d3be95a60dc710fd3f91468f1e7379e9c6c0
SQL
jlambert23/cop4331-large
/cop4331PopulateDB.sql
UTF-8
2,735
3.03125
3
[ "MIT" ]
permissive
USE cop4331; INSERT INTO users (fName,lName,userName,email,password,phone,description,picture_path) VALUES('Stringer', 'Bell','SBell','goFYaself@gmail.com','password','5555555555','Bla bla description','picture path here'); INSERT INTO users (fName,lName,userName,email,password,phone,description,picture_path) VALUES('...
true
b62e63bdfa7e2fe99550009d7ef2ed7a299bc37f
SQL
Susshki/learn
/JPA2/Queries on MYSQL_2.sql
UTF-8
223
2.796875
3
[]
no_license
use myDB; DROP TABLE STUDENT; CREATE TABLE STUDENT( STUDENT_ID INT PRIMARY KEY AUTO_INCREMENT, FIRST_NAME VARCHAR(20), LAST_NAME VARCHAR(20), EMAIL VARCHAR(30), FINAL_SCORE INT(2) ); SELECT * from STUDENT;
true
64f6e35a3831f363f3fe41844602853846b97b25
SQL
rishikadhanawade/eDACPlacementPreparation
/Concepts of Subjects/DBMS/Queries_125 Sol.sql
UTF-8
12,814
4.125
4
[]
no_license
SELECT * FROM salespeople; SELECT * FROM customers WHERE rating = 100; SELECT * FROM customers WHERE city IS NULL; SELECT odate AS Date, snum AS sID, MAX(amt) AS Max FROM orders GROUP BY odate; SELECT * FROM customers ORDER BY cnum DESC; SELECT DISTINCT o.snum, sname FROM orders o, salespeople s WHERE o.snum=s.snum; S...
true
c36c4a8506bf0b63f34599a6c6a9198181c0c948
SQL
bvaess/emp_demo_gh
/apex/application/pages/page_00011.sql
UTF-8
4,451
2.546875
3
[]
no_license
prompt --application/pages/page_00011 begin -- Manifest -- PAGE: 00011 -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2020.10.01' ,p_release=>'20.2.0.00.20' ,p_default_workspace_id=>20758126333076902741 ,p_default_application_id=>122294 ,p_default_id_offset=>0 ,p_default_owner=>'BV_DEV' ...
true
5929caabf2ba5db9a3b75f6d4e19f35632d08f7d
SQL
isaacfo/db-practice-pingpong
/info.sql
UTF-8
828
3.125
3
[]
no_license
--create users insert into users (name) values ('Isaac'); insert into users (name) values ('Jeff'); insert into users (name) values ('Jimmy'); -- create posts insert into posts(title, user_id) values('Coding is hard', 1), ('Coding is really hard', 1), ...
true
a0923256c9a50ad1dc1539b8ca65fac9e5b55fa5
SQL
jiayuasu/bitmap-postgresql
/src/test/regress/sql/errors.sql
UTF-8
6,345
3.46875
3
[ "PostgreSQL" ]
permissive
-- -- ERRORS -- -- bad in postquel, but ok in postsql select 1; -- -- UNSUPPORTED STUFF -- doesn't work -- notify pg_class -- -- -- SELECT -- missing relation name select; -- no such relation select * from nonesuch; -- missing target list select from pg_database; -- bad name in target list select nonesuch ...
true
bb05bd24f377cf58cc9ea21784cd10df0ecc3e18
SQL
AndrOwcz/DontWaste-LetsShare
/src/main/resources/data.sql
UTF-8
1,791
2.875
3
[]
no_license
INSERT INTO `charity-donation`.institutions (description, name) VALUES ('Cel i misja: Pomoc dzieciom z ubogich rodzin.', 'Fundacja "Dbam o Zdrowie"'); INSERT INTO `charity-donation`.institutions (description, name) VALUES ('Cel i misja: Pomoc wybudzaniu dzieci ze śpiączki.', 'Fundacja "A kogo"'); INSERT INTO `charity-d...
true
a9a53125ddd3d33d15d3869662c268fd9bd03439
SQL
gurpreet19/ec198392_wht
/Database/configuration/03_02_headless_tool/Delta_WST/SourcePackageDefinitions/UE_NOMINATION_HEAD.sql
UTF-8
11,542
2.703125
3
[]
no_license
CREATE OR REPLACE PACKAGE ue_Nomination IS /****************************************************************************** ** Package : ue_Nomination, head part ** ** $Revision: 1.24 $ ** ** Purpose : Business logic for nominations ** ** Documentation : www.energy-components.com ** ** Created :...
true
85a9eab0196a51bf023e5619ccc346cbd8e943e1
SQL
JL-Youk/Projet_LWDJL
/BDD/users.sql
UTF-8
7,582
2.9375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.4.1 -- http://www.phpmyadmin.net -- -- Client : localhost -- Généré le : Ven 06 Octobre 2017 à 00:37 -- Version du serveur : 5.7.11 -- Version de PHP : 5.6.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
true
2263e9750af513eee45044723a47cc13f1096a72
SQL
mckaypaswaters/sim-3-helo
/db/seed.sql
UTF-8
607
4.0625
4
[]
no_license
DROP TABLE IF EXISTS users; DROP TABLE IF EXISTS posts; CREATE TABLE users ( id SERIAL PRIMARY KEY, username VARCHAR(20), password VARCHAR(20), profile_pic TEXT ); CREATE TABLE posts ( id SERIAL PRIMARY KEY, title VARCHAR(45), img TEXT, content TEXT, author_id INTEGER REFERENCES use...
true
20ddb1a994eaffc551c438aa8ae7cb899d1366c0
SQL
xjie1070160377/AppCenter
/sql/sys.sql
UTF-8
8,405
3.546875
4
[]
no_license
-- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 5.6.26-log - MySQL Community Server (GPL) -- 服务器操作系统: Win64 -- HeidiSQL 版本: 8.3.0.4843 -- --------------------------------------------------------...
true
4adf8ddc9f78f6c313e6a8e0e4154a1ae85ecf74
SQL
jeferson21/PF
/documentation/DB_MapaEstrategico.sql
UTF-8
4,981
3.234375
3
[ "BSD-3-Clause" ]
permissive
CREATE TABLE IF NOT EXISTS `PERSPECTIVAS` ( `idPERSPECTIVA` INT NOT NULL AUTO_INCREMENT, `TIPO_PERSP` VARCHAR(20) NULL, `SITUACAO_PERSP` VARCHAR(10) NULL, `DESCRICAO_PERSP` VARCHAR(50) NULL, PRIMARY KEY (`idPERSPECTIVA`)) ENGINE = InnoDB CREATE TABLE IF NOT EXISTS `GRUPOS` ( `idGRUPO` INT NOT NULL AUTO_INC...
true
bd763dda8fdbe9bfd073076cf2c578caae95b4c0
SQL
DIAWARAMomo/Projet-Music-recording
/rapport/codes/fingerprints_table1.sql
UTF-8
221
3.03125
3
[]
no_license
CREATE TABLE IF NOT EXISTS FINGERPRINTS ( id INTEGER PRIMARY KEY AUTO_INCREMENT, song_fk INTEGER NOT NULL, hash VARCHAR(40) NOT NULL, offset INTEGER NOT NULL, FOREIGN KEY (song_fk) REFERENCES SONGS (song_id) );
true
0ea18171665666fbed5953e7fe988b95d4f25f33
SQL
openstreetmap-polska/synchrosm
/synchrosm/sql/create_tables.sql
UTF-8
419
2.8125
3
[ "MIT" ]
permissive
create table if not exists osm_base_timestamp (id integer not null primary key, ts text not null); create table if not exists nodes ( id integer not null primary key, version integer not null, latitude real not null, longitude real not null, tags text, metadata text ); create table if not exists node_id_map...
true
059f0db550f9c730aeec3825459fff2a0e7a5a80
SQL
ChimpanG/CIVITAS-CSE-Release
/CIVITAS City-States/Core/Framework/CSE_ValidationConfig.sql
UTF-8
1,088
2.953125
3
[]
no_license
/* Validation Config Authors: ChimpanG */ ----------------------------------------------- -- Schema ----------------------------------------------- CREATE TABLE IF NOT EXISTS ModValidation ( Version TEXT DEFAULT NULL ); ----------------------------------------------- -- ModValidation -------------------------...
true
21caf9f866e2e825dc2670246ea47ff72adb10ed
SQL
jaxonhu/spring-taoxingqu
/tao_interest.sql
UTF-8
6,199
3.359375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : vensli Source Server Version : 50624 Source Host : localhost:3306 Source Database : tao_interest Target Server Type : MYSQL Target Server Version : 50624 File Encoding : 65001 Date: 2015-06-29 10:16:17 */ SET FOREIGN_KEY_CHECKS=0; --...
true
f70de73bebf2a22551fd5db40aa527ee63f9e5ed
SQL
alexjavier15/sparkmjoin
/queries/20_1.sql
UTF-8
767
3.5
4
[]
no_license
select S_NAME, S_ADDRESS from supplier, nation, ( select PS_SUPPKEY as PS_SUPPKEY2 from partsupp, ( select PS_PARTKEY as PS_PARTKEY1, PS_SUPPKEY as PS_SUPPKEY1, 0.5 * sum(L_QUANTITY) as MOY from part, partsupp, lineitem where L_PARTKEY = PS_PARTKEY and P...
true
a53cca4a3241ee09ddc2ec1cf1837a2451893ddb
SQL
emreturgutce/stock-management
/stock-management.sql
UTF-8
17,873
3.953125
4
[ "MIT" ]
permissive
CREATE DATABASE stock_management WITH template=template0 owner=postgres; \connect stock_management; CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE EXTENSION IF NOT EXISTS "pgcrypto"; CREATE TYPE gender_enum AS ENUM ('MALE', 'FEMALE'); CREATE TABLE IF NOT EXISTS suppliers ( id UUID PRIMARY KEY DEFAULT uuid_g...
true
8cf73571838929cb8b043991d8fb6756f03037cd
SQL
alexfjclements/spending_tracker
/db/spendingtracker.sql
UTF-8
729
3.6875
4
[]
no_license
DROP TABLE transactions; DROP TABLE merchants; DROP TABLE labels; DROP TABLE users; CREATE TABLE users ( id SERIAL4 PRIMARY KEY, username VARCHAR(255) not null, name VARCHAR(255), monthly_budget DECIMAL(8, 2) ); CREATE TABLE merchants ( id SERIAL4 PRIMARY KEY, name VARCHAR(255) not null, user_id INT4 RE...
true
f897de5670a7fd750bc02cb28e2d575363022ae5
SQL
Ahmad-Quraan/ecom_sharma
/ecommerce.sql
UTF-8
5,352
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 19, 2020 at 10:01 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
73676d2f92aca2a92d7bbbdd7fcb5fa918465b37
SQL
vrijune/web-dev14-database2
/sql/ictgradschool/web/lab14/sample_db.sql
UTF-8
3,134
3.734375
4
[]
no_license
DROP TABLE IF EXISTS unidb_teach; DROP TABLE IF EXISTS unidb_attend; DROP TABLE IF EXISTS unidb_courses; DROP TABLE IF EXISTS unidb_students; DROP TABLE IF EXISTS unidb_lecturers; CREATE TABLE unidb_lecturers ( staff_no int(11) NOT NULL, fname varchar(32) NOT NULL, lname varchar(32) NOT NULL, office ...
true
0998ac9c6bf31e43183c120dda1df6405feb4841
SQL
knowyrrole101/bq_snippets
/scheduled_query.sql
UTF-8
899
3.359375
3
[]
no_license
# Example that copies the current firebase table each day via a Scheduled Query in BigQuery # # Scheduled Query parameters: # Destination: <dataset_destination> # Query string: select * from `<source project>.<source dataset>.<table prefix>_*` where _TABLE_SUFFIX = replace(cast(@run_date as STRING), '-', '') # Destina...
true
ad76973e2f8d8a842ea7be1925d9818f89e37a04
SQL
vox613/itecoSpringProject
/src/main/resources/data-postgresql.sql
UTF-8
2,359
3.71875
4
[]
no_license
-- Скрипт для заполнения таблиц с возможными статусами и ролями пользователей/заданий/договоров CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; INSERT INTO user_roles (id, value, created_at, updated_at) VALUES (uuid_generate_v1(), 'ADMIN', now(), now()), (uuid_generate_v1(), 'CUSTOMER', now(), now()), (uuid...
true
eb34278273069f0a9874c1691c9a8efd8c73f69b
SQL
mrbrunelli/aula-banco-de-dados
/selectAula3Exercicios.sql
UTF-8
1,042
3.859375
4
[]
no_license
-- 1) Uma lista com as profissões dos gafanhotos e seus respectivos quantitativos: select profissao, count(*) from gafanhotos group by profissao order by count(*) desc; -- 2) Quantos gafanhotos homens e quantas mulheres nasceram após 01/Jan/2005? select sexo, count(*) from gafanhotos where nascimento > '2005-01-01' gr...
true
fd02af53e19a727d4f34651b77a63d925a1efa56
SQL
ninofelino/webservice
/views/sql/catagory.sql
UTF-8
233
2.734375
3
[]
no_license
select * from ( select '1' as id,concat('<b>Supplier</b>') as text,'#' as parent union select '2' as id,'Mclass' as text,'#' as parent union select id,concat(rtrim("text")) as text,parent from catagory ) t where text<>'' order by 1
true
9cc5914dc6989719daf58b541045363eee09228a
SQL
uroseric/java_zadaci
/java_zad/src/arrays/Baze_vezbanje.sql
UTF-8
1,273
3.296875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `bazevezbanje` USE `bazevezbanje`; DROP TABLE IF EXISTS `customer`; CREATE TABLE `customer` ( `id` int(11) NOT NULL AUTO_INCREMENT, `first_name` varchar(20) NOT NULL, `last_name` varchar(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=la...
true
65f9e1222789ac17113d43d1c42e970a795d2708
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day27/select0146.sql
UTF-8
178
2.640625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-26T01:46:00Z' AND timestamp<'2017-11-27T01:46:00Z' AND temperature>=25 AND temperature<=47
true
3618c0f16b03a58dc8ef16ef2fa4bd74a12fca3d
SQL
lalego/sinaBack
/src/main/resources/sql/create-db.sql
UTF-8
5,784
3.59375
4
[]
no_license
-- ORMA_PROFESIONALS CREATE SEQUENCE SEQU_ORMA_PROFESIONALS; CREATE TABLE ORMA_PROFESSIONALS ( PROF_ID INTEGER DEFAULT (NEXT VALUE FOR SEQU_ORMA_PROFESIONALS) NOT NULL AUTO_INCREMENT, PROF_NAME VARCHAR(50) NOT NULL, PROF_SURNAME_1 VARCHAR(50), PROF_SURNAME_2 VARCHAR(50), PROF_ID_VALUE VARCHAR(100) NOT NULL, PRO...
true
204ef4c58568cdef17dcaeb6e966a0c8419e0ec8
SQL
jayeshpatil130/My-Projects
/Hospital Management Databse Project/Dump20181213/hospitalmanagement1_routines.sql
UTF-8
14,167
2.90625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.12, for Win64 (x86_64) -- -- Host: localhost Database: hospitalmanagement1 -- ------------------------------------------------------ -- Server version 8.0.12 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RES...
true
8c5459242084c20f04d223628027532e6886aea7
SQL
AgustinNormand/BaseDeDatos2
/TrabajosPracticos/Unidad1/TrabajoPractico1/Ejercicio6/SelectProcedures.sql
UTF-8
4,945
3.8125
4
[]
no_license
SET TERM ^ ; CREATE PROCEDURE SP_SELECT_PROCEDURE_1Y2 ( IMPORTE_DESDE INTEGER, IMPORTE_HASTA INTEGER ) RETURNS ( NRO TYPE OF COLUMN FACTURA.NRO, IMPORTE TYPE OF COLUMN FACTURA.IMPORTE, FECHA TYPE OF COLUMN FACTURA.FECHA ) AS BEGIN IF (IMPORTE_DESDE IS ...
true
29fc29b658ab4431ebbeb8e71b306b2dbe2b64d2
SQL
sanjayvinsol/exercise
/order.sql
UTF-8
2,638
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 17, 2019 at 12:24 PM -- Server version: 5.7.26-0ubuntu0.18.04.1 -- PHP Version: 7.2.19-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
123c814c3fa0b203bd56d0e5c239a5ccad90a125
SQL
khonghung/code
/webdienthoai.sql
UTF-8
21,120
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Dec 11, 2017 at 09:18 AM -- Server version: 5.7.14 -- PHP Version: 7.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_...
true
a8d98a7697425ce0166b4fcf94d319f11d6b3bd0
SQL
Chet-kiy/GitGitGey
/for GitHub/myinfo.sql
UTF-8
2,180
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Хост: localhost:3306 -- Время создания: Май 29 2020 г., 13:59 -- Версия сервера: 5.7.24 -- Версия PHP: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTE...
true
564c103704bb532a2faab6d5a9ca0be745df2d73
SQL
KenAdeniji/WordEngineering
/InformationInTransit/ProcessLogic/Good.sql
UTF-8
2,010
3.109375
3
[]
no_license
SELECT 'Half' AS Ratio, COUNT(*) AS VerseCount, (SELECT scriptureReference FROM Bible..KJV WHERE verseIdSequence = (SELECT MIN(verseIdSequence) FROM Bible..KJV WHERE VerseText LIKE '%Half%')) AS FirstScriptureReference, (SELECT scriptureReference FROM Bible..KJV WHERE verseIdSequence = (SELECT...
true
c22c7f762fa998f5eb1558e072347d7a5e1cb7f3
SQL
akheron/sqltyper
/tests/integration/in-scalars.sql
UTF-8
699
3.546875
4
[]
no_license
--- setup ----------------------------------------------------------------- CREATE TABLE test ( foo integer NOT NULL, bar integer, baz integer ); --- query ----------------------------------------------------------------- SELECT 1 IN (foo, :param) AS a, 1 IN (foo, bar) AS b, 1 + NULL IN (1, 2, 3) A...
true
9b4148a425c3c8a02b0a71b920f6cbced0fc00fc
SQL
Good725/ideabubble-lamp
/plugins/surveys/model/model-20190604132100.sql
UTF-8
538
2.703125
3
[]
no_license
/* ts:2019-06-04 13:21:00 */ ALTER TABLE `plugin_survey` ADD COLUMN `is_backend` TINYINT(1) NULL DEFAULT '0' AFTER `view_all`, ADD COLUMN `course_id` INT(11) NULL AFTER `is_backend`, ADD COLUMN `contact3_subtype_id` INT(11) NULL AFTER `course_id`; CREATE TABLE `plugin_ib_educate_bookings_has_surveys` ( ...
true
b047ac47982883ce5e74e025b3152522a74cddbf
SQL
adrianfdez469/personal-portfolio
/prisma/migrations/20210212200723_change_many_to_many_relation_table/migration.sql
UTF-8
782
3.234375
3
[]
no_license
/* Warnings: - You are about to drop the `_ProjectToSkill` table. If the table is not empty, all the data it contains will be lost. */ -- DropForeignKey ALTER TABLE "_ProjectToSkill" DROP CONSTRAINT "_ProjectToSkill_A_fkey"; -- DropForeignKey ALTER TABLE "_ProjectToSkill" DROP CONSTRAINT "_ProjectToSkill_B_fkey"...
true
aee128de3d7a2b4af499abdf0fa09a2b70499583
SQL
jade053/202007_itw_bd18
/lab_oracle/sql05.sql
UTF-8
4,064
4.03125
4
[]
no_license
-- Oracle 연습 계정 활성화 -- 1) 명령 프롬프트 실행 -- 2) sqlplus를 사용해서 sysdba 권한으로 접속 -- 3) hr 계정의 비밀번호를 hr로 설정, 계정을 unlock(해제) -- 4) hr 계정으로 접속 -- 5) hr 계정이 가지고 있는 테이블 이름들을 확인 -- 6) hr 계정이 가지고 있는 테이블들의 구조를 확인 -- SQL Developer에서 hr 접속 계정 설정 -- 1) 새 접속(+) 버튼 클릭 -- 2) Name, 사용자 이름, 비밀번호, SID 설정 -- -> 테스트 -> '성공' 확인 후 저장...
true
201150d0e5c7135fb41d62ed39bf925eb55de09e
SQL
kssenii/ClickHouse
/dbms/tests/queries/0_stateless/00910_zookeeper_custom_compression_codecs_replicated.sql
UTF-8
6,885
3.390625
3
[ "Apache-2.0" ]
permissive
SET send_logs_level = 'none'; DROP TABLE IF EXISTS test.compression_codec_replicated1; DROP TABLE IF EXISTS test.compression_codec_replicated2; CREATE TABLE test.compression_codec_replicated1( id UInt64 CODEC(LZ4), data String CODEC(ZSTD), ddd Date CODEC(NONE), somenum Float64 CODEC(ZSTD(2)), some...
true
be29cf4e037c9a8a778b4b178c2b00fc15937c3e
SQL
dpavlin/git-sql-sphinx
/git.sql
UTF-8
301
2.921875
3
[]
no_license
\r mysql create database git ; grant all on git.* to dpavlin ; \r git create table log ( id integer primary key not null auto_increment, hash varchar(40) not null, parent varchar(40) not null, timestamp datetime not null, subject text not null ); create unique index log_hash on log(hash);
true
3d5dc996b17aa74cdc95a68e185d26e0c302bb04
SQL
weihancool/MGP-AttTCN
/src/data_preprocessing/extract_MIMIC_data/extract_labels/SQL-SOFA/cardiovascular/cardio_SOFA.sql
UTF-8
4,438
4.09375
4
[ "MIT" ]
permissive
DROP MATERIALIZED VIEW IF EXISTS SOFA_cardio CASCADE; CREATE materialized VIEW SOFA_cardio AS -- calculate weight with wt as ( select ha.hadm_id -- average weight , avg( case -- kg when itemid in (762, 763, 3723, 3580, 226512) then valuenum -- lbs when itemid in (3581) then valuenum * 0.4535923...
true