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
23c22e63f656c63294df01e88c91909bb2e15685
SQL
b6sics/java-fx3db
/F1futas/megoldas.sql
UTF-8
1,855
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Gép: 127.0.0.1 -- Létrehozás ideje: 2020. Feb 07. 15:34 -- Kiszolgáló verziója: 10.4.8-MariaDB -- PHP verzió: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
5080b4bb3c614043a17a545f26da1027f0924be6
SQL
touhidul027/practicum_management_system
/webstore/src/main/resources/db/sql/practicum-create-table.sql
UTF-8
1,441
3.421875
3
[]
no_license
DROP TABLE students IF EXISTS; DROP TABLE supervisors IF EXISTS; DROP TABLE notices IF EXISTS; DROP TABLE notice_receiver IF EXISTS; DROP TABLE project_proposals IF EXISTS; CREATE TABLE students ( student_id INTEGER, user_name VARCHAR(30), student_email VARCHAR(30), student_department VARCHAR(30), supervisor...
true
dd1a63cb24f99c3070cbd6bc6873938d2dc2a4a6
SQL
zhengjr/bis
/sql/krasrielt/mysql/bis.sql
WINDOWS-1251
114,149
3.359375
3
[]
no_license
# MySQL-Front 3.2 (Build 7.11) /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES 'cp1251' */; CREATE TABLE `account_params` ( `ACCOUNT_ID` varchar(...
true
7a92a3bb66359502bd123fca79d87f4496fc0be5
SQL
losowski/trading
/database/old/application/analysis/create_table/moving_avg.sql
UTF-8
588
3.484375
3
[]
no_license
CREATE TABLE trading_schema.a_moving_avg ( id bigint NOT NULL, days2 numeric NOT NULL, days5 numeric NOT NULL, days9 numeric NOT NULL, days15 numeric NOT NULL, days21 numeric NOT NULL, days29 numeric NOT NULL, days73 numeric NOT NULL, days91 numeric NOT NULL, days121 numeric NOT NULL, days189 numeric NOT NUL...
true
ea58bbfa63377c9a6c61a54d712cf7db999487f6
SQL
leonardobaldino/AvaliacaoDelphiXE8
/Avaliacao_CadastroProduto/script/tipocontato.sql
UTF-8
494
3.125
3
[]
no_license
-- Table: sistema.tipocontato -- DROP TABLE sistema.tipocontato; CREATE TABLE sistema.tipocontato ( id bigserial NOT NULL, descricao text, imagem text, dtinsert timestamp, usuario_id_insert bigint not null, dtupdate timestamp, usuario_id_update bigint, dtdelete timestamp, isdelete boolean, CONSTR...
true
e26e326ee153762b8f822fd70458071f6855e861
SQL
lokendracs39/SGSITS_clubs
/admin.sql
UTF-8
1,819
2.90625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 25, 2020 at 09:28 PM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
f0358818d2be085d1b0e28d8f1c7746c857d5501
SQL
Fcomguerrero/TFG_fuentedelasalud
/geriatric_fdelasalud.sql
UTF-8
15,183
2.78125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3306 -- Tiempo de generación: 14-07-2020 a las 21:28:12 -- Versión del servidor: 5.7.21 -- Versión de PHP: 7.0.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
true
a8d5fa42b52769965b8075efad3f553f98179840
SQL
Irving1596/BACK_ESTADO_CUENTAS
/BD/grupomelo.sql
UTF-8
11,944
3.109375
3
[ "MIT" ]
permissive
-- MySQL dump 10.13 Distrib 8.0.20, for macos10.15 (x86_64) -- -- Host: 127.0.0.1 Database: grupomelo -- ------------------------------------------------------ -- Server version 8.0.13-commercial /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_S...
true
be099720723d477da5069287c49c0b6c03f4b69c
SQL
ebrahimsalehi1/PL-SQL
/PureCodes-Learning/p034.sql
UTF-8
234
2.6875
3
[]
no_license
-- Learning PL/SQL with Ebrahim Salehi -- If you have questions, You will send an email to ebrahim.salehi.oshtorjani@gmail.com select nvl(to_char(department_id),'-'),count(*) from employees group by department_id union select 'all departments',count(*) from employees
true
c1bee48a7d69f1a8d479d1bfaa27698e12482918
SQL
ifirozy/ifirozy-BrainStation-23-SQA-ENGINEER-TEST-Automation-Test-2021
/Questin No- 3.sql
UTF-8
577
3.5
4
[]
no_license
#database creation create DATABASE iffat; #table creation CREATE TABLE STUDENTS ( ID INT, Nmae varchar(11), Marks int, ); #insert values into STUDENTS INSERT INTO STUDENTS ( ID, Name, Marks ) VALUES ( 1, 'Ashley', 81 ), ( ...
true
cdacb2a86e31fe5d61b64ca52dbd88fcec262500
SQL
lukemyers0921/Bamazon
/bamazon.sql
UTF-8
1,342
3.75
4
[]
no_license
-- Drops the bamazon_db if it exists currently -- DROP DATABASE IF EXISTS bamazon_db; -- Creates the 'bamazon_db' database -- CREATE DATABASE bamazon_db; -- Makes it so all of the following code will affect bamazon_db -- USE bamazon_db; -- Creates the table 'products' within bamazon_db -- CREATE TABLE products ( --...
true
e54ba7d0ef0d304c9f8e0a01fc0926905e2a8c88
SQL
wendelti/h1-cms
/banco.sql
UTF-8
412
2.6875
3
[]
no_license
CREATE TABLE `cliente` ( `IDCliente` int(11) NOT NULL, `Nome` varchar(255) NOT NULL, `Email` varchar(255) NOT NULL, `Telefone` varchar(255) NOT NULL, `Status` int(11) NOT NULL, `Senha` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `cliente` ADD PRIMARY KEY (`IDCliente`); A...
true
6e6fe2234e76ac191ce59b7542034dcb808ae173
SQL
core2duoe6420/EOJ
/mysql/sample.sql
UTF-8
2,282
3.25
3
[]
no_license
TRUNCATE TABLE eojdb.problem_multilang; TRUNCATE TABLE eojdb.problem; INSERT INTO problem(p_tlimt,p_mlimt,p_author) VALUES(1000,2000,1); INSERT INTO problem(p_tlimt,p_mlimt,p_author) VALUES(1000,2000,1); INSERT INTO problem(p_tlimt,p_mlimt,p_author) VALUES(1000,2000,1); INSERT INTO problem(p_tlimt,p_mlimt,p_author)...
true
a5ea29c6696293e46700ff62f67b52603c147222
SQL
kleopatra999/gnucash-queries
/expenses_by_month.sql
UTF-8
1,194
4.25
4
[ "MIT" ]
permissive
/* * Aggregates the value of transactions of type 'EXPENSE' by month and account * Columns: * ebm_postdate | ebm_year | ebm_month | period_yearmonth | account | ebm_amount */ SELECT transactions.post_date AS ebm_postdate, strftime('%Y', timezone_adjusted_post_date) AS ebm_year, strftime('%m', timezone_adjusted_...
true
a33166494b36c340064a26bcc41aeae405fc2eae
SQL
btlsrv/btlsrv
/db/faction/get_all_users_by_factions.sql
UTF-8
160
3.1875
3
[]
no_license
SELECT u.username, u.victories, u.defeats FROM users u JOIN factions f ON u.faction_id = f.faction_id WHERE f.faction_id = $1 ORDER BY victories DESC LIMIT 10;
true
2060966958a2115bb5fdb596dbedf4355730195e
SQL
IsFilimonov/Interviews
/CodeWars/PostgreSQL/018-Relational_division_Find_all_movies_two_actors_cast_in_together.sql
UTF-8
650
4.34375
4
[ "MIT" ]
permissive
WITH id105 AS (SELECT film_id FROM film_actor WHERE actor_id = 105), id122 AS (SELECT film_id FROM film_actor WHERE actor_id = 122), t AS (SELECT t105.film_id FROM id105 t105 INNER JOIN id122 t122 ...
true
90f6d86fd831dde47041d58681f6f632d3eb47af
SQL
adrian426/Tarea_E-Shop_Seguridad
/src/DB_SCRIPT_SEGURIDAD.sql
UTF-8
1,868
3.890625
4
[]
no_license
create database if not exists Amazin; use Amazin; Create table if not exists User( id int not null auto_increment, username varchar(25) not null unique, password_hash varchar(40) not null, fullname varchar(70) not null, email varchar(50) not null unique, phone_number int not null unique, PRIMAR...
true
aba73b741c6ba5598a6b87bfa2172937055c0f38
SQL
KatyaMatya21/yeticave
/schema.sql
UTF-8
1,923
4.125
4
[]
no_license
-- Создание БД CREATE DATABASE yeticave DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; -- Обращение к БД USE yeticave; -- Создание таблицы для категорий CREATE TABLE categories ( id INT AUTO_INCREMENT PRIMARY KEY, name CHAR(128) ); -- Создание обычных индексов CREATE INDEX n_text ON categories(n...
true
e39ac3932fe5dc45da37a9066200d752e5c62fd0
SQL
dilshani97320/ozone_new
/console (1).sql
UTF-8
9,302
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 09, 2021 at 03:20 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
57a3bf7cd5862e34ad04e16f2b07b24f0192b726
SQL
tongzhenghe/tmss
/mobile/data/import.sql
UTF-8
7,615
3.0625
3
[]
no_license
-- -- 表的结构 `ecs_touch_nav` -- DROP TABLE IF EXISTS `ecs_touch_nav`; CREATE TABLE IF NOT EXISTS `ecs_touch_nav` ( `id` mediumint(8) NOT NULL AUTO_INCREMENT, `ctype` varchar(10) DEFAULT NULL, `cid` smallint(5) unsigned DEFAULT NULL, `name` varchar(255) NOT NULL, `ifshow` tinyint(1) NOT NULL, `vieworder` tin...
true
f43f86cdc09cc30cc5baf50aa4dea53a0f94d37a
SQL
berkansivri/LeetCode
/LeetCode/176. Second Highest Salary/SecondHighestSalary.sql
UTF-8
153
3.296875
3
[]
no_license
/* Write your T-SQL query statement below */ SELECT MAX(Salary) as SecondHighestSalary FROM Employee WHERE Salary < (SELECT MAX(Salary) FROM Employee);
true
c214dc4f7ac9bc5e665d574a70df4124215b3b64
SQL
shiyoutaohua/bibliosoft
/src/main/resources/sql/ly.sql
UTF-8
7,582
3.21875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : MySQL5.7 @MIPro Source Server Version : 50724 Source Host : localhost:3306 Source Database : ly Target Server Type : MYSQL Target Server Version : 50724 File Encoding : 65001 Date: 2019-03-09 23:13:19 */ SET FOREIGN_KEY_CHECKS=0; -- ...
true
5688e29350be6fb4b4979ba4cb16cb5614fb8ba9
SQL
akash-ht/Shine_Reports
/Sales 1Yr/sales_1Yr.sql
UTF-8
376
3.359375
3
[]
no_license
SELECT sales_order_no,REPLACE(company_name,',',';') as company_name,A.enabled,C.text as Status,A.deactivation_date,A.suspension_date,A.created_date from backoffice_accountsales A left join backoffice_companyaccount B on A.company_account_id = B.id left join SumoPlus_Complement.lookup_enabled C on A.enabled = C.id where...
true
0e87135387d7664c4d9dc41900a6fd6078de57dd
SQL
romansokyrko/Epam_Tasks
/DB/Lesson 1/1.sql
UTF-8
2,363
3.734375
4
[]
no_license
USE computer_firm; #1 SELECT maker, `type` FROM product WHERE `type`='PC'; #2 SELECT model, ram, screen, price FROM laptop WHERE price>1000 ORDER BY ram, price DESC; #3 SELECT * FROM printer WHERE color='y' ORDER BY price DESC; #4 SELECT model, speed, hd, cd, price FROM pc WHERE (cd='12x' OR cd ='24x') AND price<600 OR...
true
cc4559038e1ea81a1d5375bff62956eb2eb6aa41
SQL
jprodhomme/isophoto
/titrePro/isoPhoto/modelisation/archives/db_isophotoV5.sql
UTF-8
4,809
3.6875
4
[]
no_license
-- Database generated with pgModeler (PostgreSQL Database Modeler). -- pgModeler version: 0.9.1-beta -- PostgreSQL version: 10.0 -- Project Site: pgmodeler.com.br -- Model Author: --- -- Database creation must be done outside an multicommand file. -- These commands were put in this file only for convenience. -- -- o...
true
384f34319ffbffa94a7595d8a203b64c448108dd
SQL
liangruzhang/xianjianlabel
/dbscript/all/review_log.sql
UTF-8
1,093
3.09375
3
[]
no_license
-- ---------------------------- -- Table structure for `review_log` -- ---------------------------- DROP TABLE IF EXISTS `review_log`; CREATE TABLE `review_log` ( `ID` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `REVIEW_DATE` datetime DEFAULT NULL COMMENT '审核时间', `REVIEW_BY` varchar(50) COLLATE utf8_unicode_ci ...
true
7d96d601dbb1ad0121f0fa26cdd5e8d803ea057a
SQL
YauheniD/GodelDataMasteryPart1
/Tasks/Vadzim/Task3/query06.sql
UTF-8
399
4.09375
4
[]
no_license
--Query 6 WITH CTE (CustomerID) AS ( SELECT CustomerID FROM Sales.SalesOrderHeader as g WHERE YEAR(OrderDate) = 2011 EXCEPT SELECT CustomerID FROM Sales.SalesOrderHeader WHERE YEAR(OrderDate) != 2011 ) SELECT DISTINCT ssoh.CustomerID, ssoh.OrderDate FROM Sales....
true
ca0d015f3f249e8a1a8403ccee45f074b6549bb0
SQL
jpuerari/employeeTracker
/db/seeds.sql
UTF-8
555
2.671875
3
[]
no_license
USE employeeTracker_db; INSERT INTO department (name) VALUES ('Localization Engineer'), ('In-house Translator'), ('Project Manager'), ('Clerk'); INSERT INTO role (title, salary, department_id) VALUES ('Senior Localization Engineer', 100000, 1), ('In-house Spanish>English Translator', 60000, 2), ('...
true
ef3df7132ca1cfb7eac43e0fda2452697787e585
SQL
skylarb/RegisterAPP
/RegisterAPIDataDefinition/transaction_list.sql
UTF-8
440
3.234375
3
[]
no_license
CREATE TABLE Transaction_list( ID_Cash char(5), Foreign key (ID_Cash) REFERENCES employee (employeeID), -- references the cashier number ID_Trans serial, --count for the transaction number ID uuid DEFAULT gen_random_uuid() unique NOT NULL, -- transaction ID Sale_total numeric(10,2) unique not null, --...
true
51f411d85ed3ff224da20d64e3797aa019f0b962
SQL
BigBricks/SQL
/notesInsert.sql
UTF-8
1,027
2.8125
3
[]
no_license
.mode column .header on INSERT INTO author (name) VALUES ("Super Awesome Author 1"); INSERT INTO author (name) VALUES ("Super Awesome Author 2"); INSERT INTO author (name) VALUES ("Super Awesome Author 3"); INSERT INTO author (name) VALUES ("Super Awesome Author 4"); INSERT INTO author (name) VALUES ("Super Awesome Au...
true
32586243bb50a7306ff488d81517ae1ce9f1e53e
SQL
rpp30-sdc-1337requests/reviews-service
/database/postgresSchema.sql
UTF-8
839
3.703125
4
[]
no_license
/* Schema for Postgres DB */ CREATE DATABASE IF NOT EXISTS review_data; USE review_data; CREATE TABLE reviews( REVIEW_ID INT NOT NULL, PRODUCT_ID INT NOT NULL, RATING INT NOT NULL, SUMMARY VARCHAR(60) NOT NULL, RECOMMEND BOOLEAN NOT NULL, RESPONSE VARCHAR(1000) DEFAULT NULL, BODY VARCHAR(1000) NOT NULL...
true
b8df33a5b59284e243d9a5917ea26f54aad5ad44
SQL
CursusSopra/Glougloubar
/BDD/GlouglouBar_04.sql
UTF-8
14,770
2.9375
3
[]
no_license
-- -- TOC entry 2035 (class 0 OID 57351) -- Dependencies: 172 -- Data for Name: adresses; Type: TABLE DATA; Schema: public; Owner: postgres -- TRUNCATE adresses RESTART IDENTITY CASCADE; INSERT INTO adresses (idadresse, voie, cp, latitude, longitude) VALUES (1, '12 rue Sainte Catherine', '69001', 45.768081, 4.833417);...
true
b25fc620daad6f417152613c471e100a07726dd3
SQL
Internet-of-People/hydra-core
/packages/core-snapshots/src/db/queries/blocks/height-range.sql
UTF-8
281
2.5625
3
[ "MIT" ]
permissive
SELECT id, version, timestamp, previous_block, height, number_of_transactions, total_amount, total_fee, reward, payload_length, payload_hash, generator_public_key, block_signature FROM blocks WHERE height BETWEEN ${start} AND ${end} ORDER BY height
true
d23927964bd00bf070520629022d1f919557bd63
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day14/select0842.sql
UTF-8
191
2.625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-13T08:42:00Z' AND timestamp<'2017-11-14T08:42:00Z' AND SENSOR_ID='2d77a08e_5cab_47d1_98e1_ba3644adb50c'
true
d1de148285439c74d516207a9132610aba356f41
SQL
tperezr/Disney
/disney.sql
UTF-8
6,596
3.375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `disney` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `disney`; -- MySQL dump 10.13 Distrib 8.0.25, for Win64 (x86_64) -- -- Host: localhost Database: disney -- ------------------------------------------------------ -- Se...
true
b811ae9e38502be89aae651272ce3d2b98352f9e
SQL
dieguits/Sintel
/BSME/Package/PAK_SERVICIO.sql
UTF-8
5,351
2.71875
3
[]
no_license
CREATE OR REPLACE PACKAGE bsme.pak_servicio IS /* VERSION: 1.0 AUTOR: DIEGO A PEREZ COPYRIGHT: D4P DESCRIPCION: HISTORIAL DE CAMBIOS AUTOR FECHA ACTIVIDAD --------- ---------------- ---------------------------------- D4P 12/04/2016 Creaci...
true
ef0bdde04b012076d24eda2871e5dbc85bcc03b7
SQL
glukagen/SF-LMS-Coursera-Doc
/DOC/UserLogin_Schema_Postgres.sql
UTF-8
677
2.640625
3
[]
no_license
******************** CREATE USERS ********************** CREATE TABLE courseraintegration_schema.userlogin ( user_id integer NOT NULL, active integer, email character varying(255) COLLATE pg_catalog."default", password character varying(255) COLLATE pg_catalog."default", username characte...
true
dc27e95a3985d265e9854ace84e18dc7480b30a7
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/02169_fix_view_offset_limit_setting.sql
UTF-8
531
3.6875
4
[ "Apache-2.0", "BSL-1.0" ]
permissive
DROP TABLE IF EXISTS counter; CREATE TABLE counter (id UInt64, createdAt DateTime) ENGINE = MergeTree() ORDER BY id; INSERT INTO counter SELECT number, now() FROM numbers(500); DROP TABLE IF EXISTS vcounter; CREATE VIEW vcounter AS SELECT intDiv(id, 10) AS tens, max(createdAt) AS maxid FROM counter GROUP BY tens; SEL...
true
466a45b540d6628c485254ba36fd1681d27ce193
SQL
andrei4002/qWat
/sql/create/15_finish/search_view.sql
UTF-8
2,296
3.1875
3
[]
no_license
CREATE OR REPLACE VIEW distribution.vw_search_view AS /* ouvrages */ SELECT 'Ouvrages' as layer_name, 'Réservoir ' || name as search_text, geometry FROM distribution.od_installation_tank INNER JOIN distribution.vl_status ON od_installation_tank.id_status = vl_status.id WHERE vl_status.active IS TRUE ...
true
a2b862a92acd090bac589df90ee6fcfe823f9ca2
SQL
SevenLines/ScheduleSQL
/восстановление_расписания.sql
WINDOWS-1251
2,432
3.71875
4
[]
no_license
/* -- UPDATE rsps SET rsps.raspnagr = t.new_id FROM raspis rsps JOIN ( SELECT rn.id_51 new_id, rn_old.id_51 old_id--, --rn.nt, rn_old.nt, --rn.pred, rn_old.pred, --rn.sem, rn_old.sem, --rn.afobuch, rn_old.afobuch, --rn.kontid, rn_old.kontid, --rn.kont, rn_old.kont FROM raspnagr rn JOIN SPR_POLITEX_...
true
798fcea420aa0bf40d3f8775bb89dc77b50970ba
SQL
Lanceff/springboot-xadmin-template
/src/main/resources/db/sys_role_menu.sql
UTF-8
300
2.6875
3
[]
no_license
CREATE TABLE `sys_role_menu` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号', `role_id` bigint(20) DEFAULT NULL COMMENT '角色编号', `menu_id` bigint(20) DEFAULT NULL COMMENT '菜单编号', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
true
2d633eb6e1d15c2490119de13673dee9572b7bc1
SQL
nikolay-doichev/Csharp-Databases-Basics-September-2019
/Databases Basics - MS SQL Server/07.DatabaseProgrammability_Exercise/03. Town Names Starting With.sql
UTF-8
153
3.234375
3
[]
no_license
CREATE PROCEDURE usp_GetTownsStartingWith(@Index VARCHAR(MAX)) AS SELECT t.[Name] FROM Towns AS t WHERE SUBSTRING(t.[Name],1, LEN(@Index)) = @Index
true
d364649aeff062aea8cb89882a0ef1e101f8583f
SQL
paulalcabasa/Oracle-SQL-Files
/GL/IPC Account Analysis (AP-Payments).sql
UTF-8
4,197
3.46875
3
[]
no_license
-- AP PAYMENTS QUERY LEFT JOINED select nvl(fu.description,fu.user_name) transacted_by, aca.creation_date transaction_date, xah.je_category_name, gjh.doc_sequence_value gl_voucher, aca.check_number, aca.doc_sequence_value check_document_no, ...
true
6563a2faf830e0797b881ca2553ed1f351de38a7
SQL
JoanahDv/RESIDENCE
/db.sql
UTF-8
6,095
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Sep 27, 2021 at 07:35 AM -- Server version: 5.7.32 -- PHP Version: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `project5` -- -- --------------------------...
true
b57be130af366d00f465e68d2cbec1be6c7932b7
SQL
SMS-NED16/SQL-Prep
/learning-sql-ab/03-query-primer/03_WHERE.sql
UTF-8
947
4.25
4
[]
no_license
-- The WHERE clause is the mechanism for filtering out unwanted rows from your result set. -- This is useful because we will not often want to select ALL rows from the dataset. -- Query that selects only bank tellers from the employee table SELECT emp_id, fname, lname, start_date, title FROM employee WHERE title = 'H...
true
90879a71292234084ba1d9e248ef5c13d48e0d84
SQL
chen-huaijin/owlympics_flask
/reset.sql
UTF-8
167
2.515625
3
[]
no_license
drop table if exists login; create table login ( year integer, month integer, day integer ); insert into login (year, month, day) values (2012, 12, 31)
true
d55b86d3dbbd49c6fc81f48bb9d048b200b0a314
SQL
Ade2803/pemrogramanweb2.1
/resources/views/inc/tb_login.sql
UTF-8
1,623
3.015625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 13 Feb 2017 pada 09.54 -- Versi Server: 10.1.19-MariaDB -- PHP Version: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT...
true
a9a726d504acbf358a8af90588aaf827484f3cbe
SQL
gdnmobilelab/Brevis
/dbscripts/p_InsertBrevisContent.sql
UTF-8
3,221
2.765625
3
[]
no_license
create or replace function p_InsertBrevisContent( IN p_id VARCHAR(36), IN p_path VARCHAR(4096), IN p_contentType VARCHAR(255), IN p_headline TEXT, IN p_sectionId VARCHAR(255), IN p_sectionName VARCHAR(255), IN p_webPublicationDateISO VARCHAR(255), IN p_webPublicationDateTimestamp BIGINT, IN p_tags TEX...
true
7559907b5b68798fdc86a3556c35c93916044095
SQL
ashishsalunkhe/Zensar-ESD
/sql_assignments/SQL/fibonacci.sql
UTF-8
394
2.8125
3
[]
no_license
/*accept 2 in from integer display fibonacci series check first no is greater than second*/ declare no1 number :=&no1; no2 number := &no2; i number := 0; j number := 1; k number :=0; begin if no2>no1 then loop i:=j; j:=k; k:=i+j; exit when k>=no1; end loop; loop dbms_output.put_line(k); ...
true
7764675485ca786881b9c8c0102929b32cfe307f
SQL
Forvisk/BANII
/Exercicios/Ex_07_Stored Procedure/Mecanica-v4.sql
UTF-8
3,928
3.734375
4
[]
no_license
-- Table: setor -- DROP TABLE setor; CREATE TABLE setor ( cods integer NOT NULL, nome character varying(50), CONSTRAINT setor_pkey PRIMARY KEY (cods) ) WITH ( OIDS=FALSE ); ALTER TABLE setor OWNER TO postgres; -- Table: mecanico -- DROP TABLE mecanico; CREATE TABLE mecanico ( codm serial NOT NULL, cpf ...
true
43bc363ce55bf26af8886371f56cb6002f652ca4
SQL
dperaltaluna/FBD
/Practicas/Practica_8/ejercicio2.sql
UTF-8
452
3.28125
3
[]
no_license
-- Ejercicio 2 -- Consulta 1: Consulta a la relacion Procesador SELECT modelo_procesador, MAX(id_producto) AS maximo_id_producto FROM "Procesador" WHERE nucleos_fisicos_procesador >= 4 GROUP BY modelo_procesador; --Consulta 2: Pagos por cliente select rfc_cliente,sum(cantidad_pago) from "Pago" group by rfc_cliente...
true
e438bfd84619f9fa24d34d357010eaf7b50010e1
SQL
miguelmeca/ovejas
/CREATE TABLE.SQL
UTF-8
2,871
3.0625
3
[]
no_license
/* CREATE TABLE PUBLIC.MAJADA (MAJADAID INTEGER IDENTITY, MAJADANOMBRE VARCHAR(30) NOT NULL, MAJADADESCRIPCION VARCHAR(50) NULL) CREATE TABLE PUBLIC.CORRAL (CORRALID INTEGER IDENTITY, CORRALNOMBRE VARCHAR(30) NOT NULL, CORRALDESCRIPCION VARCHAR(50) NULL, CORRALCAPACIDAD INTEGER NULL) CREATE TABLE PUBLIC...
true
1acb4e620d428604abb4d3022425824f7009151a
SQL
gpickney/northwoods-airlines-prompt
/sql_views/unpivoted_flights_view.sql
UTF-8
492
2.53125
3
[]
no_license
USE USER_GPICKNEY.PUBLIC; -- UNPIVOTED AIRPORT VIEW FOR USE IN REPORTS BY AIRPORT CREATE VIEW IF NOT EXISTS UNPIVOTED_AIRPORT_FLIGHTS AS SELECT FLIGHT_NUMBER, CANCELLED, CANCELLATION_REASON, AIR_SYSTEM_DELAY, SECURITY_DELAY, AIRLINE_DELAY, LATE_AIRCRAFT_DELAY, WEATHER_DELAY, DEPARTURE_TIME, SCHEDUL...
true
9d7686a2aac56786ed277817150bd070e55dcde2
SQL
tucif/RSSNinja
/sql/rssninja.sql
UTF-8
4,664
3.734375
4
[]
no_license
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'; CREATE SCHEMA IF NOT EXISTS `RSSNinja` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci ; USE `RSSNinja` ; -- -------------------...
true
cf1690aa047e99de275133af10c2814f02ed8927
SQL
singhalpooja9/HackerRank-SQL
/Employee Salaries.sql
UTF-8
83
2.671875
3
[]
no_license
select name from employee where salary >2000 and months < 10 order by employee_id;
true
defc31145db6b83007b96e3424c4276a6d5c842e
SQL
cxor/biblioteca
/sql/1-creazione_db.sql
UTF-8
5,087
3.703125
4
[]
no_license
drop DATABASE if exists BIBLIOTECA; create DATABASE BIBLIOTECA; GRANT ALL ON BIBLIOTECA.* TO 'utentebiblioteca'@'localhost' IDENTIFIED BY 'password' ; USE BIBLIOTECA # # CREAZIONE TABELLE PER LE ENTITà # create table Utente ( id_utente int AUTO_INCREMENT PRIMARY KEY, email varchar(50) not ...
true
f09f085e505a50536cd4760fde683e8f93fd7515
SQL
jacobvelasco91/VelascoSantos_CSC17B
/homework/labs/5_scripts_data/Survey.sql
UTF-8
6,760
3.234375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: test -- ------------------------------------------------------ -- Server version 5.6.25 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;...
true
b736449b840b11b7e05c9b17364be4241c240d09
SQL
skandasastry/qa-react-tutorial-db
/database/qa-app-db.sql
UTF-8
763
4.03125
4
[]
no_license
-- making and using a database with 2 tables: questions and answers DROP DATABASE IF EXISTS qa_app; CREATE DATABASE IF NOT EXISTS qa_app; USE qa_app; -- questions table, auto incrementing id so we dont have to handle it in JS. CREATE TABLE IF NOT EXISTS questions ( id INT auto_increment, title varchar(500) COLLATE ...
true
e63708681f50115b6411a6d83b220585ad710983
SQL
cloudz-labs/awesome-shopping-handson
/awesome-account-service/src/main/resources/schema.sql
UTF-8
1,354
3.328125
3
[]
no_license
--sequence create sequence event_seq; -- accounts DROP TABLE IF EXISTS accounts; CREATE TABLE accounts ( id bigint NOT NULL AUTO_INCREMENT ,username varchar(255) NOT NULL ,name varchar(255) NOT NULL ,password varchar(255) NOT NULL ,mobile varchar(255) NOT NULL ,address varchar(255) NOT NULL ,scope v...
true
06de3081fe0c5908659cbd3c34fc567adcc9bfae
SQL
ledbagholberton/holbertonschool-machine_learning
/pipeline/0x02-databases/9-no_genre.sql
UTF-8
364
3.703125
4
[ "MIT" ]
permissive
-- lists all shows contained in hbtn_0d_tvshows without a genre linked -- use of inner join i two levelss only one SELEcT SELECT tv_shows.title, tv_show_genres.genre_id FROM tv_shows LEFT OUTER JOIN tv_show_genres ON tv_shows.id = tv_show_genres.show_id LEFT OUTER JOIN tv_genres ON tv_genres.id = tv_show_genres.genr...
true
159a9ef7d3174d2ae270a7e58ee9e64d0a2c0107
SQL
matteoyangaugust/shoppingAgent
/docs/SQL/create.sql
UTF-8
2,540
3.078125
3
[]
no_license
create database shopping_agent; use shopping_agent; create table system_user( sn int primary key auto_increment, name varchar(20) not null default '', username varchar(20) not null default '', password varchar(20) not null default '', role varchar(15) not null default 'ROLE_UNKNOWN', email varchar(200) not n...
true
875f7d5dd831b36d02429130bcc9db3ec7198f8a
SQL
ycyxuehan/blog-vue
/src/server/database/mysql.sql
UTF-8
902
3.296875
3
[ "Apache-2.0" ]
permissive
create database if not exists blog default character set UTF8MB4; use blog; drop table if exists category; create table if not exists category ( id int auto_increment primary key, name varchar(64) not null, description varchar(256) default '' ); drop table if exists user; create table if not exists user ( i...
true
9113f166ddd8757f0e551f752ad5c3f2daef9d3f
SQL
oradrs/Oracle
/Scripts/Other/FullTabScan_QryList.sql
UTF-8
1,461
3.3125
3
[]
no_license
-- FileName : FullTabScan_QryList.sql -- -- Purpose : To list queries which has doen FULL TABLE SCAN -- -- Output : output file will be generated in current dir -- -- ------------------------------------------ SET HEA ON LIN 500 PAGES 100 TAB OFF FEED OFF ECHO OFF VER OFF TRIMS ON TRIM ON TI OFF TIMI OFF; SET LONG ...
true
22ea502f5bdbe7e0434afebffe18fcc9d3984e9b
SQL
yemiborisade/burger
/db/schema.sql
UTF-8
336
3.15625
3
[]
no_license
-- Drops the day_planner_db if it already exists -- DROP DATABASE IF EXISTS burgers_db; -- Create the database day_planner_db and specified it for use.// CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE burgers ( id int NOT NULL AUTO_INCREMENT, name varchar(255) NOT NULL, eaten BOOLEAN DEFAULT false, PRI...
true
5e7c11b7796dc25016e1b8be93bb5242821c7920
SQL
ColeGC/GrouseBC
/BCUED_1.2_Create Table of CDM-CMS Shoulder Diagnoses.sql
UTF-8
1,565
3.53125
4
[]
no_license
DROP TABLE cchapman6.cdt_cms_shldrdx; CREATE TABLE cchapman6.cdt_cms_shldrdx AS SELECT a.patid, a.dx AS icd_dgns_cd, a.admit_date AS dgns_dt, a.dx_type AS icd_dgns_vrsn, b.code_type FROM cms_cdm_11_15_7s.diagnosis a INNER JOIN cchapman6.icd_dx_shldr b ON a.dx = b.code_fmt; /********************************...
true
2d43b44bb6146d21a559daa02a81fa4de9ec9810
SQL
mgranda/databricks-azure-devops
/notebooks/dw/ft_sales.sql
UTF-8
513
3.25
3
[]
no_license
-- Databricks notebook source delete from dw_${spark.datalake.env}.ft_sales where dateid between date_format('$datefrom','yyyyMMdd') and date_format('$dateto','yyyyMMdd') -- COMMAND ---------- INSERT INTO TABLE dw_${spark.datalake.env}.ft_sales PARTITION (dateid) select customerid, date_format(saledate,'yyyyMMdd') a...
true
3de01cd27f0a351b97eba6bc19af81c4db3b05bd
SQL
buppa93/spring-course
/resources/jareviewer.sql
UTF-8
4,237
3.21875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.24, for Win64 (x86_64) -- -- Host: ec2-3-68-107-186.eu-central-1.compute.amazonaws.com Database: jareview -- ------------------------------------------------------ -- Server version 8.0.25-0ubuntu0.20.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SE...
true
d54577a36c2f89d93325fb561020559394026610
SQL
desosur/realstate
/sql/creacion.sql
UTF-8
3,274
3.4375
3
[]
no_license
create database domosys; use domosys; create table cliente ( ID_CLIENTE INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL, RUT VARCHAR(10) NOT NULL, NOMBRES VARCHAR(150) NOT NULL, APE_PATERNO VARCHAR(150) NOT NULL, APE_MATERNO VARCHAR(150) NOT NULL, FECHA_NAC DATE NOT NULL, GENERO VA...
true
742dc522c36428beafac52a99935d10126b3c56d
SQL
vmcph39/LearningSQL
/VickiSimpleQueries.sql
UTF-8
641
3.84375
4
[]
no_license
1. Write a query to display the name, product line, and buy price of all products. The output columns should display as “Name”, “Product Line”, and “Buy Price”. The output should display the most expensive items first. SELECT productName AS "Name", productLine AS "Product Line", buyPrice AS "Buy Price" FROM product...
true
47da503e668f0f9e7069e3fd02af5cd090dde3af
SQL
tomrobson/bancoPHP
/hospital/DB_Hospital.sql
UTF-8
1,491
3.421875
3
[]
no_license
create database bd_hospital; create table tb_especialidade( id_especialidade int not null, tx_especialidade varchar(50) not null, constraint pk_tb_especialidade primary key (id_especialidade) )engine=innodb; create table tb_medico( id_medico int not null primary key, especialidade_id int not null, tx_nome ...
true
f8ce71b5f86be5ed4a4f88f8e5c3ccfc7dce3af0
SQL
franciscocasanueva/checkout_test_franciscocasanueva
/target/compiled/dbt_checkout_francisco/models/updated_postcode_stg.sql
UTF-8
496
3.4375
3
[]
no_license
select current_postcode.user_id, pageviews.pageview_datetime, pageviews.original_postcode, current_postcode.postcode as current_postcode, current_postcode.postcode_updated_date from `dbt-test-290911`.`dbt_francisco`.`current_postcode` as current_postcode left join {ref('pageviews_postcode')} pageviews...
true
ff4c8d7867ddc856e96e5cb0d2258dcd0cb65ab6
SQL
wzator/z-wave-homeLogic
/tables/power.sql
UTF-8
314
2.6875
3
[]
no_license
DROP TABLE IF EXISTS `power`; CREATE TABLE IF NOT EXISTS `power` ( `homeid` int(11) DEFAULT NULL, `node` int(11) NOT NULL, `power` double NOT NULL, `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`node`,`homeid`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
true
d7d3f474a6fbbe18ff46367e82adfe2995c0ea45
SQL
u-malichenko/DivisionOfExpenses
/src/main/resources/db/migration/V1__init_ddl.sql
UTF-8
5,038
3.515625
4
[]
no_license
create table if not exists roles ( id bigint generated by default as identity constraint roles_pkey primary key, create_date timestamp default current_timestamp, modify_date timestamp default current_timestamp, name varchar(255) ); create table if not exists users ( ...
true
d0815b25dce910c66eab29371aab9134939b9ef0
SQL
Elang89/Proyecto-I-Bases-I
/SQL scripts/47.SequencesAdoptionFormQuestionGroupAnswerGroup.sql
UTF-8
480
2.640625
3
[]
no_license
/*Sequences for adoption, answer and question Group Created By ernesto Lang*/ CREATE SEQUENCE question_group_id_generator START WITH 1 INCREMENT BY 1 MINVALUE 0 MAXVALUE 1000000000 NOCACHE NOCYCLE; CREATE SEQUENCE adoption_form_id_generator START WITH 1 INCREMENT BY 1 MINVALUE 0 MAXVALUE 10...
true
71975139336a82836412d36dc397c3ec049bae88
SQL
Jamaxack/HackerrankPractice
/SQL/Aggregation/Japan Population.sql
UTF-8
155
3.234375
3
[]
no_license
--Problem: https://www.hackerrank.com/challenges/japan-population/problem --Max Score: 10 Select Sum(Population) From City Where CountryCode = 'JPN'
true
ca4c5055438c0b9fbe37b1f24b29847d0f731000
SQL
enwikipedia-acc/waca
/sql/seed/welcometemplate_data.sql
UTF-8
2,534
2.671875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.40, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: production -- ------------------------------------------------------ -- Server version 5.5.40-0ubuntu0.12.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=...
true
11847884586f3b1e04c9d6c2a09c512d658b5a01
SQL
crchemist/langtyper
/resources/migrations/20151205040941-add-races-table.up.sql
UTF-8
262
2.53125
3
[]
no_license
CREATE TABLE races (id VARCHAR(20) PRIMARY KEY, /* NEW=0, IN-PROGRESS=1, FINISHED=2 */ state INTEGER); CREATE TABLE users_races (user_id VARCHAR(20), race_id VARCHAR(20), start_time TIME, end_time TIME, time INTEGER, errors INTEGER, passed BOOLEAN);
true
0c156fa98d832c59d91e73180a73625ac3d1ea93
SQL
sesalow/mattermost-data-warehouse
/transform/snowflake-dbt/models/staging/tva/tva_attain_new_and_exp_by_rep_by_qtr.sql
UTF-8
821
2.984375
3
[]
no_license
{{config({ "materialized": 'table', "schema": "staging" }) }} WITH tva_attain_new_and_exp_by_rep_by_qtr AS ( SELECT REPLACE(target_slug,'_mo_','_qtr_') AS target_slug, util.fiscal_year(tva_attain_new_and_exp_by_rep_by_mo.month)|| '-' || util.fiscal_quarter(tva_attain_new_and_exp_by_rep_by...
true
d6c7b4ed244711562673f52e82380c479596f13b
SQL
crhbetz/MAD
/scripts/SQL/rocketmap.sql
UTF-8
33,539
3.5
4
[]
no_license
SET FOREIGN_KEY_CHECKS=0; SET NAMES utf8mb4; CREATE TABLE `filestore_chunks` ( `chunk_id` int(11) NOT NULL AUTO_INCREMENT, `filestore_id` int(11) NOT NULL, `size` int(11) NOT NULL, `data` longblob, PRIMARY KEY (`chunk_id`), UNIQUE KEY `chunk_id` (`chunk_id`,`filestore_id`), KEY `fk_fs_chunk...
true
8b393984bde6de8cc384f8387544189982583818
SQL
tqscham/tscham_sql
/queries.sql
UTF-8
1,257
4.59375
5
[]
no_license
--Average grade given by each professor SELECT p.professors_name, g.grades_average FROM professors p JOIN ( SELECT AVG(grades_value) AS grades_average, grades_professors_id FROM grades GROUP BY grades_professors_id ) AS g ON g.grades_professors_id = p.professors_id ORDER BY professors_name; --Top grades for e...
true
40822c793eff48e10a7ab705355cbc011ae6e55a
SQL
cferdinand/superFan
/db/schema.sql
UTF-8
1,433
4.125
4
[]
no_license
SELECT 'CREATE DATABASE superfan' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'superfan')\gexec \c superfan; -- --- -- Table 'Users' -- -- --- DROP TABLE IF EXISTS users CASCADE; CREATE TABLE users ( id SERIAL PRIMARY KEY NOT NULL, username VARCHAR(60) NULL, user_password VARCHAR(1000) NULL, ses...
true
e77ad979aee4f07bb2079b33b525c2c9b26775a5
SQL
shunpeicloser/basis-data-terdistribusi
/fp/dump/elaporan.user-schema.sql
UTF-8
569
3.390625
3
[]
no_license
/*!40101 SET NAMES binary*/; /*!40014 SET FOREIGN_KEY_CHECKS=0*/; CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_opd` int(11) NOT NULL, `username` varchar(32) NOT NULL, `password` char(60) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `last_login` timestamp NOT N...
true
d87c661a5129251196b38224e5d34df250c5e96d
SQL
DovIra/LAB4
/run.sql
UTF-8
2,557
3.5625
4
[]
no_license
declare emploee_name varchar(10); emploee_name_check varchar(10); location_name varchar(50); location_name_check varchar(50); cursor curr1 is select to_char(WEATHER_DATE, 'dd.mm.yyyy') as weather_date, LOCATION_CODE, is_raining(WEATHER_DATE, LOCATION_CODE) as rainToday, ...
true
ec8a5a5a3abb79e6c39bd555ecdca86ac9afd9e2
SQL
zhiji6/szbj-code
/cdr.core/src/main/resources/com/yly/cdr/dao/PatientDao_getPatient.sql
UTF-8
186
2.5625
3
[]
no_license
/** * 根据患者内部序列号获取患者对象 * @param patientSn 患者内部序列号 * @return 患者对象 */ SELECT a.* FROM patient a WHERE a.patient_sn = /*patientSn*/
true
f172d233a731bd5ba563663f4b557e2545ac073b
SQL
Cakem1x/odie-server
/prfproto.sql
UTF-8
3,448
3.859375
4
[]
no_license
CREATE TABLE klausuren ( id bigint NOT NULL, vorlesung text, prof text, datum date, kommentar text, bestand integer DEFAULT 0, sollbestand integer DEFAULT 0, gueltigbis date, seiten integer, verkauft bigint DEFAULT 0, veraltet boolean DEFAULT false ); INSERT INTO klausuren (...
true
ad2e932a08e0fd6dc6fe5887ca490bde0d880f4c
SQL
journeyluuuu/job-search-system
/database/schema.sql
UTF-8
1,197
3.46875
3
[]
no_license
DROP TABLE IF EXISTS `Students`; CREATE TABLE Students ( UIN INTEGER PRIMARY KEY, studentName VARCHAR(50), Gender VARCHAR(10), Standing VARCHAR(30), Major VARCHAR(40), GPA DECIMAL(4,2) ); DROP TABLE IF EXISTS `Skills`; CREATE TABLE Skills ( skillName VARCHAR(100) PRIMARY KEY ); DROP TABLE IF EXISTS `Compan...
true
fa98821a22caf3a4899b276d824c49fbfb44bfb4
SQL
NCIP/catrip
/codebase/projects/deid/etc/sql/deid-create.sql
UTF-8
585
2.984375
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
/*L Copyright Duke Comprehensive Cancer Center Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/catrip/LICENSE.txt for details. L*/ DROP DATABASE IF EXISTS deid; CREATE DATABASE deid; USE deid; CREATE TABLE users (id INT NOT NULL AUTO_INCREMENT, userName VARCHAR(255), tableNa...
true
189d76e67c1188319e8d44d4cbdf7b9f7856996b
SQL
venki276/AccountsAPI
/AccountsAPI/src/main/resources/schema.sql
UTF-8
754
3.671875
4
[]
no_license
CREATE TABLE T_ACCOUNT_TYPE ( ID INTEGER IDENTITY PRIMARY KEY, AccountType VARCHAR(15) NOT NULL); CREATE TABLE T_ACCOUNTS ( ID INTEGER IDENTITY PRIMARY KEY, AccountNumber INTEGER NOT NULL, AccountName VARCHAR(80) NOT NULL, AccountTypeId INTEGER NOT NULL, AccountBalance DECIMAL(10,2) DEFAULT 0.00 NOT NULL, Cu...
true
c8818b453b9af3c1a3fef0900cdda3eb6a6f9cb5
SQL
Pamfb/fapp
/src/dao/sql/data.sql
UTF-8
732
3.40625
3
[]
no_license
create table payment_methods ( id int unique auto_increment primary key not null, description varchar(50) not null, timestamp_created timestamp default current_timestamp, timestamp_updated timestamp default current_timestamp on update current_timestamp ); create table customers ( id int unique auto...
true
f6a8b94e3a264120efa4ad80f7f4a4077833eaa5
SQL
schpidi2015/lifyo-live-map
/mysql_objects/$lt_pB_forest_thinner.sql
UTF-8
5,229
3.328125
3
[]
no_license
-- -------------------------------------------------------- -- Host: mariadb01.nitrado.net -- Server Version: 5.5.43-MariaDB-1ubuntu0.14.04.2 - (Ubuntu) -- Server Betriebssystem: debian-linux-gnu -- HeidiSQL Version: 8.3.0.4694 -- --------------------------------...
true
467fc00eb68aa0ebb58b17598e17cbc2ebb9f261
SQL
oubin17/springboot
/src/main/resources/sql/seckill/t_seckill_goods_inventory.sql
UTF-8
1,296
3.0625
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : local Source Server Type : MySQL Source Server Version : 50639 Source Host : localhost:3306 Source Schema : spring_boot Target Server Type : MySQL Target Server Version : 50639 File Encoding : 65001 Date: 27/10/2020 11...
true
fc854ef7dbd86298e4753332e33092bab3765aaf
SQL
VickyBanks/sounds_international
/world_service_data.sql
UTF-8
9,700
4.1875
4
[]
no_license
/* Get some top summaries for world service for top content and top brands 1. top epsidoes per country 2. top episodes total 3. top TLEOS per country 4. top TLEOs total 5. number of listeners to WS SI vs SO. 6. number of listeners to WS SI vs SO with coutnry 7. how many hours of live vs od content listened spl...
true
5a15b4d26da5b2b61b6bc42b976fff73ad0590e0
SQL
TierneyIrwin/Video-Game-Roster
/project3_tierney.sql
UTF-8
4,733
3.203125
3
[]
no_license
-- MySQL dump 10.15 Distrib 10.0.29-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: 107.170.128.144 Database: 107.170.128.144 -- ------------------------------------------------------ -- Server version 5.6.32 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESUL...
true
fadcd4e8b74d60c9cdf81832ee144936eae8b54f
SQL
kamax4997/api-postgresql
/doc/tables.sql
UTF-8
3,231
3.53125
4
[]
no_license
CREATE EXTENSION pg_stat_statements; -- heroku pg:index-usage -- heroku pg:outliers -- heroku pg:diagnose -- required for USER_MODE=team -- DROP TABLE orgs CASCADE; CREATE TABLE orgs( id TEXT NOT NULL PRIMARY KEY, -- public, short 10 char random text create_date TIMESTAMPTZ DEFAULT now(), created_by TEXT,...
true
d7d5b34480a8656e2a596f4d037e0496ca5dfcf5
SQL
SOLA-NIGERIA/database
/changeset/40-1405c_78.sql
UTF-8
3,454
3.59375
4
[]
no_license
alter table cadastre.level add column editable boolean not null default false; COMMENT ON COLUMN cadastre.level.editable IS 'It shows if the spatial units of this level are editable from the spatial unit editor.'; alter table cadastre.level_historic add column editable boolean not null default false; COMMENT ON...
true
69c16b017ab51ee20a2049077213026875f5e6ac
SQL
ibisTime/xn-forum
/docs/schema/schema_xnforum_menu.sql
UTF-8
1,641
2.71875
3
[]
no_license
CREATE TABLE `tforum_menu` ( `code` varchar(32) NOT NULL COMMENT '编号', `name` varchar(255) DEFAULT NULL COMMENT '名称', `pic` varchar(255) DEFAULT NULL COMMENT '图片', `order_no` int(11) DEFAULT NULL COMMENT '序号', `belong` varchar(32) DEFAULT NULL COMMENT '属于', `company_code` varchar(32) DEFAULT NULL COMMENT '地...
true
9314ec68ec3a681f7a49e34c6beede1c4e22aa5e
SQL
s-taylor/wdi-2
/04-databases/student.sql
UTF-8
580
3.34375
3
[]
no_license
CREATE TABLE students ( id SERIAL4 PRIMARY KEY, first VARCHAR(25) NOT NULL, last VARCHAR(25) NOT NULL, dob DATE, gpa FLOAT8, course_id INT4 --REFERENCES courses(id) ); CREATE TABLE courses ( id SERIAL4 PRIMARY KEY, name VARCHAR(50) UNIQUE NOT NULL, student_id INT4 --REFERENCES students(id) ); INSERT...
true
b1f99bb055f9e6c0d393d933310235acf55fde94
SQL
AlbertoMatuteB/DAW_A01704584
/Lab19/Lab19_A01704584.sql
UTF-8
2,783
3.9375
4
[]
no_license
SELECT SUM(E.Cantidad) as Cantidad, SUM(E.Cantidad * M.Costo) as Total FROM Entregan E, Materiales M WHERE M.Clave = E.Clave AND fecha BETWEEN '1997-01-01' and '1997-12-31' SELECT P.RazonSocial, COUNT(E.RFC) as 'Numero de Entregas', SUM(Cantidad * Costo) as 'Importe Total' FROM Proveedores P, Entregan E, Materiales M ...
true
1428085162d783e70e161161359446f0c2db2f6e
SQL
erlliam/calorie-tracker
/app/database/schema.sql
UTF-8
1,123
3.453125
3
[]
no_license
DROP TABLE IF EXISTS user; DROP TABLE IF EXISTS food; DROP TABLE IF EXISTS food_entry; CREATE TABLE user ( user_id INTEGER PRIMARY KEY, name TEXT NOT NULL UNIQUE, password TEXT NOT NULL ); CREATE TABLE food ( food_id INTEGER PRIMARY KEY, creator_id INTEGER DEFAULT 0, ...
true
3a35faa75969ba4f821d79f9f9eb6cc39e79b834
SQL
ashraf789/Practice_Techtunes.com
/techtune.sql
UTF-8
1,670
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.0.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 07, 2015 at 07:39 AM -- Server version: 5.1.36 -- PHP Version: 5.3.0 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER...
true