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
c25188a82293166600db60ce6e0df975755badb1
SQL
534662311/donkey-shop
/myshop.sql
UTF-8
45,317
3.09375
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 2017-12-02 03:12:59 -- 服务器版本: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET...
true
6725665e7ac4edcae6160306cd4573c7bb95544a
SQL
danieldiamond/gitlab-analytics
/transform/snowflake-dbt/models/staging/netsuite/xf/netsuite_departments_xf.sql
UTF-8
737
3.90625
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
WITH base_departments AS ( SELECT * FROM {{ ref('netsuite_departments_source') }} ), parent_department AS ( SELECT a.department_id, a.department_name, a.department_full_name, a.is_department_inactive, CASE WHEN a.parent_department_id IS NOT NULL THEN a.parent_department_id ...
true
e985f3a4e90f2801fa9136515b25ccba44119384
SQL
Maikor/InformationTools
/src/main/resources/sql/infotools.sql
UTF-8
2,228
3.265625
3
[]
no_license
CREATE SEQUENCE seq_infotools START WITH 1 INCREMENT BY 1; CREATE TABLE IF NOT EXISTS "public"."infotools" ( "id" INT8 DEFAULT nextval('seq_infotools' :: REGCLASS) NOT NULL PRIMARY KEY, "type" INT8, "statelongitude" NUMERIC, "statelatitude" NUMERIC, "stateheight" NUME...
true
5514df21969037f739bd5c1e2f2ce021dbbfecdd
SQL
LyubomirVasilev/CSharp-DB-Fundamentals
/Database Basics/Joins, Subqueries, CTE and Indices/Joins, Subqueries, CTE and Indices/04. Employee Departments.sql
UTF-8
232
3.703125
4
[ "MIT" ]
permissive
SELECT TOP (5) e.EmployeeID, e.FirstName, e.Salary, d.Name FROM Employees AS e JOIN Departments AS d ON d.DepartmentID = e.DepartmentID WHERE Salary > 15000 ORDER BY d.DepartmentID;
true
95fa163d42cddc82856ced66565cb6cfd9ba22ad
SQL
danilchang/oms_django
/monitor/command/sql/getsession.sql
UTF-8
340
2.59375
3
[]
no_license
select a.sid,a.serial#,a.username,a.machine,a.program,a.sql_hash_value,a.type,a.LAST_CALL_ET from v$session a where a.status IN ('ACTIVE', 'KILLED') and a.type <> 'BACKGROUND' AND a.LAST_CALL_ET>7200 and a.PROGRAM not like '%CJQ%' and a.PROGRAM not like '%QMN%' and a.PROGRAM not like '%rman%' and a.PROGRA...
true
6d771fef11102f80e80b612b94e4330b1d560913
SQL
0lesya1317/my_ais
/my_ais.sql
UTF-8
8,197
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 14, 2016 at 10:13 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=@@CHARACTER_SET_CL...
true
e9a7283f8ba3301d26178da06fc431611b7960d4
SQL
scie4fun/ukeess-test-task
/src/main/resources/database/data.sql
UTF-8
530
2.796875
3
[]
no_license
USE entity; IF (NOT EXISTS ( SELECT * FROM Departments )) INSERT INTO Departments (Name) VALUES ('HR'), ('Tech'), ('Finance'); IF (NOT EXISTS ( SELECT * FROM Employees )) INSERT INTO Employees (Name, Active, dp_Id) VALUES ('Petro', 1, 1), ('Vasyl', 1, 3), ('Olha', 1, 2), ('Andriy', 1, 2), ('So...
true
05995c8a39d37def4ea4567073e00ed295ddb0c2
SQL
JCardzZ/Deploy
/Cinepolis/src/main/resources/templates/cinepolis_db.sql
UTF-8
24,759
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 25-11-2020 a las 01:44:18 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
20216daa25a0cb7d357366b679bac8d0529312f6
SQL
Ritvik19/CodeBook
/data/HackerRank-SQL/Weather Observation Station 18.sql
UTF-8
91
2.53125
3
[]
no_license
SELECT ROUND(ABS((MAX(LONG_W) - MIN(LONG_W)))+ABS((MAX(LAT_N)-MIN(LAT_N))),4) FROM STATION;
true
3191e3e5984ce919fbabede9dc635594a172aab8
SQL
sujanshresthanet/logSys
/sql/sqlite.sql
UTF-8
745
3.03125
3
[ "Apache-2.0" ]
permissive
-- -- Table structure for table `users` -- CREATE TABLE IF NOT EXISTS `users` ( `id` INTEGER PRIMARY KEY AUTOINCREMENT, `username` varchar(10) NOT NULL, `email` tinytext NOT NULL, `password` varchar(255) NOT NULL, `name` varchar(30) NOT NULL, `created` datetime NOT NULL, `attempt` varchar(15) NOT NULL DEFAULT '...
true
f0cada0ee211b159d1b21e3f1dd5169a911a8e99
SQL
TravisRoad/database_TASK
/TASK07/414.sql
UTF-8
277
2.75
3
[]
no_license
use user58db; select SECTOR_ID, SECTOR_NAME, HEIGHT from `1tbcell` where HEIGHT < 10; insert into `1tbcell` (SECTOR_ID, HEIGHT) values ('111100-1', 9); delete from `1tbcell` where SECTOR_ID = '111100-1'; select SECTOR_ID, SECTOR_NAME, HEIGHT from `1tbcell` where HEIGHT < 10;
true
dfafbaa45aeb385957c01b826f6622bd500d4c03
SQL
kolenyak/api-campanha
/src/test/resources/schema-h2.sql
UTF-8
1,294
4.125
4
[]
no_license
CREATE SCHEMA IF NOT EXISTS api; -- DDL para as dados dos times DROP TABLE IF EXISTS api.time; CREATE TABLE IF NOT EXISTS api.time ( id INTEGER NOT NULL, nome CHAR(255), PRIMARY KEY (id) ); -- DDL para as dados de campnhas DROP TABLE IF EXISTS api.campanha; CREATE TABLE IF NOT EXISTS api.campanha ( id INTEGER NOT...
true
6127f1a32a3a45eee377c2ee30ce21333ec563c0
SQL
r1rasser/WebTech_WS18_Project
/DataBase/orchestraDB_TEST_QUERIES.sql
UTF-8
11,827
3.875
4
[]
no_license
use orchestra_DB; /** * * This SQL-Script is used to test the SQL-Queries for the Orchestra-Website-Server * */ /* Get current DB-Size in kB */ select table_schema "Name",round(sum(data_length + index_length)/1024,1) "DB size in kB" from information_schema.tables where table_schema='orchestra_DB' group by table_schema;...
true
018e957546a45c3b0b785d44a6de540977429f1f
SQL
Jefferson-Armon/Investimentos
/scripts.sql
UTF-8
7,416
3.34375
3
[]
no_license
/*Novo projeto*/ /*O QUE EU QUERO DO CLIENTE: DADOS PESSOAIS: NOME, ENDERECO, TELEFONE, CPF, RG, SEXO. CAMPOS VETORIZADOS: TELEFONE. CAMPOS MULTIVALORADOS: ENDERECO. DADOS DOS ATIVOS: NOME, CODIGO, TIPO, CORRETORA. */ CREATE DATABASE INVEST; USE INVEST; CREATE TABLE CLIENTES( IDCLIENTE INT PRIMARY K...
true
1d2aa80be12a5016de518142e194774a1c2c6fa3
SQL
vishalkotecha/property-management-api
/src/main/resources/data.sql
UTF-8
699
2.578125
3
[]
no_license
/*insert default roles*/ INSERT INTO role(id, name)VALUES(1, 'admin'); INSERT INTO role(id, name)VALUES(2, 'innkeeper'); INSERT INTO role(id, name)VALUES(3, 'purchaser'); /*insert default users*/ INSERT INTO user(id, api_key, first_name, last_name) VALUES (1, 'tpetjfj27p', 'Administrator', 'Administrator'); INSERT IN...
true
3c8ee6c36a945c9c549e3a925c2681942864c99f
SQL
jozsaako/JavaScript
/database.sql
UTF-8
1,300
3.21875
3
[]
no_license
drop table users; create table users( userID int identity primary key, username varchar(30), password varchar(30), ); create table sprint( sprintID int identity primary key, sprintName varchar(30), ); create table project( projectID int identity primary key, sprintID int references sprint(sprintID), ); creat...
true
5e3ac5dbc48822c74280983492ea86793b404358
SQL
hpettenuci/operation
/database/postgres/monit-queries/diskCacheHit.sql
UTF-8
1,648
4.34375
4
[ "Apache-2.0" ]
permissive
with all_tables as ( SELECT * FROM ( SELECT 'all'::text as table_name, sum( (coalesce(heap_blks_read,0) + coalesce(idx_blks_read,0) + coalesce(toast_blks_read,0) + coalesce(tidx_blks_read,0)) ) as from_disk, sum( (coalesce(heap_blks_hit,0) + coalesce(idx_blks_hit,0) + coalesce(toast...
true
d609fb41c89fa4dd95c900fa52d83180c16cd175
SQL
Denis-Sotnikov/job4j_forum
/src/main/resources/db/schema.sql
UTF-8
612
3.234375
3
[]
no_license
create table authorities( id serial primary key, authority varchar(50) ); create table users( id serial primary key, password varchar(255), username varchar(255), enabled boolean, authority_id integer references authorities(id) ); create table topics( id serial primary key, name va...
true
0fede8d99b2afffc5072e7df375470e003e0a762
SQL
Pjamas180/MiscSQL
/pa1database.sql
UTF-8
2,119
4.09375
4
[]
no_license
.mode columns .headers on /* Part (a) */ /* Creating the database with the schema */ create table sailor (sname TEXT, rating INTEGER, PRIMARY KEY (sname)); create table boat (bname TEXT, color TEXT, rating INTEGER, PRIMARY KEY (bname)); create table reservation (sname NOT NULL, bname NOT NULL, day TEXT, FOREIGN KEY(...
true
ac8fbb61bc654e7a00ef2279de16c8b3ea6e1e08
SQL
krisbredemeier/holbertonschool-higher_level_programming
/mysql_the_world_s_most_popular_open_source_database/4-main.sql
UTF-8
956
4.21875
4
[]
no_license
''' task four ''' \! echo "\nList of all TVShows by all Genres ordered by genre name (A-Z)? (if a genre has 0 TVShow, please display NULL)" select Genre.name, TVShow.name from TVShow right join TVShowGenre on (TVShow.id = TVShowGenre.tvshow_id) right join Genre on (TVShowGenre.genre_id = Genre.id) order by Genre....
true
e636420dc3f06dc0c35f5340da23135b83a55049
SQL
KaikyMarquez/Senai_Sprint1_DB
/DDL, DML e DQL/OPTUS_01_DML.sql
ISO-8859-1
752
2.796875
3
[]
no_license
USE Optus; INSERT INTO Empresas (Nome) VALUES ('Optus'); INSERT INTO Artistas (Nome,idEmpresa) VALUES ('Jessica',1), ('Maria Duda',1), ('Corteriano',1); INSERT INTO Estilos (Tipo) VALUES ('Rock'), ('Pop'), ('Sertanejo'); INSERT INTO Albuns (Titulo,Ano,Localizacao...
true
c808a433d5c65c53540e351984ec0f6ca1ab024e
SQL
carlosiglesias1/bases-de-datos
/insert_vueltas.sql
ISO-8859-1
377
2.515625
3
[]
no_license
-- Insertar un nuevo Ciclista select * from ciclistas insert into ciclistas values ('12345678J', 'Martn', 'Roxo', 'Vodafone') -- Insertar un nuevo Equipo solo con Nombre select * from equipos insert into equipos (Nombre) values ('NTT') -- Insertar una nueva vuelta select * from vueltas insert into vueltas values ('2020...
true
6bb94bf6536052e8478e1bb9271d4dfdc989f709
SQL
mursyidul/project
/penggaji.sql
UTF-8
3,626
3.359375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
/* SQLyog Enterprise - MySQL GUI v8.18 MySQL - 5.5.5-10.1.9-MariaDB : Database - penggaji ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OL...
true
26061449612223e082151a50fae9f1be73908ea5
SQL
Giraluna1/holbertonschool-higher_level_programming
/0x0D-SQL_introduction/10-top_score.sql
UTF-8
156
2.78125
3
[]
no_license
-- This scrip lists all records the secon table -- Records shoukd be ordered by scrote (top firts) SELECT score, name FROM second_table ORDER BY score DESC;
true
3f7762fb2ae831611490606c3e05ee7b49a93789
SQL
varundixit/RomaniaDailyLoad
/IB_PlayerSportsActivity_Daily.sql
UTF-8
7,738
4.15625
4
[]
no_license
SELECT LiveYN, BetType, PlayerID, calendar_date FROM romaniamain.dim_gametype bt CROSS JOIN romaniamain.dim_bettype CROSS JOIN dim_player p on PlayerID is not null CROSS JOIN dim_calendar ON calendar_date BETWEEN '2015-11-26' AND current_date INTO OUTFILE 'C:\\Users\\Public\...
true
40560f6f2337816ef89809df7688e01c4c43fdc3
SQL
qiujiahong/spring-boot-jpa
/jpa-one-to-one/src/sql/init.sql
UTF-8
662
3.359375
3
[]
no_license
CREATE TABLE `author` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(20) NULL, `phone` varchar(20) NULL, `email` varchar(20) NULL, PRIMARY KEY (`id`) ); CREATE TABLE `book` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(20) NULL, `isbn` varchar(20) NULL, `author_id` bigint(20) NULL, PRIMARY KEY (`...
true
dd9cc39ab3705cfe720f361f76794a88b7b2757f
SQL
janis-rullis/dzhim-cms
/fmw/mod/static/tab.sql
UTF-8
405
3.34375
3
[ "MIT" ]
permissive
CREATE TABLE `static`( `id` TINYINT( 3 ) UNSIGNED NOT NULL AUTO_INCREMENT, `title` VARCHAR(250) NOT NULL, `f_content` TEXT NULL, `active` TINYINT(1) NOT NULL DEFAULT 0, `cat_id` INT(10) UNSIGNED NULL, PRIMARY KEY (`id`), FOREIGN KEY (`cat_id`) REFERENCES `_st` (`id` ) ON DELETE SET NULL, UNIQUE INDEX `title` ( ...
true
4b2ddd224e2e8c35f3ba402feb6136e2b01d4070
SQL
adenilson1/MySQL-ProjetoBDRHEmpresa
/BancoMysqlNoSQLRHEmpresa/filtrosnosql.sql
UTF-8
2,459
3.28125
3
[]
no_license
SELECT * FROM tb_funcionario WHERE SEXO = 'F'; SELECT * FROM tb_object_funcionario WHERE SEXO = 'F'; SELECT * FROM tb_object_funcionario WHERE JSON_EXTRACT(`JSON`, "$.Sexo") = 'F'; SELECT REPLACE(JSON_EXTRACT( `JSON`,"$.Cpf"),"""","") AS Cpf, REPLACE(JSON_EXTRACT( `JSON`,"$.Data_Nascimento"),"""","") AS Data_Nascime...
true
dedb8fbf7492e65695497b4ad23be1f36e33766c
SQL
Vonjy55/GestionS5-2021
/Base.sql
UTF-8
5,401
3.1875
3
[]
no_license
Create table Client( id VARCHAR(30) PRIMARY KEY not null, nomClient VARCHAR(30) not null, prenom VARCHAR(30) not null, numeroClient VARCHAR(30) not null, adresse VARCHAR(30) not null, ); CREATE SEQUENCE idClient START WITH 1; Create table TypeProduit( id VARCHAR(30) PRIMARY KEY not null, ...
true
1c1e22d5a3e562d257ce0461b6bc524f3408f2bc
SQL
tualo/nile
/classes/sqls/point.sql
UTF-8
260
2.734375
3
[ "FSFAP" ]
permissive
SELECT ST_AsGeoJSON( ST_TransScale(##way_column, ##transscale), 0 ) AS data, z_order, hstore2json(cast(tags as hstore)) AS tags, Null AS reprpoint, Null As bbox FROM ##prefix_point WHERE ST_Intersects(##way_column , ##srid ) ##cond
true
0ddd37ddc658691dae604a3523b7d4c15b4e10f8
SQL
victorwegeborn/DB-labs
/Lab2/sql/build.sql
UTF-8
9,319
3.625
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 nethub --...
true
2d66290504928c191b834d668f171ba82cf569e5
SQL
dsatiyeh04/CAHSI-Database
/SQL/Review.sql
UTF-8
571
3.078125
3
[]
no_license
CREATE TABLE Review ( Rreview_ID INT(10) NOT NULL AUTO_INCREMENT, Rscore INT(3) NOT NULL, RNo_of_review INT(1) NOT NULL, ABkey INT(10) NOT NULL, Uuser_ID INT(10) NOT NULL, PRIMARY KEY (Rreview_ID), FOREIGN KEY (ABkey) REFERENCES Abstract (ABKey) ON UPDATE CASCADE ON DELETE CASCADE, FOREIGN KEY (Uuser_ID) REF...
true
a65e23ae38141ec60f16e53fa7ff70722984d783
SQL
uk-gov-mirror/ministryofjustice.offender-assessments-api-kotlin
/src/main/resources/db/migration/V1_1__user_teams_roles.sql
UTF-8
4,777
3.421875
3
[]
no_license
create table OASYS_USER ( OASYS_USER_UK NUMBER not null constraint OASYS_USER_UN unique, OASYS_USER_CODE VARCHAR2(100) not null constraint OASYS_USER_PK primary key, USER_FORENAME_1 VARCHAR2(100), USER_FORENAME_2 VARCHAR2(100), USER_FORENAME_3 VARCHAR2(100), USER_FAMILY_NAME VARCHAR2(100), PASSWORD_EN...
true
e63d5ec63a1c03e35962452ff50ae54805a0a889
SQL
kaborelati/Projet_immobi
/imobi_bd.sql
UTF-8
5,407
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Client : 127.0.0.1 -- Généré le : Mer 10 Juin 2020 à 12:03 -- Version du serveur : 5.7.14 -- Version de PHP : 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
true
c6ed7f48b746e8633fb7c5f0cdc6d3ef32827a92
SQL
simborg/mySql-scripts
/mysql/querys.sql
UTF-8
3,600
4.125
4
[]
no_license
Use Skola; -- uppg 1 Select Elev.Förnamn, Elev.Efternamn, Klass.namn from elev USE INDEX(Efternamn) inner join klass on klass.kod=elev.Klasskod Order By Elev.efternamn; -- Uppg 2 Select Lärare.Efternamn, Lärare.Förnamn, Avdelning.Namn from Lärare inner join Avdelning on Lärare.Avdelningsnummer = avdelning.Avdelning...
true
626509172ce68642b0dafec83d73ca8b8ba3749f
SQL
scott80109/code_samples
/SQL/multi_join.sql
UTF-8
1,014
3.109375
3
[]
no_license
SELECT search_upload_detailed_results.company, search_upload_detailed_results.clei, search_upload_detailed_results.partNumber, search_upload_detailed_results.qty, search_upload_detailed_results.description, search_upload_files.buyerId, search_upload_files.user, search_upload_buyers.bu...
true
1fd74a194792ce95a5eebcc3bf6d8fd6bbf66393
SQL
afifjab/mc-Zen
/database_development.sql
UTF-8
3,154
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : lun. 28 sep. 2020 à 10:25 -- Version du serveur : 10.4.11-MariaDB -- Version de PHP : 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 S...
true
a6bca34ee54aed19159eee9998067f9f94d99edc
SQL
totallytot/sql-snippets-for-atlassian-products
/jira/csv-migration.sql
UTF-8
8,385
3.75
4
[]
no_license
-- Source instance: Jira 5, Oracle 11 -- create table for non-existing in destination Jira users in order to avoid mapping during import CREATE TABLE JIRADB.users_to_map_sa (name VARCHAR(255)); -- populate a newly created table INSERT INTO JIRADB.users_to_map_sa (name) WITH names AS ( SELECT 'username0' FROM ...
true
f0887d44b0dbbcf8ebd489e96dcafdc0aa1b16a6
SQL
kranthi003/Lib_Pers
/transaction/common/Database/P1/WTRANS_REFUND_RELATION_P2.sql
UTF-8
1,996
3.171875
3
[]
no_license
/*==============================================================*/ /* DBMS name: ORACLE Version 10g */ /* Created on: 8/3/2011 8:26:01 PM */ /*==============================================================*/ /*==========================================...
true
f9aa1dc3df479e8cb67393fc25ddcc40b7115faf
SQL
Jkbotham/homework
/12-homework/db/seeds.sql
UTF-8
1,155
3.265625
3
[]
no_license
LOCK TABLES `department` WRITE; /*!40000 ALTER TABLE `department` DISABLE KEYS */; INSERT INTO `department` VALUES (1,'Sales'),(3,'CEO'),(10,'Marketing'),(12,'Operations'); /*!40000 ALTER TABLE `department` ENABLE KEYS */; UNLOCK TABLES; -- -- Dumping data for table `employee` -- LOCK TABLES `employee` WRITE; /*!4000...
true
9cb6162e840309ec5fb7f6e960c35e393a588850
SQL
mlambrinov/Recommendation
/SQL/CompanyByAuthorityfile.sql
UTF-8
138
2.796875
3
[]
no_license
select main_term_value, count(main_term_value) from ca_term where cartridge = 'WealthManagement' group by main_term_value order by 2 desc
true
9902a1ab4983a60aa746815a08c0725dd12cfa88
SQL
robyip/DependFeed
/SQL/Procedures/ipChargeableEntityDataSheet.sql
UTF-8
8,334
3.234375
3
[]
no_license
USE DataWarehouse; DROP PROCEDURE IF EXISTS ipChargeableEntityDataSheet; DELIMITER // CREATE PROCEDURE ipChargeableEntityDataSheet () SQL SECURITY INVOKER MODIFIES SQL DATA DETERMINISTIC COMMENT 'Update tblChargeableEntityDataSheet' /******************************************************************************* * *...
true
7c744712fc8cb17fe42931694fac919b7e815d5a
SQL
mmanurung/myPOS
/mypos.sql
UTF-8
14,085
3.109375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 02, 2020 at 09:53 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
bb62b08b1ebe89d79def86f2028eb0b9e7e42f95
SQL
OuZhiqiu/suzhou-project
/back-end/Java/hk-springboot/sql/shopdb.sql
UTF-8
1,984
3.140625
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : 本地 Source Server Type : MySQL Source Server Version : 50727 Source Host : localhost:3306 Source Schema : shopdb Target Server Type : MySQL Target Server Version : 50727 File Encoding : 65001 Date: 11/10/2020 22:34:32 *...
true
1a89f0cf350cfb20231be2c31ac80a7541d7bd60
SQL
LostEchoDX/SQL
/MySQL/stage09/stage09.sql
UTF-8
258
3.5
4
[]
no_license
SELECT IF(COUNT(*) >= 1, moves.identifier, null) AS Attaques FROM moves JOIN pokemon_moves ON pokemon_moves.move_id = moves.id JOIN pokemon ON pokemon.id = pokemon_moves.pokemon_id WHERE pokemon.identifier = "feraligatr" AND moves.identifier = "hydro-pump";
true
e99610f8e6759e36b6bb1bdc930e999a75c3f198
SQL
sixdouglas/boot-rest-server
/src/main/resources/schema.sql
UTF-8
3,003
4.0625
4
[]
no_license
drop table country if exists; drop table match if exists; drop table match_team if exists; drop table point if exists; drop table point_type if exists; drop table sport if exists; drop table team if exists; drop table tournament if exists; drop table town if exists; create table country ( id bigint generat...
true
6e4bd6c4b8096b3dc048bef1c446b9be94a2c4c1
SQL
ttngu/12-EmployeeTracker
/seed.sql
UTF-8
892
3.890625
4
[]
no_license
DROP DATABASE IF EXISTS employee_tracker_db; CREATE DATABASE employee_tracker_db; USE employee_tracker_db; -- Department Table CREATE TABLE department ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(30) NOT NULL, PRIMARY KEY (id) ); INSERT INTO department (name) VALUES ("Anna"); -- Role Table CREATE TABLE rol...
true
02cd7fa8eba1e8c13c11bda8f9e56286ef9759e3
SQL
Galiixy/DUT_CookinglyProject
/create_table.sql
UTF-8
889
3.46875
3
[]
no_license
REM Script de creation de table PROMPT *** Table User *** create table User ( Id_User integer not null AUTO_INCREMENT, login varchar(12) not null, password varchar(9) not null, last_name varchar(30) not null, name varchar(30) not null, email varchar(50) not null, primary key(Id_User) ); PROMPT *** Table F...
true
14346ace2f6aecef7a000145d329d881704eccb3
SQL
wanisaid/FINAL-PROJECT
/database/grading.sql
UTF-8
3,534
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.10.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 18, 2015 at 04:01 PM -- Server version: 5.0.41 -- PHP Version: 5.2.3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `grading` -- -- -------------------------------------------------------- -...
true
82725fefe03c7597b7f286fed78c915f8fe882e2
SQL
bkirschbaum/SQL
/Invoices Condensed.sql
UTF-8
1,459
3.953125
4
[]
no_license
USE FM_Operations; SELECT Cost_Center,Month,Year,Sum(Amount) /* Add INTO to add to a New Table */ From ( Select NK.[Cost Center] Cost_Center,Month(VTRANS.LASTSETTLEDATE) Month, Year(VTRANS.LASTSETTLEDATE) Year,VIJ.INVOICEAMOUNT Amount, ROW_NUMBER() OVER(PARTITION BY VIJ.RECID ORDER BY VIJ.RECID) duplicateCounte...
true
fa2de88398b4cd881467d924dea9c6ea0d70f8d8
SQL
tamekataFW/SampleDataModel
/SampleDDL/RCV-INS/RCV_INS.sql
SHIFT_JIS
9,564
3.046875
3
[ "MIT" ]
permissive
--------------------------------------------------------------------------- -- System: FWP(fwp) -- Table : B -- Author: tamekataFW -- Date : 2015-04-08 --------------------------------------------------------------------------- CREATE TABLE t_splr ( splr_cd INTEGER NOT NULL, splr_nm VARCHAR(100), pms_i_ym...
true
89a2b8f9c4293eff15f75b1804b3911ce4fa8e0c
SQL
alexbuts/dbis
/km63/Buts_Oleksandr/laboratory1.sql
UTF-8
5,825
3.640625
4
[]
no_license
-- LABORATORY WORK 1 -- BY Buts_Oleksandr /*--------------------------------------------------------------------------- 1.Створити схему даних з назвою – прізвище студента, у якій користувач може: робити вибірки з таблиць та оновлювати дані 4 бали ----------------------------------------------------------------------...
true
7c6ad17c4f4b49d0fc2f0329adb02e7535c8e221
SQL
matko84/ENJ19
/baza.sql
UTF-8
1,315
3.5625
4
[]
no_license
drop database if exists kviz_app; create database kviz_app; use kviz_app; create table voditelj( voditelj_id int not null primary key auto_increment, ime varchar(10) not null, email varchar(25) not null, password varchar(25) not null ); create table ekipa( ekipa_id int not null primary key auto_increment, naziv...
true
acd47288f9c734e85afadce5ed82e9e18e70a2d8
SQL
atanasovMartin/DataBase-MSServer
/BasicCrud/SQLQuery10.sql
UTF-8
124
2.890625
3
[]
no_license
SELECT FirstName + ' ' + MiddleName + ' '+ LastName AS [FullName] FROM Employees WHERE Salary IN (25000,14000,12500,23600)
true
40f92ad028f9bd9d4bab5dbfc309545f8180febd
SQL
alexisnovas/sql-practice-and-resources
/Consultas Basicas/Consultas Joins B.sql
ISO-8859-1
5,195
4.3125
4
[]
no_license
/*1- La tabla HumanResources.Employee no contiene el nombre de los empleados., usted debe crear un join con la tabla Person.Person con la columna BusinessEntityID. Mostrando el job title, Birth Date, First name y Last Name.*/ select CONCAT(p.FirstName,' ',p.LastName) as NombreEmpleado, e.JobTitle, e.BirthDate from ...
true
79dcd5c81feb980638a66344127d33d3a6a08b9e
SQL
lillianbullock/cs313-php
/db/common_lookup.SQL
UTF-8
2,077
3.390625
3
[]
no_license
-- ---------------------------------------------------------------------------- -- Create table -- ---------------------------------------------------------------------------- CREATE TABLE common_lookup ( common_lookup_id serial PRIMARY KEY , table_name varchar(40) NOT NULL , column_name varchar(40) NOT NU...
true
2f6f8219f24e53edfa5a343e56c128412638a051
SQL
georgegi/SCAccoms
/Dev/Import/Assessments data inserts.sql
UTF-8
484
3.375
3
[]
no_license
-- temporary data fill to see in UI insert IepTestParticipation select ID = NewID(), Instance = s.ID, m.TestDefID, ParticipationDefID = NULL, IsParticipating = 0 from PrgItem i join PrgSection s on i.ID = s.ItemID join IepAssessments a on s.ID = a.ID cross join LEGACYSPED.MAP_TestDefID m left join IepTestPart...
true
44ac7a2e3a086faf60d41ba7e60bbfaebf68c78c
SQL
dpmorkel/Hunter-Gatherer-E-commerce-Website
/hunter_gatherer_db.sql
UTF-8
18,266
3.859375
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 16, 2018 at 09:29 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
8d0b789a6753d5ddf934ec730a09875fd3c43745
SQL
TopTable-130/photos-carousel-service
/cassandra/cass_schema.cql
UTF-8
2,394
3.671875
4
[]
no_license
-- Cassandra schema DROP KEYSPACE IF EXISTS toptable; CREATE KEYSPACE toptable WITH REPLICATION = { 'class': 'SimpleStrategy', 'replication_factor' : 1 }; USE toptable; CREATE TABLE IF NOT EXISTS toptable.restaurants ( id int, rest_name text, cuisine text, street text, city text, state text, zip_cod...
true
8f742eb0535d798a51d40d77e6ad78344d9bb1fe
SQL
Webkings12/webkings
/Webkings/src/main/webapp/dbsql/SHOP SELECT.sql
UTF-8
355
3.03125
3
[]
no_license
select * from shop; alter table shop add (s_click number default 0); select * from style; create or replace view shopView as select s.s_no, s.s_domain, s.s_name, s.s_bimage, s.s_simage, ST.ST_NAME,st.st_gender, s.s_regdate, s.s_click from shop s, style st where 1=1 and s.ST_NO = ST.ST_NO and s.st_gender=...
true
672805279c99bcab8a3c8812fa00967cdd43fd9b
SQL
PurelySupport/PurelySupport
/db/create_event.sql
UTF-8
341
2.984375
3
[]
no_license
INSERT INTO events (groupid, name, description, date, starttime, endtime, image, city, state, location) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10); select e.eventid, e.groupid, e.name, e.description, e.date, e.starttime, e.image, e.city, e.state, g.name as groupname from events as e INNER JOIN groups as g On e...
true
072a29c5b76bcc2227d00ac3d89a75aa00b97763
SQL
githubsvn/chipquang
/db/local.tyhv.sql
UTF-8
40,116
3.03125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 3.3.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 17, 2013 at 03:56 PM -- Server version: 5.1.54 -- PHP Version: 5.3.5-1ubuntu7.11 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET...
true
85ef11de13c7ce1edff8e64eb738561880cbf305
SQL
Lq304/myproject
/会员表.sql
UTF-8
420
2.6875
3
[]
no_license
# Host: localhost (Version: 5.5.53) # Date: 2019-10-18 21:23:49 # Generator: MySQL-Front 5.3 (Build 4.234) /*!40101 SET NAMES utf8 */; # # Structure for table "vip" # DROP TABLE IF EXISTS `vip`; CREATE TABLE `vip` ( `username` varchar(20) NOT NULL, `userpass` varchar(16) NOT NULL, `sex` char(2) DEFAULT '女',...
true
4bfc432c4175d200e92151dd327abf8993de094e
SQL
nguyenthithuuyen/rentHouses
/rentHouse.sql
UTF-8
10,231
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Máy chủ: localhost -- Thời gian đã tạo: Th2 22, 2021 lúc 10:14 PM -- Phiên bản máy phục vụ: 8.0.22-0ubuntu0.20.04.3 -- Phiên bản PHP: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
d8bc2644e866f1f8664df4e08db812a676cf67bf
SQL
JuHoonL/ORACLE
/MYMEM(2018-12-21).sql
UHC
6,117
4.1875
4
[]
no_license
-- Mymem ȭԴϴ --tbl_iolist ǰ̺ иؼ 2ȭ -- --tbl_iolist Ȯ SELECT COUNT(*) FROM tbl_iolist; SELECT * FROM tbl_iolist; --üͰ ƴ  ǿ ´ ͸ ؼ Ȯϰ WHERE Į = SQL ̿Ѵ. -- ϱⰡ ׳  ؼ( 10, 100) ȸϰ Ŭ SQL Ű --Į ROWNUM Į ִ. Į ROW ǥϴ Ŭ DUMY Į -- ־ SELECT ROWNUM, io_date, io_cname, io_dcode FROM tbl_iolist; --ROWNUM ...
true
d8345d47df16c64137442f511d44bfc832f6e482
SQL
huanminwu/LeetCode
/SQL/LeetCode1907.sql
UTF-8
2,287
4.34375
4
[]
no_license
----------------------------------------------------------------------- --- Leet code 1907. Count Salary Categories --- --- Medium --- --- SQL Schema --- Table: Accounts --- --- +-------------+------+ --- | Column Name | Type | --- +-------------+------+ --- | account_id | int | --- | income | int | --- +---...
true
9229a7f4cd172985ef020bf5c4118cbadd769130
SQL
Javierili/CS340
/draft.sql
UTF-8
555
2.96875
3
[]
no_license
--- --- Example from assignment 0: --- DROP TABLE IF EXISTS `bsg_planets`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bsg_planets` (`id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `population` bigint(20) DEFAULT NULL, `l...
true
7e8e85afcaa94fedda7537abfe2f4019441952f0
SQL
cncf/devstats
/metrics/shared/licenses_tags.sql
UTF-8
127
2.6875
3
[ "Apache-2.0" ]
permissive
select distinct license_name from gha_repos where license_name is not null and license_name not in ('', 'Not found') ;
true
5985dcb4ac7fb66a512996a0341a61c545171501
SQL
joshbenner/imbi
/ddl/tables/v1/operations_log.sql
UTF-8
2,212
3.9375
4
[ "BSD-3-Clause" ]
permissive
SET search_path=v1, public, pg_catalog; CREATE TABLE IF NOT EXISTS operations_log ( id BIGINT NOT NULL GENERATED ALWAYS AS IDENTITY PRIMARY KEY, recorded_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP, recorded_by TEXT NOT NULL, complet...
true
94d9235e5701a593ae19adb5650d46cec485eb7d
SQL
pbking1/project-tracker-system
/lab4.sql
UTF-8
11,158
3.390625
3
[]
no_license
use pengbin_db; set foreign_key_checks=0; DROP TABLE IF EXISTS `T_USER`; CREATE TABLE IF NOT EXISTS `T_USER` ( `User_ID` int(10) NOT NULL, `Username` varchar(10) NOT NULL, `Fullname` varchar(10) NOT NULL, `password` varchar(10) NOT NULL, `Class_level` int(1) NOT NULL, `ProjectID` int(10) NOT NULL, `Empl...
true
12d84e3b5b432263fda94cc33f4d074f6fbf54e8
SQL
PericR/Plava-Knjiznica
/plava_knjiznica/baza_web_knjiznice.sql
UTF-8
4,657
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 23, 2019 at 10:42 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
3c9417b3fa012a32c56db212a4624750dca92dba
SQL
537719/tlt
/cablesprojets.sql
UTF-8
5,223
3.9375
4
[]
no_license
-- cablesprojets.sql -- 14:56 27/10/2020 mise en rapport des coûts de mise en stock et de déstockage des câbles pour les projets -- 12:22 mercredi 28 octobre 2020 rajout du nombre de câbles qui auraient été déstockés si on les avait sortis par pochettes de 10 par le passé drop table if exists cablesprojets ; CREATE ...
true
a96dc89274852eb6e4bbcd672906ed1476b06417
SQL
norogoth/plan_z_backend
/add_tables.sql
UTF-8
553
3.9375
4
[]
no_license
CREATE TABLE IF NOT EXISTS budget_categories ( id INT PRIMARY KEY, user_id INT, name VARCHAR(25), amount int, active boolean ); CREATE TABLE IF NOT EXISTS transactions ( id SERIAL PRIMARY KEY, user_id INT NOT NULL, cents INT NOT NULL, category INT, date_purchased DATE, date_entered TIMESTAMP WITH TIME ZONE,...
true
b6011554ccbf5942cda71c42c088951709d936d7
SQL
VaolEr/GB-spring-boot-app
/src/main/resources/db/changelog/shema/2020-12-18-init-db-shema.sql
UTF-8
2,138
3.953125
4
[]
no_license
-- liquibase formatted sql -- Format: --changeset author:id attribute1:value1 attribute2:value2 [...] -- changeset Dmitry:Create_items_table CREATE TABLE items ( -- SERIAL type "id" is BIGINT id integer UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, sku VARCHA...
true
7bad714409529634183dd29579e40148a4e15d22
SQL
kwrce/sortcourse
/src/main/resources/script/lzwl.sql
UTF-8
35,219
3.078125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : mybase Source Server Type : MySQL Source Server Version : 50723 Source Host : localhost:3306 Source Schema : lzwl Target Server Type : MySQL Target Server Version : 50723 File Encoding : 65001 Date: 29/03/2019 15:50:54...
true
9e5a50d693295e996947add0dc985bcb6bb3d815
SQL
duke326/SWE-241
/out/production/IdeaProjects/SWE-243/book_scripts/ch08/8-10.sql
UTF-8
168
2.53125
3
[]
no_license
SELECT CONCAT(vendor_name, CHAR(13,10), vendor_address1, CHAR(13,10), vendor_city, ', ', vendor_state, ' ', vendor_zip_code) FROM vendors WHERE vendor_id = 1;
true
ac8f879ac09bcec10c7475158986371012eb5cab
SQL
semangatbaru/dpc
/berita(1).sql
UTF-8
3,846
3.140625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 12, 2020 at 12:00 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.1.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
true
ec7601a469021cdc6c06dd48b1c3b6450ad1210d
SQL
WatermelonSun/crawler
/bird_recording.sql
UTF-8
4,906
3.53125
4
[]
no_license
# -*- coding: utf-8 -*- """ @author: Sxx """ import urllib import numpy import MySQLdb import re from bs4 import BeautifulSoup import sys #从网络读取数据 def get_date(path): f=urllib.urlopen(path) html='"""'+f.read()+'""""' soup=BeautifulSoup(html,"html.parser") result_rating={} result_recording={} result_actions={} r...
true
c4279131904fe00f1c1257d6067a8c0ed6a4738c
SQL
sureone/go
/ama/ama.sql
UTF-8
4,397
3.375
3
[ "BSD-3-Clause" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 16, 2017 at 11:16 AM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
959e8d443053cfc88730a82d396b58c07dba1f04
SQL
larinablvck/web-kurca4
/kursach.sql
UTF-8
8,688
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Время создания: Май 29 2019 г., 15:46 -- Версия сервера: 5.5.25 -- Версия PHP: 5.3.13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4010...
true
bf85118298dbfcb58bd7b413b6d3e84f4c00d930
SQL
lucaburatti7/A00-Training-plan
/讲义_旧版/ZLJPj/SQL文样本/D51HJI_TBL.Sql
SHIFT_JIS
7,616
3.09375
3
[]
no_license
prompt PL/SQL Developer import file prompt Created on 2004N829 by ren_dali set feedback off set define off prompt Dropping D51HJI_TBL... drop table D51HJI_TBL cascade constraints; prompt Creating D51HJI_TBL... create table D51HJI_TBL ( _ԍ CHAR(10) not null, _ CHAR(3) not null, ԍ ...
true
c87b4bab2e76ea67c0d0d24c2ead6c4b7dd43ed4
SQL
emilykdewitt/ChinookExercises
/17_invoices_line_item_count.sql
UTF-8
203
3.21875
3
[]
no_license
/************* Provide a query that shows all Invoices but includes the # of invoice line items. **************/ select InvoiceId, count(InvoiceId) as NumOfLineItems from InvoiceLine group by InvoiceId
true
1723fb1001b7a60af4a9e9d95477f54705e57a9b
SQL
jrjr-randy/backoffice
/sql/build_new_db/prometheus_tables/commission_value_type_code_business_center_xref.table.sql
UTF-8
1,871
3.578125
4
[]
no_license
DROP PROCEDURE IF EXISTS tc_prometheus_commission_value_type_code_business_center_xref; DELIMITER // CREATE PROCEDURE tc_prometheus_commission_value_type_code_business_center_xref() BEGIN IF NOT EXISTS ( SELECT DISTINCT 1 FROM `information_schema`.`TABLES` WHERE `TABLE_SCHEMA` = DATABASE() AND `TABLE_NAME` = 'co...
true
9a38b11861c0f46a2fb4f215fa9af14ede718dee
SQL
ankitapise/CSC540DBMS
/Project1/Procedures/Camera/display_reserved_cameras.sql
UTF-8
399
3.46875
3
[]
no_license
CREATE PROCEDURE `display_reserved_cameras` ( IN patron_id varchar(50) ) BEGIN SELECT C.cam_id, C.make, C.model, C.memory_available, C.lens_config, CW.out_date, L.lib_name FROM Cameras C INNER JOIN Cam_waitlist CW INNER JOIN Library_Cameras LC INNER JOIN Libraries L WHERE (CW.patron_id = patron_id) AND (CW.ca...
true
56267a1d3b2c842b596763a98edca80ca0a6587e
SQL
hyemijung/gitRepository
/My_DB 구현/toto연습 물리적 입력.sql
UTF-8
4,938
4.0625
4
[]
no_license
--테이블명: dept 부서 테이블 -- --컬럼명: 부서명 층수 인원 CREATE TABLE DEPT( DEPTNAME VARCHAR2(30), FLOOR NUMBER, NUM_OF_PEOPLE NUMBER(30) ); --테이블에 새로운 행을 추가하는 insert문 --insert into 테이블명 --(컬럼명, 컬럼명2, ...) --values --(컬럼에 넣을 값, 컬럼에 넣을 값2, ...): desc dept; insert into dept (deptname, floor, num_of_people) values (...
true
c0d12fc61cd2785a23ac266168daacd6d6b37b3e
SQL
sgoedde/Henry
/qryHenryAssign4.sql
UTF-8
2,690
3.6875
4
[]
no_license
--Stephanie Goedde --Database II --Query Assign 4 --3-14-13 print 'qry1' begin transaction select * from inventory where branch_number = '1'; update inventory set units_on_hand = '5' where branch_number = '1'; select * from inventory where branch_number = '1'; rollback; print 'qry2' begin transaction select * from bo...
true
9170cce4c3937060243ccc982a901dc910fccbb2
SQL
wwclb1989/springboot
/itcast-chapter10/src/main/resources/DB.sql
UTF-8
2,380
3.765625
4
[]
no_license
CREATE DATABASE blog_system; USE blog_system; DROP TABLE IF EXISTS t_article; CREATE TABLE t_article ( id INT (11) PRIMARY KEY auto_increment COMMENT '文章id', title VARCHAR (50) NOT NULL COMMENT '文章标题', content LONGTEXT COMMENT '文章内容', created date COMMENT '创建时间', modified date COMMENT '修改时间', categories VARCHA...
true
c323e3f21f97d741753a2bffc8d06af1d1ad59b8
SQL
openforis/fra-platform
/src/server/db/migration/migrations/sqls/20171004120246-update-carbon-stock-up.sql
UTF-8
343
3.015625
3
[]
no_license
DROP TABLE carbon_stock_avg, carbon_stock_total; CREATE TABLE carbon_stock ( "country_iso" varchar(3) REFERENCES country(country_iso) NOT NULL, "row_name" text, "1990" numeric, "2000" numeric, "2010" numeric, "2015" numeric, "2016" numeric, "2017" numeric, "2018" numeric, "2019" numeric, "2020" numeric, PRIMARY KEY (co...
true
05856c6c35116cf2ee56e1d39974c30bc86074e0
SQL
OmegaZhou/Film-Info-List
/create_table.sql
UTF-8
342
2.625
3
[]
no_license
drop table if exists INFO; drop table if exists TITLE; drop table if exists CASTS; create table INFO(id INTEGER ,film_id VARCHAR(12) PRIMARY KEY,film_str VARCHAR(10000)); create table TITLE(film_id VARCHAR(12) PRIMARY KEY,film_title VARCHAR(200)); create table CASTS(film_id VARCHAR(12),film_cast VARCHAR(300),PRIMARY KE...
true
5c4619317173cc38a37e0d9555dba79ed114b3c3
SQL
visalakshi-annamalai/InductionAssignments
/SQL/grading set/line_item_track_artist.sql
UTF-8
272
3.453125
3
[]
no_license
/* Provide a query that includes the purchased track name AND artist name with each invoice line item. */ select t.name as track ,a.name as artist from track t,album al, artist a,invoiceline i where t.albumid=al.albumid and al.artistid=a.artistid and t.trackid=i.trackid;
true
e103fbb41682f9e3064c851eca169258b2b33398
SQL
rudineirossales/eqp
/dump banco/dump_eqp1.sql
UTF-8
4,758
2.921875
3
[ "MIT" ]
permissive
CREATE DATABASE IF NOT EXISTS `equipamentos` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `equipamentos`; -- MySQL dump 10.13 Distrib 5.7.9, for Win32 (AMD64) -- -- Host: 127.0.0.1 Database: equipamentos -- ------------------------------------------------------ -- Server version 5.7.15-log /*!40101 SET @OLD_CHARAC...
true
2c2ea2f7f90399d3be78e6651a2f5a81158c4022
SQL
dmpe/SQLscripts
/number 5/6/Scen-2.sql
UTF-8
726
2.953125
3
[ "MIT" ]
permissive
-- Scen 2 USE [StayHomewithoutPer] --P1 begin transaction; update Fil set city = 'Edinburgh' where [Branch ID] = 'B001' select * from Fil where [Branch ID] = 'B001' rollback TRANSACTION --P2 SET TRANSACTION ISOLATION LEVEL REPEATABLE READ begin transaction select * from Fil where [Branch ID] = 'B001' select * fr...
true
f8c4480d4a44b9d6846d9600e530d777fd7001d2
SQL
YichiehYu/YeZiShopWeb
/yezishop.shop.database.sqlscript/com_wujiuye_yezishop_com_wujiuye_yezishop_recommend_merchand.sql
UTF-8
2,486
2.96875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64) -- -- Host: localhost Database: com_wujiuye_yezishop -- ------------------------------------------------------ -- Server version 5.5.5-10.1.26-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULT...
true
9454e4064f34c3854cf3a0697c6d9b3253824e6a
SQL
csfeijo/introducao-banco-de-dados-sql
/aula03/chaves-primarias.sql
UTF-8
250
2.515625
3
[]
no_license
DROP TABLE FUNCIONARIOS; CREATE TABLE IF NOT EXISTS FUNCIONARIOS ( id_funcionario INT UNSIGNED NOT NULL AUTO_INCREMENT, nome VARCHAR(45) NOT NULL, sexo CHAR(1) NOT NULL, PRIMARY KEY (id_funcionario) ) ENGINE=INNODB; DESC FUNCIONARIOS;
true
783821071b008e95910e1f2dd96bc0e19618adda
SQL
ravikumaryadav071/polance
/data new/polance_interests_business (1).sql
UTF-8
4,891
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Sep 16, 2015 at 01:13 PM -- Server version: 5.6.26 -- PHP Version: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
682cd8548f14b7dbf7d433c52a0e79ff1ad979bd
SQL
jworkman119/HTC
/Legacy/Macola_SQL/htcOmmegangInv.sql
UTF-8
397
3.171875
3
[]
no_license
Create Procedure htcOmmegangInv as SELECT iminvloc_sql.item_no , cast(iminvloc_sql.qty_on_hand as int) as qty_on_hand , iminvloc_sql.loc , imitmidx_sql.search_desc FROM iminvloc_sql iminvloc_sql INNER JOIN imitmidx_sql imitmidx_sql ON iminvloc_sql.item_no=imitmidx_sql.item_no WHERE iminvloc_sql....
true
fc64d9d8675fcafff3a49219d1393e6bc0ff721b
SQL
stefan0303/Database-Basic--MS-SQL-SERVER
/06.Joins, Subqueries, CTE and Indices/08.sql
UTF-8
281
3.640625
4
[]
no_license
SELECT e.EmployeeID, e.FirstName, CASE WHEN p.StartDate<= '01/01/2005' THEN p.Name ELSE NULL END AS ProjectName FROM Employees as e INNER JOIN EmployeesProjects as ep ON e.EmployeeID=ep.EmployeeID INNER JOIN Projects as p ON p.ProjectID=ep.ProjectID WHERE e.EmployeeID=24
true
6419851b39a684beed819700c18d896d602d5ec9
SQL
SumitAnglekar/AvionAirways
/AvionAirways.sql
UTF-8
7,192
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 18, 2018 at 11:33 AM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
b7131151f9ba4468bd404a44f280118ff28886be
SQL
uscbsitric/crowdmetric
/properlyPopulated.sql
UTF-8
6,683
2.765625
3
[ "MIT" ]
permissive
-- MySQL dump 10.13 Distrib 5.7.22, for Linux (x86_64) -- -- Host: localhost Database: crowdmetric -- ------------------------------------------------------ -- Server version 5.7.22-0ubuntu18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_...
true
5d496dfb315284bebe7cf7a423237059b6a14514
SQL
RookieJay/Graduation-Project
/sql/attendance.sql
UTF-8
4,449
3.171875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : mysql Source Server Version : 50724 Source Host : localhost:3306 Source Database : attendance Target Server Type : MYSQL Target Server Version : 50724 File Encoding : 65001 Date: 2018-12-11 09:56:12 */ SET FOREIGN_KEY_CHECKS=0; -- --...
true