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
0ff7c1d38f2bc4f07ccb4da6d664481a5f17eb50
SQL
marcel-ausan/com.schlemmer.erp
/UsefulSQLQueries/ausan/CurrencyRateView.sql
UTF-8
425
2.796875
3
[]
no_license
CREATE OR REPLACE FORCE VIEW "IFSAPP"."SCG_CURRENCY_RATE_COBA_EUR" ("CURRENCY", "EXCHANGE_RATE", "EXCHANGE_RATE_DATE") AS select currency as CURRENCY , TO_NUMBER(mittelkurs, '99999.9999999') as EXCHANGE_RATE , TO_DATE(kursdatum, 'DD.MM.YY') ...
true
9f226a20c2f6bbd3dca4ba27f5f9e64cc424884c
SQL
harrifeng/mysql-cookbook-code
/sequences/booksales.sql
UTF-8
1,860
4.40625
4
[]
no_license
# booksales.sql # Increment sales for a book (using UPDATE). # Then retrieve new value. # (without LAST_INSERT_ID() # This method requires that a row for the book exist already. TRUNCATE TABLE booksales; #@ _INSERT_0_ INSERT INTO booksales (title,copies) VALUES('The Greater Trumps',0); #@ _INSERT_0_ #@ _UPDATE_1_ UP...
true
a491a1e9827f0ba4a8745bb5766f93162521dd5c
SQL
SSolano1/Bamazon
/schema.sql
UTF-8
2,328
3.125
3
[]
no_license
CREATE DATABASE Bamazon; USE Bamazon; CREATE TABLE products( ID INT NOT NULL AUTO_INCREMENT, Product_Name VARCHAR(100) NOT NULL, Department_Name VARCHAR(45) NOT NULL, Price DECIMAL(15,2) NULL, Stock_Quantity INT (10) NULL, PRIMARY KEY (id) ); insert into products ( product_name, department_name, price...
true
86bdebeac377654f448497d7a9c799944942a8af
SQL
saini5um/Misc
/CEL_COS_SCHED.sql
UTF-8
1,691
3.5625
4
[]
no_license
select * from all_tables where owner like 'FLAG%' and table_name like 'COS%ORD%' and num_rows > 0; select * from FLAGSHIPSTOREPROD_PROD.COS_ORDER_MST where sbl_order_id = '1-1KDO2QZ1'; select sbl_status, count(*) --UPDATED_BY, count(*) from FLAGSHIPSTOREPROD_PROD.COS_ORDER_MST where order_status = 'IN PROGRE...
true
a476f0cbd76113d722e3b25cc89a3042d76c749b
SQL
PortageJano/CSC394
/csc394.sql
UTF-8
2,758
3.78125
4
[]
no_license
DROP TABLE IF EXISTS `permissions`; CREATE TABLE `permissions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `permission_name` varchar(50) DEFAULT NULL, `permission_title` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSERT INTO `permissions` VALUES (1,'administrator','Adminis...
true
ab7359717e3df2dff65d4e5487af300bdf27f291
SQL
A0nameless0man/Pile
/Notes/DataBaseSystem/3.53.sql
UTF-8
127
2.984375
3
[]
no_license
select * from Item where Price < all( select Price from Item where ItemType = 'Food' );
true
ba825b58e1b32d4045fea73fc99f039daff91722
SQL
eprikazc/wazimap-za
/sql/census/ageincompletedyears_2016.sql
UTF-8
945,697
2.9375
3
[ "MIT" ]
permissive
-- -- PostgreSQL database dump -- -- Dumped from database version 9.4.15 -- Dumped by pg_dump version 10.1 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min...
true
398db10bb43a3b3826eccb51a766af12b1827262
SQL
henri562/united-nations-HDI-dB
/create.sql
UTF-8
4,014
3.609375
4
[]
no_license
Rem Rem cs457_12861_create.sql Rem Rem NAME Rem cs457_12861_create.sql - Create data objects for CS457_12861 schema Rem Rem DESCRIPTION Rem This script creates four tables, associated constraints, Rem indexes and synonyms in the CS457_12861 schema. Rem Rem NOTES Rem Rem CREATED by Mengch...
true
46d9cc5bd09bf899857f4fe8e62c4fadad9ef902
SQL
farid175/Oracle_sql_codes
/Task1.sql
UTF-8
414
3.4375
3
[]
no_license
/* Instructions Display the first name and join date of the employees who joined between 2002 and 2005. 2002-2005-ci illerde shirkete qosulmus iscilerin siyahisini cixarin (id, ad, soyad ve ise baslama tarixi) */ select e.employee_id,e.first_name,e.last_name,e.hire_date from employees e where e....
true
00a2d00e910e5e26e377b69a7738553bf895797c
SQL
Negrativo/SQL_Oracle
/Treinamento/TREINAMENTO_PREST_SERVIÇOS_5.SQL
UTF-8
2,718
3.140625
3
[]
no_license
PKG_DDL.ADICIONA_COLUNA ('CURMEDIC5', 'CNOMMED5' , 'VARCHAR2 (30)' , 'NOME DO MEDICO'); --ADICIONAMDO TABELA CURMED (PRESTADORES DO SERVIÇO) E COLUNA MEDICOS PKG_DDL.ADICIONA_COLUNA ('CURMEDIC5' , 'CNOMPRES5' , 'VARCHAR2 (30)' , 'NOME DO PRESTADO'); --ADICIONANDO COLUNA NOME PRESTADORES NA TABELA CURMED PKG_DDL.ADICI...
true
31ba2426e1f853e7e3fe4157e39100de641a267f
SQL
OKOJ/fifa
/db/schema.sql
UTF-8
553
2.578125
3
[]
no_license
DROP DATABASE IF EXISTS fifa_db; CREATE DATABASE fifa_db; USE fifa_db; CREATE TABLE players ( id INT (6) NOT NULL AUTO_INCREMENT, player_name VARCHAR (24) NOT NULL, pick BOOL DEFAULT false, PRIMARY KEY (id) ); INSERT INTO players (player_name, pick) VALUES ("Lionel Messi",true); INSERT INTO players (...
true
05058fcffe8a101d2939e7ba5fb97fee54d4cf83
SQL
wahlp/ee4717-project
/sql/users.sql
UTF-8
1,624
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 01, 2021 at 09:11 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
b6c82a6a8bd4243808e5e11c0c600cc403b07a8d
SQL
czabadaygabor/webshop
/api/sql/egy_orszag.sql
UTF-8
126
2.515625
3
[]
no_license
SELECT o_id, o_name, o_distance, o_shipping_fee, if(o_isavailable=1,'Igen','Nem') as o_isavailable FROM orszag WHERE o_id=:id;
true
7787b8cf72a9708e130e448be49ee8f01d6be930
SQL
unison/unison
/misc/sql-scraps/init.sql
UTF-8
2,373
2.640625
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "CC-BY-4.0" ]
permissive
\echo ======================================================================= \echo $Id: init.sql,v 1.1 2003/04/12 00:36:40 rkh Exp $ -- initialize database with some defaults -- ======================================================================= insert into meta (key,value) values ('schema_Id','$Id: init.sql,v 1...
true
e1841b5f41e2e0de18bf8e989d2217fae63a4750
SQL
pauloferreiracollege/SQL_AC2
/ac2_exe2.sql
UTF-8
807
3.703125
4
[]
no_license
CREATE DATABASE ac2_biblioteca DROP DATABASE ac2_biblioteca USE ac2_biblioteca CREATE TABLE Livro( Nome VARCHAR(200), Copia INT, StatusLivro VARCHAR(10) NOT NULL, CONSTRAINT PK_Livro PRIMARY KEY (Nome, Copia) ) CREATE TABLE Cliente( Id INT, Nome VARCHAR(200) NOT NULL, Telefone INT NOT NULL, CONSTRAINT PK_Cliente PRI...
true
844c1a4de83c4de09b475db817f8759aa63259a1
SQL
mbizhani/Demeter
/common/src/main/resources/sql/dmt_oracle_1.1.sql
UTF-8
953
2.625
3
[ "Apache-2.0" ]
permissive
ALTER TABLE a_t_dmt_role DROP COLUMN b_dynamic; ALTER TABLE a_t_dmt_role ADD e_role_mode NUMBER(10, 0); -- --------------- ALTER TABLE t_dmt_role DROP COLUMN b_dynamic; ALTER TABLE t_dmt_role ADD e_role_mode NUMBER(10, 0); UPDATE t_dmt_role SET e_role_mode = 1; ALTER TABLE t_dmt_role MODIFY e_role_mode NUMBE...
true
e7e0d185bc5cc2a931381303bb3d8437304431d3
SQL
MeiyuJijieYihou/deliverymanagement
/src/main/resources/data.sql
UTF-8
24,581
2.96875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : java Source Server Type : MySQL Source Server Version : 80015 Source Host : localhost:3306 Source Schema : deliverymanagement Target Server Type : MySQL Target Server Version : 80015 File Encoding : 65001 Date: 20/08/201...
true
50e5cfb85c9d14044febbf1930b4aae3e40bb104
SQL
wchen308/practice_db
/product_price_at_given_date_1164_window_null.sql
UTF-8
2,152
4.78125
5
[]
no_license
/* Write an SQL query to find the prices of all products on 2019-08-16. Assume the price of all products before any change is 10. The query result format is in the following example: Products table: +------------+-----------+-------------+ | product_id | new_price | change_date | +------------+-----------+-----------...
true
da3df72265f857ae0fa6fd8e95aad0cab75093a7
SQL
malitao2017/tech23mybatis
/db.sql
UTF-8
764
3.453125
3
[]
no_license
# 注意数据库的编码格式为utf8 create database mybatis character set utf8; CREATE TABLE users(id INT PRIMARY KEY AUTO_INCREMENT, NAME VARCHAR(20), age INT) DEFAULT CHARACTER set utf8; INSERT INTO users(NAME, age) VALUES('孤傲苍狼', 27); INSERT INTO users(NAME, age) VALUES('白虎神皇', 27); show create table users; -- CREATE TABL...
true
de024a99f303b95eaed9595ebbeb9f3c8a16fde4
SQL
rtdohe01/CIS-420
/420 Project Code/Code for creating all tables.sql
UTF-8
14,053
3.5625
4
[]
no_license
--This tells SAQL Server Management Studio (SSMS) to use the SRC database use SRC; --This creates the Log In table create table Log_In( LOG_ID varchar(50) primary key not null, --This creates the LOG_ID cloumn, desginates LOG_ID as a varchar data type, a primary key, and must contain data LOG_PA...
true
738fea0f40c5ae1845e119c4391aef34760265ca
SQL
VyaraGGeorgieva/DataBases
/Homework/04.IntroSQL/11.sql
UTF-8
173
3.25
3
[]
no_license
/*Problem 11. Write an SQL query to find the names of all employees whose first name starts with "SA".*/ SELECT FirstName, LastName FROM Employees WHERE FirstName LIKE 'Sa%'
true
65153d722525ac35340346d14c1e5a11b2a005f6
SQL
marceloreis13/consultas.cc
/_extras/sql-imports/selects.sql
UTF-8
879
3.375
3
[]
no_license
#Tabelas auxiliares SELECT * FROM _counter; SELECT * FROM _settings; SELECT * FROM _logs order by `table` desc limit 10000; SELECT * FROM _timing; #Nomes repetidos sem definicao de sexo SELECT doc, name, type, count(h1) as ocorrencias FROM entities where type != 2 and gender is null group by h1 order by count(h1) desc...
true
b38c03ff254b5c96f0a771b4221a0ba6c433bfac
SQL
sak08/Onlie-Appointment
/Appointment-Tool/Db-Backup/schedule.sql
UTF-8
4,408
3.046875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 28, 2019 at 02:44 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 5.6.39 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
cb581a52cb89a3a893a8bc744f336f4b4f335ebe
SQL
wjsrnrwls24/MagicMall
/src/main/resources/sql/extra_address.sql
UTF-8
205
3
3
[]
no_license
CREATE TABLE extra_address( add_no INT PRIMARY KEY AUTO_INCREMENT, user_no INT NOT NULL, add_name VARCHAR(100), address VARCHAR(200), FOREIGN KEY(user_no)REFERENCES user(user_no) ON DELETE CASCADE );
true
eae49facecfea21f7b7c48bcb610b7f5e7f8c167
SQL
clausoriano/BD
/Tema 5/22.sql
UTF-8
133
2.625
3
[]
no_license
select vnt_tda,tda_ger,count(distinct vnt_art),sum(vnt_precio) from ventas,tiendas where vnt_tda = tda_num group by vnt_tda,tda_ger;
true
0b92e70fbbb1d247c5c1e817f734a618e90f6577
SQL
harry2303/SQL-Script-4-BW-Consultants
/SQL Script Listings/comparison declarative imperative.sql
UTF-8
632
3.546875
4
[ "MIT" ]
permissive
/* Vergleich Deklarative und Imperative Programmierung */ --Testtabelle anlegen CREATE TABLE tab (COL_A int); INSERT INTO tab VALUES (1); INSERT INTO tab VALUES (2); INSERT INTO tab VALUES (3); INSERT INTO tab VALUES (4); /* Deklaratives Beispiel */ DO BEGIN DECLARE lv_agg INT = 0; SELECT SUM(col_a) INTO lv_agg FROM ...
true
2081da0fe194bb061889dd5655a6f42601109148
SQL
DhanushChinnaiyan/database
/MySQL/query.sql
UTF-8
3,764
3.828125
4
[]
no_license
-- select default database USE student_records; -- describe table DESC profile_status; -- rename table RENAME TABLE friends TO firend_list; ALTER TABLE firend_list RENAME friends; -- create table with existing table CREATE TABLE post_temp AS SELECT post_id, post_title FROM posts; -- copying existing table structure C...
true
57abca8489660afdb072dca23d093ea594813181
SQL
wilsonvalle69/dbt_tutorial
/models/department_employee.sql
UTF-8
395
3.375
3
[]
no_license
{{ config(materialized='table') }} with department as ( select * from {{ ref('department') }} ), employee as ( select * from {{ ref('employee') }} ), final as ( select d.id as department_id, d.name as department_name, d.id as employee_id, e.name, e.dob, e.country from employee as e ...
true
68a2859452767fce6103f689a04565521e4238ed
SQL
dtahoan/Spring-Boot-Example
/Spring Data N+1 Query Problem Example/src/main/resources/db/initTable_Data.sql
UTF-8
1,770
3.40625
3
[]
no_license
CREATE SCHEMA IF NOT EXISTS `w3stacks-example-jpa-1toN` DEFAULT CHARACTER SET utf8 ; USE `w3stacks-example-jpa-1toN` ; CREATE TABLE IF NOT EXISTS `w3stacks-example-jpa-1toN`.`Languages` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(75) NOT NULL, PRIMARY KEY (`id`)) ENGINE = InnoDB; CREATE TABLE IF NOT EXIS...
true
97166c422a1b2f24508dcec44958c0f81b38b771
SQL
boooooommmmmm/bilibiliCrawler
/bilibili_user_info_backup.sql
UTF-8
1,763
2.734375
3
[]
no_license
-- -- Table structure for table `bilibili_user_info_backup` -- DROP TABLE IF EXISTS `bilibili_user_info_backup`; CREATE TABLE `bilibili_user_info_backup` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `mid` int(20) unsigned NOT NULL, `name` varchar(45) NOT NULL, `sex` varchar(45) NOT NULL, `rank` varchar(...
true
5b8e516718292a572249fcf00ed0eaa3b898bff3
SQL
Thepatterraining/kaka-service
/sqlquery/v5_1_04_create_payment_basics.sql
UTF-8
9,369
3.5625
4
[]
no_license
-- 创建 sys_company 表 DROP TABLE IF EXISTS `sys_company`; CREATE TABLE `sys_company` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `company_no` varchar(30) NOT NULL DEFAULT '' COMMENT '五证合一号码', `company_name` varchar(255) NOT NULL DEFAULT '' COMMENT '公司名称', `company_remark` varchar(255) NOT NULL DEFAULT '...
true
0d54f9233953233e531849a892c4c08168b6523e
SQL
dineshgajwani/Poll.io
/database/create.sql
UTF-8
4,964
3.25
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Thu Jul 13 01:40:20 2017 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TR...
true
7eaf39f5118b9ef1b0dd11c5042ab3ba42155a36
SQL
josueolvera/respaldo
/Dump/BID_NEW_USERS_ROLE.sql
UTF-8
2,825
3.1875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `BID_NEW` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `BID_NEW`; -- MySQL dump 10.13 Distrib 5.6.27, for debian-linux-gnu (x86_64) -- -- Host: 192.168.1.149 Database: BID_NEW -- ------------------------------------------------------ -- Server version 5.5.41-MariaDB /*!40101 SET @OLD_...
true
3415e0efe746f534d20f8273f9fe042b6f2f33df
SQL
joselepedraza/UGR
/Fundamentos Base de Datos (FBD)/Practicas SQL/PRACTICAS-SQL-AR/P5/Actividad3/Division/eje35.sql
UTF-8
251
3.328125
3
[]
no_license
-- Alumnos matriculados de todas las asignaturas optativas (otra version) select ape1,ape2,nombre from alumnos where not exists ( (select asi# from asigna where caracter='op') minus (select codasi# from matricula where alumnos.dni=matricula.dni)) /
true
563ca111e23df32985e3070beb557168d7187dde
SQL
alexpickering/dota_webscraper
/misc/schema.sql
UTF-8
2,367
2.640625
3
[ "MIT" ]
permissive
CREATE TABLE hero ( hero STRING PRIMARY KEY, base_strength INTEGER, strength_growth FLOAT, base_agility INTEGER, agility_growth FLOAT, base_intelligence INTEGER, intelligence_growth FLOAT, health_0 INTEGER, health_1 INTEGER, health_15 INTEGER, health_25 INTEGER, health_30...
true
dbd0ffa729b6b221d9217b53f0d1c096d4488379
SQL
nsorin/B3334_2016
/BDD/creationBdd.sql
UTF-8
10,621
3.609375
4
[]
no_license
/* LINKS CREATION */ CREATE DATABASE LINK EuN CONNECT TO ovicente IDENTIFIED BY mdporacle USING 'DB2'; CREATE DATABASE LINK Am CONNECT TO ovicente IDENTIFIED BY mdporacle USING 'DB4'; CREATE DATABASE LINK R CONNECT TO ovicente IDENTIFIED BY mdporacle USING 'DB1'; /* ALIAS CREATION */ /* CLIENTS */ CRE...
true
8d056f4dc1bb965f1aeb2bef768ca19719396aed
SQL
IanLehfeldt/prime-solo-sql
/solution.sql
UTF-8
2,531
3.890625
4
[]
no_license
-- CREATE TABLE syntax_practice ( -- user_id serial PRIMARY KEY, -- username character varying(12), -- city character varying(128), -- transactions_completed integer, -- transactions_attempted integer, -- account_balance numeric(12,2) -- ); -- INSERT INTO syntax_practice (username, city, transa...
true
5bffa99e682ced4d7d6d2885fc41c8c447f8426f
SQL
honghuixixi/zbzx-sys-service
/aek-sys-web-api/src/main/resources/sql/SYS_1.0.4_DICTIONARY_执行顺序2.sql
UTF-8
10,499
3.671875
4
[]
no_license
#==========================创建字典表结构,初始化数据==================================== DROP TABLE IF EXISTS `base_dict`; CREATE TABLE `base_dict` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `parent_id` bigint(20) DEFAULT NULL COMMENT '字典父ID', `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户ID', `name` varch...
true
0aa7593519cc09e0392af60d5e9862a590765500
SQL
carl24k/fight-churn
/fightchurn/listings/chap7/listing_7_3_total_metric.sql
UTF-8
337
3.703125
4
[ "MIT" ]
permissive
select account_id, metric_time, string_agg(metric_value::text,' + ') as metric_sum, sum(metric_value) as metric_total from metric m inner join metric_name n on n.metric_name_id=m.metric_name_id and n.metric_name in (%metric_list) where metric_time between '%from_yyyy-mm-dd' and '%to_yyyy-mm-dd' group by metric_...
true
428bf8d4495325a909a6fe161440d0c4e979ed83
SQL
Deserlo/S3T6TM2
/mySQLstuff/create_table.sql
UTF-8
1,772
3.71875
4
[]
no_license
CREATE DATABASE TM; CREATE TABLE User(id INTEGER NOT NULL AUTO_INCREMENT primary key, userName VARCHAR(30) NOT NULL, fname VARCHAR(30) NOT NULL, team VARCHAR(30) NOT NULL, pwd VARCHAR(30) NOT NULL, mgrID INT, );...
true
e575a44f8521c522b311813873863afee9d5f210
SQL
DonaldAlbert/php-NYCCMS
/cms.sql
UTF-8
2,038
2.953125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 29, 2015 at 12:39 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
bb07190e0c879923b640bd3a62047caf73121f4a
SQL
MelvinCastillo/SIGES_app
/Script/BORRAR PROSPECTOS PACIENTES, DIRECCIONES Y NUCLEO FAMILIAR.sql
ISO-8859-1
2,679
2.75
3
[]
no_license
--SELECT * INTO PAX00000_30052019 FROM PAX00000 SELECT * FROM PAX00001 WHERE ROWSGXID = 'caid-stg' SELECT * FROM SMX00100 WHERE ROWSGXID = 'caid-stg' /*1. BUSCO LOS NUCLEO FAMILIAR*/ SELECT * FROM PAX00001 WHERE ROWSGXID = 'caid-stg' AND REFGUID IN ( SELECT ROWGUID FROM PAX00000 WHERE FULLNAME IN (...
true
88250b33f1919561324996ea703e75b36b31d46a
SQL
maytonsolutions/github
/mysql_scheduled_jobs/stage_misc_2nd_script.sql
UTF-8
1,925
2.984375
3
[]
no_license
select * from hl7app.adt_msg_queue_sanmateo0531 where visit_number = '000006757457' order by system_timestamp; select location, count(distinct visit_number) from hl7app.adt_msg_queue_hendrick where processing_status = 'd' and discharge_datetime >= '20180409000000' and discharge_datetime < '20180410000000' group by loc...
true
dbae7ac414d39c78ad6ac5b7201dedee2fc2969d
SQL
AcPvP/Fizzletide_Content
/sql/weenies/hidden forest tailoring/1026031 Bone Dagger.sql
UTF-8
2,607
2.625
3
[]
no_license
DELETE FROM `weenie` WHERE `class_Id` = 1026031; INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`) VALUES (1026031, 'ace1026031-bonedagger', 6, '2021-04-18 02:49:42') /* MeleeWeapon */; INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`) VALUES (1026031, 1, 1) /* ItemT...
true
e3e23a984148b2be2b6f4528a82c7b04f6b90577
SQL
hackathonUTC/wink
/server/tables.sql
UTF-8
2,058
3.6875
4
[]
no_license
CREATE TABLE origins ( origin_id SERIAL NOT NULL PRIMARY KEY, name VARCHAR(50) NOT NULL ); CREATE TABLE users ( user_id VARCHAR(8) NOT NULL PRIMARY KEY, firstname VARCHAR(50), lastname VARCHAR(50), branch VARCHAR(5), gender VARCHAR(1) CHECK (gender IN('m', 'f', 'a')), language VARCHAR(20), ...
true
4ea7f16e610afbde17b9a52471451ebba5af92a8
SQL
jserrichio/cyc_sucursal
/sql_estructura.sql
UTF-8
18,789
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 20-03-2017 a las 18:14:28 -- Versión del servidor: 10.1.19-MariaDB -- Versión de PHP: 7.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
true
b7709e46061dcca4f94e53a50a760ba529e7c169
SQL
pirocorp/Databases-Basics-MS-SQL-Server
/08. Additional Exercises/08. Peaks and Mountains/Peaks and Mountains.sql
UTF-8
192
3.328125
3
[ "MIT" ]
permissive
SELECT p.PeakName, m.MountainRange AS [Mountain], p.Elevation FROM Peaks as p JOIN Mountains AS m ON m.Id = p.MountainId ORDER BY Elevation DESC, p.PeakName
true
6292c9dcb75e24f0250e5cadd94b275b913b251d
SQL
dzyuzin-trac/ORCA
/Import SQL Scripts/Create and Populate ST AVL no APC.sql
UTF-8
980
3.015625
3
[]
no_license
create table if not exists `st-avl-noapc`( `ID` INT unsigned AUTO_INCREMENT KEY, `vehicle_id` SMALLINT unsigned, `date` DATE, `time` TIME, `GPS_LOCATION` POINT NOT NULL, INDEX (`vehicle_id`), INDEX (`date`), INDEX (`time`), SPATIAL INDEX (`GPS_LOCATION`) ) ENGINE=MyISAM;...
true
cb676df8d47361c8290d46bfd4c7bf91cf24e0bf
SQL
allybitebo/ucb
/DB/ucbdatabase.sql
UTF-8
31,074
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 18, 2015 at 10:58 AM -- Server version: 5.6.16 -- PHP Version: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
c73a6511a92d138bc2219280ab27da83ac7d1163
SQL
Sdmitr90/Basics-of-Relational-Databases.-MySQL.25.08-03.10.2021
/6 урок ДЗ Скворцов Д.О..sql
UTF-8
1,419
4.125
4
[]
no_license
/* Урок 6. Вебинар. Операторы, фильтрация, сортировка и ограничение. Агрегация данных * Задание №1 Пусть задан некоторый пользователь. * Из всех пользователей соц. сети найдите человека,который больше всех общался с выбранным пользователем * (написал ему сообщений). */ SELECT lastname as 'Фамилия пользователя', ...
true
5a1b1b66713e7a2a17d9d57515d9b4cc047c70b8
SQL
MAdinugroho/spk-electre
/spkelectre.sql
UTF-8
13,792
2.6875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
/* Navicat Premium Data Transfer Source Server : xampp Source Server Type : MySQL Source Server Version : 100129 Source Host : localhost:3306 Source Schema : spkelectre Target Server Type : MySQL Target Server Version : 100129 File Encoding : 65001 Date:...
true
e2e68ef50e3630787b983848f9bb4a8dbfffbf7e
SQL
ItaloNogueira/DB-Chamados
/TB-Mensagem.sql
UTF-8
913
3.859375
4
[]
no_license
CREATE TABLE IF NOT EXISTS Mensagem( idMensagem SMALLINT(50) PRIMARY KEY NOT NULL AUTO_INCREMENT, mensagem VARCHAR(100), dataMensagem DATE, hora TIME, chamadoIdUsuario SMALLINT(10), chamadoIdchamado SMALLINT(10), CONSTRAINT fk_chamadoIdUsuario FOREIGN KEY(chamadoIdUsuario) REFERENCES chamados(i...
true
e3ed6a768f9709f88675287abc69d1f55c57c527
SQL
malitao2017/dn09SSH_Annotation
/test_20151022.sql
UTF-8
6,151
3.21875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 本机连接测试邮件导入功能 Source Server Version : 50024 Source Host : localhost:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50024 File Encoding : 65001 Date: 2015-10-22 09:27:35 */ SET FOREIGN_KEY_...
true
fa60dc10a97a11c1ad94b58bc0219fe59a1f9bbb
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day13/select0513.sql
UTF-8
177
2.625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-12T05:13:00Z' AND timestamp<'2017-11-13T05:13:00Z' AND temperature>=6 AND temperature<=89
true
dba9dc5bdb7633199946f24f957e5ebba566e11b
SQL
ShariaTelecom/zo.naval.id
/modules/boonex_unused/glossary/install/sql/uninstall.sql
UTF-8
2,690
3.5625
4
[ "MIT" ]
permissive
-- TABLES DROP TABLE IF EXISTS `bx_glossary_terms`, `bx_glossary_files`, `bx_glossary_photos_resized`, `bx_glossary_cmts`, `bx_glossary_votes`, `bx_glossary_votes_track`, `bx_glossary_reactions`, `bx_glossary_reactions_track`, `bx_glossary_views_track`, `bx_glossary_meta_keywords`, `bx_glossary_meta_mentions`, `bx_glo...
true
aff0f14840ef195fc2b7676097836d278ca8eef0
SQL
martaskarbek/dojo_queststore_SQL_queries
/queries/Query_14.sql
UTF-8
395
3.484375
3
[]
no_license
select distinct user_details.name, user_details.surname from shared_artifacts_payments, students, user_details where user_details.id=students.user_details_id except select distinct user_details.name, user_details.surname from user_details, shared_artifacts_payments, students where user_details.id=students.user_details_...
true
99fb2f73b526578e387a61471ef29cb9a2258549
SQL
RichardCalata/database-exercises
/join_exercises.sql
UTF-8
1,895
4.65625
5
[]
no_license
USE employees; select * from employees limit 10; describe departments; select dept_name from departments join employees on emp_no = emp_no limit 10; select CONCAT(e.last_name, ', ', e.first_name) AS fullName,d.dept_name as department from employees AS e JOIN dept_emp as de on de.emp_no = e.emp_no JOIN departments ...
true
9eb84711070df35c942a8565c880f24e2a511786
SQL
leongold/ovirt-engine
/packaging/dbscripts/upgrade/03_06_0690_render_event_map_optional.sql
UTF-8
180
2.546875
3
[ "Apache-2.0" ]
permissive
DELETE FROM event_map WHERE length(trim(event_down_name)) = 0 OR event_down_name = 'UNASSIGNED'; ALTER TABLE event_subscriber DROP CONSTRAINT fk_event_subscriber_event_map;
true
9396553d1c35095c4f151059ea2a7de3138142ad
SQL
pethupraveen/School_Manage
/cias.sql
UTF-8
15,958
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 17, 2021 at 03:56 PM -- Server version: 10.1.36-MariaDB -- PHP Version: 5.6.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
a94fb73b0455e0857020363552bd035346ddba97
SQL
ksgifford/MIDS_w205_Ex01
/investigations/best_hospitals/best_hospitals.sql
UTF-8
1,322
3.5
4
[]
no_license
CREATE TABLE best_hospitals_tmp AS SELECT Provider_ID, AVG(Adj_Score) AS Procedure_Average, STDDEV_POP(Adj_Score) AS Procedure_Variability FROM procedures_transform GROUP BY Provider_ID; CREATE TABLE stats_tmp AS SELECT AVG(Procedure_Variability) AS Procedure_Variability_Avg FROM best_hospitals_tmp; C...
true
b3a5b0fe91001ae7060b0146f99a2f5d5e339f47
SQL
CUBRID/cubrid-testcases
/sql/_27_banana_qa/issue_5765_timezone_support/_00_dev_cases/_01_object/_05_datetimeltz/cases/1026.sql
UTF-8
1,539
2.65625
3
[ "BSD-3-Clause" ]
permissive
create class test_class (date_col date, time_col time, timestamp_col timestamp, datetime_col datetimeltz, datetime_col1 datetimeltz); insert into test_class values (DATE '01/01/1971', TIME '09:00:00', TIMESTAMP '01/01/1972 10:30:00', datetimeltz '1970-01-01 00:00:00.000', datetimeltz '1970-01-01 00:00:00.000'); insert...
true
6269a96870ec093d42023353fbdcde5f282353f6
SQL
Akil06/Database
/OrderManage.sql
UTF-8
1,890
3.8125
4
[]
no_license
Create database OrderManage; use OrderManage; show tables; describe user_table; select * from user_table; delete from user_table where password='raj'; describe quote; alter table `product` modify filename varchar(255); select * from user_table; select * from person_table select * from product; select * from ord...
true
2863f9956daf7b3c48942cc1ac43b61d404e673b
SQL
narayani005/delivery_app
/source/public/dbdump/database.sql
UTF-8
89,037
3.015625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 31, 2021 at 10:47 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 7.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
54e8b1ee73344c1168a0f3ea544772f53795cf96
SQL
Topwings7/Passion
/WebContent/db/product.sql
UTF-8
1,441
3.21875
3
[]
no_license
DROP TABLE PRODUCT; CREATE TABLE PRODUCT( PCODE VARCHAR2(50) PRIMARY KEY, PBRAND VARCHAR2(50) NOT NULL, PNAME VARCHAR2(50) NOT NULL, PIMG1 VARCHAR2(50) DEFAULT 'NOIMG1.PNG' NOT NULL, PIMG2 VARCHAR2(50) DEFAULT 'NOIMG2.PNG' NOT NULL, PIMG3 VARCHAR2(50) DEFAULT 'NOIMG3.PNG' NOT NULL, PIMG4 VARCHAR2(50) DEFAULT 'NO...
true
1e8906e8c604e03906dd05b6a32370a9f422102d
SQL
sergeykin/job4j_design
/userRoles.sql
UTF-8
1,737
3.421875
3
[]
no_license
create database userRoles; create table role( RoleID serial primary key , Name varchar(255) ); create table "user"( UserID serial primary key , FIO varchar(255), BirthDay date, Heigh double precision, ...
true
2803967c87848f81db057c3e15d98c73f1ac1f86
SQL
drestanto/laravel-API
/simpensql.sql
UTF-8
5,676
3.046875
3
[ "MIT" ]
permissive
-- MySQL dump 10.13 Distrib 5.7.18, for Linux (x86_64) -- -- Host: localhost Database: api -- ------------------------------------------------------ -- Server version 5.7.18-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RE...
true
69f58729855d51a202a88cd67bc069b87d38b7a8
SQL
vianziro/eLearning-1
/elearningbk.sql
UTF-8
5,697
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 07, 2017 at 01:12 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
14749c67bc02fdd6c76a32abd6e1317d5559343c
SQL
ryanswilson59/metaite
/migrations/2020-09-07-045120_make_emails/up.sql
UTF-8
333
2.71875
3
[]
no_license
-- Your SQL goes here CREATE TABLE registered_heads (id INTEGER PRIMARY KEY NOT NULL, head TEXT NOT NULL); CREATE TABLE emails (id INTEGER PRIMARY KEY NOT NULL, registered_head_id INTEGER NOT NULL, domain TEXT NOT NULL, sender TEXT NOT NULL, message TEXT NOT NULL, FOREIGN KEY (registered_head_id) REFERENCES registered...
true
191ed96ba111931423e08d6aa4e7f4c53d2f1e83
SQL
catgoing/mystudy
/00SQL/practice7.sql
UHC
1,709
4.125
4
[]
no_license
/* 1 ) EMPLOYEES ̺ μ ο ޿ ޿ ּ ޿ ִ ޿ ϴ EMP_DEPTNO ̺ ϶*/ CREATE TABLE EMP_DEPTNO(DEPTNO, NUM, AG, SM, MN, MX ) AS SELECT department_id, COUNT(employee_id), ROUND(AVG(salary)), SUM(salary), MIN(salary), MAX(salary) FROM employees GROUP BY department_id; DROP TABLE EMP_DEPTNO; -- 2) EMP_DEPTNO ̺ ETC COLUMN ߰϶ ...
true
087c1b0c6fce588f14cbf22f745565f8606b0483
SQL
peterkeres/weather_station_csu
/Database/weather_users_db.sql
UTF-8
4,008
3.6875
4
[]
no_license
/* peter Keres oct 12 2019 this is the creation of the users database for the weather station project v0.3 odds are how size of data types might change to make more effecent. tables created: user groups right_list rights event */ --creates a table tha will hold...
true
4a5e00dd31fd6e1764094d419ff997e85d0eb8c0
SQL
Reysson/java-api-algafood
/algafood-reysson/src/main/resources/import.sql
UTF-8
3,394
2.640625
3
[]
no_license
insert into cozinha (nome) values('Tailandesa'); insert into cozinha (nome) values('Indiana'); insert into cozinha (nome) values('Argentina'); insert into cozinha (nome) values('Brasileira'); insert into estado (nome) values('Minas Gerais'); insert into estado (nome) values('São Paulo'); insert into estado (nome) valu...
true
2ad329a39b52c35e162106c38701df2ed4f934e5
SQL
csoyn/django-practices
/99.sql_orm/group_by.sql
UTF-8
156
2.78125
3
[]
no_license
SELECT country, last_name, MAX(balance) FROM users_user GROUP BY country, last_name; -- country X last_name 조합 경우를 전부 계산 => aggregate()
true
fc82e7a7449597a56cf355b6735d686895cda4f5
SQL
osu-cs419-w20/final-project-t13
/sql/2-create-album-table.sql
UTF-8
248
3.265625
3
[]
no_license
CREATE TABLE IF NOT EXISTS album ( id SERIAL NOT NULL, mbid TEXT UNIQUE NOT NULL, title TEXT NOT NULL, image_url TEXT, artist_id integer NOT NULL, PRIMARY KEY (id), FOREIGN KEY (artist_id) REFERENCES artist (id) ON DELETE CASCADE );
true
96202ab34aab49abf0cae6ac512fa2210c56c555
SQL
maxKernn/msg-audit-tool
/java-backend/src/main/resources/schema-mysql.sql
UTF-8
8,639
3.703125
4
[ "MIT" ]
permissive
-- ----------------------------------------------------- -- Schema msg_audit_database -- ----------------------------------------------------- -- ----------------------------------------------------- -- Schema msg_audit_database -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `msg_...
true
bc2ef68fe1cb5ea1f5f2d271c7ffe989cd5e75cc
SQL
CodeAcademie/CERT02.1
/sql/data.sql
UTF-8
1,435
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Client : localhost -- Généré le : Mar 05 Septembre 2017 à 10:02 -- Version du serveur : 5.7.19-0ubuntu0.16.04.1 -- Version de PHP : 7.0.22-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!...
true
7f32885623efaf2839ca0768190b40aefb293e27
SQL
RyanGano/LegendaryTools
/sql/Creation.sql
UTF-8
12,497
3.75
4
[]
no_license
-- Clear out existing data drop table info; drop table gamepackageneutrals; drop table gamepackageschemes; drop table gamepackagemasterminds; drop table gamepackageadversaries; drop table gamepackagehenchmen; drop table gamepackageallies; drop table schemeabilities; drop table mastermindabilities; drop table adv...
true
2684a59f7e9730d2be5895592be035c28982543a
SQL
devatsrs/neon.web
/dbv-1/data/schema/prc_WSGenerateSippySheet.sql
UTF-8
816
3.21875
3
[ "MIT" ]
permissive
CREATE DEFINER=`neon-user`@`192.168.1.25` PROCEDURE `prc_WSGenerateSippySheet`( IN `p_CustomerID` INT , IN `p_Trunks` VARCHAR(200), IN `p_Effective` VARCHAR(50), IN `p_CustomDate` DATE ) BEGIN -- get customer rates CALL vwCustomerRate(p_CustomerID,p_Trunks,p_Effective,p_CustomDate); SELECT CASE WHEN EndDate...
true
7f2b952e9c5161551035f423f33e49bdc281ff15
SQL
rickymuvel/CorsProblem
/stored procedures.sql
UTF-8
10,586
3.75
4
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS `sp_getCarteras` $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_getCarteras`() BEGIN SELECT c.*, p.razon_social, tc.tipo_cartera FROM proveedores p INNER JOIN carteras c ON p.id = c.id_proveedor INNER JOIN tipos_cartera tc ON c.id_tipo_cartera=tc.id ORDER BY c....
true
09dfe3b7c10ba20477214b1e98b938a52845ab48
SQL
Alejo-Urbina/ADN_FINAL
/src/main/resources/db/migration/DDL/V1.0__schema.sql
UTF-8
407
2.8125
3
[]
no_license
create table usuario ( id int(11) not null auto_increment, nombre varchar(100) not null, clave varchar(45) not null, fecha_creacion datetime null, primary key (id) ); create table cliente ( id int(50) not null auto_increment, nombre varchar(100) not null, cedula varchar(20) not null, genero varchar(20) not nu...
true
c9caf04da1db20fccfaf89e9a2719b03ee7d07ec
SQL
throughput-ec/throughput_api
/helpers/ccdr/cql/searchCCDR.cql
UTF-8
1,360
3.9375
4
[]
no_license
// We want to match code repositories based on a full text search, // repository name, or a set of linked keywords. UNWIND $keywords AS kws CALL apoc.when(kws <> "", "MATCH (k:KEYWORD) WHERE toLower(k.keyword) = toLower($kws) RETURN DISTINCT k AS keywords", "MATCH (k:KEYWORD) RETURN DISTINCT k ...
true
bdbdbc5122cad0b387dbe10e7da3830ea7ea4945
SQL
johanhanses/databas
/skolan/dml_outer_join.sql
UTF-8
1,098
3.765625
4
[]
no_license
-- -- Outer joins in the database skolan -- -- by Johan Hanses johv18 -- 2019-02-13 -- -- Vi tittar vilka lärare som ansvarar för minst ett kurstillfälle. SELECT DISTINCT akronym AS Akronym, CONCAT(fornamn, " ", efternamn) AS Namn FROM v_planering ORDER BY akronym ; -- -- Outer join, inkludera lärare utan und...
true
919482d85e17838d09ca31b8706a83a5b3fd983b
SQL
patkundesu/montessori-pototan
/db/montessori-db.sql
UTF-8
8,410
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 17, 2016 at 06:01 PM -- Server version: 10.1.9-MariaDB -- PHP Version: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
a0be86247664c964c1241f0e5b83aa93f32c7477
SQL
5l1v3r1/iposix_client
/src/com/sun/projects/queriesForViewers/USRDIGWEB.sql
UTF-8
3,914
2.84375
3
[]
no_license
SELECT FIIDENCABEZADO, FCAPPIMX, FCABREVIATURA, FCDESCRIPCION, FCCAMPOIMX, FINUMORDEN, FCVISORTITULO, FCIMAGEN, 'OK' AS MSG FROM DIGWEB.TADGENCABEZADOVISOR ORDER BY FINUMORDEN; SELECT T.EXPIMX,T.APPIMX,T.IMX01,T.IMX02,T.IMX03,T.IMX04,T.IMX05,T.IMX06,T.IM...
true
67b7702e2e6e1b3392f130ffee14ca81c2387528
SQL
elka/hello_world
/site.sql
UTF-8
4,981
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Время создания: Июн 23 2012 г., 10:12 -- Версия сервера: 5.5.25 -- Версия 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 */; /*!4010...
true
c9622f3ba0d11b11abc4d6420ac88ac9186dc9bc
SQL
OvidiuEDSgrup/TET
/OBIECTE/120926/SQLQuery12.sql
UTF-8
408
2.515625
3
[]
no_license
select distinct p.Utilizator,Data_operarii=convert(date,p.Data_operarii) ,p.Ora_operarii, p.Factura,p.Cont_factura,Data_facturii=convert(date,p.Data_facturii) --,* from pozdoc p where '9430206' in (p.Numar,p.Factura) select * from doc p where '9430206' in (p.Numar,p.Factura) select * from yso_syssd p where '9430206...
true
0cfd7a95fc589d826180b9d605dab1b04cf8cb26
SQL
tecnot2773/holidaypark
/contract.sql
UTF-8
303
3.078125
3
[]
no_license
use holiday_park; DROP TABLE IF EXISTS contract; CREATE TABLE contract ( contract_id INTEGER NOT NULL AUTO_INCREMENT, customer_address VARCHAR(255), customer_name VARCHAR(255), house_nr INTEGER, offer_id INTEGER, /* foreign key offer */ PRIMARY KEY (contract_id) );
true
59ec19edbe331d85b3e2031c00c4a3f378385bda
SQL
poplarnotree/mybatis
/tb_item.sql
UTF-8
870
3.171875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50719 Source Host : localhost:3306 Source Database : mybatis Target Server Type : MYSQL Target Server Version : 50719 File Encoding : 65001 Date: 2017-08-07 21:39:40 */ SET FOREIGN_KEY_CHECKS=0; ...
true
931248f18defc36d4232c26ef6e69d3f4ad0fac1
SQL
CUBRID/cubrid-testcases
/sql/_28_features_930/issue_12129_HV_collation/cases/_17_case.sql
UTF-8
2,498
3.234375
3
[ "BSD-3-Clause" ]
permissive
--+ holdcas on; set names iso88591; prepare st1 from 'select /*+ recompile */ case when ?=''a'' then ? else ? end'; execute st1 using 'a', 'Y', 'N'; set names iso88591 collate iso88591_en_ci; execute st1 using 'A', 'Y', 'N'; set names utf8 collate utf8_en_cs; execute st1 using 'A', 'Y', 'N'; execute st1 using _iso885...
true
ba4519c742abb62d1c5af6bbf133104434c0a936
SQL
fandashtic/arc_chennai
/Sivabalan-SQL/SQL_STORED_PROCEDURE/sp_view_StockTransferOutDetail_MUOM.sql
UTF-8
1,378
3.015625
3
[]
no_license
Create Procedure sp_view_StockTransferOutDetail_MUOM (@DocSerial int) As Select StockTransferOutDetail.Product_Code, Items.ProductName, --Multiple qty chaged to orginal uom as in the order Null, Null, Null, "UOM" = StockTransferOutDetail.uom, Rate, StockTransferOutDetail.uomqty Quantity, ...
true
5e08976d12fb67566b1069d330c697438a49e889
SQL
roystark2015/example-orientdb
/src/main/resources/schema.sql
UTF-8
1,172
3
3
[]
no_license
CREATE CLASS User EXTENDS V; CREATE PROPERTY User.username STRING; ALTER PROPERTY User.username MANDATORY TRUE; ALTER PROPERTY User.username NOTNULL TRUE; CREATE INDEX User.username UNIQUE_HASH_INDEX; CREATE CLASS FriendList EXTENDS V; CREATE PROPERTY FriendList.uuid STRING; ALTER PROPERTY FriendList.uuid MANDATORY TR...
true
c6ccc5fdefd3c8ad248f6618f8249007bcb18255
SQL
Eclipse972/Gestion_Resources
/BD/unites.sql
UTF-8
1,325
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.1.5 -- http://www.phpmyadmin.net -- -- Serveur: gestion.resources.sql.free.fr -- Généré le : Sam 02 Janvier 2021 à 03:24 -- Version du serveur: 5.0.83 -- Version de PHP: 5.3.9 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
b9292d5417badfa95f09913f5d9cf84317814ff7
SQL
taishanJD/beehive
/yunpan-api-doc/oneshare.sql
UTF-8
16,386
3.421875
3
[ "Apache-2.0" ]
permissive
/* Navicat MySQL Data Transfer Source Server : OneShare test 40.125.162.231 Source Server Type : MySQL Source Server Version : 50621 Source Host : 40.125.162.231 Source Database : oneshare Target Server Type : MySQL Target Server Version : 50621 File Encoding : utf-8 D...
true
0f11b27c23d91cef03e3a5a59c001c0ab283c727
SQL
jeniffer-costa/crescer-2016-2
/src/modulo-02-BancoDeDadosI/exercicios-Parte1eParte2.sql
WINDOWS-1252
2,802
4.4375
4
[]
no_license
--1) Faa uma consulta que liste os empregados admitidos entre 01/05/1980 e 20/01/1982. Exibir tambm o total de --meses de trabalho at a data de 31/12/2000. Select nomeEmpregado, DATEDIFF(Month,DataAdmissao,GETDATE()) MesesTrabalhados from empregado where dataAdmissao between '1980-05-01' and '1982-01-20'; --2) Qual o ...
true
a7a53635ae7525a5bf5243c5581c7cd96650199f
SQL
lucasamoroso/kapp-example
/src/main/resources/init_db.sql
UTF-8
443
3.109375
3
[]
no_license
-- Create database CREATE SCHEMA IF NOT EXISTS kapp; -- Create app user -- DROP USER IF EXISTS 'local'@'%' ; -- CREATE USER 'local'@'%' IDENTIFIED WITH mysql_native_password BY 'test'; -- GRANT ALL PRIVILEGES ON vectors.* TO 'local'@'%' WITH GRANT OPTION; -- Create Tables CREATE TABLE IF NOT EXISTS user ( id int NOT...
true
fc6c5145a05433d09ba28023b82f935addf8fd67
SQL
DanmarksAdresser/Dawa
/packages/server/psql/schema/vejstykkerpostnumremat.sql
UTF-8
839
3.515625
4
[ "MIT" ]
permissive
DROP VIEW IF EXISTS dar1_vejstykkerpostnumremat_view CASCADE; DROP VIEW IF EXISTS vejstykkerpostnumremat_view CASCADE; CREATE VIEW vejstykkerpostnumremat_view AS SELECT navngivenvejkommunedel_id, postnummer_id, nv.id AS navngivenvej_id, k.id AS darkommunei...
true
b40439f267b3587f95482bc15fdac779f6a9f6a4
SQL
evrimulgen/Oracle-DBA-Life
/Advance Tunning Scripts/shrink_rollback_segs.sql
UTF-8
693
2.78125
3
[ "MIT" ]
permissive
------------------------------------------------------------------------------- -- -- Script: shrink_rollback_segs.sql -- Purpose: to shrink all online rollback segments back to optimal -- -- Copyright: (c) Ixora Pty Ltd -- Author: Nabeel Khan -- -------------------------------------------------------------------------...
true
215c9fdb87333a295ba85eebe5444540abb51655
SQL
acliufan/aquariusQzone
/WebSocketChatDemo_jetty/database/person.sql
UTF-8
960
2.71875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : zbqc_yxl Source Server Version : 50638 Source Host : localhost:3306 Source Database : zbqc_lf Target Server Type : MYSQL Target Server Version : 50638 File Encoding : 65001 Date: 2019-07-05 10:41:52 */ SET FOREIGN_KEY_CHECKS=0; -- --...
true
a6134d0c9765dbd0f20ba4a421775e3d13b6c9eb
SQL
NyeinAung/move-time-catcher
/database/movie_time_catcher.sql
UTF-8
6,068
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jun 04, 2021 at 06:34 PM -- Server version: 8.0.23 -- PHP Version: 7.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
true
6c9f9fa3c9a3badd4601a3c6ed599ffd8cf7652d
SQL
dlichtistw/flask-fileserver
/filer/schema.sql
UTF-8
1,050
4.0625
4
[ "BSD-3-Clause" ]
permissive
-- DROP TABLE IF EXISTS "user"; CREATE TABLE IF NOT EXISTS "user" ( "id" INTEGER PRIMARY KEY, "username" TEXT UNIQUE NOT NULL, "password" TEXT NOT NULL ); -- DROP TABLE IF EXISTS "group"; CREATE TABLE IF NOT EXISTS "group" ( "id" INTEGER PRIMARY KEY, "groupname" TEXT UNIQUE NOT NULL ); -- DROP TABLE IF EXISTS "u...
true
92e16269cf3f16e989626c8d3c495c5166d56311
SQL
Maksi1994/laravel-shop
/shop2-dumb.sql
UTF-8
34,872
3.4375
3
[ "MIT" ]
permissive
-- -------------------------------------------------------- -- Хост: 127.0.0.1 -- Версия сервера: 5.7.20 - MySQL Community Server (GPL) -- Операционная система: Win64 -- HeidiSQL Версия: 9.5.0.5196 -- -------------------------------------------------------- /*...
true