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
fcdc6e7ef33f44c5c66012a884b8994925d8f3d2
SQL
Daksh/CSE202_DBMS-Project
/dataCreation.sql
UTF-8
8,318
3.65625
4
[]
no_license
CREATE DATABASE IF NOT EXISTS college; USE college; CREATE TABLE student( rollNumber INT(8) NOT NULL PRIMARY KEY, email VARCHAR(100) NOT NULL, address VARCHAR(250) NOT NULL, bloodGroup VARCHAR(4) NOT NULL, gender CHAR(1) NOT NULL, phone VARCHAR(10) NOT NULL, cgpa DECIMAL(4,2) NOT NULL, name VARCHAR(100) NO...
true
8051c06b6c0fdc7299c5fc9356c6274a43224ba0
SQL
PersonalDataIO/GEgraph
/network.cql
UTF-8
1,958
3.8125
4
[]
no_license
// context: circumstances that might lead to infection, has hierarchy dictated by space and time // context space-distance: given background knowledge, pairwise function on contexts // context time-distance: given background knowledge, pairwise function on contexts // every context C has a type C.type in T // two funct...
true
36c9e8bdd9690309a2ac1ebe5560fb4cc69e5932
SQL
ventus-cursos/SQL-2
/subquery2.sql
UTF-8
113
2.703125
3
[]
no_license
select * from Cliente inner join (select distinct idcliente, 1 as x from Orden) as t on cliente.id = t.idcliente
true
70cf00459a5965e7c7355fe95b45a523f29add0b
SQL
bendaizer/Base-de-donnees-orientees-graphes-avec-Neo4j
/Chapitre 7/movielens_import.cql
UTF-8
4,537
3.609375
4
[]
no_license
match n optional match n-[r]-() delete r, n // contraintes avant insertion CREATE CONSTRAINT ON (user:User) ASSERT user.Id IS UNIQUE CREATE CONSTRAINT ON (movie:Movie) ASSERT movie.Id IS UNIQUE CREATE CONSTRAINT ON (genre:Genre) ASSERT genre.genre IS UNIQUE // Genres LOAD CSV FROM "file:///Users/abenhenni/Work/neo4j-...
true
7df9a9669eaa350b2cccd2293eadb4198bbe5e17
SQL
fandashtic/arc_chennai
/Sivabalan-SQL/SQL_STORED_PROCEDURE/sp_Print_StockTransferOutDetail_MultiUOM.sql
UTF-8
2,376
3.625
4
[]
no_license
Create Procedure sp_Print_StockTransferOutDetail_MultiUOM (@DocSerial int) As BEGIN Select "Item Code" = StockTransferOutDetail.Product_Code, "Item Name" = Items.ProductName, "Batch" = StockTransferOutDetail.Batch_Number, "PKD" = Max(Batch_Products.PKD), "Expiry" = Max(Batch_Products.Expiry...
true
3bb0d89138783bb68783665c4294fb7310e889af
SQL
mmgrzenkowicz/SQLCourse
/Funkcje matematyczne.sql
UTF-8
510
2.890625
3
[]
no_license
SELECT POWER(2,3); # 8 SELECT SQRT(9); # 3 SELECT 5 % 2; # 1 SELECT 5 MOD 2; # 1 SELECT ABS(3); # 3 SELECT SIGN(-10); # -1 SELECT SIGN(0); # 0 SELECT SIGN(5); # 1 SELECT CONV(21, 10, 2); # Przekonwertowanie liczby 21 z systemu dziesiętnego na dwójkowy. SELECT PI(); SELECT ROUND(2.1412366985,3); # 2.141 SELECT TR...
true
218fd7f974de4eec0595df861fbd6bfc5c2ea4bb
SQL
pjuliano/glowing-waffle
/Views/Sales Cube/Rebuild the Cube.sql
UTF-8
131,951
2.84375
3
[]
no_license
DROP MATERIALIZED VIEW kd_sales_cube; CREATE MATERIALIZED VIEW "IFSAPP"."KD_SALES_CUBE" ( "RECID", "SOURCE", "COMPANY", "SALES_MARKET", "SEGMENT", "CORPORATE_FORM", "PRODUCT_BRAND", "PRODUCT_TYPE", "PRODUCT_SET", "CONNECTIO...
true
80095d18d71f526f758103abf04c32bf9b8a8ac2
SQL
CodecoolCsibi/PracticeYII
/practiceApp/advanced/DB/practice_app.sql
UTF-8
3,995
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Gép: 127.0.0.1 -- Létrehozás ideje: 2017. Máj 09. 11:06 -- Kiszolgáló verziója: 10.1.21-MariaDB -- PHP verzió: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
true
cc766b8875508036eeed9ee860fd32e73214a185
SQL
reinaertvdc/modulo
/Voorbereiding/Visual Paradigm/ERD/ERD.sql
UTF-8
6,267
3.1875
3
[]
no_license
CREATE TABLE bgv_scores ( id BIGINT PRIMARY KEY NOT NULL, remarks VARCHAR(255), score VARCHAR(255) NOT NULL, week INTEGER NOT NULL, competence_id BIGINT, student_id BIGINT, CONSTRAINT fk_t9yq0aj9fg0wiquh7i917d9d9 FOREIGN KEY (competence_id) REFERENCES competences (id), CONSTRAINT fk_gpqw...
true
18c53bfe6c7bee61b412eceba65343d7a3d395c8
SQL
mrdatawolf/Colonization
/SQL/main_transactions.sql
UTF-8
260
3.09375
3
[ "MIT" ]
permissive
create table transactions ( id INTEGER not null constraint transactions_pk primary key autoincrement, title TEXT ); INSERT INTO transactions (id, title) VALUES (1, 'buy'); INSERT INTO transactions (id, title) VALUES (2, 'sell');
true
a4a2288fa61fc99a82b44967f3b043430b3f01b9
SQL
joselainejrs/BancodeDadosFastrade
/banco/DML.sql
MacCentralEurope
1,000
2.671875
3
[]
no_license
/*DML*/ USE fastrade INSERT INTO Tipo_Usuario (Tipo) VALUES ('Consumidor'); INSERT INTO Tipo_Usuario (Tipo) VALUES ('Fornecedor'); INSERT INTO Endereco (Numero, Estado, Bairro, Rua, CEP) VALUES (67, 'SP', 'Jardim Madalena', 'Alfredo dos Andes', '12345678'); INSERT INTO Cat_Produto (Tipo) VALUES ('Conversa'); INSE...
true
40c2381c4f893fce18afe650f1d7500147ec7451
SQL
ReneNyffenegger/oracle-patterns
/Installed/data-dictionary/source/show-package-bodys-source-text.sql
UTF-8
319
2.8125
3
[]
no_license
select line, text from dba_source where line between 5 and 15 and owner = user and -- name = 'STANDARD' and name = 'TQ84_PKG_B' and type in ('PACKAGE BODY', 'TYPE BODY', 'PROCEDURE', 'FUNCTION') -- origin_con_id = 0 order by line;
true
bc5e5f788c3db26437824d1f0f09de4be9511024
SQL
kmranrg/InternshipHub
/internships.sql
UTF-8
4,326
3.3125
3
[ "BSD-3-Clause" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: May 24, 2018 at 10:59 PM -- Server version: 5.7.21 -- PHP Version: 5.6.35 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
b15b56fdf25146ae5973347392cdcb66f3e1773f
SQL
AlexEBean/MySQL-Refresher
/s9-aggregate-functions/GROUP-BY.sql
UTF-8
857
4.4375
4
[]
no_license
-- GROUP BY summarizes or aggregates identical data into single rows SELECT title, author_lname FROM books GROUP BY author_lname; -- Looks weird because it Groups things together by author_lname SELECT author_lname, COUNT(*) FROM books GROUP BY author_lname; -- Shows a list of counts that shows how many books sh...
true
7d2c28705a41a6c5d11956085fdf6eece5544d55
SQL
rtdonin/JavaClasswork
/DDWA/M2/L5-TemplateAndTesting/MeetingTestingCodeAlong.sql
UTF-8
719
4.03125
4
[]
no_license
DROP DATABASE IF EXISTS meetingDBtest; CREATE DATABASE meetingDBtest; USE meetingDBtest; CREATE TABLE room( id INT PRIMARY KEY AUTO_INCREMENT, `name` VARCHAR(50) NOT NULL, `description` VARCHAR(100) ); CREATE TABLE meeting( id INT PRIMARY KEY AUTO_INCREMENT, `name` VARCHAR(50) NOT NULL, `time` DATETIME NOT NULL, roo...
true
57458325b956d2911521a456f95e091113bb6684
SQL
traylorc/sqlscripts
/homeade.custy.order.sqlscripts.sql
UTF-8
240
3.640625
4
[]
no_license
select Name, City, State, o.Description, ol.Description, Product, Quantity, Price, Quantity * Price 'Line Total' from Customers c join Orders o on c.Id = o.CustomerId join OrderLines ol on o.id = ol.OrdersId where name like 'Char%'
true
1934e76f7e622dee950e1fefb238879069adaaa4
SQL
adimerpaul/aproquiry
/aproquiry (2).sql
UTF-8
45,445
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 03-01-2019 a las 13:21:53 -- Versión del servidor: 10.1.37-MariaDB -- Versión de PHP: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
e0376fd9f8267ac1cc3887bfe856db2463756bd5
SQL
fchunbo/guzz
/demos/en/GuzzEmptyProject/sql/mysql.sql
UTF-8
714
2.984375
3
[]
no_license
create database fms_main default character set utf8 ; create database fms_temp default character set utf8 ; create database fms_log default character set utf8 ; use fms_temp ; create table tb_guzz_su( gu_id bigint not null auto_increment primary key, gu_db_group varchar(32) not null, gu_tab_name varchar(64) ...
true
10926ecc76fd324c91a6ca66fff0f19a91ba9c1f
SQL
israelrico007/Dental-Clinic-Database
/1-CreateDataBase.sql
UTF-8
7,567
4.5
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- Introductory commands (Thanks to "Soren Spangsberg Jorgensen" - YouTubeChannel) -- Drop the database if it already exists DROP DATABASE IF EXISTS DentalClinicDB; -- Create the DB CREATE DATABASE DentalClinicDB; -- Use the DB, when creating tables we need to be working in the DB USE DentalClinicDB; -- Creating the...
true
5d3f64c994e5199e9f2359d00615a93614333d33
SQL
TEVONPATT/EventTrackerProject
/DB/artgallerydb.sql
UTF-8
2,524
3.828125
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 artistgal...
true
f05b123b392f9ccf5d73e1913195daab4aa65f11
SQL
irecasens/yelp_challenge
/Part 1 - Relevant SQL Queries.sql
UTF-8
4,936
3.59375
4
[]
no_license
use yelp_db DROP VIEW V_Category_Rating; DROP VIEW V_Business_Photo; DROP TABLE tbl_V_Category_Rating; DROP TABLE tbl_V_Business_Photo; CREATE VIEW V_Category_Rating AS (SELECT c.category, COUNT(distinct c.business_id) as n_restaurants, AVG(b.stars) AS mean_rating, SUM(b.review_...
true
e301a7f7caae4bd2b469410b0ccfaf45e1f904ae
SQL
inigus/california2
/comercial/scripts/bbdd.sql
UTF-8
619
2.84375
3
[]
no_license
CREATE TABLE `clientes` ( `idCliente` INT NOT NULL AUTO_INCREMENT, `nombre` VARCHAR(50) NULL, `apellidos` VARCHAR(100) NULL, `poblacion` VARCHAR(50) NULL, `telefono` VARCHAR(50) NULL, `mail` VARCHAR(50) NULL, `descripcion` VARCHAR(200) NULL, `esPrescriptor` CHAR(1) NULL, `fechaAlta` DATETIME NULL DEFA...
true
7cd536fe9e3e56acae31de0550eff7dc1dcb2437
SQL
gladiopeace/digital-data-syn
/documents/oms/TB_PURHA.sql
GB18030
2,957
3.296875
3
[]
no_license
/* ================================================================================ ṹ:TB_PURHA ṹ:뵥 ṹĿ: ================================================================================ */ drop sequence SEQ_TB_PURHA; drop index AK_TB_PURHA; drop table TB_PURHA; create table TB_PURHA ( PURHA_ID INTEGER ...
true
cd2db143b28ad883c4e60074235e7b182881cc46
SQL
nepp-tumsat/documents-api
/db/mysql/sql/ddl.sql
UTF-8
2,017
3.5625
4
[]
no_license
CREATE SCHEMA IF NOT EXISTS `documents_api` DEFAULT CHARACTER SET utf8; USE `documents_api`; CREATE TABLE IF NOT EXISTS `documents_api`.`users` ( `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, `username` VARCHAR(255) NOT NULL UNIQUE, `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIM...
true
2b3682c4576e8c95674ddcbc6dcb69479d76e7a4
SQL
riveramatthew/ra_data_warehouse
/models/sources/stg_xero_accounting/bigquery/stg_xero_accounting_invoices.sql
UTF-8
2,728
3.515625
4
[ "Apache-2.0" ]
permissive
{{config(enabled = target.type == 'bigquery')}} {% if var("finance_warehouse_invoice_sources") %} {% if 'xero_accounting' in var("finance_warehouse_invoice_sources") %} {% if var("stg_xero_accounting_etl") == 'fivetran' %} with source as ( select * from {{ source('fivetran_xero_accounting','invoice') }} ), r...
true
584c3044db59a546c005bb557b7dad58a3080bd9
SQL
knishe/OpenShiftStudio
/src/main/resources/schema.sql
UTF-8
342
2.59375
3
[]
no_license
CREATE TABLE IF NOT EXISTS Reputation ( id int unsigned not null auto_increment, site varchar(600) not null, reputation varchar(600), gold varchar(300) , silver varchar(100), bronze varchar(100), create_by varchar(45), create_at datetime not null, update_by varchar(45), update_at datetime not null, ...
true
403260ecf6b2cd4c7e0b6b6e5f4646e528fba9f5
SQL
Tamunokorite/e-hostel-management-system
/ehms.sql
UTF-8
10,155
2.796875
3
[]
no_license
-- MariaDB dump 10.17 Distrib 10.4.13-MariaDB, for Win64 (AMD64) -- -- Host: localhost Database: ehms -- ------------------------------------------------------ -- Server version 10.4.13-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARAC...
true
cac0ae1c01933cde166bee241f2eb58c436a0648
SQL
arianagorodec/appPayrollCalculation
/create.sql
UTF-8
7,104
3.46875
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Sun Dec 8 23:53:28 2019 -- 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='ON...
true
a6ecb4f05f90ddc123303b931dbedf7818982bf9
SQL
YashodharPalkuru/RedDonor
/RedDonor/src/main/java/com/reddonor/dbscripts/RedDonorDB_v1.sql
UTF-8
5,096
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 27, 2015 at 08:29 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
df74d3e524f763e9215b004ed783a121cccb6fdd
SQL
russdc88/amazon
/seed.sql
UTF-8
543
2.78125
3
[]
no_license
USE bamazon; /* Insert 10 Rows into my new table */ INSERT INTO products (product_name, department_name, price, stock_quantity) VALUES ('Microwave', 'Home Appliance', 55.99, 7), ('Blender', 'Home Appliance', 39.99, 2), ('Becho Dot', 'Smart Home', 49.99, 5), ('Becho Show', 'Smart Home', 159.99, 10), ('Knife Set', 'Hom...
true
aee09d63aac878971d02d1b68b7e29dffe6a97ff
SQL
hiba1725/youtubeClone
/MySQL/displayedvideodetails.sql
UTF-8
1,412
3.140625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 09, 2020 at 03:53 PM -- 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
434f8febe7e0108e11a2df8e8be022e004985dd7
SQL
JohabBenicio/criacaojb
/jb acompanha locks banco.sql
UTF-8
8,233
3.359375
3
[]
no_license
#!/bin/bash . /home/oracle/.bash_profile ORAENV_ASK=NO ; ORACLE_SID=$1 ; . oraenv; export ORAENV_ASK=YES cat <<EOF>>/tmp/check_lock_$ORACLE_SID.log Data e Hora da analise: $(date) EOF sqlplus -S / as sysdba<<EOF>>/tmp/check_lock_$ORACLE_SID.log set serveroutput on feed off set lines 200 pages 2000 long 999999 co...
true
52c6a4f13250cec8fd1654c68de17f9dc302441a
SQL
hashar7/ntedu
/SQL/Group by/3-05.sql
UTF-8
627
3.421875
3
[]
no_license
/* Для отдела с id = 50 выведите должности, занимаемые его сотрудниками. В каждой строке выведите: должность (job_id) и максимальную зарплату сотрудников отдела в этой должности. Результат отсортируйте по максимальной зарплате в порядке возрастания. Указание: используйте только таблицу employees */ select job_id, max(...
true
577cba3b88f6197d5ff227d1c83d9cbbf7caeeea
SQL
GujarkarVaibhav/MySQL
/Day4_Takehome.sql
UTF-8
20,253
3.90625
4
[]
no_license
# Pre-Requsites # Assuming Candidates are familiar with “Group by” and “Grouping functions” because these are used along with JOINS in the questionnaire. /*Table Definitions: 1. BANK_CUSTOMER - Details of Customers of the Bank 2. BANK_CUSTOMER_EXPORT - Details of Customers of the Bank 3. Bank_Account_Details - Accou...
true
721c60cff39088c2044699b75d2d53350dfbc815
SQL
dudrbs703/programmers-codingtest-practice
/Level3/FindDisapearedRecord.sql
UTF-8
154
2.578125
3
[]
no_license
-- 코드를 입력하세요 SELECT ANIMAL_ID, NAME FROM ANIMAL_OUTS WHERE ANIMAL_ID NOT IN (SELECT ANIMAL_ID FROM ANIMAL_INS)
true
6f988a1a449972cec8a105c28ccf3080e24e5adc
SQL
bravesoftdz/millenium
/dbm/dbmillenium.sql
UTF-8
1,892
3.109375
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.0.67-community-nt - MySQL Community Edition (GPL) -- Server OS: Win32 -- HeidiSQL version: 7.0.0.4053 -- Date/time: 2013-02-16 14:55...
true
15f82b1bf57b9cd94b1d43e51b2d785b5f2216f8
SQL
networkseg1/osinttw
/DBosint_tw.sql
UTF-8
1,306
3.6875
4
[]
no_license
CREATE DATABASE IF NOT EXISTS osint; GRANT USAGE ON *.* TO 'osintuser'@localhost IDENTIFIED BY 'password'; GRANT SELECT, INSERT, UPDATE ON osint.* TO 'osintuser'@localhost; FLUSH PRIVILEGES; USE osint; DROP TABLE IF EXISTS `tweet_media_urls`; CREATE TABLE `tweet_media_urls` ( `tweet_id` bigint(20) unsigned NOT NUL...
true
991b0d0e1cc8a1af65536c52114ebff44688c396
SQL
NickyMateev/FMI-RDBMS
/Seminar/Weekly tasks/Week02.sql
UTF-8
5,224
4.8125
5
[]
no_license
/* Problem 1 Produce a report that lists employees' last names, first names, and department names. Sequence the report on first name within last name, within department name. */ SELECT E.LASTNAME, E.FIRSTNME, D.DEPTNAME FROM EMPLOYEE E, DEPARTMENT D WHERE E.WORKDEPT = D.DEPTNO ORDER BY D.DEPTNAME, E.LASTNAME, E.FIRST...
true
73dc346b92479912c385e677ab4002e4429cf6a6
SQL
handharbeni/php-web-pano
/wisudaprasmul.sql
UTF-8
11,189
2.953125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Waktu pembuatan: 30 Nov 2020 pada 14.01 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
true
71fd1b4a49d3ea97dc2c3dab7fc1097f63204e9d
SQL
melwey/klc
/KLC_indicators/pgscripts/klc_create_indic.sql
UTF-8
3,608
3.3125
3
[]
no_license
-- create indicator tables (created in and exported from biopamarest; imported into biopama_api) -- add image to schema COMMENT ON SCHEMA klc IS 'Key Landscapes for Conservation {{''img'':''https://raw.githubusercontent.com/melwey/klc/master/img/LargerThanElephants2015.png?token=AK64EHIC6MA76DYIHBS5NETATLUJW''}}'; --...
true
c2ab1a704d9a59e5f0faeb7e8fc21f4f2a2dc67a
SQL
francisrol/alibaba-selloffer-spider
/selloffer.sql
UTF-8
1,094
3.6875
4
[]
no_license
CREATE DATABASE alibaba CHARSET utf8; CREATE USER 'alibaba'@'%' IDENTIFIED BY 'alibaba'; GRANT ALL ON alibaba.* TO 'alibaba'; USE alibaba; CREATE TABLE category( id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT UNIQUE, name VARCHAR(30) UNIQUE, link VARCHAR(512), shortcut VARCHAR(100) )ENGINE=INNODB; CREATE TABLE sub_categ...
true
d0d253acf1ba790dd006987e4670f5f64065f4f3
SQL
wanching0730/vue-express-ts
/express/src/constants/db-init.sql
UTF-8
216
2.53125
3
[]
no_license
create database sampleApp; use sampleApp; create table subscribers( subscriberId int auto_increment primary key, name text not null, email text not null, createdAt datetime, updatedAt datetime );
true
01bde824c7a52b8653de49560a8cb5e5821c5813
SQL
thyanna/Independent
/Projects/TestRecipeCreationScripts.sql
UTF-8
698
3.34375
3
[]
no_license
--SELECT StepDescription, StepIndex --FROM RECIPE JOIN STEPS ON RECIPE.RecipeID = STEPS.RecipeID --WHERE RECIPE.RecipeName = 'Hot Cocoa' --ORDER BY StepIndex --SELECT IngredientDescription --FROM RECIPE JOIN Ingredients ON Recipe.RecipeID = Ingredients.RecipeID --INSERT INTO EmergencyContact (ContactNumber, Emerg...
true
7c7454f80d457bfefc52b4aa418ca7da28d32f6c
SQL
pji33250/Projects
/TruthTheologicalSeminary/xInitDatabase/SUBJECT.sql
UTF-8
59,405
3.03125
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.5.5-10.1.19-MariaDB) # Database: ChnLibrary # Generation Time: 2017-09-08 02:48:34 +0000 # *****************************...
true
c92aa221a24df919027e920d0d515c892226e42c
SQL
nkcoder/springboot-samples
/springboot-scala/src/main/resources/db/migration/V1/V1_1__create_tables.sql
UTF-8
386
2.921875
3
[]
no_license
USE test; CREATE TABLE `article` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `subject` varchar(128) NOT NULL, `content` text, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `created_by` bigint(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE = I...
true
634a9b9d30102bd04b8d62d447544d36ccff10c5
SQL
louisliaoxh1989/studying-notes-for-mybaits
/mybatis6_principle/cascade.sql
GB18030
501
3.46875
3
[]
no_license
use db_mybatis; drop table if exists t_student; drop table if exists t_card; create table t_card( -- ѧ id int(20) primary key auto_increment, password varchar(20) not null, surplus numeric(4,2) )Engine=InnoDB charset utf8 collate utf8_general_ci; create table t_student( -- ѧ id int(20) primary key auto_incremen...
true
5393fae7bfde824cb36a1bc82375374160087490
SQL
Jan-M/pg_mon
/sql/pg_mon.sql
UTF-8
969
3.625
4
[ "MIT" ]
permissive
create extension pg_mon; create extension pg_stat_statements; set query_monitor.min_duration = 0; set pg_stat_statements.track = 'all'; create table t (i int, j text); insert into t values (generate_series(1,10), repeat('bsdshkjd3h', 10)); analyze t; -- Seq scan query output select pg_mon_reset(); select pg_stat_sta...
true
edcaefc23fb06c15b3096830e716bc6c5035e258
SQL
Aphasia-GitHub/Boco
/db/Oracle/dbTest/procedure/gettab_test.sql
UTF-8
518
2.78125
3
[]
no_license
create or replace procedure gettab_test as v_date varchar2(20); v_str varchar2(1000); v_par varchar2(1000); begin select to_char(sysdate-1,'yyyymmdd') into v_date from dual; for c_cur in (select table_name from user_tables where table_name like 'CDL_ZX_%'||v_date or table_name like 'CDL_LC_%'||v_date) loop v_p...
true
b15e48bbdef54222af23f7a3e84271a417ab2dbf
SQL
brokenq/itsnow
/backend/general-services/general-model-service/src/test/resources/META-INF/setup/create_site_depts.sql
UTF-8
202
3.296875
3
[]
no_license
CREATE TABLE IF NOT EXISTS site_depts ( site_id INT(10) UNSIGNED, dept_id INT(10) UNSIGNED, FOREIGN KEY (site_id) REFERENCES sites (id), FOREIGN KEY (dept_id) REFERENCES departments (id) );
true
621d4759de1f66f14843cfc2c4cf25150bc2191c
SQL
DanielHenrique-Dev/Crud-Codeigniter
/crudci_games_db.sql
UTF-8
9,326
3.484375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 18/02/2021 às 22:52 -- Versão do servidor: 10.4.14-MariaDB -- Versão do PHP: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
true
662f906b52859038eaa11825f70e352b64f798ef
SQL
emsa16/ramverk1-project
/sql/ddl/user_mysql_default.sql
UTF-8
896
3.328125
3
[ "MIT" ]
permissive
-- -- Creating a User table and inserting example users. -- Create a database and a user having access to this database, -- this must be done by hand, see commented rows on how to do it. -- Default database SQL, NOTE that all database name and account details should -- be replaced by actual information -- -- -- Crea...
true
6be01ab63b4b3b5409f83a19efdd222a301c6f73
SQL
naris/SourceCraft
/sql/fix_overall_level.sql
UTF-8
182
2.78125
3
[]
no_license
update sc_players p set overall_level = (SELECT sum(pr.level) FROM sc_player_races pr where p.player_ident = pr.player_ident)
true
3c1a31075959f0c80e9a9ebb31d39823128e8c33
SQL
taperte/.Net-bc
/Library + NewsApp/SQLQuery2_library.sql
UTF-8
3,243
2.6875
3
[]
no_license
create table Books ( Id int not null identity primary key, Title nvarchar(255) not null, Author nvarchar(100) not null, [Year] int, Copies int not null default 1 ) insert into Books (Title, Author, [Year], Copies) values ('Harry Potter and the Philosopher''s Stone', 'J. K. Rowling', 1997, 8) insert into Books (T...
true
3521aea443e5a6703ca4cff5f877deaf0ccf2f29
SQL
worgelabolg/notepad
/sublime 文件/临时表空间丢失解决.sql
UTF-8
509
2.890625
3
[]
no_license
临时表空间丢失解决 创建新的临时表空间并设为默认临时表空间 查看临时表空间 select * from dba_temp_files 创建临时表空间 crate temporary tablesapce temp tempfile '/u01/oracle/oradata/wyzc10/temp.dbf' size 100M; 修改临时表空间 alter database default temporary tablespace temp; 删除原临时表空间 drop temporary tablespace tmp; 回收表空间 alter tablespace temp shrink space 回收并将表空间设为...
true
6a49ae374dc947347e5abaf5b6fbc69b476d4fb8
SQL
hudie09143672/MIS
/BY.sql
UTF-8
9,669
3.296875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `wkud` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `wkud`; -- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: localhost Database: wkud -- ------------------------------------------------------ -- Server version 5.7.13-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
true
4996a9ad911df2bcefdb3fc7c8a60f46e5d7fe68
SQL
tamuto/kanban
/kanban_er.sql
UTF-8
996
3.109375
3
[]
no_license
CREATE TABLE tbl_project ( project_id VARCHAR(36) NOT NULL, project_name VARCHAR(256) NOT NULL, order_no INT NOT NULL, display_flag INT NOT NULL, update_time TIMESTAMP NOT NULL, PRIMARY KEY (project_id) ); CREATE TABLE tbl_kanban_list ( kanban_list_id VARCHAR(36) NOT NULL, kanban_list_name VARCHAR(256) NOT NUL...
true
3d9953aacc12cc496edd8994811d7bd7b32ff337
SQL
CheckShumm/AuctionHouse
/sqlite.sql
UTF-8
335
2.90625
3
[]
no_license
CREATE TABLE IF NOT EXISTS users ( id integer primary KEY autoincrement, username text not null unique, password text not null unique, created_at real not null ); CREATE TABLE IF NOT EXISTS items ( id integer primary KEY autoincrement, name text not null unique, description text not null unique, created_at re...
true
88fbba5a0204496af88354ff79cd25a670dbc549
SQL
dyingontheinside/Fraud-Response-System
/dbtest.sql
UTF-8
2,180
3.71875
4
[]
no_license
ALTER TABLE Comments Drop Foreign Key Comment_fk0; ALTER TABLE Comments Drop Foreign Key Comment_fk1; ALTER TABLE Comments Drop Foreign Key Comment_fk2; ALTER TABLE Customer_Events Drop Foreign Key Customer_Events_fk0; ALTER TABLE Customer_Events Drop Foreign Key Customer_Events_fk1; Drop Table if exists Userlis...
true
13d61938e5199ad977b0104298db880191d4e4fd
SQL
shuanghen-code/hn-thymeleaf-layui
/src/main/resources/doc/teacher.sql
UTF-8
16,172
3.359375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : aaa Source Server Version : 50717 Source Host : localhost:3306 Source Database : teacher Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2020-05-29 16:46:06 */ SET FOREIGN_KEY_CHECKS=0; -- -------...
true
a22d304b255ed88f51f41f5484762987bca390e9
SQL
bsweger/usaspending-api
/usaspending_api/etl/management/load_file_d1.sql
UTF-8
38,797
3.3125
3
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
CREATE TABLE local_broker.award_procurement AS SELECT * FROM broker.award_procurement ap WHERE ap.submission_id = %(broker_submission_id)s ALTER TABLE references_location ADD COLUMN location_award_procurement_ids INTEGER[]; -- recipient locations from contracts INSERT INTO references_location ( dat...
true
65e184ee8d047248ce67bdf44d1591fa93a4f450
SQL
bretweinraub/bash_profiles
/bdw/sql/etl/product.sql
UTF-8
2,839
3.078125
3
[]
no_license
INSERT INTO stg_new_product ( product_sid, product, product_desc, long_product_desc, product_url, brand, brand_sku, merchant_sku, price, list_price, in_stock, me...
true
21bd08a0c6e47f45b9579e208d12f336d2edbefc
SQL
zhoufoxcn/lemon
/src/main/resources/dbmigrate/hsql/oss/V0_0_0_5__oss_metadata.sql
UTF-8
1,297
3.734375
4
[ "Apache-2.0" ]
permissive
------------------------------------------------------------------------------- -- oss metadata ------------------------------------------------------------------------------- CREATE TABLE OSS_METADATA( ID BIGINT NOT NULL, CODE VARCHAR(50), NAME VARCHAR(200), VALUE VARCHAR(200), STATUS ...
true
2ca0479788c027a9955277b7f86478bd54bd93df
SQL
vinifig/zbank-account
/src/main/resources/db/migration/V1606364788000__create_transaction.sql
UTF-8
527
3.671875
4
[]
no_license
CREATE TABLE "transaction"( id BIGSERIAL PRIMARY KEY, origin_account_id bigint, destiny_account_id bigint, kind VARCHAR(10), amount FLOAT(3), extra_amount FLOAT(3), created_at TIMESTAMP WITH TIME ZONE, FOREIGN KEY (origin_account_id) REFERENCES account (id), FOREIGN KEY (destiny_acc...
true
ae02da59bf06a81b4c72da0cfa195026ea3f025e
SQL
carterjpilling/know-it-all
/db/seed.sql
UTF-8
811
3.75
4
[]
no_license
CREATE TABLE users( id SERIAL PRIMARY KEY, title TEXT, profile_picture TEXT, points INT, email TEXT, username VARCHAR(25), hash TEXT ); CREATE TABLE genre( genre_id SERIAL PRIMARY KEY, name TEXT ); CREATE TABLE games( id SERIAL PRIMARY KEY, player_id INTEGER REFERENCES users (id), genre_id INTEGER REFERENCES genre(ge...
true
e2c44ca6376dafeb87c1df0000623982982c7bba
SQL
Casplen/gym_project
/db/gym.sql
UTF-8
1,129
3.53125
4
[]
no_license
DROP TABLE IF EXISTS bookings; DROP TABLE IF EXISTS members; DROP TABLE IF EXISTS membership_types; DROP TABLE IF EXISTS gym_classes; DROP TABLE IF EXISTS class_types; DROP TABLE IF EXISTS gym_info; CREATE TABLE membership_types ( type VARCHAR(255) PRIMARY KEY ); CREATE TABLE members ( id SERIAL PRIMARY KEY, ...
true
57ab8d61475bf4fcf19908734f77816c094c8bbe
SQL
Hossain-life/Leadbook-
/json.sql
UTF-8
3,617
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 25, 2021 at 03:49 PM -- Server version: 10.4.20-MariaDB -- PHP Version: 8.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
e9aba633c14f11ae4226b78d5eab52069f3562a5
SQL
capucinebechemin/ProjetArcadesB2
/arcade_bdd.sql
UTF-8
2,627
3.421875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : ven. 14 fév. 2020 à 11:23 -- Version du serveur : 10.4.8-MariaDB -- Version de PHP : 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
true
db3804b235a012639661c88fda067c97c8384f99
SQL
Sleyy/DatabasesBasics-MSSQL-Server
/JoinsSubqueriesCTEIndices/HighestPeakNameAndElevationByCountry-PredefinedSubquery.sql
UTF-8
975
4.53125
5
[ "MIT" ]
permissive
WITH CTE_CountryPeakMountain (CountryName,PeakName,Elevation,MountainRange) AS ( SELECT c.CountryName,p.PeakName,MAX(p.Elevation) AS MaxElevation,m.MountainRange FROM Countries AS c LEFT OUTER JOIN MountainsCountries AS mc ON c.CountryCode = mc.CountryCode LEFT OUTER JOIN Mountains AS m ON mc.MountainId = m.Id ...
true
8dd06ebd729c25306b980beaba93e6ec9a9e894c
SQL
ProgRB/SalProject
/AddRetention/Queries/SelectSubdivForList.sql
WINDOWS-1251
239
2.796875
3
[]
no_license
select subdiv_id, code_subdiv, subdiv_name, nvl(to_char(sub_date_start,'DD-MM-YYYY'),'< >') as sub_date_start, nvl(to_char(sub_date_end,'DD-MM-YYYY'),'< >') as sub_date_end from {0}.subdiv where parent_id=0
true
470bdf24e053a68a5720c660e6ee3fe2a743e14a
SQL
coline-carle/zhevra
/storage/sqlite/migrations/01_init_database.up.sql
UTF-8
477
3.40625
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS curse_addon ( id INTEGER PRIMARY KEY, name TEXT, url TEXT, summary TEXT, downloadcount INTEGER ); CREATE TABLE IF NOT EXISTS curse_release ( id INTEGER PRIMARY KEY, filename TEXT NOT NULL, created_at INTEGER NOT NULL, url TEXT NOT NULL, addon_id INTEGER NOT NULL, is_al...
true
90a38807388d84b1ded1fd92dd1b81cd9dd43764
SQL
elmas87532/PHPMIDTERM
/a.sql
UTF-8
1,610
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- 主機: 127.0.0.1 -- 產生時間: 2016-04-14 06:21:54 -- 伺服器版本: 10.1.10-MariaDB -- PHP 版本: 5.6.19 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_CHARA...
true
2b9650523304f6917c65fc5f748841489554e9d8
SQL
carrecorre/celitravel
/cakephp.sql
UTF-8
44,984
2.578125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 21-05-2020 a las 21:55:07 -- Versión del servidor: 5.6.21 -- Versión de PHP: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARAC...
true
c40f9289357c8732aa57e5487e26d7ee41b486dd
SQL
faaaby/reciclagi
/dump.sql
UTF-8
8,060
3.234375
3
[ "MIT" ]
permissive
-- MySQL dump 10.13 Distrib 5.5.49, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: reciclagi -- ------------------------------------------------------ -- Server version 5.5.49-0+deb7u1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACT...
true
7f05c992c2999ea2769abf8d2b99074d20ef2920
SQL
pavelaltman/ams_src
/sql/BEGIN.SQL
IBM866
6,747
3.15625
3
[]
no_license
/* 砫 壠ਨ */ alter rollback segment myroll online ; ALTER SESSION SET nls_date_language=RUSSIAN ; ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MM-YY' ; set serveroutput on declare res NUMBER ; nl NUMBER ; root NUMBER ; nr NUMBER ; begin begin select count(*) into nr from objcat where descr='/' ; IF nr=0 ...
true
448b3735148efa6631c5007aca6fdf2532b6bbc8
SQL
mehtadhiraj/web-scrapper
/scraper/spiders/database_files/scraperdb_schema.sql
UTF-8
5,941
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 01, 2018 at 10:48 AM -- Server version: 10.1.33-MariaDB -- PHP Version: 7.2.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
aafeed42f6795b087825c46b011d7c159b796ce8
SQL
tsukaharakazuki/td
/cdp_segments_send_array_key/queries/create_send_id_list.sql
UTF-8
245
3
3
[]
no_license
WITH t0 AS ( SELECT ${segment_name_col} , ${output_id_col} FROM ${cdp_segments_db}.${cdp_segments_tbl} CROSS JOIN UNNEST(${base_id_col}) AS t(${output_id_col}) ) SELECT ${output_id_col} , ${segment_name_col} FROM t0
true
9e984ef7043414f3e1c00789c471b35f8aa139ec
SQL
LeoSvalov/test-tasks
/retention.sql
UTF-8
1,067
4.6875
5
[]
no_license
-- SQL query for retention of 1st,3rd and 7th day -- PostgreSQL syntax SELECT t2.month_number AS month_number, t2.day1/t2.total::FLOAT AS day1_retention, t2.day3/t2.total::FLOAT AS day3_retention, t2.day7/t2.total::FLOAT AS day7_retention FROM( SELECT t1.month_number AS month_number, COUNT(D...
true
018d0154b579c0e62cb41f08f115540edc8deee8
SQL
Krivosheenkova/HadoopStudies
/5_HiveDataFormats/task5.sql
UTF-8
3,919
4.09375
4
[]
no_license
/* 1. Создать таблицы в форматах PARQUET/ORC/AVRO c компрессией и без. (Выберите один вариант, например ORC с компрессией) */ -- $ ssh -i ~/.ssh/id_rsa_el_student_4652746 el_student_4652746@37.139.32.56 -D localhost:8080 -- $ ssh el_student_4652746@10.0.0.19 -- $ beeline use el_student_4652746; SET parquet.compres...
true
ce8e2334e579e1eb2f2dc313c6483a524ce2d58c
SQL
Thepatterraining/kaka-service
/sqlquery/v8_1_05_create.sql
UTF-8
4,454
3
3
[]
no_license
DROP TABLE IF EXISTS `syscash_journaldoc`; CREATE TABLE `syscash_journaldoc` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `syscash_journaldoc_no` varchar(60) NOT NULL DEFAULT '' COMMENT '单据号', `syscash_journaldoc_notes` varchar(255) NOT NULL DEFAULT '' COMMENT '说明', `syscash_journaldoc_frombankcard` varchar...
true
0d4537aaa1e7a3db0cb9fcfe32b0f0f66d41150e
SQL
JustinDowdy/mySQL-database
/db/schema.sql
UTF-8
674
3.265625
3
[]
no_license
-- DROP DATABASE IF EXISTS employees; -- CREATE DATABASE employees; -- USE employees; USE employees_db; INSERT INTO department (name) VALUES ('IT'), ('Finance'), ('Legal'), ('HR'), ('Security'), ('Sales'); INSERT INTO role (title, salary, department_id) VALUES ('Web Developer', 85000, 1), ('Accountant', 65000, 2), ...
true
26dcee1f714a87c5a5f190ecf10ba098d78e2c00
SQL
Mosquitosd3/job4j_design
/sql/garage.sql
UTF-8
932
3.546875
4
[]
no_license
create table owner_car( id serial primary key, owner_name varchar(255), model varchar(255) ); create table garage( id serial primary key, master varchar(255), owner_car_id int references owner_car(id) ); insert into owner_car(owner_name, model) values('Nikolay', 'Opel'); insert into owner_car(owner_name, model)...
true
ad4ed0c44289285009523c0db1a1205f899529cf
SQL
geisonq/DAWII2017
/dawii.sql
UTF-8
7,058
2.625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 23, 2017 at 09:10 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
true
93bd84dfe6bcbb124b4a58713e6f0a13036c84a1
SQL
zhr011/Expressjs
/expressjs/projetexpress.sql
UTF-8
2,228
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : ven. 07 mai 2021 à 13:51 -- Version du serveur : 10.4.11-MariaDB -- Version de PHP : 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
true
01dd3ed01a43d86b3c163515932b80702d694b70
SQL
S0L0LEVELING/FIVEM-VIP
/ddx_vipvoitures/vip_vehicules.sql
UTF-8
1,055
3.265625
3
[]
no_license
USE `essentialmode`; CREATE TABLE `vip_categories` ( `name` varchar(60) NOT NULL, `label` varchar(60) NOT NULL, PRIMARY KEY (`name`) ); INSERT INTO `vip_categories` (name, label) VALUES ('vip','VIP') ; CREATE TABLE carvip ( name varchar(60) NOT NULL, model varchar(60) NOT NULL, price int(11) NOT NUL...
true
cec294981357f497493593d659f90381aea000c1
SQL
jillybeann/OurWorldInData-Covid19
/AzureSQLDatabase/Queries/Our World in Data COVID-19.sql
UTF-8
550
3.515625
4
[]
no_license
-- Data on COVID-19 (coronavirus) by Our World in Data -- ---------------------------------------------------------------------------- CREATE SCHEMA owid SELECT COUNT(*) FROM owid.OwidCovidData --77282 SELECT TOP (1000) * FROM owid.OwidCovidData SELECT DISTINCT Continent FROM owid.OwidCovidData -- Look for duplicat...
true
fa389cf874c7c17248324fd7c5fe94f23f8109d6
SQL
TuanAnhHa/laravel5_contribute_docs
/links_to_share.sql
UTF-8
10,044
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 25, 2016 at 09:35 AM -- Server version: 5.7.12 -- PHP Version: 5.5.36 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
51dcd0cfe124a8de832fed4adf36fc91657b6c24
SQL
ZubkovaValentina/www
/sql/detail_provider.sql
UTF-8
234
2.84375
3
[]
no_license
CREATE TABLE `detail_provider` ( `key_detail` int(10) NOT NULL, `key_provider` int(10) NOT NULL, FOREIGN KEY (`key_detail`) REFERENCES `detail`(`key_detail`), FOREIGN KEY (`key_provider`) REFERENCES `provider`(`key_provider`) );
true
d2935eca6acb3910cc5d285d948b7824f7f53614
SQL
ministryofjustice/opg-ansible-roles
/roles/sql-command/templates/create-user.postgres.sql
UTF-8
751
3.234375
3
[ "MIT" ]
permissive
DO $body$ BEGIN IF NOT EXISTS ( SELECT * FROM pg_catalog.pg_user WHERE usename = '{{ user_data.username }}') THEN CREATE USER {{ user_data.username }} WITH password '{{ user_data.password }}' {{ user_data.attributes }}; END IF; END $body$; GRANT CONNECT ON DATABASE {{ rds_instance_dat...
true
226c3a52acb1603316aad752223b4ef9c6e65c32
SQL
JermeySen/lyf_2021
/dm_model/单天单店模型/schema/store_daily_analysis.sql
UTF-8
4,455
2.6875
3
[]
no_license
CREATE TABLE `dm.store_daily_analysis`( `id` string COMMENT '主键(门店编码+支付日期,然后再反转,如:reverse(107U20210415))', `store_code` string COMMENT '门店编码', `store_name` string COMMENT '门店名称', `store_type` string COMMENT '门店类型', `store_status` string COMMENT '门店当日状态(正常营业/关店)', `close_date` string COMMENT '关店日期', `demol...
true
f38ba042df4b9c3e2f7052d7cd0a23c687288769
SQL
hushengte/feed
/src/test/resources/data-jdbc.sql
UTF-8
6,031
2.953125
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS `lib_book`; DROP TABLE IF EXISTS `lib_publisher`; CREATE TABLE `lib_publisher` ( `id` int NOT NULL AUTO_INCREMENT, `name` varchar(40) NOT NULL, `place` varchar(32) DEFAULT NULL, PRIMARY KEY (`id`) ); insert into `lib_publisher`(`id`,`name`,`place`) values (1,'Wiley','Hoboken, NJ'), (2,'ORe...
true
2458417ca8fee9aec4ad150b5ba74761dda40814
SQL
dimasariyanto12/ejurnal
/db_jurnal.sql
UTF-8
8,655
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 16 Jun 2019 pada 19.05 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.1.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
b0bdd37e1aca6ffe906a17302b52b95e728897f8
SQL
LBS-sws/Hr
/hr/protected/data/2020-02-25(员工表取消必填属性).sql
UTF-8
1,533
3.1875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50620 Source Host : localhost:3306 Source Database : hrdev Target Server Type : MYSQL Target Server Version : 50620 File Encoding : 65001 Date: 2020-02-25 17:04:49 */ SET FOREIGN_KEY_CHECKS=0; -...
true
7d73d286231a2453d072ec93c33124abce635b4f
SQL
WynandViljoen/finance3
/templates/template.sql
UTF-8
22,121
3.40625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.26, for Win64 (x86_64) -- -- Host: localhost Database: finance -- ------------------------------------------------------ -- Server version 5.7.26 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!...
true
0556f3f6b930b139de4be680b15d9d9ef992df7b
SQL
sandeepr1991/relationaldatabase
/q4.sql
UTF-8
274
3.78125
4
[]
no_license
select v_user.id,v_user.firstname, v_user.lastname from (select * from( select userid,sum(deposit) from v_reservation where extract(year from v_reservation.startdate)=2013 group by userid order by sum(deposit) desc) where rownum<=3)t,v_user where t.userid= v_user.id
true
7f44c46f290c843f2392a9c8b7c40b289e4c3714
SQL
OlafMd/MedCon1.0
/mm-libs/dbaccess/Level 5/CL5_Lucentis_BillingHistory/Atomic/Retrieval/SQL/cls_Get_Count_Billings_for_Selected_Mounth.sql
UTF-8
668
3.6875
4
[]
no_license
Select COUNT(bil_billheaders.BIL_BillHeaderID) as numberOfBillings From bil_billheaders Inner Join bil_billposition_2_patienttreatment On bil_billposition_2_patienttreatment.IsDeleted = 0 And bil_billposition_2_patienttreatment.Tenant_RefID = @TenantID Left Join hec_patient_treatment On hec_pati...
true
8dd2ce99f9dad6b9120cf2678b849ef82603d950
SQL
DeyanParushev/MyStudentProjects
/MS SQL/JoinsAndSubqueries/Excercise/Problem 17.sql
UTF-8
494
3.921875
4
[]
no_license
SELECT TOP(5) c.CountryName, MAX(p.Elevation) AS PeakElevation, MAX(r.Length) AS LongestRiverLeght FROM Countries AS c JOIN MountainsCountries AS mc ON c.CountryCode = mc.CountryCode JOIN Mountains AS m ON mc.MountainId = m.Id JOIN Peaks AS p ON m.Id = p.MountainId JOIN CountriesRivers AS cr ON ...
true
5b1656cb29022dbdf55b9f4b6ce49dea4f0efafb
SQL
cfauch/horcrux
/doc/postgresql/populate.sql
UTF-8
329
2.703125
3
[ "Apache-2.0" ]
permissive
-- applied when database already exists, just before migration scripts. -- known versions with their associated migration script. INSERT INTO horcrux_versions (number, script) VALUES (2, 'upgrate_to_v2.sql') ON CONFLICT (number) DO UPDATE SET script = EXCLUDED.script WHERE horcrux_versions.number = EXCLUDED....
true
231c732893f3263703240279ba8677123daf2051
SQL
florianboyer/Projet1
/web/New-World(test) /basedonnee_NW.sql
UTF-8
5,881
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.12deb2+deb8u2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 26, 2017 at 05:37 PM -- Server version: 5.5.52-0+deb8u1 -- PHP Version: 5.6.24-0+deb8u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
60120c093aad6598c2d0724b6dd97691d21d9d87
SQL
VladSergeev/bigdata-tasks
/hive_task1/sql/flights_on_jun_with_airport.sql
UTF-8
396
3.5625
4
[]
no_license
-- All count of flights that come or leave any of New York airports. -- Served flight means for me not canceled. SELECT COUNT(flight.UniqueCarrier) FROM flight_2007 flight JOIN airport airp_in ON airp_in.iata=flight.Dest JOIN airport airp_out ON airp_out.iata=flight.Origin WHERE flight.Month=6 AND fli...
true
2c7854cdc771ff05f660d84d3a759ccb567d0578
SQL
NeverMoreShadowFiend/serv_source_sanguomobile2
/app/db/change_sql/v1.6.3.game.sql
UTF-8
1,771
3.28125
3
[]
no_license
CREATE TABLE `player_citybattle_donate` ( `id` int(11) NOT NULL AUTO_INCREMENT, `player_id` int(11) NOT NULL, `last_donate_time` date NOT NULL DEFAULT '0000-00-00' COMMENT '最后一次捐献日期', `button1_counter` int(11) NOT NULL DEFAULT '0', `button2_counter` int(11) NOT NULL DEFAULT '0', `button3_counter` int(11) NO...
true