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
9949a99778ae70fa448a075d0690fab81d86f4b3
SQL
tatstepprive/learning-latin
/src/main/resources/sql/05-create-student-input.sql
UTF-8
720
2.90625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `learning_latin` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `learning_latin`; -- MySQL dump 10.13 Distrib 5.6.13, for osx10.6 (i386) -- -- Host: 127.0.0.1 Database: learning_latin -- ------------------------------------------------------ -- Server version 5.6.16 -- -- Table structu...
true
51aff2ac8ac1bb0b80a3d753b04ddeb922f8463b
SQL
Valashu/Lahaina_Framework
/libraries/security/_doc/tables.sql
UTF-8
1,300
3.921875
4
[]
no_license
-- -- Table structure for table `role` -- CREATE TABLE `role` ( `role_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) CHARACTER SET utf8 NOT NULL, `role_type` varchar(45) CHARACTER SET utf8 NOT NULL, PRIMARY KEY (`role_id`), UNIQUE KEY `role_type_UNIQUE` (`role_type`) ) ENGINE=InnoDB AUTO_INC...
true
2413a381e099c6038b5c931fa08a44433ff54945
SQL
wadzapi/learnWeldCdi
/src/main/resources/sql/user_roles.sql
UTF-8
1,047
3.203125
3
[ "Apache-2.0" ]
permissive
-- Создание таблиц с данными аутентификации -- create table users ( user_name varchar(15) not null primary key, user_pass varchar(15) not null ); create table roles ( role_name varchar(15) not null primary key ); create table user_roles ( user_name varchar(15) not null, role_name varchar(15) not null, pri...
true
7f716355337002084d5cb744af24da5f71ae98e5
SQL
dlmbg/AppRadio
/db_radio.sql
UTF-8
10,977
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Waktu pembuatan: 25. Juli 2013 jam 04:53 -- Versi Server: 5.1.44 -- Versi PHP: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RE...
true
67daf92358638c379f0bc9233483149eb71d8d7e
SQL
luiz-lombardi/projeto-hcn
/copia_encomenda.sql
ISO-8859-1
3,838
2.921875
3
[]
no_license
--************************************************************** --* Copia pedidos de encomenda pagos --************************************************************** accept NEW_ID_EMP prompt 'Informe a Loja Nova: ' accept LOJA_ORIGEM prompt 'Informe a Loja Origem: ' insert into PEDIDO_VENDA select ID_UNN, ...
true
ccf7accbbed442f349c645a3330ec3ec4ac41be9
SQL
ebussiere/GigFinder
/express-back-end/docs/archive/Saved_Companies (6).sql
UTF-8
1,239
2.875
3
[]
no_license
create table Saved_Companies ( id SERIAL PRIMARY KEY NOT NULL, worker_id INTEGER REFERENCES workers(id), employer_id INTEGER REFERENCES employers(id), favourite BOOLEAN DEFAULT FALSE, rating INT ); insert into Saved_Companies (id, worker_id, employer_id, favourite, rating) values (1, 5, 2, false, 5); insert into S...
true
52a375541d41955d8e8af723061804ba0ff58a23
SQL
liuneng1994/HDispatch
/core-db/src/main/java/hdispatch/core/db/data/mysql/tables/hdispatch_layer.sql
UTF-8
1,569
2.9375
3
[]
no_license
-- ---------------------------- -- Table structure for hdispatch_layer -- ---------------------------- DROP TABLE IF EXISTS `hdispatch_layer`; CREATE TABLE `hdispatch_layer` ( `layer_id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(32) DEFAULT NULL, `description` varchar(256) DEFAULT NULL, `active` tinyin...
true
619565a1b7c60420edfe2b06cb77108b436fd093
SQL
Zhangchangxin/System20
/system/schema/grade_2_data.sql
UTF-8
994
3.109375
3
[]
no_license
DELETE FROM course_grade; DELETE FROM course; DELETE FROM student; INSERT INTO student (sn, no, name) VALUES (101, 'S001', '张三'), (102, 'S002', '李四'), (103, 'S003', '王五'), (104, 'S004', '马六'); INSERT INTO course (sn, term, no, name, place, time) VALUES (101,'2020秋季学期', 'C01', '高数','第一公教...
true
ce7405e151f1be5d4f331b4ed2e109554985c551
SQL
eduardo-amorim7/newvideo
/updatedb/updateDb.v6.3.sql
UTF-8
634
3.09375
3
[ "MIT" ]
permissive
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'; ALTER TABLE `videos_statistics` ADD COLUMN `created` DATETIME NULL DEFAULT NULL AFTER `videos_id`, ADD COLUMN `modi...
true
cc1a12df3d441d1394b7a8470ab824901ff17b39
SQL
malam84/banking-microservice-demo
/account-service/src/main/resources/db/table.sql
UTF-8
269
2.546875
3
[]
no_license
/***************************Create Table******************************/ CREATE TABLE account( id int NOT NULL AUTO_INCREMENT, accno int NOT NULL, acctype varchar(55), amt float, createdDate Date, status boolean, custId int, PRIMARY KEY (id) );
true
70f7206ca7e15780f0cb9bdcf07b83711a48c390
SQL
AndreyProtas/API
/DB/students.sql
UTF-8
238
2.8125
3
[]
no_license
CREATE TABLE IF NOT EXISTS `students` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `Name` varchar(128) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`Id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=6 ;
true
03cce33acddff066a83c82cd511ca714b182668f
SQL
Cody-Coleman/ENTSM
/db/schema.sql
UTF-8
527
2.53125
3
[]
no_license
drop table if exists users; create table users ( id integer primary key autoincrement, username string not null, password string not null, first_name string not null, last_name string not null, email_address string not null, use_email integer, authorized integer, auth_token string, shard_id string, ...
true
885637c7fd8094be1e75455c5173f5823652add6
SQL
earth774/kdm_backend
/database/mysql/update_investor_table/investor_interest_type.sql
UTF-8
1,972
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 31, 2018 at 12:02 PM -- Server version: 10.1.25-MariaDB -- PHP Version: 7.0.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
ad9642e4466929d5d2f22a84724e4eda32cca440
SQL
subhajyotidey/MyProject
/Api/Controller/school_db.sql
UTF-8
3,563
3.375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jan 05, 2018 at 06:51 AM -- Server version: 5.7.19 -- PHP Version: 7.0.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
e18489afaef57a2a7947c8ebded1d62deaf93077
SQL
daviddobrijevic/carolina
/carolina.sql
UTF-8
7,172
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 19, 2020 at 11:44 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
0890988392951d9f460d4d35e52fd0b3e0296894
SQL
uakp98/SQL-for-Data_Science-
/dataScientistRolePlay.sql
UTF-8
49,255
3.765625
4
[]
no_license
By: Apurba kumar Pramanik Date: Jun-25-2020 Data Scientist Role Play: Profiling and Analyzing the Yelp Dataset Coursera Worksheet This is a 2-part assignment. In the first part, you are asked a series of questions that will help you profile and understand the data just like a data scientist would. For this first pa...
true
5075b55ba4f1e7fb4cc7c5416ab5167b084e8516
SQL
gabmor38/Resource_Wall
/db/seeds/DB_seeds.sql
UTF-8
3,867
3.015625
3
[]
no_license
-- Users table seeds here (Example) INSERT INTO users (name, email, password) VALUES ('Alice','Alice@gmail.com', 'password123'); INSERT INTO users (name, email, password) VALUES ('Kira','Kira@yahoo.com','password12'); INSERT INTO users (name, email, password) VALUES ('Leila','Leila@hotmail.com', 'password'); -- resour...
true
62810cc5d6c8762a7e3ec2fc040ec7a8ac4036e5
SQL
OrionJoshi/SQL
/Sorting_and_Filtering_HR/problem5.sql
UTF-8
870
3.40625
3
[]
no_license
-- 5. Write a query in SQL to display all the information about the department Marketing. -- Sample table: departments -- +---------------+----------------------+------------+-------------+ -- | DEPARTMENT_ID | DEPARTMENT_NAME | MANAGER_ID | LOCATION_ID | -- +---------------+----------------------+---------...
true
8f99cce9fcf4960b965a9c847ff3a05f3539e09f
SQL
JakaJenko/IEPS_Seminarska_WebCrawler
/implementation-indexing/database_creation.sql
UTF-8
287
3.03125
3
[]
no_license
CREATE TABLE ieps3.IndexWord ( word TEXT PRIMARY KEY ); CREATE TABLE ieps3.Posting ( word TEXT NOT NULL, documentName TEXT NOT NULL, frequency INTEGER NOT NULL, indexes TEXT NOT NULL, PRIMARY KEY(word, documentName), FOREIGN KEY (word) REFERENCES ieps3.IndexWord(word) );
true
9b7845d4c9896e92d4f1eb4e4001844243cd66ff
SQL
guimsmendes/hackerrank-resolutions
/Sql/BasicJoin/Challenges.sql
UTF-8
884
4.1875
4
[]
no_license
SELECT b.hacker_id, a.name, COUNT(b.challenge_id) AS count_challenge FROM hackers a INNER JOIN challenges b ON a.hacker_id = b.hacker_id GROUP BY b.hacker_id, a.name HAVING /* output anyone with a count that is equal to... */ count_challenge = /* the max count that anyone has */ (SELECT MAX(tem...
true
8a394be41a7c3b0a32f548bf19b45da818cb8096
SQL
Juandavid9909/masterPHPCourse
/aprendiendo-sql/06-subconsultas/consultas.sql
UTF-8
1,692
4.09375
4
[]
no_license
/* SUBCONSULTAS: - Son consultas que se ejecutan dentro de otras. - Consiste en utilizar los resultados de la subconsulta para operar en la consulta principal. - Jugando con las claves ajenas / foraneas. */ INSERT INTO usuarios VALUES(NULL, "Admin", "Admin", "admin@admin.com", "admin", CURDATE()); -- Sacar usuarios c...
true
a3834e8f9c9efcd7ac7389f589c3a4849162fb7e
SQL
mooncs/TIL
/5_db/00_DB/SQL/04_select.sql
UTF-8
712
4.15625
4
[]
no_license
-- 전체 조회 SELECT * FROM classmates; -- 컬럼 지정 조회 SELECT rowid, name FROM classmates; -- 개수 제한, linit SELECT id, name FROM classmates LIMIT 2; -- OFFSET 같이 사용 가능, OFFSET뒤 자료부터 가져온다. SELECT id, name FROM classmates LIMIT 2 OFFSET 2; -- 데이터베이스에 존재하는 도시의 이름을 중복 없이 가져와 SELECT DISTINCT address from classmates; -- users 테...
true
62a444c0abfb787f20f3f8c3d7aed3e1bca47ada
SQL
afinello/collabtive-task-comments
/tasks_comments.sql
UTF-8
880
2.671875
3
[ "Unlicense" ]
permissive
-- phpMyAdmin SQL Dump -- version 3.3.7deb7 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Sep 10, 2013 at 02:42 PM -- Server version: 5.1.66 -- PHP Version: 5.3.3-7+squeeze17 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET ...
true
ca520aa9773b72d1dcde9c2e7ee3675f1da2e111
SQL
vimleshtech/mssql-tutorial
/CTE Pivot and Unpivot.sql
MacCentralEurope
3,546
4.21875
4
[]
no_license
use hrms --CTE : Common Type Expression -------------------------- CTE ------------------------------------------- use hrms DROP TABLE CTEMaster CREATE TABLE [CTEMaster]( [Id] [int] , [City] [varchar](50) NULL, [State] [varchar](50) NULL ) insert into [CTEMaster] Select 1,'Aurangabad','BIHAR' union...
true
2f82893713f89ba2146ab51f2d9ee3225a70681d
SQL
qiong-coder/MyCar2.0
/src/test/resources/db/schema.sql
UTF-8
2,901
3.203125
3
[]
no_license
CREATE TABLE Account ( `id` INT AUTO_INCREMENT PRIMARY KEY, `username` VARCHAR(20) UNIQUE NOT NULL, `password` VARCHAR(20) NOT NULL, `name` VARCHAR(20) NOT NULL, `phone` VARCHAR(20) NOT NULL, `sid` INT(10) NOT NULL, `role` INT(10) NOT ...
true
09421f19b6f427704633b74b500d0017752db567
SQL
Cloud-Software-Development/trabalho_3
/backend/prisma/migrations/20210222214957_init/migration.sql
UTF-8
1,247
3.875
4
[]
no_license
-- CreateTable CREATE TABLE "User" ( "id" SERIAL NOT NULL, "identification" TEXT NOT NULL, "email" TEXT NOT NULL, "password" TEXT NOT NULL, "name" TEXT NOT NULL, "nickname" TEXT NOT NULL, "admin" BOOLEAN NOT NULL DEFAULT false, PRIMARY KEY ("id") ); -- CreateTable CREATE TABLE "Telepho...
true
e90915029680127fc987c54f418ac8d20b629e7a
SQL
akheel-s/CSE-111-Database_Systems
/Lab 5/lab-5/test/5.sql
UTF-8
474
3.78125
4
[]
no_license
SELECT supplier.s_name, part.p_size, MIN(partsupp.ps_supplycost) FROM supplier INNER JOIN partsupp on partsupp.ps_suppkey = supplier.s_suppkey INNER JOIN nation on supplier.s_nationkey = nation.n_nationkey INNER JOIN region on nation.n_regionkey = region.r_regionkey INNER JOIN part on part.p_partkey = partsupp.ps_part...
true
2870f9ff0d538cde359c8ffa7e016e95a2356ec2
SQL
BOYER5303/Lawn-and-Order
/db/products/delete_product.sql
UTF-8
199
2.953125
3
[]
no_license
DELETE FROM products WHERE product_id = $1; SELECT p.product_id, p.category, p.product, p.img, p.note FROM products p; --JOIN users u ON t.employee = u.user_id -- WHERE u.company_id = ${company_id};
true
3c1dfdab7b3c76f0f3f2af061fb44713d69e233e
SQL
Aleks-Ya/yaal_examples
/Database+/Postgres+/PostgresSyntax/Scripts/ddl/constraint/check.sql
UTF-8
1,614
4.21875
4
[]
no_license
drop schema if exists check_constraint cascade; create schema if not exists check_constraint; -- List constraints select * from information_schema.table_constraints where table_schema = 'check_constraint'; -- Add constraint without name (name is generated) CREATE TABLE check_constraint.products ( product_no inte...
true
255722c05a2382c18439fbbd4f796bd8dd807629
SQL
Jafet6/Jafet6.github.io
/back-end/my-sql/exercises/21_2/exercises3.sql
UTF-8
734
3.5625
4
[]
no_license
SELECT first_name, last_name FROM sakila.actor UNION SELECT UCASE(first_name), UCASE(last_name) FROM sakila.staff; SELECT first_name, last_name FROM sakila.customer WHERE first_name LIKE '%tracy%' UNION SELECT first_name, last_name FROM sakila.actor WHERE first_name LIKE '%je%'; (SELECT first_name FROM sakila.actor O...
true
468c9329ec2a1fd6060f31c7587fb5808bdda143
SQL
ygchan/SQL
/Ch_06_Sets.sql
UTF-8
5,619
4.1875
4
[]
no_license
-- How to sign back onto the SQL server. /* export PATH=$PATH:/Applications/MySQLWorkbench.app/Contents/MacOS mysql -u Study -p bank; */ -- SQL set operators -- Both data sets must have the same number of columns -- The data type must be the same -- 01: Compound query, "adding them vertically." -- combines multiple b...
true
d6b983f243cf1ab490b598a76fca060143dd03c4
SQL
tectronics/dreamdb
/WoWEmuf.org/Teleporter_NPC_TrinityCore2(Gossip)/Teleporter_with_Gossip.sql
ISO-8859-2
7,339
3.140625
3
[]
no_license
#NPC: Alliance SET @entryA :=50000; SET @factionA :=1733; -- Ez megy az allis npc-nek (Alliance=Friendly, Horde=Hated) SET @factionB :=1735; -- Ez megy a hords npc-nek (Alliance=Hated, Horde=Friendly) DELETE FROM `creature_template` WHERE `entry`=@entryA; INSERT INTO `creature_template` VALUES (@entryA, 0, -- d...
true
94f756bfce330e5302d037cba5cefad1afd3f662
SQL
DavidHaynesHasGitHub/navy_schemaV2
/navy.sql
UTF-8
1,001
3.46875
3
[]
no_license
SELECT 'hello, PG'; DROP TABLE IF EXISTS ships CASCADE; DROP TABLE IF EXISTS fleet CASCADE; DROP TABLE IF EXISTS sailors CASCADE; DROP TABLE IF EXISTS duties CASCADE; DROP TABLE IF EXISTS ranks CASCADE; DROP TABLE IF EXISTS assignments CASCADE; CREATE TABLE ships ( id SERIAL PRIMARY KEY NOT NULL, name VARCHAR(255)...
true
c15474cdc45bfee3b938fa371a6daa8bf89d1c3b
SQL
dlu7/cpsc408-assignment2
/assignment2.sql
UTF-8
1,613
3.953125
4
[]
no_license
-- CPSC 408: Assignment 2 -- 1. CREATE TABLE Player ( pID SMALLINT UNSIGNED, name VARCHAR (20) NOT NULL, teamName VARCHAR(20), PRIMARY KEY (pID) ); -- 2. ALTER TABLE Player ADD age TINYINT UNSIGNED; -- 3. INSERT INTO Player VALUES (1, 'Player 1', 'Team A', 23), (3, 'Player 3',...
true
df28bb3d606a8b2f079cf336bd0c3b6e654775f0
SQL
prodersu/Planet-of-Java
/kids.sql
UTF-8
1,693
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Дек 09 2019 г., 10:42 -- Версия сервера: 10.1.35-MariaDB -- Версия PHP: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
f5f9b5345427b0366a30ac416223098f76053377
SQL
ruihuangdev/reveal
/sql/rui.sql
UTF-8
2,483
3.90625
4
[ "MIT" ]
permissive
################################ ## QUERIES ## ################################ # get information of all orders for a single customer select O.Customer_id, OD.Product_ID, OD.Order_quantity, P.Selling_Price, (OD.Order_quantity * P.Selling_Price) as Order_Amount from Orders O, Order_Details OD, Product P where ...
true
99211eb54aeb314868b21d9b617be020cfb7d0a7
SQL
totallytot/sql-snippets-for-atlassian-products
/mysql-variables-and-useful-snippets.sql
UTF-8
622
3.109375
3
[]
no_license
select @@innodb_buffer_pool_size; select @@innodb_log_file_size; select @@innodb_lock_wait_timeout; select @@max_connections; -- this should deliver you which Tables have references to the table you want to drop, -- once you drop these references, or the datasets which reference datasets in this table you will be abl...
true
ca494bd1ef9a78cae6beac59ed473e364e6b7649
SQL
mgoldsmith-mdsol/prs_scripts
/One Time Executions/WR207315_novonordisk.clinicalforce.com_UpdateCostsWithNullSpendPurpose_2012.1.0.1/WR207315_novonordisk.clinicalforce.com_UpdateCostsWithNullSpendPurpose_2012.1.0.1.sql
WINDOWS-1252
2,538
3.65625
4
[]
no_license
/* * Author: Michael Goldsmith * Date: 2013-FEB-27 * * Site: Novonordisk PROD * URL: novonordisk.clinicalforce.com * AR#: 1-434662348 * WR#: 207315 * */ /* > select tag, value, display from dropdown_lookup where (tag='accountingSubCode' and display='Investigator Fee-Ongoing') or (tag='spendPurpose' a...
true
a652a9812a9546a4c24fc6b616d4fee05070f299
SQL
JoaoVinezof/api.simple-blog
/engineering/vl_joaovinezof1.sql
UTF-8
23,552
3.21875
3
[ "MIT" ]
permissive
/* Navicat Premium Data Transfer Source Server : Localhost Source Server Type : MySQL Source Server Version : 100411 Source Host : localhost:3306 Source Schema : vl_joaovinezof Target Server Type : MySQL Target Server Version : 100411 File Encoding : 65001 Date: 28/0...
true
53542bf34d6f7be989ca611933d37d43ede1f04b
SQL
MrLeanage/SalesBuddyServer
/src/lib/sql/salesbuddy.sql
UTF-8
7,570
3.1875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64) -- -- Host: localhost Database: salesbuddy -- ------------------------------------------------------ -- Server version 8.0.23 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; ...
true
17aba21ebaf1af9ceb8d76b7461aa0b6050e0548
SQL
loury/SAU-IMS-HTML-master
/SAU-IMS/数据库导出文件文件/sauims.sql
UTF-8
9,715
2.90625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50714 Source Host : localhost:3306 Source Database : sauims Target Server Type : MYSQL Target Server Version : 50714 File Encoding : 65001 Date: 2016-12-01 11:34:23 */ SET FOREIGN_KEY_CHECKS=0; ...
true
ad916b6bc61be5e2448f3766fa6ece07f6673e0c
SQL
AjinkyaBangale2/Leetcode-SQL-Solutions
/1076 Project Employees II.sql
UTF-8
275
3.96875
4
[ "MIT" ]
permissive
#https://leetcode.com/problems/project-employees-ii/ SELECT project_id from Project GROUP BY project_id HAVING count(employee_id) = (SELECT count(employee_id) as num FROM Project p GROUP BY project_id ORDER BY count(employee_id) desc LIMIT 1)
true
d1f5a4c7f0e47951db095cc271d7de62adc31302
SQL
Goodkatt/351DB
/queries.sql
UTF-8
319
2.734375
3
[]
no_license
UPDATE Submission SET sub_date = CURRENT_TIMESTAMP - INTERVAL FLOOR(RAND() * 14) DAY WHERE sub_date IS NULL; UPDATE Submission SET bonus = 10 WHERE bonus IS NULL; UPDATE Submission SET sub_deadline = '2017-12-01' WHERE sub_deadline IS NULL; UPDATE Submission SET submission_grade = 10 WHERE sub_deadline > sub_date;
true
16ed0ad38e9df254545d330c7c9aa7a43130f41a
SQL
ArMANIAK/CodeIgniter_practice
/db.sql
UTF-8
3,107
3.5
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- -------------------------------------------------------- -- Хост: localhost -- Версия сервера: 5.7.24 - MySQL Community Server (GPL) -- Операционная система: Win64 -- HeidiSQL Версия: 10.2.0.5599 -- -------------------------------------------------------- /...
true
23a408c0f6c9c1e16a485ebdf2bb9aed26e9e83c
SQL
mariadb-JonahHarris/pg_fdw_mv_rewrite
/sql/test-103-complex-mv1.sql
UTF-8
424
2.75
3
[]
no_license
-- Anticipate no rewrite explain (VERBOSE, COSTS OFF) select key, COUNT (value) from test where hidden = 'hidden2' group by key; select key, COUNT (value) from test where hidden = 'hidden2' group by key; -- Anticipate rewrite explain (VERBOSE, COSTS OFF) select key, COUNT (value) from test where hidden = 'hidden2' gr...
true
3eaf9c9690356933dcbc0d34a36dee876f3f429c
SQL
raduitache/Orcus
/db.sql
UTF-8
12,349
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 07, 2019 at 06:10 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
ec5da202ee3a2219110e75a461d0fb79612f3c6b
SQL
mohamed-hohoud/contact-formulier
/eigenaren.sql
UTF-8
1,979
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Gegenereerd op: 23 jun 2017 om 15:12 -- Serverversie: 10.1.21-MariaDB -- PHP-versie: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT...
true
b04bb973d2cb34cdf6454926dc4a5eb90359faf9
SQL
dbs889/sql
/hr20200703.sql
UTF-8
1,550
3.28125
3
[]
no_license
SELECT * FROM DBA_USERS; ALTER USER hr IDENTIFIED BY java; ALTER USER hr ACCOUNT UNLOCK; 과제8 SELECT r.region_id,r.region_name,c.country_name FROM countries c,regions r WHERE c.region_id = r.region_id AND r.region_name ='Europe'; 과제9 SELECT r.region_id,r.region_name,c.country_name,city FROM countries...
true
91cb77fa9b14c4199e091813062bae973b7ab1d6
SQL
lucaburatti7/A00-Training-plan
/讲义_旧版/ZLJPj/SQL文样本/LTRSHT.SQL
SHIFT_JIS
4,528
2.734375
3
[]
no_license
CREATE TABLE LTRSHT ( o CHAR(9) NOT NULL, } NUMBER(1,0) NOT NULL, tOQo^폜 CHAR(1) NOT NULL, tOQx CHAR(1) NOT NULL, _~[OOP CHAR(2...
true
dbdd50279ba11e68023dfaff1009d85c65ca7306
SQL
kyc90/JD-prediction
/signal_generation/MASTER_creation_v1.sql
UTF-8
777
3.046875
3
[]
no_license
/* * @Author: han.jiang * @Date: 2017-04-28 21:38:44 * @Last Modified by: han.jiang * @Last Modified time: 2017-05-09 11:48:15 */ SELECT COUNT() FROM JDATA_USER_TBL; -- 105321 SELECT COUNT() FROM JDATA_PRODUCT_TBL; -- 24187 SELECT COUNT() FROM JDATA_COMMENT_TBL; -- 558552 SELECT COUNT() FROM JDATA_ACTION_TBL; -- 5...
true
104711b5c87378f9572cbf10791dd60d5a4f25d7
SQL
ivandeex/ivasql
/stepik-db97/xactions-homeworks.sql
UTF-8
3,867
4.125
4
[]
no_license
---------------------------------------------------- -- HOMEWORK #1 ROLLBACK; DROP TABLE IF EXISTS T CASCADE; DROP TABLE IF EXISTS R CASCADE; CREATE TABLE T(id int, value int); CREATE TABLE R(id int, value int); INSERT INTO T VALUES (1,10), (2,20); INSERT INTO R VALUES (1,100), (2,200); COMMIT; BEGIN ISOLATION LEVEL ...
true
c4aae439cb18175dba9649eff4ce13da328a66b6
SQL
madoed/UNC-2018
/src/main/resources/sql/005_user.sql
UTF-8
1,520
2.8125
3
[]
no_license
insert into Obj_types (object_type_id, name) values (1, 'user'); insert into Attributes (attr_id, attr_name) values (1001, 'first_name'), (1002, 'last_name'), (1003, 'username'), (1004, 'email'), (1006, 'friend'), (1036, 'avatar_url'), (1037, 'about_me'); insert into Obj_attributes (ob...
true
6d3e1be558b441a1850011478278d9524b45786d
SQL
webpoin/swaa
/win8.sql
UTF-8
1,856
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2014 年 03 月 30 日 18:14 -- 服务器版本: 5.5.16 -- PHP 版本: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_...
true
08de8c2c21a42e52020c2fc79a6c43850869d5e8
SQL
JenLHarris/open-data-app
/museums.sql
UTF-8
2,026
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 27, 2012 at 04:55 PM -- Server version: 5.5.8 -- PHP Version: 5.3.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SE...
true
428f6c99bf5945f07882683f2ccf6f9ddb882d96
SQL
hav79/service
/src/main/resources/db/migration/V1__Init_DB.sql
UTF-8
1,044
3.421875
3
[]
no_license
create sequence hibernate_sequence start 1 increment 1; create table device ( id int8 not null, device_model varchar(255), serial_number varchar(255) not null, place varchar(255), primary key (id) ); create table repair_card ( id int8 not null, end_date date, problem varchar(255), ...
true
6157ab0759c627b7cd049915d5b517fd140d97b7
SQL
noseka1/openstack-cloud-report
/network_report.sql
UTF-8
336
3.140625
3
[]
no_license
USE ovs_neutron; SELECT keystone.project.name AS project, networks.id, networks.name, subnets.name AS subnet, subnets.cidr, networks.status FROM networks INNER JOIN keystone.project ON networks.tenant_id COLLATE utf8_unicode_ci = keystone.project.id INNER JOIN subnets ON networks.id=subnets.network_id ORDER BY project,...
true
104062daa628037649d05559d6d204fbd792ea57
SQL
tectronics/shakti
/db/shakti.sql
UTF-8
9,938
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.7 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 05, 2013 at 08:43 PM -- Server version: 5.0.67-community-nt -- PHP Version: 5.2.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_C...
true
882f6284e2de24dbc25874a46ec4aa91ebd74b14
SQL
mtikoian/km-all-projects
/ECN/ECN_Database/KMPlatform/dbo/Stored Procedures/e_ClientGroup_SelectForAMS.sql
UTF-8
264
3.125
3
[]
no_license
CREATE procedure e_ClientGroup_SelectForAMS as select distinct cg.* from ClientGroup cg with(nolock) join ClientGroupClientMap m with(nolock) on cg.ClientGroupID = m.ClientGroupID join Client c with(nolock) on m.ClientID = c.ClientID where c.IsAMS = 'true'
true
4e9a332047f8e0685af0d73315f971ca05abdc0b
SQL
inctoolsproject/CBT-hse-Simple
/hse.sql
UTF-8
37,051
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jun 07, 2021 at 12:37 PM -- Server version: 8.0.17 -- PHP Version: 7.1.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
ca9c50ffd005cb0171e90274404ac4a746172fac
SQL
Adeynack/finances_experiments
/backend/go-gin/docs/database_evolution/000002_create_table_books.up.sql
UTF-8
170
3.0625
3
[ "MIT" ]
permissive
CREATE TABLE books ( "id" BIGSERIAL PRIMARY KEY, "name" TEXT NOT NULL, "owner_id" BIGINT NOT NULL REFERENCES "users" ("id"), -- UNIQUE ("name", "owner_id") );
true
4d4bcbbb26cda0761c1b3db20fd5b696babdfaea
SQL
18918090402/MZJF_Work
/MZJF_Work/0002 Git.nonobank.com/archive_20180806/bi-etl.git/03_DW_HADOOP/06_DMT_RM/01_TABLE/FACT_USER_STAT_DAILY.sql
UTF-8
1,999
2.921875
3
[]
no_license
DROP TABLE IF EXISTS DMT_RM.FACT_USER_STAT_DAILY; CREATE TABLE IF NOT EXISTS DMT_RM.FACT_USER_STAT_DAILY ( USER_ID bigint comment '用户ID', USER_NAME string comment '用户名', REAL_NAME string comment '真实姓名', IN_REPAYMENT_CNT int comment '还款中笔数', ALREADY_REPAYMENT_CNT int...
true
7804a201cb5886238ebcba810f2fcb89f57fd524
SQL
Jim-flores/proyectoTDS
/backend/farmaciadb.sql
UTF-8
1,590
3.171875
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; -- -------------------------------------------------------- DROP TABLE IF EXISTS `productos`; CREATE TABLE IF NOT EXISTS `productos` ( `id` int(255) NOT NULL AUTO_INCREMENT, `nombre` varchar(255) DEFAULT NULL, `precio` doubl...
true
a78b3ed30c6d9b1d6e4955cfbabd29df8cc0c7d2
SQL
JonathanRH07/Control-de-versiones
/DB ICAAVweb/Suite_mig_demo/Tables/sat_bancos.sql
UTF-8
496
2.53125
3
[]
no_license
CREATE TABLE `sat_bancos` ( `id_sat_bancos` int(11) NOT NULL AUTO_INCREMENT, `id_pais` int(11) DEFAULT NULL, `clave_sat` char(5) DEFAULT NULL, `nombre` varchar(50) DEFAULT NULL, `razon_social` varchar(300) DEFAULT NULL, `nacional` varchar(45) DEFAULT NULL, `rfc` char(15) DEFAULT NULL, `estatus` enum('AC...
true
450a5b791946fd1577d53284fcc7fb6d7824aa6d
SQL
Carcophan/Jabit
/repositories/src/main/resources/db/migration/V3.3__Create_table_node.sql
UTF-8
261
2.546875
3
[ "Apache-2.0" ]
permissive
CREATE TABLE Node ( stream BIGINT NOT NULL, address VARBINARY(32) NOT NULL, port INT NOT NULL, services BIGINT NOT NULL, time BIGINT NOT NULL, PRIMARY KEY (stream, address, port) ); CREATE INDEX idx_time on Node(time);
true
fe57e6646b1c4e1c698b255d9687e196e53ad553
SQL
vitalspirit/MySQL-homeworks-repo
/Итоговый проект/Процедуры и триггеры.sql
UTF-8
2,824
3.859375
4
[]
no_license
#Процедура выводит 10 пользователей с наибольшей продолжительностью всех видео на их каналах, либо с наибольшим размером видеофайлов на их каналах DELIMITER // CREATE PROCEDURE proc_1 (IN param1 VARCHAR(20)) BEGIN IF param1 = 'length' THEN SELECT ui.nickname, SUM(v.video_length) AS Total_length...
true
becb22f26178aa97f4378d82fc9e8552a5dc1100
SQL
ikeven94/SQL_repo
/Select.sql
UTF-8
734
4.03125
4
[]
no_license
- SELECT - [모든 레코드 조회하기] SELECT * FROM ANIMAL_INS ORDER BY ANIMAL_ID; [역순 정렬하기] SELECT NAME, DATETIME FROM ANIMAL_INS ORDER BY ANIMAL_ID DESC; [아픈 동물 찾기] SELECT ANIMAL_ID, NAME FROM ANIMAL_INS WHERE INTAKE_CONDITION = 'Sick' ORDER BY ANIMAL_ID ASC; [어린 동물 찾기] SELECT ANIMAL_ID, NAME FROM ANIMAL_INS WHERE...
true
35686bb2e146a62229f74a5d25c22a8104876d7f
SQL
wilflores/Proyecto_Mosaikus
/mosaikus/melvin.sql
UTF-8
62,587
2.765625
3
[]
no_license
ALTER TABLE `mos_registro` DROP COLUMN `correlativo`, DROP INDEX `ind01` , ADD UNIQUE INDEX `ind01` (`idRegistro`, `IDDoc`, `identificacion`, `version`) USING BTREE ; ALTER TABLE `mos_registro_formulario` DROP COLUMN `IDCodigoCate`; ALTER TABLE `mos_registro_formulario` MODIFY COLUMN `tipo` char(2) CHARACTER SET utf...
true
4be10fe75c9ad92a54dfa649ba1dfeac8f848dc4
SQL
KizatovArman/Databases2018
/finalprep.sql
UTF-8
4,002
4.71875
5
[]
no_license
--qiuz 1 CREATE TABLE manufacturers( code SERIAL PRIMARY KEY, name VARCHAR(255) ); CREATE TABLE products( code SERIAL PRIMARY KEY, name VARCHAR(255), price NUMERIC, manufacturer integer REFERENCES manufacturers ); SELECT name FROM products; SELECT name,price FROM products; SELECT name FROM products WHERE pri...
true
3a06e4e502fedd7c7fb0f151a90be684c4ee44d7
SQL
HThanhLam/Database-assignment
/Testing_Exam 1.sql
UTF-8
4,654
4.28125
4
[]
no_license
CREATE DATABASE db; use db; CREATE TABLE CUSTOMER ( CustomerID INT(8) PRIMARY KEY AUTO_INCREMENT, Name VARCHAR(30) NOT NULL, Phone INT(10) NOT NULL, Email VARCHAR(30) NOT NULL, Address VARCHAR(100) NOT NULL, Note VARCHAR(200) NOT NULL ); CREATE TABLE CAR( CarID INT(8...
true
2d8aacc8bc439099ef30728621e7f4deb25ff627
SQL
songzhilian/nbjj-internet
/sql/xgt_ydjw_sysuser.sql
GB18030
2,102
3.109375
3
[]
no_license
----------------------------------------------------- -- Export file for user YDJW_XGT -- -- Created by Administrator on 2021/02/03, 9:50:36 -- ----------------------------------------------------- spool xgt_ydjw_sysuser.log prompt prompt Creating table SYS_USER prompt ======================= prompt...
true
9fa07a0a528cda4ef421f823f28e7ed4e1f15bf2
SQL
nizarrk/datamax
/query nomor 1.sql
UTF-8
6,408
3.015625
3
[ "MIT" ]
permissive
-- MySQL dump 10.13 Distrib 5.5.62, for Win64 (AMD64) -- -- Host: localhost Database: datamax -- ------------------------------------------------------ -- Server version 5.5.5-10.1.38-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_R...
true
ec4cd02cf0991a542b610acaeeacc81fc270d1f0
SQL
applekey/LeetBros
/db/procs/uspIfUserExists.sql
UTF-8
385
3.390625
3
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS uspIfUserExists; CREATE PROCEDURE uspIfUserExists ( IN pLogin NVARCHAR(50), IN pPassword NVARCHAR(50), OUT userExist BOOL) BEGIN IF EXISTS(select FirstName,LastName from user_tbl where LoginName = pLogin and PasswordHash = SHA1(pPassword) LIMIT 1) THEN SET userEx...
true
165812e5a0de949384186ce5d6712af915e66310
SQL
DavidBenko/gateway
/src/gateway/sql/static/ansi/proxy_endpoint_channels/insert.sql
UTF-8
555
2.765625
3
[ "Apache-2.0" ]
permissive
INSERT INTO proxy_endpoint_channels ( proxy_endpoint_id, remote_endpoint_id, name, created_at ) VALUES ( (SELECT proxy_endpoints.id FROM proxy_endpoints, apis WHERE proxy_endpoints.id = ? AND proxy_endpoints.api_id = ? AND proxy_endpoints.api_id = apis.id AND apis.account_id = ?), ...
true
6723c56ecfff229086cc734d6310bebe8348b276
SQL
kuan0904/WabMaker
/WebMaker.Entity/SQL/View_CompetitionMember.sql
UTF-8
661
3.640625
4
[]
no_license
-- -- select * from View_CompetitionMember -- where ClientID='524dde74-fdef-481a-b9ed-49bab41f7964' and ItemID='16fae3b3-c1b8-46d8-bb81-14237aef232e' -- order by Unit -- SELECT u.TempNo, u.NickName AS Name, u.Gender, u.IdentityCard, u.Birthday, u.Unit, u.HouseholdAddress, (SELECT COUNT(*) AS Expr1 ...
true
c15a106e0ccc77a7ef5cb64476fa2a3a8809fc28
SQL
rudiiistarrr/swe2
/constraints.sql
UTF-8
1,224
2.84375
3
[]
no_license
ALTER TABLE Angebote ADD FOREIGN KEY (fk_KundenID) REFERENCES Kunden(ID); ALTER TABLE Ausgangsrechnung_Zeilen ADD FOREIGN KEY (fk_AusgangsrechnungID) REFERENCES Ausgangsrechnung(ID); ALTER TABLE Ausgangsrechnung_Zeilen ADD FOREIGN KEY (fk_AngebotID) REFERENCES Angebote(ID); ALTER TABLE Ausgangsrechnung ADD FOREIGN K...
true
2fa2231cd0862151f2edb4ca743255a063a7e353
SQL
shifuxiang/store-procedure
/order_error.sql
UTF-8
18,317
3.109375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 172.23.142.45 Source Server Version : 50173 Source Host : 172.23.142.45:3306 Source Database : AdInspect Target Server Type : MYSQL Target Server Version : 50173 File Encoding : 65001 Date: 2017-06-12 11:11:30 */ SET FOREIGN_KEY_CHECK...
true
60717b540d29602d06b9dab4b193914a2366f06e
SQL
JustATest314/Masterarbeit
/krautquiz/conf/evolutions/default/1.sql
UTF-8
1,728
3.109375
3
[ "Apache-2.0" ]
permissive
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table answer ( answer_id varchar(255) not null, question_id varchar(255), answer_text varchar(255), vote_score integer, ...
true
a3a43a20779e401a568b0379126f5dc21d854161
SQL
qjb1991/Code
/wx/wx_user.sql
UTF-8
409
3.15625
3
[]
no_license
create table wx_user( id int unsigned primary key auto_increment comment '主键', nickname varchar(50) default null comment '昵称', openId varchar(200) not null comment 'openId', createTime int unsigned default 0 not null comment '创建时间', city varchar(20) default '' not null comment '所在城市' )engine=innodb charset=utf8 comment...
true
08eb4b826755f738d928230c0e81ab5ddce2bbcb
SQL
sambit-mhptr/practical
/database/data.sql
UTF-8
30,607
3.53125
4
[]
no_license
-- -------------------------------------------------------- -- Host: localhost -- Server version: 5.7.24 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 10.2.0.5599 -- -------------------------------------------------------- /...
true
02707c13d60ba31817ad641b82e52974bc3a0da6
SQL
stoyantodorovbg/Trail_sharing_project
/trail_sharing_project_dump.sql
UTF-8
10,668
3.3125
3
[ "MIT" ]
permissive
-- MySQL dump 10.16 Distrib 10.1.26-MariaDB, for Win32 (AMD64) -- -- Host: localhost Database: trail_sharing_project -- ------------------------------------------------------ -- Server version 10.1.26-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=...
true
60e56306bc697abef2cba84692ce254b57a3d6c0
SQL
Julio-0417/exercicios-MySQL
/join/exerciciojoin4.sql
UTF-8
3,011
4.375
4
[]
no_license
/*Crie um banco de dados para um serviço de um açougue ou uma quitanda, o nome do banco deverá ter o seguinte nome db_cidade_das_carnes ou db_cidade_das_frutas, onde o sistema trabalhará com as informações dos produtos desta empresa. O sistema trabalhará com 2 tabelas tb_produto e tb_categoria. siga exatamente esse pas...
true
c9a12e56783e431a1efb72a89e0d5d4a31957528
SQL
bartschs/sql_admin
/dba_job_queue.sql
UTF-8
1,373
3.21875
3
[]
no_license
/* ** ** NAME ** jobqueue.sql ** FUNCTION ** check DB-Jobs queued via DBMS_JOB package ** NOTE ** PL/SQL V2.1 ** MODIFIED ** 04.06.99 sb - made it ** */ accept job_no char prompt 'Job No : [] '; accept what char prompt 'Action : [] '; set verify off; set heading on; clear columns clear ...
true
a4d432e80f7002403117a777369e8a61031b2636
SQL
zdergatchev/Database-Basic
/04 Basic CRUD Operation Exercises/14. Find All Employees Except Marketing.sql
UTF-8
122
2.578125
3
[ "MIT" ]
permissive
USE soft_uni; SELECT first_name, last_name FROM employees WHERE department_id NOT LIKE 4; /* WHERE department_id !=4; */
true
ec711a693aafa52b5bd9fcaa74ecef0f6ec9cff9
SQL
aaronrotman/etl-project
/schema.sql
UTF-8
1,016
3.1875
3
[]
no_license
drop table if exists confirmed_cases; create table confirmed_cases ( id int primary key, positive_cases int, age varchar(20), sex varchar(20), province varchar(25), date date, travel_yn varchar(50), travel_history_country varchar(50), locally_acquired varchar(50) ); drop table ...
true
bd18c497a758f5902b13055c6f2d2789a4ee0b8d
SQL
afzamorag/DinaeWebSIGACII
/DinaWebMaven/db/scripts/40_SIEDU_EVALUACION.sql
UTF-8
2,606
3.484375
3
[]
no_license
CREATE TABLE SIEDU_EVALUACION ( eval_eval NUMBER (8) NOT NULL , eval_pae NUMBER (6) NOT NULL , eval_descri VARCHAR2 (100) NOT NULL , eval_even NUMBER (8) NOT NULL , eval_dom_proce NUMBER (4) NOT NULL , eval_dom_modal NUMBER (4) NOT NULL , eval_nro_preg ...
true
38661a9dfda4e96f10220d6d7986b42b42100f53
SQL
WareTech/TuEnsalada
/DB/waretech_TuEnsalada.sql
UTF-8
33,049
2.734375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.11.9.6 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Nov 22, 2012 at 07:58 PM -- Server version: 5.0.51 -- PHP Version: 5.2.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHA...
true
9ac7bf0e66ac5bd9282893689617be302acb7fbf
SQL
macctown/DataProtector
/DB/data_protector_USER_PROFILE.sql
UTF-8
2,012
2.84375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.19, for osx10.7 (i386) -- -- Host: 127.0.0.1 Database: data_protector -- ------------------------------------------------------ -- Server version 5.6.15 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
true
de37fc712ad525674301bac179c1b134f3ea76cb
SQL
jmausolf/OpenFEC
/fec_download/sql_clean/create_schedule_a_company_qc.sql
UTF-8
1,855
3.421875
3
[ "Apache-2.0" ]
permissive
--create new table with desired specs DROP TABLE if exists schedule_a_cleaned; CREATE TABLE schedule_a_cleaned ( --info about individual contributor contributor_name TEXT, contributor_employer TEXT, contributor_occupation TEXT, contributor_city TEXT, contributor_state TEXT, contributor_zip_code T...
true
0ec142bd674e8620d40bbba43547661672ff0024
SQL
CUBRID/cubrid-testcases
/sql/_13_issues/_10_1h/cases/bug_3024.sql
UTF-8
423
3.40625
3
[ "BSD-3-Clause" ]
permissive
create table tbisnull (a int); insert into tbisnull values (null), (0), (1); select isnull (null), isnull (0), isnull (1); prepare s from 'select isnull( ? ), isnull ( ? ), isnull ( ? )'; execute s using null, 0, 1; deallocate prepare s; select a, isnull (a) from tbisnull order by 1; select a, isnull (a + 1) from ...
true
80288886d1425ee5b294c4dc037829c7be390727
SQL
yefc/CBOE
/subprojects/Classic/ChemInv/config/oracle_install_scripts/Create_blank_ChemInv_DB/sql/Patches/Patch 12.3.0/Alter/Alter_Inv_requests.sql
UTF-8
501
2.90625
3
[]
no_license
Alter table INV_REQUESTS add( "PROOF_APPROVAL" BLOB, "PROOF_APPROVAL_FILENAME" VARCHAR2(100 BYTE), "PROOF_APPROVAL_FILETYPE" VARCHAR2(10 BYTE), "PROOF_APPROVAL_FILESIZE" NUMBER(10,0), "SPECIAL_INSTRUCTIONS" VARCHAR2(1000 BYTE), "BATCH_TYPE_ID_FK" Number, CONSTRAINT "INV_REQUEST_BATCH_TYPE_ID_FK" FOREIGN KEY ("BATCH_T...
true
71ae025280eb104b514dde38c16bcdb058537bf1
SQL
nebocco/MyGiri-backend
/sql-client/config/init.sql
UTF-8
3,974
3.625
4
[]
no_license
DROP TABLE IF EXISTS users; CREATE TABLE users ( user_id VARCHAR(30) NOT NULL, display_name VARCHAR(40), hash VARCHAR(128) NOT NULL, login_session VARCHAR(128) NOT NULL, PRIMARY KEY (user_id) ); CREATE INDEX ON users (LOWER(user_id)); DROP TABLE IF EXISTS themes; CREATE TABLE themes ( id ...
true
c2f323565c359ffdd076dd4791e46791e3f8492d
SQL
jewellwk/sample-code
/MySQL/Women in Tech Project/womentech/womentech_women_csc.sql
UTF-8
2,401
3.0625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64) -- -- Host: localhost Database: womentech -- ------------------------------------------------------ -- Server version 5.7.20 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
true
0e6e890f35095460ba7dfb9e0e75a9c07ec49edf
SQL
MaiconFiuza/Atividades-Generation
/Módulo 2/MySql/Exercícios 22-04 E 23-04/Exercício 1/DML.sql
UTF-8
1,129
2.640625
3
[]
no_license
INSERT INTO tb_classe(class_tipo,class_habilidadeEspecial) VALUES("Mago","Fazer sair rainho da mão"); INSERT INTO tb_classe(class_tipo,class_habilidadeEspecial) VALUES("Arqueiro","Atirar coisa de longe"); INSERT INTO tb_classe(class_tipo,class_habilidadeEspecial) VALUES("Metaleiro","Fazer bate cabeça"); INSERT INTO tb_...
true
cedfdaec5790d19b681aa012c1d01077cb483378
SQL
sangamnishad/IQTest
/test.sql
UTF-8
36,361
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 20, 2021 at 05:56 AM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
3c096a9addb39d8d268264f9ac5f5e7c3715b100
SQL
liwc0329/spring-boot-mybatis-generator
/src/main/resources/sql/user.sql
UTF-8
749
2.671875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost (mysql) Source Server Version : 50721 Source Host : localhost:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50721 File Encoding : 65001 Date: 2018-12-04 14:36:01 */ SET FOREIGN_KEY_CHECKS=0; ...
true
42f79ef00c8f3edcd8e980d6ce64a90f8ab14c89
SQL
Amit006/coding
/plsqlassingment/empno_display.sql
UTF-8
738
3.140625
3
[]
no_license
create table emp10(emp_no number(10),emp_name varchar2(10),emp_salary number(20)); insert into emp10 values(1,'amit',5000); insert into emp10 values(2,'sunanda',6000); insert into emp10 values(3,'subham',5000); insert into emp10 values(4,'anupama',60000); declare empno emp10.emp_no%type; emp_rec1 emp10.emp_name%...
true
31ff278582cc96e38dec409836e506c04c1c1c2a
SQL
WangStar1031/ApartmentProject
/fixallph_buildings.sql
UTF-8
3,033
2.984375
3
[]
no_license
# Host: localhost (Version 5.5.5-10.1.26-MariaDB) # Date: 2019-03-18 04:22:29 # Generator: MySQL-Front 6.0 (Build 2.20) # # Structure for table "apartmentinfo" # DROP TABLE IF EXISTS `apartmentinfo`; CREATE TABLE `apartmentinfo` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `ProjectId` int(11) DEFAULT NULL, `Apar...
true
3c278a5fc96631f8eba5ae0185a910ae2f3f161f
SQL
hsavran/SqlDevScript
/Graph DB 3 Match.sql
UTF-8
727
3.875
4
[]
no_license
use Graphs --Find Alike products SELECT p1.Brand, p1.ProductName, p1.RetailPrice, p2.Brand as AlikeBrand, p2.ProductName as AlikeProduct, p2.RetailPrice as AlikePrice FROM Products as p1, AlikeProduct as ap, Products p2 WHERE MATCH(p1-(ap)->p2) AND p1.ProductId = 1 --Find Anna's wishlist and alike products select u1...
true
09003f649ed1bc20eab93522415253f29eb178f8
SQL
adrielsales/alura
/php/php_e_mysql/bkp-loja.sql
UTF-8
3,261
3.234375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.30, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: loja -- ------------------------------------------------------ -- Server version 5.6.30-0ubuntu0.15.10.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHAR...
true
ab90332c874b6907dd2877e5fc1ef2dd94419157
SQL
djiworks/NR_newsletter
/data.sql
UTF-8
3,102
2.921875
3
[]
no_license
INSERT INTO `university` (`id_university`, `name`, `address`, `country`, `subscription`, `checking_state`, `comment`) VALUES (1, 'ESIROI', 'La reunion', 'France', NULL, 0, NULL), (2, 'Université de Paris III', 'Paris', 'France', NULL, 1, NULL), (3, 'Université de Bordeaux II', 'Bordeaux', 'France', NULL, 2, NULL), (4, ...
true