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
9a797b9064471dc1f010faf045b547c7e24f61f8
SQL
shamanic/webapp
/src/server/db/create/scheme.sql
UTF-8
4,189
3.828125
4
[]
no_license
CREATE TABLE users ( id serial NOT NULL, uuid uuid NOT NULL, fullname character varying(100) NOT NULL, username character varying(50) NOT NULL, password character varying(100) NOT NULL, email character varying(355) NOT NULL, created_on timestamp without time zone NOT NULL, last_login timestamp without t...
true
5bf55b9ddb2b5ce45d97d54ee7fa698e85fa75a9
SQL
huynhkhoavin/karaokebooking
/UPDATE SQL.sql
UTF-8
8,832
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 22, 2016 at 01:04 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.5.35 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
ef26ac0f209272d13278c93a57872c1c471d4fd0
SQL
espm-poo-invest/espm.invest.currency
/src/main/resources/scripts/dbcurrency.sql
UTF-8
378
3.046875
3
[]
no_license
drop database dbcurrency; create database dbcurrency; use dbcurrency; CREATE TABLE currency ( id_currency varchar(36) NOT NULL, txt_name varchar(10) NOT NULL, c_date date NOT NULL, price double NOT NULL, PRIMARY KEY (id_currency) ); insert into currency(id_currency, txt_name, c_date, price) values...
true
099e0cc565fa73e176c15395c402468a029cb064
SQL
xxdoc/vb6-winpricing400
/scripts/2_house.sql
UTF-8
348
2.859375
3
[]
no_license
CREATE TABLE HOUSE ( HOUSE_ID ID_TYPE NOT NULL, HOUSE_NO CODE_TYPE NOT NULL UNIQUE, HOUSE_NAME CODE_TYPE NOT NULL UNIQUE, CREATE_DATE DATE_TYPE NOT NULL, CREATE_BY ID_TYPE NOT NULL, MODIFY_DATE DATE_TYPE NOT NULL, MODIFY_BY ...
true
327e032e22e4832a5c3eadc1a1a1377813be66df
SQL
freean2468/sea
/database/sea_user_log.sql
UTF-8
1,364
4.28125
4
[]
no_license
USE sea; DROP TABLE IF EXISTS sea_user_log; CREATE TABLE sea.sea_user_log( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, total_score INT UNSIGNED NOT NULL, highest_score INT UNSIGNED NOT NULL, last_dist INT UNSIGNED NOT NULL, total_dist BIGINT UNSIGNED NOT NULL, total_kill INT UNSIGNED NOT NULL, play_time INT UN...
true
c16c6d81279a6ae1a2ad6ee46f7974496651c1e0
SQL
putri16/CI
/news.sql
UTF-8
4,851
2.765625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 23, 2017 at 09:44 AM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
36db045a2357fc88347784018c137729d8f73946
SQL
Aronh01/Aparment-Manager
/Database.sql
UTF-8
9,021
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Czas generowania: 07 Kwi 2018, 16:36 -- Wersja serwera: 10.1.28-MariaDB -- Wersja PHP: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
47e49facbd3a818fa83806a7061195d33e69dd4d
SQL
foreverloop/azcourseprep
/share_dise.sql
UTF-8
2,802
3.921875
4
[]
no_license
--hive queries for disease data --question 1 OK CREATE DATABASE IF NOT EXISTS chronDB; USE chronDB; CREATE TABLE IF NOT EXISTS statdis( `YearStart` INT, `YearEnd` INT, `LocationAbbr` string, --state initials `LocationDesc` string, --state full name `DataSource` string, --categorical `Topic` string, --disease (categ...
true
d72c7c907d61f9a40c24f46b97a769b177f226df
SQL
TIANYI-YUAN/arcadia
/sql/2017-7-24-arcadia.sql
UTF-8
2,646
3.203125
3
[]
no_license
-- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 10.1.22-MariaDB - mariadb.org binary distribution -- 服务器操作系统: Win64 -- HeidiSQL 版本: 9.4.0.5125 -- ------------------------------------------------...
true
f5f5ea26afc006ea0287a5f7a9638858a45850c9
SQL
Short-Stacks/Koupler
/server/schema.sql
UTF-8
13,011
4.0625
4
[]
no_license
DROP DATABASE IF EXISTS app_db; CREATE DATABASE app_db; USE app_db; DROP TABLE IF EXISTS couples; DROP TABLE IF EXISTS activities; DROP TABLE IF EXISTS couples_activities; DROP TABLE IF EXISTS events; DROP TABLE IF EXISTS photos; DROP TABLE IF EXISTS total_messages; DROP TABLE IF EXISTS messages; DROP T...
true
d1a0d7f4b4d9e2e52af900a70669803346d8a36d
SQL
kokorozaci/instaBD
/TRIGGERS/check_one_value trigger.sql
UTF-8
266
3.140625
3
[]
no_license
DELIMITER $$ CREATE TRIGGER check_one_value BEFORE insert ON follows FOR EACH ROW begin IF NEW.follower_id = new.follows_id THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'Update Canceled. Birthday must be in the past!'; END IF; END$$ DELIMITER ;
true
813b15d3be925eb09f0e12d342567bf6d91b5132
SQL
majdbk/Homebell-Internship
/Project Code/ETL scripts/script_12__04_mkt_return.sql
UTF-8
5,584
3.46875
3
[]
no_license
DROP TABLE IF EXISTS scratch.online_conversions; CREATE TABLE scratch.online_conversions AS ( SELECT sm.lead_id, sm.lead_created_at, COALESCE(s.start_did,lead_created_did) as date_id, COALESCE(s.utm_id,sm.utm_id,MD5('na')) AS utm_id, primary_vertical_type_id AS...
true
0208377b78dca5385386997e558eb47efd89d819
SQL
raghavaravu/DatabaseBackup
/OCC_DEV/OCC_DEV/Tables/M_LOCATION_HOURS.sql
UTF-8
406
3.015625
3
[]
no_license
CREATE TABLE occ_dev.m_location_hours ( location_id NUMBER, sunday VARCHAR2(256 BYTE), monday VARCHAR2(256 BYTE), tuesday VARCHAR2(256 BYTE), wednesday VARCHAR2(256 BYTE), thursday VARCHAR2(256 BYTE), friday VARCHAR2(256 BYTE), saturday VARCHAR2(256 BYTE), start_date DATE, end_date DATE, CONSTRAIN...
true
2ee978a234ec924531a3dc190d07fc622e45d3be
SQL
zhengqingya/java-workspace
/SpringCloud系列/04-整合Seata+多数据源+sharding-jdbc/demo/doc/test.sql
UTF-8
7,836
3.234375
3
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS ds0; CREATE DATABASE ds0; USE ds0; SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for t_user0 -- ---------------------------- DROP TABLE IF EXISTS `t_user0`; CREATE TABLE `t_user0` ( `user_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMEN...
true
5dc123244e8b2bc6f3df31be10e8ebed7d18365a
SQL
medea-project/ipcc-acquire
/question02/count-cumulated-resp-participations-by-cli-country-group.sql
UTF-8
3,788
4.5
4
[ "CC-BY-4.0" ]
permissive
-- AUTHORS WITH MULTIPLE PARTICIPATIONS -- Q2. Who are the authors that have participated -- in more than 1, 2, 3, or 4 assessment reports -- while holding at least 1 of the 3 elected roles in the IPCC -- in each assessment report of participation -- (Coordinating Lead Author, Lead Author, Review Editor...
true
d1d035ca3be5dceeb298ec195f15799cd5eb8f33
SQL
SamZhao1992/appsaas
/src/main/resources/kong.sql
UTF-8
2,322
3.078125
3
[]
no_license
/* SQLyog Ultimate v12.09 (64 bit) MySQL - 5.5.28 : Database - kong ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@...
true
a2e5e6b578fe37fff3e0ed82b76f25406b55475a
SQL
ArisGoi/db-university
/query-GROUP-BY.sql
UTF-8
879
3.828125
4
[]
no_license
-- 1. Contare quanti iscritti ci sono stati ogni anno SELECT COUNT(`enrolment_date`) FROM `students` GROUP BY YEAR(`enrolment_date`) -- 2. Contare gli insegnanti che hanno l'ufficio nello stesso edificio SELECT COUNT(`id`) AS 'n_insegnanti', `office_address` FROM `teachers` GROUP BY `office_address` -- 3. Calcolare l...
true
1bcd3e95ec34ddd9f4f95c33587c77515b9546c5
SQL
bellmit/origin
/family_order/sql/TD_S_CPARAM/ExistsUserBill.sql
UTF-8
413
3.328125
3
[]
no_license
SELECT COUNT(1) recordcount FROM ts_a_bill a WHERE exists(select 1 from tf_a_payrelation where USER_ID=:USER_ID and partition_id=mod(:USER_ID,10000) and acct_id=a.acct_id and mod(acct_id,10000)=a.partition_id and user_id=a.user_id) AND acyc_id < (sele...
true
8a283ce3734f920cec87d34c79a864294d703a4a
SQL
devatsrs/neon.web
/dbv-2/data/schema/tblBillingSubscription.sql
UTF-8
852
2.671875
3
[ "MIT" ]
permissive
CREATE TABLE `tblBillingSubscription` ( `SubscriptionID` int(11) NOT NULL AUTO_INCREMENT, `CompanyID` int(11) NOT NULL, `Name` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `Description` longtext COLLATE utf8_unicode_ci, `InvoiceLineDescription` varchar(250) COLLATE utf8_unicode_ci NOT NULL, `ActivationFee`...
true
44176dbbf1d756e5d868a703ecafe7fe6811ee80
SQL
rjhdby/MotoAccidents.server
/sql/schema.sql
UTF-8
11,525
3.171875
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; DROP TABLE IF EXISTS `a...
true
d60a8cc19bd03ff51a1501df649e48e00c15f66f
SQL
roae/hello-world
/sql/11-profile-tables.sql
UTF-8
1,145
2.6875
3
[]
no_license
CREATE TABLE `profiles` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(11) DEFAULT NULL, `gender` varchar(20) DEFAULT NULL, `age` int(11) DEFAULT NULL, `photo_url` varchar(250) DEFAULT NULL, `cel` varchar(20) DEFAULT NULL, `tel` varchar(20) DEFAULT NULL, `birthday` date DEFAULT NULL, `...
true
c27b0d6d837defb3855d585a271413a1ec0dbbfe
SQL
shrutisethia04/HostLoyalty
/HLMigrationQueries/ChangeTriggersStatus.sql
UTF-8
601
3.640625
4
[]
no_license
--Compile Procedure CREATE OR REPLACE PROCEDURE ALTER_ALL_TRIGGERS(status VARCHAR2) IS CURSOR c_tr IS (SELECT 'ALTER TRIGGER ' || trigger_name AS stmnt FROM user_triggers); BEGIN IF status NOT IN ('ENABLE', 'enable', 'DISABLE', 'disable') THEN DBMS_OUTPUT.PUT_LINE('ONLY ''ENABLEDISABLE'' ACCEPTED AS PAR...
true
8d7c23db86bd1955ca3bb023b8534e1fddb18035
SQL
AdityaJNair/AskConsultantApp
/askconsultant/askconsultant-model/dbscripts/database.sql
UTF-8
1,330
3.5625
4
[]
no_license
--Please add all your database scripts below --The intention is to have manual scripts if required during deployments on server DROP TABLE IF EXISTS person; CREATE TABLE `person` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `email` varchar(255) DEFAULT NULL, `firstName` varchar(255) DEFAULT NULL, `lastLogin` da...
true
ec857143ac0ee2bcd504dabbd60e9d8a40daa021
SQL
Tmangar1222/Bongiorno
/foodwebsite.sql
UTF-8
4,442
3.421875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: May 03, 2021 at 11:10 AM -- Server version: 5.7.24 -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
4ce734a922f50d49dcf126921d1dbc6f29e4143f
SQL
xangcastle/multipagos
/estadistica_ciclo.sql
UTF-8
1,152
3.109375
3
[]
no_license
-- View: metropolitana_estadistica_ciclo -- DROP VIEW metropolitana_estadistica_ciclo; CREATE OR REPLACE VIEW metropolitana_estadistica_ciclo AS SELECT (btrim(to_char(metropolitana_estadistica.ciclo, '00'::text)) || btrim(to_char(metropolitana_estadistica.mes, '00'::text))) || "right"(metropolitana_estadistica.ano:...
true
c663e9abec47573b1bc0037ee43308d7a64d6020
SQL
PJSC-EURASCLIMAT/eurasclimat
/db/migrate-2015-02-04.sql
UTF-8
1,330
3.515625
4
[]
no_license
SET FOREIGN_KEY_CHECKS=0; CREATE TABLE IF NOT EXISTS `contractors_engsystypes` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `contractor_id` int(10) unsigned NOT NULL, `engsystype_id` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `contractor_id` (`contractor_id`), KEY `engsystype_id` (`engsystype_i...
true
7d18806ec3ade4242bfc38f0b08beeefb44236f6
SQL
Ci61/QCM_Live-de-questions-en-ligne
/pweb19_jin.sql
UTF-8
9,281
3.25
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Mer 20 Novembre 2019 à 17:23 -- Version du serveur : 5.6.17 -- Version de PHP : 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
true
bb86a71b67ccd3ad799fda71726570cf914407e3
SQL
charles-wangkai/leetcode
/leetcodify-similar-friends.sql
UTF-8
498
4.28125
4
[]
no_license
SELECT t1.user1_id, t1.user2_id FROM ( SELECT DISTINCT l1.user_id AS user1_id, l2.user_id AS user2_id FROM Listens l1 JOIN Listens l2 ON l2.user_id <> l1.user_id AND l2.song_id = l1.song_id AND l2.day = l1.day GROUP BY l1.user_id, l2.user_id, l1.da...
true
21ffaf510063c03d6de5b5b1b08168d911575051
SQL
rafaelpadovezi/efcore-tests
/docs/savechanges-logs.sql
UTF-8
2,854
2.859375
3
[]
no_license
dbug: 12/02/2021 08:29:45.665 CoreEventId.SaveChangesStarting[10004] (Microsoft.EntityFrameworkCore.Update) SaveChanges starting for 'TestContext'. dbug: 12/02/2021 08:29:45.669 CoreEventId.DetectChangesStarting[10800] (Microsoft.EntityFrameworkCore.ChangeTracking) DetectChanges starting for 'TestContext'...
true
c99bdedb8e7cac481a04156f1f71bdd9db1fcd4f
SQL
Adam-Hayes/library_godel
/src/main/resources/db/migration/V1.0.1__create_tables.sql
UTF-8
376
3.015625
3
[]
no_license
create table director ( id serial primary key, first_name character varying(255), last_name character varying(255), birth_date date ); create table movie ( id serial primary key, director_id integer references director (id), name character varying(255), relea...
true
47eccaec878a72dc4939f9f47210a65273dc8980
SQL
fboda/p3_global_health_study
/SQL/DML requetes/MySQL-Q19-1 - Ratio_Disp_Alim_Hab.sql
UTF-8
408
2.984375
3
[]
no_license
Select CPAYS, PAYS, round(sum(QT_DISPALI_KCAL),2) DA_KCAL_P_J_2013 From dispo_alim Where ANNEE = 2013 and QT_DISPALI_KCAL is not NULL Group by CPAYS, PAYS Order by DA_KCAL_P_J_2013 desc Limit 10; Select CPAYS, PAYS, round(sum(QT_DISPROT),2)/1000 DA_PROT_KG_P_J_2013 From dispo_alim Where ANNEE = 2013 and Q...
true
651ee34cdf171a8177aca465824f40aded31c377
SQL
romanmussi/rfietp
/app/config/sql/scripts_migracion/script_migracion_v1.7.14.sql
UTF-8
694
3.53125
4
[]
no_license
-- -- Name: version_id_seq; Type: SEQUENCE; Schema: public; Owner: www -- CREATE SEQUENCE version_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.version_id_seq OWNER TO www; -- -- Name: version; Type: TABLE; Schema: public; Owner: www; Tablespace: -- CRE...
true
5b261788abbf7019b796e726495f25a212f8bb94
SQL
renanfavaro/sistemaEstoque
/estoque/estoque.sql
UTF-8
3,777
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 30-Ago-2021 às 20:48 -- Versão do servidor: 10.4.19-MariaDB -- versão do PHP: 8.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
true
21f040c915a25dbfdea860495080f7730e699cbb
SQL
dragz17/learnPDO
/webpeg versi tabel.sql
UTF-8
3,297
3
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 02, 2016 at 05:07 PM -- Server version: 5.5.36 -- PHP Version: 5.4.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
20ebb8f2cba3b777e84b66c654725b41fcb43e9d
SQL
saini5um/Misc
/UIM_Network_Map.sql
UTF-8
1,430
3.46875
3
[]
no_license
select * from user_tables where table_name like '%PROP%'; select * from network where entityid = 75075106 order by createddate desc; select * from network where id = '7275006'; select * from networknode where network = 75075342 order by createddate desc; select * from NETNODE_LOGDEVREL order by createddate desc; ...
true
c43e5e0ae752ee6dca8bbe2535a7413681718fa6
SQL
sean-blessing/sql_instruction
/bank_db/bank_db.sql
UTF-8
1,291
3.53125
4
[]
no_license
-- create and select the database drop database if exists bank_db; create database bank_db; use bank_db; -- create the accounts table create table Accounts ( ID int not null primary key auto_increment, account_holder varchar(50) not null, balance decimal(6,2) not null, fees decimal (6,2) not null ); ...
true
f349b5e63393116d93f1c0c77f95924f373650f8
SQL
yanru-jasmine/LeetCode-SQL-Summary
/Questions_by_ID/570_Managers_with_at_Least_5_Direct_Reports.sql
UTF-8
302
4.1875
4
[]
no_license
-- Solution 1: Subquery SELECT name FROM employee WHERE id in ( SELECT managerid FROM employee GROUP BY managerid HAVING COUNT(*) >=5 ); -- Solution 2: Join SELECT e2.name FROM employee e1 JOIN employee e2 ON e1.managerid = e2.id GROUP BY e2.id, e2.name HAVING COUNT(e1.id) >= 5;
true
c518d8c89ab9ddd90bbc31d737c25e189c8a94c4
SQL
Linuxgt/oracle-sql-developer
/IISDB-DEV.sql
UTF-8
241
3.109375
3
[]
no_license
-- 查看当前用户下的所有表 select table_name from user_tables; -- 查看所有表注释 select TABLE_NAME , COLUMN_NAME , COMMENTS , ORIGIN_CON_ID from user_col_comments where table_name in (select table_name from user_tables);
true
70a08bf00fdeaf14740740dc6714d2e0d72cec54
SQL
Systemsadms/csatestprep
/intranet/bd/pagos.sql
UTF-8
1,588
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 17-12-2014 a las 19:26:34 -- Versión del servidor: 5.1.41 -- Versión de PHP: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 S...
true
465e2d9beed98363611c382e711a00353481da62
SQL
radtek/abs3
/sql/mmfo/cdb/Table/enumeration_value.sql
UTF-8
3,811
3.53125
4
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/CDB/Table/ENUMERATION_VALUE.sql =========*** Run PROMPT ===================================================================================== PROMPT *** Create table ENU...
true
0443efb7bab7f2fe039049035ab2be4824a68d7e
SQL
naweak/hyper
/deploy/dump.sql
UTF-8
3,251
3.453125
3
[]
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
9af4cf83feb7d98f2210519f10871a4f569647c6
SQL
Pandaih/SQL-Study
/收入表相关的脚本.sql
UTF-8
1,022
2.84375
3
[]
no_license
select * from zwfxdev.tb_comm_serv_fee where acc_nbr='ADSLS2531290838' select sum(charge)/100,due_income_code from zwfxdev.f_sure_data_list_now where acc_nbr='ADSLS2531290838' group by due_income_code select * from dim_due_income_new where due_income_code='SR2011030101040102' --,'SR2011030101030103','SR2011030...
true
4c54014abd0f302ef29579b54314b073c9d19ca2
SQL
szopenkrk/mgr
/!baza danych/db.sql
UTF-8
14,159
3.234375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 3.5.7 -- http://www.phpmyadmin.net -- -- Host: mysql5:3306 -- Czas wygenerowania: 22 Kwi 2013, 01:18 -- Wersja serwera: 5.5.29-MariaDB -- Wersja PHP: 5.3.20 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
f34ff3b903ac868c5fd45d59a7b02db956a67499
SQL
kushubham9/keeper-slackApp
/myapp/mysql/migration.sql
UTF-8
2,176
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 12, 2018 at 06:12 AM -- Server version: 5.5.57-0ubuntu0.14.04.1 -- PHP Version: 7.0.22-2+ubuntu14.04.1+deb.sury.org+4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET ...
true
dc3d0f131f06c6dada30513cf0c4b13b0fad9efd
SQL
MaximMoinat/CommonDataModel
/inst/ddl/5.4/synapse/OMOPCDM_synapse_5.4_primary_keys.sql
UTF-8
3,720
2.625
3
[ "Apache-2.0" ]
permissive
-- azure synapse CDM Primary Key Constraints for OMOP Common Data Model 5.4 ALTER TABLE @cdmDatabaseSchema.PERSON ADD CONSTRAINT xpk_PERSON PRIMARY KEY NONCLUSTERED (person_id) NOT ENFORCED; ALTER TABLE @cdmDatabaseSchema.OBSERVATION_PERIOD ADD CONSTRAINT xpk_OBSERVATION_PERIOD PRIMARY KEY NONCLUSTERED (observation_p...
true
a854f75d339dade7a3e1d3a486e44f5cb2c3bfc6
SQL
yunkangmin/sql
/Effective-SQL-master/MySQL/Chapter 01/Listing 1.001.sql
UTF-8
486
3.640625
4
[]
no_license
-- Ensure you've run Item02StructureAndData.sql -- in the Sample Databases folder in order to run this example. USE Item02Example; SELECT st.SalesID, c.CustFirstName, c.CustLastName, c.Address, c.City, c.Phone, st.PurchaseDate, m.ModelYear, m.Model, e.SalesPerson FROM SalesTransactions st INNER JOIN Customer...
true
92a45111153c210399698a70aa57eed698b013aa
SQL
deivnino/PLSQL
/Sibo/BASE_DATOS/DELTA_4/scripts_quartz/03permisos_usuario_conexionQuartz_SYS.sql
UTF-8
390
3.109375
3
[]
no_license
SET SERVEROUTPUT ON; DECLARE CURSOR C_SELECT IS SELECT TABLE_NAME FROM dba_tables WHERE TABLESPACE_NAME = 'SIBO_DATOS' AND OWNER = 'STG_SIBO_QUARTZ'; CMD VARCHAR2(200); BEGIN FOR C IN C_SELECT LOOP CMD := 'GRANT SELECT , INSERT, UPDATE, DELETE ON STG_SIBO_QUARTZ.' || C.TABLE_NAME || ' TO C_APP_STG_SIBO'; ...
true
05e3f5600ba730030e6038dab77fc728774d41d5
SQL
Nusrat-mim/Kidcare
/kidcaredb.sql
UTF-8
4,032
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 16, 2021 at 09:14 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
d12d63fe4794ad0af49d3a51ddba0c9265959543
SQL
madgh0st/agata-etl
/src/main/resources/sql/clean/fssp/3_clean_table_fssp.sql
UTF-8
900
2.78125
3
[]
no_license
SELECT x.code, s.name_do, x.fileName, x.sheetName, x.modificationDate, x.loadDate, x.debtorName, x.normDebtorName AS counterpartyName, coalesce(udf_convert_to_local_date(x.executiveDocumentDate), udf_...
true
42a50a15bcd526ea5791674ae328b26a20994cf6
SQL
josepitteloud/VESPA
/capabilities/SkyGo_ComScore/V239_SkyGoComscore_2-1_ChannelMap_manual_mappings__LOCAL.sql
UTF-8
8,386
3.125
3
[]
no_license
/* $$$ I$$$ I$$$ $$$$$$$$ I$$$ $$$$$ $$$ ZDD DDDDDDD. ,$$$$$$$$ I$$$ $$$$$$$ $$$ ODD ODDDZ 7DDDD ?$$$, I$$$ $$$$. $$$$ $$$= ODD DDD NDD $$$$$$$$= I$$...
true
77089b83e92b54946bdb9cd474c5c7f6671d4750
SQL
zhuari/cs3200
/db_final_ingredients.sql
UTF-8
2,516
2.96875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64) -- -- Host: localhost Database: db_final -- ------------------------------------------------------ -- Server version 8.0.23 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS...
true
7e197798600b1857379eb8c761f4c08ab8c15020
SQL
PajGUN/shop
/shop/src/main/resources/db/migration/V1_1__Add_objects.sql
UTF-8
939
2.734375
3
[]
no_license
insert into store (address, name) values ('Свтелановский пр.79', 'Северный'), ('Комендантский пр.4', 'Западный'), ('Московский пр.65', 'Южный'); -- insert into product (article_number, type, product_name, price) values (10035600,'VIDEO_CARD','видеокарта RTX2080',70000), (...
true
c3bde61bddc6864f07c68c46558ed7a2dd90cb33
SQL
SteveQQ/SchoolRegister
/sql/schema_builder.sql
UTF-8
1,670
4.28125
4
[]
no_license
drop database if exists sql_register; create database if not exists sql_register; use sql_register; drop table if exists students_table; create table students_table ( Id integer not null auto_increment primary key, FirstName varchar(30) not null, LastName varchar(30) not null, DateOfBirth date not null, ...
true
3a03dbad35ef693e1274310ebbd7e22e3e55d623
SQL
nubiix/Proyecto_Licencias
/bd/proyecto_final(1).sql
UTF-8
5,455
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 09, 2017 at 07:50 -- Server version: 10.1.16-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
14bd4ad91c11b576647bb915773233319f1df58f
SQL
dimisjim/SQl
/0. views.sql
UTF-8
254
3.265625
3
[]
no_license
/*13 CREATE VIEW View1 AS SELECT title,sum(SALES_DISKS.quantity) as NumberOfCopiesSold FROM DISKS, SALES_DISKS WHERE DISKS.diskid=SALES_DISKS.diskid; group by title; SELECT title, NumberOfCopiesSold from View1 where NumberOfCopiesSold>100; */
true
520343dad071f9cd00edac204c3cefa39a2e53ee
SQL
kapion/PartsFinder
/src/main/resource/parts_table.sql
UTF-8
407
3.3125
3
[]
no_license
-- Drop table -- DROP TABLE public.parts_table CREATE TABLE public.parts_table ( id serial NOT NULL, part_number varchar NOT NULL, part_name varchar NOT NULL, vendor varchar NULL, qty int4 NULL, shipped timestamp NULL, receive timestamp NULL, CONSTRAINT parts_table_id_pk PRIMARY KEY (id) ) WITH ( OIDS=FALSE ...
true
5506a1f897f4ce267b148c5e973e80c79420dafc
SQL
aujisti-ador/MedicalExpress-Latest-1.1
/medex/tbl_blood_request.sql
UTF-8
2,926
2.796875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 10, 2018 at 04:15 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
68a1a8bc3b756512b6113069cbb6f204218ef62a
SQL
NationsAnarchy/Rocket_11
/SQL Assignment/Assignment_3.sql
UTF-8
2,389
3.828125
4
[]
no_license
USE TestSystem2; -- Q1: Chèn 10 bản ghi vào trong bảng Trainee đã tạo từ Assignment 1 INSERT INTO Trainee (Full_Name, Birth_Date, Gender, ET_IQ, ET_Gmath, ET_English, Training_Class) VALUES(); INSERT INTO Trainee (Full_Name, Birth_Date, Gender, ET_IQ, ET_Gmath, ET_English, Training_Class) VALUES(); INSERT I...
true
79c986539b9f978357c4af1ed576929d7308e038
SQL
SOM-Research/gila
/database/old-scripts/lb_label_basic_stats.sql
UTF-8
293
3.203125
3
[]
no_license
create view label_basic_stats as select label_id, count(distinct issue_id) as num_issues, count(issue_id) as num_comments, count(distinct user_id) as num_distinct_contributors from label_issue_comments group by label_id order by label_id; select * from label_basic_stats;
true
ef3c94a231116fdb27b5fdbff35563ec8b206730
SQL
karfay/SSE
/uriage-genka/db/migrate/0001/create/010-table/.svn/text-base/emp_auth_relation.sql.svn-base
UTF-8
201
2.515625
3
[ "MIT", "Apache-2.0" ]
permissive
create table EMP_AUTH_RELATION ( EMP_NO varchar(10) not null, AUTH_ID int not null, SYS_ID varchar(10) not null, constraint EMP_AUTH_RELATION_PK primary key(EMP_NO, AUTH_ID, SYS_ID) );
true
09236e6511b6d35af1af45d22da519c3145e845c
SQL
An5human/Pokemon-Database-Pokedabe-
/INSERT statement/Pokedabe_CREATE QUERY.sql
UTF-8
4,341
3.53125
4
[]
no_license
\c postgres DROP DATABASE IF EXISTS PokeDabe; CREATE DATABASE PokeDabe; \c pokedabe CREATE TABLE Type ( Name VARCHAR(30) NOT NULL, Descrpition VARCHAR(530) NOT NULL, PRIMARY KEY (Name) ); CREATE TABLE Region ( Name VARCHAR(30) NOT NULL, Game VARCHAR(30) NOT NULL, Map VARCHAR(200) NOT NULL, P...
true
fb8e6ebe1f35954fba2abc2a1f9cccb7fc8f5bc1
SQL
diyar33/SambaPost
/sambapost.sql
UTF-8
4,759
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Anamakine: 127.0.0.1 -- Üretim Zamanı: 25 Ağu 2020, 02:36:27 -- Sunucu sürümü: 10.4.11-MariaDB -- PHP Sürümü: 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
true
8764b794541bf57a200e200882e3ad552847d762
SQL
ankurkasar/hello-world
/X_PKG_FIN_GET_SPOT_RATE.sql
UTF-8
21,681
3
3
[]
no_license
CREATE OR REPLACE PACKAGE X_PKG_FIN_GET_SPOT_RATE AS FUNCTION get_spot_rate_with_inverse ( i_from_curr IN fid_license.lic_currency%TYPE, i_to_curr IN fid_territory.ter_cur_code%TYPE, i_period IN DATE ) RETURN NUMBER DETERMINISTIC; FUNCTION get_spot_rate ( ...
true
83141da45de543b27b1bebcd46b2cc89b28452ba
SQL
jabautista/GeniisysSCA
/src/main/resources/sql/procedures/aeg_parameters_giacs012.prc
UTF-8
4,254
3.015625
3
[]
no_license
DROP PROCEDURE CPI.AEG_PARAMETERS_GIACS012; CREATE OR REPLACE PROCEDURE CPI.aeg_parameters_giacs012 (p_gacc_tran_id GIAC_ACCT_ENTRIES.gacc_tran_id%TYPE, p_module_name GIAC_MODULES.module_name%TYPE, p_message OUT VARCHAR2) IS v_module_id GIAC_MODULES.m...
true
ab9fcd11f78a9486876c725882979d8d11066311
SQL
Zhenghao-Liu/LeetCode_problem-and-solution
/1159.市场分析II/solution.sql
UTF-8
696
4.28125
4
[]
no_license
# 别用item_id去判断,谁能想到不同的item_id还可能是同一个牌子 # Write your MySQL query statement below SELECT C.user_id AS seller_id, IF(C.favorite_brand=D.item_brand,'yes','no') AS 2nd_item_fav_brand FROM Users AS C LEFT OUTER JOIN ( SELECT A.seller_id,A.item_id,B.item_brand FROM ( ...
true
71fe92bc77336db0c2ca04ff3799af612869c44c
SQL
premjai/product
/db/prem.sql
UTF-8
2,685
3.390625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 21, 2019 at 07:17 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
c88db72f6c1b40c41341e501a04ae68511547864
SQL
nvinchh/CSC540-Library-Management
/sqlcode/Dup/Queue_Conference_Proceedings.sql
UTF-8
870
2.984375
3
[]
no_license
create or replace procedure queueConf(patron_Id in VARCHAR2, cp_confnum in VARCHAR2,cpLid in NUMBER, pty in CHAR) IS tcount NUMBER; countst NUMBER; BEGIN SELECT count(*) INTO tcount FROM queue_confpro WHERE l_id = cpLid AND resource_id = cp_confnum; if(pty = 'S') then INSERT into queue_confpro values(cp_conf...
true
b4d42f5aaeb384f0abbaa3ed74b3c8f9b39b4fcb
SQL
ybyao07/jax-rs2-atup
/document/atup-ddl/atup-suite.sql
UTF-8
657
2.984375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `jaxrs2_atup`; USE `jaxrs2_atup`; DROP TABLE IF EXISTS `test_suite`; CREATE TABLE `test_suite` ( `suite_id` int(11) NOT NULL AUTO_INCREMENT, `suite_name` varchar(255) DEFAULT NULL, `suite_status` int(11) DEFAULT NULL, `suite_type` int(11) DEFAULT NULL, PRIMARY KEY (`suite_id`),...
true
4e65d558bbb4f0fe6a3e6c0795a3d52e8344889c
SQL
GudiVaraprasad/Databases
/SQL/SQL Practice in LAB/LAB6/Queries.sql
UTF-8
2,485
4.0625
4
[]
no_license
CREATE TABLE Trip_guides(eno number(3) NOT NULL, ename varchar2(18), hrate number(2), monthsemp number(2), PRIMARY KEY(eno)); CREATE TABLE Trip_locations(lcode number(4) NOT NULL, lname varchar2(21), PRIMARY KEY(lcode)); CREATE TABLE Trip_Expenditions(lcode number(4) NOT NULL, eno number(3) NOT NULL, hworked numb...
true
8a310a124d61351df75fe19e0cf2ef1bced323d8
SQL
hunterbmt/xml_project
/src/main/resources/db/SQLScript.sql
UTF-8
4,405
3.65625
4
[]
no_license
CREATE TABLE `tbl_users`( `id` int(10) NOT NULL AUTO_INCREMENT, `email` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `fullname` varchar(255) NOT NULL, `birthday` DATETIME NULL, `address` varchar(255) NULL, `phone` varchar(255) NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSE...
true
7fb1f8e03b9d332f18c4c1a47435391c2d555165
SQL
andreioprisan/apignite
/apignite_localhost_5-18-12_localhost.sql
UTF-8
8,564
3.109375
3
[ "BSD-2-Clause" ]
permissive
# ************************************************************ # Sequel Pro SQL dump # Version 3408 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: localhost (MySQL 5.5.9) # Database: apignite # Generation Time: 2012-05-18 22:03:54 +0000 # *************************************************...
true
fc99ad06edfd5c0f75e6d291980139f8cb115845
SQL
EduSantosBrito/dental-db
/Table/wp_term_relationships.sql
UTF-8
1,897
2.78125
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.12, for Win64 (x86_64) -- -- Host: localhost Database: wp_dental-palmeiras -- ------------------------------------------------------ -- Server version 5.5.5-10.1.31-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CH...
true
8a384441006ac12ba7117f1c4ce1f22231a4e84c
SQL
Agilefant-Finnucks/agilefant
/doc/sql/100519_fix-backlogs-and-ranks.sql
UTF-8
961
3.796875
4
[ "MIT" ]
permissive
DROP PROCEDURE IF EXISTS UpdateBacklogsAndRanks; DELIMITER // CREATE PROCEDURE UpdateBacklogsAndRanks() BEGIN DECLARE backlog_loop_done BOOL DEFAULT FALSE; DECLARE story_id INT; DECLARE target_backlog_id INT; DECLARE cur_update CURSOR FOR SELECT s.backlog_id, st.id FROM storyrank s JOIN stor...
true
7313b7831cdaffa3f61ab0be3399d03d7ea20d88
SQL
arsenitem/ICStask3
/MarksCREATE.sql
UTF-8
209
3.078125
3
[]
no_license
use University; CREATE TABLE Marks ( [Mark_id] INT IDENTITY (1, 1) NOT NULL, [Lesson] INT NOT NULL, [Student] INT NOT NULL, [Mark] INT NOT NULL, PRIMARY KEY CLUSTERED ([Mark_id] ASC) );
true
7da78a149b620a6da3f273e4ca87c96892cb6738
SQL
igordahora/lapemm
/doc/MySql/lapemmdb.sql
UTF-8
15,681
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tempo de Geração: -- Versão do Servidor: 5.5.24-log -- Versão do PHP: 5.3.13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SE...
true
51d389d4ea2722eccf7871a9e2189b63ce15e609
SQL
199692sulei/student
/studenttb.sql
UTF-8
1,337
2.953125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50532 Source Host : localhost:3306 Source Database : studenttb Target Server Type : MYSQL Target Server Version : 50532 File Encoding : 65001 Date: 2017-03-05 17:16:20 */ SET FOREIGN_KEY_CHECKS=0...
true
2bbe450fcb3d691435aef4c5083d76697741c7fe
SQL
fbascopeslz/primerParcialArquiMVC
/PrimeParcialArqui.sql
UTF-8
1,664
3.53125
4
[]
no_license
CREATE TABLE Persona( id INT PRIMARY KEY AUTO_INCREMENT, nombre VARCHAR(150) NOT NULL, ci VARCHAR(30) NOT NULL, telefono INT, email VARCHAR(150) ); INSERT INTO Persona(nombre, ci, telefono, email) VALUES('Marcelo Tinelli', '5429173', 618351970, 'marcelito@gmail.com'); INSERT INTO Persona(nombre, ci, telefono, ema...
true
791772238972f5c5d35d6dfc25f2df9f0cf95d56
SQL
anchalcpu/login.registration-in-php
/datsbase/General_Store.sql
UTF-8
1,806
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jan 05, 2021 at 07:27 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
625993c3c2566d9b1eb73df2e3e17c356b325d4b
SQL
harlancleiton/SQL
/Banco de Dados/Questão_3.sql
UTF-8
497
3.921875
4
[]
no_license
/* 3- Relao de todos os jogadores (com os apelidos: Cdigo, Nome Jogador e Nome Clube) da federao cujo uf BA com seus respectivos clubes. */ select -- Quais os dados sero Projetados ? j.cod_jog as 'Cdigo', j.nome as 'Nome Jogador', c.nome as 'Nome Clube' from -- Qual a origem dos dados ? Clu...
true
0da685bbab1895b24ba54a93f2f349c5428734c6
SQL
vietplayfuri/dnt-backend
/dnt.database/migration/schema/V1.4/V1.4.8__Add_approval_details_table.sql
UTF-8
297
3.0625
3
[]
no_license
CREATE TABLE public.approval_details ( id uuid NOT NULL DEFAULT uuid_generate_v1(), approver_id uuid NOT NULL, created_by_id uuid NOT NULL, created TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT (now() AT TIME ZONE 'utc') ); CREATE INDEX approval_details_idx ON approval_details (approver_id);
true
ac54efd2bfe56ff70f08427991df647545605e87
SQL
jmrlibrary/db_maintenance-postgresql
/lib/Circa.sql
UTF-8
2,016
3.75
4
[]
no_license
SELECT --item_view.id, -- item_record_property.item_record_id, item_view.barcode, item_view.icode1 as "icode1", -- the locationy thing (rotating, etc) -- suppressed or not : -- these fields always match item_view.icode2 as "icode2", -- enum '-' , 'n' SUPPRESSED item_view.is_suppressed as "iS...
true
de3240e3dfc5d26f676b907dab3ce6d0a6b75267
SQL
Mr-huanghaihe/DangDang_huanghh
/src/main/resources/dd_address.sql
UTF-8
1,338
2.953125
3
[]
no_license
/* Navicat Oracle Data Transfer Oracle Client Version : 10.2.0.5.0 Source Server : dangdang Source Server Version : 100200 Source Host : 127.0.0.1:1521 Source Schema : HR Target Server Type : ORACLE Target Server Version : 100200 File Encoding : 65001 Date: 2019-01-21 18:02:47 */...
true
c57972ca7b412bc513b62689f5584a59d3d5300f
SQL
xli103/CS562-Project
/DatabaseKnockout-master/example/example5.sql
UTF-8
388
3.640625
4
[]
no_license
create view view1 as select cust, prod, avg (quant) as avg_1 from sales group by cust, prod ; create view view2 as select a.cust, a.prod, avg (b.quant) as avg_2 from view1 a, sales b where a.cust <> b.cust and a.prod=b.prod group by a.cust, a.prod ; select a.cust, a.prod, a.avg_1 as "1_avg_quant", b.avg_2 as "2_avg_q...
true
17e1d61c500bc6392666c626539f2916658a0d99
SQL
heafod/hexiao
/scripts/hexiao_full.sql
UTF-8
5,984
2.875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.21, for osx10.13 (x86_64) -- -- Host: 127.0.0.1 Database: hexiao -- ------------------------------------------------------ -- Server version 5.7.21 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /...
true
5e169d16644f9438fc8ff9d660f3153b18915ce5
SQL
Breaker-93/spring-server-integration
/sql/book.sql
UTF-8
1,735
2.96875
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : localhost-mysql5.7.23 Source Server Type : MySQL Source Server Version : 50723 Source Host : localhost:3307 Source Schema : demo_test Target Server Type : MySQL Target Server Version : 50723 File Encoding : 65001 Date:...
true
57c01e4d895c4f9bf5c6258093135ab7268ceb6b
SQL
RomanovAleksandr/db
/lab3/bssql.sql
UTF-8
4,579
4.53125
5
[]
no_license
--1. INSERT --1. Без указания списка полей INSERT INTO actor VALUES ('Иван', 'Иванов', '2012-06-18', 1); --2. С указанием списка полей INSERT INTO actor (firstname, lastname, birthday, gender) VALUES ('Петр', 'Петров', '1990-02-11', 1); --3. С чтением значения из другой таблицы INSERT INTO author(firstname, lastname, b...
true
c2a1e563b44079bad181309f23331a7046d627d9
SQL
ericpresas/ws-1
/db/script.sql
UTF-8
4,164
2.53125
3
[]
no_license
CREATE TABLE gallery ( id INT(10) unsigned NOT NULL AUTO_INCREMENT, name VARCHAR(200) COLLATE utf8_unicode_ci NOT NULL, description VARCHAR(500) COLLATE utf8_unicode_ci, src VARCHAR(200) COLLATE utf8_unicode_ci NOT NULL, format VARCHAR(50) COLLATE utf8_unicode_ci NOT NULL, createdat TIMESTAMP DEFAULT CURREN...
true
b6dc8e09ec7033abb96169f69b108580916042f0
SQL
annomusa/jks
/sitruk.sql
UTF-8
9,213
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 23, 2015 at 08:19 PM -- 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
b653d6415beb956dda56cd2976a6902581748153
SQL
mzmacaulaydb/stock
/TASK 5/5E.SQL
UTF-8
287
3.734375
4
[]
no_license
-- The total value of the product assets of the business -- Tables involved= BQTY, Prices -- Output = total value of the product assets (Calculated field) based on current price SELECT SUM( SELECT BQTY.QTY * PRICES.PRICE AS TOTAL FROM BQTY, PRICES WHERE BQTY.PID=PRICES.PID);
true
f8c4c7e5040aeae4339a5978dfe0994f7d1336dd
SQL
radtek/Oracle-4
/SQL/Administração/Scripts/Tab_deps.SQL
UTF-8
1,035
2.890625
3
[]
no_license
set serverout on size 400000 set lines 2000 set verify off set feedback off Accept owner Prompt 'Digite o Owner da Tabela: ' Accept object_name Prompt 'Digite o Nome da Tabela : ' Declare wrk_owner varchar2(1000) := upper('&owner'); wrk_object_name varchar2(1000) := upper('&object_name'); wrk_sq...
true
0444f141e035bcfdbebebaa377ef9f534612d339
SQL
guni12/anax
/sql/ddl/user_mysql.sql
UTF-8
897
3.640625
4
[ "MIT" ]
permissive
-- -- Creating a User table and inserting example users. -- Create a database and a user having access to this database, -- this must be done by hand, se commented rows on how to do it. -- -- -- Create a database for test -- -- DROP DATABASE anaxdb; -- CREATE DATABASE IF NOT EXISTS anaxdb; USE anaxdb; -- -- Creat...
true
2546c6b1f176b868196eb1cb947bcbb60aa67b24
SQL
atronah/firebird_utils
/prc_aux_hash_dict.sql
UTF-8
1,929
3.40625
3
[]
no_license
set term ^ ; create or alter procedure aux_hash_dict( existed_dict varchar(4096) , key varchar(255) , new_value varchar(255) = null , ITEMS_DELIMITER varchar(16) = null , KEY_VALUE_DELIMITER varchar(16) = null ) returns( key_hash bigint , found_value varchar(255) , found_key_start bigint...
true
3275867331c69e65b96981b92a0aa9f45b088904
SQL
samkujovich/PL-SQL-Project
/manager.sql
UTF-8
615
3.234375
3
[]
no_license
CREATE OR REPLACE TRIGGER ManagerMax FOR INSERT OR UPDATE ON Employee COMPOUND TRIGGER /* Declaration Section*/ v_MAX_Manager CONSTANT INTEGER := 1; v_CurNum INTEGER := 1; v_branchId Number; --ROW level BEFORE EACH ROW IS BEGIN v_branchId := :NEW.branchId; END BEFORE EACH ROW; --Statement level AFTER...
true
b3bd04a21d802ba8e6f34e7fa4f0c808491aae50
SQL
delphi1977/NewDicomPACS
/Database/oracle/tables/tschet_stac_rep.sql
WINDOWS-1251
1,218
3.53125
4
[]
no_license
DROP TABLE ASU.TSCHET_STAC_REP CASCADE CONSTRAINTS / -- -- TSCHET_STAC_REP (Table) -- CREATE GLOBAL TEMPORARY TABLE ASU.TSCHET_STAC_REP ( FK_PACID NUMBER, FC_SCHETTYPE VARCHAR2(1 BYTE), FC_TOMPTYPE VARCHAR2(1 BYTE), FN_DUSL_CNT NUMBER, FN_SUSL_CNT NUMBER, FN_TOMP_SUM NUMBER ) ON COMMIT DELE...
true
cbb9cd87a7a4b289ca8630be78316e5427a73836
SQL
Aldambs/Atividade-complementar
/11.OrderBy.sql
ISO-8859-1
355
3.796875
4
[]
no_license
/*Listar os dados dos times que pagam um salrio inferior a R$ 20.000. O resultado deve estar organizado em ordem decrescente de mdia salarial e maior salrio.*/ SELECT cod_time CDIGO, AVG(salario) MDIA, MAX(salario) MXIMO FROM jogadores GROUP BY cod_time HAVING MIN(salario) < 20000 ORDER BY AVG(salario) DE...
true
a0f73b75c2ea8f9bcb0bd98840babec1a9445d31
SQL
jumpstart/tapestry-jumpstart
/business/src/test/data/initial_data.sql
UTF-8
10,367
2.96875
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
-- ------------------------------------------------------------------------------------------------------------ -- INITIAL DATA FOR JUMPSTART -- ------------------------------------------------------------------------------------------------------------ -- persons delete from Person; insert into Person(id, version, ...
true
4d26d129c5dc5401893af33bc4d4e81052de96c9
SQL
RussellBauer/G5_Deps
/subversion-1.6.13/subversion/libsvn_fs_fs/rep-cache-db.sql
UTF-8
1,187
2.828125
3
[ "BSD-2-Clause" ]
permissive
/* rep-cache-db.sql -- schema for use in rep-caching * This is intentd for use with SQLite 3 * * ==================================================================== * Copyright (c) 2008-2009 CollabNet. All rights reserved. * * This software is licensed as described in the file COPYING, which * you should hav...
true
c191c9d1160b2a1fbb341b130cf0b2b4d32639db
SQL
justyeh/www.justyeh.top
/backup/mysql/user_role.sql
UTF-8
880
2.90625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50720 Source Host : localhost:3306 Source Database : justyeh_temp Target Server Type : MYSQL Target Server Version : 50720 File Encoding : 65001 Date: 2019-01-05 11:49:18 */ SET FOREIGN_KEY_CHECKS=0; ...
true
8dc3019dce6ff72d5ad75d3f99b40002eb2f1a1c
SQL
khangtruong113/autoscaling
/docs/learning-by-doing/week09-database-model/autoscaling_database.sql
UTF-8
2,436
3.53125
4
[ "Apache-2.0" ]
permissive
# PolicyDB # apps.enabled: 0-not scaled, 1-scaled # apps.locked: 0-unlocked, 1-locked # apps.next_time: time in the future the app'll be checked for scaling # next_time = last success caused by policyX + policyX.cooldown_period # policies.metric_type: 0-CPU, 1-memory # policies.cooldown_period: in second # policies.m...
true
6599f2594f7f70927d70afe2b53009b32835c2ef
SQL
vcheeze/PostgreSQL-practice
/DDL.sql
UTF-8
1,024
3.375
3
[]
no_license
create table customers (cust_no varchar(8) not null, cust_name varchar(20), street varchar(20) default 'Sheikh Zayed Road', town varchar(10) default 'Abu Dhabi', post_code varchar(6), cr_limit numeric(4, 0), curr_bal numeric(7, 2) check (curr_bal > 0), primary key (cust_no) ); create table products (p...
true