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
95ec4e776584942890aa8f40ba13d9ea2b86d6f9
SQL
maljian/weben
/sql/user.sql
UTF-8
1,361
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Erstellungszeit: 01. Dez 2015 um 09:59 -- 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
06d1ff3d3cb27fe7aa565f269ca73d5d63a7f8e2
SQL
willstep17/database-exercises
/quiz_creation.sql
UTF-8
811
4
4
[]
no_license
USE quiz; CREATE TABLE IF NOT EXISTS users ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, email VARCHAR(320), password VARCHAR(255) NOT NULL, PRIMARY KEY (id), CONSTRAINT uc_email UNIQUE (email) ); CREATE TABLE IF NOT EXISTS ads ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, title VARCHAR(100), ...
true
d2b366dbea5948486bc92698901606a55099ad8b
SQL
Kanchil/YunmusicAdmin
/Addons/Slider/install.sql
UTF-8
861
3.078125
3
[]
no_license
DROP TABLE IF EXISTS `jy_slider`; CREATE TABLE `jy_slider` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', `title` varchar(80) NOT NULL DEFAULT '' COMMENT '标题', `description` varchar(255) NOT NULL DEFAULT '' COMMENT '描述', `cover_id` int(10) NOT NULL COMMENT '图片ID', `img_url` varchar(255) NOT NUL...
true
1367e74fa4a37feb92bcb9ee79160f3d0ee936f7
SQL
Lucaserena/Progetto-finale
/databaselibreria.sql
UTF-8
95,126
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Creato il: Feb 10, 2017 alle 01:09 -- Versione del server: 10.1.16-MariaDB -- Versione PHP: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
39ee359687b5676b1c8a32912bb026f982616cb1
SQL
ayushjain1144/DATABASE_SYSTEMS
/LAB3_dbms/GROUP AND ORDER.sql
UTF-8
78
2.71875
3
[]
no_license
SELECT STOREID, SUM(PRICE) FROM ORDERS GROUP BY STOREID ORDER BY COUNT(*);
true
860dd7ce1309af4bdc4f773f2ad257b79ca45dd6
SQL
Bani57/jiramock
/skdinternandgraduate_mock_api/database/dummy_data_script.sql
UTF-8
14,539
2.65625
3
[]
no_license
delete from jiramock_db.issue; delete from jiramock_db.priority; delete from jiramock_db.status; delete from jiramock_db.user_project; delete from jiramock_db.user; delete from jiramock_db.project; INSERT INTO `jiramock_db`.`user` (`id`, `username`, `password`, `last_request_time`) VALUES (1, '...
true
0c91c8fd43da99c930cb244b59f182a0a89fe954
SQL
AbdulBariishere/TraccarDatabase
/3/2020)/traccar_tc_users.sql
UTF-8
3,311
2.65625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64) -- -- Host: localhost Database: traccar -- ------------------------------------------------------ -- Server version 8.0.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!...
true
4739974daa7654e506786d6fe8ba75b3420348b5
SQL
cc-leon/H5Tool
/H5GameDatabaseGeneratorScript.sql
UTF-8
17,341
3.640625
4
[]
no_license
/*This file contains the necessary script the generate the database that the H5Tool need to use for spell casters information. If you need to expand the program, don't forget to make use of this database --Yours truly, Berein*/ --enable foreign key support PRAGMA foreign_keys = ON; --create basic entities CREATE TABLE...
true
11ca762d08666ada9726391f734f2ca76b18f62c
SQL
kaparker/ds-wiki
/search-functionality-sql/search-over-time-windowfunction-lag.sql
UTF-8
1,043
3.921875
4
[]
no_license
select case when difference between '00:00:00' and '00:00:30' then '1 - 0-30s' when difference between '00:00:31' and '00:01:00' then '2- 30-1min' when difference between '00:01:01' and '00:02:00' then '3- 1-2min' when difference between '00:02:01' and '00:05:00' then '4- 2-5min' ...
true
0894b91d59c87002dbc6125f70bcd19319a65c54
SQL
bgarita/Osais
/Documentación/Factura electrónica/provincia.sql
UTF-8
1,131
2.859375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : local Source Server Version : 50714 Source Host : 127.0.0.1:3306 Source Database : pos Target Server Type : MYSQL Target Server Version : 50714 File Encoding : 65001 Date: 2018-04-07 10:16:47 */ SET FOREIGN_KEY_CHECKS=0; -- ---------...
true
a99534dc1a3dbf298cdc84a433796b3201be958c
SQL
AlexisGaldamez/utPLSQL
/old_tests/ut_test/ut_test.BeforeEachProcedureNameInvalid.sql
UTF-8
593
2.65625
3
[ "GPL-2.0-only", "Apache-2.0" ]
permissive
PROMPT Does not execute test and reports error when test beforeeach procedure name for a test is invalid --Arrange declare simple_test ut_test := ut_test( a_before_each_proc_name => 'invalid setup name' ,a_object_name => 'ut_example_tests' ,a_name => 'ut_exampletest' ); listener ut_event_listener :=...
true
e82a056f380680b08720a8c8554ad2d2ac247c26
SQL
juju120/s10project
/sample.sql
UTF-8
1,595
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 01, 2019 at 11:49 AM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
af844add7717168806ed1687698f0c2b6707b4e2
SQL
brcostaga/root
/cfg/sql/MODELO_FISICO firebird.sql
UTF-8
13,740
3.84375
4
[]
no_license
DROP PROCEDURE resumoMensal; DROP TRIGGER tb_movimentos_ai; DROP TRIGGER tb_categorias_ai; DROP TRIGGER tb_recursos_ai; DROP TRIGGER tb_contas_ai; DROP TABLE tb_movimentos; DROP TABLE tb_competencias; DROP TABLE tb_contas; DROP TABLE tb_categorias; DROP TABLE tb_recursos; DROP TABLE tb_descritiva; DROP SEQUENCE sq_cate...
true
8d85034480c153e9495e9eef8951feac7c798c16
SQL
Alexander-Pop/registration-module-using-PHP-and-MYSQL
/database/registration.sql
UTF-8
2,298
3.015625
3
[ "BSD-3-Clause" ]
permissive
-- MySQL dump 10.14 Distrib 5.5.50-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: registration -- ------------------------------------------------------ -- Server version 5.5.50-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTE...
true
e6cb5feb6010dd77cd71caf5f06a59f84c07d7dd
SQL
SofiaAkbar/week5_project_spending_tracker
/db/spending_tracker.sql
UTF-8
431
3.28125
3
[]
no_license
DROP TABLE IF EXISTS tags; DROP TABLE IF EXISTS merchants; DROP TABLE IF EXISTS transactions; CREATE TABLE merchants ( id SERIAL PRIMARY KEY, name VARCHAR(255) ); CREATE TABLE tags ( id SERIAL PRIMARY KEY, type VARCHAR(255) ); CREATE TABLE transactions ( id SERIAL PRIMARY KEY, amount FLOAT, ...
true
a924d72b9c078d8fb8458a4c4845883bab8b9a93
SQL
lugosoft/wedding
/db/Scripts.sql
UTF-8
5,553
3.25
3
[]
no_license
--karin espinoza --ana maria castañeda create table usuarios( id varchar(100) PRIMARY KEY, nombre varchar(100), email varchar(100), celular varchar(100), nro_invitados int(6), invitado varchar(10), fecha_invitacion TIMESTAMP, confirmo varchar(10), nro_confirmados int(6), fecha_confirmo TIMESTAMP, ...
true
bf59d4945cd99f8b80894fff5caef776dc271406
SQL
wajahata99/myrepo
/SQLScript/Bridge schmea DWH/V1_7/hierarchy_tree_view.sql
UTF-8
2,594
3.203125
3
[]
no_license
--Query v1_7 -- --Bridge schema querying -- --SET search_path to "starSchemaV1_7"; select * from dim_date; select * from dim_equipment; select * from dim_material; select * from dim_event; select * from dim_sensor; select * from material_class_bridge; select * from dim_operation_definition; select * from dim_operation...
true
4219bb40acc26b60d78a34ce2c7038b391de5ee5
SQL
ealevchenko/IDS-RailWay
/sql/Selects/WSD/Скрипт выборка ОПЕРАТИВНЫЙ ОСТАТОК НА АМКР.sql
WINDOWS-1251
19,973
2.90625
3
[]
no_license
/****** Script for SelectTopNRows command from SSMS ******/ use [KRR-PA-CNT-Railway] select count(id) FROM [IDS].[WagonInternalRoutes] where [close] is null SELECT wir.id ,wir.num ,arr_car.[id] as arrival_car_id ,arr_sost.[id] as arrival_sostav_id ,arr_doc_vag.[id] as arrival_uz_vagon_id ,arr_doc_uz...
true
6b03ac088e7ea264164e14f139cb2893d35a934a
SQL
dkdud8140/DBMS
/학사정보 프로젝트/ksuser(2021-05-04)-001.sql
UTF-8
990
3.015625
3
[]
no_license
-- 2021.05.04 -- kuser DROP TABLE tbl_student; CREATE TABLE tbl_student( st_code CHAR(5) PRIMARY KEY, st_name nVarCHAR2(20) NOT NULL, st_tel VarCHAR2(20) NOT NULL, st_addr nVarCHAR2(125), st_grade NUMBER NOT NULL, st_dcode CHAR(4) NOT NULL ); DROP TABLE ...
true
f2d4058060d65b0f9a0455049dc84073c8b7168d
SQL
quntragosso/10_13_akatsukiwo
/sqls/akatsuki_user_table.sql
UTF-8
1,953
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- ホスト: 127.0.0.1 -- 生成日時: 2020-07-30 15:16:20 -- サーバのバージョン: 10.4.11-MariaDB -- PHP のバージョン: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
35eb265ee212b9989062c82143f626e2a3e0063e
SQL
TYPO3-extensions/abcourses
/ext_tables.sql
UTF-8
11,153
3.515625
4
[]
no_license
# # Table structure for table 'tx_abcourses_course_categorie_mm' # ## WOP:[tables][1][fields][19][conf_relations_mm] # CREATE TABLE tx_abcourses_course_categorie_mm ( uid_local int(11) DEFAULT '0' NOT NULL, uid_foreign int(11) DEFAULT '0' NOT NULL, tablenames varchar(30) DEFAULT '' NOT NULL, sorting int(11) DEF...
true
02ee45638b788d3fb3aa79c32f16aafc849ab61f
SQL
taylorr7/uiSoftware
/thoughtshare.sql
UTF-8
10,130
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 14, 2016 at 08:53 PM -- Server version: 10.1.16-MariaDB -- PHP Version: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
14ddc3a4ddcc9067aa994a0a461afc7e1a3d8838
SQL
FerjoSantiago/Panaderia
/BD/ventas.sql
UTF-8
5,595
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 15-08-2020 a las 03:44:05 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
6c9ef0c5dfd2c0d2e7722a7c02ac07fb1f3e1e7e
SQL
lucasgauk/security-api
/src/main/resources/db/migration/V1.0__Initial_Tables.sql
UTF-8
820
3.390625
3
[]
no_license
create table file ( id int auto_increment primary key, path text default null, extension varchar(64) default null ); create table permission ( id int auto_increment primary key, read_allowed tinyint(1) default 0 null, write_allowed tinyint(1) default 0 null, user ...
true
53ea26485167212eb229839f0d6eb64e95c69381
SQL
mintuhouse/VideoAnalytics
/videoanalysis.sql
UTF-8
41,109
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 01, 2012 at 03:33 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
021629b18e4c8941da8633d524e806ceec6b7382
SQL
viscafuadiyatinnafsih/penjualan
/penjualan.sql
UTF-8
4,511
3.0625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 01 Jun 2020 pada 17.06 -- Versi Server: 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 */; /*!4...
true
7010aabf6aa8d6e848490c78173240fd74210c93
SQL
jerryhseo/OSP-7.1
/modules/OSPIcebreaker/OSPIcebreaker-service/src/main/resources/META-INF/sql/indexes.sql
UTF-8
2,358
2.609375
3
[]
no_license
create index IX_124829FA on icebreaker_Job (groupId, jobStatus); create index IX_BC51E110 on icebreaker_Job (groupId, runType[$COLUMN_LENGTH:75$]); create index IX_68857321 on icebreaker_Job (groupId, schedulerId); create index IX_D073211B on icebreaker_Job (groupId, simulationId); create index IX_A8C144CB on icebreake...
true
3feb4c8f12ebd479e1b87ecb262647bb51e6e47e
SQL
cornelioroyer/abaco-design
/v_formulario_43_dgi.sql
UTF-8
3,531
3.53125
4
[]
no_license
drop view v_formulario_43_dgi; create view v_formulario_43_dgi as select cxpfact1.compania, proveedores.tipo_de_persona, trim(proveedores.id_proveedor) as ruc, Trim(proveedores.dv_proveedor) as dv, trim(proveedores.nomb_proveedor) as nomb_proveedor, trim(cxpfact1.fact_proveedor) as fact_proveedor, cxpfact1.fecha_poste...
true
8e39a7b06fa587ae970638e4efde8f7bdf9825df
SQL
lepouletsuisse/Christophe-Samuel
/BDR/Labo 3/ex5.sql
UTF-8
351
3.703125
4
[]
no_license
USE sakila; SELECT DISTINCT film.film_id, film.title, language.name AS 'langue' FROM film JOIN language ON language.language_id = film.language_id JOIN film_actor ON film_actor.film_id = film.film_id JOIN actor ON actor.actor_id = film_actor.actor_id WHERE actor.first_name = 'alan' OR actor.first_name = 'b...
true
f2d4c11d0ab35c65c468f0aef97f3d76ec081c5b
SQL
sozgur/Exercises
/sql-ddl-design/air_traffic_op.sql
UTF-8
926
3.4375
3
[]
no_license
-- from the terminal run: -- psql < air_traffic.sql \c air_traffic CREATE TABLE tickets ( id SERIAL PRIMARY KEY, first_name TEXT NOT NULL, last_name TEXT NOT NULL, seat TEXT NOT NULL, departure TIMESTAMP NOT NULL, arrival TIMESTAMP NOT NULL, airline TEXT NOT NULL, from_city TEXT NOT NULL, from_count...
true
a1fbb647a54e4d3e095804470d63cd57b2565c8d
SQL
Abhiroopks/Database-Management-Course
/Week3/basicSelect4.sql
UTF-8
465
3.890625
4
[]
no_license
-- List the location number and name of locations that are part of the “Basketball arena”. -- Your WHERE clause should not have a condition involving the facility number compared to a constant (“F101”). -- Instead, you should use a condition on the FacName column for the value of “Basketball arena”. SELECT * FROM p...
true
396bcf746921d2f7ef499fdb6424baf8224035e4
SQL
TW-OOCL-Projects/OverWatcher-parkingSystem-backend
/src/main/resources/db/migration/V3__Create_ORDERS_Table.sql
UTF-8
1,101
2.765625
3
[]
no_license
CREATE TABLE `orders` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` BIGINT, `type` VARCHAR(20) NOT NULL, `status` VARCHAR(20) NOT NULL, `car_id` VARCHAR(20) NOT NULL, `created_date` TIMESTAMP DEFAULT NOW(), `parkinglot_id` BIGINT ); --...
true
7aeb6ca52a59b8fe32e8fe20927abecd8da98af7
SQL
bharatagarwal/launch-school
/180_database_foundations/02_schema-data-sql/06_single-table/10.sql
UTF-8
125
2.796875
3
[]
no_license
select item, (menu_price - ingredient_cost) as "profit" from menu_items order by (menu_price - ingredient_cost) desc limit 1;
true
af96e49ad7425519171936633fec07c659e1f00d
SQL
shridevi-G/opensrp-server
/drishti-reporting/src/main/resources/migrations/serviceProvided/V1_0_58__drug_info.sql
UTF-8
3,032
3.203125
3
[ "Apache-2.0" ]
permissive
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET search_path = report, pg_catalog; SET default_tablespace = ''; SET default_with_oids = fals...
true
5364b9ef365ebc68ff14236cc272aaf7d868b006
SQL
smlarg/household-account-mgmt
/db/structure.sql
UTF-8
10,356
3.234375
3
[]
no_license
SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row...
true
ffec749f6987be0b23ee0f37d2f891d76ad1d727
SQL
hindy66/MyDormitorySystem
/student-system.sql
UTF-8
4,836
3.078125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : bbb Source Server Type : MySQL Source Server Version : 50617 Source Host : localhost:3306 Source Schema : student-system Target Server Type : MySQL Target Server Version : 50617 File Encoding : 65001 Date: 16/05/2019 1...
true
4e8fff40c24e8e500b48427d8b100854ae94a4a8
SQL
andifila/android-monata
/ppb_projek(php)/testing.sql
UTF-8
1,658
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 21 Des 2018 pada 07.03 -- Versi server: 10.1.31-MariaDB -- Versi PHP: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
5a801abc18c5c08aa55e63abd2a8891696a9afa8
SQL
SKSteeve/Courses
/05.MySQL-DB/08.Data-Aggregation-Exercise/17.ThirdHighestSalary.sql
UTF-8
406
3.90625
4
[]
no_license
USE `soft_uni`; SELECT `department_id`, ( SELECT DISTINCT `e2`.`salary` FROM `employees` AS `e2` WHERE `e2`.`department_id` = `e1`.`department_id` ORDER BY `e2`.`salary` DESC LIMIT 2 , 1 ) AS `third_highest_salary` FROM `em...
true
90b0be708818fe8ea2729bd6db71af90720e1913
SQL
rumenrashev/SoftUni
/Java_DB/MySQL/Exam_Preparation/Database Basics MySQL Retake Exam - 31 March 2020/Task_08_Count_Likes_and_comments.sql
UTF-8
440
4.5625
5
[]
no_license
SELECT `p`.`id` AS `photo_id`, COUNT(DISTINCT `l`.`id`) AS `likes_count`, COUNT(DISTINCT `c`.`id`) AS `comments_count` FROM `photos` AS `p` LEFT JOIN `likes` AS `l` ON `p`.`id` = `l`.`photo_id` LEFT JOIN `comments` AS `c` ON `p`.`id` ...
true
66997856ff7f3abd9069750362b1f6a28cf5b432
SQL
annabechang/LeetCode_MySQL
/175_Combine_Two_Tables.sql
UTF-8
1,153
3.71875
4
[]
no_license
""" 175. Combine Two Tables Easy 642 93 Favorite Share SQL Schema Table: Person +-------------+---------+ | Column Name | Type | +-------------+---------+ | PersonId | int | | FirstName | varchar | | LastName | varchar | +-------------+---------+ PersonId is the primary key column for this table. Ta...
true
295f07e192cafc527b31e94ffda744c2cb11f201
SQL
A-CPUyi/DataManagementProject
/Queries/query6.sql
UTF-8
609
3.78125
4
[]
no_license
select foodRate.u_id from (select review.user_id u_id, avg(review.stars) foodAvg from food, review, business_location where food.id = review.business_id and business_location.postal_code = 89109 and business_location.id = food.id group by review.user_id) as foodRate, (select review.user_id u_id, avg(review.stars) shopA...
true
a2cdf0da8dfd9d73476bea789d40a7104f67df1a
SQL
VijayMVC/JsMain
/web/sql_builds/trac144.sql
UTF-8
3,523
2.6875
3
[]
no_license
use sugarcrm; CREATE TABLE `SUGAR_DIALER_DISPOSITION_MAPPING` ( `DIALER_DISP` varchar(100) NOT NULL, `SUGAR_STATUS` varchar(100) NOT NULL, `STATUS_VALUE` tinyint(4) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; INSERT INTO `SUGAR_DIALER_DISPOSITION_MAPPING` VALUES ('Already Married', 'Engaged / Married', 18)...
true
cfafb532740f7ca2119a2a62a3d5036608e8c05b
SQL
bulentgucuk/DBA-Scripts
/PKtoFK.sql
UTF-8
694
4.3125
4
[]
no_license
SELECT 'PK_Table_Schema'=ccu.table_schema, 'PK_Table_Name'=ccu.table_name, 'PK_Column_Name'=ccu.column_name, 'PK_Constraint_Name'=ccu.constraint_name, 'FK_Table_Schema'=ccu1.table_schema, 'FK_Table_Name'=ccu1.table_name, 'FK_Column_Name'=ccu1.column_name, 'FK_Constraint_Name'=rc.constraint_name FROM infor...
true
e18e2b9539aba1a3d2cb271820b928b634b019f0
SQL
ChiLap1110/DBIS
/Aufgabenteil1/select_statements/select_3.sql
UTF-8
156
3.109375
3
[]
no_license
select count(b.statusflag) AS AnzahlBelegung from Belegung b, Kunde k where k.kundennummer=&p AND b.statusflag='gebucht' AND b.Kundennummer= k.Kundennummer;
true
390ab718b064add059775644aefe23df3e63a638
SQL
bolas444/ventas
/demo/src/scrips/install.sql
UTF-8
858
3.578125
4
[]
no_license
drop table if exists usuario; create table usuario( id integer primary key, correo varchar(64) not null unique, nombres varchar(64) not null, apellidos varchar(64) not null, pass varchar(64) not null, status bool default true ); drop sequence if exists sec_usuar...
true
d078a664e919066d51b14f70d5df79e51a2ae1b2
SQL
JacketPL/vue_ElementUI
/t_category.sql
UTF-8
856
2.765625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : number1 Source Server Version : 50527 Source Host : localhost:3306 Source Database : vue_2019-10-26 Target Server Type : MYSQL Target Server Version : 50527 File Encoding : 65001 Date: 2019-11-05 20:26:44 */ SET FOREIGN...
true
58ffe37b1002dd592234b675bbaf115b1228206e
SQL
killbill/killbill-analytics-plugin
/src/main/resources/reports/active_by_product_term_monthly/report_active_by_product_term_monthly.ddl
UTF-8
928
3.625
4
[ "Apache-2.0" ]
permissive
create table report_active_by_product_term_monthly as select * from v_report_active_by_product_term_monthly limit 0; drop procedure if exists refresh_report_active_by_product_term_monthly; DELIMITER // CREATE PROCEDURE refresh_report_active_by_product_term_monthly() BEGIN DECLARE EXIT HANDLER FOR SQLEXCEPTION ROLLBAC...
true
b4cb3b8f9112b4a69965a62a85fa130b8ccfb263
SQL
FlashChenZhi/ykk_sz_gm
/database/sql/stockout_release_setting.prc
GB18030
2,821
3.21875
3
[]
no_license
DROP PROCEDURE STOCKOUT_RELEASE_SETTING; CREATE OR REPLACE PROCEDURE stockout_release_setting ( in_schedule_no IN fngset.schno%TYPE, io_return_code IN OUT NUMBER, io_return_message IN OUT VARCHAR2 ) IS wk_fngset_row fngset%ROWTYPE; wk_count NUMBER; BEGIN io_return_code :=...
true
65ce47036a74b1b93bbbabc08d6ed27115a60640
SQL
yookeun/spring-security-example
/create_query.sql
UTF-8
427
2.765625
3
[]
no_license
CREATE DATABASE TEST_DB; use TEST_DB; CREATE TABLE test_user ( id INT NOT NULL AUTO_INCREMENT, username VARCHAR(45) NOT NULL, password VARCHAR(70) NOT NULL, isadmin CHAR(1) NOT NULL DEFAULT 'N', PRIMARY KEY(id), UNIQUE KEY(username) ); INSERT INTO test_user (username, password, isadmin) VALUES('admin',...
true
04e9bad58d2cdd85fb1d0c7170291eb217a932a1
SQL
ToborTheGreat/Repository01
/dw_voice.sam_voice_bts_band_class_fa_id_params_dim.sql
UTF-8
2,413
2.9375
3
[]
no_license
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = off; SET check_function_bodies = false; SET client_min_messages = warning; SET escape_string_warning = off; SET search_path = dw_voice, pg_catalog; DROP INDEX dw_voice.sam_voice_bts_band_class...
true
751e4032ec9895d19a2aea0c7ee1df220854cfe8
SQL
gxlioper/ecology
/data/Oracle/sql201507271001.sql
GB18030
13,091
2.5625
3
[]
no_license
delete from HtmlNoteIndex where id=3671 / delete from HtmlNoteInfo where indexid=3671 / INSERT INTO HtmlNoteIndex values(3671,'ЧڻڳΧǷ') / INSERT INTO HtmlNoteInfo VALUES(3671,'ЧڻڳΧǷ',7) / INSERT INTO HtmlNoteInfo VALUES(3671,'Invalid date or the date out of range,redo or not?',8) / INSERT INTO HtmlNoteInfo VALUES(3...
true
0dc3fdd43e80010a991612da7ba1cad900e4e0af
SQL
GlauberGuedes/Atividades-Cubos-Academy
/Back-end/Modulo 3/back-funcoes-postgresql/classe-01/query.sql
UTF-8
1,526
3.9375
4
[]
no_license
--1) SELECT count(medicamento) AS "quantidade de medicamento" FROM farmacia; --2) SELECT MIN(idade) as idade FROM usuarios; --3) SELECT MAX(idade) as idade FROM usuarios; --4) SELECT ROUND(AVG(idade), 3) FROM usuarios WHERE idade >= 18; --5) SELECT SUM(estoque) FROM farmacia WHERE categoria = 'blue' OR categoria = 'bla...
true
25d2d2a35b9a7d1eaa475bd1bae5790aefc8c4ff
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/01825_type_json_mutations.sql
UTF-8
847
2.796875
3
[ "BSL-1.0", "Apache-2.0" ]
permissive
-- Tags: no-fasttest DROP TABLE IF EXISTS t_json_mutations; SET allow_experimental_object_type = 1; SET output_format_json_named_tuples_as_objects = 1; SET mutations_sync = 2; CREATE TABLE t_json_mutations(id UInt32, s String, obj JSON) ENGINE = MergeTree ORDER BY id; INSERT INTO t_json_mutations VALUES (1, 'q', '{...
true
e9121c9382f095725ff1a3a8e8f64b4a19608608
SQL
ucancallmealicia/archivesspace-sql
/access_restrictions.sql
UTF-8
1,107
3.96875
4
[]
no_license
select CONCAT('/repositories/', ao.repo_id, '/archival_objects/', ao.id) as uri , REPLACE(ao.title, '"', "'") as title , rr.begin , rr.end , REPLACE(note.notes, '"', "'") as note_text , npi.persistent_id from rights_restriction rr JOIN archival_object ao on rr.archival_object_id = ao.id JOIN note on note.archival_...
true
d99fd6cfc4c1a2edeb2fbe3ec1766d415f693773
SQL
Sweth12/BU-MET-CS-669---Database-design-and-implementation-for-selling-on-Amazon
/aspect.sql
UTF-8
4,346
3.390625
3
[]
no_license
-- ASPECT 1: -- Stored procedure invocations: BEGIN add_products_new(1000,'self-driving video camera','Electronics','automatically follows subject being recorded',28,1,100,'canon',100,'new'); END; / BEGIN add_products_new(1001,'holographic keyboard','Computers','3d keyboard that recognizes virtual key presse...
true
285cf69a57dcd99c99fd37b329d5ef92ff5b7068
SQL
CsTseng0425/TIPO_PROC
/procedure/RESET_INFO_APPLS.sql
BIG5
4,230
3.1875
3
[]
no_license
-------------------------------------------------------- -- DDL for Procedure RESET_INFO_APPLS -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "S193"."RESET_INFO_APPLS" (p_pre_date in varchar2, p_out_msg ...
true
f7610d4dbf9a03e92ca1c4ca006cb2827ab307cc
SQL
endeavourhealth-discovery/InformationModel
/database/MissingCovidConceptsAndMapsPatch.sql
UTF-8
6,550
3.1875
3
[ "Apache-2.0" ]
permissive
SELECT @is_a := dbid, id, name FROM concept c WHERE id = 'SN_116680003'; SELECT @equiv := dbid, id, name FROM concept c WHERE id = 'is_equivalent_to'; -- SNOMED COVID CONCEPTS DROP TABLE IF EXISTS snomed_covid; CREATE TABLE snomed_covid ( snomed VARCHAR(40), ...
true
4fc7cc70f1e682b2dba9adff557d5e869b36c91a
SQL
benjamw/fun_o_rama
/Config/Schema/migrations/20140401054201_global_stats.sql
UTF-8
773
3.109375
3
[]
no_license
ALTER TABLE `player_stats` ADD `global_wins` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `streak`, ADD `global_draws` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `global_wins`, ADD `global_losses` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `global_draws`, ADD `max_streak` SMALLINT(6) NOT NULL DEFAULT '0' AFTER `global_losses`...
true
9a57af6f3d861e9d1dfa244cce60fc4f7a743e43
SQL
michaelcw02/Sistema-Ferreteria
/Capa Datos/FerreteriaDatos.sql
UTF-8
4,997
3.59375
4
[ "Apache-2.0" ]
permissive
-- MySQL Script generated by MySQL Workbench -- 11/02/16 10:42:30 -- 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='TRADITION...
true
b1febc51143e94fbd08d940b03cd33e42bcba8fa
SQL
fstanchese/corporativo
/corporativo/sql/Horario/Horario_qDedicacao.sql
UTF-8
160
2.546875
3
[]
no_license
select Horario.*, Horario_gsRecognize(Horario.Id) as Recognize from Horario where Horario.HorarioTi_Id = 12800000000003 order by Semana_Id,HoraInicio
true
f232086418dead4b572a2ea9ffc91e802a458fd8
SQL
riabow/ajax
/dump.sql
UTF-8
2,267
3.65625
4
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!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...
true
e5207cca14bc57e0007bd4ed2af7acac4604243d
SQL
tiggerbaby/shopping-cart
/shopping_cart.sql
UTF-8
7,651
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 03, 2016 at 04:21 am -- Server version: 5.6.20 -- PHP Version: 5.5.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
c8759e2253381540d894611ccecfd822087c84f8
SQL
Woody1123/bookstore
/bookstore.sql
UTF-8
2,553
3.953125
4
[ "MIT" ]
permissive
CREATE DATABASE bookstore; USE bookstore; /*用户表*/ CREATE TABLE tb_user( uid CHAR(32) PRIMARY KEY,/*主键*/ username VARCHAR(50) NOT NULL,/*用户名*/ `password` VARCHAR(50) NOT NULL,/*密码*/ email VARCHAR(50) NOT NULL,/*邮箱*/ `code` CHAR(64) NOT NULL,/*激活码*/ state BOOLEAN/*用户状态,有两种是否激活*/ ); SELECT * FROM tb_u...
true
eb46ab4dffd7d2bda82635423706cecf21b42270
SQL
rkohad/retail
/sql/mysql_create_tables_ddl.sql
UTF-8
879
3.625
4
[]
no_license
/* AWS RDS has sys database instead of 'master' */ use sys; /* Create a fresh copy of database */ DROP DATABASE retail; CREATE DATABASE retail; use retail; CREATE TABLE Customers ( id int NOT NULL AUTO_INCREMENT, FirstName varchar(255), LastName varchar(255), Address varchar(255), Phone varchar(32), ...
true
b97d9d41a3ac3a1c06e78ed44f2e4f673e0b37ee
SQL
Gomerinho/YdaysQuizzApp
/assets/db/quizzapp.sql
UTF-8
9,210
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : mer. 09 déc. 2020 à 10:58 -- Version du serveur : 10.4.16-MariaDB -- Version de PHP : 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_S...
true
b22c9570321f4ab40eb86ffcc3e84efaa19991ab
SQL
imamfahr/express-sequelize
/query.sql
UTF-8
895
3.90625
4
[]
no_license
CREATE database school; use school; CREATE TABLE users( id INT auto_increment primary key, name varchar(45), email varchar(45), birth_date date, exschool_id int, FOREIGN KEY (exschool_id) REFERENCES exschool(id) ); CREATE TABLE exschool( id INT auto_increment primary key, name varchar(45)); ...
true
0b519bbbbf8c9d77b3f3cb124e875e01458e972b
SQL
singhofen/sql-practice
/sql-bikestore-DB-Demo - Copy.sql
UTF-8
732
3.1875
3
[ "MIT" ]
permissive
sql sample demo bikestore DB CREATE TABLE bikestore (id INTEGER PRIMARY KEY, name TEXT, items TEXT, color TEXT, numbr INTEGER, price INTEGER); INSERT INTO bikestore (name, items, numbr, color,price) VALUES ("huffy","bikes", 23, "red","190"); INSERT INTO bikestore (name,items,color, numbr,price) VALUES ("mongo...
true
1ef1af436445ad20e57af4dd1ff5ddb1b2866857
SQL
Lexasama/Roomies2.0
/Roomies2.0/src/Roomies2.DB/Scripts/3.StoredProcedures/2.RoomiesProcedures/1.Install-sRoomieDelete.sql
UTF-8
352
2.921875
3
[]
no_license
CREATE PROC rm2.sRoomieDelete ( @RoomieId INT ) AS BEGIN SET TRANSACTION ISOLATION LEVEL SERIALIZABLE; BEGIN TRAN; IF NOT EXISTS(SELECT * FROM rm2.tRoomie r WHERE r.RoomieId = @RoomieId) BEGIN ROLLBACK; RETURN 1; END; --intemediates tables with roomie DELETE FROM rm2.tRoomie WHERE RoomieId = @Roomi...
true
82c64e49f0c75987819658fb1f0a2415ea7e39ab
SQL
MeghabBaral/SQl_Details
/Sql_Important code/SQL-07162020.sql
UTF-8
4,655
4.1875
4
[]
no_license
use classicmodels; SELECT customerName, phone,country, city , creditLimit FROM classicmodels.customers where country='USA' limit 100; SELECT customerName, phone,country, city , creditLimit FROM classicmodels.customers where country='USA' and creditLimit > 100000 limit 100; SELECT customerName, phone,country, city , ...
true
4e98ae8ef588ae3fb85ac8ad7f794b7c3bd7a719
SQL
apuravchugh/apuravchugh.com
/db/my_portfolio.sql
UTF-8
2,015
3.46875
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; CREATE TABLE `tbl_category` ( `category_id` int(10) NOT NULL, `category_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; INSERT INTO `tbl_categor...
true
25b813a7b8fc5f3456a1023954e0826e23c46457
SQL
Gustibimo/backend
/dao/src/main/resources/life/catalogue/db/datasets.sql
UTF-8
37,265
3.03125
3
[ "Apache-2.0" ]
permissive
-------------------------- -- COL GSD DATASETS -- dumped from assembly_global into colplus-repo -- commented out ids are ignored from ACEF dumps because we have a superior coldp archive already -------------------------- -- origin: EXTERNAL, MANAGED, RELEASED -- type: NOMENCLATURAL, TAXONOMIC, ARTICLE, PERSONAL...
true
64ec372df3c2b441321106864f8da929c4829baf
SQL
vailv/INFO6210-DatabaseDesign
/lecture/week06/W6-12CTE Exercise 2 Solution.sql
UTF-8
1,139
3.796875
4
[]
no_license
USE Northwind; /* CTE Exercise 2 Retrieve the same results as CTE Exericse 1 using two CTEs: 1. One CTE is the SELECT statement below. 2. Second CTE is the CTE used in CTE Exercise 1 (choose one of them in the solution). 3. Join the CTEs in a SELECT statement and return the same information as ...
true
bdae9c28ffe8c36f587704835ec2434d2df926ac
SQL
liangchengzhi/relocation
/db/20161113/relocation.sql
UTF-8
275,607
3.40625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : relocation Source Server Version : 50133 Source Host : localhost:3306 Source Database : relocation Target Server Type : MYSQL Target Server Version : 50133 File Encoding : 65001 Date: 2016-11-13 21:55:29 */ SET FOREIGN_KEY_CHECKS=0; ...
true
25a6de580c9b5086836e6d8025806e5ddb91ea15
SQL
MCMLXXX/WorldQ
/Queries/Create_view/Using_view1.sql
UTF-8
263
2.53125
3
[ "MIT" ]
permissive
-- ------------------------------------------------------------------ -- -- This query is demonstrating SELECT statement SELECT Name, Address FROM Address WHERE NAME = 'kabul'; -- -------------------------------------------------------------------
true
84802bf5451c3a8c6f9557e31884bda7bbf35359
SQL
csantamariaosses/Consultas
/bin/cl/csantam/consultas/Consulta-B.sql
UTF-8
182
2.65625
3
[]
no_license
select customer_id, last_name, first_name, phone, email, street, city, state, zip_code from customers where email like '%yahoo%' and phone is null order by last_name, first_name ;
true
0b419f975851fb4a4a91ebd1023873a6c6f4b515
SQL
abhilashasancheti/CMSC-828D
/assignment1/problem6.sql
UTF-8
2,532
4.375
4
[]
no_license
/* 6.1 */ ALTER TABLE flights ADD PRIMARY KEY (fid); ALTER TABLE carriers ADD PRIMARY KEY (cid); ALTER TABLE months ADD PRIMARY KEY (mid); ALTER TABLE weekdays ADD PRIMARY KEY (did); /* 6.2 */ ALTER TABLE flights ADD FOREIGN KEY (carrier_id) REFERENCES carriers(cid); ALTER TABLE flights ADD FOREIGN KEY (month_id...
true
a7c04fd1f93e97e4684c0a402e7904322cac4135
SQL
NicoHub98/ADAW_ConsultorioMedico
/scriptSQL.sql
UTF-8
1,215
2.71875
3
[]
no_license
create database AO2_medicos; use AO2_medicos; CREATE TABLE `medico` ( `id` int NOT NULL AUTO_INCREMENT, `nombre` varchar(45) NOT NULL, `apellido` varchar(45) NOT NULL, `especialidad` varchar(45) NOT NULL, `dAtencion` varchar(45) NOT NULL, `horario` varchar(45) NOT NULL, `imagen` longblob, PRIMARY KEY (...
true
f0ada5ed9af8466a1a571655e259eb90d8b74e8d
SQL
Intern-Media-Prima/Harian-Metro-Scrap
/schema.sql
UTF-8
624
3.421875
3
[]
no_license
DROP SCHEMA IF EXISTS hmetro; CREATE SCHEMA hmetro; USE hmetro; DROP TABLE IF EXISTS category; CREATE TABLE category ( ID INT PRIMARY KEY NOT NULL AUTO_INCREMENT, value VARCHAR(255) NOT NULL ); INSERT INTO category (value) VALUES ( 'utama' ),( 'mutakhir' ),( 'global' ),( 'arena' ),( 'rap' ),( 'bisnes' ),( ...
true
324b9f3aa86f18c895085dbebb84dbce313f30f6
SQL
ibrahimhuycn/Abbott
/InitialDataPrep_Query.sql
UTF-8
1,273
3.15625
3
[]
no_license
 insert into dbo.InitialDataPrep([MachineParameter],[LabTest],[RequestingSite],[SampleId],[PatientId],[Priority],[SampleType],[TestCode],[AssayName],[TubeExt],[IsCentrifuged],[AssayCode],[InstrumentType]) select distinct(m.MachineParameter),m.LabTest, h.ServiceLocation,h.Barcode,h.Patients_id+10 AS Patient_Id,h.[Prior...
true
388ef42764b775f1f0b46ba63e1a7bd77b2aea38
SQL
ChengangSun/ECE-356-Project
/createTable.sql
UTF-8
3,282
4.4375
4
[]
no_license
DROP DATABASE IF EXISTS `social_network`; CREATE DATABASE IF NOT EXISTS `social_network`; USE social_network; DROP TABLE IF EXISTS Users; CREATE TABLE Users ( userID INT NOT NULL AUTO_INCREMENT, alias VARCHAR (50) UNIQUE, email VARCHAR (50), gender VARCHAR (50), password VARCHAR (50), birthDat...
true
6d566eba903e2437df261bd7cf9d57b31329523d
SQL
bastien-luck/ProjetWeb
/projet_web.sql
UTF-8
11,196
3.34375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : ven. 09 nov. 2018 à 08:15 -- Version du serveur : 5.7.21 -- Version de PHP : 5.6.35 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
true
1739ed83e12a20da9f381072c0c0965e20776632
SQL
kresno/aplikasi_dokumen
/db_ranwal.sql
UTF-8
21,334
3.09375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
/* SQLyog Enterprise v12.4.3 (64 bit) MySQL - 10.1.24-MariaDB : Database - simencrang2018_db ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_...
true
29a16a37255436e3f217c0c983e35956f703f18b
SQL
njarkih/otus-mssql
/3/2.sql
UTF-8
200
2.609375
3
[]
no_license
-- 2. удалите 1 запись из Customers, которая была вами добавлена DELETE TOP (1) FROM Sales.Customers OUTPUT deleted.* WHERE CustomerName LIKE 'MyIns %' ;
true
f2ed585796ac8362ea05646562a71af8b03395fe
SQL
Josip-github/kolokvij_vjezba_11
/kolokvij_11.sql
UTF-8
4,064
3.328125
3
[]
no_license
drop database if exists kolokvij_vjezba_11; create database kolokvij_vjezba_11; use kolokvij_vjezba_11; create table djevojka( sifra int not null primary key auto_increment, kratkamajica varchar(45) not null, prstena int, ekstrovertno bit not null, majica varchar(42) not null, introvertno bit not null, svekrva ...
true
1554404a885ca7a8a3a186b25e89779c8bbaf385
SQL
robsonmrsp/react-netflics
/src/test/resources/init-data-Role.sql
UTF-8
1,392
3.0625
3
[]
no_license
ALTER SEQUENCE hibernate_sequence RESTART WITH 10001; TRUNCATE TABLE tenant CASCADE; TRUNCATE TABLE app_user CASCADE; TRUNCATE TABLE role CASCADE; TRUNCATE TABLE user_role CASCADE; INSERT INTO tenant (id, cnpj, corporate_name, phone_number, logo, name) values (101,'','JSetup Developer', '997608620','','JSetup ...
true
0f73c41cf00a79d50ab0b1890fed8e5a97d1fa52
SQL
mattsalo81/adaptive_infrastructure
/SQL_configs/scribes.sql
UTF-8
4,339
2.59375
3
[]
no_license
create table scribes( technology varchar(32), coordref varchar(32), test_mod varchar(32), mod_rev varchar(32), orientation varchar (7) check (orientation in ('LEFT','DOWN','UP','RIGHT','UNKNOWN')), pad1_x number (10,6), ...
true
2bb889d93ef14cf3c8eca4604244f310ecf65242
SQL
serfc89/DataWarehouses_forBI
/BMs_essentials/Scripts/ex1.sql
UTF-8
15,359
3.234375
3
[]
no_license
/*Create Customer table */ DROP TABLE IF EXISTS EVENTPLANLINE; DROP TABLE IF EXISTS EVENTPLAN; DROP TABLE IF EXISTS EVENTREQUEST; DROP TABLE IF EXISTS CUSTOMER; CREATE TABLE CUSTOMER( CustNo VARCHAR(8) NOT NULL, CustName VARCHAR(30) NOT NULL, Address VARCHAR(50) NOT NULL, Internal CHAR(1) NOT NULL, Contact VARCHAR(3...
true
caa05f3c2220a5c89cd530f8702381f5367ca86b
SQL
duawoWkd/Biz_403_06_Oracle
/tbl_student.sql
UTF-8
3,606
3.234375
3
[]
no_license
-------------------------------------------------------- -- 파일이 생성됨 - 월요일-6월-24-2019 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Table TBL_STUDENT -------------------------------------------------------- DROP TABLE "USER4TS"."TBL_STUD...
true
77a8feadb66b5ef614651b540b36c10c551f4cbc
SQL
diogocapela/isep-bddad
/report03/Exercício 06.sql
ISO-8859-1
2,485
3.640625
4
[ "MIT" ]
permissive
---atualize o valor do tipo de cliente, para todos os clientes, de acordo com o volume de negcio que efetuaram --O perodo de volume de negcios a ser considerado o dos 12 meses anteriores. No entanto, s os clientes que foram atualizados --h mais de 12 meses que podem ser atualizados. CREATE OR REPLACE PROCEDURE pr...
true
8e9c49f50a5dfa6e1176858f15bef5d08d0ef5a0
SQL
LINCHENMUM/Commonly-used-SQL
/正在请求的SQL语句.sql
UTF-8
1,091
3.6875
4
[]
no_license
SELECT [Spid] = session_Id , ecid , [Database] = DB_NAME(sp.dbid) , [User] = nt_username , [Status] = er.status , [Wait] = wait_type , [Individual Query] = SUBSTRING(qt.text, er.statement_start_offset / 2, ( CASE WHEN er.statement_e...
true
e2d8376ecea884a00c03668562d73578ac33166b
SQL
nayakapitra/PraktikumWeb-clusterA1
/Minggu-3/MySQLi/Tugas/data.sql
UTF-8
1,922
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 21 Nov 2020 pada 17.26 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
true
1e41303af4048cded0b3323b5fb45c22ed6f8fd4
SQL
thomasklemm/database-schema-examples
/mysql/openclassifieds/schema.sql
UTF-8
19,464
3.15625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.62, for debian-linux-gnu (x86_64) -- -- Host: db816448999.hosting-data.io Database: db816448999 -- ------------------------------------------------------ -- Server version 5.5.60-0+deb7u1-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACT...
true
6aae46dc32b9d97340b88434759f5aeb0e75e335
SQL
EmilAndersson1/Food4Thought
/seed.sql
UTF-8
535
2.84375
3
[]
no_license
/*SQL kod med insert satser till databasen*/ /*user inserts*/ insert into user(email, firstname, lastname, user_password, username, biography) values (samuel_ahlberg@hotmail.com, Samuel, Ahlberg, 123, samuelahlberg, cool kille); /*recipe inserts*/ insert into recipe(recipe_ID, headline, preamble, instructions, p...
true
df7e5ae896513f6c776bd985a1717cdbb7031197
SQL
buj65/leetcode
/src/code/sql/Q196.sql
UTF-8
389
2.859375
3
[]
no_license
/* [Err] 1093 - You can't specify target table 'Person' for update in FROM clause 同一张表,不能把select出来的结果直接作为DML语句的条件,应该再select一遍把结果作为中间表使用 */ DELETE FROM Person WHERE id NOT IN ( SELECT p.id FROM ( SELECT MIN(Id) AS id FROM Person GROUP BY Email ) p );
true
058bbf780ed4d753aaf668313d11e3a440bf2c4a
SQL
LuisfeGonz/BANQUETZAL---FASE-3
/CODIGO/Scripts BD/DDL - v1.sql
UTF-8
9,330
3.078125
3
[]
no_license
Create DataBase BANQUETZAL; USE BANQUETZAL; CREATE TABLE Agencia ( IdAgencia INTEGER NOT NULL , Nombre VARCHAR (50) NOT NULL , Direccion VARCHAR (50) NOT NULL , Fondos NUMERIC (7,2) NOT NULL ) ; ALTER TABLE Agencia ADD CONSTRAINT Agencia_PK PRIMARY KEY ( IdAgencia ) ; ALTER TABLE Agencia ...
true
4e305dd5ec05ae36a97f3d6fd410db3fde5fc5f8
SQL
Records2020/GWU_Personal_Repo
/07-SQL/Classwork/1/Activities/07-Stu_Customer_Demographics/Solved/query.sql
UTF-8
611
3.78125
4
[]
no_license
-- Query and return all data from customer table SELECT * FROM customer; -- Query and return all female customers SELECT * FROM customer WHERE gender = 'Female'; -- Query and return all male customers from New Jersey select * from customer where gender = 'Male' AND state = 'NJ'; -- Query and return all male custom...
true
85de1095c0b2236a535db42f9dd2c50a8b881974
SQL
AmandaMcClintock/DegreePlanner
/create-tables.sql
UTF-8
1,510
3.734375
4
[ "Apache-2.0" ]
permissive
CREATE DATABASE degree_planner; USE degree_planner; CREATE TABLE COURSE ( cNo VARCHAR(10) NOT NULL, cName VARCHAR(50) NOT NULL, credit INT NOT NULL, offer INT NOT NULL, CONSTRAINT coursePK PRIMARY KEY (cNo) ); CREATE TABLE DEGREE ( name VARCHAR(40) NOT NULL, CONSTRAINT degreePK PRIMARY KE...
true
18f04b405d0f0936dfc1a699989fdc8bcfdb0b01
SQL
scbarber/bad-poetry
/trunk/vendor/rails/activerecord/test/fixtures/db_definitions/frontbase.sql
UTF-8
5,690
3.6875
4
[ "MIT" ]
permissive
CREATE TABLE accounts ( id integer DEFAULT unique, firm_id integer, credit_limit integer, PRIMARY KEY (id) ); SET UNIQUE FOR accounts(id); CREATE TABLE funny_jokes ( id integer DEFAULT unique, firm_id integer default NULL, name character varying(50), PRIMARY KEY (id) ); SET UNIQUE FOR funny_jok...
true
1c6fd3a4bb68896d2f32097977a100b95e44bbe2
SQL
CodyHenrichsen-CTEC/Study_Resources
/Database/demo code/DateInterval/Oracle INTERVAL data type.sql
UTF-8
1,655
3.921875
4
[]
no_license
-- Using the INTERVAL data types in Oracle -- Intervals can interact with dates -- Lets take too much effort to add time! SELECT EXTRACT (MONTH FROM TO_YMINTERVAL('3-05')) AS month_info, ADD_MONTHS(SYSDATE, EXTRACT (MONTH FROM TO_YMINTERVAL('3-05'))) AS date_interval_manip FROM dual; -- Better use of comb...
true
ae40cc7ea4665e50aa6ff1c69ef177fc19531301
SQL
christinasam/hackerrank-challenge-solutions
/SQL/basic-join/contest-leaderboard.sql
UTF-8
987
4.65625
5
[]
no_license
/* You did such a great job helping Julia with her last coding contest challenge that she wants you to work on this one, too! The total score of a hacker is the sum of their maximum scores for all of the challenges. Write a query to print the hacker_id, name, and total score of the hackers ordered by the descending...
true