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
9c8f6ee58ddd0b640db7f11c15879c7dcf71c048
SQL
mfrazzini-MIDS/W205
/exercise_1/investigations/hospital_variability/hospital_variability.sql
UTF-8
1,393
3.859375
4
[]
no_license
-- Query 1: Analysis of variability in procedure_effective_care SELECT A.measure_id, A.measure_name, incomplete_measures, round((incomplete_measures/4451),3) as avg_completeness FROM (SELECT m.measure_id, m.measure_name, count(*) as incomplete_measures FROM hospital h, procedure_effective_care p, measure_dates m WH...
true
7840fcf10780dae17e1b67539e8a294f96b51c8d
SQL
kim-913/CSE414_Database
/HW3/hw3-q1.sql
UTF-8
976
3.09375
3
[]
no_license
SELECT DISTINCT F1.origin_city AS origin_city, F1.dest_city AS dest_city, MAX(F2.actual_time) AS time FROM Flights AS F1, Flights AS F2 WHERE F1.origin_city = F2.origin_city GROUP BY F1.origin_city, F1.dest_city, F1.actual_time HAVING F1.actual_time = MAX(F2.actual_time) ORDER BY F1.origin_city, F1.dest_city ASC; /*ro...
true
8a3834c0340ddfdd2e00c283159495b28459d8e3
SQL
ireapps/census
/tools/sql/ire_export/ire_P40.sql
UTF-8
1,388
2.78125
3
[ "MIT" ]
permissive
-- P40. FAMILY TYPE AND AGE FOR OWN CHILDREN UNDER 18 YEARS -- designed to work with the IRE Census bulk data exports -- see http://census.ire.org/data/bulkdata.html CREATE TABLE ire_p40 ( geoid VARCHAR(11) NOT NULL, sumlev VARCHAR(3) NOT NULL, state VARCHAR(2) NOT NULL, county VARCHAR(3), cbsa VARCHAR(5), c...
true
e33023cda47a6f2c46506127dec0aa9ad32d91f9
SQL
ghlacerda/Consultas
/Consultas/Incidente #117022 - Desenvolvimento de relatórios - Robbyson Indicador 203.sql
UTF-8
3,962
3.578125
4
[]
no_license
DROP TABLE IF EXISTS #TempHostasMotorista SELECT MOTORISTA.CGCCPF AS colaborador_identification ,203 AS indicador_identification ,Cast((ISNULL(ISNULL(V.K_DATACHEGADAOMINILINK,V.K_DATACHEGADADIGITADA),V.CHEGADAEFETIVA) - ISNULL(ISNULL(V.K_DATASAIDAOMNILINK,V.K_DATASAIDADIGITADA),V.INICIOEFETIVO)) as Float) * 24.0...
true
e18e9ada34be98ca120a531ca3c85c1bf1008bdb
SQL
Crigerprogrammer/Fundamentos_BD
/preguntando_bd.sql
UTF-8
1,392
4.375
4
[]
no_license
-- QUERY Para saber todos los tags de los post de manera descendente SELECT posts.titulo, GROUP_CONCAT(nombre_etiqueta) FROM posts INNER JOIN posts_etiquetas ON posts.id = posts_etiquetas.post_id INNER JOIN etiquetas ON etiquetas.id = posts_etiquetas.etiqueta_id GROUP BY posts.id ORDER BY num_etiquetas DESC; -- Query...
true
b8cb1091cebd621f74f4f65b1121c4ace37db97d
SQL
imansetyawan/testingslug
/laravel_blog.sql
UTF-8
17,236
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 25 Nov 2016 pada 12.06 -- Versi Server: 10.1.9-MariaDB -- PHP Version: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
5fea561c7c319ea5626f9d5e3b84c833c00fa1d8
SQL
BrahmaAztra/BrahmaAstra
/samueldb.sql
UTF-8
1,622
3.1875
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 17, 2018 at 11:11 AM -- Server version: 5.7.20 -- PHP Version: 7.0.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
b620003e8570a89645de22dd87a96c30c3a66828
SQL
dayvillefire/er-processing
/reports/ExtricationMiscodings.sql
UTF-8
549
3.09375
3
[]
no_license
### ### ExtricationMiscodings.sql ### @jbuchbinder ### ### Designed to look for mis-codings involving MVAs which should have been ### coded as 352s. ### SELECT '2018-01-01 00:00:00' INTO @startPosition; SELECT '2022-01-01 00:00:00' INTO @endPosition; SELECT i.IncidentDateTime, i.RunNumber, i.IncidentType, REP...
true
46388e4c728c35475b1678b7ac84c4681c6349f9
SQL
llw33556/apex-blog
/APEX/f401/application/shared_components/user_interface/shortcuts/blog_rss_link.sql
UTF-8
824
2.609375
3
[ "MIT" ]
permissive
prompt --application/shared_components/user_interface/shortcuts/blog_rss_link begin -- Manifest -- SHORTCUT: BLOG_RSS_LINK -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2020.10.01' ,p_release=>'20.2.0.00.20' ,p_default_workspace_id=>18303204396897713 ,p_default_application_id=>401 ,p_de...
true
7e78ad631d26e852c5c6f893b5e28919d963afda
SQL
Sarjuuk/aowow
/setup/updates/1488745158_02.sql
UTF-8
7,711
3.234375
3
[]
no_license
-- alterations ALTER TABLE `aowow_spell` ADD COLUMN `spellVisualId` smallint(5) unsigned NOT NULL AFTER `rankNo`; ALTER TABLE `aowow_items` ADD COLUMN `spellVisualId` smallint(5) unsigned NOT NULL DEFAULT '0' AFTER `displayId`, ADD COLUMN `material` tinyint(3) NOT NULL DEFAULT '0' AFTER `lockId`, ADD ...
true
f9e94a09b0bdfcf62af71cc9908ec31d75018507
SQL
delphi1977/NewDicomPACS
/Database/oracle/tables/tdispcard_naz.sql
WINDOWS-1251
669
3.15625
3
[]
no_license
DROP TABLE ASU.TDISPCARD_NAZ CASCADE CONSTRAINTS / -- -- TDISPCARD_NAZ (Table) -- CREATE TABLE ASU.TDISPCARD_NAZ ( FK_NAZID NUMBER, FK_DISPKARDID NUMBER, FD_NAZ DATE DEFAULT SYSDATE ) TABLESPACE USR PCTUSED 0 PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( ...
true
51fb91aa279d7da0014701be128c2e2a4fc0d18f
SQL
jabautista/GeniisysSCA
/src/main/resources/sql/procedures/delete_all_tables_for_pack.prc
UTF-8
1,194
2.96875
3
[]
no_license
DROP PROCEDURE CPI.DELETE_ALL_TABLES_FOR_PACK; CREATE OR REPLACE PROCEDURE CPI.DELETE_ALL_TABLES_FOR_PACK (p_pack_par_id IN GIPI_PACK_PARLIST.pack_par_id%TYPE) IS /* ** Created by : Veronica V. Raymundo ** Date Created : March 04, 2011 ** Reference By : (GIPIS002A - Package PAR Basic Information) **...
true
87b816004d376bf308a686518a6cd2b2f0cabb88
SQL
JStein92/Mario-Food-Products
/mario-food.sql
UTF-8
3,362
3.1875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Oct 20, 2017 at 11:57 PM -- Server version: 5.6.34-log -- PHP Version: 7.1.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
5d18dc5024e4760856274cc0184ea44e80532b3b
SQL
LorenaArquero/PracticaConcesionario
/practica_php.sql
UTF-8
4,153
3.40625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 05-05-2018 a las 16:44:51 -- Versión del servidor: 10.1.31-MariaDB -- Versión de PHP: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone ...
true
1082e2502bffc245d5f5417400fd94b82c762119
SQL
smp-org/smp
/src/Smp.Migrations/Migrations/Up/201912261626_DropPostsTable.sql
UTF-8
361
3.109375
3
[ "MIT" ]
permissive
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'Comments' AND COLUMN_NAME = 'PostId' AND TABLE_SCHEMA = 'DBO') BEGIN ALTER TABLE Comments DROP CONSTRAINT FK_Comments_PostId_Posts_Id ALTER TABLE Comments DROP COLUMN PostId; END IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAM...
true
56f79eaf8d729f78bb7d8e3881923141644d91a1
SQL
CUBRID/cubrid-testcases
/medium/_02_xtests/cases/joins6.sql
UTF-8
380
2.96875
3
[ "BSD-3-Clause" ]
permissive
autocommit off; select shipment_id, product.product_code, to_location, original_loc from joe.shipment_c s where product.product_code > all (select product.product_code from joe.inventory_c i where product.product_code < 3 ...
true
33ca9361a71f5816b9007bd1557e348e63094092
SQL
fandashtic/arc_chennai
/Sivabalan-SQL/SQL_STORED_PROCEDURE/mERP_sp_Load_GRNDetail.sql
UTF-8
898
3.140625
3
[]
no_license
CREATE PROCEDURE mERP_sp_Load_GRNDetail(@GRNID INT) AS Select "ItemCode" = G.Product_Code , "ItemName" = I.ProductName , "UOMQty" = G.UOMQty , "FreeQty" = G.FreeQty , "UOMID" = G.UOM, "UOMDescription" = (Select IsNull(Description, 'Multiple') From UOM Where UOM = G.UOM), "TaxID" = IsNull((select top 1 GRNTAXID from b...
true
60803febd7172f69034cb91b182add54e95ffe4b
SQL
WYCisme/Xblog
/src/main/resources/20190802.sql
UTF-8
16,199
3.40625
3
[]
no_license
SET FOREIGN_KEY_CHECKS=0; CREATE TABLE `blog`.`QRTZ_BLOB_TRIGGERS` ( `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `TRIGGER_NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `TRIGGER_GROUP` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, ...
true
104b2d4b25ae681c21de42c98e03992121b17164
SQL
erikamart/mysql_projects
/exercise03/exercise3.sql
UTF-8
6,906
4.5625
5
[ "MIT" ]
permissive
/* Use the chinook database. Unless otherwise noted use explicit syntax. */ -- Exercise 3 /* 1. Write a select statement that joins the album table to the artist table and returns these columns for every Album in the database: AlbumId, Title, ArtistId, and the artist's Name */ SELECT Albumid, Title, album.ArtistI...
true
0568922c3d0acc1dac50048aed03a12d9b870cbc
SQL
codeforkansascity/address-api
/data/KCMO-all-addresses/create-hud.sql
UTF-8
1,667
3.171875
3
[ "MIT" ]
permissive
SET search_path = public, pg_catalog; -- -- Name: hud_addresses_id_seq_02; Type: SEQUENCE; Schema: public; Owner: c4kc -- DROP TABLE IF EXISTS hud_addresses ; DROP SEQUENCE IF EXISTS hud_addresses_id_seq_02; DROP TABLE IF EXISTS kcmo_all_addresses ; DROP SEQUENCE IF EXISTS kcmo_all_addresses_id_seq; DROP TABLE IF ...
true
82e2579e127fa23a94dd945d0f845c5f3a21e3cc
SQL
iceqiw/Wechat-project
/wechat-bg/conf/evolutions/default/2.sql
UTF-8
540
3.578125
4
[ "CC0-1.0" ]
permissive
# --- !Ups create table if not exists scm.user ( id bigint auto_increment, telephone varchar(64) not null, nick_name varchar(255) null, password varchar(255) not null, modify_time timestamp default CURRENT_TIMESTAMP not nul...
true
20bee0f10a409979dbb2a39083c8466e017a77b5
SQL
vctrmarques/interno-rh-sistema
/rhServer/src/main/resources/db/migration/sprint_1-10/V1_2019_03_15_15_03__ALTER_TABLE_REFERENCIA_SALARIAL.sql
UTF-8
455
2.65625
3
[]
no_license
-- Davi Queiroz -- atualização do menu referente a referencia salarial BEGIN IF (SELECT COUNT(id) FROM referencia_salarial WHERE descricao IS NOT NULL) > 0 UPDATE referencia_salarial SET descricao = 'refatoracao tabela'; ALTER TABLE referencia_salarial ALTER COLUMN descricao VARCHAR(255) NOT NULL; END BEGIN...
true
b1dbf3d02fbe630c689146409dd1e9f36a32f9a6
SQL
boomiflow-community/useful-db-queries
/postgresql/delete_duplicates.sql
UTF-8
147
2.96875
3
[]
no_license
WITH uniquerow AS (SELECT DISTINCT ON (col1, col2) * FROM db_test) DELETE FROM db_test WHERE db_test.pk_id NOT IN (SELECT pk_id FROM uniquerow);
true
1474af845456b6a92fa3276821324eaab56cd604
SQL
koheitakahashi/rakuraku_ERD_lesson
/ERD_lesson_2.sql
UTF-8
2,587
3.421875
3
[]
no_license
CREATE TABLE Customer ( customer_id INTEGER NOT NULL, customer_name VARCHAR(100), name_furigana VARCHAR(100), ticket_number INTEGER, PRIMARY KEY (customer_id) ); CREATE TABLE ContactMethod ( contact_method_id INTEGER NOT NULL, contact_method_name VARCHAR(100), PR...
true
3aaf749589641e7ec69fed61998f96681a802397
SQL
carlosgarciaborrego/Gasolinera
/sql/5A-PAQUETES_CABECERAS.sql
UTF-8
9,817
3.28125
3
[]
no_license
-- PAQUETES - CABECERAS-- --Clientes CREATE OR REPLACE PACKAGE Pruebas_Clientes IS PROCEDURE inicializar; PROCEDURE insertar(nombre_prueba VARCHAR2, w_nombre IN clientes.nombre%TYPE, w_apellidos IN clientes.apellidos%TYPE, w_dni IN clientes.dni%TYPE, w_telefono IN clientes.telefono%TYPE, w_correo IN clientes...
true
ce201868700723f1f393f3aad6848701e3d7dfca
SQL
PraderioM/GamePlatform
/backend/games/dixit/sql_scripts/dixit_leader_board.sql
UTF-8
411
3.40625
3
[]
no_license
create table dixit_leader_board ( player_name text constraint dixit_leader_board_users_name_fk references users, wins integer, last_played uuid, played integer, points integer ); alter table dixit_leader_board owner to admin; create index dixit_leader_board_player_name_index on dixit_leader_board (player_n...
true
25c16f19a8f7fe51f3cfe08c795c6f79f2b6fba7
SQL
BolderBrighterExperience/playground
/intern08/TEMA5_BUIAC_ANDREI_INTERN08_01/PACKAGES/pkg_08_pkg_hr_employees_specifications.sql
UTF-8
1,663
2.75
3
[]
no_license
--package specifications CREATE OR REPLACE PACKAGE pkg_hr_employees IS PROCEDURE prc_add_employee(p_employee_id IN NUMBER, p_first_name IN VARCHAR2, p_last_name IN VARCHAR2, p_email IN VARCHAR2, ...
true
c7ca984eca698d9d40a4603b5b1545a7a1860da1
SQL
Physalium/MySQL
/ZadKontrolne/zd6.sql
UTF-8
1,171
4.28125
4
[]
no_license
-- 1 select m.Name "Stolica ", m.Population "Populacja w stolicy", p.Name "Panstwo", p.Population "Populacja panstwa" from city m, country p where m.ID = p.Capital and p.Continent = 'Europe'; -- 2 select city.Name from city, country where CountryCode = Code and Continent = 'Europe' order by city.Populat...
true
57193c9e45bf684554a1772c0a515b0f36a18a46
SQL
DrSkyFox/SendAndCall
/sql/cinema_public_customer_1.sql
UTF-8
2,179
3.171875
3
[]
no_license
create table customer ( id serial not null constraint customer_pk primary key, session_id integer not null constraint customer_session_id_fk references session on delete set null ); alter table customer owner to postgres; create unique index cus...
true
036c75142f052dddea55fd1ab2bed7c35ffc88b8
SQL
daiyuda/db_designer_daiyuda
/designs/1.sql
UTF-8
640
2.828125
3
[]
no_license
-- QUERY 1 DROP TABLE IF EXISTS mv_1; CREATE TABLE mv_1 SELECT l_returnflag, l_linestatus, l_shipdate, SUM(l_quantity) AS sum_qty, SUM(l_extendedprice) AS sum_base_price, SUM(l_extendedprice * (1 - l_discount)) AS s...
true
33a4a95ae978f832e4b7b4823660adcd81c2d6f6
SQL
Gumichan01/android-resto-m1
/script/test.sql
UTF-8
2,819
3.015625
3
[]
no_license
-- Tests .print "\n======== Tests ========\n" insert into Note(valeur) values(3); insert into Note(valeur) values(1); insert into Note(valeur) values(4); select * from Note; .print "Test Note negatif" insert or ignore into Periode(jour,heure_ouverture,heure_fermeture) values(null,9,19); insert or ignore into Period...
true
ac4ee01c386dc4a3681bb46eb6f52c5c94eaaafe
SQL
PedroJuliari/ERP
/public_html/erp-novo/banco/entrada_avulsa.sql
UTF-8
1,679
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 26-Abr-2019 às 23:20 -- Versão do servidor: 10.1.30-MariaDB -- PHP Version: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
d08e3b60d8a2895ef4033b15e57153631b656f0c
SQL
prolaymukherjee/TeacherStudentCommunicationSystem_Laravel
/enrollment.sql
UTF-8
14,018
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 04, 2018 at 05:10 PM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.0.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
a8934bbbcfca88fdbe0a0b8cde6b8282eae9c891
SQL
spsanderson/bmhmc-sql
/SQL/VISITS_2_MIDNIGHTS.sql
UTF-8
665
2.9375
3
[]
no_license
SELECT PtNo_Num , Med_Rec_No AS MRN , vst_start_dtime AS [ADMIT DTIME] , DATEPART(hour, vst_start_dtime) AS [ADMIT HOUR] , 24-DATEPART(HOUR, VST_START_DTIME) AS [HRS 2 MIDNIGHT] , 24+(24-DATEPART(HOUR, VST_START_DTIME)) AS [HRS 2 SECOND MI...
true
4e11ccad4dcb28218381004febd5d54d15d485c4
SQL
SASCopenhaver/References
/CHECKLIST/SQL/sELECT pROJECTS.SQL
UTF-8
1,600
2.765625
3
[]
no_license
select p.prj_project_id as PrjID ,p.prj_project_number as PrjNum ,p.prj_title as PrjTitle ,p.prj_fiscal_year ...
true
cfe39816a6ef54f3cfd80b44ff245213e8d712bd
SQL
wchipchase/chinookSQL
/top_country.sql
UTF-8
171
3.28125
3
[]
no_license
/*top_country.sql: Which country's customers spent the most?*/ select top(1) BillingCountry, sum(Total) as TotalSales from Invoice group by BillingCountry order by 2 desc
true
72f2f66605c665d8fc7ea46964b7449bdb1e7504
SQL
anweshabhar/hotel-reservation-system
/hotel-information-service/src/main/resources/schema.sql
UTF-8
442
3.546875
4
[]
no_license
DROP TABLE IF EXISTS Hotel_Info; CREATE TABLE Hotel_Info ( hotel_Id int(18) PRIMARY KEY, hotel_Name varchar(25) NOT NULL, hotel_Desc varchar(100), city varchar(25) ); DROP TABLE IF EXISTS Rooms; CREATE TABLE Rooms ( room_Id int(18) PRIMARY KEY, hotel_Id int(18), room_Type varchar(25) NOT NULL, price ...
true
48702b38fb07b5c1a34b09d7e1a76a5838d76660
SQL
qigongcoder/PHP-Easysteps
/13_MySQL_Handle-data/03_update_where.sql
UTF-8
539
3.5
4
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS tiles ( id INT AUTO_INCREMENT PRIMARY KEY, pattern CHAR(16), color CHAR(16), price DECIMAL(6,2) ); INSERT INTO tiles(pattern, color, price) VALUES ("Spring","Green",9.99), ("Summer","Yellow", 12.99), ("Autumn","Brown", 9.99), ("Winter","Blue", 8.99); SELECT * FROM tiles; UPDATE tile...
true
db44ea1b66906bea35d42baabd8e96c1dce7d764
SQL
cyclestreets/cyclestreets-setup
/install-osboundaryline/optimizations.sql
UTF-8
8,614
3.875
4
[]
no_license
-- Changes to the OS Boundary Line database from the directly provided version -- These changes are aimed at helping performance. -- Load this file using e.g.: -- mysql osboundaryline < /opt/cyclestreets-setup/install-osboundaryline/optimizations.sql -- List the distinct area_description /* select area_description, c...
true
d12152fd25b7950381cca4ee723a02d591e1948f
SQL
wddajd/grw
/grw.sql
UTF-8
32,906
3.09375
3
[ "MIT" ]
permissive
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; CREATE DATABASE IF NOT E...
true
982aac2ed0e6c9f75cd14f7c60998c6d410d306a
SQL
chaoting1995/mfee09-proj
/0819-create-datalist.sql
UTF-8
1,395
3.046875
3
[]
no_license
-- 新增 INSERT INTO `address_book` (`sid`, `name`, `email`, `mobile`, `birthday`, `address`, `created_at`) -- 值務必用單引號 -- primary key:NULL,會自動邊流水號 VALUES (NULL, '李小明', 'ming@test.com', '0900000000', '2020-08-04', '台北市', NOW()); -- 新增 -- 用逗號隔開每筆資料 INSERT INTO `address_book` (`sid`, `name`, `email`, `mobile`, `birthday...
true
8998ad1f4eb752bfbcdf9c1b76b7dc9fd7da177a
SQL
rasiyanir/FrontEnd
/Assignments/RDBMS/emp.sql
UTF-8
2,164
3.75
4
[]
no_license
SELECT * FROM riyaz.emp; select ENAME from riyaz.emp where job="Analyst" or job= "Salesman" ; select EMPNO, ENAME,JOB, HIREDATE from riyaz.emp where HIREDATE < "1981-09-30"; select ENAME, JOB from riyaz.emp where NOT job = "Manager"; select ENAME from riyaz.emp where EMPNO IN ('7369', '7521','7839', '7934', '7788'...
true
831c6e70825ac461d11966ce241ce8d4ea865871
SQL
maquiavelo79/bodyflex
/dataBase/[SP]/SP_CP_ADM_CSU_CAT3_CMB.sql
UTF-8
573
3.078125
3
[]
no_license
-- select * from PRODUCTO_CATEGORIA2 CALL SP_CP_ADM_CSU_CAT3_CMB(1 ,@codErr); SELECT @codErr; DROP PROCEDURE IF EXISTS bodyflex.SP_CP_ADM_CSU_CAT3_CMB; CREATE PROCEDURE bodyflex.`SP_CP_ADM_CSU_CAT3_CMB`(IN cat2 INTEGER, OUT codErr INTEGER) BEGIN DECLARE EXIT HANDLER FOR SQLEXCEPTION SET codErr=99; SET codE...
true
362a71816ef78e4292dc297c9a2d4e418e28f863
SQL
pserwylo/herri
/server/db_population/model_attributes/api_attribute.sql
UTF-8
3,286
2.96875
3
[]
no_license
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET search_path = public, pg_catalog; -- -- Data for Name: api_attribute; Type: TABLE DATA; Sche...
true
232b919c4e5dd1e2c0ac1578797241074743d53f
SQL
StechAnurag/mysql
/procedures/withdraw.sql
UTF-8
613
3.640625
4
[]
no_license
-- Dumping structure for procedure health.withdraw DELIMITER // CREATE PROCEDURE `withdraw`( IN account_no INT, IN amount NUMERIC(7,2), OUT success BOOL ) BEGIN DECLARE current_balance NUMERIC(7,2) DEFAULT 0.0; -- check the current balance of the account SELECT balance INTO current_balance FROM accou...
true
d4da091b68478d3bec75669820c93a527b69c7d9
SQL
ahj3859/Advanced_JSP_and_Servlet
/Chap02_Controller/create_data_oracle.sql
UTF-8
2,566
4.09375
4
[]
no_license
drop table board; drop table users; create table users( id varchar2(28) primary key, password varchar2(8) not null, name varchar2(30) not null, role varchar2(5) default 'User' ) create table board( seq number(5) primary key, title varchar2(200) not null, nickname varchar2(30) not null, content...
true
e3f097bed40f38b8bafba7ca73c50439e3393d40
SQL
sciserver/sqlloader
/schema/patches/04-perms.weblog.sql
UTF-8
606
3.234375
3
[]
no_license
---remove skyuser and webuser from weblog db if neccessary print 'removing unneeded users from weblog db' if (select count(*) from sys.database_principals where name = 'skyuser') != 0 begin if (select COUNT(*) from sys.schemas where principal_id=USER_ID('skyuser')) != 0 begin alter authorization on schema::skyuser ...
true
3b7d2f0fbdaf817491643bd7621fd83b3a58f125
SQL
hwxmcMST/SQL
/HW2I_createSKU_DATA.sql
UTF-8
270
3.015625
3
[]
no_license
CREATE TABLE HW2I_SKU_DATA ( SKU Integer NOT NULL, SKU_Description VarChar(30) NOT NULL, Department VarChar(15) NULL, Buyer VarChar(20) NULL, CONSTRAINT HW2I_Sku_DataPK PRIMARY KEY (SKU) );
true
19cc5b1a416455968ac37aeb5726351515f0c993
SQL
eHattori/multiverse
/database/tables/create_table_card.sql
UTF-8
1,020
3.046875
3
[ "ISC" ]
permissive
-- use multiversedb_test executar em ambos ambientes; use multiversedb; CREATE TABLE quality( quality_id int(15) NOT NULL AUTO_INCREMENT, description varchar(2000) NOT NULL, PRIMARY KEY (quality_id) ); CREATE TABLE type( type_id int(15) NOT NULL AUTO_INCREMENT, description varchar(2000) NOT NULL, PRIM...
true
8675b1e0e3023dfdf72b4d705b34895bbd63f33c
SQL
sshyran/gpdb
/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/basic/exttab/read/sql/query03.sql
UTF-8
19,207
2.640625
3
[ "Apache-2.0", "PostgreSQL", "LicenseRef-scancode-rsa-md4", "OLDAP-2.8", "HPND-sell-variant", "BSD-4-Clause-UC", "BSD-3-Clause", "Zlib", "LicenseRef-scancode-zeusbench", "LicenseRef-scancode-mit-modification-obligations", "OpenSSL", "MIT", "LicenseRef-scancode-other-copyleft", "bzip2-1.0.6"...
permissive
-- start_ignore drop external table if exists ext_whois; -- end_ignore create external table ext_whois ( source_lineno int, domain_name varchar(350), subdomain varchar(150), tld varchar(50), ip_address inet, ip_address_int bigint, reverse_dns varchar(512), reverse_domain varchar(350), registrar varch...
true
6499a25c8cabf15744fd2e2e88c3a44e2ebf8897
SQL
ojalaquellueva/gnrs
/import_user_data.sql
UTF-8
1,025
3.515625
4
[ "MIT" ]
permissive
-- ---------------------------------------------------------- -- Import raw user data to table user_data_raw -- -- Requires parameters: -- $raw_data_tbl_temp --> :raw_data_tbl_temp (job-specific temp table) -- $infile --> :infile -- ---------------------------------------------------------- -- Create job-specific raw ...
true
64388f9b36d7d4e6363818d32f8b4ce2104488c0
SQL
Last-Mile-Health/LMD-Databases
/lastmile_ncha/view/view_community_geo_position_cha.sql
UTF-8
1,233
3.578125
4
[]
no_license
use lastmile_ncha; drop view if exists lastmile_ncha.view_community_geo_position_cha; create view lastmile_ncha.view_community_geo_position_cha as select pc.community_id, c.community, pc.position_id_pk, pc.position_id, pc.health_facility_id, f.health_facility, f.healt...
true
92de5c2fa5cb55343bce44c0cab8ed31af1746e9
SQL
Himanshu0120/Training-Assignments
/SQL Assignment/Exercise 1/Query 7.sql
UTF-8
141
2.78125
3
[]
no_license
SELECT ROW_NUMBER() OVER(ORDER BY FirstName) As 'ROW_NUMBER', FirstName , LastName FROM Person.Person WHERE FirstName LIKE '%SS%';
true
db6b6aa5da528d13a433ea7cd157f66632637b89
SQL
Mibburo/Master-Form
/contacts_2.sql
UTF-8
5,462
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Sep 27, 2016 at 03:30 PM -- Server version: 5.7.11 -- PHP Version: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
47ac7ba845f3c4c92a9d4d84fbd013c652777a14
SQL
vielhuber/gists
/gists/variables #sql/script.sql
UTF-8
414
3.203125
3
[]
no_license
/* declare first */ SET @variable_name := column; /* use */ SELECT variable_name FROM table /* inline declaration */ SELECT @variable_name := column FROM table WHERE variable_name = 'foo' /* alternative declaration */ SET @variable_name = column; /* dynamic statements */ SET @variable_name = '* FROM foo'; PREPARE st...
true
a6c8d9c1f55bdd409cb3b22d8ca2c6964ecad617
SQL
jothbc/PDV_JAVA_DESK
/oprincipiodb.sql
UTF-8
19,759
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 25-Jun-2019 às 21:30 -- Versão do servidor: 10.1.36-MariaDB -- versão do PHP: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
true
e4bdfc1d723046fd4989b3fc47a90530f17741e7
SQL
lingkay/erp
/sql/old_dumps/hris.20150807.patch.sql
UTF-8
4,975
3.234375
3
[ "BSD-3-Clause", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 07, 2015 at 07:40 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
d9ab46295ee5760dcae6ad975fbe1547f559d15a
SQL
laiqwq/Drug-administration-system
/Drug administration system/drugmanager.sql
UTF-8
5,236
3.046875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50556 Source Host : 127.0.0.1:3306 Source Database : drugmanager Target Server Type : MYSQL Target Server Version : 50556 File Encoding : 65001 Date: 2019-07-05 16:51:07 */ SET FOREIGN_KEY_CHECKS...
true
6d4639ee5cd6f18c5642dc73fa5e966b76df3a1f
SQL
georgy-kirilov/SoftUni-MSSQL
/CourseLessons/SubqueriesAndJoins/Solutions-Problems-12-18.sql
UTF-8
2,109
4.15625
4
[]
no_license
use [Geography]; -- Problem 12 select c.CountryCode, m.MountainRange, p.PeakName, p.Elevation from Peaks as p join Mountains as m on p.MountainId = m.Id join MountainsCountries as mc on mc.MountainId = m.Id join Countries as c on mc.CountryCode = c.CountryCode where c.CountryCode = 'BG' and p.Elev...
true
f93d4d8649e27472b820cf1b628ea558f8ad3fab
SQL
sixpathdev/revenuemgmt
/project.sql
UTF-8
6,174
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 19, 2017 at 01:08 PM -- Server version: 5.7.17-0ubuntu0.16.04.1 -- PHP Version: 7.0.15-0ubuntu0.16.04.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
true
961e7c8ef06a9d53b6d39ebb22f0ce49d6067226
SQL
TechnoPrep/nodejs-emp-tracker-sql
/db/seeds.sql
UTF-8
1,150
2.953125
3
[ "MIT" ]
permissive
INSERT INTO department (department_name) VALUES ("Sales"), ("Accounting"), ("Human Resources"), ("Business Integrations"); INSERT INTO role (title, salary, department_id) VALUES ("Sales Manager", 90000, 1), ("Sales Lead", 80000, 1), ("Sales Representative", 45000, 1), ("Accoun...
true
eb1a36a722078286ce5bfea07912597aab2efa5e
SQL
MathiasMinacapilli/BasesTarea2
/scripts/biblioteca_constraints.sql
UTF-8
5,096
2.9375
3
[]
no_license
-- -- Name: autores autores_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.autores ADD CONSTRAINT autores_pkey PRIMARY KEY (cod_autor); -- -- Name: dewey dewey_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.dewey ADD CONSTRAINT dewey_pk...
true
97e2a0a1ad7f61bec634562e69aca4cb00a87329
SQL
GaganCJ/SE-B4
/database/database.sql
UTF-8
3,511
3.765625
4
[]
no_license
/*To create this database locally in your system follow the following steps 1. Install PostgreSQL locally in your system . Follow the following steps to intsall it if not installed in ubuntu 1.Open the terminal (Ctrl+Alt+T) 2. Type $ sudo apt-get update 3. Type $ sudo apt-get install postgresql postgresql-cont...
true
2ca6a4372c006ae8f91bf2a3a394c266f8d23867
SQL
kevinmcnamee/feedbackaro-script
/update.status.sql
UTF-8
379
3.578125
4
[]
no_license
UPDATE issues SET status='open' WHERE datetime(created_at, '+15 minutes') < CURRENT_TIMESTAMP; UPDATE issues SET status='instructor needed' WHERE datetime(created_at, '+45 minutes') < CURRENT_TIMESTAMP; SELECT name, (strftime('%s', CURRENT_TIMESTAMP) - strftime('%s', issues.created_at))/60 AS minutes_open, content, s...
true
4845fc54d48a7e1f6f3183bf03e33e05465ec1fa
SQL
zola89/PrizeGame-Spring-Boot
/springbootuser.sql
UTF-8
3,685
3.15625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: springbootuser -- ------------------------------------------------------ -- Server version 5.7.20-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESU...
true
37edd9fd12b67cc24dff014e3bbc98b40d6fb64d
SQL
YaleArchivesSpace/data_cleanup_workgroup
/audit_queries/all_notes_w_uris.sql
UTF-8
1,372
3.15625
3
[]
no_license
select CAST(note.notes as CHAR (500000) CHARACTER SET UTF8) AS Text , CONCAT('/repositories/', resource.repo_id, '/resources/', resource.id) AS URI , npi.persistent_id as persistent_id from resource JOIN note on note.resource_id = resource.id JOIN note_persistent_id npi on npi.note_id = note.id WHERE resource.repo...
true
33e068d9de6a558eda470d0f6d8ed984d42f8585
SQL
alexmister13/ciudades
/BBDD_ciudadades.sql
UTF-8
3,623
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 13-11-2017 a las 17:18:36 -- Versión del servidor: 10.1.26-MariaDB -- Versión de PHP: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
ed462122dab7827d10594e250d4b3ee2304134f8
SQL
artmanu1995/30PercentPro2
/Database MySQL Export/restaurant_db.sql
UTF-8
8,489
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Sep 13, 2017 at 10:52 AM -- Server version: 5.7.17-log -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
c51ada11eaa76db618598a1f35887d1b94f9e8aa
SQL
nimehjadallah/second_project
/schema.sql
UTF-8
4,552
3.34375
3
[]
no_license
-- DROP DATABASE IF EXISTS exampledb; -- CREATE DATABASE exampledb; -- DROP DATABASE IF EXISTS testdb; -- CREATE DATABASE testdb; DROP DATABASE IF EXISTS recipes_db; CREATE DATABASE recipes_db; Use recipes_db; INSERT INTO recipes (name, ingredients, steps, createdAt, updatedAt) Values ("Cilantro Pistachio Pesto Shri...
true
438453c20e34f3356c90f7ae345640c88488a54e
SQL
IF65/script
/contabilita/aggiornamento_contabilita.sql
UTF-8
7,899
3.046875
3
[]
no_license
/*sistemazione numero ddt*/ update `db_sm`.fatture_ca as fca set fca.`numero_bolla_fornitore`=trim(leading 'TC/' FROM fca.`numero_bolla_fornitore`) where fca.`codice_fornitore`='100860' and fca.`numero_bolla_fornitore` like 'TC/%'; update `db_sm`.fatture_ca as fca set fca.`numero_bolla_fornitore`=trim(trailing '/K' FR...
true
55eaaadf0b22de745237951143ea0f22bc025570
SQL
alte0/43745-yeticave-10
/queries.sql
UTF-8
3,243
3.859375
4
[]
no_license
USE `yeticave`; -- Добавляем список категорий; INSERT INTO сategories (name, character_code) VALUES ('Доски и лыжи', 'boards'), ('Крепления', 'attachment'), ('Ботинки', 'boots'), ('Одежда', 'clothing'), ('Инструменты', 'tools'), ('Разное', 'other'); -- Добавляем пользователей; INSERT INTO use...
true
cadba3184a997498b20fa8c4b0850fea445b5842
SQL
AshikurRahman-Peters/tiffinbox
/database/school_manage.sql
UTF-8
19,469
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 24, 2016 at 04:10 অপরাহ্ণ -- 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_CLIEN...
true
f111d2e7934cab834e3495f0d2661f8dcc8f4ca7
SQL
raflirosliana/Project-Databases
/ProjectDB 1/Query Insert Data Into Tables.sql
UTF-8
6,771
2.8125
3
[]
no_license
--USE DATABASE yang sudah dibuat USE RA_Laundry --QUERY INSERT DATA Master(10 Data), Header(15 Data), dan Detail(25 Data) INSERT INTO MsStaff (StaffId,StaffName,StaffGender,StaffAddress,StaffSalary) VALUES ('ST001','Putri Dara','Female','Rasuna Said road No.86','2000000'), ('ST002','Zara Dea Imanuel','Femal...
true
508fd222fa3e38f8ad4a62ec984bb14c06f8e0dd
SQL
jackson20000/ums
/ums.sql
UTF-8
2,094
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Dec 04, 2019 at 04:32 PM -- Server version: 5.7.28-0ubuntu0.18.04.4 -- PHP Version: 7.2.24-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
442c8f5eb848c6cdd91b6aa9ce0923a03f277a87
SQL
Kannute/Database-App
/Scripts/pop_wiezienie.sql
UTF-8
11,545
2.53125
3
[]
no_license
/**** WYPELNIENIE BAZY DANYMI PODSTAWOWYMI ****/ /* TRZY SEGMENTY Z ROZNYMI NACZELNIKAMI */ INSERT INTO wiezienie.segment VALUES (DEFAULT, 'Segment Meski', 1); INSERT INTO wiezienie.segment VALUES (DEFAULT, 'Segment Zenski', 2); INSERT INTO wiezienie.segment VALUES (DEFAULT, 'Segment o zaostrzonym rygorze', 3); /* C...
true
54ce2d497ea69a0c9df38927030db029b19f4b09
SQL
admiralnelson/Bukuku.com
/bukuku_com.sql
UTF-8
2,492
3.140625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 26, 2018 at 01:01 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
a338a182a17b313168142bde9b2d2fac03b29d9e
SQL
labmain/MySnippets
/MySQL/mysql表内容操作.sql
UTF-8
2,183
4.375
4
[]
no_license
1、增 insert into 表 (列名,列名...) values (值,值,...) insert into 表 (列名,列名...) values (值,值,...),(值,值,值...) insert into 表 (列名,列名...) select (列名,列名...) from 表 例: insert into tab1(name,email) values('zhangyanlin','zhangyanlin8851@163.com') 2、删 delete from 表 # 删除表里全部数据 ...
true
b9a6d5cbbe67ca524098ef2994816b45f7b9f0fc
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day18/select0254.sql
UTF-8
266
2.9375
3
[]
no_license
SELECT sen.name FROM SENSOR sen, SENSOR_TYPE st, COVERAGE_INFRASTRUCTURE ci WHERE sen.SENSOR_TYPE_ID=st.id AND st.name='WiFiAP' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['4100_7','4028','4209','5062','4100_9','2089','5039','3072','4226','4032'])
true
2d1a9f6289714592eff01ab5320da476fd5a2c08
SQL
browniefed/next-auth-hasura-urql-boilerplate
/hasura/migrations/1609091411178_set_fk_public_users_role/up.sql
UTF-8
209
2.6875
3
[]
no_license
alter table "public"."users" add constraint "users_role_fkey" foreign key ("role") references "public"."user_roles" ("value") on update restrict on delete restrict;
true
a6696481cc6ad48588b616fe5d5459c2c32cadc2
SQL
valagic/zadaciEraDijagram
/Samostan.sql
WINDOWS-1250
1,717
3.859375
4
[]
no_license
drop database if exists samostan; create database samostan; use samostan; /*U samostanu se nalaze sveenici. Svaki sveenik je zaduen za vie poslova. Jedan posao u isto vrijeme moe obavljati vie sveenika. Svaki sveenik ima samo jednog nadreenog sveenika. */ create table samostan ( id int not null primary key auto_...
true
773bb585a52745c9e4dab71311a7de3faaf56e69
SQL
DevComSHINE/shine-os-deved
/database/db_check/shinedb_migrated.sql
UTF-8
111,494
3.265625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 04, 2016 at 06:10 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
02e30445c79e442ea9f3690262d2f7de08178cc0
SQL
MasanskiAI/Test
/Base results/Task3.1/task6.sql
WINDOWS-1252
251
3.640625
4
[]
no_license
-- 6. Show total UnitPriceof each SalesOrderID in the year 2005. SELECT SalesOrderID, SUM(UnitPrice) AS TotalUnitPrice FROM Sales.SalesOrderDetail WHERE ModifiedDate BETWEEN '20050101' AND '20051231' GROUP BY SalesOrderID ORDER BY SalesOrderID
true
0d7333840142b05c6bb37c6392d585d04636e866
SQL
gsiems/sql-tidy
/t/input/ora_merge_001.sql
UTF-8
2,957
3.046875
3
[ "Artistic-2.0" ]
permissive
MERGE INTO db_dashboard.prev_query_stat o USING db_dashboard.curr_query_stat n ON ( n.username = o.username AND n.osuser = o.osuser AND n.address = o.address AND n.hash_value = o.hash_value ) WHEN MATCHED THEN UPDATE SET o.polling_dt = n.polling_dt...
true
123788930c2f6761531bd7b5de97d54454892e30
SQL
xackery/eqdb
/npc_types.sql
UTF-8
6,736
2.609375
3
[]
no_license
-- MySQL dump 10.16 Distrib 10.1.21-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: localhost -- ------------------------------------------------------ -- Server version 10.1.21-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER...
true
511ed2e842e9f835e672677cb6a3c2cb81aefcc1
SQL
proshunsuke/vg-1day-2018-09-16
/modeling/db/migrations/20180914044044-create_vegetable_logs.sql
UTF-8
426
3.375
3
[]
no_license
-- +migrate Up CREATE TABLE vegetable_logs ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, point_get_date DATE NOT NULL, user_id INT UNSIGNED NOT NULL, vegetable_id INT UNSIGNED NOT NULL, PRIMARY KEY (id), UNIQUE (point_get_date, user_id), FOREIGN KEY (user_id) REFERENCES users (id)...
true
2d30aee871b2fc37fb611f6a400ee79bf253ee3e
SQL
Elder2004/database-exercises
/database-exercise/Downloads/employees_db/where_exercises.sql
UTF-8
736
3.390625
3
[]
no_license
use employees; SELECT * FROM employees WHERE first_name IN ('Irena', 'Vidya', 'Maya'); SELECT * FROM employees WHERE last_name LIKE 'E%'; SELECT * FROM employees WHERE hire_date >= '1990-01-01' and hire_date <= '1999-21-31'; SELECT * FROM employees WHERE birth_date LIKE '%12-25'; SELECT * FROM employees WHERE las...
true
b51e378574b5955d413403b2b024c1cd06eecc94
SQL
egovernments/DIGIT-OSS
/core-services/xstate-chatbot/nodejs/db/migration/main/V20201016131300__chat.sql
UTF-8
299
2.984375
3
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
CREATE TABLE eg_chat_state_v2 ( id SERIAL, user_id TEXT, active BOOLEAN, state jsonb, PRIMARY KEY (id) ); CREATE INDEX IF NOT EXISTS eg_chat_state_idx_user_id_v2 ON eg_chat_state_v2 (user_id); CREATE INDEX IF NOT EXISTS eg_chat_state_idx_active_v2 ON eg_chat_state_v2 (active);
true
66448291af54be98dcfd64fb05ac3b9b8ae4f82f
SQL
ellawilby/InternshipJune2017
/DNS/bind.sql
UTF-8
8,611
3
3
[]
no_license
-- -- Database schema -- create table soa ( zone_ varchar(255) primary key, -- zone name ttl int not NULL default '1 day', -- time to live mname varchar(256) not NULL, -- the original or primary source of data for this zone rname varchar(256) not NULL, ...
true
c41a17aee700ea61350c96bfd4040e5e2697ea4a
SQL
kwojtas20/restapi
/src/main/resources/database/2020-11-18/01-create-user-authorities.sql
UTF-8
757
3.5
4
[]
no_license
--liquibase formatted sql --changeset kwojtas:4 create table users ( id BIGINT AUTO_INCREMENT PRIMARY KEY, username varchar(50) not null UNIQUE, password varchar(100) not null, enabled boolean not null ); --changeset kwojtas:5 create table authorities ( username varchar(50) not null, ...
true
0b17484a3d6ea026ec0ce1c9f04284a1ac8fc1ef
SQL
Koala4ka/my-project
/flyway-mod/src/main/resources/migration/V9__Create_Permision__Role_Table.sql
UTF-8
315
3.03125
3
[]
no_license
DROP TABLE IF EXISTS permission_role; CREATE TABLE permission_role ( role_id BIGINT REFERENCES roles, permission_id BIGINT REFERENCES permission_table, created_at TIMESTAMP DEFAULT now() NOT NULL, updated_at TIMESTAMP DEFAULT now() NOT NULL, PRIMARY KEY (role_id, permission_id) );
true
a83715ebce4c34448c9f9975d74afb802abed956
SQL
hetianrui/JavaTest
/数据库/排序分组连接的复习.sql
UTF-8
506
3.53125
4
[]
no_license
#复习前一天的内容 #查询员工表的employee_id,job_id,last_name,按department_id降序,salary升序 SELECT employee_id,job_id,last_name,salary,department_id FROM employees ORDER BY department_id DESC,salary ASC; #查询员工表的job_id中包含a和e的,并且a在e的前面 SELECT job_id FROM employees WHERE job_id LIKE '%a%e%'; #显示当前日期,以及去前后空格,截取子字符串的函数 SELECT NOW(); SELEC...
true
9bac58eb3be8ba1262c92cdb0235954788d3638f
SQL
CUBRID/cubrid-testcases
/medium/_02_xtests/cases/6741.sql
UTF-8
718
3.171875
3
[ "BSD-3-Clause" ]
permissive
autocommit off; create class x (n int, d double) method class set_cost(string, string) function qo_set_cost; insert into x values (1, 4.2); insert into x values (2, 42.0); call set_cost('m-join', '0') on class x; --set optimization: level 257; select c.n from (select n,d from x) as a(n,d), (select n,d from x)...
true
2e3526a3bf67d34076c0ea21cd2db79cc9727a54
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/disparadores/TRG_DESCONTRATOSAGR.sql
UTF-8
606
2.765625
3
[]
no_license
-------------------------------------------------------- -- DDL for Trigger TRG_DESCONTRATOSAGR -------------------------------------------------------- CREATE OR REPLACE EDITIONABLE TRIGGER "AXIS"."TRG_DESCONTRATOSAGR" AFTER UPDATE ON descontratosagr FOR EACH ROW DECLARE -- PK Tabla vindica VARCHAR2(2...
true
0373a418321122aaefbfae7e1564b95573544e7a
SQL
dream-marker/wechat-applet-provider
/src/main/resources/dream_marker.sql
UTF-8
4,321
3.03125
3
[ "Apache-2.0" ]
permissive
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50709 Source Host : localhost:3306 Source Database : dream_marker Target Server Type : MYSQL Target Server Version : 50709 File Encoding : 65001 Date: 2018-10-12 02:34:13 */ SET FOREIGN_KEY_CHECKS=0; ...
true
50061f1d82e1aed76cc9a05cf175a10acc1fe1fe
SQL
anitasari2311/ReportingSystemFinal
/Dump20191121/cms_readreport_readreport.sql
UTF-8
2,112
2.734375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.23, for Win32 (x86) -- -- Host: localhost Database: cms_readreport -- ------------------------------------------------------ -- Server version 5.7.25-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_...
true
4068e6d2166b964a44d50fd7578adc8303b12bb7
SQL
leesander1/service
/business/data/dbmigrate/sql/migrate.sql
UTF-8
1,301
4.03125
4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- Version: 1.01 -- Description: Create table users CREATE TABLE users ( user_id UUID NOT NULL, name TEXT NOT NULL, email TEXT UNIQUE NOT NULL, roles TEXT[] NOT NULL, password_hash TEXT NOT NULL, department TEXT NULL, enabled BOOLEAN ...
true
2f8619effa3c32656e9f89743673481174ecc855
SQL
hqottsz/MXI
/assetmanagement-database/src/base/plsql/maintenix/plsql/getFDDisruptionTypes.sql
UTF-8
1,348
3.5625
4
[]
no_license
--liquibase formatted sql --changeSet getFDDisruptionTypes:1 stripComments:false endDelimiter:\n\s*/\s*\n|\n\s*/\s*$ CREATE OR REPLACE FUNCTION getFDDisruptionTypes ( aFdId fl_leg_disrupt.leg_disrupt_id%TYPE ) RETURN String IS lFdDisruptionTypes String(4000); /* cursor declarations */ CURSOR lcur_Disrupt...
true
e5423f4251dbab0addccd3d3e4c75cb3bc3a123c
SQL
sharif-codder/online-result-info
/database-mysql/online_result_submit.sql
UTF-8
13,004
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 14, 2019 at 10:56 PM -- Server version: 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
1028477b43efe8e2e48320c598ecdcf329680736
SQL
megatran/MinesPlaza
/includes/setup.sql
UTF-8
227
2.59375
3
[]
no_license
CREATE TABLE users ( uid INT NOT NULL AUTO_INCREMENT, username VARCHAR(30) NOT NULL UNIQUE, password VARCHAR(64) NOT NULL, salt VARCHAR(3) NOT NULL, email VARCHAR(32) NOT NULL UNIQUE, PRIMARY KEY(uid) );
true
563b642338e34e876f112556d0ea2b6a053ab036
SQL
EdivaldoDavi/ipiavai
/src/main/resources/db/migration/V04__criar_e_registrar_usuarios_e_permissoes.sql
UTF-8
3,417
3.484375
3
[]
no_license
CREATE TABLE usuario ( codigo bigint NOT NULL DEFAULT nextval(('usuarios_id_seq'::text)::regclass), nome character varying(50) NOT NULL, email character varying(50) NOT NULL, senha character varying(150) NOT NULL, data_alteracao timestamp DEFAULT (current_timestamp), CONSTRAINT codigo_usuario_pkey PRIMARY KEY (co...
true