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
a151140adfc4827eaa6b28755177079b95ac7883
SQL
NoraCarey/Leetcode-SQL
/SQL/1083. Sales Analysis II/mysql_not_in.sql
UTF-8
318
3.25
3
[]
no_license
SELECT DISTINCT buyer_id FROM Sales s JOIN Product p ON s.product_id = p.product_id WHERE product_name = 'S8' AND buyer_id NOT IN (SELECT buyer_id FROM Sales s JOIN Product p ON s.product_id = p.product_id WHERE product_name = 'iPhone')
true
e37a9ec680da3b1471709c6487a41ff1695e1d12
SQL
TeymurDev/CarApp-C-Sharp-Windows-Forms-and-Social-Network-Database-MSSQL-
/CarChooseDb.sql
UTF-8
650
2.96875
3
[]
no_license
--create database AutoChoose --use AutoChoose --create table Marka ( --Id int primary key identity, -- Name nvarchar(50) --) --create table Cars ( --Id int primary key identity, --ProductionDate nvarchar(50), --EngineType nvarchar(50), --Engine int, --Transmission nvarchar(50), --Color nvarchar(50), --Milage int, --...
true
271259c5c97d8bc2a1ac2878f609e828bad36bdb
SQL
caydensimler/Database_Exercises
/aliases.sql
UTF-8
552
4.125
4
[]
no_license
SELECT CONCAT(emp_no, " - ", last_name, ", ", first_name) AS full_name, birth_date as DOB FROM employees LIMIT 10; SELECT employees.emp_no, CONCAT(first_name, " ", last_name) AS NAME, salaries.salary AS Salary, titles.title AS Title, departments.dept_name AS Department FROM employees JOIN salaries ON employees.emp_n...
true
60fb3e82c739374e3c6d7ebf5fe9ad47515a957e
SQL
Masha-M-Stephen/Hospital-Database
/clinic_patient.sql
UTF-8
2,732
2.8125
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.17, for Win64 (x86_64) -- -- Host: localhost Database: clinic -- ------------------------------------------------------ -- Server version 8.0.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *...
true
faaec5c6397577ff10daa4998dda06c93fb7e44c
SQL
tatpetrova/online_shop_data_base
/data for product table.sql
UTF-8
98,152
2.59375
3
[]
no_license
SELECT * FROM shop.product; SELECT count(*) FROM shop.product; select * from shop.product where price = 2005; select min(price) from shop.product; insert into shop.product (brand_id, product_type_id, category_id, price) values (2, 1, 2, 1006 ); insert into shop.product (brand_id, product_type_id, category_id, price)...
true
b087b60df74321b8b199958c035bad061aa38e08
SQL
chrysalideProject/chrysalideProject
/jeuEssai.sql
UTF-8
4,741
3.5625
4
[]
no_license
/*****Création du jeu d'essai*****/ delete from TYPETABLE; delete from TABLEAMANGER; delete from REGIME; delete from TRAVAIL; delete from SURVEILLANCE; delete from PERSONNE; delete from POSTE; delete from SURVEILLANT; delete from AUTRE; delete from PATIENT; delete from CUISINIER; delete from INCOMPATIBILITE; delete fr...
true
d46f59244f81d56e3da86c110c187dbb966726a5
SQL
krishnamohankaruturi/secret
/aart-web-dependencies/db/ddl/7.sql
UTF-8
2,018
3.9375
4
[]
no_license
--INFO CB related table. CREATE TABLE if not exists taskvariantcontentframeworkdetail ( taskvariantid bigint NOT NULL, contentframeworkdetailid bigint NOT NULL, isprimary boolean not null default false, CONSTRAINT taskvariantcontentframeworkdetail_pkey PRIMARY KEY (taskvariantid , contentframeworkdetailid ), ...
true
7a3818b2e5e8de103281f3503e6ce36578f48385
SQL
davs20/select-dinamicos
/paises.sql
UTF-8
4,663
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 02-07-2018 a las 04:43:34 -- Versión del servidor: 10.1.25-MariaDB -- Versión de PHP: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
c40964b4be53d0be71e9aad40b77ffab699a8882
SQL
OvidiuEDSgrup/TET
/INDICATORI/121015/SQLQuery4.sql
UTF-8
917
3.328125
3
[]
no_license
select sum(p.Cantitate*p.Pret_vanzare) from pozdoc p inner join calstd c on c.Data=p.Data left join terti t on t.Subunitate=p.Subunitate and t.Tert=p.Tert left join lm on lm.Cod=p.Loc_de_munca left join nomencl n on n.Cod=p.Cod left join grupe g on g.Grupa=n.Grupa left join (select cod_produs,um,max(tip_pret) as tip...
true
e14c9cca82777c3aa7109c3e8a4735c17930ebe5
SQL
yeqiang201754/123456
/point.sql
UTF-8
54,085
3.125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50553 Source Host : localhost:3306 Source Database : point Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2018-06-12 16:32:45 */ SET FOREIGN_KEY_CHECKS=0; -...
true
38e20bbd6d99ea1e991ce00fca2d10361dcccd7f
SQL
Nishipatel858/Hospital-management-system
/ForeignKey_Tbl.sql
UTF-8
1,439
2.765625
3
[]
no_license
Alter table Login add FOREIGN KEY (UserID) references user_information(UserID); Alter table registration add FOREIGN KEY (PNo,Date) references appointment(PNo,Date); Alter table appointment add FOREIGN KEY (SID) references staff_information(SID); Alter table user_information add FOREIGN KEY (UserID) references staff_in...
true
d06452a158e1e27a5b864942613150e56e99e8e1
SQL
WindeezKC/3160
/Sigma.sql
UTF-8
1,519
3.75
4
[]
no_license
DROP DATABASE IF EXISTS Sigma; CREATE DATABASE IF NOT EXISTS Sigma; USE Sigma; DROP TABLE IF EXISTS Alpha; CREATE TABLE Alpha ( alphaKey INT PRIMARY KEY, alphaName VARCHAR(10) DEFAULT NULL, alphaDate DATE DEFAULT "2019-3-1", alphaInteger INT DEFAULT 5, betaFKey INT DEFAULT NULL ); DROP TABLE IF EXISTS Beta...
true
60867bb58ece0ebac84b204d97dc7b5854e55f6e
SQL
ilkinabd/server.tronbomb.com
/db/migrations/sqls/20190826093852-freeze-up.sql
UTF-8
429
3.375
3
[ "Apache-2.0" ]
permissive
CREATE TYPE FREEZE_STATUS AS ENUM ( 'active', 'complete' ); CREATE TABLE "freeze" ( "tx_id" SERIAL NOT NULL, "hash" CHAR(64) NOT NULL, "user_id" INTEGER NOT NULL REFERENCES "users"("user_id"), "amount" FLOAT NOT NULL, "start" TIMESTAMP NOT NULL DEFAULT NOW(), "fini...
true
02738011c646187a0765430e0ff50ef9f903f5cd
SQL
bellmit/flexdb
/2.HOST/3.Procedure/ci0002.sql
UTF-8
5,628
3.75
4
[]
no_license
CREATE OR REPLACE PROCEDURE ci0002 ( PV_REFCURSOR IN OUT PKG_REPORT.REF_CURSOR, OPT IN VARCHAR2, BRID IN VARCHAR2, F_DATE IN VARCHAR2, T_DATE IN VARCHAR2, CUSTODYCD IN VARCHAR2 ) IS -- -- PURPOSE: BRIEFLY EXPLAIN THE FUNCTION...
true
b31f0fd4d62941c13d9c9c13417e804cb9dca02a
SQL
JcGaara/SGA-PLSQL-OPE
/SGA-OPERACION/Scripts/Principales.sql
UTF-8
48,129
2.875
3
[]
no_license
declare CURSOR c_principal is ------------------------------- select vc.tipper DATAC_TIPO_PERSONA, iso.codcli DATAC_CODCLI, (case nvl(vc.nomcli,'null') when 'null' then vc.nomabr else vc.nomcli end) DATAV_NOMABR, (case nvl(vc.NOMCLIRES,'null') when 'null' then vc.nombre else vc.NOMCLIRES end...
true
fa8ae4574df0b2885f690d03d2ccf42514a3f59a
SQL
NICMx/rdap-sql-provider
/src/main/resources/META-INF/sql/Autnum.sql
UTF-8
495
3.34375
3
[ "Apache-2.0" ]
permissive
#getByRange SELECT asn_id, asn_handle, asn_start_autnum, asn_end_autnum, asn_name, asn_type, asn_port43, ccd_id FROM {schema}.autonomous_system_number asn WHERE asn.asn_start_autnum <= ? AND asn.asn_end_autnum >= ?; #getAutnumByEntity SELECT asn.asn_id, asn.asn_handle, asn.asn_start_autnum, asn.asn_end_autnum, asn.asn...
true
1b1b0bd0470d5ee0e4c2b0a2b8d95b50585bcda3
SQL
LDoex/homepage
/doc/all.sql
UTF-8
5,797
3.71875
4
[]
no_license
drop table if exists `test`; create table `test`( `id` bigint not null comment 'id', `name` varchar(50) comment '名称', primary key (`id`) ) engine=innodb default charset=utf8mb4 comment='测试'; insert into `test` (id, name) values (1, 'wang'); drop table if exists `demo`; create table `demo`( ...
true
ad51ef2a02bda265a1e5148b3ae573986fce51b7
SQL
Metodil/SoftUni
/06. Database Basics - MS SQL/Exam Preparation/Exam - 16 October 2016/07. Extract All Customers.sql
UTF-8
122
2.890625
3
[]
no_license
SELECT CustomerID, concat(FirstName, ' ', LastName) AS [FullName], Gender FROM Customers ORDER BY FullName, CustomerID
true
50b327f5fa4464a65e22cb3b82b05ba33298828e
SQL
J-Afonso/MondaySoccer
/database/mondaysoccer.sql
UTF-8
6,244
2.984375
3
[ "Unlicense" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Aug 26, 2019 at 06:36 PM -- Server version: 5.6.45 -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
2f9591ec418f04665f9e27d50c75f73ac20a6f89
SQL
OSIA-team/optimas
/database/optimas-import_05112017.sql
UTF-8
55,008
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Počítač: 127.0.0.1 -- Vytvořeno: Ned 05. lis 2017, 11:25 -- Verze serveru: 10.1.22-MariaDB -- Verze PHP: 7.1.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
0526beb35f1090fda58e5f5923db5c59b232ab43
SQL
aliajellu/place.web
/_db_sql/default_data.sql
UTF-8
34,226
3.671875
4
[ "MIT" ]
permissive
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL'; DROP SCHEMA IF EXISTS `placeweb` ; CREATE SCHEMA IF NOT EXISTS `placeweb` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ; USE `plac...
true
ad62a5695be2e1fa4251b1c625ffb2dcb09a4372
SQL
rstefanca/my-ibis
/src/main/resources/db/migration/iBIS200 - TABULKY.sql
WINDOWS-1250
27,669
3.078125
3
[]
no_license
/* -------------------------------------------------- */ /* Generated by Enterprise Architect Version 11.1.1110*/ /* Created On : steda, 29 erven, 2016 */ /* DBMS : PostgreSQL */ /* -------------------------------------------------- */ SET SCHEMA 'iBIS200'; /* Drop Tables, Stored Procedures and Views */ ...
true
7ada67fa28fc1c61d808c89a1fc122cccc302df4
SQL
Sicaine/voka
/setup/db/full/install.sql
UTF-8
448
3.203125
3
[]
no_license
CREATE TABLE IF NOT EXISTS dashboard ( id int unsigned AUTO_INCREMENT NOT NULL, name varchar (255) NOT NULL, PRIMARY KEY (`id`) ); CREATE TABLE widget ( id int unsigned AUTO_INCREMENT NOT NULL, dashboard_id int unsigned, xCord int unsigned, yCord int unsigned, width int unsigned, height int unsigned...
true
2de6788cd2c876c1809a6a840b454f9b1a233a6d
SQL
DavingToT/JavaOracleJdbc
/03. ERD+Script_/데이터_순서표기/02_교재데이터.sql
UTF-8
2,110
3.1875
3
[]
no_license
CREATE TABLE Textbook ( seq number primary key, name varchar2(100) not null, publisher varchar2(50), author varchar2(100), status number default 1 not null ); SELECT * FROM Textbook; INSERT INTO Textbook VALUES (1, 'Java의 정석', '도우출판', '남궁성', 1); INSERT INTO Textbook VALUES (2, '데이터베이스 개론', '한빛아카...
true
995ec297a0a1816e4f6bbe58e0b62004e30cfa1b
SQL
fstanchese/corporativo
/corporativo/sql/Curr/Curr_qCursoPai.sql
UTF-8
773
3.296875
3
[]
no_license
SELECT CURR.*, Curr.Codigo || ' - ' || Curr.CurrNomeHist || Decode(CurrCompNome,null,'',' - '||CurrCompNome ) || decode(Curr.CurrNivel_Id,7400000000001,' - '||Curr.CurrNivelDesc,7400000000002,null,7400000000003,' - '||CurrNivelDesc) AS Recognize, Curr_gsRecognize(CURR.Curr_Pai_Id) AS PaiRecognize, ...
true
5e3cf1d7441b2d007f537eaae5d23c49961fbf6d
SQL
Bohdan-Belik/wppt-archive
/Semestr3/BD/L4/bd_sql.sql
UTF-8
3,994
4.1875
4
[]
no_license
drop database if exists `tk-soft`; create database `tk-soft`; use `tk-soft`; CREATE TABLE `clients` ( `Mail` varchar(30), `Name` varchar(20) DEFAULT NULL, `Surname` varchar(20) DEFAULT NULL, `Phone_number` int DEFAULT NULL, PRIMARY KEY (`Mail`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `employees` (...
true
6501fcab77840abb91273467c2910832f844e04a
SQL
ankitkotak93/A-tool-for-WSD-in-Crowd-Sourcing-Mode
/Source Code/Desktop Application/ssad.sql
UTF-8
12,204
2.796875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.32, for debian-linux-gnu (i686) -- -- Host: localhost Database: WSD -- ------------------------------------------------------ -- Server version 5.5.32-0ubuntu0.12.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACT...
true
4cd484ace2809bd8bab82f802e725eddae8541d2
SQL
Deerluluolivia/education-highschool-public
/experiments/features/LOOKUPact_lookup.sql
UTF-8
459
2.625
3
[ "MIT" ]
permissive
/* TABLE act_lookup: code names for ACT tests */ drop table if exists act_lookup; create table act_lookup ( code VARCHAR(4), name VARCHAR(20) ); insert into act_lookup values ('ACEN', 'English'); insert into act_lookup values ('ACMA', 'Mathematics'); insert into act_lookup values ('ACRD', 'Reading'); insert into act_...
true
aa319d34f543d270db955f6017d13bfef7b1b1c8
SQL
ryujihyun/GivingGIft
/database.sql
UTF-8
1,720
3.203125
3
[]
no_license
CREATE DATABASE givinggift DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; GRANT ALL ON givinggift.* TO 'root'@'localhost' IDENTIFIED BY 'tiger'; use givinggift; CREATE TABLE member ( email varchar(100) not null, password varchar(100), name varchar(100), address varchar(100), phone varchar(100), bi...
true
5b6d615a76fbd107b9c9799fe4a5c21ece580a98
SQL
Yenalgloshi/async-sim1-shelfie
/db/seedFile.sql
UTF-8
1,086
2.734375
3
[]
no_license
drop table if exists shelfieInv; create table shelfieInv ( id serial primary key, shelf text, bin integer, name text, price decimal, image text ); insert into shelfieInv (shelf, bin, name, price, image) values ('A', 1, 'shoes', 20.00, 'https://i.pinimg.com/originals/c0/f8/75/c0f87532261c4a2ca2...
true
c4971e5aa95f8943c05e61b45ef379acb9c30d20
SQL
brettshollenberger/database-course-lab3
/AIRLINES/AIRLINES-setup.sql
UTF-8
1,015
4.125
4
[]
no_license
CREATE DATABASE airlines; USE airlines; CREATE TABLE airlines ( id integer PRIMARY KEY NOT NULL AUTO_INCREMENT, name varchar(100) NOT NULL, abbreviation varchar(25) NOT NULL, country varchar(100) NOT NULL, UNIQUE KEY name (name) ); CREATE TABLE airports ( id integer PRIMARY KEY NOT NULL AUTO_INCREMENT, ...
true
5ba5bf332c6a281cba6abecc5669bfc9136d9131
SQL
geotech28/DATA9401
/Project1/Calgary_Public_Library_Locations_and_Hours-DDL.sql
UTF-8
1,703
3.15625
3
[]
no_license
--Connect to database USE DATA9401_PROJECT1 --Create a new table CREATE TABLE Calgary_Public_Library_Locations_and_Hours ( Library_Name VARCHAR (200), Postal_Code VARCHAR (7), Phone_Number VARCHAR (12) ); --Insert multiple records INSERT INTO Calgary_Public_Library_Locations_and_Hours( Library_Name, Postal_Code, ...
true
5fabfafe4c7f6ca75c9d53f915231b6dd416a3aa
SQL
mochamin/merp
/database/jualdetail.sql
UTF-8
1,133
2.9375
3
[]
no_license
# MySQL-Front 5.0 (Build 1.0) /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE */; /*!40101 SET SQL_MODE='' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES */; /*!40103 SET SQL_NOTES='ON' */; # Host: localhost Database: merp # ------------------------------------------------------ # Server version 5.0.27-community-nt USE `mer...
true
1fb10ecccaae1df243a37558e51565ce0f3ffc01
SQL
mrshllnoob/InnoHomeworks
/src/main/java/inno/l11_12/homework/scripts/subject.sql
UTF-8
748
3.6875
4
[]
no_license
CREATE TABLE "InnoEduSchema".schedule ( id_p bigint NOT NULL, id_s bigint NOT NULL, CONSTRAINT schedule_pkey PRIMARY KEY (id_p, id_s), CONSTRAINT fk1 FOREIGN KEY (id_p) REFERENCES "InnoEduSchema"."Person" (id_person) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION, CONST...
true
b0dbc2e054deba77b39136eac831df8705f51921
SQL
snegrini/CLup-SE2-Project-2021
/Code/Server/Dump/dump_np_clup_test.sql
UTF-8
5,655
3.109375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `np_clup_test` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `np_clup_test`; -- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64) -- -- Host: localhost Database: np_clup_test -- ------------------------------------------...
true
e345c3856fdc1d521e30ce303a725c3a5b357ab6
SQL
qzhang25/Exercise-1
/investigation/best_states/best_state.sql
UTF-8
3,330
4.375
4
[]
no_license
--State Emergency Department table. DROP TABLE StateEMR_AVG; CREATE TABLE StateEMR_AVG AS SELECT state, AVG(score) AS emergency_avg_score FROM ERdiagram_effective_time WHERE condition = 'Emergency Department' GROUP BY state ORDER BY emergency_avg_score DESC; --State Surgical Care table. DROP TABLE StateSCI_AVG; CREAT...
true
a1739a2b9012dd5e55fbb1212f95587b6ef8cdb8
SQL
olegtaranenko/prsrc
/dbupdate-parent/prior/src/main/liquibase/views/itemWallShip.sql
WINDOWS-1251
2,491
3.5
4
[]
no_license
if exists (select 1 from sysviews where viewname = 'itemWallShip' and vcreator = 'dba') then drop view itemWallShip; end if; create view itemWallShip ( outdate , numorder , type , prId , prExt , prNomnom , cenaEd , quant , costEd , firmName , ventureId , statusid , werkId ) -- ...
true
1f76ae0e519435d1883cdce456c7dda7809e887a
SQL
Helder-Souza/MySQL
/Join MySQL/atv2.sql
UTF-8
3,093
4.5625
5
[]
no_license
/*Crie um banco de dados para um serviço de pizzaria de uma empresa, o nome do banco deverá ter o seguinte nome db_pizzaria_legal, onde o sistema trabalhará com as informações dos produtos desta empresa. O sistema trabalhará com 2 tabelas tb_pizza e tb_categoria. siga exatamente esse passo a passo: Crie uma tabela d...
true
e811ab1a78ee6857c7c8da4aa4cc84b1fc20cf50
SQL
fandashtic/arc_chennai
/Sivabalan-SQL/SQL_TABLE_VALUED_FUNCTION/mERP_fn_List_MarketInfo_POPGroup.sql
UTF-8
397
2.59375
3
[]
no_license
Create Function mERP_fn_List_MarketInfo_POPGroup(@District nVarchar(250), @SubDistrict nVarchar(250), @MarketID int) Returns @PopGroup Table (Pop_Group nVarchar(250) COLLATE SQL_Latin1_General_CP1_CI_AS) As Begin Insert into @PopGroup Select Distinct Pop_Group From MarketInfo Where Active = 1 And District = @Distr...
true
feda530e1fd80b8771272ea359e5c066fd697950
SQL
VelizarVeli/SoftUni-Software-Engineering
/03.C#DBFundamentals/01.Databases Basics - MS SQL Server/AdditionalExercises/AdditionalExercises/11.CountOfCountriesByCurrency.sql
UTF-8
254
4.46875
4
[]
no_license
SELECT cur.CurrencyCode, MIN(cur.Description) AS Currency, COUNT(c.CountryName) AS NumberOfCountries FROM Currencies AS cur LEFT JOIN Countries AS c ON cur.CurrencyCode = c.CurrencyCode GROUP BY cur.CurrencyCode ORDER BY NumberOfCountries DESC, Currency
true
5696abe6cfd234e17afaa934be65d257bd7ede9b
SQL
cypher01010/logistics-booking-system
/schema/rrl_new_delivery.sql
UTF-8
2,710
3.1875
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4096 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: 127.0.0.1 (MySQL 5.6.24) # Database: rrl # Generation Time: 2015-07-06 11:20:42 +0000 # *****************************************************...
true
617cb5c96d8a06c57cc16f49c959a4e2a4b11d80
SQL
ozyr501/AGH_Wieczorek_Projekt
/users.sql
UTF-8
1,407
3.0625
3
[]
no_license
# Uprawnienia dla `Doorman`@`%` GRANT USAGE ON *.* TO `Doorman`@`%` IDENTIFIED BY PASSWORD '*7624D314C5B3AE1D6F266E059E65AF1658BEBCDC'; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, REFERENCES ON `kinotemp`.`users` TO `Doorman`@`%`; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, REFERENCES ON `kinotemp`.`seanse` TO `...
true
32d0b93d91f0c52b4fcf0be11cc6f42acb79780e
SQL
Ajmal10/TubesPw
/pw_173040147.sql
UTF-8
3,151
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 19 Mei 2018 pada 04.19 -- Versi Server: 10.1.26-MariaDB -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
a151db29a6210d71744e6ae37afc4d88408eff48
SQL
orl-patrick/xavier
/xavier_db.sql
UTF-8
632
3.125
3
[]
no_license
# creation database (ménage d'abord) DROP DATABASE IF EXISTS xavier_db; CREATE DATABASE xavier_db DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; # on cree ensuite le user pour la gerer GRANT all ON xavier_db.* TO 'eole' IDENTIFIED BY 'pisci2010netta'; # on selectionne la database USE xavier_db; # on cr...
true
81db47040de41d22d77b33855b178a3b6aba7157
SQL
helloworldtang/springboot-multi-datasource
/mybatis-aop/src/main/resources/database1.sql
UTF-8
788
3.03125
3
[ "Apache-2.0" ]
permissive
CREATE DATABASE /*!32312 IF NOT EXISTS */`database1` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `database1`; /*Table structure for table `user_info` */ DROP TABLE IF EXISTS `user_info`; CREATE TABLE `user_info` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `username` varchar(255) DEFAULT NULL, `net_name` varcha...
true
8f90ad84b065168c0a4956983b7661cb41502347
SQL
CodeGroupAbancay/CodeIgniter-prueba
/Base Datos/comedor.sql
UTF-8
12,848
3.25
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 07-01-2017 a las 18:47:24 -- Versión del servidor: 10.1.13-MariaDB -- Versión de PHP: 7.0.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
true
491ef6e883a8d5d7f165a9bf5984008995b0d011
SQL
caliskanemre/kry-backend
/src/main/resources/db.migration/init.sql
UTF-8
243
2.75
3
[]
no_license
create table if not exists contact ( id bigint not null constraint contact_pkey primary key, url varchar(255) not null, name varchar(255) not null, condition varchar(255) ); create sequence contact_id_seq;
true
ce9737b46ef9896092121b0608f2a684e59dbaa0
SQL
Cake69/FlexUltimate
/Actual database stuff/status.sql
UTF-8
1,587
2.953125
3
[]
no_license
-- -------------------------------------------------------- -- Vært: 127.0.0.1 -- Server-version: 10.6.4-MariaDB - mariadb.org binary distribution -- ServerOS: Win64 -- HeidiSQL Version: 11.3.0.6295 -- ------------------------------------------------...
true
4beb0e61271427c6aa225ce4317d8e3f1e812458
SQL
panicoro/BaseDatos2018
/lab1/consultas/consulta-a/consulta.sql
UTF-8
242
3.375
3
[]
no_license
-- CONSULT A: -- List the data of the clients subscribed to the Premium plan with a -- the subscription date '2009-1-6' SELECT client.* FROM client WHERE 'Premium' = client.type_subscription AND '2009-1-6' = client.date_subscription
true
ea7e183dbaa0fb546514ad9a27f2cbb300347639
SQL
onesinus/php_native_project_example
/db.sql
UTF-8
8,037
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 30, 2020 at 09:22 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
f740dc05aa7d95c9987ad6c4a02221be4252ec40
SQL
Vizzart/T-sqlSolutions
/1-30/20.sql
UTF-8
109
3.109375
3
[]
no_license
SELECT maker, COUNT(*) AS number_of_PCs FROM Product WHERE TYPE ='PC' GROUP BY maker HAVING COUNT(*) > 2
true
565b4f223dcc3275831ea86c1c2ded003d5e333f
SQL
smileman926/VibesCMS
/Upgrades/Previous Versions/MediaVibe 6.02/Utils and Oldder and More/PHPVibe v4/PHPVibe 4/Cms - Uplod content/setup/demo.sql
UTF-8
8,604
2.609375
3
[]
no_license
INSERT INTO `#dbprefix#langs` (`lang_id`, `term`) VALUES (1, 'Unknown provider or incorrect URL. Please try again.'), (2, 'This URL is invalid or the video is removed by the provider.'), (3, 'All Media Feed'), (4, 'Video Feed'), (5, 'Music Feed'), (6, 'Images Feed'), (7, 'Show sidebar'), (8, 'Search videos'), (9, 'Visi...
true
290b7478c5f279704e1135f306266b128c19e10e
SQL
kevonguyen/SQL
/Baseball 5.sql
UTF-8
1,419
3.859375
4
[]
no_license
USE Baseball; DELIMITER $$ CREATE PROCEDURE `Update_Home_and_Away_Scores` (IN p_HomeTeamScore INT(2), IN p_AwayTeamScore INT(2), IN p_HomeTeam VARCHAR(5), IN p_PlayDate DATE) BEGIN UPDATE season SET HomeTeamScore = p_HomeTeamScore, AwayTeamScore = p_AwayTeamScore WHERE HomeTeam = P_Hom...
true
a0372a1075396805b7ba0495666649ec36612817
SQL
TeodoraIoanaJipa/RestaurantsJavaWebProject
/src/main/resources/schemas.sql
UTF-8
3,159
4.15625
4
[]
no_license
CREATE SCHEMA IF NOT EXISTS `restaurants_project` ; CREATE TABLE `restaurants_project`.`restaurants` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(45) NOT NULL, `description` VARCHAR(250) NOT NULL, `opening_time` VARCHAR(10) NOT NULL, `closing_time` VARCHAR(10) NOT NULL, `price_category` VARCHAR(10) N...
true
521740fd5de1ce6af1e6df646ea0e1ef0b6cca90
SQL
KimJongHo94/OracleStudy
/20200924_01_scott.sql
UHC
30,525
3.671875
4
[]
no_license
SELECT USER FROM DUAL; --==>> SCOTT -- ¥ ǥ ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD'; --==>> Session() Ǿϴ. -- TBL_EMP ̺ Ի 1981 4 2 -- 1981 9 28 ̿ Ի -- , , Ի ׸ ȸѴ. (ش ) SELECT , , Ի FROM TBL_EMP WHERE Ի 1981 4 2 1981 9 28 ; SELECT , , Ի FROM TBL_EMP WHERE 1981 4 2 <= Ի <= 19...
true
8848523e88dd110889d8203f1b3b2bc69c9393f5
SQL
ahmadfadillah220/UTS_Pemweb
/pemweb.sql
UTF-8
4,295
3.0625
3
[]
no_license
-- -------------------------------------------------------- -- Host: localhost -- Server version: 5.7.24 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 10.2.0.5599 -- ------------------------------------------------------...
true
571d50deb4aff905a192391344d1b0ed70abf6b2
SQL
dontry/monash_project
/fit9132_project1/FIT9132_2016S2_A1-scripts/OT1_schema.sql
UTF-8
7,890
3.40625
3
[]
no_license
-- OT1_schema.sql -- Student ID: -- Student Name: set echo on; CREATE TABLE COUNTRY ( COUNTRY_IOC_CODE CHAR (3) NOT NULL , COUNTRY_IOC_NAME VARCHAR2 (50) NOT NULL, CONSTRAINT COUNTRY_PK PRIMARY KEY ( COUNTRY_IOC_CODE ) ) ; CREATE TABLE DRIVER_AUDIT ( ...
true
30dca79a1318c078e7953ab4f6ca2a2bb9795046
SQL
marcioroliveira79/postgres
/GerarDimensaoTempo.sql
UTF-8
1,719
3.8125
4
[]
no_license
SELECT datum AS data, EXTRACT(YEAR FROM datum) AS ano, EXTRACT(MONTH FROM datum)::integer AS mes, to_char(datum, 'TMMonth')::varchar AS mes_nome, EXTRACT(DAY FROM datum)::integer AS dia, EXTRACT(doy FROM datum)::integer AS dia_ano, to_char(datum, 'TMDay'::varchar)::varchar AS dia_semana_nome, ...
true
f1ed18857506212e58f91e5162c40b9eb591c2a2
SQL
PHP-Organization/sqlData
/group_settings.sql
UTF-8
1,503
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10.6 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 21, 2015 at 11:56 AM -- Server version: 5.5.32-cll-lve -- PHP Version: 5.4.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_...
true
99bac72cf014eaccd4e0f03297025cd03b5064b9
SQL
donali98/php-test
/script.sql
UTF-8
901
3.875
4
[]
no_license
use app; create table clientes( id int primary key not null auto_increment, nombre varchar(100) not null, apellido varchar(100) not null ); create table tarjetas( id int primary key not null auto_increment, numero_tarjeta int not null unique ); create table cuentas( id int primary key not null...
true
83bf027cda027e4139f9979f375c77b890f27f12
SQL
Schifty/vetcompany
/vet.sql
UTF-8
6,572
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 14, 2015 at 10:08 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
0751e39ba82d4ed2ebf91bd968e176b2e29f6509
SQL
bbehm/Piscine_PHP
/day05/ex16/ex16.sql
UTF-8
179
2.71875
3
[]
no_license
SELECT COUNT(*) AS `movies` FROM `member_history` WHERE (DATE(`date`) < DATE('2007-07-27') AND DATE(`date`) > DATE('2006-10-30')) OR (MONTH(`date`) = '12' AND DAY(`date`) = '24');
true
bbd3dd90bf11e8881bcf7ed00959b81f8c680426
SQL
samdewachter/webdevperiod2
/webdevperiod2.sql
UTF-8
23,345
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Gegenereerd op: 13 jan 2017 om 20:36 -- Serverversie: 5.6.17 -- PHP-versie: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4010...
true
fd37061ab7cee3c0971a744c8d77a777c64b2932
SQL
lychristy/SQL
/Leetcode/1789. Primary Department for Each Employee.sql
UTF-8
422
3.75
4
[]
no_license
SELECT employee_id, department_id FROM Employee WHERE employee_id in (SELECT employee_id FROM Employee GROUP BY employee_id HAVING count(*) = 1) UNION SELECT employee_id, department_id FROM Employee WHERE primary_flag = 'Y' --method 2-- SELECT employee_id, department_id FROM (SELECT *, row_number(...
true
dc3214ce8ed36a7cc51c80aa6bf0e0364a9e81eb
SQL
JoaoAlvaroFerreira/FEUP-BDAD
/Entrega/int9.sql
UTF-8
277
3.109375
3
[]
no_license
--Alugueres em cada sala de eventos do Porto depois de uma data SELECT Sala.nome, Aluguer.dataAluguer, Aluguer.dataEntrega, Sala.localizacao FROM Sala INNER JOIN Aluguer ON Sala.nome = Aluguer.nome WHERE Aluguer.dataAluguer > "2018-04-12" AND Sala.localizacao LIKE "%Porto%";
true
cf367ee84d2c0af9b9f76480a0ab7bdb4bd9597c
SQL
gpipperr/OraDBASQLScripts
/role_ddl.sql
UTF-8
2,682
3.328125
3
[]
no_license
--============================================================================== -- GPI - Gunther Pippèrr -- Desc: get DDL of a role --============================================================================== set verify off set linesize 130 pagesize 4000 define ROLENAME = '&1' prompt prompt Parameter 1 = ...
true
bf9b5e44ca2999d2fdf2dfe4b725b3937af4c521
SQL
Narendrac77/merchantonboard
/src/main/resources/data.sql
UTF-8
14,119
2.859375
3
[]
no_license
INSERT INTO categories VALUES (1000,'Arts, crafts, and collectibles',1), (1001,'Baby',1), (1002,'Beauty and fragrances',1), (1003,'Books and magazines',1), (1004,'Business to business',1), (1005,'Clothing, accessories, and shoes',1), (1006,'Computers, accessories, and services',1), (1007,'Education',1), (1008,'Electron...
true
dc058dd5ee8eac7f25c8b0db823efc134b3102a4
SQL
pillar62/EEP2015
/DABI/需求項目/20171108/異動用戶地址.sql
UTF-8
618
2.921875
3
[]
no_license
/* SELECT A.RZONE1, A.CUTID1, B.CUTNC, A.TOWNSHIP1, A.RADDR1 FROM RTLessorAVSCust A LEFT JOIN RTCounty B ON B.CUTID=A.CUTID1 */ UPDATE A SET A.RADDR1=A.RZONE1+ISNULL(B.CUTNC, '')+ ISNULL(A.TOWNSHIP1, '')+ ISNULL(A.RADDR1, '') FROM RTLessorAVSCust A LEFT JOIN RTCounty B ON B.CUTID=A.CUTID1 UPDATE A SET A.RADDR2=A.RZ...
true
7e8cdcd05da5d4685238786f728699d5f0379a08
SQL
mocleiri/myuni-ks-loader
/ks-loader/training/reference-sql/CM/views/KRIM_RSP_ATTR_V.sql
UTF-8
1,158
3.375
3
[]
no_license
CREATE OR REPLACE VIEW CM.KRIM_RSP_ATTR_V ( RESPONSIBILITY_TYPE_NAME, RSP_TEMPLATE_NAME, RSP_NAMESPACE_CODE, RSP_NAME, RSP_ID, ATTRIBUTE_NAME, ATTRIBUTE_VALUE ) AS SELECT krim_typ_t.NM AS responsibility_type_name , KRIM_rsp_TMPL...
true
292e5711a2c5f1cc897ba837dff09adb7f3855ab
SQL
marcusgram/7381792102112121
/administration/objects/tables/TBL_Disable_Constraints.sql
UTF-8
6,258
3.984375
4
[]
no_license
-- ----------------------------------------------------------------------------------- -- File Name : http://www.oracle-base.com/dba/constraints/disable_chk.sql -- Description : Disables all check constraints for a specified table, or all tables. -- Call Syntax : @disable_chk (table-name or all) (schema-name) --...
true
146a474027933df31597c11917e98718058ac47e
SQL
pjuliano/glowing-waffle
/Scripts/Change Inv Part Product Family.sql
UTF-8
833
2.59375
3
[]
no_license
DECLARE a_ VARCHAR2(32000) := NULL; --p0 b_ VARCHAR2(32000) := 'AAAUN9AAIAAMfZUAAO'; --p1 c_ VARCHAR2(32000) := '20171221100524'; --p2 d_ VARCHAR2(32000) := 'PART_PRODUCT_FAMILY'||chr(31)||'PCOMM'||chr(30); --p3 e_ VARCHAR2(32000) := 'DO'; --p4 Begin For Parts In (Select A.Part_No, ...
true
cc8acb33d1cc3d0ce3d901559877ea3b37b2f0c6
SQL
ddc67cd/database-scripts
/oracle/dba/object_for_file_and_block_ids.sql
UTF-8
1,298
3.5625
4
[]
no_license
WHENEVER SQLERROR EXIT SQL.SQLCODE ROLLBACK; WHENEVER OSERROR EXIT 9; SET LINESIZE 160 SET PAGESIZE 100 PROMPT *********************************************************** PROMPT ** object_for_file_and_block_ids.sql PROMPT *********************************************************** PROMPT ** The following returns the ...
true
4c792e5c3c47e0bef80f254ebdd6a592328a7231
SQL
scchess/LabKey
/externalModules/snprcEHRModules/snprc_r24/resources/queries/snprc_r24/LookupAims.sql
UTF-8
84
2.5625
3
[]
no_license
select Value from snprc_r24.lookups where SetName = 'Aims' ORDER BY SortOrder asc
true
11cec837c6b29ea479d9b886913bb23b979db95c
SQL
tahzima/rendezVous
/database/brief6_vuejs_api.sql
UTF-8
3,042
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 18, 2021 at 01:20 PM -- Server version: 10.4.19-MariaDB -- PHP Version: 8.0.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
9194dbc5ed2f5114a3a26bea661dbe973ed04fdb
SQL
mntmori/dse-fit
/src/main/resources/example/schema.cql
UTF-8
381
3.125
3
[]
no_license
CREATE KEYSPACE sort WITH replication = {'class': 'NetworkTopologyStrategy', 'dc1': '1'} AND durable_writes = true; CREATE TABLE sort.sort_table ( owner text, id text, name text, shortname text, PRIMARY KEY (owner, id) ); COPY sort.sort_table FROM 'sort_data.csv'; select * from sort.sort_table w...
true
78ab4417f6a7d871571b6090859ddd2bac088f6d
SQL
havendim/dnerorr
/dnerror.sql
UTF-8
264,110
2.734375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 10 Jun 2021 pada 15.20 -- Versi server: 10.4.19-MariaDB -- Versi PHP: 8.0.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
true
96847d1987445c1b45ca0ad8fb1423407179c603
SQL
jobongie/sql-challenge
/EmployeeSQL/queries.sql
UTF-8
2,679
4.5
4
[]
no_license
-- -- 1. List the following details of each employee: employee number, last name, first name, sex, and salary. -- SELECT employees.emp_num, last_name, first_name, sex, salary -- FROM employees -- INNER JOIN salaries ON salaries.emp_num = employees.emp_num; -- -- 2. List first name, last name, and hire date for employ...
true
5a4dde98965125e2e9be9cb564c6b282e4501e36
SQL
aearl16/RepositoryPatternExample
/Homework8/Homework8/App_Data/DOWN.sql
UTF-8
550
2.75
3
[]
no_license
IF EXISTS ( SELECT * FROM sys.tables WHERE tables.name = 'Artwork' ) BEGIN DROP TABLE dbo.Artwork END IF EXISTS ( SELECT * FROM sys.tables WHERE tables.name = 'Genre' ) BEGIN DROP TABLE dbo.Genre END IF EXISTS ( SELECT * FROM sys.tables WHERE tables.name = 'Classification' ) BEGIN DROP TABLE dbo.Class...
true
76929d89d235ecfeed8a22c41f02518ad7ea5650
SQL
pum-purum-pum-pum/SQL_course
/SQL_ex120tasks/046.SQL
UTF-8
434
3.828125
4
[]
no_license
SELECT name, displacement, numGuns FROM ( SELECT name, class FROM Ships UNION SELECT name, class FROM( SELECT ship AS name, ship AS class FROM Outcomes ) out WHERE NOT EXISTS (SELECT * FROM Ships WHERE Ships.name = out.name) ) all_ships LEFT JOIN Classes ON all_ships.class = Classes.clas...
true
46f087c646bb8fc8c3f6d8b13c4494d71cc6d77f
SQL
zzin939/NearWeb
/Oracle_Near.sql
UTF-8
4,221
3.03125
3
[]
no_license
create sequence nearmember_seq start with 1 increment by 1 minvalue 1 maxvalue 10000; create table nearmember ( userno number primary key, userid varchar2(20), password varchar2(20), username varchar2(20), email varchar2(20), contact varchar2(20) ); create sequence nearl...
true
6ddd211919fad0e67bfe5a2d08667528c9e3194a
SQL
chejuho/itfreeswebapp
/Kankokujin/sql/create_memorizer_all.sql
UTF-8
1,985
3.078125
3
[]
no_license
Drop table M_questions; CREATE TABLE M_questions ( id int(11) NOT NULL auto_increment, question text NOT NULL, answer text NOT NULL, PRIMARY KEY (id) ) TYPE=MyISAM; Drop table M_questionGroup; CREATE TABLE M_questionGroup ( group_id int(11) NOT NULL, question_id int(11) NOT NULL PRIMARY KEY (group...
true
806ce579c6648388577650ba4524a1796a5cbc72
SQL
SorianoTech/Desarrollo-Webv2
/projects/BBDD/registro_proyectos/servidores_profe/includes/servidores.sql
UTF-8
4,395
2.671875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.6deb4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Sep 30, 2019 at 05:57 AM -- Server version: 10.1.41-MariaDB-0+deb9u1 -- PHP Version: 7.0.33-0+deb9u3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_...
true
c291e0d68a730955d930e8f93af19c7f3c8a46ce
SQL
KimJungEun0429/Oracle-SQL
/TO_CHAR 날짜함수.sql
UHC
3,915
4.3125
4
[]
no_license
--TO_CHAR Լ --ͺ̽ - Ÿ - Ÿ, Ÿ, ¥Ÿ SELECT '1234' AS TEST FROM DUAL; -- SELECT 1234 AS TEST FROM DUAL; -- SELECT '1234' + 1234 FROM DUAL; -- + ´ SELECT '1234A' + 1234 FROM DUAL; -- ٵ ڰ ϳ  ȵ SELECT TO_DATE('2021-04-16') + 2 AS DT FROM DUAL; --̷ '2021-04-16' ǻʹ ڰ ִ. SELECT '2021-04-16' + 2 FROM DUAL; --̰ ȵ SELE...
true
70f775078591df38a23f93682b7b52f1254d10bf
SQL
neogit69/PACDWES
/sql/m07.sql
UTF-8
2,169
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 15-12-2020 a las 13:41:14 -- 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
2c17a645bfd3935613bec15a1cc4497dec61ee52
SQL
pdvmoto/Part
/demo_part_gip.sql
UTF-8
515
3.0625
3
[]
no_license
-- demo global-partitioned indexes -- partitioned on other key as table-partitioning. -- leads to "partitioned"=YES, but is still a Global Index.. -- double-check in the dba_part_indexes, locality=GLOBAL drop index pt_gip_pay ; create index pt_gip_pay on pt (payload, active ) global partition by range (payload )...
true
6f0a7df61ad53ad040f9507db1d453fc15f28e55
SQL
IFM-Restoration/API-migration-test
/db/migration/000001_init_schema.up.sql
UTF-8
3,111
3.609375
4
[]
no_license
/* create new DB tables with relationships, will create 1.up.sql and more with every migrate command */ CREATE TABLE "WORK_ORDER" ( "id" bigserial PRIMARY KEY, "client_id" int, "resident_id" int, "wor...
true
c2c4cdf547f05bc00d2d2eadbd0a0300a15e7237
SQL
plamen911/softuni-db-fundamentals
/DatabasesBasics/_08FunctionsTriggersAndTransactions/_11FutureValueFunction.sql
UTF-8
320
2.59375
3
[]
no_license
CREATE FUNCTION ufn_calculate_future_value(sum DOUBLE, yearly_interest_rate DOUBLE, years DOUBLE) RETURNS VARCHAR(20) BEGIN DECLARE future_value DECIMAL(16, 2); SET future_value = (sum * POW(1.0 + yearly_interest_rate, years)); RETURN TRIM(TRAILING '.' FROM TRIM(TRAILING '0' FROM future_value)); END
true
940706e630e8dec434801820d2035c5e3a674d9a
SQL
violinW/template-server
/db/product.sql
UTF-8
540
3.03125
3
[]
no_license
DROP TABLE IF EXISTS `product`; CREATE TABLE IF NOT EXISTS `product` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `number` VARCHAR(32) NOT NULL COMMENT '单品编号', `productName` VARCHAR(64) NOT NULL COMMENT '单品名称', `mnemonicCode` VARCHAR(32) NOT NULL COMMENT '助记码', `create_time` datetime DEFAULT NULL COMMENT '创建时...
true
5f6edbe7051ad7e7ee9707a8742456d8d3ceaafe
SQL
sijoonlee/kingston-bus-positions-using-kafka-and-websocket
/backend/init_db.sql
UTF-8
317
2.578125
3
[]
no_license
DROP TABLE IF EXISTS vehicles; CREATE TABLE IF NOT EXISTS vehicles ( id SERIAL PRIMARY KEY, vehicle_id VARCHAR(20), route_id VARCHAR(10), latitude FLOAT, longitude FLOAT, stop_id VARCHAR(10), congestion_level VARCHAR(30), current_status VARCHAR(30), signaled_at TIMESTAMP, updated_at TIMESTAMP );
true
e0005f65dc5b1e1a53f6c89f476be614b29b6262
SQL
karsanrichard/zerotech
/dbv/data/schema/contact.sql
UTF-8
417
2.734375
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
CREATE TABLE `contact` ( `contact_id` int(11) NOT NULL AUTO_INCREMENT, `contact_name` varchar(255) NOT NULL, `contact_email` varchar(255) DEFAULT NULL, `contact_subject` varchar(255) DEFAULT NULL, `contact_message` text, `viewed` int(11) DEFAULT '0', `date_created` timestamp NULL DEFAULT CURRENT_TIMESTAMP...
true
759529a7eb8b72f521f7888cc5a37fa99b6918eb
SQL
jsbhb/cardmanager
/src/main/resource/0606.sql
UTF-8
355
2.609375
3
[]
no_license
use coopback; alter table coopback.capitalmanagement add unique index `customer_id_customer_type_UNIQUE`(`customer_id`,`customer_type`); alter table coopback.capitalmanagement drop index `customer_id_UNIQUE`; alter table coopback.capitalmanagement_detail add `customer_type` TINYINT UNSIGNED NULL COMMENT "客户类型0...
true
592016888ce0694f61ae142cdb5906c0fb4eb1f1
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day22/select0733.sql
UTF-8
178
2.625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-21T07:33:00Z' AND timestamp<'2017-11-22T07:33:00Z' AND temperature>=24 AND temperature<=82
true
a94b6c53837b4c9bf6ee70679d542250fb93cb31
SQL
guofuzhang/myblog
/www/application/install/sql/table.sql
UTF-8
8,370
3.796875
4
[ "Apache-2.0" ]
permissive
-- -- 表的结构 `lz_admin` -- CREATE TABLE IF NOT EXISTS `lz_admin` ( `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(20) NOT NULL, `password` char(32) NOT NULL, `name` varchar(20) DEFAULT NULL COMMENT '管理员名称', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- --...
true
d23fabb638077cf7dc18d14c9adf9af13c2679d3
SQL
gymgle/leetcode
/sql/sales-analysis-iii.sql
UTF-8
273
3.9375
4
[]
no_license
# https://leetcode.com/problems/sales-analysis-iii/submissions/ SELECT p.product_id, p.product_name FROM Product p, Sales s WHERE p.product_id = s.product_id GROUP BY p.product_id HAVING SUM(s.sale_date < '2019-01-01') = 0 AND SUM(s.sale_date > '2019-03-31') = 0;
true
742a11ade31c3239db940f6acefe77003a7441cd
SQL
cajharsh/iu-msis-2-simple-docker-js-cajharsh
/app/data/schema.sql
UTF-8
339
2.75
3
[]
no_license
CREATE DATABASE IF NOT EXISTS msisdb; USE msisdb; DROP TABLE IF EXISTS student; CREATE TABLE student ( id int PRIMARY KEY AUTO_INCREMENT , username varchar(24) UNIQUE NOT NULL, name varchar(48) ); INSERT INTO student (id, username, name) VALUES (1, 'tomgreg', 'Tom Gregory'), (2, 'beth1', 'Beth Barnhart'), (...
true
2af7ac5cc3b46668e67534e7c9df16cc9e14ca64
SQL
Nandy-006/DBS-Mini-Project
/Models/Queries.sql
UTF-8
6,189
4.46875
4
[]
no_license
-- Fetching order history for customers SELECT O.OrderNo AS Order_No, O.OrderTime As Order_Time, O.isPaid AS isCompleted, R.Rest_Name AS Restaurant, U.FirstName AS Delivery, SUM(OC.Quantity) AS Quantity, (SUM(OC.Quantity*FI.Price) + O.Del_Charge) AS Price FROM ORDERS O, ORDER_CONTENTS OC, FOOD_ITEMS FI, RESTAURANTS R, ...
true
078c1a4929d6b31b9497370011b38847733eecc1
SQL
vaarii21/Serene
/Database/royal_hotel.sql
UTF-8
6,522
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jan 15, 2021 at 06:51 PM -- Server version: 5.7.31 -- PHP Version: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
true
9c230c5e79e072ac7b571c51c0b266b86d892540
SQL
renzog6/sae-app
/src/main/resources/db/sae_app.sql
UTF-8
735,625
2.625
3
[ "Apache-2.0" ]
permissive
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 100137 Source Host : localhost:3306 Source Schema : sae_app Target Server Type : MySQL Target Server Version : 100137 File Encoding : 65001 Date: 29/04/2020 ...
true
4320a7e2ac51819684b0b64d072925302e00ce9a
SQL
torresmateo/tp-java-2012
/src/database/estructura.sql
UTF-8
4,163
3.109375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : LocalHost Source Server Type : PostgreSQL Source Server Version : 90104 Source Host : localhost Source Database : tpjava Source Schema : public Target Server Type : PostgreSQL Target Server Version : 90104 File Encoding ...
true
4c586441fd9fcd000fb9813f063f995507a8790c
SQL
Prashantvermapv/sql-zoo
/SELECT_basics.sql
UTF-8
1,115
3.671875
4
[]
no_license
/* Sample Data ----------- WORLD name continent area population gdp --------------------------------------- Afghanistan Asia 652230 25500100 20343000000 Albania Europe 28748 2831741 12960000000 Algeria Africa 2381741 37100000 188681000000 Andorra Europe 4...
true