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
b5cdff6ac19492ca7d636e4fac130aafbe59b2c7
SQL
luzzetti/HackerRank_Solutions
/SQL/03 - Aggregation/16 - [Medium] - Weather Observation Station 20.sql
UTF-8
497
3.75
4
[]
no_license
-- Autore: Christian Luzzetti -- Mail: Christian.luzzetti@gmail.com -- HackerRank: https://www.hackerrank.com/Cinghiamenisco /* EASY WAY select round(median(so.lat_n),4) from station so ; */ select round(avg("lat"),4) from ( select lat_n as "lat" ,(row_number() OVER (ORDER BY lat_n)) as "num" ...
true
feb315acd8ba8178d4d0d6cf88017837152dbd29
SQL
vishalchitrala2020/BikeStores
/BikeStores/BikeStores/Customers.sql
UTF-8
533
2.875
3
[]
no_license
CREATE TABLE [sales].[customers]( [customer_id] [int] IDENTITY(1,1) NOT NULL, [first_name] [varchar](255) NOT NULL, [last_name] [varchar](255) NOT NULL, [phone] [varchar](25) NULL, [email] [varchar](255) NOT NULL, [street] [varchar](255) NULL, [city] [varchar](50) NULL, [state] [varchar](25) NULL, [zip_code] ...
true
7f46be1ac15dcd52f6b48c61d4b59f56a186a006
SQL
FilipKittnar/rescript-example-app
/back-end/src/liquibase/liquibase-changelog.sql
UTF-8
904
3.140625
3
[]
no_license
--liquibase formatted sql --changeset kittnarf:todo-create-01 CREATE TABLE todo( id uuid primary key not null, description text not null, completed boolean default false ) --rollback drop table todo; --changeset kittnarf:todo-insert-01 insert into todo (id, description) values ('cfba3b8e-4fe2-4436-ac9b-...
true
1fd92fb98accffd5b9b9e9a7a78154813a5c5c5d
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day16/select1515.sql
UTF-8
178
2.640625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-15T15:15:00Z' AND timestamp<'2017-11-16T15:15:00Z' AND temperature>=13 AND temperature<=88
true
0489aac02ed1ba35d7d48ee1a70594467ffb8398
SQL
lcs559/doris-benchmark
/resource/ssb_test/sql/query/ssb-flat/q13.sql
UTF-8
360
3.515625
4
[]
no_license
--Q4.3 SELECT (LO_ORDERDATE DIV 10000) AS year, S_CITY, P_BRAND, sum(LO_REVENUE - LO_SUPPLYCOST) AS profit FROM lineorder_flat WHERE S_NATION = 'UNITED STATES' AND LO_ORDERDATE >= 19970101 and LO_ORDERDATE <= 19981231 AND P_CATEGORY = 'MFGR#14' GROUP BY year, S_CITY, P_BRAND ORDER BY yea...
true
d37823e91eab2acc7ed9048722ec19306d7cf944
SQL
ashishbijlani/npm-analysis
/sql-queries/dependentsByPopularity.sql
UTF-8
632
3.5
4
[ "MIT" ]
permissive
SELECT name,version FROM packages SELECT PV.name, PV.version FROM (SELECT A.package FROM (SELECT package FROM dependencies WHERE name = "fullname") as A INNER JOIN (SELECT package FROM popularity ...
true
e87d633da1aff7c882cacfa54c9008bec23f6000
SQL
zhangtao0509/chatbot
/src/main/resources/sql/chatbot.sql
UTF-8
2,579
3.421875
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50721 Source Host : localhost:3306 Source Schema : chatbot Target Server Type : MySQL Target Server Version : 50721 File Encoding : 65001 Date: 18/05/2020 00...
true
22b0b13e4094b82eeff725f9e08904d9452edf1c
SQL
ShruKin/Database-Management-Systems-Lab
/WEEK-10/9.sql
UTF-8
96
2.65625
3
[ "MIT" ]
permissive
select l_name, job_type, salary from employee where salary = (select min(salary) from employee);
true
b5f3f4f3a9a26d8e5abdae6bc53709ff1f6f1572
SQL
jmarquezm/PortalElectiva
/Portal/rrhh20161104.sql
UTF-8
4,778
2.84375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.24, for Win64 (x86_64) -- -- Host: localhost Database: proceso_rrhh -- ------------------------------------------------------ -- Server version 5.6.25-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
true
803edec3f80cf85711f443582069f4084db9474d
SQL
bernieOllie/audit-trigger
/example.sql
UTF-8
2,695
3.6875
4
[ "BSD-3-Clause", "PostgreSQL" ]
permissive
CREATE SCHEMA example_factory; REVOKE ALL ON SCHEMA example_factory FROM public; COMMENT ON SCHEMA example_factory IS 'Example schema of a make-believe factory, for the sake of testing auditing of weak entities'; CREATE TABLE example_factory.formula ( id bigserial primary key, expression text not null ); REV...
true
ada4e75bc10c1f918d7912c94f41d750e3a45ef1
SQL
20wash-sharma/ParkingTicketFightingApp
/database/parkingticket.sql
UTF-8
16,809
3.046875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 08, 2015 at 12:38 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
9ca6881c9ca49bd08d217aa80c581c7113cfe1ea
SQL
AlexEBean/MySQL-Refresher
/s8-refining-selections/LIKE-2.sql
UTF-8
477
3.359375
3
[]
no_license
SELECT title, stock_quantity FROM books WHERE stock_quantity LIKE '__'; -- This is looking for where stock_quantity is two characters long, or in this case, two digits LIKE '(___)___-____'; -- This would work for finding phone numbers specifically SELECT title FROM books WHERE title LIKE '%\%%'; -- This is how you...
true
93cb3d5143f705ecf37d4ac3e8d2b8762088805b
SQL
fishg92/FrameworkDB
/Stored Procedures/Procs1/DeleteClientCaseJoin.sql
UTF-8
279
2.578125
3
[]
no_license
CREATE PROCEDURE [api].[DeleteClientCaseJoin] @CaseID decimal ,@ClientID decimal ,@LUPUser varchar(50) AS EXEC dbo.SetAuditDataContext @AuditUser = @LUPUser, @AuditMachine = 'WebAPI' DELETE CPJoinClientClientCase WHERE fkCPClient = @ClientID AND fkCPClientCase = @CaseID
true
fe93bfb9ae96605055edf497e905b36d7c0d8f44
SQL
muhammadfarhan26/IFIK4101_SistemPemesenanTiketEvent
/IFIK_41_01_TiketEvent.SQL
UTF-8
1,547
3.09375
3
[]
no_license
CREATE TABLE Pembayaran ( id_pembayaran VARCHAR2(6) NOT NULL, status_pembayaran VARCHAR2(6) NOT NULL, harga_tiket REAL NOT NULL ); ALTER TABLE Pembayaran ADD CONSTRAINT Pembayaran_pk PRIMARY KEY ( id_pembayaran ); CREATE TABLE user ( id_user VARC...
true
a94836a6f3eada5798f2009fbd931b1fcc22ccd2
SQL
KashchenkoP/docker-airflow
/sql/import_stats_by_companies_hscodes.sql
UTF-8
975
4
4
[ "Apache-2.0" ]
permissive
DROP TABLE IF EXISTS import_stat_by_hscodes_and_companies; CREATE TABLE import_stat_by_hscodes_and_companies AS SELECT MD5(concat_ws('', t1.src, t1.importer_company_id)) as hashed_id, MAX(t1.importer_company_id) as `importer_company_id`, SUBSTR(t1.hscode,1,6) as `hscode_on_6`, SUM(t1.volume_usd) as t...
true
9396f01ef27a63edfc04bc7a7ba01b7ee2f19de4
SQL
poliver24/Bookmark_Manager
/db/migrations/01_create_bookmarks_table.sql
UTF-8
411
3.421875
3
[]
no_license
CREATE TABLE bookmarks(id SERIAL PRIMARY KEY, url VARCHAR(60)); # create table with 1 column ALTER TABLE bookmarks ADD COLUMN title VARCHAR(60); # add column for URL title CREATE TABLE comments ( id SERIAL PRIMARY KEY, text VARCHAR(240), bookmark_id INTEGER REFERENCES bookmarks (id) ); CREATE TABLE bookmark...
true
f4af4452e689139f18e7adb8166eb11179832fae
SQL
Shu52/RecordLabelCreateTable
/musicHistory.sql
UTF-8
4,661
4.375
4
[]
no_license
SELECT Label FROM GENRE; SELECT * FROM Artist; INSERT INTO Artist (ArtistName, YearEstablished) VALUES ("Jordan's Bluegrass Band",1990); SELECT * FROM Artist WHERE ArtistName = "Jisie" OR ArtistName Like "jordan%"; SELECT a.Title, s.Title FROM Album a LEFT JOIN Song s ON s.AlbumId = a.AlbumId; SELEC...
true
0b0ac41767dbd3b79d1a7842774a92e26ad736fc
SQL
yaya967/Hotel_Reservation_DeskTop_App_Java
/Database/functions.sql
UTF-8
3,699
3.421875
3
[ "MIT" ]
permissive
-------------------------------------------------------- -- File created - Wednesday-February-22-2017 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Function CHECKOUT -------------------------------------------------------- CREATE OR ...
true
da0f7136421276896fb1b5e22cac325ca2df57e5
SQL
JavaCodeMood/Spring-Boot9
/src/main/resources/doc/message.sql
UTF-8
1,120
2.78125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : MySql Source Server Version : 50546 Source Host : localhost:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50546 File Encoding : 65001 Date: 2017-03-06 10:57:26 */ SET FOREIGN_KEY_CHECKS=...
true
0d5aaa444062bc6ad3e13ae7c3515fee35810c83
SQL
parkseoeun5322/Class_Example
/Web/02.MVC/WebContent/WEB-INF/classes/com/hanul/study/member.sql
UTF-8
395
2.703125
3
[]
no_license
-- Eclipse와 DB 연동이 안될 경우에는 -- D:\Study_Web\workspace\.metadata\.plugins\org.eclipse.datatools.sqltools.result -- 폴더 안의 모든 파일을 삭제한 후, Eclipse Restart --테이블 생성 create table member( name varchar2(20), id varchar2(20), pw varchar2(20), age number, addr varchar2(50), tel varchar2(20) ); --전체 레코드 검색 select * from mem...
true
bdb8f856758b082e974e632399f34c38589919ff
SQL
jimmyalf/temp
/Spinit.Wpc.Synologen.Database/dbo/Stored Procedures/spContGetTreeBaseGroupsRec.sql
UTF-8
227
2.5625
3
[]
no_license
 CREATE PROCEDURE spContGetTreeBaseGroupsRec @treId INT, @status INT OUTPUT AS BEGIN SELECT cTreId, cBseGrpId FROM sfContGetTreeBaseGroupsRec (@treId) SELECT @status = @@ERROR END
true
67b4dbeec3bb09e87c669328062c94e68fd75b2a
SQL
godfreydlamini/my_company_database
/payments.sql
UTF-8
500
3.15625
3
[]
no_license
CREATE DATABASE payments; CREATE TABLE payments( customer_id INTEGER, payment_id SERIAL PRIMARY KEY, payment_date DATE, amount DECIMAL, FOREIGN KEY(customer_id) REFERENCES customers(customer_id) ); INSERT INTO payments ( customer_id, payment_date, amount, ) VALUES (...
true
bdadf0029749c013f371d4aace23abf07f868aec
SQL
jasarsoft/fit-src
/bp2/vjezbe_pdf/bp2_vj05pdf_zadatak06.sql
WINDOWS-1250
1,795
4.25
4
[ "MIT" ]
permissive
/* Vjezbe 5 Zadatak 6 AdventureWorks2014 Kreirati upit koji prikazuje podatke o zaposlenicima. Lista treba da sadrzi sljedece kolone: ime i prezime zaposlenika (spojeno), korisnicko ime, novu lozinku, starost i staz zaposlenika. Uslovi su sljedeci: - Za korisnicko ime potrebno je koristiti kolonu LoginID (tabe...
true
38aafd2ccf159c08a3a658cdd45eb70c9d8a91da
SQL
donghae/final_project
/SPRING_Project_Final/src/main/webapp/resources/video/스프링+안드로이드+연동_2018_07_31_064825.sql
UHC
4,044
3.46875
3
[]
no_license
-- ȵ̵ -- 1. SYSTEM ۾Ѵ. -- 2. ϱ --CREATE USER ≮> IDENTIFIED BY <йȣ> DEFAULT TABLESPACE USERS; CREATE USER android IDENTIFIED BY tiger DEFAULT TABLESPACE USERS; --3. ο --GRANT CONNECT, RESOURCE TO ≮>; GRANT CONNECT, RESOURCE TO android; --4 --ALTER USER ≮> ACCOUNT UNLOCK; ALTER USER android A...
true
4115150eb1ca11eae52d9d4b0b27d7592c52b3db
SQL
isurfer21/Adrikrt
/db.sql
UTF-8
572
2.953125
3
[ "MIT" ]
permissive
-- Adminer 4.2.5 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP TABLE IF EXISTS `accounts`; CREATE TABLE `accounts` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `Firstname` varchar(255) NOT NULL, `Lastname` varchar(255) NOT NULL, `Email...
true
094fe8a358b37a7f5179d22d63c1a3b6a67fee39
SQL
godwinleo/aws
/CommonOracleDbaTasks/Rman.sql
UTF-8
2,996
3.390625
3
[]
no_license
Common Parameters for RMAN Procedures You can use procedures in the Amazon RDS package rdsadmin.rdsadmin_rman_util to perform tasks with RMAN. Several parameters are common to the procedures in the package. The package has the following common parameters. Parameter Name Data Type Valid Values Default Required Desc...
true
80cce65ba95e5ba4179dd2c577a588c8611fb83d
SQL
davlxd/openworkshop-go
/core/src/main/resources/db-schema.sql
UTF-8
228
2.921875
3
[]
no_license
drop table USER if exists; CREATE TABLE USER ( ID int GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL, NAME varchar(100), PASSWORD varchar(100), EMAIL varchar(100), AGE int not null, PRIMARY KEY (ID) );
true
c1cfabcb797dda0c4995836a87153774265e85cc
SQL
alexandrelolzinh0123/web2
/var/webroot/uploads/files/login_db.sql
UTF-8
3,874
3.171875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.54, for debian-linux-gnu (i686) -- -- Host: localhost Database: login_db -- ------------------------------------------------------ -- Server version 5.5.54-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CH...
true
b998f9939de36753c3f574c62024f12cf21cc0b7
SQL
acignetti/MPf2f-ws
/sql/procedures/MPF2F_UserGet.sql
UTF-8
403
2.671875
3
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS `MPF2F_UserGet`$$ CREATE PROCEDURE `MPF2F_UserGet`( /* =================================================== Nombre: MPF2F_UserGet Descripción: Comentarios: Autores: Cavecedo, Gabriel A. Audit Trail: =================================================== */ _user VARCHAR(100) ) B...
true
41f07ef6147d6ac2c895e7e684956807b30f1b96
SQL
allaprotopopova/sky
/src/main/resources/schema.sql
UTF-8
477
3.390625
3
[]
no_license
DROP TABLE collocations IF EXISTS; DROP SEQUENCE global_seq IF EXISTS; CREATE SEQUENCE GLOBAL_SEQ AS INTEGER START WITH 100000; CREATE TABLE collocations ( id INTEGER GENERATED BY DEFAULT AS SEQUENCE GLOBAL_SEQ PRIMARY KEY, mainword VARCHAR(255) NOT NULL, pair...
true
82da20c4b26c242c7ba5d5f27921272f9c383253
SQL
michyliao/webportal_sapient
/SQL Scripts/Stored Procedures/find statements/find_portal.sql
UTF-8
445
3.1875
3
[]
no_license
CREATE OR REPLACE PROCEDURE find_portal ( portal_name IN Portal.name%TYPE, out_id OUT Portal.portal_id%TYPE, out_name OUT Portal.name%TYPE, out_total_donation OUT Portal.total_donation%TYPE ) IS BEGIN select portal_id, name, total_donation into out_id, out_name, out_total_donation from portal where name = ...
true
9e2c901aeab30b9ac47c56827dc26d1f0157a848
SQL
marcinrogacki/magento-quiz-api
/app/question/sql/mysql/answer.sql
UTF-8
307
3.234375
3
[ "MIT" ]
permissive
CREATE TABLE answer ( id INT(10) AUTO_INCREMENT, question_id int(10) NOT NULL, value TEXT NOT NULL, is_valid TINYINT(1), PRIMARY KEY (id), CONSTRAINT FK_ANSWER_QUESTION FOREIGN KEY (question_id) REFERENCES question (id) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
true
39d8d9caa3e462eea6e7650eb253f668fb8ff4e7
SQL
Gudang-Source/sistemManajemenPenjualan
/db_manajemenpenjualan.sql
UTF-8
21,748
2.828125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 07, 2020 at 05:25 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
91dcdf07e2ab5064f2daf9a311f818031a6468c7
SQL
eight9080/springh2
/src/main/resources/db/migration/20170706151409978__init.sql
UTF-8
377
2.734375
3
[]
no_license
drop table STUDENT if exists; drop sequence hibernate_sequence if exists; create table STUDENT( id bigint not null primary key, name varchar_ignorecase(52) not null, passport_number varchar_ignorecase(55) not null ); CREATE SEQUENCE hibernate_sequence; insert into student values(10001,'Ranga2', 'E1234567')...
true
371d9f30f059671daf58c70cd6e5263ce7e5770e
SQL
phi314/clefable
/db/contoh/contoh_koperasi.sql
UTF-8
12,086
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 02, 2013 at 05:20 AM -- Server version: 5.5.25 -- PHP Version: 5.4.4 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
d3d42730826f1f4841d539691807b43be9b8bc05
SQL
NCIP/catissue-core
/software/caTissue/db/db-install/Oracle/alterqueries.sql
UTF-8
3,832
3.5
4
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- rename old column in DYEXTN_CONTAINER ALTER TABLE DYEXTN_CONTAINER RENAME COLUMN ENTITY_ID to ABSTRACT_ENTITY_ID; --Add new column to DYEXTN_CONTAINER ALTER TABLE DYEXTN_CONTAINER ADD (ADD_CAPTION number(1,0)); --Update column set all value to 1 UPDATE DYEXTN_CONTAINER SET ADD_CAPTION = 1; -- Insert ...
true
c293b325b9275398191487160a34c09c25359519
SQL
jworkman119/HTC
/Anastazi/clientsUninsured.sql
UTF-8
631
3.375
3
[]
no_license
Select Client.ID , Upper(Left(Client.LAST_NAME,1)) + Lower(Right(Client.LAST_NAME, len(Client.LAST_NAME) -1)) + ', ' + Upper(Left(Client.FIRST_NAME,1)) + Lower(Right(Client.FIRST_NAME, len(Client.FIRST_NAME) -1)) as Client , Convert(varchar(10),ClientService.BEG_DATE,101) as Date from CDCLIENT as Client Join ...
true
557a96f2cf4efbcfb1be70f94b4e76e47471689d
SQL
LeeTann/PERN-Yelp
/server/db/db.sql
UTF-8
1,350
4.15625
4
[]
no_license
CREATE TABLE restaurants ( id BIGSERIAL NOT NULL PRIMARY KEY, name VARCHAR(50) NOT NULL, location VARCHAR(50) NOT NULL, price_range INT NOT NULL CHECK(price_range >=1 and price_range <=5) ); // Crud operations SELECT * FROM restaurants; SELECT * FROM restaurants WHERE id = 1; INSERT INTO restaurants (name, l...
true
17d5ff9c3d2663dad4d8a700f1b38deeca6f49d1
SQL
knuber/hc_comp
/SQL/DB2/DB2 for i/VDHH_EXPANSION.sql
UTF-8
990
3.765625
4
[]
no_license
CREATE FUNCTION FVDHE() RETURNS TABLE( ROOT_VW VARCHAR(255), LVL VARCHAR(255), CKEY VARCHAR(255), TABLE_TEXT VARCHAR(255), LAST_ALTERED_TIMESTAMP VARCHAR(255), CVW VARCHAR(255), CLIB VARCHAR(255) ) BEGIN RETURN WITH RECURSIVE DH ( MVW, MLIB, PLIB , PVW , CLIB, CVW, CKEY, LVL) AS ( SELECT PLIB, PVW, ...
true
2065128babd4b24280587d534f6b113c5ad37f5c
SQL
xiaoshuishuihuohuo/blog
/t_articles.sql
UTF-8
1,417
3.265625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : mysql Source Server Version : 50552 Source Host : 192.168.1.5:3306 Source Database : blog Target Server Type : MYSQL Target Server Version : 50552 File Encoding : 65001 Date: 2016-12-05 15:35:02 */ SET FOREIGN_KEY_CHECKS=0; -- ------...
true
524b25518ad19c50e0df0a76213e7cefaefae7bf
SQL
mwidner/socialsaver
/lunchtime.media.mit.edu/lunchtime/techcash/mobi/page_builder/migrate_page_views_1.SQL
UTF-8
65,182
2.6875
3
[]
no_license
DROP TABLE PageViews; CREATE TABLE PageViews ( day DATE, name CHAR(50) NOT NULL, count INT(6) NOT NULL ) ; INSERT INTO PageViews (day, name, count) VALUES ('2008-08-06', 'home', 1); INSERT INTO PageViews (day, name, count) VALUES ('2008-08-06', 'people', 2); INSERT INTO PageViews (day, name, cou...
true
cc70261d5b991320b209890786f0a344b84b182b
SQL
hayzee/microblog_old
/db.sql
UTF-8
1,557
4.03125
4
[]
no_license
drop table followers; drop table posts; drop table users; CREATE TABLE "MEGA"."USERS" ( "ID" INTEGER GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1) NOT NULL ENABLE, "USERNAME" VARCHAR2(64 CHAR), "EMAIL" VARCHAR2(120 CHAR), "PASSWORD_HASH" VARCHAR2(128 CHAR), about_me varchar2(140) PRIMAR...
true
5fd8e3bb2eb558111ff384b47359150a2e2a7775
SQL
anibal362/sportclub
/sp.sql
UTF-8
6,248
3.640625
4
[]
no_license
DROP SCHEMA IF EXISTS sportclub; CREATE SCHEMA sportclub COLLATE = utf8_general_ci; USE sportclub; CREATE TABLE IF NOT EXISTS `courts` ( `court_id` bigint(20) NOT NULL AUTO_INCREMENT, `type` varchar(50) NOT NULL, `image` varchar(255) NOT NULL, `price` decimal(5,2) NOT NULL, `score` bigint(20) NOT NULL, ...
true
c015a1a1a9bf14347d95b862e6a76a49c2006275
SQL
YudhaDwipriatma/yudhaciprojek
/db_onlineshop.sql
UTF-8
5,711
3.03125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 28, 2019 at 08:02 AM -- Server version: 10.1.25-MariaDB -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
0eb3b9ec8a47933928db85488e34438e9715fc6f
SQL
radtek/abs3
/sql/mmfo/bars/View/v_ow_pkkque.sql
WINDOWS-1251
3,061
3
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/View/V_OW_PKKQUE.sql =========*** Run *** == PROMPT ===================================================================================== PROMPT *** Create view V_OW...
true
e4bad1031d29f37d207a9bbfa41603715a0696b8
SQL
looksue/burger
/db/schema.sql
UTF-8
205
2.59375
3
[]
no_license
CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE burgers ( burgers_id int NOT NULL AUTO_INCREMENT, burger_name varchar(255) NOT NULL, devoured boolean, PRIMARY KEY (burgers_id) );
true
132c6955413b09de5ce590ab31a78f93759ae524
SQL
Ahmedelhamzawy/Assignment4-sql
/design.sql
UTF-8
854
3.515625
4
[]
no_license
CREATE TABLE governorates( id int UNSIGNED NOT NULL AUTO_INCREMENT, name varchar(255) NOT NULL, PRIMARY KEY(id) ) CREATE TABLE stores( id int UNSIGNED NOT NULL AUTO_INCREMENT, name varchar(255) NOT NULL, address varchar(255) NOT NULL UNIQUE, store_id int UNSIGNED NOT NULL, PRIMARY KEY(id), FOREIG...
true
3a9e97297a5a1f943a38ed4cacebd5adfcb5f03e
SQL
Bhashi96/Group-project
/database.sql
UTF-8
16,901
3.6875
4
[]
no_license
DROP DATABASE if EXISTS travel_freak_new; CREATE DATABASE travel_freak_new; USE travel_freak_new; DROP TABLE if EXISTS admin_info; CREATE TABLE admin_info (admin_id CHAR(5) NOT NULL, user_name VARCHAR(10) NOT NULL, admin_password CHAR(10) NOT NULL, full_name VARCHAR(50), email VARCHAR(50), contact_no VARCHAR(15), PRIM...
true
7e53d20b5d801d2a58c04c908d9a4c099a55cb16
SQL
yaronkoren/Cargo-old
/Cargo.sql
UTF-8
534
2.625
3
[]
no_license
CREATE TABLE /*_*/cargo_tables ( template_id int NOT NULL, main_table varchar(200) NOT NULL, field_tables varchar(200) NOT NULL, table_schema varchar(600) NOT NULL ) /*$wgDBTableOptions*/; CREATE UNIQUE INDEX cargo_tables_template_id ON /*_*/cargo_tables (template_id); CREATE UNIQUE INDEX cargo_tables_main_table O...
true
4e49e7379b3e4fc2d109478872fad1c3cd642423
SQL
bluebibi/spring-boot-bootstrap
/ext-resource/user-simple.sql
UTF-8
1,459
2.765625
3
[]
no_license
# Dump of table authorities # ------------------------------------------------------------ DROP TABLE IF EXISTS `authorities`; CREATE TABLE `authorities` ( `username` varchar(256) DEFAULT NULL, `authority` varchar(256) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `authorities` WRITE; /*!40000 ...
true
10ed253ce1cfff93712f9cbd6a88c8428ff165b9
SQL
poc-z-cloud/poc-boot-web
/h2/dictionary.ddl
UTF-8
512
3.09375
3
[]
no_license
CREATE TABLE ENTRY ( ID BIGINT IDENTITY not null, WORD VARCHAR_IGNORECASE (128) NOT NULL, EXPLANATION varchar (8000), MEDIA_PATH varchar (256), primary key (ID) ); CREATE INDEX I_ENTRY_WORD ON ENTRY(WORD); CREATE TABLE EXAMPLE ( ID BIGINT IDENTITY not null, SENTENCE VARCHAR_IGNORECASE (1000) NOT NULL,...
true
8e918061e39ee5c3ff2488d1895417e32dc7ddae
SQL
ferkopar/ESRemote
/obh_test/APEX_MENU_TEMP_CONSTRAINT.sql
UTF-8
678
3.03125
3
[]
no_license
-------------------------------------------------------- -- Constraints for Table APEX_MENU_TEMP -------------------------------------------------------- ALTER TABLE "APEX_MENU_TEMP" ADD CONSTRAINT "APEX_MENU_TEMP_PK" PRIMARY KEY ("USER_ID", "TYPE_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATIS...
true
88a4f443f443a8593046efc5ad1ab7b021ae5a2a
SQL
xuther/timeclock
/queries.sql
UTF-8
434
2.953125
3
[ "MIT" ]
permissive
CREATE TABLE `users` ( `uid` INTEGER PRIMARY KEY AUTOINCREMENT, `username` VARCHAR(64) NULL, `password` VARCHAR(64) NULL, `status` BOOLEAN ); CREATE TABLE `punches` ( `pid` INTEGER PRIMARY KEY AUTOINCREMENT, `uid` INTEGER NULL, `in` TIMESTAMP NULL, `out` TIMESTAMP NULL, `duration` I...
true
b648cc3c38c1d39fd65fd538bcb3fa54164ed0cd
SQL
cyisfor/story-generator
/src/schema.sql
UTF-8
1,631
3.96875
4
[]
no_license
CREATE TABLE IF NOT EXISTS categories ( id INTEGER PRIMARY KEY, category TEXT NOT NULL UNIQUE, updated INTEGER NOT NULL DEFAULT 0); CREATE TABLE IF NOT EXISTS committing ( -- NULLs okay -- we can't use after/before as a primary key, before they can't be NULL then b/c sqlite sux after INTEGER, befor...
true
f46e2e2a04e31e2bca20d351d4e094c8518ef9d9
SQL
Isterikus/PHP-pool
/day05/ex20/ex20.sql
UTF-8
313
3.703125
4
[]
no_license
SELECT genre.id_genre 'id_genre', genre.name 'name_genre', distrib.id_distrib 'id_distrib', distrib.name 'name_distrib', film.title 'title_film' FROM film LEFT JOIN distrib ON distrib.id_distrib = film.id_distrib LEFT JOIN genre ON film.id_genre = genre.id_genre WHERE (genre.id_genre > 3 AND genre.id_genre < 9);
true
afb7f10c0c2f52bfbe4588e30b3a8db279f4b971
SQL
manguilar22/WebDev
/assignments/entities/role.sql
UTF-8
877
2.984375
3
[]
no_license
/* Job Roles that will be posted. */ CREATE TABLE Course ( Cid INT NOT NULL AUTO_INCREMENT, CjobTitle VARCHAR(2), CclassName VARCHAR(20), CclassCRN VARCHAR(10), PRIMARY KEY (Cid) /* Original Key: id */ ) ENGINE=Innodb; INSERT INTO Course ( CjobTitle, CclassName, CclassCRN ) VALUES ( ...
true
39d18cdfedd79467160ef38619a2343f2531171d
SQL
AfonsecaInc/Interactuando_con_bases_de_datos
/agenda_db.sql
UTF-8
3,089
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 31-05-2018 a las 17:30:57 -- Versión del servidor: 5.7.17-log -- 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_CLIENT=@@...
true
cb5cd99860de957923c66624ca97314f7edc6834
SQL
CUBRID/cubrid-testcases
/sql/_23_apricot_qa/_03_i18n/zh_CN/_01_string_date_func/cases/_004_to_timestamp.sql
UTF-8
7,451
2.859375
3
[ "BSD-3-Clause" ]
permissive
--+ holdcas on; set names utf8; set system parameters 'intl_date_lang = zh_CN'; -- to_timestamp select 'TO_TIMESTAMP( , DAY )'; SELECT TO_TIMESTAMP('2011年5月1日 星期日 10:11:12', 'yyyy-MM-DD DAY HH:MI:SS'); SELECT TO_TIMESTAMP('2011-05-01 星期日 10:11:12', 'yyyy-MM-DD DAY HH:MI:SS'); SELECT TO_TIMESTAMP('2011-05-02 星期一 10:11...
true
701c8cfc26a0f7011e52bce26849d6518493cb0b
SQL
phschwank/ClimbingTool
/data_original.sql
UTF-8
4,362
3.15625
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.10 -- Dumped by pg_dump version 9.6.10 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '',...
true
1ffbb2f60665c29833987d5930c3d88a99190be0
SQL
jamieww/workself
/Spring Boot/USoft.com/src/demo-example-grpc-parent/demo-example-grpc-dal/db/t_user.sql
UTF-8
718
3.71875
4
[]
no_license
CREATE TABLE IF NOT EXISTS t_user ( id INT NOT NULL auto_increment COMMENT '主键', code VARCHAR(20) NOT NULL COMMENT '用户编码', name varchar(20) DEFAULT '' COMMENT '用户姓名', age int(10) DEFAULT 0 COMMENT '年龄', amount DECIMAL (14, 2) DEFAULT 0 COMMENT '金额', gender INT(1) DEFAULT 0 COMMENT '性别:0.未知 1.男 2.女', birthday...
true
ea638826bc229f308bb8f5f24a0125a0ce9cb49b
SQL
hipogea/zega
/bd/public_valorimpuestos.sql
UTF-8
1,822
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.3.8 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 08-12-2015 a las 21:01:29 -- Versión del servidor: 5.5.42-37.1 -- Versión de PHP: 5.4.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
17b72480be2a48e1a160207d4f3da7c4a495effb
SQL
Agradeismine/ITP4511_1819_Assignment
/Report/ERD.sql
UTF-8
2,873
3.640625
4
[]
no_license
CREATE TABLE Account ( userId int(11) NOT NULL AUTO_INCREMENT, username varchar(25) COLLATE utf8_bin NOT NULL, password varchar(25) COLLATE utf8_bin NOT NULL, role varchar(20) COLLATE utf8_bin NOT NULL, sex char(1) COLLATE utf8_bin, district varchar(20) NOT NULL, PRIMARY KEY (userId)) DEFA...
true
2c7ba755d89b19b0764fc7c57fe331d8c8081f04
SQL
angel-aleksandrov06/SoftUni-Engineering-CSharp
/Databases Basics - MS SQL Server/Exams/Exam - 21 Jun 2020/05. EEE-Mails.sql
UTF-8
195
3.859375
4
[]
no_license
SELECT FirstName, LastName, FORMAT(BirthDate, 'MM-dd-yyyy') AS BirthDate, [Name] AS [Hometown], Email FROM Accounts a JOIN Cities c ON c.Id = a.CityId WHERE Email LIKE 'e%' ORDER BY Hometown
true
65af0f04de5f9e472b7b8f12bcb306e077770eeb
SQL
15TIA-PemrogramanFramework/Kuis2_AdeSukmaA
/kuis_1097/ade_kuis.sql
UTF-8
2,637
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: 13 Des 2017 pada 16.22 -- Versi Server: 5.7.15-log -- PHP Version: 5.6.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
215ff5f9664be7911c0a03331af03ece4aa6cf8a
SQL
IdeaUJetBrains/DockerFiles
/docker-dir/db/_dialects/oracleAll.ddl
UTF-8
2,312
2.90625
3
[]
no_license
/* https://docs.oracle.com/cd/B28359_01/server.111/b28318/datatype.htm */ CREATE TABLE BUGS_Types_table ( V_DATE DATE, V_VARCHAR2 VARCHAR2(20), V_NVARCHAR2 NVARCHAR2(20) ); CREATE TABLE LOB_table ( V_NCLOB NCLOB, V_BLOB BLOB, V_CLOB CLOB, V_BFILE BFILE ); CREATE TABLE Numeric_Types_table ( V_NUMBER NUM...
true
fae8c5998cb948627396be0262f63099d446f9dc
SQL
Bartlana/sessions
/db/inserts.sql
UTF-8
13,947
2.828125
3
[]
no_license
/******************Предметы******************/ insert into subjects (subject_name) values ('Zalupa'); insert into subjects (subject_name) values ('Polnaya Zalupa'); insert into subjects (subject_name) values ('Об''єктно-орiєнтоване програмування'); insert into subjects (subject_name) values ('Структурне та логічне про...
true
6e6ce3d25e0478d587c751270cc6747c8a603212
SQL
a-ramanan/stanford-DB5-SQL-exercises
/Movie Rating - extra set - Queries.sql
UTF-8
5,501
4.84375
5
[]
no_license
/* EXTRA SET QUESTIONS - MOVIE RATING EXERCISE - LAGUNITA STANFORD SQL COURSE */ /*Q.1. 'Lagunita Stanford SQL Course' */ /* Find the names of all reviewers who rated Gone with the Wind. */ select distinct name from reviewer, ( select rID, title from rating, movie where rating.mID = movie.mID and movie...
true
f1ff0a61ce2f9a62032281a4b0f901523e5c57d9
SQL
radtek/abs3
/sql/mmfo/bars/Table/PRVN_DEL_SD.sql
UTF-8
1,240
3.0625
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/PRVN_DEL_SD.sql ====*** Run *** ====== PROMPT ===================================================================================== exec bars.bpa.alter_policy_info( '...
true
3c06571f01a1f84728aaca87032ec8c7035960ce
SQL
mcptr/bbone-js-py
/backend/db/schema/101-views/010-geo_location.sql
UTF-8
344
3.8125
4
[]
no_license
CREATE VIEW views.geo_location AS SELECT ct.ident AS city, ct.localized_name AS localized_city, ct.code AS city_code, cnt.ident AS country, cnt.localized_name AS localized_country, cnt.code AS country_code FROM geo.cities ct LEFT JOIN geo.countries cnt ON ((ct.country_id = cnt.id)) ORDER ...
true
94e6bb6ba7df10ab0f46d08429ddad696f50428f
SQL
SatishPatruni/shoppingcart-backend
/lib/database/db-init.sql
UTF-8
660
3.4375
3
[]
no_license
CREATE USER 'shoppingcart'@'localhost' IDENTIFIED BY 'shoppingcart'; GRANT ALL PRIVILEGES ON * . * TO 'shoppingcart'@'localhost'; create database shoppingcart; use shoppingcart; CREATE TABLE `user` ( `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_name` varchar(100) NOT NULL, `password` varchar(100)...
true
3e8eba511bd45e0eed5c9cd0e3b0fd89fc2f4ba5
SQL
MaksymVakuliuk/SQL
/Lab_2/Lab2_Exercise_26_SQLQuery_MaksymVakuliuk.sql
WINDOWS-1251
571
3.734375
4
[]
no_license
/* 26) ( Publish) Publishing_house, , ( Title_book) ( City) . */ USE DB_Books SELECT Publish FROM Publishing_house INNER JOIN Books ON Books.Code_publish = Publishing_house.Code_publish WHERE Books.Title_book LIKE '%' AND Publishing_house.City = ''
true
6e5a9073ba8b71c70f3c902fe96d649dc1bebd52
SQL
BlancaCC/fundamentos-base-de-datos
/llenarTablasSPJ.sql
UTF-8
315
2.578125
3
[ "MIT" ]
permissive
DESCRIBE ventas; DESCRIBE opc.ventas; insert into proyecto (select * from opc.proyecto); insert into pieza(select * from opc.pieza) ; insert into proveedor( select * from opc.proveedor); select * from proveedor; insert into ventas ( select * from opc.ventas ); select * from opc.ventas; select * from ventas;
true
2cebdda548ff51cbc808698386d61624140d0a03
SQL
augustomilao/TCM
/bdd/cad_agenda.sql
UTF-8
3,024
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 14-Fev-2019 às 22:46 -- Versão do servidor: 10.1.31-MariaDB -- PHP Version: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
4a2d066b8ebab0945ae0605e44e9f6971c37fb60
SQL
eum123/JTheWay_BackEnd
/src/main/resources/db.sql
UTF-8
15,098
4
4
[]
no_license
-- root/djaakswls -- root/djaakswls1! -- create database CREATE DATABASE haaim_db; -- create user CREATE USER 'haaim'@'localhost' IDENTIFIED BY 'haaim01'; -- insert , update, delete etc GRANT ALL PRIVILEGES on haaim_db.* TO 'haaim'@'localhost'; FLUSH PRIVILEGES; -- sample table create table sample ( name varchar (...
true
d17e0eaf4df5ae07e3db9a844c15de6662c93aaf
SQL
Hunter3787/Saturday-Solution
/Documents/Supplementary Materials/SQL Queries for RDB Diagram/autobuildDB_P6.sql
UTF-8
5,636
3.75
4
[]
no_license
CREATE DATABASE AutoBuild_V3; USE AutoBuild_V3; DROP TABLE IF EXISTS posts; DROP TABLE IF EXISTS logs; DROP TABLE IF EXISTS sess; DROP TABLE IF EXISTS shelves; DROP TABLE IF EXISTS uploadedImages; DROP TABLE IF EXISTS userCredentials; DROP TABLE IF EXISTS buildComments; DROP TABLE IF EXISTS publishedbuilds; DROP ...
true
034323f862c7b5a1ad0702f64306305d461637e2
SQL
hi-noikiy/project
/91ns/schemas/web/20160106/pre_richer_configs.sql
UTF-8
4,000
2.8125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 192.168.1.71 Source Server Version : 50539 Source Host : 192.168.1.71:3306 Source Database : 91ns Target Server Type : MYSQL Target Server Version : 50539 File Encoding : 65001 Date: 2016-01-06 15:42:09 */ SET FOREIGN_KEY_CHECKS=0; -...
true
ce877b80fa6e8b90b30585219bb3698c1528bdd0
SQL
Portismouth/Python
/flask_MYSQL/SQL_query_practice/lead-gen-business-new.sql
UTF-8
1,408
4.40625
4
[]
no_license
#1 SELECT SUM(amount) AS total_revenue_3_2012 FROM billing WHERE charged_datetime LIKE '%2012-03%'; #2 SELECT SUM(amount) AS total_revenue_client_2 FROM billing JOIN clients ON clients.client_id = billing.billing_id WHERE clients.client_id = 2; #3 SELECT sites.domain_name AS sites_owned_client_10 FROM sites WHERE si...
true
08192548449851bb2a297b530716d1739afb5802
SQL
iheb1919/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/13-count_shows_by_genre.sql
UTF-8
226
3.59375
4
[]
no_license
-- script that lists all genres from hbtn_0d_tvshows SELECT tv_genres.name AS "genre", count(*) AS "number_of_shows" FROM tv_show_genres LEFT JOIN tv_genres ON tv_genres.id = genre_id GROUP BY genre_id ORDER BY count(*) DESC;
true
716794c2c48d50130ca8b4b072b73ebc6c79cfbe
SQL
amendrashrestha/IOT_Project
/IOT.sql
UTF-8
2,111
4.09375
4
[]
no_license
create database IOT CHARACTER SET utf8; CREATE TABLE `tbl_twitter_posts_all` ( `Post_ID` bigint(20) DEFAULT NULL, `Post_Date` varchar(50) DEFAULT NULL, `User` varchar(100) DEFAULT NULL, `Text` varchar(200) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; truncate table tbl_twitter_posts_all; LOAD DATA IN...
true
bb11b44ffecdd4d649105eb6fe0a604db4a6fa60
SQL
bglobal/origin
/origin-discovery/migrations/sqls/20180820041726-add-offer-table-up.sql
UTF-8
656
3.21875
3
[ "MIT" ]
permissive
CREATE TABLE offer ( listing_id VARCHAR(32) NOT NULL, offer_id INT NOT NULL, status SMALLINT NOT NULL, seller_address CHAR(42) NOT NULL, -- Seller's ETH address. 20 bytes in hexa notation. buyer_address CHAR(42) NOT NULL, -- Buyer's ETH address. 20 bytes in hexa notation. ipfs_hash ...
true
1fb3704df5488f52edabe67b5ae5132a4a36ecd6
SQL
rakeshkumar125/php-email-schedular
/database/schedular.sql
UTF-8
3,028
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Oct 27, 2018 at 04:47 AM -- Server version: 10.1.28-MariaDB -- PHP Version: 7.1.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
7c72fba7eb03da14d6207d2296691f78f6134365
SQL
spacewalkproject/spacewalkproject.github.io
/documentation/schema-doc/sql_sources/table/rhnactionscap.sql
UTF-8
1,379
2.859375
3
[]
no_license
-- created by Oraschemadoc Wed Mar 4 07:57:24 2020 -- visit http://www.yarpen.cz/oraschemadoc/ for more info CREATE TABLE "SPACEUSER"."RHNACTIONSCAP" ( "ID" NUMBER NOT NULL ENABLE, "ACTION_ID" NUMBER NOT NULL ENABLE, "PATH" VARCHAR2(2048) NOT NULL ENABLE, "PARAMETERS" BLOB, CONSTRAINT "RHN_ACT_SCAP_ID_...
true
7de26884d102f60088fffcb278a2532fe67d866b
SQL
cuba-labs/demo-64-tx-listener
/modules/core/db/init/hsql/20.create-db.sql
UTF-8
236
2.53125
3
[]
no_license
-- begin DEMO_ORDER_LINE alter table DEMO_ORDER_LINE add constraint FK_DEMO_ORDER_LINE_ORDER foreign key (ORDER_ID) references DEMO_ORDER(ID)^ create index IDX_DEMO_ORDER_LINE_ORDER on DEMO_ORDER_LINE (ORDER_ID)^ -- end DEMO_ORDER_LINE
true
533783f7e234e251e08efa8b00a050698f721cdd
SQL
57code/nuxt-app
/server/database/migrations/20230404135755_init/migration.sql
UTF-8
2,715
3.765625
4
[]
no_license
-- CreateTable CREATE TABLE `Column` ( `id` INTEGER NOT NULL AUTO_INCREMENT, `title` VARCHAR(191) NOT NULL, `cover` VARCHAR(191) NOT NULL, `desc` VARCHAR(191) NULL, `content` TEXT NULL, PRIMARY KEY (`id`) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; -- CreateTable CREATE TABLE `...
true
0a96f55e87c7bd8f5ad3f190fd91c0673fb6b76d
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day16/select1607.sql
UTF-8
178
2.609375
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-15T16:07:00Z' AND timestamp<'2017-11-16T16:07:00Z' AND temperature>=21 AND temperature<=26
true
a0204ac0056de860ccb0fcdde339c762d6ef7f11
SQL
nouri89/cyf-capgemini-homeworkclub
/HomeWorkClub.sql
UTF-8
612
2.59375
3
[]
no_license
CREATE DATABASE homeworkclub; CREATE TABLE users ( user_id SERIAL PRIMARY KEY, username VARCHAR (255) UNIQUE NOT NULL, email VARCHAR (50) NOT NULL, password VARCHAR (255) NOT NULL, role VARCHAR (50) NOT NULL ); "" --Kari, Sian, Kirsty and Dora INSERT INTO users (username,email,password,role) values ('kari','kari@@ca...
true
38844fc6bd259bb528d67ce2444037c343dcacad
SQL
felipedsales/MySQL2
/Exercício 3 de 6.sql
UTF-8
2,593
3.59375
4
[]
no_license
create database db_farmacia_do_bem; use db_farmacia_do_bem; create table tb_categoria( id bigint auto_increment, remedio varchar(255) not null, indicacao varchar (255) not null, contra_indica varchar (255) not null, primary key (id) ); insert into tb_categoria (remedio, indicacao,contra_indica) values ("Dipirona","Fe...
true
6a3b940f5408396c266a8c7533a0d22ef5bc6139
SQL
zenbook/sql_scripts
/供应链日报/供应链日报-新.sql
UTF-8
37,464
3.59375
4
[]
no_license
set mapreduce.map.memory.mb=6120; set mapreduce.reduce.memory.mb=12000; set hive.exec.parallel=true; --create table zydb.dpr_supply_chain_final_table_new1 as insert overwrite table zydb.dpr_supply_chain_final_table_new1 select t1.depot_area ,lt04 ,lt01 ,lt02 ,lt34 ,pay_orde...
true
b4396428715aa54e2983e41048426e7bea81708a
SQL
Manafov96/Number-Of-Words-Firebird-SQL
/NumberOfWords.sql
UTF-8
644
3.046875
3
[]
no_license
execute block ( TEXT varchar(1000) = :TEXT ) returns ( WORD_COUNT integer ) as declare variable i int; declare variable Delimiters varchar(100); declare variable Word_Start smallint; begin Delimiters = '.,<>?!@#$%^&`~''"\/-_=+- ' || ascii_char(13) || ascii_char(10) || ascii_char(9); WORD_CO...
true
d51c81ee61ac4d01bccb5a5aa8a976327ad798c5
SQL
ryanzigler/databases
/server/schema.sql
UTF-8
2,195
4.1875
4
[]
no_license
/* eslint-disable */ CREATE DATABASE IF NOT EXISTS chat; USE chat; DROP TABLE IF EXISTS users; CREATE TABLE users ( id INT PRIMARY KEY NOT NULL AUTO_INCREMENT, username VARCHAR(20) UNIQUE ); DROP TABLE IF EXISTS messages; CREATE TABLE messages ( id INT PRIMARY KEY NOT NULL AUTO_INCREMENT, userid INT NOT NU...
true
466b1301d22a6aa407d347d6eeebc230b2b30a66
SQL
ajberchek/RMHS
/select/serviceProvderForHouse.sql
UTF-8
155
3.078125
3
[]
no_license
SELECT H.*,SP.s_name FROM House as H,Services as S,ServiceProvider as SP WHERE H.h_housekey = S.sv_housekey AND S.sv_providerkey = SP.s_providerkey;
true
5bbb90af2aa968333d36251e3fe794766205ea83
SQL
edwards-j/chinook-edwards-j
/brazil_customers.sql
UTF-8
96
2.71875
3
[]
no_license
SELECT c.FirstName, c.LastName, c.Country FROM Customer c WHERE c.Country = "Brazil" ;
true
fbbda098829e6f26bfc585b959b7fa7a8a4da4cd
SQL
star-storm/sw-view
/src/main/resources/sw-view.sql
UTF-8
16,422
3.1875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50624 Source Host : localhost:3306 Source Database : sw-view Target Server Type : MYSQL Target Server Version : 50624 File Encoding : 65001 Date: 2020-05-09 16:04:52 */ SET FOREIGN_KEY_CHECKS=0; -- -...
true
1d9f14f49f67f3fd44fcf5781ba98e901bb0c459
SQL
pendelhaven3/magic
/alterscripts/alterscript-1.68.0.sql
UTF-8
230
2.6875
3
[]
no_license
drop table SALES_REQUISITION_EXTRACTION_WHITELIST; create table SALES_REQUISITION_SEPARATE_ITEM ( PRODUCT_ID integer not null, constraint SALES_REQUISITION_SEPARATE_ITEM$FK foreign key (PRODUCT_ID) references PRODUCT (ID) );
true
5093d5c915e4ac815fdbe90859036a155a3e5a6c
SQL
the-nemz/Snake-Sssearcher
/sql-scripts/temp.sql
UTF-8
112
2.921875
3
[]
no_license
SELECT S.genus_species, L.country FROM snake INNER JOIN lives_in ON S.genus_species=L.genus_species LIMIT 10;
true
892600645d66d933fa135936b1b7c2f93fd51d73
SQL
Silas-Ricky/kenyaemrMigration
/DML_4_Datasets/DML_Users.sql
UTF-8
651
3.765625
4
[]
no_license
select u.UserID,u.UserFirstName,u.UserLastName,u.UserName,Status = Case u.DeleteFlag when 0 then 'Active' when 1 then 'InActive' end,ds.[Name] as Designation,ltg.GroupNames from mst_User u left join mst_Employee me on me.EmployeeID=u.EmployeeId left join mst_Designation ds on ds.Id=me.DesignationID ...
true
1f4a5b3fd958776e898c415cc54746a818a38361
SQL
Xaoilin/help-me-translate-api
/src/test/resources/data.sql
UTF-8
2,134
3.671875
4
[]
no_license
-- DROP DATABASE IF EXISTS hmt; DROP TABLE IF EXISTS auth_user_role; DROP TABLE IF EXISTS auth_role; DROP TABLE IF EXISTS saved_translations; DROP TABLE IF EXISTS auth_user; -- CREATE DATABASE hmt CHARACTER SET utf8 COLLATE utf8_general_ci; CREATE TABLE auth_role ( id int(11) NOT NULL AUTO_INCREMENT, role_name v...
true
9680f9ae53198b9738bd8724987b019345e0a52f
SQL
messagetorafael/homework7
/RafaelSantos-HW7-SQL.sql
UTF-8
10,587
4.1875
4
[]
no_license
/* Student: Rafael Santos Data Analytics and Visualization Cohort 3 */ use sakila; -- 1a. Display the first and last names of all actors from the table actor. select first_name, last_name from actor; /* 1b. Display the first and last name of each actor in a single column in upper case letters. Name the column Ac...
true
1e15b0f43386dadbc579f4515e5425f3c2c68e66
SQL
ldhisgood/graduation
/bltdb.sql
UTF-8
56,117
2.96875
3
[]
no_license
# MySQL-Front 5.1 (Build 2.7) /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE */; /*!40101 SET SQL_MODE='STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES */; /*!40103 SET SQL_NOTES='ON' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS */; /*!40014 SET UNIQUE_CHECKS=0 */; /*!40014 SET ...
true
49028c941df92e9ca384f47ab94b53ffee1ebd1f
SQL
ccpro/server.projects
/events/events.sql
UTF-8
455
3.359375
3
[]
no_license
DROP TABLE events; DROP SEQUENCE event_id; CREATE SEQUENCE "event_id" start 1 minvalue 1; CREATE TABLE events ( event_id smallint DEFAULT nextval('event_id'::text) UNIQUE NOT NULL PRIMARY KEY, ownerid int NOT NULL, eventtime timestamp without time zone NOT NULL DEFAULT "timestamp"('now'::...
true