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
9de4c29eda9a9c1d0ddc0b4e812bca11fdf1538e
SQL
ricardojavister/javascript
/sandboxdb/sql.sql
UTF-8
1,743
3
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.6.20-log - MySQL Community Server (GPL) -- Server OS: Win32 -- HeidiSQL Version: 10.2.0.5599 -- -------------------------------------------------------...
true
6fcff23a6e4c7c4690b0cb61cdb12ce4621bb4ce
SQL
stevezheng/YiDanke
/sql/task_jd.sql
UTF-8
2,954
2.84375
3
[]
no_license
create table if not exists `yi_task_jd` ( `id` int(11) unsigned not null auto_increment, `jdTaskId` int(11) not null comment '所属任务id', `jdImage` varchar(512) not null default '' comment '京东商品图片', `jdKeywordsCount` int(1) not null default '1' comment '关键词数量', `jdKey1` varchar(32) not null default '' ...
true
39f15dafeac32ab6762a0401beae5bbaed2c670e
SQL
souravrrp/AKG-SCIL-SQL
/QUERY/Queries/move order details.sql
UTF-8
3,579
2.671875
3
[]
no_license
select mmt.transaction_id, mmt.reason_id, mmt.transaction_date, mtt.transaction_type_name, mtrh.request_number mo_number, mtrh.created_by, msi.segment1||'.'||msi.segment2||'.'||msi.segment3 item_code, msi.description, mc.segment1, mc.segment2, ood.organization_code, ...
true
4d62000d85d085f67058bf75a3c3f76cde0cb43e
SQL
vegazhou/billing-crm
/core/src/main/resources/wang/huaichao/crm/find-customers-under-reseller2.sql
UTF-8
321
3.578125
4
[]
no_license
SELECT DISTINCT O.CUSTOMER_ID AS customerId FROM B_ORDER O, B_CONTRACT C LEFT JOIN B_CUSTOMER CUST ON CUST.PID = C.AGENT_ID WHERE O.CONTRACT_ID = C.PID AND CUST.AGENT_TYPE = 'RESELLER2' AND O.EFFECTIVEENDDATE > :startDate AND O.EFFECTIVESTARTDATE < :endDate AND O.STATE IN ('IN_EFFECT', 'END_OF_LIFE'...
true
e30b1f2cb7b2c1810b1ec8078ada1f0cf103743d
SQL
ThanhHungDev/SOY
/SERVER/database.sql
UTF-8
2,176
2.90625
3
[]
no_license
DROP TABLE IF EXISTS user_accounts; DROP SEQUENCE IF EXISTS user_account_id_seq; CREATE SEQUENCE user_account_id_seq; CREATE TABLE user_accounts ( id integer NOT NULL DEFAULT nextval('user_account_id_seq'), email character varying(255) NOT NULL, password character varying(255) NOT NULL, name character varying(2...
true
e31caa8272837f6189d3cb50e9e3a75e97af5b99
SQL
zampierida98/UniVR-informatica
/Magistrale/progetto-WEB-APP/db-schema.sql
UTF-8
660
3
3
[]
no_license
CREATE TABLE users ( username VARCHAR PRIMARY KEY, password VARCHAR NOT NULL ); CREATE TABLE notices ( data_riferimento DATE NOT NULL, username VARCHAR NOT NULL REFERENCES users, avviso jsonb NOT NULL, PRIMARY KEY (data_riferimento, username, avviso) ); CREATE TABLE lessons ( data_riferimento DATE...
true
25fde1857233644b99d40ac677039637dddb61dd
SQL
jojo6522/DatabaseSystems
/Project3/Project3Queries.sql
UTF-8
1,637
4.34375
4
[]
no_license
SELECT ClassName, CourseKey, COUNT(CourseKey) AS NumberOfClassesOffered, SUM(PARSE(Enrolled AS INT)) AS TotalEnrolled, SUM(PARSE(Limit AS INT)) AS Limit FROM QCClass.Class GROUP BY ClassName, CourseKey ORDER BY ClassName; SELECT C.CourseName, I.InstructorFullName AS InstructorNa...
true
cb9c91c2530b69414ffbf5c298ab18c04ff97dc5
SQL
AshenManilka/ARDLIBRARY
/ard_lib.sql
UTF-8
21,580
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 20, 2019 at 11:46 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
634451b7916e0c36b45ce5485dba3471854aa1f2
SQL
aiemelyanov/RedGate
/TEST3/APEX_030200/Tables/WWV_FLOW_CUSTOMIZED_TASKS.sql
UTF-8
467
2.59375
3
[]
no_license
CREATE TABLE apex_030200.wwv_flow_customized_tasks ( "ID" NUMBER NOT NULL, task_name VARCHAR2(4000 BYTE), task_link VARCHAR2(4000 BYTE), display_sequence NUMBER, display_location VARCHAR2(30 BYTE) CONSTRAINT wwv_flow_ctasks_location CHECK (display_location in ('WORKSPACE_HOME','WORKSPACE_LOGIN')), dis...
true
450d936879d0ac9abf4579d15767fce9386cb46e
SQL
AlexandreHass/GatewareTeste
/Exercicio5.sql
UTF-8
409
3.921875
4
[]
no_license
SELECT COLABORADORES.NOME_COLABORADOR, LOCAL_DE_TRABALHO.UF, SUM(SALARIOS.VALOR_PAGO) FROM SALARIOS INNER JOIN COLABORADORES ON (SALARIOS.ID_COLABORADOR = COLABORADORES.ID_COLABORADOR) INNER JOIN LOCAL_DE_TRABALHO ON (LOCAL_DE_TRABALHO.ID_COLABORADOR = COLABORADORES.ID_COLABORADOR) WHERE date_part('year', SALARI...
true
00f543242c4f7eea64c40144fb456a6f71de35b7
SQL
andrewfidel/Instagram_Clone_DB
/schema/solutions.sql
UTF-8
1,417
4.875
5
[]
no_license
-- 1. Find 5 oldest users SELECT * FROM users ORDER BY created_at LIMIT 5; -- 2. Most popular registration date SELECT DAYNAME(created_at) AS day_of_week, COUNT(*) AS total FROM users GROUP BY day_of_week ORDER BY total DESC LIMIT 2; -- 3. Identify inactive users (users with no photos) SELECT * FROM users LEFT JO...
true
9301697811b5e54aefb14714bead0401aee9996e
SQL
minhtran384/SQL
/Monash/student-schema.sql
UTF-8
3,081
4.03125
4
[]
no_license
DROP TABLE audit_trail CASCADE CONSTRAINTS; DROP TABLE enrolment CASCADE CONSTRAINTS; DROP TABLE student CASCADE CONSTRAINTS; DROP TABLE unit CASCADE CONSTRAINTS; CREATE TABLE audit_trail ( audit_date_time DATE, audit_user_name VARCHAR2(30), stu_nbr NUMBER(8), unit_code CHAR(7)...
true
41f5e7785e7d03af39f8390efa4aa316416c3467
SQL
WonderPro/Engineering-Practical-Experiments
/Semester 5/DBMS/exp 05.sql
UTF-8
1,641
4.21875
4
[ "Unlicense" ]
permissive
---- Primary key constraint select ' --------------------------------------'; create table samsung(ID int not null, model varchar(255), price int, primary key (ID)); insert into samsung values (1, 'galaxy', 4000); select * from samsung; -- insert into samsung values (1, 'test', 43000); ----gives error 'Violation of PR...
true
3cb08ea22c98ab4968dda90d9e603038be42de24
SQL
kobaniasmar/Secure-Login-PHP
/db_test.sql
UTF-8
3,167
3.265625
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 27, 2017 at 08:53 PM -- Server version: 10.1.24-MariaDB -- PHP Version: 7.1.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
2020e290d3b530d56ede01ec88e005a07a6b0445
SQL
crosser/pulsecounter
/select.sql
UTF-8
462
3.59375
4
[]
no_license
select to_seconds(timestamp) as time, value+adj as value from (select c.timestamp timestamp, c.value value, (select sum(value) from coldadj a where a.timestamp <= c.timestamp ) adj from coldcnt c order by timestamp ) t; select to_seconds(timestamp) as time, value+adj as value from (select c.timestamp time...
true
1cb3c086a64a44a5ca008cf17aa18f5675f54b71
SQL
Prev/engine-pmc
/config/initialize.sql
UTF-8
13,135
3.3125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.0.4.1 -- http://www.phpmyadmin.net -- -- 호스트: localhost -- 처리한 시간: 13-10-31 11:36 -- 서버 버전: 5.1.41-community -- PHP 버전: 5.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101...
true
316db5c91b5d1d84752647f92edbefa3cd9c5012
SQL
leungll/STHomeWork01
/db_sthomework01.sql
UTF-8
1,810
3.265625
3
[ "Apache-2.0" ]
permissive
/* Navicat Premium Data Transfer Source Server : localhost_3306 Source Server Type : MySQL Source Server Version : 80015 Source Host : localhost:3306 Source Schema : db_sthomework01 Target Server Type : MySQL Target Server Version : 80015 File Encoding : 65001 Date: ...
true
5c0aabdf945d498eba24666fea366903e70c68b9
SQL
jonasdebeukelaer/old-university-app
/create_tables_salad.sql
UTF-8
679
2.90625
3
[]
no_license
CREATE TABLE posts ( uid int(11) NOT NULL, creationDate TIMESTAMP DEFAULT CURRENT_TIMESTAMP, postId int(11) NOT NULL UNIQUE AUTO_INCREMENT, content blob ) ENGINE=InnoDB DEFAULT CHARSET=latin1; CREATE TABLE users ( `uid` int(11) NOT NULL UNIQUE AUTO_INCREMENT, `creationDate` TIMESTAMP DEFAULT CURRENT_TIMEST...
true
8243f1093615c5728f18bee3ec13193c07ac28b4
SQL
idol1112/SQL
/Practice/Practice01.sql
UTF-8
1,366
4
4
[]
no_license
--문제.1 select first_name||' '||last_name "이름", salary "월급", phone_number "전화번호", hire_date "입사일" from employees order by hire_date asc; --문제.2 select job_title "업무이름", max_salary "최고월급" from jobs order by max_salary desc; --문제.3 select first_name, manager_id, co...
true
230b0248362897cefe5d1bf403bf7df626dad650
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day11/select1721.sql
UTF-8
498
3.59375
4
[]
no_license
SELECT obs.sensor_id, avg(counts) FROM (SELECT sensor_id, date_trunc('day', timestamp), count(*) as counts FROM WeMoObservation WHERE timestamp>'2017-11-10T17:21:00Z' AND timestamp<'2017-11-11T17:21:00Z' AND SENSOR_ID = ANY(array['80a4f56a_360d_4e34_ae00_27d460ece999','7996d9a1_7450_4d96_af4b_5e5dab3e5710','2a...
true
d44f4d774856adcab57087d2e7a3ff6a4a94d6d8
SQL
holcza/training-solutions
/src/main/resources/covid/db/migration/V2__citizens.sql
UTF-8
1,155
3.375
3
[]
no_license
CREATE TABLE citizens ( citizen_id BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT, citizen_name VARCHAR(200) NOT NULL, zip VARCHAR(4) NOT NULL, age BIGINT NOT NULL, email VARCHAR(200), taj VARCHAR(10) UNIQUE, number_of_vaccination BIGINT, last_vaccination DATE); CREATE TABLE Vaccinations ( vaccination_id BIGINT NOT NULL P...
true
989d9c0ee75c78ed3eef5b573ef4a20ce7394521
SQL
SriThejaswini/hospital-dbms
/mysql/ddl/13_lab_test.sql
UTF-8
365
2.71875
3
[]
no_license
DROP TABLE if exists lab_test; CREATE TABLE if not exists lab_test ( test_ID int NOT NULL PRIMARY KEY AUTO_INCREMENT, price varchar(100) default NULL, test_type varchar(255) default NULL, fee varchar(100) default NULL, result varchar(255) default NULL, appointment_number int default NULL references appoint...
true
db1cd4cbb42e895f5e32b412f70532e6e97f22dc
SQL
chadsundberg/volunteer_first
/database.sql
UTF-8
2,566
3.96875
4
[ "MIT" ]
permissive
-- Users table CREATE TABLE users ( id SERIAL PRIMARY KEY, email VARCHAR(40) NOT NULL, first_name VARCHAR(40) NOT NULL, last_name VARCHAR(40) NOT NULL, is_admin BOOLEAN DEFAULT false ); -- Events table CREATE TABLE events ( id SERIAL PRIMARY KEY, date date NOT NULL ); -- Roles table CREATE TABLE roles ( ...
true
e60251a25e8060e84f88ebeed07e9abd68e3fce5
SQL
nougat11/University
/5/СУБД/4/6.sql
UTF-8
226
3.0625
3
[]
no_license
USE students1; SELECT "WITHOUT1", COUNT(name) FROM name1 WHERE name LIKE CONCAT('%', left('Кузьма', 5), '%') UNION ALL SELECT "WITHOUT2", count(name) FROM name1 WHERE name LIKE CONCAT('%', left('Кузьма', 4), '%');
true
4df5d92128ac44ca3cfd7ec40c3fac4d4aa7c3f7
SQL
ddodnikov/startupevaluation
/xseed-data/scripts/6_group_categories.sql
UTF-8
3,467
2.90625
3
[]
no_license
INSERT INTO group_categories(name, phase_category_id) VALUES ('General Venture Info', (SELECT id FROM phase_categories WHERE name LIKE 'What is your Venture about?')), ('Getting Started', (SELECT id FROM phase_categories WHERE name LIKE 'Who is your Team')), ('Market Segmentation/Select a beachhead market', (SEL...
true
a656c455185ca9750bc27a38d0e77078581c64c6
SQL
Awu05/MySQL-Docker
/create3.sql
UTF-8
1,013
4.0625
4
[]
no_license
/* Create a database of names and items tables, where each person may own many items and each item may be owned by many people. */ drop database if exists ManyManyDemo; create database ManyManyDemo; use ManyManyDemo; -- Create the names table and insert data: create table names ( ID mediumint not null auto_...
true
46c28e62a9177cda2c5fc6003d3f3ba8f82bc913
SQL
guidomantilla/Docker
/samples/mysql/scripts/movies-insert-script.sql
UTF-8
23,169
2.875
3
[ "Apache-2.0" ]
permissive
use movies; /* movie inserts */ insert into movie values (0001, 'The Shawshank Redemption', 'Two imprisoned men bond over a number of years', '1994-10-14', 142, '18', '4.5'); insert into movie values (0002, 'The Godfather', 'The aging patriarch of an organized crime dynasty transfers control to his son', '1972-3-24', ...
true
dd6803309b60468ad546256eda0f6d3c548f9633
SQL
jerome13250/RanToolBox_SQL
/NOKIA_Feature_eMBLB_BlindHoTarget.sql
UTF-8
841
2.96875
3
[]
no_license
--Liste des BlindHOTargetCell qui doivent être activés : SELECT "managedObject_version", "ADJI_managedObject_distName", object_type, "managedObject_WCEL", name_s, "TargetCellDN", adji_name, "LCIDV", "BlindHOTargetCell" FROM public.t_voisines3g3g_nokia_inter WHERE "BlindHOTargetCell" = ...
true
8dc8577db6dc35bf7237dbc3a7ce19c152187096
SQL
mebelousov/antlr_psql
/src/test/resources/sql/select/cc0786b1.sql
UTF-8
211
2.890625
3
[ "MIT" ]
permissive
-- file:oidjoins.sql ln:108 expect:true SELECT ctid, attcollation FROM pg_catalog.pg_attribute fk WHERE attcollation != 0 AND NOT EXISTS(SELECT 1 FROM pg_catalog.pg_collation pk WHERE pk.oid = fk.attcollation)
true
c1765616682ca52a396933c854b04e6cfa9f0e85
SQL
foysalit/db_uni
/hw2/1.sql
UTF-8
295
3.671875
4
[]
no_license
select municipality from `SPORTS-COMPLEX` where SCCode in ( select BK.SCCode from `BOOKING` as BK, `TENNIS-COURT` as TC where BK.TCCode=TC.TCCode and TC.Type='Hard'and BK.Date='2015-04-06' and TC.TCCode not in ( select TCCode from `TENNIS-COURT` having count(distinct Type) = 1 ) )
true
d5696cb67a5cbe8333d1ee67d3235e5187f23c3f
SQL
ONSdigital/rm-action-service
/src/main/resources/database/changes/release-24/action-event-template-addition.sql
UTF-8
1,390
3.390625
3
[ "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
alter table action.case alter column actionplanid DROP NOT NULL; alter table action.case alter column actionplanfk DROP NOT NULL; alter table action.case alter column actionplanstartdate DROP NOT NULL; alter table action.case alter column actionplanenddate DROP NOT NULL; CREATE TABLE action.action_template ( ty...
true
5e7548352cf0ad63123ecd6b603cc13a00429d50
SQL
NYCPlanning/Known-Projects-Database
/5I. Boundaries_CD.sql
UTF-8
9,474
3.796875
4
[]
no_license
/********************************************************************************************************************************************************************************** AUTHOR: Mark Shapiro SCRIPT: Adding Census District boundaries to aggregated pipeline START DATE: 9/5/2019 COMPLETION DATE: Sources: *****...
true
bacf20427236ce379b700d77bb638b95508b18f8
SQL
dvideo/seniorproj
/AOUserverTest/aouDB.sql
UTF-8
2,079
3.3125
3
[]
no_license
CREATE DATABASE allofusdbmysql2; CREATE TABLE allofusdbmysql2.userTable ( Userid INT NOT NULL AUTO_INCREMENT, fName VARCHAR(45) NULL, lName VARCHAR(45) NULL, Username VARCHAR(45) NULL, Password VARCHAR(100) NULL, #MaritalStatus VARCHAR(45) NULL, DateOfBirth VARCHAR(10) NULL, Email VARCHAR(45) NULL, #I...
true
66af36661f4ccea3923628d795a98b8936f3f730
SQL
TIBCOSoftware/be-tools
/cloud/kubernetes/tests/utils/mysql.sql
UTF-8
6,331
3.328125
3
[ "MIT-0", "BSD-3-Clause" ]
permissive
-- # -- # Copyright (c) 2019-2020. TIBCO Software Inc. -- # This file is subject to the license terms contained in the license file that is distributed with this file. -- # use be_database; DROP TABLE IF EXISTS ClassToTable; CREATE TABLE ClassToTable (className varchar(4000), fieldName varchar(4000), tableName varchar(...
true
7a40f2bd148d1c0934a47a664ccf9469967366fb
SQL
thiagobianeck/api-postgres
/sql/db.sql
UTF-8
2,784
3.5625
4
[]
no_license
CREATE TABLE usuario ( id serial NOT NULL, "role" varchar(30) NOT NULL, nome varchar(100) NOT NULL, email varchar(100) NOT NULL, "password" varchar(64) NOT NULL, created_by int4 NULL, created_at timestamp NULL DEFAULT now(), updated_by int4 NULL, updated_at timestamp NULL, CONSTRAINT pk_usuario PRIMARY KEY (i...
true
07a99704e5d4d3cb9fed134fc866b0723bcf70bf
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day09/select2321.sql
UTF-8
269
3.015625
3
[]
no_license
SELECT sen.name FROM SENSOR sen, SENSOR_TYPE st, COVERAGE_INFRASTRUCTURE ci WHERE sen.SENSOR_TYPE_ID=st.id AND st.name='Thermometer' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['2028','5029','5068','6011','4100_4','2214','5011','4208','3056','5234'])
true
869d287c7b9f1700fb59b78f4937a1ad442e1e0a
SQL
joseuonline/SQL
/promotion-performance-firebase.sql
UTF-8
4,616
3.5625
4
[ "MIT" ]
permissive
with v as ( SELECT --app_info.id extract(date FROM timestamp_micros(event_timestamp) AT TIME ZONE "Japan" ) as date , platform , event_name ,if (ARRAY(SELECT value.string_value FROM UNNEST(event_params) WHERE key="promotion_name") [SAFE_OFFSET(0)] = "news", (SELECT item_name FROM UNNEST(items)), ARRAY...
true
bc14475d8bc9fdc64cdf7ca601288f8b9eac5bdb
SQL
Aaron-Usher/Capstone-2017
/SnackOverFlowDB/Old Stuff/Scripts/Grade/sp_delete_grade.prc
UTF-8
393
2.953125
3
[]
no_license
USE [SnackOverflowDB] GO IF EXISTS(SELECT * FROM sys.objects WHERE type = 'P' AND name = 'sp_delete_grade') BEGIN DROP PROCEDURE sp_delete_grade Print '' print ' *** dropping procedure sp_delete_grade' End GO Print '' print ' *** creating procedure sp_delete_grade' GO Create PROCEDURE sp_delete_grade ( @GRADE_ID[NV...
true
919f64f199b3323bb26634c0e22a37ccf48c0d80
SQL
Francis-Panzani/Projet_Vide_Grenier_AppWeb
/APPWEB_src_vide_grenier_V0.2.0.1/bdd/vide_grenier.sql
UTF-8
20,496
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : lun. 20 juil. 2020 à 08:37 -- Version du serveur : 10.4.11-MariaDB -- Version de PHP : 7.2.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_...
true
fb53624f25d52f4c1e552aec378dcd88e06498a8
SQL
NoeOsorio/ManualWeb3
/Examen/SQL/categorias.sql
UTF-8
1,498
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Apr 23, 2021 at 06:01 PM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
6b710322b5dbbd3c760d5edd7defa19715419c52
SQL
amoszhou/water-cms
/src/main/resources/water.sql
UTF-8
15,792
3.453125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost3306 Source Server Version : 50717 Source Host : localhost:3306 Source Database : water Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2018-08-10 18:18:52 */ SET FOREIGN_KEY_CHECKS=0; --...
true
1d01c4b54c5ebe3af64bca6bae2fa0bacb405df0
SQL
WesleySiNeves/Scripts_SQL_Server
/5.Monitoramento/MonitoraNomeErradosObjetos/BuscaNomeIndices.sql
UTF-8
230
3.328125
3
[]
no_license
SELECT S.name, T.name AS Tabela , I.name,I.object_id FROM sys.indexes AS I JOIN sys.tables AS T ON I.object_id = T.object_id JOIN sys.schemas AS S ON T.schema_id = S.schema_id WHERE I.object_id > 100 AND I.name LIKE '%missing%'
true
f10e113d8592694df5fbb272e7a4bd35386855f4
SQL
HumkaTheBear/ChatPractice
/accountdb.sql
UTF-8
487
2.96875
3
[]
no_license
CREATE DATABASE chat; use chat; CREATE TABLE `users`( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, `username` VARCHAR(64) NOT NULL, `password` VARCHAR(64) NOT NULL, `firstname` VARCHAR(64) NOT NULL, `lastname` VARCHAR(64) NOT NULL, `birthday` DATE NOT NULL, `email` VARCHAR(255) NOT NULL ); CREATE TABLE `messa...
true
87cd12b49861ce02930b24b712abe08b707f94d9
SQL
Luckychen777/Car-Market
/database/carmarket.sql
UTF-8
5,524
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 14, 2018 at 08:57 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 5.6.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
bf5698f56fa6937077c395a282c63135fccdb12a
SQL
KhOlga/-payroll-web-service
/payroll_example.sql
UTF-8
6,214
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 30, 2019 at 06:34 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
e691db90cb4b5ff92039754a0c28ad0f6dbb6865
SQL
praveenmadupu/SQL-Scripts
/postgres/sessions in state per user & database.sql
UTF-8
173
2.71875
3
[]
no_license
SELECT datname , usename , state , count(1) from pg_stat_activity group by datname , usename , state order by count(1) desc , state , datname , usename;
true
62be21dfab70c3833fb00d5e124046382fb11914
SQL
Rod-S/database-exercises
/adlist_seeder_3.sql
UTF-8
1,189
3.46875
3
[]
no_license
use adlister_db; drop table if exists ad; drop table if exists users; CREATE TABLE users( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, username VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, password VARCHAR(255) NOT ...
true
4ae5760f60a48237324ab8c5fbb8131295335d91
SQL
toanhtran/sql-library-lab-v-000
/lib/insert.sql
UTF-8
1,631
3.203125
3
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
INSERT INTO series (id, title, author_id, subgenre_id) VALUES (1, 'Divergent', 1, 2); INSERT INTO series (id, title, author_id, subgenre_id) VALUES (2, 'Song of Ice and Fire', 2, 3); INSERT INTO books (id, title, year, series_id) VALUES (1,'Divergent', 2011, 1), (2, 'Insurgent', 2012, 1), (3, 'Allegiant', 2013, 1), (4...
true
651e8f9b6e53c423e06da4ae387c5492a4bba024
SQL
istar1978/AutoRStore
/target/classes/sql/init.sql
GB18030
21,002
3.125
3
[]
no_license
drop table if exists ASSOCIATOR; drop table if exists ASS_COMBO; drop table if exists ASS_CONSUME; drop table if exists ASS_RECHARGE; drop table if exists BRANCH; drop table if exists CONSUME_CART; drop table if exists CONSUME_LIST; drop table if exists DEPARTMENT; drop table if exists DEP_MENU; drop table if ...
true
53e0310ca1c47cdc7b1b9deec917fbad2bf55013
SQL
BaihaoLuo/UBC-Airline
/database/data.sql
UTF-8
9,291
2.90625
3
[]
no_license
/* This script is used to create all tables and data in the database */ DROP TABLE Vip2; DROP TABLE Vip1; DROP TABLE Vip; DROP TABLE Lounge; DROP TABLE Protector; DROP TABLE SpecialNeeds; DROP TABLE Modification; DROP TABLE Luggage_belongsto; DROP TABLE Ticket_refersto_has; DROP TABLE Customer; DRO...
true
de26c0af994c8a23e6e710d53385f11556181a28
SQL
gabrielmb20/alpha-taskapp
/src/test/resources/db-schema-v3.sql
UTF-8
2,218
4.125
4
[]
no_license
-- DEPARTMENT CREATE TABLE IF NOT EXISTS "department" ( "id_department" INTEGER NOT NULL, "department_name" VARCHAR(30) NULL DEFAULT 'NULL::character varying', PRIMARY KEY ("id_department") ); -- ROLE CREATE TABLE IF NOT EXISTS "role" ( "id_role" SERIAL PRIMARY KEY, "name" VARCHAR(30) NULL DEFAULT 'NULL::characte...
true
1ade6c4bd975cda2be3fa8980ac871d1fde7bb25
SQL
Jaimobean/CMPT308
/Homework 3.sql
UTF-8
4,611
4.46875
4
[]
no_license
--Jaime Engl --Homework 3 --Due 10/07 --Question 1 --Selects the cities of agents booking an order for customer c002 (subqueries) select city from agents where aid in (select aid from orders where cid = 'c002') --Question 2 --Selects the cities of agents booking an order for customer c002 (j...
true
00bb48079a3f8c534737dfe72b362b8db2840fcb
SQL
praneesh1204/SQL_for_DataScience
/leetcode/HARD/AverageSalaryDepartmentsVSCompany(Hard).sql
UTF-8
3,244
4.84375
5
[]
no_license
Average Salary: Departments VS Company (Hard) Given two tables below, write a query to display the comparison result ("higher" "lower" "same") of the average salary of employees a department to the companys average salary. Table: salary | id | employee_id | amount | pay_date | |----|-------------|--------|-------...
true
0f14b705cecf0705de836dee23170bdf79f4c59a
SQL
victorrrp/SQL
/21.PACKAGES.SQL
UTF-8
3,080
3.71875
4
[]
no_license
/*DESENVOLVENDO PACKAGES DE BANCO DE DADOS PARA AGRUPAR OBJETOS PL/SQL (IDENTIFICADORES E ROTINAS) FAZEM PARTE DA CONSTRUÇÃO DE PACKAGES: *VARIAVEIS *CURSORES *CONSTANTES *EXCEÇÕES *PROCEDIMENTOS *FUNÇÕES*/ /*CONSTRUÇÕES PUBLICAS EM UMA PACKAGE SÃO AS QUE PODEM SER INVOCADAS POR PROCEDIMENTOS OU FUN...
true
a88fdaa2aac125065c457159ff30c77bda3729a7
SQL
x2c3z4/LabManager
/lab.sql
UTF-8
4,397
2.953125
3
[ "MIT" ]
permissive
-- MySQL dump 10.13 Distrib 5.5.46, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: labmanager -- ------------------------------------------------------ -- Server version 5.5.46-0+deb8u1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARAC...
true
b0c4af10c6850688a72a16b158c837868e262d41
SQL
Matl21/sistema_pruebas_tecnicas
/sql/pruebastecnicas.sql
UTF-8
20,466
3.578125
4
[]
no_license
drop database pruebastecnicas; create database pruebastecnicas; use pruebastecnicas; create table estudiante( id_estudiante int primary key auto_increment not null, nombre varchar(64) not null, apellido varchar(64) not null, email varchar(100), sexo varchar(15) not null, fecha_nacimiento date not null, foto_url varcha...
true
7ee04ffc932a838ad1fe880e41e7a732ec0d1083
SQL
CUBRID/cubrid-testcases
/sql/_27_banana_qa/issue_5765_timezone_support/_01_table_operations/_01_create/cases/_04_create_as_select_ts.sql
UTF-8
812
3.875
4
[ "BSD-3-Clause" ]
permissive
--create table with TIMESTAMP(L)TZ columns, using create … as select syntax drop table if exists tztest; create table tztest( c1 timestamp with time zone default current_timestamp, c2 timestamp with time zone not null, c3 timestamp with local time zone unique, c4 timestamp with local time zone default now() not ...
true
cf1cc10e34a66423ec2f57b28836a62cef94869c
SQL
vladimir-pitchkurov/book_table_v1
/MyBooks/src/main/resources/mysql/database.sql
UTF-8
375
2.921875
3
[]
no_license
USE test; CREATE TABLE `test`.`book` ( `id` INT NOT NULL AUTO_INCREMENT, `title` VARCHAR(100) Not NULL, `description` VARCHAR(255) NULL, `author` VARCHAR(100) NULL, `isbn` VARCHAR(20) NULL, `printYear` INT NULL, `readAlready` TINYINT NULL, PRIMARY KEY (`id`), UNIQUE INDEX `title_UNIQUE` (`title` A...
true
0850a3d6ac6fa685c0cfc8193c2d3dcefe379f93
SQL
pvanny1124/stockmarket-foreign-exchange
/Foreign Exchange/procs/bonds_aux.sql
UTF-8
3,472
3.578125
4
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS bonds_aux $$ CREATE PROCEDURE bonds_aux(IN BASE VARCHAR(3), IN TRADE_WITH VARCHAR(3), IN RESERVE_MONEY DECIMAL(18, 2), IN AMT_SPENT DECIMAL(18, 2)) BEGIN CALL get_country(BASE, @BASE_COUNTRY); CALL get_country(TRADE_WITH, @TRADE_WITH_COUNTRY); SET @BASE = BASE; SET @TRADE_WITH = ...
true
83cf22e93aafd04b8713a6754d0d1ccf9c142a30
SQL
CUBRID/cubrid-testcases
/sql/_23_apricot_qa/_01_sql_extension3/_03_pseudocolumn_in_default_clause/_04_alter/_03_alter_column_set_default/cases/alter_default_007.sql
UTF-8
1,754
3.84375
4
[ "BSD-3-Clause" ]
permissive
--set or reset default value of a column to CURRENT_USER create table d01(id bigint primary key auto_increment, col1 varchar, col2 varchar not null, col3 varchar unique, col4 varchar default 'AAAAA'); insert into d01(col2) values('BBBBB'); select if (col1 is null and col3 is null and col4 = 'AAAAA', 'ok', 'nok') from...
true
9919cc494076e107b110823612287f724c240ea0
SQL
zemian/learn-mysql
/examples/test.sql
UTF-8
2,214
3.59375
4
[]
no_license
-- Notes for MySQL (8) -- https://dev.mysql.com/doc/refman/8.0/en/ -- Data Types -- https://dev.mysql.com/doc/refman/8.0/en/data-types.html /* CHAR Fixed length and space padded character string (sql: CHAR) VARCHAR Variable length character string (sql: VARCHAR) TEXT Variable length character...
true
c79fe245d58b587b49d04ff8e277e02a48177ce6
SQL
isabella232/mcollective-process-agent
/data/process_data.ddl
UTF-8
688
2.640625
3
[]
no_license
metadata :name => "process_data", :description => "Checks if a process matching a supplied pattern is present", :author => "Pieter Loubser <pieter.loubser@puppetlabs.com>", :license => "ASL 2.0", :version => "1.0.0", :url => "http://puppetlabs.com", :timeout => 1 d...
true
ca3b57fdfdce8f67939fa1e53bbd1fc0cc0db7cb
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/procedimiento/P_PERMISOS_USERS2.sql
UTF-8
2,129
3.140625
3
[]
no_license
-------------------------------------------------------- -- DDL for Procedure P_PERMISOS_USERS2 -------------------------------------------------------- set define off; CREATE OR REPLACE EDITIONABLE PROCEDURE "AXIS"."P_PERMISOS_USERS2" IS CURSOR objectes ( pusuari IN VARCHAR2) IS select 'grant select, insert, delet...
true
0f47709e86a8af00d630a85f8cadd7b2418cf88a
SQL
sathsaraUdayanga/property-sale-site
/landsale.sql
UTF-8
10,745
3.15625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Nov 14, 2018 at 03:57 PM -- Server version: 5.7.23 -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
5271275224b83eed6053207d1ea84409a378d398
SQL
CS447-CSTU-12560/Homework1_master
/Submissions/hw1_00023/hw01cs447-master/lampangsouvenir.sql
UTF-8
6,971
3.09375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Sep 13, 2017 at 01:50 PM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
1cf24cbbbe05aba928c67ba87546b6d231b552ed
SQL
ikanishk/BFH011_RuralBlackboard
/RepUpdate/old/my1/e-portal.sql
UTF-8
7,840
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 24, 2018 at 08:56 AM -- Server version: 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_CL...
true
741cfcd13c0566c821bdc0a9b4b562f966f8eb00
SQL
rupaai/The-Food-Express
/original_table_list.sql
UTF-8
3,788
3.46875
3
[]
no_license
clear screen; DROP TABLE commenta CASCADE CONSTRAINTS; CREATE TABLE commenta ( conum number, unum number, cnum number, co varchar2(30), PRIMARY KEY(conum), CONSTRAINT fk_com2 FOREIGN KEY (cnum) REFERENCES selectionCart (cnum), CONSTRAINT fk_com1 FOREIGN KEY (unum) REFERENCES u...
true
bd03fb57e06d2b5548ed69bd2d3afc2f21ec85bd
SQL
pafuentess/holbertonschool-higher_level_programming
/0x0D-SQL_introduction/11-best_score.sql
UTF-8
195
2.59375
3
[]
no_license
-- lists all records with a score >= 10 of the table second_table of -- the database hbtn_0c_0 in your MySQL server. SELECT score, name FROM second_table WHERE score >= 10 ORDER BY score DESC;
true
db5243b86eb1b6006fd0432360e2fa616e1a9737
SQL
keeplearningandtrying/kubernetes-workshop
/microservices/bookmark-service/src/main/resources/db/migration/V1__create_bookmarks_table.sql
UTF-8
288
3.03125
3
[]
no_license
create sequence bookmark_id_seq start with 1 increment by 10; create table bookmarks ( id bigint DEFAULT nextval('bookmark_id_seq') not null, title varchar(500) not null, url varchar(1000) not null, created_at timestamp, updated_at timestamp, primary key (id) );
true
bb53ce9e829d2efdaf72f06b49b1072ed97e5a6a
SQL
angeleyes1337/coursera-cybersecurity-security-capstone-project
/db/schema.sql
UTF-8
785
3.546875
4
[]
no_license
/* * Table containing all registered users. */ CREATE TABLE "users" ( "id" SERIAL NOT NULL UNIQUE PRIMARY KEY, "username" VARCHAR(255) NOT NULL UNIQUE, "email" VARCHAR(255) NOT NULL UNIQUE, "password" VARCHAR(255) NOT NULL, "login_ip" INET, ...
true
3253b782d428f2e13688f65a346a7f3348b81908
SQL
balou45100/collaboradane
/base/2011-02-14_table_stats_fonctions_suivies.sql
UTF-8
1,731
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.0 -- http://www.phpmyadmin.net -- -- Serveur: calando.private.tice.ac-orleans-tours.fr -- Généré le : Lun 14 Février 2011 à 12:03 -- Version du serveur: 5.0.51 -- Version de PHP: 5.2.6-1+lenny6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Base de données: `collaboratice` -- -- --...
true
50747be28027c67374f8ef130db10df3f74b6ecd
SQL
ciagar23/subject-reservation
/subjectreservation/library/db_subjectreservation.sql
UTF-8
15,838
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.10.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 30, 2014 at 12:35 PM -- Server version: 5.0.41 -- PHP Version: 5.2.2 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `db_subjectreservation` -- -- ------------------------------...
true
cb90412e4653e78820c32e04a3f124eab4a86fa3
SQL
EduardoChaconAlmada/Hewlett-Packard-SQL
/EmployeeSQL/Complete.sql
UTF-8
4,422
4.375
4
[]
no_license
DROP TABLE IF EXISTS departments; DROP TABLE IF EXISTS dept_emp; DROP TABLE IF EXISTS dept_manager; DROP TABLE IF EXISTS employees; DROP TABLE IF EXISTS salaries; DROP TABLE IF EXISTS titles; CREATE TABLE "departments" ( "dept_no" varchar NOT NULL, "dept_name" varchar NOT NULL, CONSTRAINT "pk_departmen...
true
e320cb910f2ab809fab02f94c54af191780dfb1f
SQL
alanlima-fr/PEHB
/BDD & Schema/BDD2.sql
UTF-8
8,170
3.4375
3
[]
no_license
#------------------------------------------------------------ # Script MySQL. #------------------------------------------------------------ create database PEHB; use PEHB; #------------------------------------------------------------ # Table: Adherent #----------------------------------------------------------...
true
618ffa91a62665c477511b1c538e7ea84ca5b8ee
SQL
best-coloc-ever/globibot
/db/migrate/V0.8__Create_twitch_oauth_tables.sql
UTF-8
398
3.21875
3
[ "MIT" ]
permissive
create table twitch_oauth( id bigint primary key, token text not null ); create type twitch_notify_method as enum ( 'mention', 'whisper' ); create table twitch_notify( id bigint not null, channel text not null, method twitch_notify_metho...
true
fefd5b840814a223b02d59f47734506c36bc5b3d
SQL
Fukada9905/pythagora
/sql/archives/change_scripts/tran/shipment_provisional_details_history.sql
UTF-8
4,558
2.625
3
[]
no_license
delimiter // /** テーブル作成 **/ CREATE TABLE shipment_provisional_details_history( history_record_id int NOT NULL AUTO_INCREMENT COMMENT '履歴ID' , history_record_date datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '履歴追加日' , history_record_divide ENUM('I','U','D') NOT NULL COMMENT '履歴区分 I:登録 U:更新...
true
a7b166496dc6cfa70563053bcca5fbed76696899
SQL
amorajuno/SQLsamples
/albumsDB.sql
UTF-8
4,343
3.859375
4
[]
no_license
create table Albums ( id SERIAL primary key, Nome varchar(30) not null, ano_lancamento date not null, img_url varchar(200) not null ); create table bandas( id SERIAL primary key, nome varchar(50) not null, vertente varchar(20) not null, best_seller_id int references albums(id) ); insert into Albums(Nome,ano_lancament...
true
938bfb9094d826ca64c07cbdbb9541ed5017dcc8
SQL
wbrawner/twigs
/db/src/main/resources/sql/2.sql
UTF-8
798
3.515625
4
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS recurring_transactions ( id TEXT PRIMARY KEY, title TEXT NOT NULL, description TEXT DEFAULT NULL, amount INTEGER NOT NULL, frequency TEXT NOT NULL, start TIMESTAMP NOT NULL, finish TIMESTAMP, last_run TIMESTAMP, ...
true
a1b1de47f47a6b9ec97789ddf8cbe8e726c14f87
SQL
Quaran-Team/server-Amazin
/api/src/main/resources/db/migration/V15__create_jca2_table.sql
UTF-8
548
3.125
3
[]
no_license
-- Table: public.jca01 -- DROP TABLE public.jca01; CREATE TABLE public.jca2 ( itemId bigint GENERATED ALWAYS AS IDENTITY ( INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 9223372036854775807 CACHE 1 ) PRIMARY KEY, prime text NOT NULL, imgurl text NOT NULL ) TABLESPACE pg_default; ALTER TABLE public.jca2...
true
d38aa0a6ab603e91a1ce072c45020ecd3cffc623
SQL
deniseclark/Java-Bootcamp-Class-Demo
/jpa_demo2_inheritance/db_scripts/demo2_queries.sql
UTF-8
2,218
3.5
4
[]
no_license
-- ***************************************************************************** -- *** *** -- *** File Name: demo2_queries.sql *** -- *** ...
true
2d24929b29184c83d66cf6b7879a0575f3619682
SQL
victorjunior95/sd-08-mysql-vocabulary-booster
/desafio5.sql
UTF-8
1,216
3.859375
4
[]
no_license
-- 5 - Exiba os cargos com sua variação salarial e suas médias máxima e mínima mensal, -- considerando salários máximo e mínimo de um cargo como anuais -- Crie uma query que exiba 04 colunas: -- a) A primeira deve possuir o alias "Cargo" e exibir o nome do cargo. -- b) A segunda deve possuir o alias "Variação Sala...
true
4567a43f8eac005e8378e24c9267b2960eacc08a
SQL
alejandrito007/CFGS_1DAW
/BD/Tema 5/Creación y carga TCENTR-TDEPTO-TEMPLE.sql
ISO-8859-10
10,377
3.28125
3
[]
no_license
CREATE TABLE TCENTR (NUMCE INTEGER NOT NULL, NOMCE VARCHAR(25) NOT NULL, SENAS VARCHAR(25) NOT NULL, PRIMARY KEY(NUMCE)); CREATE TABLE TDEPTO (NUMDE INTEGER NOT NULL, NUMCE INTEGER, DIREC INTEGER, TIDIR CHAR(1), PRESU DECIMAL(3,0) NOT...
true
e6de24585e9f6aa2fde6ca48500de780ce454d08
SQL
peach0819/peach
/有用的/需求记录/0、2021年需求/11、群控打标小工具/hive - 标签统计(开心用).sql
UTF-8
5,777
3.28125
3
[]
no_license
with a as ( SELECT * FROM dwd_crm_chat_tag_bind_d WHERE dayid = '$v_date' ), crm_chat_tag_bind as ( SELECT a.* FROM a LEFT JOIN ( SELECT max(version) as v FROM a WHERE version_type = 0 ) ON 1=1 WHERE a.version = version.v ), tag_group as ( SELECT qw_user_id, qw_e...
true
bd654f3866bde028e5cdd85dd89bf3834a90de18
SQL
AzizPW/Oracle
/Datafile_Check.sql
UTF-8
2,394
3.53125
4
[]
no_license
--Datafile information COL FILE_NAME FOR A50; COL TBS FOR A20; COL OL FOR A10; SELECT /*+PARALLEL(8)*/ X.TABLESPACE_NAME TBS, X.FILE_NAME, ROUND(X.BYTES/1024/1024/1024, 2)SIZE_GB, Y.FREE_GB, ROUND(MAXBYTES/1024/1024/1024, 2)MAX_GB, X.STATUS, X.AUTOEXTENSIBLE AUEXT, INCREMENT_BY INCR, ONLINE_STATUS OL FROM DBA_DAT...
true
79f20004d21aa6f3d4f4b793711e0ac861803c87
SQL
dsbdo/researchManageSystem
/sql/help.sql
UTF-8
3,490
3.265625
3
[]
no_license
#更新值alter update users set work_id = '201800000001'; #删除一行 delete from users where user_id = 2; insert into users values(NULL, '201800000001', '2d0bd409adca8227ddf46906fc4768647e0db0516311055c9f69b49be7ec8af8','admin'); insert into users values(NULL, '201800010001', '2d0bd409adca8227ddf46906fc4768647e0db0516311055c...
true
915db0decd473a9baa907841038bae8f581aac5c
SQL
go2suresh1979/MyRepo
/Personal/Solaris/main/datawarehouse/sql/cr_itsm_node_staging.sql
UTF-8
1,268
3.703125
4
[]
no_license
# Create a staging table to contain Node table data plus a 'LAST_AIE_SYNC_DATE date' column for sync purpose. # Node_Staging table for ALL nodes, not just Kiosk nodes, this is ultimately what we want imported into ITSM CMDB. create table NODE_STAGING( NODE_ID number, NODE_NAME varchar2(256), CLIENT_NAME varchar2(128), ...
true
8239e3f4c425ab013351eaa9e7d7b2dea02a3491
SQL
locutusOO1/employee_tracker
/Assets/employee_tracker_seed.sql
UTF-8
1,922
2.875
3
[]
no_license
use employee_tracker_db; insert into department (name) values ('Facilities'); insert into department (name) values ('Finance'); insert into department (name) values ('HR'); insert into department (name) values ('IT'); insert into department (name) values ('Marketing'); insert into department (name) values ('Operations...
true
006901754a04fc7ddd23e8e77d34b51e7cf921ed
SQL
deivnino/PLSQL
/Indemnizaciones/Scripts/Antiguo(Ya_no_Usar)/Incremento 1/2. TABLES - no va/AUMENTO.sql
UTF-8
1,777
3.296875
3
[]
no_license
-------------------------------------------------------- -- DDL for Table AUMENTO -------------------------------------------------------- CREATE TABLE "AUMENTO" ( "FEC_AUMENTO" DATE, "CANO_ARRENDA_AUME" NUMBER(20,2), "VAL_ADMIN_AUM" NUMBER(20,2), "PERIODO" VARCHAR2(10), "ESTADO" NUMBER(20,0), "SOLICI...
true
23b37dc424f851dd052e95e7b9e9de99ab6d4df4
SQL
A-DiRusso/oms-project-app
/seed.sql
UTF-8
614
2.59375
3
[]
no_license
insert into customers (first_name, last_name, email, company) VALUES ('Bob', 'Sagat', 'afhv.fullhouse.com', null), ('Taylor', 'Swift', 'tswift@1984.com', null), ('Gary', 'Busey', 'coke@snowball.com', null); insert into users (company_email, password, first_name, last_name) VALUES ('Barry@Blockbuster', 'password', 'Bar...
true
f75f23739e84daac67d3cbee60ee0bd91255ef5d
SQL
henriquelopes99/BDIII
/BDIIIA06.sql
UTF-8
1,568
4.3125
4
[]
no_license
-- BDIIIA06 -- INNER JOIN DROP DATABASE bd3; CREATE DATABASE bd3; USE bd3; -- create table create table categorias ( id int(11) primary key auto_increment, nome varchar(200) not null ); create table produtos ( id int(11) primary key auto_increment, nome varchar(200) not null, valor float, categoria_id...
true
68d27b5a2426cc2a7af1be0f60bf3164cbb4facf
SQL
JasonZhLiang/MAVEN
/LuminousLMS/.svn/pristine/68/68d27b5a2426cc2a7af1be0f60bf3164cbb4facf.svn-base
UTF-8
14,782
3.640625
4
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Wed 29 Nov 2017 10:20:49 AM EST -- 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_M...
true
086c71d74a8535edded61358f6ab683f35c2c4ca
SQL
Rambo854/Chaos-Projects
/Assessment_3/ProjectData.sql
UTF-8
1,418
3.453125
3
[]
no_license
--Data for Assessment Three - Password Management Application. --This data in a actual project in the real world must be secured at all costs Create Table LogIn ( logID int (3) Primary Key, Username varchar (40), Password varchar (40) ); Create Table Menu ( accountID int (2) Primary Key, first...
true
66dd6d2b509c73a038079fd079edff17ef3220f5
SQL
User9000/K1000-Database-Queries
/Find Seven Installs.sql
UTF-8
340
3.59375
4
[]
no_license
SELECT InstallCounts.MACHINE_ID as MID, InstallCounts.Installs as Installs, MACHINE.NAME, MACHINE.OS_NAME, CLIENT_VERSION, MACHINE.LAST_INVENTORY from (SELECT MACHINE_ID, COUNT(*) as Installs FROM ORG1.MACHINE_SOFTWARE_JT MSJT GROUP BY MACHINE_ID) as InstallCounts JOIN MACHINE on MACHINE.ID = InstallCounts.MACHINE_ID ...
true
5cd92179cb49d6e0ff4805d23a087efddbcbc8a1
SQL
linshenhai/gitWorkspaces
/drugstore-core-service/src/main/resources/drugstore-mysql.sql
UTF-8
69,391
3.296875
3
[]
no_license
--公司 DROP TABLE IF EXISTS p_company; CREATE TABLE p_company ( id bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', code varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '编码', name varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '企业名称', short_name varchar(100) CHAR...
true
2a3f77925a99599aa2cd3ecc3a0264814cf68558
SQL
jacobrobertson/banyan
/banyan-domain/src/main/resources/sql/all-tables-create.sql
UTF-8
2,784
3.828125
4
[]
no_license
CREATE TABLE crawl ( crawl_id int NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), status_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, link char(254) DEFAULT NULL, status char(50) DEFAULT NULL, crawl_type char(40) DEFAULT NULL ); CREATE INDEX idx_crawl_link on crawl (link); CREATE I...
true
03e35c0091d34da90c0902f689b894902cfd6786
SQL
arpitsharma9/da-ud-big-data
/spark_sample.sql
UTF-8
1,775
3.828125
4
[]
no_license
/** below is a demo program for spark word count **/ wget https://raw.githubusercontent.com/apache/spark/master/README.md --Put the the file on hdfs hdfs dfs -mkdir /sparkdemo/ hdfs dfs -put README.md /sparkdemo/ hdfs dfs -ls /sparkdemo/ --The code of Word Count pyspark text_file =sc.textFile("/sparkdemo/READM...
true
55117bb7006f303b470da04e015b977356eb2455
SQL
nazbav/schedule-bot-service
/sql.sql
UTF-8
3,145
3.484375
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS `peers` ( `peer_id` int(11) NOT NULL COMMENT 'Êîä ïîëó÷àòåëÿ', `tag` varchar(255) NOT NULL COMMENT 'Òåã äëÿ ïîèñêà', `type` int(1) NOT NULL DEFAULT '1' COMMENT '1 -- VK, 0 -- Íèêóäà' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `replaces` ( `id` int(11) NOT...
true
b28bb716d06de728042062633533cf49a1b3d9ed
SQL
jakkritart1995/RandomFinal
/SQL_EXAMTabling_MySQL2+++.sql
UTF-8
49,206
3.375
3
[ "MIT" ]
permissive
-- -- ฐานข้อมูล: `randomfinal` -- CREATE DATABASE `randomfinal` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; USE `randomfinal`; -- -------------------------------------------------------- -- -- โครงสร้างตาราง `counttime` -- CREATE TABLE `counttime` ( `timetno` int(11) NOT NULL, `Tname1` varchar(50) NO...
true
62140701c92533966fd1e26eeec559c296716adb
SQL
SimeonKazandzhiev/Software-University-DataBase-module
/MySQL/Exams/Insta Influencers/solutions.sql
UTF-8
1,267
4.59375
5
[]
no_license
#INSERT INSERT INTO likes(article_id,comment_id,user_id) SELECT IF(u.id % 2 = 0,char_length(u.username),null), IF(u.id % 2 = 1,char_length(u.email),null), u.id FROM users AS u WHERE u.id BETWEEN 16 AND 20; #UPDATE UPDATE comments AS c SET comment = ( CASE WHEN c.id % 2 = 0 THEN 'Very good article.' WHEN c.id...
true
b6f772a6a59b0d8f42b31990bb011677d5bb9d7d
SQL
lsst-camera-dh/eTraveler-dbSchema
/dbMaint/migrate/migrate0_5_3-0_5_4.sql
UTF-8
1,073
2.671875
3
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
# deprecate unnecessary name fields in *ResultManual tables alter table IntResultManual modify name varchar(255) NULL COMMENT 'deprecated'; alter table FloatResultManual modify name varchar(255) NULL COMMENT 'deprecated'; alter table FilepathResultManual modify name varchar(255) NULL COMMENT 'deprecated'; alter table S...
true