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
8c61e0097bf0ef9318be5850b546c132a6d47572
SQL
jacksonjjk/yql
/data/okbuy_banner.sql
UTF-8
1,358
2.578125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3307 Source Server Version : 50520 Source Host : localhost:3306 Source Database : okbuy Target Server Type : MYSQL Target Server Version : 50520 File Encoding : 65001 Date: 2017-03-31 08:46:59 */ SET FOREIGN_KEY_CHECKS=0; -...
true
9bb5a88dfb1f2300f12a434f36a0c968075e1afb
SQL
Prodip2416/HackerRank_Problem_Solving_Using_Csharp
/SQL/Basic Join/Average Population of Each Continent.sql
UTF-8
149
3.53125
4
[]
no_license
select COUNTRY.CONTINENT, floor(avg(CITY.POPULATION)+0.5) FROM CITY , COUNTRY WHERE CITY.COUNTRYCODE=COUNTRY.CODE GROUP BY COUNTRY.CONTINENT;
true
6b2550f501165bfc4baede544884b165fd39a37c
SQL
mauricioprado00/dbsantander
/creardb.sql
UTF-8
382
2.78125
3
[]
no_license
create database banco; use banco; CREATE TABLE `entrada_banco` ( `fecha` datetime DEFAULT NULL, `sucursal` varchar(50) DEFAULT NULL, `descripcion` varchar(100) DEFAULT NULL, `referencia` varchar(30) DEFAULT NULL, `monto` decimal(20,3) DEFAULT NULL, `saldo` decimal(20,3) DEFAULT NULL, UNIQUE KEY `fecha` (`...
true
c98b15e12148273748ca964adbb6ea32682abde1
SQL
anatole72/sql_scripts
/admin_scripts/scripts/ses_mem.sql
UTF-8
548
3.671875
4
[]
no_license
REM REM Generate value for current session memory usage REM @_BEGIN @_TITLE 'CURRENT SESSION MEMORY' COLUMN username FORMAT A16 HEADING Username COLUMN memory FORMAT 999,999,999.0 HEADING "Memory (Kb)" SELECT NVL(username,'Background') username, sess.sid, SUM(value) / 1024 memory F...
true
912ed348174277c3b3031f632dff9e41a67dcb28
SQL
DiemLy330/portfolios
/repatronage_review_2.sql
UTF-8
564
3.765625
4
[]
no_license
select round(avg(overall_rating),2), round(avg(rooms_rating),2),round(avg(service_rating),2), round(avg(location_rating),2), round(avg(value_rating),2) from repatronage_review_assignment where user_id in (select user_id from (select hotel_id, user_id, count(review_date) from repatronage_review_assignment group by us...
true
72e3f091b152ed4970a31d426c99ed698adc6a40
SQL
deawx/timelog
/mytask/Databasefile/timelog.sql
UTF-8
1,544
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 09, 2016 at 06:55 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 7.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
6942ecf14d863d8733655727fbdc66a15705f2b4
SQL
crh/escidoc-core-1.3
/common/src/main/resources/sql/oracle/aa/aa.init.roles.content-relation-modifier.sql
UTF-8
1,304
2.609375
3
[]
no_license
/** IF CHANGING THE POLICY, PLEASE ADAPT THIS SECTION!!! <section> <title>ContentRelationModifier</title> <para>internal id: escidoc:role-content-relation-modifier</para> <para>A ContentRelationModifier is allowed to: <itemizedlist mark="opencircle" spacing="compact"...
true
de2aa06c86d9552514a7ed7c4e407fdc57fd729a
SQL
QQqym/DQAPlusServ
/config/sql/forContrast/SGWBuildDefBearer.sql
UTF-8
168
2.5625
3
[]
no_license
#SGW从MME接收专用承载建立成功个数 SELECT fileid,COUNT(*) ,sum(case when ProcedureStatus=0 then 1 else 0 end) from s10 WHERE ProcedureType=1 group by fileid
true
9b7ad3f7b3a460cf268b20b7c1052c3c44eff9e9
SQL
largeTree/cute-framework
/cute-web/initSql/init.sql
UTF-8
682
3.0625
3
[ "Apache-2.0" ]
permissive
CREATE TABLE `request_log`( `id` BIGINT(20) NOT NULL PRIMARY KEY , `api_key` VARCHAR(100) NOT NULL COMMENT'接口号', `server_id` VARCHAR(20) NOT NULL COMMENT'服务器id', `req_ip` VARCHAR(50) NOT NULL COMMENT'请求ip', `req_url` VARCHAR(500) NOT NULL COMMENT'requestUrl', `req_start_time` DATETIME(3) NOT NULL COMMENT'请求开始时间',...
true
1a486137c60f5ad79a7a9df05c2e1af3c336efc8
SQL
Tesseract98/spring-cipher-page
/src/main/resources/db/migration/V1__Init_DB.sql
UTF-8
737
3.765625
4
[]
no_license
create table hibernate_sequence ( next_val bigint ); insert into hibernate_sequence values ( 1 ); create table user ( id bigint not null auto_increment, active bit not null, login varchar(255) not null, name varchar(255) not null, password varchar(255) not null, patronymic varchar(255), su...
true
b3b8a06802f3750a82e618a427d0a58f9b676919
SQL
Evegen55/remote_banking
/rdbms_flow/init/examples_queries/select_from_two_tables.sql
UTF-8
183
2.859375
3
[ "MIT" ]
permissive
SELECT first_name, last_name, date_of_birth, email FROM remote_banking.person inner join remote_banking.emails where emails.person_idperson = person.idperson and person.idperson = 3;
true
aaa3ea789eae6e29a0964070d50daee84ec729f2
SQL
bhavika1996/bookStore
/authordata.sql
UTF-8
690
3.234375
3
[]
no_license
SELECT * FROM bookstoredata.author; CREATE TABLE `bookstoredata`.`author` ( `author_id` INT NOT NULL auto_increment, `author_name` VARCHAR(45) NOT NULL, `book_id` INT NOT NULL, PRIMARY KEY (`author_id`), INDEX `book_id_idx` (`book_id` ASC) , CONSTRAINT `book_id` FOREIGN KEY (`book_id`) REFERENCES `...
true
07cc73e3adac71c1f07c2ec27f59967be4de1595
SQL
NicklasSpendler/carRentalDBProjekt
/rentcarSqlScript.sql
UTF-8
2,689
4.03125
4
[]
no_license
-- create the database DROP DATABASE IF EXISTS carrental; CREATE DATABASE carrental; use carrental; CREATE TABLE privateCustomer (customerID int(10) NOT NULL AUTO_INCREMENT, firstName varChar(25), lastName varChar(25), zipCode int(10), cityName varChar(30), adress varChar(50), mobileNr int(12), email varChar(100), driv...
true
6068a7b0d3547263df840d6cb4238c4ab2f4f3bc
SQL
ilkemerogul/HackerRank_Challenges
/SQL/Basic Select/10 - WeatherObservationStation5.sql
UTF-8
1,055
4.15625
4
[]
no_license
-- Author: Z. Ilkem Erogul -- Github: github.com/ilkemerogul -- HackerRank: hackerrank.com/ilkemerogul -- Problem Statement /* Given a table STATION that holds data for five fields; ID, CITY, STATE, LAT_N and LONG_W. +-------------+-------------+ | Field | Type | +-------------+-------------+ | ID...
true
8f43d533ebb711aace686eddc8243b5c1b74658c
SQL
souravrrp/AKG-SCIL-SQL
/Receivable/Invoice/UNPAID_INVOICE.sql
UTF-8
6,874
3.40625
3
[]
no_license
/* Formatted on 11/17/2019 6:01:24 PM (QP5 v5.287) */ SELECT APS.SEGMENT1 TRANSPORTER_NUMBER, --MOH.TRANSPORTER_NAME, APSA.ADDRESS_LINE1 SUPPLIER_SITE, --DOH.CUSTOMER_NUMBER, --DOH.CUSTOMER_NAME, --MOH.TRANSPORT_MODE, AIA.INVOICE_NUM, --SUM(DODL.LINE_QUAN...
true
8949ffc191ddd620f212644e6229b0c354ea0116
SQL
faisal4590/Liberation-War-Museum
/builds/source/Liberation War Museum all SQL/exibition.sql
UTF-8
454
3.109375
3
[]
no_license
CREATE table exhibition( exibition_no VARCHAR(100) , exibition_name varchar(100) UNIQUE, exibition_sponsors varchar(100), exibition_date DATE, exibition_start_time TIMESTAMP, exibition_finishing_time TIMESTAMP, exibition_type varchar(100), exibition_price NUMBER(8,3) CHECK (exibition_price>0), CONST...
true
31e146b1c39c43807cd263fa131407b706b33ce7
SQL
JohnFT/NotesAPI
/src/main/webapp/sql/SQL.sql
UTF-8
749
3.484375
3
[]
no_license
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Author: Home * Created: 19-oct-2017 */ CREATE TABLE users( use_code serial primary key, use_name varchar(30) not null, u...
true
b6515d4db87690c1c3f8acfd0183042b0924f55f
SQL
QuantumKane/database-exercises
/where_exercises.sql
UTF-8
2,205
4.25
4
[]
no_license
# where_exercises.sql #1. use the employees database USE `employees`; #2. Find all employees with first names 'Irena', 'Vidya', or 'Maya' using IN SELECT * FROM `employees` WHERE first_name IN ('Irena', 'Vidya', 'Maya'); # 709 rows returned #3. Find all employees with first names 'Irena', 'Vidya', or 'Maya', use OR ...
true
940093424bbc90cc4e1c49ac20490dca9ef510db
SQL
jerome13250/RanToolBox_SQL
/unicitecellid_05_nouveauxcellid.sql
UTF-8
833
3.015625
3
[]
no_license
DROP TABLE IF EXISTS tmp_unicitecellid_05_nouveauxcellid; CREATE TABLE tmp_unicitecellid_05_nouveauxcellid AS SELECT tmp_unicitecellid_02_listcellstomodify.rnc, tmp_unicitecellid_02_listcellstomodify.rncid, tmp_unicitecellid_02_listcellstomodify.fddcell, tmp_unicitecellid_02_listcellstomodify.localcellid,...
true
b60344de836375bab24f4a42b96e1e20822705e0
SQL
vinyasHarish95/QBnB
/mySQLScripts/QBnB_ddl.sql
UTF-8
2,060
3.578125
4
[]
no_license
CREATE DATABASE QBnB; USE QBnB; CREATE TABLE Member( Member_ID int NOT NULL AUTO_INCREMENT, F_Name varchar(20) NOT NULL, L_Name varchar(20) NOT NULL, Email varchar(50) NOT NULL DEFAULT " ", Phone_No bigint(15) NOT NULL, Grad_Year int(4) NOT NULL, Faculty varchar(20) NOT NULL DEFAULT " ", Degree_Type cha...
true
39acc5538ab9dda957603a2c96914c4150b2e1d1
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day12/select2216.sql
UTF-8
191
2.75
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-11T22:16:00Z' AND timestamp<'2017-11-12T22:16:00Z' AND SENSOR_ID='54c413d1_24f2_4d83_b422_d6ae56b09a06'
true
f400efc87a1a5f2f8ed41b91d52ea65886adafc2
SQL
hasanjafri27/Data-Warehouse-Project-Bank-Data
/Accountextraction.sql
UTF-8
326
3.375
3
[]
no_license
use banksystem select bank.account.account_id, bank.account.date1 as openingDate, bank.card.type as card_type, bank.disposition.type as dispositionType, bank.card.issued from bank.account,bank.disposition,bank.card where bank.disposition.account_id=bank.account.account_id and bank.disposition.disp_id= bank.card.c...
true
94d60fd787f704f9d85e1f9f48e628e4d218e7b7
SQL
lulu116/yiyibushe
/yiyibushe.sql
UTF-8
28,341
3.25
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.0.10.11 -- http://www.phpmyadmin.net -- -- 主机: 127.0.0.1 -- 生成日期: 2018-05-22 20:15:44 -- 服务器版本: 5.7.17-log -- PHP 版本: 5.5.30 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_CHARAC...
true
02089ef7c31f16d99b41374b1be9662a705e0ac4
SQL
smedigo/employeetracker
/db/seed.sql
UTF-8
831
3.3125
3
[]
no_license
USE employeeDB; INSERT INTO department (name) VALUES ('physical therapy'), ('ocupational therapy'), ('office management'); INSERT INTO role (title, salary, department_id ) VALUES ('physical therapist', 90000, 1), ('director of PT', 150000, 1), ('physical therapy assistant', 50000, 1), ('occupational therapist',90...
true
39c3d141df7924812fc7cbb93c27cf486c4ae336
SQL
pr0ctor/511Bingo.site
/Bingo/out.sql
UTF-8
2,316
2.53125
3
[]
no_license
INSERT INTO items(content) VALUES("Gives up on explanation"); INSERT INTO items(content) VALUES("Awkward silence for 15 seconds"); INSERT INTO items(content) VALUES("Mentions research paper"); INSERT INTO items(content) VALUES("No markers in the room"); INSERT INTO items(content) VALUES("Leaves the room"); INSERT INTO ...
true
e18ecb414640650a9b57d019426d2c4f1072065a
SQL
dakar24/basjoo-doc
/sql/product_short_rent.sql
GB18030
705
3.1875
3
[]
no_license
CREATE TABLE `product_short_rent` ( `product_id` varchar(36) NOT NULL DEFAULT '' COMMENT 'Ʒ', `rent_code` varchar(32) NOT NULL DEFAULT '' COMMENT '', `rent_period` varchar(32) NOT NULL DEFAULT '' COMMENT 'ڣλ', `rent_price_per_day` double(9,2) NOT NULL DEFAULT '0.00' COMMENT 'ĵۣλ Ԫ/', `total_price` double(9,2)...
true
860a9e1d796cf379ec5f5b755a48c2f5c626e06a
SQL
kilokr/api-test-1
/db/api.sql
UTF-8
5,157
3.234375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Ноя 25 2018 г., 16:43 -- Версия сервера: 5.6.38 -- Версия PHP: 7.0.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
b642628ba68262dec60e99eccdc60696a9ba95f4
SQL
Elbech01/Microsoft-Server-SQL
/elbecr_HW2.sql
UTF-8
1,988
3.96875
4
[]
no_license
Use MyGuitarShop -- 1) Select CategoryName, ProductName, ListPrice from Categories Join Products On Categories.CategoryID = Products.CategoryID order by CategoryName, ProductName -- 2) Select FirstName, LastName, Line1, City, State, ZipCode from Customers Join Addresses On Customers.CustomerID = Addresses....
true
7c7f19540ea60fa1648bf63da104c4ee1ec8e27a
SQL
joelhrobinson/SQL_Code
/Add_keys_Databases_Tables.sql
UTF-8
2,043
4
4
[]
no_license
-- https://www.youtube.com/watch?v=9Pzj7Aj25lw -- youtube.com/user/SqlTrainingOnline -- udemy.com/sql-server-essentials/?couponCode=SQL-YOUTUB -- Remember to edit >> intellisense >> refresh local cache -- Right click on tables, click refresh -- Using the keyboard, it's: CTRL-SHIFT-R -----------------------------...
true
b693575329100aa914c468f54859e66e11e57610
SQL
techtronics/upa
/Insidencias/reportes/nuevas/procesos anuales/Ofertas academicas/matriz ofertas 2010.sql
ISO-8859-10
866
3.40625
3
[]
no_license
/*Lista las ofertas que se impartieron para el ao 2010, considerando cada promocion*/ select distinct c.espe_ccod,a.ofer_nvacantes,a.sede_ccod as cod_sede,b.sede_tdesc as sede, d.carr_ccod as cod_carrera, carr_tdesc as carrera, e.jorn_ccod as cod_jornada, jorn_tdesc as jornada, aran_nano_ingreso as ao_ingreso, '' as m...
true
13f5ef671cdc6680d520d586f4e37cbdb3d798ac
SQL
saragenajomari/guidance
/assets/sql/guidancedb.sql
UTF-8
25,683
3
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 31, 2017 at 08:16 PM -- Server version: 10.1.10-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_CL...
true
1545805934abb6a49cfa36022b0983085ebc350f
SQL
kryvokhyzha/examples-and-courses
/kau-db-labs/02-lab/Salaries Differences/script.sql
UTF-8
244
3.328125
3
[ "MIT" ]
permissive
-- easy select abs(max(empl1.salary) - max(empl2.salary)) from db_dept left join db_employee as empl1 on db_dept.id = empl1.department_id and db_dept.id = 1 left join db_employee as empl2 on db_dept.id = empl2.department_id and db_dept.id = 4;
true
353be64e1a4b9ad5239294da94463543c89d8862
SQL
Niteshmehrotra/DELTA
/full_load/models/mlc_delta_load/customer_delta_history.sql
UTF-8
459
2.515625
3
[]
no_license
{{ config( materialized='incremental', transient=false, post_hook={ "sql": "delete from landing.dev_sal.customer_delta_history where current_flag is NULL", "transaction": true } ) }} select BATCHID, BATCH_DATE, ID, FIRST_NAME, LAST_NAME, AGE, cast ( NULL as TIMESTAMP_NTZ(9)) as START_...
true
affba8586dcc020e6853880b1b0b5523e4a5c00b
SQL
donhenton/code-attic
/mysql/logging_procedures.sql
UTF-8
1,530
3.703125
4
[]
no_license
DELIMITER ; CREATE DATABASE IF NOT EXISTS `fred` ; use `fred`; DROP PROCEDURE IF EXISTS `doLog` ; DROP PROCEDURE IF EXISTS `writeLogWithLast` ; DROP PROCEDURE IF EXISTS `setupLogging` ; DROP PROCEDURE IF EXISTS `setupTmpLog` ; DELIMITER ;; /* this is a general logging call */ CREATE DEFINER=`root`@`lo...
true
37b16430c927f6146aaf8b1e8279d0a56b75452c
SQL
diana603/Employee-TrackerHw
/schemas/employee.sql
UTF-8
514
2.828125
3
[]
no_license
DROP DATABASE IF EXISTS employee; CREATE DATABASE employee; USE employee; CREATE TABLE employee_table ( id INT NOT NULL AUTO_INCREMENT, first_name VARCHAR (30) NOT NULL, last_name VARCHAR (30) NOT NULL, role_id INTEGER, manager_id INTEGER, PRIMARY KEY(id) ); INSERT INTO employee_table...
true
1c74ce89959ab26b85dc476538539918e50f12ee
SQL
BoyanDimitrov77/travel-book-easy
/src/main/resources/db/migration/V11__Create_Travel_Class_Table.sql
UTF-8
273
2.640625
3
[]
no_license
CREATE TABLE IF NOT EXISTS `travel_class`( `id` INT(11) NOT NULL AUTO_INCREMENT, `max_seats` INT(7) NOT NULL, `count_seats` INT(7) DEFAULT 0, `travel_class` VARCHAR(50) NOT NULL, `price` DECIMAL(10,2) DEFAULT 0, PRIMARY KEY(`id`) )ENGINE=InnoDB DEFAULT CHARSET=utf8;;
true
25178dfb52a08268cf4a9e284af9f292b16a3dd8
SQL
CrisGao24/CS160-Group5-TeamProject
/Sprint3/Mysql/Activity.sql
UTF-8
1,917
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Apr 19, 2021 at 02:11 AM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
true
9adfdd7cbaa6b2ce9947bbea979ab5f21a05ec2c
SQL
bulentgucuk/DBA-Scripts
/AzureSQLdatabase_UpdateFirewallRule.sql
UTF-8
307
2.703125
3
[]
no_license
/**** -- In the master database l2oqghb8m9.database.windows.net SELECT * FROM sys.firewall_rules WHERE name like '%Ginger%' ORDER BY start_ip_address, name; ***/ -- In the master database l2oqghb8m9.database.windows.net exec sp_set_firewall_rule N'Ginger - home office', '71.206.124.94', '71.206.124.94';
true
4d2041fe6904a578691c2c8c3399954915772b1a
SQL
JulioTri/tienda
/database/tienda_master.sql
UTF-8
9,182
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 14-08-2020 a las 00:38:44 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
4ab067c98f3f78da44c488b9abef5775e40e84cd
SQL
Haseki/YOS_Project
/yosveri.sql
UTF-8
6,336
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Anamakine: 127.0.0.1 -- Üretim Zamanı: 28 Ağu 2015, 13:14:09 -- Sunucu sürümü: 5.6.24 -- PHP Sürümü: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*...
true
87005de98f4b47807a2ec97aa0ebfb779c6aa856
SQL
PavanKoyi/training
/service/dataFiles/serviceCreate.sql
UTF-8
852
3.4375
3
[]
no_license
CREATE TABLE service_address ( id BIGINT(20) PRIMARY KEY AUTO_INCREMENT, street VARCHAR(100) NOT NULL, city VARCHAR(15) NOT NULL, postal_code INT(11) NOT NULL ); CREATE TABLE service_person ( id BIGINT(20) PRIMARY KEY ...
true
31fbe303b49d23891f196a613e320252a580039c
SQL
hardaker-dev/sfgweb
/SaasFeeGuides/SaasFeeGuides.Database.Deploy/Scripts/13_CreateTable_CustomerBookingEquiptment.sql
UTF-8
618
3.34375
3
[]
no_license
set xact_abort on BEGIN TRAN CREATE TABLE [Activities].[CustomerBookingEquiptment]( [CustomerBookingId] [int] NOT NULL, [EquiptmentId] int not null, [IsReturned] bit not null, [IsLost] bit not null ) ALTER TABLE [Activities].[CustomerBookingEquiptment] ADD CONSTRAINT FK_ActivityEquiptment_CustomerBo...
true
1a7c7276c36d61783dd209601070fc3c0bfe5d2d
SQL
TonyKartony/BI-Lab-2017
/_0. DWH/Projects/Vitaliya_Adamchuk/create tables bl_cl CL.sql
UTF-8
1,774
2.875
3
[]
no_license
CREATE TABLE BL_CL_RETURNED_ORDERS ( ORDER_ID NUMBER(10,0), STATUS varchar2 ( 100) ); CREATE TABLE BL_CL_REGION ( region_name VARCHAR2 (200), Province_NAME VARCHAR2 (200) ); CREATE TABLE BL_CL_Province ( Province VARCHAR2 (100) ); CREATE TABLE BL_CL_Segment (...
true
c61e5e3afc1dd745adff4e47d44dc95b114dd31a
SQL
JarlyZly/ToolsByShell
/JavaEE/mybatis/bbs_cartoon_image.sql
UTF-8
1,007
3.078125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 192.168.1.254_test Source Server Version : 50717 Source Host : 192.168.1.254:3306 Source Database : openfire_test Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2017-03-22 17:40:18 */ ...
true
2b22da39d3141463910c5357efaf212111f3ef6d
SQL
Coobie/ESD-1-CW
/Spec/Alphacab.sql
UTF-8
2,250
3.5
4
[]
no_license
--DROP Table Customer; CREATE TABLE Customer ( Name varchar(20), Address varchar(60), id int not null, PRIMARY KEY (id) ); INSERT INTO Customer (Name, Address, id) VALUES ('Eva Smith', '129 Station Rd, London, N3 2AS', 1), ('Rob Manton', '23 Bow Lane, London, N3', 2), ('Bob Currie', '54 Teignmouth Rd, London,...
true
2246d315627c704795b5e00bae8cbb5020e4ebea
SQL
Sarkel/projekt-db-java
/DateBase/views.sql
UTF-8
3,967
3.765625
4
[]
no_license
CREATE VIEW Biblioteka.all_books AS SELECT k.Ksiazka_ID AS id, k.Tytul AS tytul, a.Url AS avatar, Biblioteka.avg_star(k.Ksiazka_ID) AS star FROM Biblioteka.Ksiazka AS k, Biblioteka.Avatar AS a WHERE k.Wypozyczona = false AND a.Avatar_ID = k.Avatar; CREATE VIEW Biblioteka.all_users AS SELECT u.Uzytkownik_ID AS ...
true
1114c3a54c3a9e716495c9cc2a2bf0848d41ce02
SQL
yaruha1990/cashRegisterSystem
/sql/cashregister_user.sql
UTF-8
462
2.703125
3
[]
no_license
SET NAMES utf8 ; DROP TABLE IF EXISTS `user`; SET character_set_client = utf8mb4 ; CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `login` varchar(45) NOT NULL, `password` varchar(45) NOT NULL, `role` varchar(45) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `login_UNIQUE` (`login`) ) ENGINE=InnoDB...
true
03ab5dcf441d67d140d3dc6093efd17e3042d374
SQL
cherryperuri1/plsql-brd
/rough.sql
UTF-8
1,585
3.515625
4
[]
no_license
set SERVEROUTPUT ON declare hostrow nsbt_host_trx_log%rowtype; atmrow nsbt_atm_trx_log%rowtype; atm_id nsbt_atm_trx_log.TRANSACTION_ID%type; CURSOR cursatm is select distinct T1.TRANSACTION_ID from NSBT_ATM_TRX_LOG T1 where exists (select distinct T2.TRANSACTION_ID from NSBT_HOST_TRX_LOG T2 ...
true
f56e33aaf054f02c99a017825dbd417128c7b102
SQL
bswapp/helo
/db/root.sql
UTF-8
244
2.921875
3
[]
no_license
CREATE TABLE helo ( id SERIAL PRIMARY KEY, username TEXT, password VARCHAR(100), profile_pic TEXT ); CREATE TABLE posts ( id SERIAL PRIMARY KEY, title VARCHAR(75), img TEXT, subtitle TEXT, author_id INT REFERENCES helo (id) )
true
67372e31d592941809b8fb5f9033534da65e079b
SQL
RonyKordahi/MySQL
/20 - LIMIT clause.sql
UTF-8
148
2.59375
3
[]
no_license
SELECT * FROM customers -- LIMIT 3 -- limits results LIMIT 6, 3 -- first number is an offset, SQL will ignore the first 6 results and return only 3
true
0f2f8077d5af0c9da176320151574f8d3d0c5c52
SQL
hrr40-sdc2/nearby_service
/database/postgres/dataSchema.sql
UTF-8
619
2.6875
3
[]
no_license
CREATE TABLE houses ( id SERIAL PRIMARY KEY, imgUrl VARCHAR(15), location VARCHAR(25), type VARCHAR(20), title VARCHAR(45), cost SMALLINT, stars SMALLINT, reviewCount SMALLINT ); CREATE TABLE rentals ( id SERIAL PRIMARY KEY, imgUrl VARCHAR(15), location VARCHAR(25), type VARCHAR(20), title VA...
true
928ca5e4e13d6df983c58caa5c00d54098412036
SQL
radtek/abs3
/sql/crnv/bars/Table/transfer_2017.sql
WINDOWS-1251
3,083
3.171875
3
[]
no_license
exec bpa.alter_policy_info( 'TRANSFER_2017', 'WHOLE' , null, null, null, null ); exec bpa.alter_policy_info( 'TRANSFER_2017', 'FILIAL', null, null, null, null ); begin execute immediate ' CREATE TABLE BARS.TRANSFER_2017( R020_OLD CHAR(4), OB_OLD CHAR(2), R020_NEW CHAR(4), OB_NEW CHAR(2) , DAT_BEG DATE, DAT_END...
true
b60e6aac9349ff73d9d85b1d3338560222106fad
SQL
nikopfleger/Mahjong
/carm-be/src/main/resources/db/migration/V1__BASE_VERSION.SQL
UTF-8
14,991
2.984375
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 11.9 -- Dumped by pg_dump version 11.9 -- Started on 2022-02-12 09:34:35 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF-8'; SET standard_conforming_strings = on; SET check_func...
true
a201f610d04c32fc14e4d2252ec5b90392a7d632
SQL
emuthomi/French-zip-code
/SQL/cities.sql
UTF-8
2,852,034
2.90625
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS `cities`; CREATE TABLE `cities` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `departments_id` int(10) unsigned NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `pattern` varchar(255) COLLATE utf8mb4_unicode_ci ...
true
7e532cc13e6cb3c25a135ae2c73308980dd8ed9a
SQL
AnastasiiaRakova/DreamTeam
/Grementa_DreamTeam/Grementa_select.sql
WINDOWS-1251
700
3.5
4
[]
no_license
select , from select* from select max(ֳ) from ³ select min(ֳ) from select , from where like'[0-9][0-9][^2]' select distinct , ֳ from ³ where ֳ in(65,75) order by ֳ select _, from ֳ where ֳ =(select min(ֳ)from ֳ) select from where like'[^][^]%' select distinct , ֳ, from ³ where ֳ < 120 order by ֳ de...
true
c1856d4311bbfc4c00a9556f73efcaf8623162c6
SQL
wmxvi/CubeWars-World-Server
/db.sql
UTF-8
1,009
2.546875
3
[ "MIT" ]
permissive
CREATE TABLE `attributes` ( `playerId` int(11) unsigned NOT NULL AUTO_INCREMENT, `health` int(11) NOT NULL DEFAULT '100', `maxHealth` int(11) NOT NULL DEFAULT '100', `energy` int(11) NOT NULL DEFAULT '100', `armour` int(11) NOT NULL DEFAULT '100', `attack` int(11) NOT NULL DEFAULT '100', PRIMARY KEY (`pla...
true
fe95c8f929f552538250086e5f90a3f7f40c5c93
SQL
CUBRID/cubrid-testcases
/sql/_03_object_oriented/_02_collection_type/_001_class/cases/1004.sql
UTF-8
698
2.734375
3
[ "BSD-3-Clause" ]
permissive
--Create a class with collection type:mutliset create class t1(c1 multiset integer, c2 multiset varchar(10), c3 multiset date, c4 multiset char(2), c5 multiset timestamp, c6 multiset bit(8)); insert into t1 values({1,2,3},{'abc','xxx','yyy','xxx'}, {date'05/12/20...
true
0a767483da5bb4f06d91abd09aafdd36f9c01f8f
SQL
jasarsoft/fit-src
/bp2/vjezbe_video/bp2_vj03_zadatak01.sql
UTF-8
412
3.703125
4
[ "MIT" ]
permissive
/* Vjezbe 3, Zadatak 1, AdvenureWorks2014 Kreirati upit koji prikazuje ukupan broj kupaca po teritoriji. Lista treba da sadrzi sljedece kolone: ID teritorije, ukupan broj kupaca. Uzeti u obzir samo teritorije gdje ima vise od 1000 kupaca. */ USE AdventureWorks2014 SELECT TerritoryID, COUNT(CustomerID) AS '...
true
7bbc889f20f1593b65fc8a93e24d1ef13cdbcb2a
SQL
SoulIsMyDiet/calendar
/dump.sql
UTF-8
3,331
3.203125
3
[]
no_license
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -- CREATE EXTENSION IF NOT EXISTS plpgs...
true
61b75b82d4a4806b881ea380b9ec4afde3be1d83
SQL
bgani/hackerrank-practice
/SQL/aggregation/Weather Observation Station 13.sql
UTF-8
179
3.140625
3
[ "MIT" ]
permissive
-- https://www.hackerrank.com/challenges/weather-observation-station-13/problem SELECT CAST(SUM(Lat_n) AS DECIMAL(20, 4)) FROM Station WHERE Lat_n > 38.7880 AND Lat_n < 137.2345;
true
2b9d4a4988ce2b38df2609e29236bea40335a860
SQL
wfilip/wfilip
/functions/IDENT_ETAP.sql
WINDOWS-1250
983
3.359375
3
[]
no_license
CREATE OR REPLACE FUNCTION IDENT_ETAP (pETAP NUMBER, pIDENT_SPISZ VARCHAR2) RETURN VARCHAR2 AS BEGIN --pozostawienie atrybutw 5,6,7,8,22,27 RETURN '0000'||substr(pIDENT_SPISZ,5,4)||rpad('0',13,'0')||substr(pIDENT_SPISZ,22,1)||rpad('0',4,'0')||substr(pIDENT_SPISZ,27,1); EXCEPTION WHEN OTHERS THEN RETURN '0'; END IDEN...
true
e372ce6db6ed1037d1d18724a1835d57fced2a34
SQL
vomiz9k/databases-project
/view.sql
UTF-8
2,170
4.0625
4
[]
no_license
--Если мы сами вставляем отзывы, спрячем имена пользователей, чтоб никто не пытался найти CREATE OR REPLACE VIEW reviews_with_hidden_username AS SELECT reviews.set_id, overlay(reviews.nickname PLACING repeat('*', length(reviews.nickname) - 4) FROM 3) AS nickname, rating FROM lego.reviews; ...
true
ad364b5536e7b85f53ab72301f08bf8f98c880a5
SQL
VictorChin/AdvancedDevAndTuning
/PLSQLSamples/ebr-openworld2011-demo/EBR-OpenWorld2011-Demo/Cr_Mini_HR_Users.sql
UTF-8
1,145
2.734375
3
[]
no_license
@@Connect_As_Sys create user Mini_HR_Owner default tablespace Users quota unlimited on Users identified by p / -- Practice the principle of least privilege -- Create Job is needed for using both Sys.DBMS_Parallel_Execute grant Create Session, Create Table, Create Sequence, Create View, Create P...
true
29eea14573942ef7466257eeaae217545c5dad1d
SQL
atiqcse14/Hospital-Management-System
/Procedures/effect_of_update.sql
UTF-8
547
2.71875
3
[]
no_license
create or replace procedure effect_of_update(doctor_id in int, dept in doctor.department%TYPE) is Doctor_name varchar2(30); Doctor_phone varchar2(12); cursor cur is select d_name,d_phone from doctor1 where doctor1.d_id=doctor_id; begin open cur; loop fetch cur into doctor_name,doctor_phone; exit when cur%not...
true
de7f1390d294aef0be079585834e4649324366bf
SQL
pczhangyu/poseidon
/sql/poseidon-product.sql
UTF-8
991
2.625
3
[ "Apache-2.0" ]
permissive
--产品商品管理 # 商品相关表 SHOW CREATE TABLE sdb_b2c_brand 商品品牌 sdb_b2c_type_brand 类型和品牌关联表 sdb_b2c_goods 商品主表 sdb_b2c_goods_type 商品类型 sdb_b2c_goods_type_props 商品属性表 sdb_b2c_goods_type_props_value 商品类型扩展属性值表 sdb_b2c_goods_store_prompt sdb_b2c_goods_type_spec 商品类型规格表 sdb_b2c_specification 商品规格表 sdb_b2c_spec_values 商品规格值表 sdb_b...
true
e7220a34f508dd6f99e6693bd297cb7cfa49c459
SQL
ramyothman/Qiyas-PPM
/QiyasPlatform/QiyasDatabase/Person/Tables/PersonPhone.sql
UTF-8
845
3.484375
3
[]
no_license
CREATE TABLE [Person].[PersonPhone] ( [Id] INT IDENTITY (1, 1) NOT NULL, [BusinessEntityId] INT NOT NULL, [PhoneNumber] NVARCHAR (25) NOT NULL, [PhoneNumberTypeId] INT NOT NULL, [ModifiedDate] DATETIME CONSTRAINT [DF_...
true
65f4571ac4a8a3fcc0d6628e0e06d84b04f94b91
SQL
Pear-Trading/LocalLoop-Algorithm
/dropschema.sql
UTF-8
1,337
2.84375
3
[]
no_license
DROP VIEW IF EXISTS Loops_ViewActive; DROP INDEX IF EXISTS Loops_IndexTransactionId; DROP TABLE IF EXISTS Loops; DROP VIEW IF EXISTS LoopInfo_ViewIncludedInactiveHeuristicDesc; DROP VIEW IF EXISTS LoopInfo_ViewIncludedInactiveHeuristicAsc; DROP VIEW IF EXISTS LoopInfo_ViewIncludedInactive; DROP VIEW IF EXISTS LoopInfo...
true
1d916eeffc4ec86c10272770032e606e538afdec
SQL
joinpursuit/pug_recipes
/db/puppies.sql
UTF-8
391
2.671875
3
[]
no_license
DROP DATABASE IF EXISTS puppies; CREATE DATABASE puppies; \c puppies; CREATE TABLE pups ( ID SERIAL PRIMARY KEY, name VARCHAR, breed VARCHAR, age INTEGER, sex VARCHAR, imageURL VARCHAR ); INSERT INTO pups (name, breed, age, sex, imageURL) VALUES ('Tyler', 'Retrieved', 3, 'M', 'http://www.petsworld.in/b...
true
18f62a3807764676a00ecf52eb8d8f21af8f4657
SQL
algsun/galaxy
/src/main/resources/db/migration/V20151027_1050__add_institution_table.sql
UTF-8
2,734
3.640625
4
[]
no_license
--author 刘柱 -- 单位库房权限 CREATE TABLE `o_institution` ( `id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '自增id', `siteId` VARCHAR(20) NOT NULL COMMENT '站点id', `name` VARCHAR(100) NOT NULL COMMENT '名称', `seat` VARCHAR(100) NOT NULL COMMENT '所在地', `mailing` VARCHAR(100) NOT NULL COMMENT '通讯地址', `zipcode` INT(11) NOT...
true
88d900e50befd8422fb9b9fc63b1623c7ea424ad
SQL
visantiago99/Trybe-Back-End
/bloco 20/20.4/exercises-20-4.sql
UTF-8
2,512
4.28125
4
[]
no_license
-- Exercício 1 : Insira as produções da Pixar abaixo na tabela Movies : -- Monstros SA, de Pete Docter, lançado em 2001, com 92 minutos de duração. -- Procurando Nemo, de John Lasseter, lançado em 2003, com 107 minutos de duração. -- Os Incríveis, de Brad Bird, lançado em 2004, com 116 minutos de duração. -- WALL-E, de...
true
2497d5b86fe2696688734dce6798c60d0a997d64
SQL
dmgn/fiApplication_V1
/database/CREATE_TAB_CLIENT_COMPANY_INFO.sql
UTF-8
863
3.015625
3
[]
no_license
CREATE TABLE `CLIENT_COMPANY_INFO` ( `COMPANY_ID` int(11) NOT NULL AUTO_INCREMENT, `USER_ID` int(11) NOT NULL, `BANK_ACCOUNT_NO` int(15) NOT NULL, `BANK_IFSC_CODE` int(10) NOT NULL, `BANK_NAME` VARCHAR(45) NOT NULL, `BRANCH_NAME` VARCHAR(45) NOT NULL, `DIRECTOR_FNAME` varchar(45) NOT NULL, `DIRECTOR_LNAME` varchar(45) ...
true
00389d3483386fcc0dd04239aec3aa1bc77488d2
SQL
str3tch13/potluckplanner
/backend-java/database/schema.sql
UTF-8
10,456
3.765625
4
[]
no_license
BEGIN TRANSACTION; DROP TABLE IF EXISTS dietary_restrictions; DROP TABLE IF EXISTS potluck; DROP TABLE IF EXISTS guests; DROP TABLE IF EXISTS dish_potluck; DROP TABLE IF EXISTS dish; DROP TABLE IF EXISTS gueststable; DROP TABLE IF EXISTS users; DROP TABLE IF EXISTS user_diet; DROP TABLE IF EXISTS dish_restriction; ...
true
3efde15c4c3eccf3ecb3de770ce9a0e673228f7c
SQL
jm-ramirez/Gestion
/SCRIPTS/sgcmorello.sql
WINDOWS-1252
2,055,392
3.109375
3
[]
no_license
# SQL Manager 2005 for MySQL Lite 3.5.0.7 # --------------------------------------- # Host : 192.168.0.99 # Port : 3309 # Database : sgcmorello /* SET FOREIGN_KEY_CHECKS=0; DROP DATABASE IF EXISTS `sgcmorello`; CREATE DATABASE `sgcmorello` CHARACTER SET 'latin1' COLLATE 'latin1_swedish_ci'; */ USE `s...
true
cb0a39092e3d579f4af195eef99d16268f18a3cf
SQL
sih2020admin/SIH2020_PJ235_TECHCREATORS_GitRepository_COEP
/sql/geom.sql
UTF-8
981
3.53125
4
[]
no_license
CREATE TABLE btowers( LSA text, District text, Latitude double precision, Longitude double precision, Sitetype text ); ALTER TABLE btowers ADD COLUMN geom geometry(Point, 4326); UPDATE btowers SET geom = ST_SetSRID(ST_MakePoint(longitude, latitude), 4326); SELECT *,ST_Distance(geom,'SRID=4326;POINT(77.30667...
true
e82863b7cd588df9c91b7ffde77b1b4feff64ba9
SQL
meghanajs99/ProjectEA
/EA project/Dump20190611/marauto_Wheelingcharges.sql
UTF-8
2,190
2.734375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 68.178.217.52 Database: marauto -- ------------------------------------------------------ -- Server version 5.5.43-37.2-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER...
true
2337cdafe5fa6d1f927a6b90f80fad9fb9d82e6f
SQL
julianflowers/Achilles
/inst/sql/sql_server/heels/parallel/results_derived/29.sql
UTF-8
372
2.625
3
[ "Apache-2.0" ]
permissive
select cast(null as int) as analysis_id, cast(null as varchar(255)) as stratum_1, cast(null as varchar(255)) as stratum_2, sum(count_value) as statistic_value, cast('Visit:InstanceCnt' as varchar(255)) as measure_id into @scratchDatabaseSchema@schemaDelim@tempHeelPrefix_@heelName from @resultsDatab...
true
57b0886d5cc596a42637a0d47ce2f5284d62ca76
SQL
fetsiura/RestDriver
/src/main/resources/schema.sql
UTF-8
1,154
3.859375
4
[]
no_license
create table users( id BIGINT AUTO_INCREMENT PRIMARY KEY, username varchar ( 50 ) not null UNIQUE, password varchar ( 100 ) not null, enabled boolean not null ); create table authorities ( username varchar ( 50 ) not null, authority varchar ( 50 ) not null, constraint fk_authorities_users f...
true
0d384a10db565392aa65531438c6a72c28246d94
SQL
AdamB37/sql-exercises
/sql/07-query-friends-gabriel.sql
UTF-8
154
3.296875
3
[]
no_license
\c sql_exercises SELECT b.name AS buddy FROM friends JOIN student a ON a.id = friends.id1 JOIN student b ON b.id = friends.id2 WHERE a.name = 'Gabriel';
true
775b6e1f335cde05bed0619d34a59b77c0b3c916
SQL
mistraltechnologies/UserRegistration
/conf/evolutions/default/1.sql
UTF-8
193
2.640625
3
[ "Apache-2.0" ]
permissive
# User schema # --- !Ups create table user ( id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, first_name TEXT NOT NULL, email TEXT NOT NULL); # --- !Downs drop table user;
true
bdbebccf42a843c09c8a5159312f121ce7f67ff4
SQL
aska-fun/eroroChat
/doc/DB.sql
UTF-8
1,351
3.46875
3
[]
no_license
-- データベース名を記述 -- USE heroku_6c1d62805e0ec8f; SET FOREIGN_KEY_CHECKS=0; -- テーブルの作成 -- メッセージ DROP TABLE IF EXISTS `t_comment`; CREATE TABLE t_comment ( `id` SMALLINT(6) NOT NULL AUTO_INCREMENT , `user_name` VARCHAR(100) DEFAULT NULL , `channel` VARCHAR(100) DEFAULT NULL , `message` VARCHAR(...
true
a3e88c99f6583c626c0f5853bbccdabfb1b97431
SQL
joao-vitor-dev-js/venda-de-assai
/ACAI-BD.sql
UTF-8
2,748
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 05-Nov-2019 às 04:38 -- Versão do servidor: 10.3.16-MariaDB -- versão do PHP: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
true
19d82077cb9ecefd21c027c43b14af372d03c8d0
SQL
lsst/qserv
/itest_src/datasets/case02/queries/1002.2_coneMagColor.sql
UTF-8
507
3.015625
3
[]
no_license
-- Cone-magnitude-color search -- See https://dev.lsstcorp.org/trac/wiki/db/queries/003 -- See ticket #2051 SELECT COUNT(*) AS OBJ_COUNT FROM Object WHERE scisql_s2PtInCircle(ra_PS, decl_PS, 1.2, 3.2, 0.5) = 1 -- noQserv -- withQserv WHERE qserv_areaspec_circle(1.2, 3.2, 0.5) AND scisql_fluxToAbMag(zFlux_PS) B...
true
4923410997b7e1e6a6c6472ed28a43d50f4ec080
SQL
NicolasBlancoRequejo/PXLWebDevAdvProject
/tedxpxldb.sql
UTF-8
2,962
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Machine: 127.0.0.1 -- Gegenereerd op: 21 mei 2015 om 20:22 -- Serverversie: 5.6.21 -- PHP-versie: 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 */; /*!40...
true
a2e1513b13a53d27d69d73e3b464c2b57f0eb749
SQL
gaoxiangmax/repo2
/my_q8/Function/Proc_BillNotifies_Statistics.sql
UTF-8
3,960
3.921875
4
[]
no_license
/* 通过发票号码分拆其下的采购合同,用在工厂付款中 */ delimiter $ drop procedure if exists Proc_BillNotifies_Statistics $ create procedure Proc_BillNotifies_Statistics(sApplyNo varchar(30)) begin declare sKeyNo varchar(255); declare dKeyDate date; declare iSerialID int DEFAULT 0; /*定义结束标志变量*/ declare Done int default 0; ...
true
f963beef44f52b6278eff8fe07ca486a92385022
SQL
karinad01/SQL
/Exercises_EinstiegInSQL/Exercises_SQL_Part1.sql
UTF-8
6,874
3.359375
3
[]
no_license
#Seite 104/ Uebung 1 SELECT name, vorname, geschlecht, abteilung FROM mitarbeiter where abteilung = 'Vertrieb' and geschlecht = 'm'; #Seite 104, Uebung 2 select name, vorname, krankenversicherung from mitarbeiter where krankenversicherung = 'MH Plus Bonn' or krankenversicherung = 'IK gesund plus'; #Seite 104 Uebun...
true
1dfbea00f67a923b3e7907ec0913d7e6a459de39
SQL
chenglongwei/smartYummy
/src/main/resources/smartYummy_2016-04-27.sql
UTF-8
3,522
3.078125
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.26) # Database: smartYummy # Generation Time: 2016-05-01 22:41:21 +0000 # **********************************************...
true
61a2a3a35a8e9c2e0a5c1231620c91daf54152cd
SQL
shruthilaya1208/hexasample
/MYSQL.sql
UTF-8
619
3.234375
3
[]
no_license
CREATE DATABASE MLP_336 USE MLP_336; CREATE TABLE MENU_2(FOOD_ID INT PRIMARY KEY ,FOOD_NAME VARCHAR(10), PRICE INT , DESC_FOOD VARCHAR(10) ) CREATE TABLE CUSTOMER(CUST_ID INT PRIMARY KEY ,CUST_NAME VARCHAR(10), CUST_ADDER VARCHAR(20) ) CREATE TABLE VENDOR(VEND_ID INT PRIMARY KEY ,VEND_ADDER VARCHAR(20) ,VEND_NAME VAR...
true
bf2e756d72488bc787d22af8eef202fc91173cf0
SQL
sajanPoddar/E_commerce_by_oop
/db_shop.sql
UTF-8
6,158
2.671875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 19, 2016 at 06:04 PM -- Server version: 5.5.27 -- PHP Version: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
10d82c0716f5615bd5b5aa410919230b9b93e4c9
SQL
phanhongphat/Example-Radio-Button-26.09.17
/dbradiobutton.sql
UTF-8
2,741
3.140625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `dbradiobutton` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `dbradiobutton`; -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: dbradiobutton -- ------------------------------------------------------ -- Server version 5.7.19-log /*!40101 SET @OLD_C...
true
824f309941797879a9b89321d7ce2936c5d93e88
SQL
IstvanBanszki/WorkTime
/worktime-sql/src/main/resources/stored_procedure/edit_office.sql
UTF-8
348
3.03125
3
[]
no_license
CREATE DEFINER=`root`@`localhost` PROCEDURE `edit_office`( IN name TINYTEXT, IN address TINYTEXT, IN date_of_foundation DATE, IN office_id BIGINT ) BEGIN UPDATE office o SET o.name = name, o.address = address, o.date_of_foundation = date_of_foundation WHERE o.id =office_id; SELECT...
true
e4e8a3dc079943170d8ae2624bf76e47c8750670
SQL
Devopriya-Tirtho/Distributed-Database-Lab
/Codes/Codes/Lab1/myquery.sql
UTF-8
289
2.953125
3
[]
no_license
drop table student101 cascade constraints; CREATE TABLE student101 (id number(20), name varchar2(20), semester integer,date_of_birth date, primary key(id)); INSERT INTO student101 VALUES(1, 'Rahim', 1, '10-oct-1990'); INSERT INTO student101 VALUES(2, 'Karim', 2, '12-oct-1990'); commit;
true
95c8dcdccfbdcb858088cf4a1c6075d70c9eacc5
SQL
un-ro/dts_vsga_web
/sertifikasi/db/penjualanbarang.sql
UTF-8
2,080
3.40625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : MySQL Source Server Version : 50505 Source Host : localhost:3306 Source Database : penjualanbarang Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2020-11-13 15:47:35 */ SET FOREIGN_KEY_CHECKS=0; ...
true
60613d6eaa0b1b89b315f40541a49af37a522ec6
SQL
geosconsulting/sql_bonanza
/esempi/base_db.sql
UTF-8
1,076
3.03125
3
[]
no_license
CREATE TABLE test_table_ext ( test_auto serial, test_char varchar(4) NOT NULL PRIMARY KEY ); INSERT INTO public.test_table_ext(test_char) VALUES ('ABCD'); INSERT INTO public.test_table_ext(test_char) VALUES ('EFGH'); INSERT INTO public.test_table_ext(test_char) VALUES ('ILMN'); INSERT INTO public.test_tab...
true
fe04fe2fa99e8b5558fb414e82115c603a0122c1
SQL
fralychen/Ticket_Booking
/train/sql/alvft.sql
UTF-8
8,956
3.28125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50553 Source Host : localhost:3306 Source Database : alvft Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2017-04-18 01:01:10 */ SET FOREIGN_K...
true
be0320017b27688c21884d8a622e7d9d46b48bf4
SQL
NCIP/tmt-catissue
/schema/tmt views.sql
UTF-8
5,828
3.5
4
[ "BSD-3-Clause" ]
permissive
/*L tmt-catissue (Nov, 2012) DEFINITIONS: PROVIDER: the National Cancer Institute (NCI), a participating institute of the National Institutes of Health (NIH), and an agency of the United States Government. SOFTWARE: the human readable source code form, the machine readable, binary, object...
true
31fdbb8b9fbe58f5696e54075f770c814423a814
SQL
Szidzsej/EscapeFromNeumann
/escapefromneu.sql
UTF-8
8,126
3.421875
3
[]
no_license
CREATE TABLE Classroom( id int PRIMARY KEY AUTO_INCREMENT, roomname varchar(250) NOT NULL, nextrooms varchar(100) ); Insert into Classroom (roomname,nextrooms) VALUES ("Udvar","2;"), ("Aula","1;3;4;"), ("Büfé","2;"), ("Földszinti lépcsö","2;5;"), ("Elsö emeleti folyosó","4;6;7;8;9;"), ("Elsö emeleti Tanári","5;"), ("10...
true
b8f255cbd62b77139da8e6567926c082e26cd0e6
SQL
DanielCardozoH13/taller1_programacion_distribuida
/ejercicio 6/triki.sql
UTF-8
2,770
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 22-03-2019 a las 04:22:33 -- Versión del servidor: 10.1.26-MariaDB -- Versión de PHP: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
873489b37d31dc2584e0ec0af42c2eaa3785bf8c
SQL
hbuiOnline/Software-design-project
/db/database.sql
UTF-8
4,710
3.234375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 11, 2020 at 09:06 PM -- Server version: 8.0.13-4 -- PHP Version: 7.2.24-0ubuntu0.18.04.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 ...
true
51bdc74180a018736294aafa6268fc2b51e0e40c
SQL
zg1993/tools
/sql/course.sql
UTF-8
696
2.6875
3
[]
no_license
insert into course (course_id, title, dept_name, credits) values ('BIO-101', 'Intro.to Biology', 'Biology', 4), ('BIO-301', 'Genetics', 'Biology', 4), ('BIO-399', 'Computational Biology', 'Biology', 3), ('CS-101', 'Intro.to Computer Science', 'Comp.Sci.', 4), ('CS-190', 'Game Design', 'Comp.Sci.', 4), ('CS-315', 'Robot...
true
02ab62853c7f99810fd9ffb0c99ffefa15130b88
SQL
cortext/patstat
/Geographical Information/geocoding and mapping/02_geomapping/00_geo_nuts.sql
UTF-8
2,021
3.328125
3
[ "MIT" ]
permissive
# ddl for geo_nuts drop table if exists patstatAvr2017_lab.`geo_nuts`; CREATE TABLE patstatAvr2017_lab.`geo_nuts` ( `nuts_id` int(11) not null auto_increment, `name` varchar(200) character set utf8 collate utf8_unicode_ci default null, `type` varchar(50) character set utf8 collate utf8_unicode_ci default null, ...
true