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
07e3812241d49577536db516d1c555fed63f6a9a
SQL
VaskoViktorov/SoftUni-Homework
/09. Databases Basics - MS SQL Server/07. Subqueries and JOINS/04. Employee Departments.sql
UTF-8
185
3.671875
4
[ "MIT" ]
permissive
SELECT TOP(5) e.EmployeeID, e.FirstName,e.Salary, d.Name FROM Employees AS e JOIN Departments as d ON d.DepartmentID = e.DepartmentID WHERE e.Salary > 15000 ORDER BY e.DepartmentID ASC
true
adc334e59bdc22b56e3be7ddf13f3e7c39e868bf
SQL
Trench-Wars/twcore
/src/twcore/bots/bwjsbot/tblBWJS__game.sql
UTF-8
432
2.90625
3
[]
no_license
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; USE `bots`; CREATE TABLE `tblBWJS__Game` ( `matchID` BIGINT unsigned NOT NULL auto_increment, `timeStarted` datetime default NULL, `timeEnded` datetime default NULL, `type` varchar(35) NULL, `winner` SMALLINT(1) default NULL, PRIMARY KEY (`matchID`), KEY `...
true
56ceaca80b3aeb2f5a82af7bb6e48fbfd5757afd
SQL
nick-d-brown/bamazon
/schema.sql
UTF-8
1,338
3.609375
4
[]
no_license
-- This is the SQL code for the initial setup of the bamazon DB -- WARNING!!!!!!! --==================== --DROP DATABASE bamazon; --==================== -- The code Above is only run at the VERY BEGINNING of the project. It DELETES the database -- This is only meant to be used to clear out an existing DB before we begi...
true
ab08ee57ba14a70841a9472ed30df0bbf89709f1
SQL
sierra073/gsheet-service-layer
/scripts/2019/id5120_negotiate_newly_meeting_cost_trends_2018sots.sql
UTF-8
2,516
3.640625
4
[]
no_license
with subset as ( select d.district_id, d.name, d.state_code, d.num_students, dfa.fit_for_ia, dfa.fit_for_ia_cost, dbc.meeting_2014_goal_no_oversub, dbc.ia_bw_mbps_total as ia_bw_mbps_total_17, dbc.ia_monthly_cost_per_mbps as ia_monthly_cost_per_mbps_17, dbc.ia_monthly_cost_total as ia_monthly_cost_...
true
7a21c6aa75ee6b39ea95f438994f4053f8ceb21d
SQL
hittecd/csci-5622-project
/sql/median_income.sql
UTF-8
331
3.4375
3
[]
no_license
# drop median income data DROP TABLE IF EXISTS median_income; # create median_income table CREATE TABLE median_income ( id INT NOT NULL AUTO_INCREMENT, zip_id INT NOT NULL, median_income INTEGER NULL, PRIMARY KEY(id), FOREIGN KEY (zip_id) REFERENCES zip(id) ON DELETE CASCADE ) ENGI...
true
fe38af76118891b9f0c036104fab4c0d6667b513
SQL
mariana1412/FEUP-BDAD-PROJ
/Parte III/Triggers/gatilho3_adiciona.sql
UTF-8
417
3.3125
3
[]
no_license
PRAGMA foreign_keys=ON; -- Não é possível inserir uma participaçao de uma equipa que já está a participar naquela prova CREATE TRIGGER InsertTeamParticipation BEFORE INSERT ON TeamParticipation WHEN EXISTS (Select * FROM TeamParticipation WHERE TeamID = New.TeamID AND DateTime = New.DateTi...
true
68ccde1249e99eeaceb08bc90fb11bcf1e797850
SQL
vistaprint/automobile
/Database/dbo.mob_get_first_match.prc
UTF-8
1,896
3.25
3
[ "Apache-2.0", "MIT" ]
permissive
/* Copyright 2013 Vistaprint Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribu...
true
f06dbeb47a37226ec69674f9380fb3bd678716ba
SQL
CosmicCharmer/selectcourse
/selectcourse/WebContent/database/selectcourse.sql
UTF-8
4,126
3.21875
3
[]
no_license
/* Navicat Oracle Data Transfer Oracle Client Version : 11.2.0.1.0 Source Server : oracle_11 Source Server Version : 110200 Source Host : localhost:1522 Source Schema : SYSTEM Target Server Type : ORACLE Target Server Version : 110200 File Encoding : 65001 selectcourse 所需要的表 Dat...
true
dbe59a9dbd488c4e617db88fb32c1c6c42034b93
SQL
usmanjamil83/class-content
/sequelize/1-Class-Content/15.1/Activities/1-Chirpy-mySQL/UNSOLVED/schema.sql
UTF-8
221
2.703125
3
[]
no_license
CREATE DATABASE chirpy; USE chirpy; CREATE TABLE `chirps` ( item_id INTEGER AUTO_INCREMENT NOT NULL, author VARCHAR(100) NOT NULL, chirp VARCHAR(100) NOT NULL, created_at DATETIME NOT NULL, PRIMARY KEY(item_id) );
true
f49eaab7f6ba29a3fa3af72573cffb3571736cd7
SQL
wllfl/scripts-SQLServer
/Migração GUIA/Acerto_Imoveis_Cliente.sql
ISO-8859-1
1,098
3.21875
3
[]
no_license
USE saoroque /* Limpando registros e resetando IDENTITY */ TRUNCATE TABLE saoroque.dbo.imoveis_clientes /* Desligando campos IDENTITY */ SET IDENTITY_INSERT saoroque.dbo.imoveis_clientes ON INSERT INTO saoroque.dbo.imoveis_clientes (id ,login ,email ,nome ,responsavel ,endereco ,telefone ,logo ,creci ,limite ,tipo ,...
true
83766e35b55b3778ef5caaab356c867520be8b20
SQL
denis-gubar/Leetcode
/Database/0613. Shortest Distance in a Line.mysql
UTF-8
128
3.46875
3
[]
no_license
# Write your MySQL query statement below SELECT MIN(ABS(A.x - B.x)) shortest FROM point A INNER JOIN point B ON A.x != B.x
true
b1ac2c6194da77ccc32cc00f25266dcfe3cb7718
SQL
lihui0527/bs
/postgraduate_prediction.sql
UTF-8
28,425
3.25
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : boke Source Server Version : 50718 Source Host : 127.0.0.1:3306 Source Database : postgraduate_prediction Target Server Type : MYSQL Target Server Version : 50718 File Encoding : 65001 Date: 2020-03-07 00:23:15 */ SET FOREIGN_KEY_CHEC...
true
cfb44b225a23973d3cd21cd302f18652ad27248b
SQL
greenplum-db/pxf
/automation/tincrepo/main/pxf/features/hdfs/writable/json/primitive_types_object_compressed/sql/query01.sql
UTF-8
626
2.59375
3
[ "Apache-2.0" ]
permissive
-- @description query01 for PXF HDFS Writable Json primitive types written in the object layout with compression -- start_matchsubs -- -- # create a match/subs -- -- end_matchsubs \pset null 'NIL' SET bytea_output = 'hex'; SELECT id, name, sml, integ, bg, r, dp, dec, bool, cdate, ctime, tm, CAST(tmz AS TIMESTAMP WIT...
true
e2ca1d3eca465f7666837f883e8d6eccd8fcec3b
SQL
royswapnil/CARS_GIT
/Database Update Scripts/ALTER_SCRIPTS_2017-02-16.sql
UTF-8
746
2.578125
3
[]
no_license
IF NOT EXISTS(SELECT * FROM syscolumns WHERE id=object_id('TBL_WO_DEBITOR_DETAIL') AND name='CUST_DISC_GENERAL') BEGIN ALTER TABLE TBL_WO_DEBITOR_DETAIL ADD CUST_DISC_GENERAL INTEGER END IF NOT EXISTS(SELECT * FROM syscolumns WHERE id=object_id('TBL_WO_DEBITOR_DETAIL') AND name='CUST_DISC_LABOUR') BEGIN ALTER TA...
true
334cb80f55d2908056b824c49378bf61dee1ae43
SQL
jscaze/nDoD
/src/airflow/dags/sql/nDoD_schema.sql
UTF-8
3,553
3.59375
4
[]
no_license
CREATE TABLE IF NOT EXISTS ndod.personn ( personn_id SERIAL PRIMARY KEY, full_name varchar, nu_personn varchar, country_code int, flag_active boolean NOT NULL DEFAULT true, created_at timestamp DEFAULT (now()), updated_at timestamp DEFAULT (now()) ); CREATE TABLE IF NOT EXISTS ndod.racine ( racine_id S...
true
119f25ac8cd250fca0efc98d9d1f8e96c22be078
SQL
RoxxanaB/OnlineStore
/src/SQL/Tables.sql
UTF-8
4,842
3.421875
3
[]
no_license
CREATE TABLE LORO_Shopping_Cart ( cart_id INT unsigned NOT NULL AUTO_INCREMENT, # Unique ID for the record customer_id INT NOT NULL, order_id INT NOT NULL, date_added DATE NOT NULL, payment_status VARCHAR(20) NOT NULL, payment_type VARCHAR(20) NOT NULL, discount_type VARCHAR(30), discount_number int, ...
true
70143c24aed8f144618e5b6dc982dea169c18829
SQL
0kevin/UAS-3PTI2
/widget.sql
UTF-8
4,499
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 12, 2014 at 01:21 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
8633c059e35248d674db2d3e4c46b227799963bb
SQL
ivanyang1984/bright_frame
/db/oracle_sys.sql
UTF-8
3,536
3.296875
3
[]
no_license
-- Create table create table sys_user ( id number, account varchar2(32), password varchar2(32), type varchar2(32), name varchar2(32), nickname varchar2(32), mobile varchar2(32), email varchar2(32), stats number, create_time date, exprie_time date ...
true
4089b6eb8aa55161ef6f267ce128d831230560cc
SQL
tmnguyen1403/schoolserver
/demo-query-showalldata.sql
UTF-8
1,031
3.0625
3
[]
no_license
1. First, display the ER-diagram (10 pts); 2. For each table, perform a query to show all data; (20 pts) 3. For each table, perform a query using at least one of the aggregate functions; (30 pts) 4. For each relationship, perform a joint query on the tables that are DIRECTLY related through that relationship. (40 pts)...
true
57215e8d6a0961ae717e30eef95a1eb74f6713dd
SQL
cocoandgaga/biyesheji
/renren-fast/src/main/resources/db/migration/V19__Create_qrtz_blob_triggers_table.sql
UTF-8
417
3.265625
3
[ "Apache-2.0" ]
permissive
CREATE TABLE QRTZ_BLOB_TRIGGERS ( SCHED_NAME VARCHAR(120) NOT NULL, TRIGGER_NAME VARCHAR(200) NOT NULL, TRIGGER_GROUP VARCHAR(200) NOT NULL, BLOB_DATA BLOB NULL, PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP), INDEX (SCHED_NAME,TRIGGER_NAME, TRIGGER_GROUP), FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP) REF...
true
8835452f7ede389df09986ff7f9978b08186df0f
SQL
anuar2k/PBD-2020
/lab-online/lab01/cw01-p43/02.sql
UTF-8
91
2.578125
3
[]
no_license
USE Northwind SELECT ProductName, UnitPrice FROM Products WHERE UnitPrice BETWEEN 20 AND 30
true
e5aa3508c6d2b1953a35d4ccb58e811972b9073c
SQL
DiegoCampos1/Projects
/Mysql-one-for-all/desafio8.sql
UTF-8
327
3.078125
3
[]
no_license
USE SpotifyClone; DELIMITER $$ CREATE TRIGGER trigger_usuario_delete BEFORE DELETE ON SpotifyClone.usuarios FOR EACH ROW BEGIN DELETE FROM SpotifyClone.historico_de_reproducoes WHERE usuario_id = OLD.usuario_id; DELETE FROM SpotifyClone.seguindo_artistas WHERE usuario_id = OLD.usuario_id; END; $$ DELIM...
true
9af17ce60f3e30c0cede4313958a1b48647cbf34
SQL
bxxtxx/sql
/20200713.sql
UTF-8
12,317
4.40625
4
[]
no_license
DROP TABLE dept_test; CREATE TABLE dept_test( deptno NUMBER(2) dname VARCHAR(13), loc VARCHAR(13) ); DROP TABLE emp_test; CREATE TABLE emp_test( empno NUMBER(4), ename VARCHAR2(10), deptno NUMBER(2) REFERENCES dept_test (deptno) CONSTRAINT pk_emp_test PRIMARY KEY (...
true
c63d6846309dd2dbd5300ebfd8fb6430a9cde043
SQL
radtek/abs3
/sql/mmfo/bars/View/v_user_session.sql
UTF-8
1,945
3.359375
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/View/V_USER_SESSION.sql =========*** Run *** PROMPT ===================================================================================== PROMPT *** Create view V_US...
true
3772fe7ac7db67de26933dc8b4bdd2be634e3b9b
SQL
JingyuSoft/amity
/amity-server/src/main/java/com/jingyusoft/amity/data/dao/City-QuerySearchable.sql
UTF-8
190
3.625
4
[]
no_license
SELECT ci.id, ci.city_name, ifnull(ci.display_name, ci.city_name) as city_display_name, co.country_name, ci.latitude, ci.longitude FROM city ci INNER JOIN country co ON ci.country_id = co.id
true
b7509297e91b88c9a49add1e9793c727d5d63c95
SQL
DpTejada/ANSIBLE-1
/centos-8-mysqlp-php/centos-8-mysql/files/database.sql
UTF-8
2,243
2.921875
3
[ "BSD-3-Clause" ]
permissive
create database ziyotekdb2; use ziyotekdb2; create table SuperTek ( student_ID varchar(5) NOT NULL, first_name char(25) NOT NULL, last_name char(30) NOT NULL, GPA int(3), state char(50), primary key (student_ID) ); INSERT INTO `SuperTek` VALUES ('AJ0...
true
d0d15010ecc5610397b2873656fb4a84edca305a
SQL
nishishailesh/send_email
/email_blank.sql
UTF-8
1,935
2.8125
3
[]
no_license
-- MySQL dump 10.17 Distrib 10.3.23-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: email -- ------------------------------------------------------ -- Server version 10.3.23-MariaDB-0+deb10u1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RE...
true
ef2c19630b43f71c3718920c1778cd90d52318ca
SQL
NunoAlexandre/innovation-funding-service
/ifs-data-layer/ifs-data-service/src/main/resources/db/migration/V76_6_0__add_competition_template_tables.sql
UTF-8
3,184
3.609375
4
[ "MIT" ]
permissive
CREATE TABLE `form_input_template` ( `id` BIGINT(20) NOT NULL, `form_input_type_id` BIGINT(20) NULL, `guidance_question` varchar(5000) DEFAULT NULL, `guidance_answer` varchar(5000) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `included_in_application_summary` tinyint(1) NOT NULL DEFAULT '1', `pr...
true
a021b924c0a28c737e7cfefc3963c8c502b21a1c
SQL
ynsclk13/hospital-database
/login.sql
UTF-8
1,226
2.75
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Anamakine: 127.0.0.1:3306 -- Üretim Zamanı: 14 May 2019, 11:01:13 -- Sunucu sürümü: 5.7.24 -- PHP Sürümü: 7.2.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
f8404c73f79bd59f2140fd07587ad42c3be1c09c
SQL
hxin/OntoSuite-Miner
/lib/ensembl-api/ensembl-variation/modules/t/test-genome-DBs/homo_sapiens/core/analysis.sql
UTF-8
1,041
2.640625
3
[ "Apache-2.0" ]
permissive
CREATE TABLE `analysis` ( `analysis_id` int(10) unsigned NOT NULL auto_increment, `created` datetime NOT NULL default '0000-00-00 00:00:00', `logic_name` varchar(40) collate latin1_bin NOT NULL default '', `db` varchar(120) collate latin1_bin default NULL, `db_version` varchar(40) collate latin1_bin default N...
true
06715a0792a9c08bb58c7c272c9dd0278fe7743f
SQL
gpdoud/sql-server
/student-insert.sql
UTF-8
311
2.671875
3
[]
no_license
ALTER table Student ADD MajorId int not null SELECT * from student insert into student (FirstName, LastName, Address, City, State, Zipcode, PhoneNumber, Email, Birthday, MajorId) VALUES ('Ken', 'Doud', '123 Any Street', 'Loveland', 'OH', '45140', '5135551212', 'kdoud@maxtrain.com', '1991-08-27', ...
true
af5ea3ec6236dce64f0ba73cb1fad0e26200a9b1
SQL
ZakariaSelassi/PHPExo
/CRUD1/colyseum.sql
UTF-8
5,428
3.109375
3
[]
no_license
CREATE DATABASE colyseum CHARACTER SET 'utf8'; USE colyseum; CREATE TABLE `clients` ( `id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, `lastName` VARCHAR(45) NOT NULL, `firstName` VARCHAR(45) NOT NULL, `birthDate` DATE NOT NULL, `card` BOOLEAN NOT NULL, `cardNumber` INT UNSIGNED, PRIMARY KEY (Id) ); CRE...
true
cf77607ce0836e4f854d0756449eedc8cffa9a27
SQL
ReneNyffenegger/PL-SQL-Parser
/tables/hierarchical_query_clause.sql
UTF-8
377
2.921875
3
[]
no_license
create table nd_hierarchical_query_clause ( id number(8) not null primary key, connect_by_condition not null references nd_condition, -- Tahiti's syntax diagram has condtion [AND condition [AND condition...]] (But that doesn't seem to make sense) start_with_condition null references nd_condition, nocycle_ ...
true
05c14646b45df64f0127bffc7285c1cd885606f3
SQL
ivancekic/sql-data-analysis
/sql/Stanje/Provera robne svi proizvodi.sql
UTF-8
2,860
3.71875
4
[ "MIT" ]
permissive
select ----PROIZVOD, TIP_DOK, DATUM, VRSTA_DOK, BROJ_DOK, KOLICINA, CENA, CENA1, FAKTOR, K_ROBE ---- , STANJE, DUG, POT, PRETH_STANJE, PRO_PRE, ODGOV ---- , datum_unosa -- TIP_D, Datum_dok, VRD, BRD, KOLICINA, CENA, CENA1, FAK, K_R , stanje, preth_stanje , ( case when PRO_PRE <> pro then 0...
true
8985345323095ed1d9a93a9bfc68e4776669ca8a
SQL
renxiaowei-1991/Learn
/04-Oracle/01-baseSQLLearn/007-DDL-User.sql
GB18030
4,963
4.03125
4
[]
no_license
--DDL:User -- û https://blog.csdn.net/jtwmy_lb/article/details/85257715 --û ûܷݿǰҪлӦȨ˺ţoracleдһûΪܼ򵥣ڴûͬʱʵָܶû,⻹ûȨ衣 ԱûȥִӦIJһͬʱҲһͨshema,shemaûһһӦĹϵshemaݿ߼ ڴûĹпָûУ 1֤ʽ 2֤ 3Ĭϵñռ䣬ʱռ 4ռ 5û˺״̬(locked or unlocked) 6״̬(expired or not) ﷨ʽ create user username identified by password; Դóʹõ˻óݿ⣬û˿ʹø˻¼ݿ⡣ --Ԥ˻ oracle㴴ݿʱԶĴԤ˻ еݿⶼ˻ sys ...
true
14ffdf6ea5ca081048a7add39b990569a1d5a16b
SQL
enniebabs/Islay-web
/queries_create/placename_img.sql
UTF-8
237
2.90625
3
[]
no_license
CREATE TABLE PLACENAME_IMAGES (PLACENAME_IMAGE_ID NUMBER(4) not null, IMAGE_PATH VARCHAR2(2000) null, PLACENAME_ID NUMBER(4) null, PRIMARY KEY (PLACENAME_IMAGE_ID), FOREIGN KEY (PLACENAME_ID) REFERENCES PLACENAMES(PLACENAME_ID));
true
c3f3e9e0f24183c70993b753293d8d824426bc2a
SQL
EtienneBrJ/holbertonschool-higher_level_programming
/0x0D-SQL_introduction/101-avg_temperatures.sql
UTF-8
123
2.703125
3
[]
no_license
-- displays average temperature SELECT city, AVG(`value`) avg_temp FROM temperatures GROUP BY city ORDER BY avg_temp DESC;
true
fc854f865cc26736e32520be5de882d72b70650d
SQL
C0920G1-NguyenQuangHoaiLinh/C0920G1-NguyenQuangHoaiLinh
/module3/src/demo2/CodeGym/Module3/SQLViewIndex&StoredProcedure/thuc_hanh/view_trong_mysql.sql
UTF-8
378
3.40625
3
[]
no_license
use classicmodels; -- Tạo view. CREATE VIEW customer_views AS SELECT customerNumber, customerName, phone FROM customers; select * from customer_views; -- Cập nhật view. CREATE OR REPLACE VIEW customer_views AS SELECT customerNumber, customerName, contactFirstName, contactLastName, phone FROM customers WHERE city...
true
6dc17d13d6df31608d97a9bc259d6f1d7ee17d7e
SQL
mohammadtarek/mohammad-tarek-mon-4
/Q3.sql
UTF-8
88
2.59375
3
[]
no_license
SELECT * FROM customers WHERE country ='usa' and phone LIKE'%5555%' order BY creditLimit
true
6d72e3feb6d79c1cd45e587ed43979a20ebcda15
SQL
dbertolino-github/ecommerce_datawarehouse
/0_DB_SETUP/1_db_sql_scripts/olist_oltp.sql
UTF-8
3,622
3.03125
3
[]
no_license
-------------------------------------------------------- -- Schema OLTP -------------------------------------------------------- CREATE SCHEMA "OLTP"; SET SCHEMA 'OLTP'; -------------------------------------------------------- -- Table "OLTP".OLTP_CUSTOMERS -------------------------------------------------------- CREA...
true
e9a341a814fecbec4d4184851411a779b651674c
SQL
arminhaghi/SocialMediaDatabase
/Delete_B.sql
UTF-8
442
2.65625
3
[]
no_license
DELETE FROM POST WHERE PostID = 23; DELETE FROM POST WHERE PostID = 24; DELETE FROM POST_COMMENTS WHERE PostID = 20 AND CommentTime = '03/01/2017' AND CommentDate = '17:01:29' AND Commenter = 'jbond@uw.edu'; DELETE FROM [MESSAGE] WHERE ThreadID = 25 AND Sender = 'taloyrs@uw.edu' AND MsgDate = '03/02/2017' AND MsgTim...
true
41559d5e06921dc817a3630555a57bce7e01eb43
SQL
tntcyberdev/coworking
/src/db/unit.sql
UTF-8
1,420
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 11, 2016 at 04:43 PM -- Server version: 5.5.46-0ubuntu0.14.04.2 -- PHP Version: 5.5.9-1ubuntu4.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
8cb84bcb0ba975b705c05d2c458b0154b3c79ced
SQL
nyiheinhtet/Store-Sales-Purchase-Inventory-and-Income-Expense-Database-System
/DB project stock management/sales+stock.sql
UTF-8
7,646
3.765625
4
[]
no_license
----------------------------------------------------------------------------------------- -------------------------Use the query below for sales transaction----------------------- ----------------------------------------------------------------------------------------- DO $$ DECLARE pid varchar := '0011'; q...
true
7cb3487c34ece1092de6147388680f8da1df230f
SQL
jibberilins/phpProject
/MySQL/renewable main2.sql
UTF-8
19,957
2.796875
3
[]
no_license
-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.5.25a /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;...
true
f75ac26b5222eb0ea2b42a05df68e5384eb14f3f
SQL
PabloGonzalezGonzalez/adbd2021
/Prácticas/Triggers/EJERCICIO3-GRUPO5.sql
UTF-8
280
3.015625
3
[]
no_license
DELIMITER // CREATE TRIGGER control_stock AFTER INSERT ON TABLE pedido_producto FOR EACH ROW BEGIN UPDATE producto SET prodcuto.stock = producto.stock - cantidad; IF stock < 0 THEN RAISE EXCEPTION 'DONT HAVE ENOUGH PRODUCTS'; END IF; END; //
true
aeec045af4b060e3668be1e7486c4800c2dece6e
SQL
VeselinAtanasov/mysql-database-demos
/mysql-database-demos/03_BuiltInFunctions/lab/tasks/1-_CountriesHoldingA.sql
UTF-8
165
2.828125
3
[]
no_license
SELECT `country_name`, `iso_code` FROM `countries` WHERE CHAR_LENGTH(`country_name`) - CHAR_LENGTH(REPLACE(LOWER(`country_name`), 'a', '')) >= 3 ORDER BY `iso_code`
true
c610742feaf8fb00b4e02b5a15c1ad34d74178ec
SQL
isuforesite/Foresite
/psql_library/huc12_inputs.sql
UTF-8
667
2.921875
3
[]
no_license
drop table if exists sandbox.huc12_inputs; create table sandbox.huc12_inputs as select uuid_generate_v4() as uuid, t1.huc12, t1.huc12_name, t1.state, t1.fips, st_y( st_centroid( t3.wkb_geometry ) ) as wth_lat, st_x( st_centroid( t3.wkb_geometry ) ) as wth_lon, t1.mukey, t1.musym, t2.implement, t2.depth, t2....
true
109b613e0db4da8f90c5b79810bc21d0ad0646e0
SQL
lamnguyenptit/employee_management
/employee_management.sql
UTF-8
3,596
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th7 17, 2021 lúc 05:35 AM -- Phiên bản máy phục vụ: 10.4.8-MariaDB -- Phiên bản PHP: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
true
79377da428771507681d05d354eaadbd8875b205
SQL
radtek/abs3
/sql/mmfo/bars/Table/fin_nd.sql
WINDOWS-1251
3,841
3.046875
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/FIN_ND.sql =========*** Run *** ====== PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
82583929d0d90db3c9bc16b18665959c6d5b1d14
SQL
genoufox/sql-scripts
/top10000_2014_0418.sql
UTF-8
2,763
3.65625
4
[]
no_license
create table top10000_2014_0418 as select * from (select d.bi_aid, d.game_ab, d.game_name, a.userid, c.passport, c.truename, c.mobilephone, c.game_au as game_new, b.pay2014, e.reg_ti...
true
b799b25715ecc4546dad15e05ad284fd6617a5fa
SQL
Ethan-Joiner/database-exercises
/update_exercises.sql
UTF-8
574
3.28125
3
[]
no_license
USE codeup_test_db; SELECT 'All Albums' AS ''; SELECT * FROM albums; UPDATE albums SET sales = (sales * 10) WHERE sales < 100; SELECT * FROM albums; SELECT 'Released Before 1980' AS ''; SELECT * FROM albums WHERE release_date < 1980; UPDATE albums SET release_date = (release_date - 100) WHERE release_date BETWEEN 19...
true
6fa416348326a7e979ee6898d7a05a6a0762aacf
SQL
pes130/bases_de_datos
/unidad11/UD11-bd-explicaciones.sql
UTF-8
3,586
3.625
4
[]
no_license
SET FOREIGN_KEY_CHECKS = 0; DROP DATABASE IF EXISTS unidad11; CREATE DATABASE unidad11 CHARACTER SET utf8mb4; USE unidad11; CREATE TABLE alumno ( id INT UNSIGNED PRIMARY KEY, nombre VARCHAR(100) NOT NULL, apellido1 VARCHAR(100) NOT NULL, apellido2 VARCHAR(100), fecha_nacimien...
true
7b9eff685742d98d0300110d68735064870ffcb4
SQL
RanjanFullStack/ApiWithBestArchitectureNetCore
/Maks.BEATFlow.Database.2.0/Tzdb/Tables/Zones.sql
UTF-8
237
2.6875
3
[]
no_license
CREATE TABLE [Tzdb].[Zones] ( [Id] INT IDENTITY (1, 1) NOT NULL, [Name] VARCHAR (50) NOT NULL, [StandardName] VARCHAR (250) NULL, CONSTRAINT [PK_Zones] PRIMARY KEY CLUSTERED ([Id] ASC) );
true
5ba3fae88ac6c5b2da582f01850b7b967bcde1ea
SQL
NSS-Day-Cohort-42/chinook--mswinkels09
/11-15/line_item_track.sql
UTF-8
249
3.609375
4
[]
no_license
--Provide a query that includes the purchased track name with each invoice line item. Select t.Name TrackName, i.InvoiceLineId, i.UnitPrice, i.Quantity From InvoiceLine i Join Track as t On t.TrackId = i.TrackId Order By TrackName Asc;
true
3664e9a01e047e1f06e7c580c7fcf54c72d3f2ec
SQL
jbrdge/LeetCodeSolutions
/SQL/175_CombineTwoTables.sql
UTF-8
160
2.796875
3
[]
no_license
-- github.com/jbrdge SELECT Person.Firstname, Person.LastName, Address.City, Address.State FROM Person LEFT JOIN Address ON Person.PersonId = Address.PersonId;
true
408a6a2b815f50a2ef17481e8561be825cd08698
SQL
squiroz23x/SoftCake
/Textos/softcake 0.1.sql
UTF-8
6,206
3.0625
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 16-05-2017 a las 06:19:43 -- Versión del servidor: 10.1.21-MariaDB -- Versión de PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
true
271288451d54b5902b1f50997687df38b42f3a81
SQL
joeeoj/omdb-test
/create_table.sql
UTF-8
335
2.71875
3
[ "MIT" ]
permissive
-- Usage: > sqlite3 movies.db -init create_table.sql DROP TABLE IF EXISTS movies; CREATE TABLE movies ( id integer primary key, imdb_id char(9) UNIQUE, title varchar(100), year smallint, rated varchar(6), imdb_rating float, metascore ...
true
cc13218e5f986e3be38adb31826131a5dd20d51d
SQL
Daniela-2017/Base-de-Datos
/Registros/Registros.sql
ISO-8859-1
27,286
2.515625
3
[]
no_license
--Insertar datos a las tablas --1. DepartamentoH INSERT INTO Registro.smregistro.Departamento (nombreDepartamento) VALUES('Atlntida') INSERT INTO Registro.smregistro.Departamento (nombreDepartamento) VALUES('Choluteca') INSERT INTO Registro.smregistro.Departamento (nombreDepartamento) ...
true
553571fb45ba90ad820440b40e6be7f97b5e1865
SQL
Adefioye/Udemy-SQL-for-Business-Analytics-Course
/IF vs CASE STATEMENT.sql
UTF-8
3,427
4.53125
5
[]
no_license
/* SYNTAX CASE STATEMENT SELECT column_name(s) CASE condition_field WHEN condtion_field_value_1 THEN result_1 WHEN condition_field_value_2 THEN result_2 ... ELSE END AS FROM table_name; IF vs CASE STRUCTURE, IF structure provides just one conditional expression while CASE structure provides mu...
true
9d27c4b3da9572dd74841329bc0638c4a9e88851
SQL
paulopez78/workshops
/1.0/part5-microservices/5.3-queries-traces/Meetup.Scheduling/db.sql
UTF-8
997
2.921875
3
[]
no_license
DROP DATABASE "meetup"; DROP USER "meetup"; CREATE DATABASE "meetup"; CREATE SCHEMA scheduling; CREATE USER meetup WITH PASSWORD 'password'; GRANT ALL PRIVILEGES ON DATABASE "meetup" to meetup; SELECT * FROM meetup.scheduling.mt_streams order by timestamp desc; SELECT * FROM meetup.scheduling.mt_events order by tim...
true
a16e59ae28a6f463baadeab7bcf45dc334cd75c1
SQL
SocialGouv/reva
/packages/reva-api/prisma/migrations/20230808082925_update_feasibility_table_rename_feasibility_file_id_to_feasibility_file_id/migration.sql
UTF-8
392
3.296875
3
[ "Apache-2.0" ]
permissive
-- DropForeignKey ALTER TABLE "feasibility" DROP CONSTRAINT "feasibility_feasibilityFileId_fkey"; -- AlterTable ALTER TABLE "feasibility" RENAME COLUMN "feasibilityFileId" TO feasibility_file_id; -- AddForeignKey ALTER TABLE "feasibility" ADD CONSTRAINT "feasibility_feasibility_file_id_fkey" FOREIGN KEY ("feasibility...
true
00f4ca082ecaea80c24f702b18a2231ba43f43df
SQL
MayKeziah/SQLiteClientServer
/src/database/create/create2.sql
UTF-8
333
3.140625
3
[ "MIT" ]
permissive
create table PROJECT( location varchar not null, eventType varchar not null, managerFname varchar not null, managerLname varchar not null, EDate date not null, PRIMARY KEY (managerFname, managerLname, EDate), FOREIGN KEY (location) REFERENCES PLACE (name), FOREIGN KEY (managerFname, managerLname) REFERENCES PERSON (Fna...
true
e63bf363cdbd3d633c57f15cd6c496b0b251f7d5
SQL
ekavade-secondary-ac/Online-classroom-system
/otg1.sql
UTF-8
9,803
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 28, 2018 at 07:24 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 5.6.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
195850ec6a68fb1be6cef2687edd1aac3d9de537
SQL
uwi-mase-2014-ccd/component-motor-vehicle-registration-system-auditing-services
/Auditing/build/classes/com/crisp/audit/db/schema.sql
UTF-8
724
3.46875
3
[]
no_license
CREATE DATABASE `genaudit` /*!40100 DEFAULT CHARACTER SET utf8 */; CREATE TABLE `event` ( `event_id` int(11) NOT NULL, `description` varchar(100) DEFAULT NULL, PRIMARY KEY (`event_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `event_audit` ( `audit_id` int(11) NOT NULL AUTO_INCREMENT, `username` v...
true
c16952af23aa58056e7fac73947ebc28f45b0405
SQL
tectronics/hacride
/data/sql/plugins.sf2s3iGuardPlugin.lib.model.schema.sql
UTF-8
2,161
3.296875
3
[]
no_license
# This is a fix for InnoDB in MySQL >= 4.1.x # It "suspends judgement" for fkey relationships until are tables are set. SET FOREIGN_KEY_CHECKS = 0; #----------------------------------------------------------------------------- #-- sf_2s3i_guard_user #------------------------------------------------------------...
true
14fb50258ad04e850359927cf9581ae6b06fb783
SQL
ricgrisant/industria
/sql/getBlogs.sql
UTF-8
970
3.53125
4
[]
no_license
DROP PROCEDURE IF EXISTS getBlogs; DELIMITER $$ CREATE PROCEDURE getBlogs( IN pc_idUser INTEGER, OUT pcMensaje VARCHAR(2000), OUT pbOcurreError BOOLEAN ) BEGIN DECLARE temMensaje VARCHAR(1000); DECLARE vn_existeUsuario INTEGER DEFAULT 0; SET pbOcurreError :=TRUE; SET pcMensaje :=''; /*Comproband...
true
dec216ab4473c2e17487baaa525e25101ae8e658
SQL
SergeJawhari/Databases
/test.sql
UTF-8
1,389
3.90625
4
[]
no_license
CREATE TABLE faculty( id INTEGER NOT NULL, first_name VARCHAR(20) NOT NULL, last_name VARCHAR(20) NOT NULL, office VARCHAR(20) NOT NULL, start_date DATE NOT NULL, phone_number char(12) NOT NULL, department VARCHAR(20) NOT NULL, CONSTRAINT faculty_pk PRIMARY KEY (id), CONSTRAINT facul...
true
cc059a0c38d5851a4c2e91f4997bd4b0570ba191
SQL
hzl1998/spring-security
/src/main/resources/user_db.sql
UTF-8
8,347
3.046875
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : hzl Source Server Type : MySQL Source Server Version : 80018 Source Host : localhost:3306 Source Schema : user_db Target Server Type : MySQL Target Server Version : 80018 File Encoding : 65001 Date: 27/03/2020 18:54:44...
true
857fa01c747c4c734ab876c112e68a0f04e7721a
SQL
Medier/Schedulis
/azkaban-db/src/main/sql/com.webank.wedatasphere.schedulis/wtss_1.1.8.sql
UTF-8
8,008
3.203125
3
[ "Apache-2.0" ]
permissive
-- 用户表 结构 CREATE TABLE IF NOT EXISTS `wtss_user` ( `user_id` varchar(50) NOT NULL COMMENT '用户ID', `username` varchar(200) DEFAULT NULL COMMENT '用户登录名', `password` varchar(20) DEFAULT NULL COMMENT '用户登录密码', `full_name` varchar(200) DEFAULT NULL COMMENT '用户姓名', `department_id` ...
true
469e7dee41f49010d174744e3b4d82cbdf243f4b
SQL
fleetmack/mines
/me/clean_ups/canadian_addresses/fix_those_with_no_province.sql
UTF-8
2,208
3.46875
3
[]
no_license
/**** Fix Canadian Addresses - give these to Jo Marie ***/ select * from a_dw_address_good where (h_foreign_cityzip not like '%BC%' and h_foreign_cityzip not like '%ON%' and h_foreign_cityzip not like '%SK%' and h_foreign_cityzip not like '%QC%' and h_foreign_cityzip not like...
true
2a4422134d0c8aeb472fc3150d726d4f3b8750c7
SQL
amitak786/pizzaHub
/pizza/pizza.sql
UTF-8
1,568
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 27, 2020 at 09:56 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
7c2138ef216742de0bb30439be31f6cb4650464b
SQL
septakusumaningtyas/RoligtTravel
/db_travel.sql
UTF-8
13,122
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 26, 2018 at 05:31 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
d90c2bafa11caba08476de3ee8d9205507f2ccf0
SQL
talos/ny-state-contributions-scratch
/contributors/scratch.sql
UTF-8
6,214
4.4375
4
[]
no_license
-- to start `sqlite3 state.db` --select count(*) from indiv where employer is not null; -- -- attach database 'indiv.db' as federal; -- Simple analysis on raw state contributions: -- SELECT -- `Filer Id`, -- `Report Id`, -- `Transaction Code`, -- `Election Year`, -- `Transaction Id`, -- COUNT(*) from st...
true
89fd1f5960e63eaf1202a3d2751be98cd6f24436
SQL
jianbingfang/xhf
/src/main/resources/dbmigrate/h2/cal/V0_0_1__cal_info.sql
UTF-8
508
3.015625
3
[ "Apache-2.0" ]
permissive
------------------------------------------------------------------------------- -- cal info ------------------------------------------------------------------------------- CREATE TABLE CAL_INFO( ID BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL, NAME VARCHAR(200), ADDRESS VARCHAR(200), TYP...
true
ffd865b2f8fe96e86460f52654b067c521ada94d
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day16/select2328.sql
UTF-8
178
2.671875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-15T23:28:00Z' AND timestamp<'2017-11-16T23:28:00Z' AND temperature>=38 AND temperature<=85
true
9ce84e659d6774242ec55f0f7d2f07a8766e5f2f
SQL
htmlacademy-php/578725-yeticave-12
/schema.sql
UTF-8
663
3.234375
3
[]
no_license
CREATE DATABASE YetiCave DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; CREATE TABLE categories ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255), code VARCHAR(255) ); CREATE TABLE lots ( id INT AUTO_INCREMENT PRIMARY KEY, date_on DATE, name VARCHAR(255), pick VARCHAR(255), price INT, da...
true
939aa5e8b0a662f7931fc462566fff68fb6be595
SQL
JessieJeanBlack/The-Tech-Academy-SQL-Coding-Projects
/lbary.sql
UTF-8
12,756
3.28125
3
[]
no_license
CREATE DATABASE db_library_management_system Use db_library_management_system CREATE TABLE LIBRARY_BRANCH ( BranchID INT PRIMARY KEY NOT NULL, BranchName VARCHAR(50) NOT NULL, Address VARCHAR(50) NOT NULL ); INSERT INTO LIBRARY_BRANCH (BranchID, BranchName, Address) Values ('43162', 'Sharpstown', '117 ...
true
9182c8277a2f44567b24895b91baf33829c45af5
SQL
tanyta78/MSSQL-DatabaseBasic
/DBBasicExercises/02DataDefinitionandDataTypes/MoviesDb.sql
UTF-8
1,103
3.75
4
[]
no_license
CREATE DATABASE Movies; CREATE TABLE Directors ( Id int not null primary key, DirectorName varchar(30) not null, Notes varchar(500) ); CREATE TABLE Genres ( Id int not null primary key, GenreName varchar(30) not null, Notes varchar(500) ) CREATE TABLE Categories ( Id int not null primary key, CategoryName varchar(30...
true
07dc3ab6243516d2e80b6e12a2099d65c80b986f
SQL
andrianavony/dbw
/sqlFolder/DDL_CALIBRATIONDIAGRAMLINE.sql
UTF-8
724
3.34375
3
[]
no_license
START TRANSACTION; SET foreign_key_checks = 0; DROP TABLE IF EXISTS `calibrationdiagramline`; CREATE TABLE IF NOT EXISTS `calibrationdiagramline` ( `IDDIAGRAM` varchar(50) NULL, `IDCALIBER` varchar(50) NULL, `QUANTITY` double NULL, `UNITS` varchar(50) NULL, `D...
true
b97c9b48f09d44a3368cfee111dac9b37ac90153
SQL
deviousway/k8sdemo
/webdb/src/init.sql
UTF-8
601
3.046875
3
[ "BSD-3-Clause" ]
permissive
CREATE OR REPLACE DATABASE webdemo; CREATE OR REPLACE USER 'webdemo'@'%' IDENTIFIED BY 'webdemo!'; GRANT ALL PRIVILEGES ON webdemo.* TO 'webdemo'@'%'; FLUSH PRIVILEGES; USE webdemo; CREATE OR REPLACE TABLE `bookstore` ( `id` int(11) NOT NULL AUTO_INCREMENT, `isbn` varchar(16) DEFAULT NULL, `title` varchar(100)...
true
1462ddf6060f537a2e48eddb39446b70ea71cf48
SQL
EdilaneS/BancoDeDadosMySQL
/Banco de dados/banco Rh.sql
UTF-8
995
2.6875
3
[]
no_license
create database db_Rh; use db_Rh; create table tb_funcionarios( id bigint(5) primary key auto_increment, nome varchar(50), rg varchar(50), cpf varchar(50), salario decimal(10,2) ); insert into tb_funcionarios (nome,rg,cpf,salario) values ("Carlos","65478392-7","986.867.094-16",2500.00); ...
true
df193bb4f5fa012a2865bdfef1c3ab89fb40393d
SQL
marcusgram/7381792102112121
/administration/memory/pga/PGA_allocation.sql
UTF-8
231
2.609375
3
[]
no_license
column name format a30 column value format 999,999,999,999 column unit format a10 set linesize 150 set head on select name, value, unit from v$pgastat where name in ('aggregate PGA target parameter','maximum PGA allocated');
true
8b5e05a83f56787f5b78037023f6d8a4c9ff154b
SQL
BlockMura/lesson2
/media2.sql
UTF-8
1,729
3.078125
3
[]
no_license
DROP TABLE IF EXISTS video; CREATE TABLE video ( id SERIAL PRIMARY KEY, name VARCHAR(255) COMMENT 'Название файла', class_at VARCHAR(255) COMMENT 'формат файла', host_id VARCHAR(255) COMMENT 'владелец файла', size_ar VARCHAR(255) COMMENT 'размер файла', created_at DATETIME DEFAULT CURRENT_TIMESTAMP, updat...
true
ce9eed7b620c17a408b056dc90ae372ef5a38e64
SQL
fnoorman/core-hafiz
/coredb_2015-09-05.sql
UTF-8
10,544
3.046875
3
[ "BSD-3-Clause" ]
permissive
# ************************************************************ # Sequel Pro SQL dump # Version 4096 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: localhost (MySQL 5.6.26) # Database: coredb # Generation Time: 2015-09-05 11:35:17 +0000 # **************************************************...
true
aea9216908d38685b98292d7033851b2cf48de8d
SQL
EdgarMueller1964/graphqlioapplication
/src/main/resources/data-h2.sql
UTF-8
789
2.8125
3
[]
no_license
DROP TABLE Route; CREATE TABLE Route (ID INT PRIMARY KEY , flight_number VARCHAR(255) , departure varchar(255) , destination varchar(255) , disabled varchar(255) , signature UUID , booking_date date); insert into route(id, flight_Number, departure, destination, disabled, signature, booking_date) VALUES (1, 'LH7902'...
true
149aec25e6bee1f7bc7609aa0df7a6b750277a2e
SQL
just-coding-0/learn_example
/micro_service/zero/rpc/model/history.sql
UTF-8
257
2.609375
3
[]
no_license
CREATE TABLE `history` ( `msg` varchar(255) NOT NULL, `last_echo` datetime(0) NOT NULL , `times` bigint UNSIGNED NOT NULL, PRIMARY KEY (`msg`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
true
06dd43eb548080b7e3794351818b3f13718d49a1
SQL
lzcj4/Game28Server
/game.sql
UTF-8
1,155
2.578125
3
[]
no_license
DROP TABLE IF EXISTS `tb_crazy28`; CREATE TABLE `tb_crazy28` ( `id` int(11) NOT NULL auto_increment, `r_id` int(11) NOT NULL, `r_date` datetime NOT NULL, `r_value` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `ind_crazy28` (`r_id`,`r_date`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tb_kor...
true
d67bdd13fb963380c456e5544ad98758e958e21b
SQL
yeyuer/sistemaJAG
/scriptBD/historial/JAG_rev_desconocida.sql
UTF-8
50,887
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 14, 2014 at 05:01 pm -- 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
e683ccb6c9d3df0c8b531a3f1640eebcee722e43
SQL
rafamerola/MyTestFinish
/mytest.sql
UTF-8
1,767
3.140625
3
[]
no_license
-- -------------------------------------------------------- -- Servidor: 127.0.0.1 -- Versão do servidor: 5.7.19 - MySQL Community Server (GPL) -- OS do Servidor: Win64 -- HeidiSQL Versão: 9.4.0.5125 -- -------------------------------------------------------- /*...
true
2145d036f337537046165dd69540815dae46b0e0
SQL
Stanislav-vsv/Oracle
/Запросы/Время работы потоков.sql
WINDOWS-1251
2,922
3.46875
3
[]
no_license
WITH T1 AS (SELECT WORKFLOW_NAME, ROUND(SUM(TIMES),2) AS ___I_ FROM ( SELECT WORKFLOW_NAME, (END_TIME - START_TIME)*1440/60*60 AS TIMES FROM monitoring.mon_infa_workflows WHERE SERVER_NAME ='INT_EX_PRE' AND SUBJ_NAME = 'DMSFR' AND START_TIME BETW...
true
cabdb87c3f7d9ecd5b81c7e9583a30b9085651c6
SQL
Achilik/holbertonschool-higher_level_programming-6
/0x0E-SQL_more_queries/15-comedy_only.sql
UTF-8
238
3.609375
4
[]
no_license
-- list all comedy shows SELECT tv_shows.title FROM tv_shows LEFT JOIN tv_show_genres ON tv_shows.id=tv_show_genres.show_id LEFT JOIN tv_genres ON tv_show_genres.genre_id=tv_genres.id WHERE tv_genres.name="Comedy" ORDER BY tv_shows.title
true
5972eaf940d0ff3b01907dd894f6e8bf865491b3
SQL
huazhengqing/bewin_backend
/sql_datav/show.sql
UTF-8
550
3.609375
4
[]
no_license
SELECT f_symbol,f_ex1_name,f_ex1_bid,FROM_UNIXTIME(f_ex1_ts/1000, '%T') as f_ex1_ts,f_ex1_fee,f_ex2_name,f_ex2_ask,FROM_UNIXTIME(f_ex2_ts/1000, '%T') as f_ex2_ts,f_ex2_fee,FROM_UNIXTIME(f_ts/1000, '%T') as f_ts,convert(f_spread, decimal(16, 8)) as f_spread,convert(f_fee, decimal(16, 8)) as f_fee,convert(f_profit, dec...
true
a1aa5a6da415e71da35c71fd26cb40b2b8991b59
SQL
ledbagholberton/holbertonschool-higher_level_programming
/0x0D-SQL_introduction/10-top_score.sql
UTF-8
153
2.515625
3
[]
no_license
-- list score & name rows of the table orderedby score -- database name come in Command line SELECT score, name FROM second_table ORDER BY score DESC;
true
6d9d0d42470670695560fc332e4afe40c78c5f86
SQL
joshuaskatz/fish-db-sequelize
/schema.sql
UTF-8
2,882
3.4375
3
[]
no_license
CREATE TABLE "public"."User" ( id SERIAL PRIMARY KEY NOT NULL, name VARCHAR(255) NOT NULL, email VARCHAR(255) UNIQUE NOT NULL, password VARCHAR(20) NOT NULL ); CREATE TABLE "public"."Profile" ( id SERIAL PRIMARY KEY NOT NULL, bio TEXT, location VARCHAR(250), "userId" INTEGER UNIQUE NOT ...
true
9f1fe5d6038e2a3b46bc1f73df08ec63bc8e7de7
SQL
andyarnell/cci_connectivity
/sql/connectivity_cci_2015_intern_buffer_hansen_by_sp.sql
UTF-8
4,384
3.5625
4
[]
no_license
--AIM: Make species EOO,ESH and range-rarity (national) maps based on a grid covering the area of interest (aoi) This has been used for landshift results for africa paper with kassel University ---set path for sql processing to act on tables in a specific schema within the database (normally defaults to public otherw...
true
84eaa367fda1bf6170e5ef2b8affdde8f47ff760
SQL
liwen666/lw_code
/tempcode/src/main/java/commons/execscript/sql/spf/common/common_532_.sql
UTF-8
708
2.578125
3
[]
no_license
DECLARE begin EXECUTE IMMEDIATE Q'/CREATE OR REPLACE VIEW SPF_V_SPFPMAINEJ AS SELECT PM.SPFNAME, PM.CREATETIME, PM.FIRAGENCYID, PM.PROJTYPEID, PM.PROJECTID, PM.SPFID, PM.PROJNAME, PM.PROJGROUP_NAME, PM.PROJCODE, PM.AGENCYNAME, PM.EXPFUNCID, PM...
true
d044ebc0fd962719739dae24807e8498d5cbcfc6
SQL
schimanoski/PL-SQL
/grup_by_acessos.sql
UTF-8
190
3.453125
3
[]
no_license
SELECT COUNT(1) ACESSOS, P.NOME, EQ.DESCRICAO FROM EVENTOS_ACESSOS E JOIN PESSOAS P ON P.ID = E.PESSOA_ID JOIN EQUIPAMENTOS EQ ON E.EQUIPAMENTO_ID = EQ.ID GROUP BY EQ.ID,EQ.DESCRICAO, P.NOME
true
bb466f6d6923359cbf405f4b8deb4db812acbf85
SQL
imabijith/emergencyRouting
/projbackend/database/accidents.sql
UTF-8
324
2.796875
3
[]
no_license
create table accidents( id serial primary key, station_id int references trafficoffices(gid), ambulance_route_id int references ambulanceroutes(id), accident_location geometry not null, hospital_location geometry, reported_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP, isRead boolean DEFAULT fal...
true
cc4c4557a80f5abded765f820d2a4f35b8e07083
SQL
FedericoRocca/PracticasLabIII
/TP Funciones de resumen/Funciones de resumen.sql
ISO-8859-1
5,914
4.15625
4
[]
no_license
-- 1) La cantidad de socios. select count(*) from Socios; -- 2) La cantidad de socios que se identifican con el sexo femenino (XLS). select count(*) from Socios where Socios.Genero = 'F' -- 3) La cantidad de socios que nacieron en el ao 1990. select count(*) from Socios where Year(Socios.FechaNacimiento) = 1990 -- 4...
true
e827434dd92c8e1de930df8451281155ba498d5a
SQL
KNIGHTTH0R/college-jasmine-laundry
/db_jasmine_laundry.sql
UTF-8
9,299
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 30 Jul 2018 pada 17.14 -- Versi Server: 10.1.28-MariaDB -- PHP Version: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true