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
f499ecb3b5a88d0704a539384c3eb7d8e6abac9c
SQL
volverinejr/sca-api
/src/main/resources/db/migration/V1__Create_Table_Permission.sql
UTF-8
238
2.8125
3
[]
no_license
CREATE TABLE IF NOT EXISTS permission ( id bigint not null, description varchar(255), created_by varchar(255), created_date timestamp not null, last_modified_by varchar(255), last_modified_date timestamp, primary key (id) )
true
b895bb4d9227ca37d642fb5ba35e470771e829c6
SQL
howtocards/backend
/migrations/2019-09-28-140611_add_username_and_default_username/up.sql
UTF-8
204
3.328125
3
[]
no_license
ALTER TABLE "users" ADD COLUMN "username" VARCHAR; UPDATE users SET username = CONCAT('id', users.id) FROM users comp WHERE users.id = comp.id; ALTER TABLE "users" ALTER COLUMN "username" SET NOT NULL;
true
18dcaf06fc7e43a757cb9d53b50054689be482ab
SQL
IlyaMorozovM/lab5WT
/newbase.sql
UTF-8
3,440
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Хост: localhost -- Время создания: Май 10 2020 г., 21:16 -- Версия сервера: 8.0.20 -- Версия PHP: 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_...
true
9c2301e281c27f01878496c1a3dc4a642ba02797
SQL
subhashsubramanyam-mitel/sqlserver_db_projects
/FinanceBI/usage/Functions/UfnTnMonthlySummary.sql
UTF-8
3,186
3.484375
3
[]
no_license
-- ============================================= -- Author: Tarak Goradia -- Create date: Jan 29, 2013 -- Description: Encapsulating a query in multi-statement table function -- ============================================= create FUNCTION usage.UfnTnMonthlySummary ( --@ServiceMonth Date -- not used ) RETURNS ...
true
772e8ea3e1a59eeb1ded1fa333ea3d11ce27879a
SQL
santiaghini/-shiptivitas-3
/answer.sql
UTF-8
420
2.8125
3
[]
no_license
-- TYPE YOUR SQL QUERY BELOW -- PART 1: Create a SQL query that maps out the daily average users before and after the feature change -- PART 2: Create a SQL query that indicates the number of status changes by card -- I TOOK A DIFFERENT APPROACH -- Instead of creating the queries myself, I made use of datapine...
true
759798b1341c356b205b2f070af1a4d63ca29208
SQL
abin1999/DBMS
/cycle 1/cycle 1.2.sql
UTF-8
1,152
3.890625
4
[]
no_license
CREATE TABLE STUDENT ( SID INT, SNAME VARCHAR(25), DOB DATE, Physics INT, Chemistry INT, Maths INT ); DESCRIBE STUDENT; INSERT INTO STUDENT(SID,SNAME,DOB,Physics,Chemistry,Maths) VALUES (1,'abison','1999-07-05',93,89,85), (2,'anunadh','1998-09-28',50,70,86), (3,'akhil','1996-02-18',29,45,20), (4,'alex','2000-01-01',70,...
true
1742fed186ca88d7f4e6b5902f37f88ed4f58ecd
SQL
felixniemeyer/2014-flights-network-analysis
/queries/load-missing-patronage-estimations.sql
UTF-8
578
3.515625
4
[]
no_license
DROP TABLE IF EXISTS temp_patronage_estimations; CREATE TABLE temp_patronage_estimations ( airport_id TEXT PRIMARY KEY, patronage INT ); .mode csv temp_patronage_estimations .import ./temp_missing_patronages.csv temp_patronage_estimations UPDATE airports SET patronage = ( SELECT patronage FROM temp_...
true
d51be0dcd0d89c96d5b7b788caf696f4d3f1c3d0
SQL
federicofranco97/redesphp
/Tablas/puntoventa.sql
UTF-8
1,787
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 10-10-2019 a las 01:36:02 -- Versión del servidor: 10.1.26-MariaDB -- Versión de PHP: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
3aa99de5d2578a8d6e27598b6ff2a739f580ab92
SQL
Amrutha-Howale/Kanininew
/dbms/day7/Day15/PizzaDeliveryApplication/SQLQuery2.sql
UTF-8
2,139
3.640625
4
[]
no_license
create Database Pizza_Shop use Pizza_Shop create table Pizza( ID int Identity(100,1), Pizza_Name varchar(100) not null, price float not null, Pizza_Type varchar(20), Constraint pk_Pizza primary key(ID)) Create table Toppings( ID int Identity(1001,1), Toppings_Name varchar(100) not null, Price int not null, Constraint...
true
be8310d943e7575df1edb0c82079992dc4dcb897
SQL
nuh1234/Comment-Wall
/commentWall/user_db.sql
UTF-8
3,782
3.25
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.13, for macos10.14 (x86_64) -- -- Host: 127.0.0.1 Database: Users -- ------------------------------------------------------ -- Server version 8.0.12 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; ...
true
40118541a2a6216105bd21ee11ad33651512407e
SQL
KRobinson10000/sqlpostgres
/183/samples.sql
UTF-8
906
3.6875
4
[]
no_license
SELECT pcity, pstate, COUNT(*) AS "people per city" from people WHERE pcity LIKE 'A%' GROUP BY pcity, pstate HAVING COUNT(*) >= 2 ORDER BY "people per city" DESC, pcity ASC; SELECT pcity, pstate, COUNT(*) AS "people per city" from people GROUP BY pcity, pstate HAVING pcity LIKE 'A%' AND COUNT(*) >= 2 ORDER BY "pe...
true
618ec1efb9433f8e1f1c44d9340a7f4d61549bc8
SQL
Div685/MySQL-Zoo
/6_Join/join.sql
UTF-8
1,482
4.34375
4
[ "MIT" ]
permissive
-- 1. SELECT matchid, player FROM goal WHERE teamid = 'GER' -- 2. SELECT id,stadium,team1,team2 FROM game -- 3. SELECT player,teamid, stadium, mdate FROM game JOIN goal ON (id=matchid) where teamid = 'GER' -- 4. select team1, team2, player from game join goal on (id=matchid) where player like 'Mario%' -...
true
d23294f86577e4f2ce8774126597341beab0abc8
SQL
cel055/GerenciaSalas
/dumpSenac19_02_18.sql
UTF-8
46,591
3.4375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 19-Fev-2018 às 18:41 -- Versão do servidor: 10.1.28-MariaDB -- PHP Version: 7.1.10 drop database if exists senac_neb; create database senac_neb; use senac_neb; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET A...
true
002fc9a92564d42ca6ef6996ef8a76290aae5bc1
SQL
kostaskougios/mapperdao
/src/test/resources/sql/ManyToManyCompositeKeySuite.derby.sql
UTF-8
711
3.703125
4
[]
no_license
[ddl] create table "User" ( id int not null GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), name varchar(50) not null, reference varchar(20) not null, primary key (id,reference) ) ; create table Account ( id int not null GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), serial bigint not n...
true
401c8b6f46f3e8167e0e727210531ba6bde0748c
SQL
ktarick/SQL
/Day-3/nationwide-order-list.sql
UTF-8
181
3.359375
3
[]
no_license
-- list orders and which customers select o.*, c.*, ol.* from Customers c join Orders o on o.CustomerId = c.Id join OrderLines ol on ol.OrdersId = o.Id where c.name = 'Nationwide'
true
b439091e87b604b90b1f345a6b60882fcfd1a07a
SQL
hoaingo/new-project
/pms-sp-configuration/src/main/resources/list-sp/up_pms_convert_po.sql
UTF-8
1,764
2.921875
3
[]
no_license
-- CREATE DEFINER=`intern`@`%` PROCEDURE `up_pms_convert_po`( pPr_id int(11), pComment text, -- pStatus ENUM('PURCHASE_ORDER_SUBMITTED', 'PURCHASE_ORDER_PENDING_APRROVAL', 'PURCHASE_ORDER_IN_PROGRESS', 'PURCHASE_ORDER_APPROVED', 'PURCHASE_ORDER_REJECTED', 'PURCHASE_ORDER_VOIDED', 'PURCHASE_ORDER_DELIVERED', 'RECEIPT_I...
true
de35f89c37c5a2a62bb9abe38253d2f81b54d7f1
SQL
pillar62/EEP2015
/DABI/需求項目/20171114/V_RT2051.sql
UTF-8
1,000
3.171875
3
[]
no_license
drop view V_RT2051 create view V_RT2051 as SELECT * FROM HBAdslCmty where comtype <> '7' and comtype <> '8' and comtype <> '9' UNION ALL SELECT A.COMQ1, B.LINEQ1, A.COMN, A.RADDR, A.COMCNT, C.QQ AS USERCNT, A.COMTYPE, B.ADSLAPPLYDAT, '' AS COMSOURCE, D .GRO...
true
7f897fa7a01386e2ddd895eaffa78e91aa653dac
SQL
mszeftel/proyecto3
/demodata.sql
UTF-8
3,572
2.796875
3
[]
no_license
-- Dumping data for table delilah.orders: ~2 rows (approximately) /*!40000 ALTER TABLE `orders` DISABLE KEYS */; INSERT INTO `orders` (`id`, `user_id`, `payment`, `status`, `delivery_address`, `created_at`) VALUES (1, 6, 'cash', 'new', '159 Borinquen Pl, Dupuyer, 3870', '2020-11-22 14:55:51'), (3, 2, 'card', 'new', '...
true
cc5e304c4a8873bc2f358ee60c7af3eebba60159
SQL
532438041/ltProjects
/mydemo/src/main/resources/sql/mydemo12.13.sql
UTF-8
6,349
3.453125
3
[]
no_license
/* SQLyog Ultimate v11.24 (32 bit) MySQL - 5.6.26-log : Database - mydemo ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHE...
true
df3b3d3013df23cfe03f5bcc64775e199188282e
SQL
MehrajLatifli/Book---Dapper-with-Repository-Unitofwork-pattern-in-MVVVM
/Book/BookDapper.sql
UTF-8
740
3.578125
4
[]
no_license
create database BookDapper use BookDapper create table Books ( IdBook int primary key IDENTITY (1,1) NOT NULL, BookName nvarchar(max) NOT NULL, BookPrice money NOT NULL, BookQuantity bigint NOT NULL, Constraint CK_BookName Check(BookName <>' '), ) insert into BookDapper.dbo.Books(BookDapper.dbo....
true
6bf7554b7e88368d0ec227cba0f6c5c89e51cc4d
SQL
Sergiod3x/laravel-migration-seeder
/trip.sql
UTF-8
3,700
2.796875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Sep 10, 2021 at 02:58 PM -- Server version: 5.7.24 -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
288e70e40519987b9afb70e8eb713c34ce13f063
SQL
rstevenson6/Capstone
/files/ddl/Final_DB.ddl
UTF-8
1,781
3.5625
4
[ "MIT" ]
permissive
DROP TABLE IF EXISTS class; DROP TABLE IF EXISTS TA; DROP TABLE IF EXISTS backupClass; DROP TABLE IF EXISTS instructors; DROP TABLE IF EXISTS user; DROP TABLE IF EXISTS excelHeader; CREATE TABLE instructors ( name VARCHAR(40) NOT NULL, dept VARCHAR(20), unit INTEGER, PRIMARY KEY(name) ); CREATE TABLE backupClass ( ...
true
75957a434c0769f46350af5bc03c228da9c2861a
SQL
pborisovich94/SQL-Examples
/recursive_scenario_steps.sql
UTF-8
2,361
3.890625
4
[]
no_license
-- View: public.vw_scenario_steps -- DROP VIEW public.vw_scenario_steps; CREATE OR REPLACE VIEW public.vw_scenario_steps AS WITH RECURSIVE tmp_tb(id_step, id_parent, step, code, name_text, script, id_ref_scenario, back_to_step) AS ( SELECT tss.id_scenario_steps, tss.id_parent, ...
true
0cc159070de72649f32e29b918f724a14e234a7a
SQL
truyngoc/FMD14
/CDDL/TQDT_TT/Update all server TQDT/update VT_ID bang DHANG_MD (Che xuat)/update_script.sql
UTF-8
298
2.84375
3
[]
no_license
update h set h.VT_ID = n.VT_ID From DHANG_MD h join DCX_DM_HH_DUA_VAO_RA n on rtrim(h.MA_HQ_VT_ID)=rtrim(n.MA_HQ) and h.Ma_DV=n.MA_DV and h.Ma_Vat_Tu=n.MA_HANG and h.Loai_Hang = n.Loai_Hang where (h.TK_ID >= 10000000000000 and h.TK_ID < 20000000000000) and h.Ma_LH like '_CX%'
true
da53c1e6fb57d5b2cfbf1ab390c8ab4fc79d6940
SQL
mo-hemdan/StudyZone
/Back-end/Database.sql
UTF-8
2,356
3.3125
3
[ "Apache-2.0", "MIT" ]
permissive
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; drop database if exists registery; CREATE DATABASE registery; USE registery; Create table registery( id VARCHAR(128) NOT NULL, token Text NOT NULL, Primary Key(id) ); Create table account( userid VARCHAR(128) NOT NULL, ...
true
6b4905e59e30d88544e54731fc9a137cba1763f4
SQL
krisdewa/CRUD-TB-YANTO
/db/database_responsibasdat.sql
UTF-8
3,864
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 22, 2021 at 02:18 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
e286297e4800cea6e2a28492b3d3970b3723e4c5
SQL
nozomitaguchi/hello_cats_based_lib
/docker/mysql/001_prefecture.sql
UTF-8
209
2.828125
3
[]
no_license
use test_db; CREATE TABLE prefecture ( code tinyint not null, name varchar(16) not null, primary key (code) ) ENGINE=Innodb; INSERT INTO prefecture (code, name) VALUES (1, "hokkaido"), (2, "aomori") ;
true
4750c49eae4d352f9231aa645311cfaf38836e03
SQL
tanaytrivedi/ece464
/joining.sql
UTF-8
403
3.4375
3
[]
no_license
/*this file doesnt load anything, it just contains the query's ran to make joined tables for analysis*/ create table regioned_breweries select name,city,brewery.state,rating,brewery_id,region from breweries inner join regions on breweries.state=regions.state_code; create table regioned_beers select b.*,r.region,r.rati...
true
1aa99d7e930ceb9f79b32fe416d634f5c60f00ff
SQL
AnushaM112611/Data-Processing-on-Cloud-AWS-EMR-S3-
/EMR/input-bucket/users.sql
UTF-8
796
3.125
3
[]
no_license
ADD JAR s3://demo.bigdataemrlab/input/jsonserde.jar; CREATE EXTERNAL TABLE users (userid int, username string, firstname string, lastname string, city string, state string, email string, phone string, likesports string, liketheatre string, likeconcerts string, likejazz string, likeclassical string, likeopera string...
true
1879ffa48e8a810e2a045d421924e89692a05ac7
SQL
nmbazima/SQL-Scripts
/SQL Query Files/SQL-master/sel_DeadLinkedServers.sql
UTF-8
518
3.78125
4
[ "Apache-2.0" ]
permissive
SELECT CONVERT(nvarchar (14), sls.SourceServer) AS SourceServer , CONVERT(nvarchar (16), sls.DestinationServer) AS DestinationServer , sls.LastUpdate FROM t_server s JOIN SQLLinkedServers sls ON s.server_name = sls.DestinationServer WHERE s.active = '0' order by 1,2 SELECT ServerName, DBName, DatabaseUserID, Ser...
true
7b444121a29107a57421e5acfbaa251bc7a88173
SQL
devcwilkey/mondoburger
/db/seeds.sql
UTF-8
489
2.546875
3
[]
no_license
/* Seeds for SQL table. We haven't discussed this type of file yet */ USE burgers_db; /* Insert 3 Rows into your new table */ INSERT INTO burgers (burger_name) VALUES ("Hamburger"); INSERT INTO burgers (burger_name) VALUES ("Cheeseburger"); INSERT INTO burgers (burger_name) VALUES ("Chicken Burger"); INSERT INTO bu...
true
7fc221f7d5a23a632b9a934d442de2369d8af62d
SQL
unee-t/skeema-experiment
/bugzilla/ut_all_units.sql
UTF-8
274
2.515625
3
[]
no_license
CREATE TABLE `ut_all_units` ( `id_record` int(11) unsigned NOT NULL AUTO_INCREMENT, `product_id` mediumint(9) unsigned NOT NULL COMMENT 'The id in the `products` table', PRIMARY KEY (`id_record`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
true
3bebca647a6e0adc0a36955b192b10c3257f1f5a
SQL
x2110311x/Tommy
/databases/structure.sql
UTF-8
3,918
3.6875
4
[]
no_license
CREATE TABLE ChannelCategories ( ID BIGINT NOT NULL, Name VARCHAR(30) NOT NULL, PRIMARY KEY (ID) ); CREATE TABLE Channels ( ID BIGINT NOT NULL, Name VARCHAR(40) NOT NULL, Type VARCHAR(8) NOT NULL, Category BIGINT, PRIMARY KEY (ID), FOREIGN KEY (Cate...
true
c74faaca89f322f0784b84dca0d3cc6037885f84
SQL
Folksdev-camp/folksdev-aoserdardemirkol
/target/classes/db/migration/V1_1__create_users.sql
UTF-8
189
2.703125
3
[]
no_license
CREATE TABLE IF NOT EXISTS users ( user_id VARCHAR(255) NOT NULL, username VARCHAR(255), gender VARCHAR(255), CONSTRAINT users_pkey PRIMARY KEY (user_id) );
true
cda900f799f9e0a609c79a217d51e67130a61ad5
SQL
NicePlayOfU/leetcode
/sql/1132.reported-posts-ii 垃圾清除率/1.sql
UTF-8
470
3.90625
4
[]
no_license
# Link: https://leetcode-cn.com/problems/reported-posts-ii SELECT ROUND(AVG(`proportion`) * 100, 2) `average_daily_percent` FROM ( SELECT `a`.`action_date`, COUNT(DISTINCT `r`.`post_id`) / COUNT(DISTINCT `a`.`post_id`) `proportion` FROM `actions` `a` LEFT JOIN `remov...
true
af1f92d4c1ca125d2ce3de31cfa4db9dd97fcef9
SQL
Mongker/htdocs
/ql_sinhvien/ql_sinhvien.sql
UTF-8
7,340
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th10 07, 2019 lúc 02:30 AM -- Phiên bản máy phục vụ: 10.4.6-MariaDB -- Phiên bản PHP: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
true
6d9cb57cef3d64c60cff515fadd2cbdaa7e60aa6
SQL
canriquez/sqlzoo_practice
/06.the_join_operation.sql
UTF-8
5,091
4.5625
5
[]
no_license
/* 1. The first example shows the goal scored by a player with the last name 'Bender'. The * says to list all the columns in the table - a shorter way of saying matchid, teamid, player, gtime Modify it to show the matchid and player name for all goals scored by Germany. To identify German players, check for: teamid =...
true
6b345605bb1ebce4495fd3f645005d12ea0efe09
SQL
george-sp/coding_bootcamp-java
/db_&_user_mgmt/00.sql_joins/exercise11.sql
UTF-8
1,046
4.53125
5
[]
no_license
/* * Create a list of actors (id, first, last name) and the number of movies by each actor, * that have played in movies that had a duration more than 183 minutes. * Display the results sorted by the number of films each actor has paricipated. */ # 1st way SELECT sakila.actor.actor_id, sakila.actor.first_name, sa...
true
bfb43a76c264e434db6ba99f1365897f1113eb18
SQL
lexdu53/tpPersistance
/bdd/baseSQL.sql
UTF-8
14,203
3.234375
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Wed Mar 28 10:43:33 2018 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TR...
true
9eb3bc95463d11371c3242159c77c8f346e80283
SQL
diegorocha/TrabalhoBD2
/db/create.sql
UTF-8
1,014
3.296875
3
[]
no_license
--Criando estrutura --create database trabalhobd2; create table logradouro(cep integer primary key, nome varchar(100), bairro varchar(40), cidade varchar(50), uf char(2)); create table usuario(id serial primary key, nome varchar(100), cpf char(11), sexo char(1), telefone varchar(11)); create table endereco_us...
true
82b6344bdf46cb721c02a3d91c047ab1b369b338
SQL
Miamiohlibs/worldcat
/sql/mul-min.sql
UTF-8
564
3.546875
4
[ "Apache-2.0" ]
permissive
SELECT DISTINCT(p.index_entry) FROM sierra_view.phrase_entry AS p JOIN sierra_view.record_metadata AS r ON p.record_id = r.id JOIN sierra_view.bib_record AS b ON b.record_id = r.id JOIN sierra_view.bib_record_location AS l ON l.bib_record_id = b.record_id WHERE p.index_tag = 'o' AND p.varfield_type_code IS DISTIN...
true
31d6f940e619f9bc2a77eb075ae95edde08664fc
SQL
Biswas-N/Trivia-API
/backend/data_seeder.sql
UTF-8
2,393
3.65625
4
[]
no_license
CREATE TABLE categories ( id SERIAL PRIMARY KEY, type VARCHAR ); CREATE TABLE questions ( id SERIAL PRIMARY KEY, question VARCHAR, answer VARCHAR, category_id INTEGER REFERENCES categories(id), difficulty INTEGER ); INSERT INTO categories (type) values ('Science'), ('Art'), ('Geo...
true
bf62150e6d1a613d01b891bbf36a36ee94ddcad2
SQL
MineiToshio/AmazonViewer
/db/amazonviewer.sql
UTF-8
5,222
3.265625
3
[ "MIT" ]
permissive
CREATE DATABASE IF NOT EXISTS `amazonviewer` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */; USE `amazonviewer`; -- MySQL dump 10.13 Distrib 8.0.11, for Win64 (x86_64) -- -- Host: localhost Database: amazonviewer -- ------------------------------------------------------ -- Server version 8.0....
true
aa64acda412fb6042048c4416a71fb0f84f7b507
SQL
matrix1602/PHP2211
/Examples/chapter4/db1.sql
UTF-8
2,695
3.46875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 08, 2021 at 12:55 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
7ede299ebb95379684e8a3a095a27a912b757d22
SQL
arita37/cassandra-examples
/cassandra-examples-llp/C2.2/employee/emp.cql
UTF-8
666
2.90625
3
[]
no_license
USE test; CREATE TABLE emp ( empid int, deptid int, fn text, ln text, PRIMARY KEY (empid, deptid)); CREATE TABLE emp2 ( empid int, deptid int, fn text, ln text, PRIMARY KEY (empid, deptid, fn)); CREATE TABLE emp3 ( empid int, deptid int, fn text, ln text, PRIMARY KEY (empid, fn, deptid)); COPY emp (empid, deptid, fn,l...
true
5206a9371110b0b441ab36577b40a2d7d91f96b7
SQL
web1903-cyl/vue-
/vue_server_00/m.sql
UTF-8
2,597
2.9375
3
[]
no_license
SET NAMES UTF8; DROP DATABASE IF EXISTS m; CREATE DATABASE m CHARSET=UTF8; USE m; /*用户信息*/ CREATE TABLE m_user( uid INT PRIMARY KEY AUTO_INCREMENT, uname VARCHAR(32), upwd VARCHAR(32), email VARCHAR(64), phone VARCHAR(16), avatar VARCHAR(128), #头像图片路径 user_name VARCHAR(32), ...
true
008658bceec9c1f869e24f4adc8ad55d7ffe2c41
SQL
Raccoon-01/837377-yeticave
/queries.sql
UTF-8
3,449
3.859375
4
[]
no_license
INSERT INTO categories (name, img_background, LotsId) VALUES("Доски и лыжи", "promo__item--boards", "1"), ("Крепления", "promo__item--attachment", "3"), ("Ботинки", "promo__item--boots", "4"), ("Одежда", "promo__item--clothing", "5"), ("Инструменты", "promo__item--tools", "2"), ("Разное", "promo__item--other", "6"); I...
true
0edbb1b9a42bb787a2b95d2da6207945ad0d1c1f
SQL
delinliu/parser
/src/test/resources/query/tokenizer-test01.sql
UTF-8
294
2.984375
3
[]
no_license
select field1, field2, sum(_field0) from table1 where field1>'2020-01-01' and field2 = 'This is "just" a test #' and field3 = "This 'is' \"also\" a test" and field4 in ('a', "b", 10) # this is comments and field5 >= 1.5 #and field5 = 1 group by field1, field2 order by field1 desc limit 100;
true
9291413c897758ecd3b14e27045cee0b444d32ef
SQL
Rushikesh0020/SQL-Learning
/More_About_Data_Types/float_double.sql
UTF-8
786
3.234375
3
[]
no_license
CREATE TABLE thingies (price FLOAT); INSERT INTO thingies(price) VALUES (88.45); SELECT * FROM thingies; +-------+ | price | +-------+ | 88.45 | +-------+ INSERT INTO thingies(price) VALUES (8877.45); SELECT * FROM thingies; +---------+ | price | +---------+ | 88.45 | | 8877.45 | +---------+ INSERT INTO thingi...
true
8c739e588d7030ee2637c0461939f3b87c073ca6
SQL
Merovingian87/fullStackAppDemo
/server/schema.sql
UTF-8
427
3.21875
3
[]
no_license
-- DROP DATABASE forumDB; CREATE DATABASE forumDB; USE forumDB; CREATE TABLE users(id INT(3) NOT NULL AUTO_INCREMENT PRIMARY KEY, user_name VARCHAR(24)); CREATE TABLE posts (id INT(3) NOT NULL AUTO_INCREMENT PRIMARY KEY, text VARCHAR(140), created_at TIMESTAMP, user_id INT(3), CONSTRAINT messages_fk FORE...
true
a073bf6668ccc60e8ef4f9c0c0d8d26a95c0b8d3
SQL
ponicito2015/govizamix
/goviza2/goviza2-war/web/BD/cambios9.sql
UTF-8
2,670
3.25
3
[]
no_license
INSERT INTO ESTADO_ORDEN_SALIDA_DETALLE_ALMACEN_PRODUCTOS(NOMBRE_ESTADO, DESCRIPCION)VALUES("PRODUCTO RETORNADO","REVUELTO"); drop PROCEDURE RESETEO; DELIMITER // CREATE PROCEDURE RESETEO() BEGIN DELETE FROM ORDEN_SALIDA_DETALLE_ALMACEN_PRODUCTOS WHERE ID_ORDEN_SALIDA_DETALLE_ALMACEN_PRODUCTOS_COSTOS > 0...
true
4edd73ade19f1e2719fdb68dec1889217bcb35da
SQL
kunalbodhe/smartwashroom
/smarttoillet (7).sql
UTF-8
10,458
3
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 01, 2018 at 09:59 PM -- Server version: 10.1.24-MariaDB -- PHP Version: 7.1.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
5f3d6fa1efb904a424fd653dffdc1469b78d546c
SQL
Mmednz/ExamProject-3
/src/main/java/com/example/exampro/SQLDump/eksotisk_catering_db.sql
UTF-8
4,840
3.234375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.20, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: eksotisk_catering_db -- ------------------------------------------------------ -- Server version 5.7.20-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SE...
true
fe4628ee0b9df8d6681e580cf67a905259c5a802
SQL
Dalgim/SQLDB
/joinMultiple.sql
UTF-8
1,070
4.21875
4
[]
no_license
-- uso de JOIN multiples select CONCAT(c.first_name, ' ', c.last_name) as CustomerName, a.address, s.store_id as ID_Tienda , CONCAT(st.first_name, ' ', st.last_name) as AdminName, store_address.address as Store_Address from customer c join address a on c.address_id = a.address_id join store s on c.st...
true
32ed1c9367a1918aea6c1654d12b9c4bfc3d5f17
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day21/select0201.sql
UTF-8
191
2.703125
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-20T02:01:00Z' AND timestamp<'2017-11-21T02:01:00Z' AND SENSOR_ID='33f15a48_1399_47ca_88eb_2395c814715a'
true
60b7abfe8776767ef08cc05f4ce55ec5f3c7bb0e
SQL
jhwan7/TattooHub
/sql/ex2.sql
UTF-8
4,062
3.875
4
[]
no_license
-- Please note that for our database this is the schema we used in order to be able to use filldb.info -- we can improve this schema in a couple ways! -- location_province VARCHAR(32) NOT NULL enum {'Alberta', 'British Columbia', 'Manitoba', 'New Brunswick', 'Newfoundland and Labrador', 'Northwest Territories', 'Nova S...
true
88422134b2284a5d4540b27bc16b4ce7262868ed
SQL
Dingrid/Alegore
/hack (1).sql
UTF-8
4,914
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 06-Dez-2020 às 22:09 -- Versão do servidor: 5.7.17 -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
52c07d7150ed524d037bda88c99789fceb88fc2a
SQL
HTTPArchive/almanac.httparchive.org
/sql/2021/compression/lighthouse_compression_scores.sql
UTF-8
529
3.203125
3
[ "Apache-2.0" ]
permissive
#standardSQL # lighthouse_compression_scores.sql Distribution of Text Based Compression Lighthouse Scores SELECT _TABLE_SUFFIX AS client, JSON_EXTRACT_SCALAR(report, '$.audits.uses-text-compression.score') AS text_compression_score, COUNT(0) AS num_pages, SUM(COUNT(0)) OVER (PARTITION BY _TABLE_SUFFIX) AS total...
true
e02a54d73ed4420be1bf9fc79fe3f1598dde0c1f
SQL
sndnvaps/MyRasPi
/db/scripts/create-table-mysql.sql
UTF-8
600
3.09375
3
[]
no_license
set global time_zone = '+8:00'; CREATE DATABASE IF NOT EXISTS Temps DEFAULT CHARSET utf8 COLLATE utf8_general_ci; use Temps; set charset utf8; DROP TABLE IF EXISTS pi_temps; CREATE TABLE pi_temps ( id int(8) unsigned NOT NULL AUTO_INCREMENT, name varchar(30) NOT NULL DEFAULT 'DHT.RPI_RECORDER' , temp varchar(5) NO...
true
98c4b137a61e0a5331f9608a76f1858f4a08d347
SQL
LP-339up/handmade-model-whole
/Alter/static/houtai/houtaijiekou/order_management.sql
UTF-8
2,031
3.21875
3
[]
no_license
/* SQLyog Ultimate v12.09 (64 bit) MySQL - 8.0.16 : Database - xiangmu ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS...
true
bcc61dd50cea2c5dab87794bbb56a21ddf2f7932
SQL
Ensembl/ensembl-compara
/scripts/production/populate_member_production_counts_table.sql
UTF-8
5,380
3.765625
4
[ "Apache-2.0" ]
permissive
-- See the NOTICE file distributed with this work for additional information -- regarding copyright ownership. -- -- 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.apac...
true
c594f920d834e93b3296ece12d4d4f67e44e665a
SQL
Lucas4088/SQL_base
/Widoki/Rekomendacja.sql
WINDOWS-1250
2,424
3.796875
4
[]
no_license
ALTER VIEW "DBA"."Rekomendacja" AS -- rekomendacja trzech najpopularniejszych ksiek pod kryteria klienta SELECT TOP 3 K.Tytul AS Tytul FROM Ksiazka AS K JOIN Gatunek AS G ON (K.GatunekID=G.GatunekID) JOIN Egzemplarz AS E ON (K.KsiazkaID=E.KsiazkaID) RIGHT JOIN (SELECT Sygnatura, KontoID FROM HistoriaWypozycze...
true
d3720d244385f77c6cc375cab9365863874a4bb0
SQL
DataAnalyticsinStudentHands/CommunityHealthWorkersBackend
/mysql/chwapp_structureOnly.sql
UTF-8
16,196
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 28, 2015 at 05:43 PM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET FOREIGN_KEY_CHECKS=0; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
true
e10c9f9cbc641ec7621b2f41e3df7f765ce35a0c
SQL
lgos44/profedex-api
/db/profedex.sql
UTF-8
9,966
3.65625
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 profedex ...
true
c60a837225caf0db32935809e71d5b232dd0ca88
SQL
acoustictime/CollegeCode
/Cal State San Bernardino (CSUSB)/CSE572 - Databases/CSE572/project/comments/mark/comment_attributes_rents.sql
UTF-8
692
3.21875
3
[]
no_license
/* Project Option: Coyote Residence Office TEAM: King James & The Knights of the Data Table Comments on Attributes for Rents COMMENT BY: Mark Takahashi */ comment on column Rents.place_number is 'The unique identifier of each instance of a Student renting a room - format: 1234'; comment on column Rents.student_number...
true
d54ef0aaabdfe61ef04792df59d53548e83d0f23
SQL
soon14/isap-parent
/isap-dao/dao/1.CreateTable/t_user.sql
UTF-8
971
3.3125
3
[]
no_license
-- t_user DROP TABLE IF EXISTS t_user; CREATE TABLE t_user ( id bigint NOT NULL AUTO_INCREMENT, name varchar(128) NOT NULL COMMENT '用户名称', login_name varchar(36) NOT NULL COMMENT '登录名', passwd varchar(64) NOT NULL COMMENT '用户密码', mobile char(11) default NULL COMMENT '移动电话', email varchar(36) default NULL C...
true
628fa576e1e7edb01a53b0e1b695d1ae492ed3f6
SQL
FaithMandela/QuestionThree
/projects/schools/database/old_db/02.views.sql
UTF-8
7,165
3.6875
4
[]
no_license
CREATE VIEW vw_staff AS SELECT entitys.entity_id, entitys.entity_name, staff.org_id, staff.staff_id, staff.staff_role, staff.full_name, staff.surname, staff.first_name, staff.middle_name, staff.date_of_birth, staff.gender, staff.phone, staff.primary_email, staff.place_of_birth, staff.marital_status, staff.appoi...
true
2f3137ce7404ee4254c8b58fb1ad91f000f02786
SQL
china-university-mooc/mysql-basics-atguigu
/01-dql/resources/demo/sort_query.sql
UTF-8
642
3.765625
4
[]
no_license
# 引入 SELECT * FROM employees; # 1 SELECT * FROM employees ORDER BY salary DESC; SELECT * FROM employees ORDER BY salary ASC; # 2 SELECT * FROM employees WHERE department_id >= 90 ORDER BY hiredate ASC; # 按表达式排序 SELECT *, salary * 12 * (1 + IFNULL(commission_pct, 0)) AS 年薪 FROM employees ORDER BY salary * 12 * (1 + ...
true
d7449d2e3a9741ffa85aef516bd0ded9f734ecd3
SQL
mosales/Sql
/primer practica moni.sql
UTF-8
1,303
3.796875
4
[]
no_license
--1 SELECT * FROM "suppliers" ORDER BY "company_name"; --2 SELECT "first_name", "last_name","hire_date" FROM "employees" ORDER BY "hire_date" DESC; --3 SELECT "product_id" FROM "products" ORDER BY "product_id" ASC; --4 SELECT "product_id","product_name","quantity_per_unit","unit_price" FROM "products" WHERE "suppli...
true
3635d11da918863ebd296e3122500cffc2b4d778
SQL
amilcaralex97/auth-todo-list
/database.sql
UTF-8
665
3.5
4
[]
no_license
CREATE DATABASE authtodolist; --users CREATE TABLE users( user_id UUID DEFAULT uuid_generate_v4(), user_name VARCHAR(255) NOT NULL, user_email VARCHAR(255) NOT NULL UNIQUE, user_password VARCHAR(255) NOT NULL, PRIMARY KEY(user_id) ); ---todos CREATE TABLE todos( todo_id SERIAL, user_id UUID, descrip...
true
2028538cfe587e1683dfe58d5a8d7a3b5d12aed1
SQL
gabriel-inf/oscars
/wsnbroker/sql/createTables.sql
UTF-8
705
3.328125
3
[]
no_license
-- -- Table of subscriptions to notifications -- CREATE TABLE subscriptions ( id INT NOT NULL PRIMARY KEY GENERATED ALWAYS AS IDENTITY, referenceId VARCHAR(512) NOT NULL, userLogin VARCHAR(256) NOT NULL, url VARCHAR(512) NOT NULL, createdTime BIGINT NOT NULL, terminationTime BIGINT NOT NULL, status INT NO...
true
58a05c2e65035bdd75f7a30001571fa5db17e181
SQL
fastndead/Backend
/db.sql
UTF-8
5,738
2.71875
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 9.5.14 -- Dumped by pg_dump version 9.5.14 -- Started on 2018-08-27 09:46:53 SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); S...
true
da9f2d8bf7b6616b06a2229fba81707412aa6434
SQL
keyking-coin/code
/UserManager/sql/um.sql
WINDOWS-1252
1,657
3.046875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : Source Server Version : 50520 Source Host : localhost:3306 Source Database : um Target Server Type : MYSQL Target Server Version : 50520 File Encoding : 65001 Date: 2016-05-29 23:09:31 */ SET FOREIGN_KEY_CHECKS=0; -- ----------------...
true
f90cc9f2898e2448d28cc9b53fe87b6697e850da
SQL
Emi-dev/Employee-Tracker
/db/schema.sql
UTF-8
879
4.28125
4
[]
no_license
DROP DATABASE IF EXISTS employee_db; CREATE database employee_db; USE employee_db; -- creat department table CREATE TABLE department ( id INT AUTO_INCREMENT NOT NULL, name VARCHAR(30) NOT NULL, PRIMARY KEY(id) ); SELECT * FROM department; -- dreate role table CREATE TABLE role ( id INT AUTO_INCREMENT NOT NU...
true
39b1e74279636cc10519a419477b584b858e0114
SQL
mna-2719/dcamp-sumstatwinfunc-sql
/08-Frames.sql
UTF-8
948
4.46875
4
[ "MIT" ]
permissive
WITH Scandinavian_Medals AS ( SELECT Year, COUNT(*) AS Medals FROM Summer_Medals WHERE Country IN ('DEN', 'NOR', 'FIN', 'SWE', 'ISL') AND Medal = 'Gold' GROUP BY Year) SELECT -- Select each year's medals Year, Medals, -- Get the max of the current and next years' medals MAX(Medals) OVER ...
true
f4d12f7a3d217b06588313ce1f1e6744d8d11dc4
SQL
radtek/abs3
/sql/mmfo/bars/Table/diler_kurs.sql
WINDOWS-1251
4,898
3.21875
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/DILER_KURS.sql =========*** Run *** == PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
b980eba81b9899f1e8f6dcdda5d9bd850143791f
SQL
jhonatantirado/dycs_examen_parcial
/Api/Migrations/MySQL/3_customer.sql
UTF-8
877
2.984375
3
[]
no_license
CREATE TABLE customer ( customer_id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(50) NOT NULL, identification_number VARCHAR(20) NOT NULL, PRIMARY KEY (customer_id), UNIQUE INDEX customer_id_UNIQUE (customer_id ASC) , UNIQUE INDEX identification_number_UNIQUE (identification_number ASC) ) ENGINE=In...
true
6c4e13a4c9f479b568cabc810578cf848432dce8
SQL
ChernenkoVitaliy/hillel_hw
/stack-overflow-integration-tests/src/test/resources/schema.sql
UTF-8
2,285
4
4
[]
no_license
CREATE SCHEMA IF NOT EXISTS `stackoverflow` ; USE stackoverflow; DROP TABLE IF EXISTS comment, answer, question, account; CREATE TABLE `stackoverflow`.`account` ( `id` INT NOT NULL AUTO_INCREMENT, `password` VARCHAR(128) NOT NULL, `account_status` VARCHAR(10) NOT NULL, `name` VARCHAR(45) NOT NULL, `email` V...
true
6daabb26c070d39d7cca33777138d35863bd7c4a
SQL
southsound-dev/PHP-registration-and-login-form-for-MySQL-with-CSS-and-JS-Animations
/login.sql
UTF-8
1,653
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 01-09-2020 a las 02:04:07 -- Versión del servidor: 10.4.13-MariaDB -- Versión de PHP: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
a011b376f4097af882441a473bedb2e0cba2b5b4
SQL
whereislima/sql-joins
/sql_zoo.sql
UTF-8
8,143
4.65625
5
[]
no_license
-- The JOIN operation -- 1. -- The first example shows the goal scored by a player with the last name 'Bender'. The * says to list all the columns in the table - a shorter way of saying matchid, teamid, player, gtime -- Modify it to show the matchid and player name for all goals scored by Germany. To identify German p...
true
597ff0d0ad6b0a83d06031a454a8e7f3626bccb9
SQL
csillaposa/bus_assignment
/bus_assignment.sql
UTF-8
2,668
3.6875
4
[]
no_license
-- creating the database CREATE DATABASE bus_assignment; USE bus_assignment; -- filling the database with the required tables -- Bus table CREATE TABLE Bus( bus_id INT PRIMARY KEY NOT NULL AUTO_INCREMENT, model_nr VARCHAR(20), capacity INT ); -- Route table CREATE TABLE Route( route_id INT PRIMARY KEY NOT NULL AUTO...
true
3e7be6398c6e94c232920f2f60d586f73f58380e
SQL
LittleGeorgeWatchingStar/Rialto2020
/data_migrations/completed/SalesOrderDetail_StkCode_fix.sql
UTF-8
1,069
3.6875
4
[]
no_license
select d.ID, d.OrderNo, d.StkCode, d.UnitPrice, t.Order_, m.StockID, m.Price from SalesOrderDetails d join DebtorTrans t on d.OrderNo = t.Order_ join StockMoves m on t.Type = m.Type and t.TransNo = m.TransNo where d.StkCode not in ( select StockID from StockMaster ) and m.Price = d.UnitPrice and m.StockID not in ( sele...
true
c8970424250ba9c1cd7746acfe031703d8f8b218
SQL
luxgrenabayu/sensus2
/database/arkademy.sql
UTF-8
3,360
3.171875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 09 Mar 2019 pada 16.26 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
54c3e8948156dea40eb631f703d46754bbb5207d
SQL
rikardoroa/QuoraProject
/bin/QUERYS PROYECTO QUORA/4A.sql
UTF-8
1,613
3.796875
4
[]
no_license
SELECT DISTINCT MIN(T.CONSECUTIVO) FROM (SELECT MAX(REQUISICIONES.CNSREQ) AS CONSECUTIVO ,MAX(CONVERT(VARCHAR(16),ITEMSREQ.FECHA_SOLICITUD,20) )AS MAXFSA ,MAX(CONVERT(VARCHAR(16),REQUISICIONES.FECHA_SOLICITUD,20)) MAXFSAA1 FROM REQUISICIONES INNER JOIN ITEMSREQ ON ITEMSREQ.CEDULA = REQUISICIONES.CE...
true
00420d5b748608c14cd87db7fcdd75c83c6afffd
SQL
windldream/leetcode
/sql/visit.sql
UTF-8
148
3.4375
3
[]
no_license
select customer_id, count(*) as count_no_trans from Visits v where visit_id not in ( select visit_id from Transactions ) group by customer_id
true
930091e320a7229d1c9c6e95f432af809992be1b
SQL
willtd/CitizenWater
/mobile-app/android-database-creator/android_db_setup.sql
UTF-8
1,411
3.265625
3
[]
no_license
DROP TABLE if exists ReadingTypes; DROP TABLE if exists Readings; DROP TABLE if exists Devices; CREATE TABLE ReadingTypes ( Name TEXT, Unit TEXT, ReadingTypeID INTEGER PRIMARY KEY); CREATE TABLE Devices ( DeviceCloudID TEXT, DeviceName TEXT, DeviceCloudKey TEXT, DeviceID INTEGER PRIMARY KEY); CREATE T...
true
6f856a501630f2634a77f7af6d8deafa0c23ea6d
SQL
pymass/Multicampus_AI
/5. 이정인 강사님/02 데이터 저장/02 lab/scott.sql
UHC
487
3.0625
3
[]
no_license
select * from emp where sal >= 3000; select * from emp where DEPTNO=10; select empno, ename, sal from emp where sal <= 1500; select * from emp where ename = 'FORD'; -- ʹ ҹ select empno, ename, sal from emp where ename='SMITH'; select hiredate from emp; select * from emp where hiredate <= '82/01/01'; select cei...
true
85ac4b6af0897fb18d227172fba1e2fc639483b5
SQL
radtek/abs3
/sql/mmfo/bars/Table/err$_cig_dog_general.sql
UTF-8
4,045
2.8125
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/ERR$_CIG_DOG_GENERAL.sql =========*** PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
572f0ebab278e7b5796c87661ca1107e916ee286
SQL
annoymousGiraf/fuzzy-auth-service
/src/main/resources/data.sql
UTF-8
394
2.8125
3
[]
no_license
DROP TABLE IF EXISTS users; CREATE TABLE users ( id INT AUTO_INCREMENT PRIMARY KEY, first_name VARCHAR(250) NOT NULL, last_name VARCHAR(250) NOT NULL, uname VARCHAR(250) DEFAULT NULL, is_active BIT DEFAULT 1 ); INSERT INTO users (first_name, last_name, uname,is_active) VALUES ('Aliko', 'Dangote', 'bono',...
true
ace7537ff1e56ea316bfad67ff3b21262b9b3872
SQL
radtek/abs3
/sql/mmfo/bars/Table/part_zvt_doc.sql
WINDOWS-1251
3,689
2.78125
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/PART_ZVT_DOC.sql =========*** Run *** PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
5e8b5302429637c8013af6adfad49206f4866d44
SQL
SonuShaikh/Oracle-DBA
/PLSQL/DYNAMIC_SQL.sql
UTF-8
2,068
3.640625
4
[]
no_license
-- DYNAMIC SQL SET SERVEROUTPU ON; DECLARE v_sqlQuery VARCHAR2(150); v_totalemp NUMBER; BEGIN v_sqlQuery := 'SELECT COUNT(*) FROM HR.EMPLOYEES'; EXECUTE IMMEDIATE v_sqlQuery INTO v_totalemp; DBMS_OUTPUT.PUT_LINE('Total number of employees'|| v_totalemp); END; / --DDL STATEMEN...
true
f2765f53db0cc24a29d3ea23c091b3284cfea999
SQL
tww19861004/fastSQL
/src/api/FastSQL.App/Migrations/1.0.0/1525335086-AddIndexPullDependencies.sql
UTF-8
1,136
3.140625
3
[ "MIT" ]
permissive
-- Name: example-cd26ae6d-1490-4219-9f66-414a6c96a0a4 -- Date: 5/3/2018 2:38:06 PM -- Author: BaoChau ---------------------------- -- Migration up goes here. ---------------------------- DROP TABLE core_index_pull_dependencies; CREATE TABLE core_pull_dependencies ( [Id] UNIQUEIDENTIFIER PRIMARY KEY DEFAULT NEWID(), ...
true
a9b07e3997bf68275a90c45429b5a1e94772fbcc
SQL
radtek/abs3
/sql/mmfo/bars/Table/deal_balance_account_settings.sql
WINDOWS-1251
3,402
3.078125
3
[]
no_license
begin bars_policy_adm.alter_policy_info('DEAL_BALANCE_ACCOUNT_SETTINGS', 'WHOLE', null, null, null, null); end; / declare name_already_used exception; pragma exception_init(name_already_used, -955); begin execute immediate 'create table deal_balance_account_settings ( a...
true
733c7a976f504cbdc14281c441fb19fb303c4b76
SQL
rt-oliveira/Programas-e-Exercicios-de-tutoriais
/T-SQL/Função SPACE.sql
UTF-8
279
2.953125
3
[]
no_license
-- Função SPACE -- Dado um número N, criará uma string de N caracteres em branco. -- Neste exemplo, a função está sendo usada para criar um espaço -- entre as palavras 'I', 'LOVE' e 'INDIA' SELECT 'I'+SPACE(1)+'LOVE'+SPACE(1)+'INDIA' -- Resultado final: 'I LOVE INDIA'
true
13473eae5a4ba6f85c187167875892391d6b377e
SQL
tomoki86/kadai
/diary.sql
UTF-8
2,642
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: 2019 年 1 月 20 日 19:40 -- サーバのバージョン: 10.1.34-MariaDB -- PHP Version: 5.6.37 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
true
de58e7cc3da01962d9f104032994f5a56bfdf434
SQL
gpipperr/OraDBASQLScripts
/standby_status.sql
UTF-8
5,105
3.734375
4
[]
no_license
-- ====================================================== -- GPI - Gunther Pippèrr -- Desc : Check the status of the standby DB for Gaps -- ====================================================== -- http://arjudba.blogspot.de/2011/03/scripts-to-monitor-data-guard.html -- --===============================================...
true
15ef56181b6faeffed4697efba570f0b17a6ff03
SQL
shoemoney/stuff
/book.d/lectures/stepik_bd/8_count_sum_avg_datediff.sql
UTF-8
1,053
3.515625
4
[]
no_license
#База данных учета проектов `project_simple` состоит из одной таблицы `project` следующей структуры: CREATE TABLE IF NOT EXISTS `project_simple`.`project` ( `project_name` VARCHAR(255) NULL, `client_name` VARCHAR(255) NULL, `project_start` DATE NULL, `project_finish` DATE NULL, `budget` DECIMAL(18,2) NULL) E...
true
b8595b5b52f1d183ddb1f1d0ee0158b172b1203e
SQL
CBelcianu/Data-Bases
/SQLlab5.sql
UTF-8
588
3.78125
4
[]
no_license
use Tdb select * from Ta where aid=3 select * from Ta where a2 % 2 = 0 select a3 from Ta where a3=2 select a3 from Ta where a3 % 2 = 0 select * from Ta where a2=2 create nonclustered index IX_NC_Ta_A3 on Ta(a3) --####################################################################### select * from Tb where b2 =...
true
3c75063e0cf98ec72b775800a3c47ee9b32c9a61
SQL
ashwinirkamble/trackit_from_start
/pshitrackit-trackit-f52e156d76d6/sql-scripts/archive/at_updates/training_workflow.sql
UTF-8
4,086
3.46875
3
[]
no_license
CREATE TABLE training_workflow ( training_workflow_pk INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, ship_fk INTEGER NOT NULL, backfile_recv_date DATE, backfile_completed_date DATE, loc_file_recv_date DATE, loc_file_rev_date DATE, pacflt_food_report_date DATE, system_ready_date DATE, computer_name_db_dat...
true
f8aa22f710bfea075c389c5e3a9549b7ce6ba8bf
SQL
endeavourhealth-discovery/DiscoveryQueryLibrary
/Projects/BartsPancreasTissueBankPhase2/Queries/bp2_type1and2.sql
UTF-8
2,453
3.609375
4
[ "Apache-2.0" ]
permissive
USE data_extracts; DROP PROCEDURE IF EXISTS executeType12BP2; DELIMITER // CREATE PROCEDURE executeType12BP2() BEGIN CALL buildDatasetForBartsPancreasBP2(); DROP TABLE IF EXISTS bp2_type1dataset; CREATE TABLE bp2_type1dataset ( pseudo_id VARCHAR(255) DEFAULT NULL, nhsnumber VARCHAR(10) ...
true