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
e02d8dd7669ebe4f99337f27d3721f27e69b0666
SQL
saileshkasaju/JavaConsoleApp
/db/management_system.sql
UTF-8
6,242
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 31, 2017 at 03:13 AM -- Server version: 10.1.16-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
c598293d6637c13aa97828cb7d4442c76492f423
SQL
cleve703/sqlZoo
/1_SELECT_from_world.sql
UTF-8
1,176
3.265625
3
[]
no_license
-- Question 1 SELECT name FROM world WHERE name LIKE 'Y%'; -- Question 2 SELECT name FROM world WHERE name LIKE '%y'; -- Question 3 SELECT name FROM world WHERE name LIKE '%x%'; -- Question 4 SELECT name FROM world WHERE name LIKE '%land'; -- Question 5 SELECT name FROM world ...
true
2233303fd748763383d445a3ccf1027a201ba12d
SQL
JulieDelacroixE/Exercices
/BACK/BDD/SQL/Evaluation/eval exercice2.sql
UTF-8
2,223
4.28125
4
[]
no_license
USE northwind; SELECT CompanyName AS 'Société', ContactName AS 'Contact' , ContactTitle AS 'Fonction', phone AS 'Téléphone' FROM customers WHERE country = 'France'; SELECT ProductName AS 'Produit', unitprice AS 'Prix' FROM products JOIN suppliers ON products.supplierID = suppliers.SupplierID WHERE companyName = 'Exot...
true
024128765e53bc5aef6a06e58deb77e280388a01
SQL
su-cimmiv/Management-of-a-Pawn-Shop
/function4ENTRATE_PEGNI.sql
UTF-8
358
2.921875
3
[]
no_license
CREATE OR REPLACE FUNCTION ENTRATE_PEGNI(DATA_INIZIALE DATE, DATA_FINE DATE) RETURN NUMBER IS ENT_PEGNI NUMBER; BEGIN ENT_PEGNI:=0; FOR P IN (SELECT P.DATA_PEGNO,P.IMPORTO FROM PEGNO P WHERE P.DATA_PEGNO BETWEEN DATA_INIZIALE AND DATA_FINE) LOOP ENT_PEGNI:=ENT_PEGNI+MATURATOPEGNI(P.DATA_PEGNO,P.IMPORTO); EN...
true
a8fc1e19529b2f72dbe22f22f647e8e7333c5db4
SQL
daehyeonhong/Oracle
/och01/build/classes/sql/ch13.sql
UTF-8
4,552
3.34375
3
[ "MIT" ]
permissive
-- 권한 부여 -- 객체 소유자가 객체 권한을 다른 유저에게 부여 SQL> show user USER is "" SQL> connect sys as sysdba Enter password: Connected. SQL> grant create session to usertest01; Grant succeeded. SQL> select eno,ename,hiredate from employee where eno=7788; ENO ENAME HIREDATE ---------- -------------------- ------...
true
699e495def96bfedcc401a97f4d925b7cc66271b
SQL
Fukada9905/pythagora
/sql/change_scripts/tran/pyt_t_shaban.sql
UTF-8
7,095
3.21875
3
[]
no_license
DROP TABLE IF EXISTS pyt_t_shaban; delimiter // /** テーブル作成 **/ CREATE TABLE pyt_t_shaban( id int NOT NULL COMMENT '車番管理ID' , shipper_code varchar(10) NOT NULL COMMENT '荷主コード' , transporter_code varchar(10) DEFAULT NULL COMMENT '運送業者コード' , transporter_name varchar(30) DEFAULT NULL ...
true
daef5ed430ed66e90679270443d047737145fd97
SQL
nablarch/nablarch-report-sample
/src/tool/db/table/ddl/forward.sql
UTF-8
16,917
3.359375
3
[ "Apache-2.0" ]
permissive
CREATE TABLE ID_GENERATE ( ID CHAR(4) NOT NULL, NO NUMBER(10,0) NOT NULL, INSERT_USER_ID CHAR(10) NOT NULL, INSERT_DATE TIMESTAMP NOT NULL, UPDATED_USER_ID CHAR(10) NOT NULL, UPDATED_DATE ...
true
2b94626130f28e814e66f1d4221927f7b363f7bf
SQL
kechkibet/crp_v2
/modules/core/db/update/mysql/18/180405-2-updateRevenuestreams01.sql
UTF-8
71
2.5625
3
[]
no_license
create index IDX_REVENUESTREAMS_CATEGORY on revenuestreams (CATEGORY);
true
96ef0cb9d5851d212af31fe34280db8bfd71acc0
SQL
SurajSandhu123/Depart
/customers.sql
UTF-8
1,708
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3308 -- Generation Time: Mar 29, 2020 at 10:25 AM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 S...
true
54ded576f9af02111d07f73b599b1077af3b96b2
SQL
wizardcypress/sicily-recommendation-system
/sql/follows.sql
UTF-8
285
2.640625
3
[]
no_license
DROP TABLE IF EXISTS `follows`; CREATE TABLE IF NOT EXISTS `follows` ( `fid` int(11) NOT NULL auto_increment, `uid1` int(11) NOT NULL, `uid2` int(11) NOT NULL, `time` timestamp NOT NULL default CURRENT_TIMESTAMP, PRIMARY KEY (`fid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
true
ab5e3f3f5ac46669025e2841bdfac6b6ec009fa1
SQL
ErosMLima/PAL
/Code Snippets/PAL 46 Statistics - Univariate.sql
UTF-8
1,755
3.21875
3
[]
no_license
SET SCHEMA PAL; -- cleanup DROP TYPE PAL_T_SU_DATA; DROP TYPE PAL_T_SU_PARAMS; DROP TYPE PAL_T_SU_RESULTS; DROP TABLE PAL_SU_SIGNATURE; CALL SYSTEM.AFL_WRAPPER_ERASER ('PAL_SU'); DROP VIEW V_SU_DATA; DROP TABLE SU_RESULTS; -- PAL setup CREATE TYPE PAL_T_SU_DATA AS TABLE (LIFESPEND DOUBLE, NEWSPEND DOUBLE,...
true
2d0d3e7ecfe78658984e1e1f179b422846b3cd45
SQL
gwblok/garytown
/SQL/DeviceInfoByCollection.sql
UTF-8
741
3.671875
4
[]
no_license
/* GARY BLOK - @gwblok - GARYTOWN.COM ComputerName LastHWScan Days Since HW Scan Serial Number Product Model Limit by Collection */ SELECT DISTINCT SYS.Netbios_Name0 as 'Computer Name' ,WS.LastHWScan ,DATEDIFF(day,WS.LastHWScan,GETDATE()) as 'Days Since HWScan' ,SE.SerialNumber0 AS [Serial Number] ,bb.Product0...
true
cae4b8225c0017c5d628eae27d6706193b1b947a
SQL
jamesgray007/northwestern-predictive
/CIS417-Databases/Week 8/Assignment8_DDL.sql
UTF-8
4,892
3.53125
4
[]
no_license
-- James Gray, CIS 417 Assignement #8 -- DDL statements to create and populate tables -- SQL Server 2012 CREATE TABLE Starship -- Starship contains starship details (starshipID SMALLINT NOT NULL, starshipName VARCHAR (20) NOT NULL, crewSize SMALLINT NOT NULL, shipClass VARCHAR (20) NOT NULL, launch...
true
6d1f4bb6d388d553d52661d0d19dfd473b7d4bb3
SQL
ltv12/hive
/hive/hw-2/scripts/hw-2.sql
UTF-8
529
4.0625
4
[]
no_license
--Find all carriers who cancelled more than 1 flights during 2007, order them from biggest to lowest --by number of cancelled flights and list in each record all departure cities where cancellation --happened. SELECT f.uniquecarrier carrier, COUNT(*) canceled_flights, concat_ws(', ' , collect_set(...
true
eb5ce3cc0fc74316dde967f6fe5c84ba0acc2169
SQL
JEonjinwon/Oracle
/202-08-11.SQL
UHC
3,560
4.15625
4
[]
no_license
2020-08-11-01) SELECT SELECT *| [DISTINCT] ÷ [AS]["] ÷Ī["], FORM ̺ [̺ Ī], [.........] [WHERE [AND | OR ] ...........] [GROUP BY ÷ [, ÷ , ...............] [HAVING ] [ORDER BY ÷ | ÷ INDEX, .......]; 1. 1) ڸ Ͽ ǹ ߾ if Ǵ ǹ >, <, >=, <=, !(<>), = 2) (NOT(!), AND, OR) ǹ 3)Ÿ ANY,...
true
d44a962a2f4b53855b9346d15c4278e28862d763
SQL
JoohyeonBaek/K-Digital
/Homework/3팀20201230/pet.sql
UTF-8
2,149
3.609375
4
[]
no_license
DROP DATABASE IF EXISTS tsunmoon; CREATE DATABASE IF NOT EXISTS tsunmoon; USE tsunmoon; CREATE TABLE `pet` ( `name` VARCHAR(10) NOT NULL COLLATE 'utf8_general_ci', `owner` VARCHAR(10) NOT NULL COLLATE 'utf8_general_ci', `species` VARCHAR(10) NOT NULL COLLATE 'utf8_general_ci', `sex` CHAR(1) NOT NULL COLLATE 'utf8_...
true
bfedeef131a052af83d3fe518c28686f5f45ce05
SQL
nikolausn/lab-data-cleaning-project
/ForeignKeyChecks.sql
UTF-8
804
3.78125
4
[]
no_license
.headers on .mode csv -- We have created a bunch of look-up tables for gender, arrest type etc. -- Following query is checking if gender is there in the lookup table. -- Query returns traffic violation rows for which violator's gender is not in lookup. .output SqlChecksFK.ViolateGender.csv SELECT * FROM Traffi...
true
b38d8f31b934a92fd612980e5ebfc98fb0b997d8
SQL
SheMaris/modelatge-BBDD
/modelatge_6.sql
UTF-8
833
3.1875
3
[]
no_license
DROP SCHEMA IF EXISTS Optica; CREATE DATABASE IF NOT EXISTS Optica; use Optica; CREATE TABLE Proveidor ( Id_proveidor INT PRIMARY KEY, Nom VARCHAR(96), Adreca VARCHAR(2083), Telefon VARCHAR(96), Fax VARCHAR(96), NIF VARCHAR(96) ); CREATE TABLE Ulleres ( Id_ulleres INT PRIMARY KEY, Marca VARCHAR(96), Gr...
true
8e1ce06e3f76227ab27e19659b2bcccac3658742
SQL
vishwas1234567/mimic-cookbook
/hana/sbp.sql
UTF-8
386
3.8125
4
[]
no_license
-- # 11. Systolic Blood Pressure Histogram select bucket, count(*) from ( select width_bucket("ce"."VALUE1NUM", 0, 300, 300) as bucket from "MIMIC2V26"."chartevents" "ce", "MIMIC2V26"."d_patients" "dp" where "ITEMID" in (6, 51, 455, 6701) and "ce"."SUBJECT_ID" = "dp"."SUBJECT_ID" and months_between("dp"."D...
true
da651cc551a084ee97f7c979abf48bd58048ed02
SQL
WillRobbinson/time_sheet
/src/main/resources/schema.sql
UTF-8
396
3.484375
3
[]
no_license
CREATE TABLE TIMESHEET( SHEET_ID BIGINT AUTO_INCREMENT PRIMARY KEY, EMPLOYEE_NAME VARCHAR(100), START_DATE TIMESTAMP NOT NULL, SUBMITTED BOOLEAN DEFAULT FALSE ); CREATE TABLE TIMESHEET_DAY( TIMESHEET_DAY_ID BIGINT AUTO_INCREMENT PRIMARY KEY, SHEET_ID BIGINT NOT NULL, DAY_OF_WEEK INT, MINUTES INT ); ALTER TABL...
true
b5d4d2e994eb77fd7779f8063dcc7ab8cfd391a9
SQL
nairachyut/dataquest-projects
/SQL Fundamentals/Subqueries-300.sql
UTF-8
1,011
4.21875
4
[ "Unlicense" ]
permissive
## 2. Subqueries ## SELECT Major, Unemployment_rate FROM recent_grads WHERE Unemployment_rate < (SELECT AVG(Unemployment_rate) FROM recent_grads) ORDER BY Unemployment_rate ## 3. Subquery In SELECT ## SELECT CAST(COUNT(*) AS FLOAT) / CAST((SELECT COUNT(*) FROM recent_grads) AS FLOAT) proportion_abv_avg FROM recent_g...
true
fcfb3c1a646c87d46213b71861a40d8b4c3e8d64
SQL
stellasia/janote
/Janote/data/table_schema_v1.sql
UTF-8
1,911
4.0625
4
[]
no_license
CREATE TABLE IF NOT EXISTS Teachers ( teacher_id INTEGER PRIMARY KEY AUTOINCREMENT, teacher_name TEXT NOT NULL, teacher_surname TEXT ); CREATE INDEX IF NOT EXISTS index_teacher_id ON Teachers (teacher_id); CREATE TABLE IF NOT EXISTS Groups ( group_id INTEGER PRIMARY KEY AUTOINCREMENT, grou...
true
b409489a175a7f9ed46d2b21818e165679af5392
SQL
FELLSAT/Procedimientos
/Procedimientos/Nuevos Sp/H3i_SP_CONSULTA_AGENDADIA_REEM.sql
UTF-8
5,244
3.171875
3
[]
no_license
CREATE OR REPLACE PROCEDURE H3i_SP_CONSULTA_AGENDADIA_REEM -- ============================================= -- Author: FELIPE SATIZABAL -- ============================================= ( V_MEDICO IN VARCHAR2, V_FECINICIAL IN DATE, V_FECFINAL IN DATE, CV_1 OUT SYS_REFCURSOR ) AS BEGIN INSERT INTO TT_TMPAG...
true
1d312814612356a559ec4ce285cb51a31a99653f
SQL
daren990/EOA
/src/cn/oa/model/mapper/AssetShop.sql
UTF-8
1,269
3.703125
4
[]
no_license
/* AssetShop.count */ select count(*) from res_asset_shop s left join sec_user u on u.user_id = s.user_id left join sec_org o on o.org_id = u.corp_id $condition /* AssetShop.index */ select s.*, u.true_name, o.org_name corp_name from res_asset_shop s left join sec_user u on u.user_id = s.user_id left join sec_org ...
true
f2df9d677ee1dc389a23cc5e55a13f3e87fbb567
SQL
Zhenghao-Liu/LeetCode_problem-and-solution
/1543.产品名称格式修复/solution2.sql
UTF-8
408
3.734375
4
[]
no_license
# Write your MySQL query statement below SELECT product_name, sale_date, COUNT(sale_id) AS total FROM ( SELECT sale_id, LOWER(LTRIM(RTRIM(product_name))) AS product_name, DATE_FORMAT(sale_date,'%Y-%m') AS sale_date FROM Sales ) AS A GRO...
true
cec04c968a25aee44c19dd427684bd10f0f08322
SQL
hussamallan98/E-Mall
/final_project (2).sql
UTF-8
8,388
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 05, 2021 at 07:35 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
9fd6b2509888663dc0d129ee2e0de51a9b12d300
SQL
zouliping/WeiboshengrihuiServer
/conf/evolutions/default/1.sql
UTF-8
2,191
3.078125
3
[]
no_license
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table activity ( aid varchar(255) not null, title varchar(255), location varchar(255), description varchar(2...
true
bacf2c2c8529cdf2ae9fb8a8980752fb73ade6fc
SQL
ThoPeumasschel/MyProjects
/labs/Job_Grades.sql
UTF-8
500
2.515625
3
[]
no_license
CREATE TABLE job_grades ( grade_level VARCHAR2(3), lowest_sal NUMBER, highest_sal NUMBER ); INSERT INTO job_grades VALUES ( 'A', 1000, 2999 ); INSERT INTO job_grades VALUES ( 'B', 3000, 5999 ); INSERT INTO job_grades VALUES ( 'C', 6000, 9999 ); INSERT INTO job_...
true
d65b9855520ca733b58ea6a1aa2f15dcfcfbfa36
SQL
crobert/LogicielTrez
/doc/session.sql
UTF-8
321
2.703125
3
[]
no_license
-- Table 'session' DROP TABLE IF EXISTS `session` ; CREATE TABLE IF NOT EXISTS `session` ( session_id varchar(40) DEFAULT '0' NOT NULL, ip_address varchar(16) DEFAULT '0' NOT NULL, user_agent varchar(50) NOT NULL, last_activity int(10) unsigned DEFAULT 0 NOT NULL, user_data text NOT NULL, PRIMARY KEY (session_id) );...
true
18bda30682825b9d43226583f6b686c75bf8d486
SQL
basalbr/fvm
/fvm.sql
UTF-8
8,058
2.515625
3
[ "MIT" ]
permissive
-- -- PostgreSQL database dump -- -- Dumped from database version 9.5.2 -- Dumped by pg_dump version 9.5.2 -- Started on 2016-04-24 22:14:49 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 ...
true
7130fd023ae244fbaf78756c0eeaea2368a4e601
SQL
alexstrive/Ifmo-Works
/DatabaseUsage/Work 2/6.sql
UTF-8
122
2.828125
3
[ "Unlicense" ]
permissive
SELECT ProductLine, AVG(DaysToManufacture) FROM Production.Product GROUP BY ProductLine HAVING ProductLine IS NOT NULL
true
bd90e352af6cb8edb9ea1ad7648670010ca6331f
SQL
seraf7/BDA
/tema08/ejercicio-clase-03/s-05-config-fra.sql
UTF-8
837
2.59375
3
[]
no_license
-- @Autor: Humberto Serafín Castillo López -- @Fecha: 05/08/2021 -- @Descripción: Script para habilitar la carpeta de la FRA -- Creación del directorio -- sudo mkdir /unam-bda/fast-reco-area -- sudo chown oracle:oinstall /unam-bda/fast-reco-area -- sudo chmod 750 /unam-bda/fast-reco-area -- Crea ...
true
33dbab2533714940dc25c13de1950983b42a0045
SQL
wdita/Tugas-SI
/rsh_ipb.sql
UTF-8
3,458
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 19, 2017 at 07:46 AM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
true
e2b20370d85e1adb726db1844edf65419b38cb43
SQL
marinfotache/Database-Logic-in-Business-Applications
/Proiectarea bazelor de date. Normalizare si post-normalizare 2005/Listinguri/Listing_7_19_trigger_detalii_oper_ins_v3.sql
ISO-8859-13
1,315
3.0625
3
[]
no_license
CREATE OR REPLACE TRIGGER trg_do_ins AFTER INSERT ON detalii_operatiuni FOR EACH ROW DECLARE v_nr NUMBER(3) := 0 ; BEGIN -- se numara cte conturi ncep cu simbolurile contului -- debitor, pentru a vedea daca acesta se descompune SELECT COUNT(*) INTO v_nr FROM plan_conturi WHERE SUBSTR(SimbolCont,1,LENGTH(:N...
true
6a5bfe4f07e04ea03be9da086f7f2ad6f53fe923
SQL
jyesawtellrickson/sql-zoo
/help-desk/3_500.sql
UTF-8
209
3.0625
3
[]
no_license
-- There are 500 calls in the system (roughly). Write a query that shows the number that have each status. SELECT status, COUNT(status) AS Volume FROM Issue GROUP BY 1 ORDER BY Volume DESC
true
fdd72ad936b360d6fde86d9b129db3b3be4cadda
SQL
eigen-space/pg-migrator
/examples/db/changesets/005.do.create-entities.sql
UTF-8
629
3.03125
3
[ "MIT" ]
permissive
-- Entities -- ------------------- create table entities ( id uuid default uuid_generate_v4() not null constraint entities_pkey primary key, full_name text not null constraint entities_unique_full_name ...
true
d19167ace1b4b0a074bc63b54737ce69e185edc5
SQL
egyptai/SQL
/select김경호(2)20210527.sql
UTF-8
103
2.9375
3
[]
no_license
select name, height from usertbl where height > (select height form usertbl where name = '김경호');
true
8878b46a1e97eee512493cefe39e5b66f2f05f9b
SQL
christopherliedtke/petition_free-orcas
/tables/profiles.sql
UTF-8
276
3.234375
3
[]
no_license
DROP TABLE IF EXISTS profiles; CREATE TABLE profiles ( id SERIAL PRIMARY KEY, date_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, age INTEGER, city VARCHAR(50), homepage VARCHAR(80), user_id INTEGER NOT NULL UNIQUE REFERENCES users(id) );
true
be885dca6d8908cf75826c6c1584e10b867b2696
SQL
lenope1214/capston
/src/main/document/SQL/TEST/익스포트_시연용(09-21).sql
UTF-8
98,767
3.109375
3
[]
no_license
-------------------------------------------------------- -- 파일이 생성됨 - 월요일-9월-21-2020 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Sequence ENTRY_INFO_SEQa -------------------------------------------------------- CREATE SEQUENCE "TEST1"....
true
9b49f1b342f13aa2e43978f12bb2e3a85fff9bcd
SQL
liar1974/Database
/HW1/q8.sql
UTF-8
196
3.0625
3
[]
no_license
SELECT COUNT(*) no_of_plane FROM (SELECT tl.reg_no FROM test_log tl WHERE tl.test_date >= TO_DATE('2011-1-1','yyyy-mm-dd') GROUP BY tl.reg_no HAVING COUNT(DISTINCT tl.FAA_no) = 5);
true
ff4344332a7d7e1b8d1ed15947d58cf93e6fb9ae
SQL
iOS-Lab/tracker-server
/ntsiot-system/sql/track/cyoubike_warning.sql
UTF-8
971
2.5625
3
[ "Apache-2.0" ]
permissive
create table warning ( id INT(10) not null primary key, warning TEXT(65535) null, Bitcoin_Address TEXT(65535) null, Email TEXT(65535) null ); INSERT INTO cyoubike.warning (id, warning, Bitcoin_Address, Email) VALUES (1, 'To recover your lost Database and avoid...
true
8bc9badc9bfff5082c65328070f06dff61c04c26
SQL
equadrado/app-prop-api
/src/main/resources/data-h2.sql
UTF-8
6,370
2.984375
3
[]
no_license
DROP TABLE IF EXISTS rbcapp; CREATE TABLE rbcapp ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(20) NOT NULL, description VARCHAR(300) DEFAULT NULL ); DROP TABLE IF EXISTS appversion; CREATE TABLE appversion ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, version VARCHAR(20) NOT NULL, config TE...
true
0b33617362d8b4023ca4e13f3bd6e1504c6d1871
SQL
isweluiz/itsm
/create_view_pesquisa_de_satisfaca.sql
UTF-8
3,303
3.84375
4
[]
no_license
## Detran create or replace view vw_aux_survey as select sa.answer, sa.question_id , sr.ticket_id, sv.question_id as vote_qestion_id, sv.vote_value, sv.create_time, sv.request_id from survey_answer sa right join survey_vote sv on sa.question_id = sv.question_id and sv....
true
40b76a09809e6502d1e083f3833a5006e7433076
SQL
davidalmonte9/portfolio
/Modeling Taxi Tipping using Inferred Passenger Characteristics/greencab_sample.sql
UTF-8
4,315
3.71875
4
[]
no_license
(SELECT -- Targets g14.tip_amount AS tip, g14.tip_amount / g14.fare_amount AS tip_percent, g14.fare_amount AS fare, -- Latutde and Long data - use for demography join round(g14.pickup_longitude,4) AS pickup_long, round(g14.pickup_latitude, 4) AS pickup_lat, round(g14.dropoff_latitude,4) AS dropoff_lat, ...
true
012829d48fef06bac46adb5e810b0d86662bccf5
SQL
rcancino/sw2
/sw2-core/src/main/resources/sql/calculoExistenciaMaquila.sql
UTF-8
2,168
4.09375
4
[]
no_license
SELECT A.ALMACEN_ID,(CURRENT_DATE) AS FECHA ,O.PRODUCTO_DESTINO_ID,YEAR(CURRENT_DATE) AS YEAR,MONTH(CURRENT_DATE) AS MES,O.DESTINO_CLAVE AS CLAVE,O.DESTINO_DESCRIPCION AS DESCRIPCION ,SUM((IFNULL((SELECT SUM(CANTIDAD) FROM sx_maq_salida_hojeadodet H WHERE H.RECEPCIONDET_ID=R.RECEPCIONDET_ID AND DATE(H.FECHA)<=CURRENT_...
true
d0128be741a60434e8faac3ddd3e9f47aa78cc4f
SQL
pioncode/phpUpload
/per_db_42_01/Stage2_INSERT_ADDRESS.sql
UTF-8
2,757
2.671875
3
[]
no_license
INSERT into affil (key,paperid,affilnum,address) VALUES (nextval('affil_seq'),'p7186','0','École de Psychologie, 2325 rue des Bibliothèques, Université Laval, Québec, QC G1V 0A6, Canada)' ; INSERT into affil (key,paperid,affilnum,address) VALUES (nextval('affil_seq'),'p7203','0','1 Department of Basic Psychology, Facul...
true
2b21c41cfe26391e4b18c5a8ca5ce3b629107bbe
SQL
thiagozampieri/devPortal
/src/main/resources/db/migration/V20190101134958__invoice.sql
UTF-8
998
2.875
3
[]
no_license
CREATE TABLE `invoice` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT, `created_at` DATETIME NOT NULL, `invoice_id` VARCHAR(64) NOT NULL, `tenant_realm` varchar(64) NULL, `keycloak_id` VARCHAR(64) NOT NULL, `period_start` DATETIME NOT NULL, `period_end` DATETIME NOT NULL, `value` float(18,2...
true
9897ae1b72d6288289870078a78c9bc66fa1328e
SQL
Kevinvaleriocurasma/SQL-Query
/SQLQuery4.sql
ISO-8859-10
1,050
3.09375
3
[]
no_license
CREATE DATABASE BDCOMERCIO if object_id('articulos') is not null drop table articulos; create table articulos( codigo integer, nombre varchar(20), descripcion varchar(30), precio float, cantidad integer ); sp_columns articulos; insert into articulos (codigo, nombre, descripcion, precio,cantidad)...
true
45556f9bf69704ded292adec80d69be11aab9596
SQL
ffakenz/DAS
/project/workspace/gobierno/db/src/main/resources/liquibase/login/procedures/get_login_by_documento.sql
UTF-8
166
2.515625
3
[]
no_license
CREATE PROCEDURE get_login_by_documento(@documento BIGINT) AS SELECT * FROM login WHERE documento = @documento AND log_out_time IS NULL; --get_login_by_username
true
b1edaab3722d725d8341976b9b5bd50c3e5d2698
SQL
liwei1943/bitcoinexplorer1112
/bitcoinexplorer1112background/sql/transaction.sql
UTF-8
749
3.421875
3
[]
no_license
SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for block -- ---------------------------- DROP TABLE IF EXISTS `transaction`; CREATE TABLE `transaction` ( `txid` int NOT NULL, `transaction_id` int NOT NULL, `txhash` char(64) NOT NULL, `confirmations` int NOT NULL, `time`...
true
945094ab3a311fedc50c0bb383e1f6456d1ccebb
SQL
haowsms/workflowbase
/src/main/resources/ddl.sql
UTF-8
20,518
3.34375
3
[]
no_license
set feedback off set define off -- Create table create table ACT_EVT_LOG ( log_nr_ NUMBER(19) not null, type_ NVARCHAR2(64), proc_def_id_ NVARCHAR2(64), proc_inst_id_ NVARCHAR2(64), execution_id_ NVARCHAR2(64), task_id_ NVARCHAR2(64), time_stamp_ TIMESTAMP(6) not null, user_id_ ...
true
4bf2479dabcb127766bfe85fec578da5758f0074
SQL
antsfree/spider-red-bag
/data/red_bag.sql
UTF-8
1,267
2.984375
3
[]
no_license
CREATE TABLE `red_bag` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `sign` varchar(50) CHARACTER SET utf8mb4 NOT NULL DEFAULT '', `red_bag_id` varchar(50) CHARACTER SET utf8mb4 NOT NULL DEFAULT '', `uid` varchar(50) CHARACTER SET utf8mb4 NOT NULL DEFAULT '', `money` varchar(50) CHARACTER SET utf8mb4 NOT N...
true
de93fea23747a7b229984cc2c3ef9ede58d83bdc
SQL
atymkiv/DB
/init/init.sql
UTF-8
2,744
4
4
[]
no_license
create table operation ( operationID int unsigned auto_increment primary key, type varchar(50) charset utf8 not null ); create table role ( roleID smallint(5) unsigned auto_increment primary key, role_name char(19) not null, permissions varchar(255) not null ); cr...
true
144675af502e106a2a881978e245a92f4faf8d61
SQL
yareda/backoffice
/Database/ClearOffice.Database/Schema Objects/Schemas/wms/Views/pm_service_info_1.view.sql
UTF-8
761
3.3125
3
[]
no_license
CREATE VIEW wms.pm_service_info AS SELECT wms.pm_service.pm_service_id, wms.pm_service.task_name, wms.pm_service.category, wms.pm_service.priority, wms.pm_service.fixed_date, wms.pm_service.recurring_date, wms.pm_service.fixed_hour, wms.pm_service.recurring_hour, wms.lookup_item.name AS cata...
true
a80fea02b20ffad6bffb99e73efc1a54fa5fbe1e
SQL
GarySanchez012/sql-employee-tracker
/scratch.sql
UTF-8
381
3.75
4
[]
no_license
SELECT employees.id, employees.first_name, employees.last_name, role.title, department.name, role.salary, CONCAT_WS(' ', managers.first_name, managers.last_name) as manager_name FROM employee AS employees LEFT JOIN employee AS managers ON employees.manager_id = managers.id INNER JOIN role ON employees.role_id = role.id...
true
0b7be4b438075415fda3ef8f981ef313b43c9404
SQL
WWBN/AVideo
/updatedb/updateDb.v2.4.sql
UTF-8
1,536
3.03125
3
[ "Apache-2.0", "JSON" ]
permissive
-- MySQL Workbench Synchronization -- Generated: 2017-05-04 19:38 -- Model: New Model -- Version: 1.0 -- Project: Name of the project -- Author: Daniel SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE,...
true
87d134b3ba9e57c98c04597cceb43aa811c5f3f1
SQL
Gustavo-190321/SQL-Aulas
/aula4.sql
UTF-8
953
3.53125
4
[]
no_license
describe gafanhotos; alter table pessoas add column profissao varchar(10) after nome; alter table pessoas modify column profissao varchar(10) not null default ''; alter table pessoas change columns profissao prof varchar(20) not null default; alter table pessoas rename to gafanhotos; alter table pessoas add column...
true
eb4ee075ceceadb1a6170c9f2c4e41588b442a42
SQL
Lagoran/DataCamp
/intro-to-sql-for-data-science/01-selecting-columns/08-selecting-multiple-columns.sql
UTF-8
1,190
4.4375
4
[]
no_license
/* Well done! Now you know how to select single columns. In the real world, you will often want to select multiple columns. Luckily, SQL makes this really easy. To select multiple columns from a table, simply separate the column names with commas! For example, this query selects two columns, name and birthdate, from ...
true
7835fcd8319e16786baaf4bd7a0483509a5d1b93
SQL
stoianov00/Java
/Java MySQL/04.Data Aggregation/14.Employees Average Salaries .sql
UTF-8
239
3.5625
4
[]
permissive
SELECT department_id, CASE WHEN department_id = 1 THEN AVG(salary) + 5000 ELSE AVG(salary) END AS 'avg_salary' FROM employees WHERE salary > 30000 AND manager_id != 42 GROUP BY department_id ORDER BY department_id;
true
d6de31c7d7882cb3fddbce1dd95dddaedb3f9065
SQL
GoryachevaT/hadoop-megafon
/Homeworks/HW11/MF2019Q2_Goryacheva_​HW11​/movielens.cql
UTF-8
492
3.609375
4
[]
no_license
SELECT count(1) FROM mf_goryacheva.movies; SELECT count(1) FROM mf_goryacheva.movies_by_genre WHERE genres = 'Horror' AND year >= 1980 AND year <= 1990; SELECT count(1) FROM mf_goryacheva.movies WHERE genres CONTAINS 'Horror' AND year >= 1980 AND year <= 1990 ALLOW FILTERING; SELECT min(avg_rn...
true
e9eb2fd47195f0fdcf19c269953d141efafdd0ae
SQL
dev-hg20/lets-talk-corona
/db/schema.sql
UTF-8
1,315
3.90625
4
[]
no_license
DROP DATABASE IF EXISTS viral_db; CREATE DATABASE viral_db; USE viral_db; DROP TABLE IF EXISTS `Stories`; DROP TABLE IF EXISTS `Categories`; DROP TABLE IF EXISTS `Users`; CREATE TABLE IF NOT EXISTS `Categories` ( `id` INTEGER NOT NULL auto_increment , `name` VARCHAR(255) NOT NULL, `createdAt` DATETIME D...
true
5d56ac85c73fde76558a2e614adc6b5445aa50ff
SQL
stephenderoche/WorkStation2_0
/NavProcessStatus/SQL/se_process_status Tables.sql
UTF-8
1,327
2.625
3
[]
no_license
drop table se_process_status create table se_process_status ( account_id numeric(10), administrator varchar(40), target_nav_time varchar(40), fund_initialization numeric(10), capital_stock numeric(10), corp_action numeric(10), trades numeric(10), income numeric(10), amortization numeric(10), expenses numeric(10), ...
true
723382bd2c89c963741514e7fec8b95dc4d14dac
SQL
kerwin-wang/ssm-shiro
/ssm-shiro-common/src/main/resources/sql/CreateSql.sql
UTF-8
289
3.09375
3
[]
no_license
CREATE TABLE permissions ( uid INT(11) NOT NULL AUTO_INCREMENT COMMENT 'id', name VARCHAR(50) NOT NULL DEFAULT '' COMMENT '用户名', url VARCHAR(255) DEFAULT '' COMMENT '密码', PRIMARY KEY (uid) )ENGINE = InnoDB DEFAULT CHARSET = utf8; EXPLAIN SELECT * FROM user WHERE id = 3;
true
f84040f40e9dda20b84e58fcf73514aac0370725
SQL
bhowmikp/hackerrank-sql
/basic_join/average_population_of_each_continent.sql
UTF-8
349
3.984375
4
[ "MIT" ]
permissive
-- Given the CITY and COUNTRY tables, query the names of all the continents -- (COUNTRY.Continent) and their respective average city populations -- (CITY.Population) rounded down to the nearest integer. SELECT COUNTRY.CONTINENT, FLOOR(AVG(CITY.POPULATION)) FROM CITY INNER JOIN COUNTRY ON CITY.COUNTRYCODE = COUNTRY.COD...
true
8851ba19c38de4388807db8039cf30a604aaa0a1
SQL
zhixinTeam/ZXDelivery
/Release/云南红塔/脚本/查询物料.sql
UTF-8
396
2.890625
3
[]
no_license
select FItemID,FName,FFullName,FDefaultLoc from t_icitem where fparentid='3380'or fparentid='3390' or fparentid='3392' order by FItemID --查询物料 select 'StockItem' as D_Name, FName as D_Value, FFullName as D_Desc, (case when CharIndex('包装', FFullName) > 0 then 'D' else 'S' end) as D_Memo, FDefaultLoc as D_Param...
true
d66c4e41af9507456c95b5cf63b8859b7e519ce2
SQL
normrothwell/TechElevator
/employees/database/employeeDatabase.sql
UTF-8
1,308
3.4375
3
[]
no_license
CREATE TABLE employee ( employeeId serial, firstName varchar(50) NOT NULL, lastName varchar(50) NOT NULL, addressId integer NULL, contactEmail varchar(50) NOT NULL, companyEmail varchar(50) NOT NULL, birthDate varchar(50) NOT NULL, hiredDate varchar(50) NOT NULL, CONSTRAINT PK_employee PRIM...
true
697e88cbb6cbc4c9d713642037de1b592a10da8b
SQL
MSD-ET/MDS_Original
/customer-api/bin/main/data.sql
UTF-8
1,325
2.71875
3
[]
no_license
insert into CUSTOMER (ID, NAME, PASSWORD, EMAIL) VALUES (0, 'Bruce', 'pass', 'bruce@a.com'); insert into CUSTOMER (ID, NAME, PASSWORD, EMAIL) VALUES (1, 'Paul', 'pass', 'paul@b.com'); insert into CUSTOMER (ID, NAME, PASSWORD, EMAIL) VALUES (2, 'Rick', 'pass', 'rick@c.com'); insert into EVENT (ID, CODE, TITLE, DESCRIPT...
true
14b4eb76826d610a3154a4cdd3169833656c343a
SQL
rotchotcho/CarShare
/DB/Procedure/moyenne_avis.sql
UTF-8
250
2.796875
3
[]
no_license
/* mysql -h venus -u fvielmas fvielmas -p Fichier tables.sql 21507569, Bourdeau, Clement 20130265, Vielmas, Florent */ DROP PROCEDURE `avg_avis`; CREATE PROCEDURE `avg_avis` (membre INT,OUT moy_avis DOUBLE) SELECT avg(NOTE) INTO moy_avis FROM AVIS WHERE ID_COND=membre;
true
361cdae9afcde4aa95009c28933041f6c83a0215
SQL
ErvaCelik/PatikaSQLOdevler
/Odevler/Odev1.sql
UTF-8
349
3.09375
3
[]
no_license
SELECT title, description FROM film; SELECT * FROM film WHERE length > 60 AND length < 75; SELECT * FROM film WHERE rental_rate = 0.99 AND ( replacement_cost = 12.99 OR replacement_cost = 28.99 ); SELECT last_name FROM customer WHERE first_name = 'Mary'; SELECT * FROM film WHERE NOT length > 50 AND NOT ( rental_rate = ...
true
343bfa3b3cc41e5f3e41989f8c846a49f9a84619
SQL
hhalisa/psu-database-sql
/questions/02/nested-twice.sql
UTF-8
155
3.328125
3
[]
no_license
SELECT s.sname FROM sailor s WHERE s.sid IN( SELECT r.sid FROM reservation r WHERE r.bid IN( SELECT b.bid FROM boat b WHERE b.color = 'red' ) );
true
d492c7a07712b4dfbe99b9bc7e995be559bc540d
SQL
JuliaLjung/Lab-5
/SQL/book_lab1.sql
UTF-8
4,882
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Värd: localhost -- Tid vid skapande: 11 okt 2017 kl 11:36 -- Serverversion: 10.1.16-MariaDB -- PHP-version: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT...
true
b10c7caa3a9780dd7cc2b344d6fb91ca3ceb5f4a
SQL
SashyCashy/SQL-Spatial-Assignments
/states.sql
UTF-8
2,288
3.078125
3
[]
no_license
-- states.sql -- -- This script creates the spatial table. -- -- Execute this script before attempting to use SQL*Loader -- to load the states.ctl file. -- -- This script will also populate the USER_SDO_GEOM_METADATA table. -- Loading the .ctl file will populate the STATES table. -- -- To load the .ctl file...
true
b7f0ed13a8b4d7ace787de20c6195867f2b368f6
SQL
hoang92-gtvt/m3-w1-d3
/QuanLyTour.sql
UTF-8
5,920
3.609375
4
[]
no_license
Create database QuanLyTour; use QuanLyTour; create table DiemDulich( DiemDulichID int primary key auto_increment, DiemDulichName varchar(30) not null, Description varchar(100) not null, Price int not null, ...
true
2c7384c4a4ee5d3c7721e6fc8670df04ead523e9
SQL
gentrexha/business-intelligence
/44_VU_BI_2019_Assignment_1/PartB_DWH_44/task1/oltp/TB_CustomerAddress.sql
UTF-8
403
3.21875
3
[]
no_license
CREATE TABLE `TB_CustomerAddress` ( `CustomerID` INT NOT NULL, `AddressID` INT NOT NULL, `AddressType` TEXT NOT NULL, CONSTRAINT PK_CustomerAddress PRIMARY KEY (`CustomerID`,`AddressID`), CONSTRAINT FK_AddressID_CustomerAddress FOREIGN KEY (`AddressID`) REFERENCES TB_Address(`AddressID`), CONSTRAINT FK_CustomerID...
true
8a40d43419f9ca6c1ddb70ae1b371a1909b95938
SQL
210419-USF-BSN-Java/Felix-Nguyen
/Employee Reimbursement System/SQL Script/project1.sql
UTF-8
5,433
2.8125
3
[ "MIT" ]
permissive
create table if not exists ers_users( user_id SERIAL primary key, user_username VARCHAR(100) not null, user_password VARCHAR(100) not null, user_firstname VARCHAR(100) not null, user_lastname VARCHAR(100) not null, user_email VARCHAR(150) not null, user_role VARCHAR(50) not null ); drop table ers_users create...
true
89b96d42868feed1128c2633790fed81e41cb043
SQL
test9984/user-management
/user-management/src/main/resources/data.sql
UTF-8
4,539
2.6875
3
[]
no_license
INSERT INTO user_management.thirdeye_permission ( permission_name, permission_desc ) VALUES ("APP_LOGIN","Root permission to allow the user to login to the application"), ("USER_MODIFY ","Ability to create / modify a user"), ("USER_VIEW ","Ability to view users in the system"), ("USER_ROLE_VIEW","Ability to view us...
true
0a5ca70425da4b47a4e219d9de49d4be4151444a
SQL
politeperson/Sistema-Gestor-de-Eventos
/Base de Datos/BD.sql
UTF-8
11,476
3.1875
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Sun Sep 13 11:04:58 2020 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ON...
true
aca011d698f80f491805d1de600d26fcdacaa101
SQL
vertinskydv/webix_node
/db.sql
UTF-8
5,567
3
3
[]
no_license
-- -------------------------------------------------------- -- Хост: localhost -- Версия сервера: 5.7.20-log - MySQL Community Server (GPL) -- Операционная система: Win64 -- HeidiSQL Версия: 9.4.0.5125 -- --------------------------------------------------------...
true
c6639f4f32bcedf502be4e47dc44820ec8124d33
SQL
galigaribaldi/CursoSQL
/SQL1/Martes/Constraints/ejemplo1.sql
UTF-8
508
3.125
3
[]
no_license
/*Tipo: por columna*/ create table concepto_pago (concepto_id numeric(10, 0) constraint concepto_pago_pk primary key, tipo_concepto char(1) not null constraint cp_tipo_concepto_chk check ( tipo_concepto in ('A', 'B', 'C')), /*No se puede agregar otro constraint en el mismo campo*/ clave varchar2(3) not null const...
true
e7cef95735b48f1169e7e526bda9ad805fa3c7c8
SQL
Phuzer/React-it
/Results/OpinionShare_2017-04-05.sql
UTF-8
24,783
3.421875
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.7.12) # Database: OpinionShare # Generation Time: 2017-04-05 18:27:20 +0000 # ******************************************...
true
eeadb79ab18aaf91dc9045a8fc7ea292964c0fe1
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day11/select1830.sql
UTF-8
191
2.75
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-10T18:30:00Z' AND timestamp<'2017-11-11T18:30:00Z' AND SENSOR_ID='111d7012_c142_4d4b_a756_2d0a3c68d6ce'
true
787b9916be52df22e418a0847afb14b11e80a347
SQL
luisaoxxy/justWedding
/src/main/scripts/weddings.sql
GB18030
6,109
3.125
3
[]
no_license
<<<<<<< Updated upstream -- Volcando estructura de base de datos para justWeddings DROP DATABASE IF EXISTS `justWeddings`; CREATE DATABASE IF NOT EXISTS `justWeddings` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `justWeddings`; -- Volcando estructura para tabla justWeddings.events ======= -- Volcando estructur...
true
a8aee68acc00f6b9198fc389861b9fe89aab4b1d
SQL
Jack1shao/wbw
/oldfiles/wbw_ouzhi.sql
UTF-8
1,293
2.59375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 127.0.0.1 Source Server Version : 50714 Source Host : localhost:3306 Source Database : mysql Target Server Type : MYSQL Target Server Version : 50714 File Encoding : 65001 Date: 2018-09-17 16:46:40 */ SET FOREIGN_KEY_CHECKS=0; -- ---...
true
26d9d79df98ebccbb5f090697457ba2259356a3d
SQL
selcukakarin/databases
/bigquery/unnest_skewed_non-skewed.sql
UTF-8
1,016
3.28125
3
[]
no_license
create or replace table `dsmbootcamp.selcuk_akarin.ds_non_skewed_1` as select t1 as _key1 from unnest(generate_array(1, 10000, 1)) t1 union all select -1 as _key1; --- 10001 satırlık bir veri oluşturuyoruz. her değer homojen dağılmış non-skewed create or replace table `dsmbootcamp.selcuk_akarin.ds_non_skewed_2` as s...
true
4ee29aeef77696b42ba8ff34f2d1b87048a449b1
SQL
JeanPi2603/prueba_subida
/load.sql
UTF-8
13,621
2.75
3
[]
no_license
/* VICERRECTORADO DE INVESTIGACION */ insert into GENE_DEPENDENCIA (V_IDDEP, V_DESDEP, V_ESTADO, V_SIGLADEP) values ('4', 'VICERRECTORADO DE INVESTIGACION', 'A', 'VICERRECTORADO DE INVESTIGACION'); insert into GENE_DEPENDENCIA (V_IDDEP, V_DESDEP, V_ESTADO, V_SIGLADEP) values ('4.1', 'VICERRECTOR DE INVESTIGACIÓN', 'A...
true
c26eae8f67834ebbc26c2382c114ac1aac200a41
SQL
bellmit/practicas_empresa
/opentach-tachofiletransfer/opentach-tachofiletransfer-server/target/classes/tachofiletransfer-sql/getContractToAsignVU.sql
UTF-8
429
3.140625
3
[]
no_license
SELECT CDVEMPRE_REQ_REALES.NUMREQ, CDVEHICULOS_EMP.CIF FROM CDVEMPRE_REQ_REALES, CDVEHICULO_CONT, CDVEHICULOS_EMP WHERE CDVEMPRE_REQ_REALES.F_BAJA IS NULL AND CDVEHICULO_CONT.F_BAJA IS NULL AND CDVEMPRE_REQ_REALES.NUMREQ = CDVEHICULO_CONT.CG_CONTRATO AND CDVEHICULO_CONT.MATRICULA = CDVEH...
true
e8f48fd6bced131f6d9f3f7273891f359bebca8c
SQL
HendricksK/s2s
/App/Database/migrations_sql/create_product.sql
UTF-8
204
3.046875
3
[]
no_license
create table product ( id int NOT NULL AUTO_INCREMENT, sku varchar(100), date_created timestamp DEFAULT now(), date_updated timestamp, stock int DEFAULT 0, UNIQUE (sku), PRIMARY KEY (id) );
true
1450abc43f58e191ae42cc1fca46bd5c08d4aa4a
SQL
melalex/RacingBets
/database/mysql/main/scripts/bets.sql
UTF-8
5,233
3.625
4
[]
no_license
DELIMITER // CREATE PROCEDURE horse_racing.fix_race_result( IN id_of_race INT UNSIGNED, IN participant1 INT UNSIGNED, IN participant2 INT UNSIGNED, IN participant3 INT UNSIGNED, IN participant4 INT UNSIGNED ) BEGIN DECLARE type_of_bet ENUM ('Show', 'Place', 'Win', 'Quinella', 'Exacta', 'Trifecta', 'S...
true
0177ee6088492af92f471a351941ac530f72f4a9
SQL
keithburgoyne/Cme
/sql/tables/CMECredit.sql
UTF-8
471
3.109375
3
[ "MIT" ]
permissive
create table CMECredit ( id serial, quiz integer references Inquisition(id) on delete set null, front_matter integer not null references CMEFrontMatter(id) on delete cascade, hours numeric(5, 2) not null, passing_grade decimal(5, 2), email_content_pass text, email_content_fail text, resettable boolean not nul...
true
db7eca28acc6bdd9729f8b753952f442c62573f3
SQL
traxthunder/Beyond-AC
/New Roulea/Weenies/5000380 Pantaloons Of Acid.sql
UTF-8
3,234
2.5625
3
[]
no_license
DELETE FROM `weenie` WHERE `class_Id` = 5000380; INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`) VALUES (5000380, 'PANTS5', 2, '2020-01-09 03:02:32') /* Clothing */; INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`) VALUES (5000380, 1, 4) /* ItemType - Clothing */ ...
true
7ad858718b9a314c7dd4bf13d0a47cfa19a8919e
SQL
LyamAL/ssncv
/ssncv.sql
UTF-8
6,834
3.25
3
[]
no_license
DROP DATABASE IF EXISTS `ssncvapi`; CREATE DATABASE `ssncvapi`; DROP TABLE IF EXISTS `surrounding`; CREATE TABLE `surrounding` ( `id` int(10) NOT NULL AUTO_INCREMENT, `name` varchar(10) DEFAULT NULL, `content` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; INSERT INTO `surroun...
true
b1c034e29b7ec7189c97cd82506943564aab5942
SQL
nishi1612/APFDA
/SQL/apfda.sql
UTF-8
10,169
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 28, 2017 at 04:33 PM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
e045ad0f9c6846444e284834c979ae63a744f3a0
SQL
ThiagoPederzolli/trybe-exercises
/modulo_back-end/bloco_21/dia_2/query2.sql
UTF-8
187
3.1875
3
[]
no_license
Querer trazer city_id, nome da cidade e o endereço em sakila.address: ``` SELECT a.address, a.city_id, c.city FROM sakila.address AS a JOIN sakila.city AS c ON c.city_id = a.city_id; ```
true
3a2cead228775e44c5cb68e959151b49cbb38d3f
SQL
developer-ejobindia/seazoned_web
/seazoned_web_app/DB/service_fields.sql
UTF-8
1,723
2.84375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 09, 2018 at 02:07 PM -- Server version: 5.6.24 -- PHP Version: 7.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
293e02f73cac2991d2b853f95994c119f1579d87
SQL
blakeward05/SQL-Queries
/Build/Dependencies.sql
UTF-8
629
3.3125
3
[]
no_license
SELECT PT.TASK_ID AS PARENT_TASK_ID ,PT.TASK_NAME AS PARENT_TASK_NAME ,T.TASK_ID AS CHILD_TASK_ID ,T.TASK_NAME AS CHILD_TASK_NAME FROM K12INTEL_METADATA.WORKFLOW_DEPENDENCY D ,K12INTEL_METADATA.WORKFLOW_TASK T ,K12INTEL_METADATA.WORKFLOW_TASK PT ,K12INTEL_METADATA.WORKFLOW_PACKAGE P ...
true
54e7850cb3edbe657caefa4506facbe04ec9ec55
SQL
lucaburatti7/A00-Training-plan
/讲义_旧版/ZLJPj/SQL文样本/MAN_MISYORI.SQL
SHIFT_JIS
962
2.796875
3
[]
no_license
CREATE TABLE MAN_MISYORI ( [ԍ VARCHAR2(16) NOT NULL, _ԍ CHAR(9) NOT NULL, } CHAR(3) NOT NULL, ƏR[h CHAR(4) NOT NULL, Ə VARCHAR2(20) NOT NULL, [U[R[h CHAR(8) NOT NULL, ...
true
8e6c937f2ce54a8a71bca1ec8ddd6ac4a48921f2
SQL
TristanLonghibler/javaWeb
/4010_JavaWeb_Project1CFINAL/Project1C/surveyresults (1).sql
UTF-8
1,642
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 01, 2020 at 11:20 PM -- 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
9855dd68ab590663839dad3169974d70a2ea8b03
SQL
matheusferreira195/sql
/SQLQuery2.sql
UTF-8
1,289
4.3125
4
[]
no_license
SELECT QUANTITY, PRODUCT_NAME FROM SALES FULL JOIN PRODUCTS ON SALES.PRODUCT_ID = PRODUCTS.PRODUCT_ID; SELECT * FROM sales; SELECT* FROM PRODUCTS p SELECT QUANTITY, PRODUCT_NAME FROM SALES, PRODUCTS; SELECT SALES.*, PRODUCTS.* FROM SALES INNER JOIN PRODUCTS ON SALES.PRODUCT_ID = PRODUCTS.PRODUCT_ID ...
true
c36b56a6915bf6fd95a8b97e89f0d87c52df49f0
SQL
0x141026/sqlserver
/语句注意点/groupby和leftjoin.sql
GB18030
1,376
3.90625
4
[]
no_license
SELECT b.bz, a.bjh, a.xmmc, substring(convert(varchar,a.skrq,23),0,5)+''+substring(convert(varchar,a.skrq,23),6,2)+''+substring(convert(varchar,a.skrq,23),9,2)+'ա'+datename(weekday, a.skrq) skrq FROM pxb_pxkb a ,pxb_pxxm b where a.bjh='20190501' and a.bjh =b.bjh --and a.xmmc=b.xmmc group by a.bjh,conve...
true
78099a202cb701004682810c8a123ba5bb8fd43b
SQL
brunocaregnato/URI
/SQL/2605.sql
UTF-8
153
3.375
3
[]
no_license
select p.name, s.name from products p join providers s on p.id_providers = s.id join categories c on p.id_categories = c.id where p.id_categories = 6
true