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
b52322d7e8f78176ec22a50ca540911b1453c206
SQL
LilyDubas/ExercicesSQL
/partie3TP.sql
UTF-8
569
3.34375
3
[]
no_license
-- aller dans la BDD codex USE codex; -- dans la table clients supprimer la colonne secondPhoneNumber ALTER TABLE `clients` DROP `secondPhoneNumber`; -- dans la table clients remplacer la colonne firstPhoneNumber en phoneNumber ALTER TABLE `clients` CHANGE COLUMN `firstPhoneNumber` `phoneNumber` INT; -- changer le type...
true
9da3b28f52b6e9356a32490085aa071508b6bccd
SQL
wrpearson/CPBI_seqdb_demo2
/ecoli_v_qfo_kingdom.sql
UTF-8
1,459
4.125
4
[]
no_license
-- SQL to build temporary table associating query_id's with the taxon_id's of their hits -- this file must be "sourced" before running ecoli_qfo_kingdom_summ.sql DROP TABLE if exists temp_results; CREATE TEMPORARY TABLE temp_results ( query_id INT UNSIGNED NOT NULL DEFAULT 0, taxon_id INT UNSIGNED NOT NULL DEFAUL...
true
a27bbd5b26ccdc218dcbebda2d0071858f88f683
SQL
louisthomaspro/expressjs-mariadb-ready-docker-compose
/dump.sql
UTF-8
2,587
2.9375
3
[]
no_license
-- MariaDB dump 10.17 Distrib 10.4.8-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: mabddpourletest -- ------------------------------------------------------ -- Server version 10.4.8-MariaDB-1:10.4.8+maria~bionic /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET...
true
518539e9e6d308d05b650bd0f4df654783cc3e21
SQL
OrelSokolov/go-rest
/db/init.sql
UTF-8
483
3.09375
3
[]
no_license
create database app; use app; create table if not exists users ( id int not null, username char not null, password char not null, created_at timestamp not null default NOW(), updated_at timestamp not null default NOW(), primary key (id) ); create table if not exists metrics ( id int not null, status...
true
b793d99275f37705f958f6095d15da38386ee175
SQL
Comp4711Group7Reboot/PhpAssignment2
/application/data/session.sql
UTF-8
525
2.640625
3
[]
no_license
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Author: john_ * Created: Apr 16, 2016 */ CREATE TABLE IF NOT EXISTS `ci_sessions` ( `id` varchar(40) NOT NULL, ...
true
c6bc205e0ee79b29ba64da579c986138ebeb2f3f
SQL
Shirerpeton/YetAnotherToDoList
/sql/createTables.sql
UTF-8
973
3.796875
4
[]
no_license
create table "users" ( "username" varchar(20), "passwordHash" char(60) not null, "dateOfRegistration" date not null, constraint "users_pk" primary key ("username")); create table "projects" ( "projectId" serial, "projectName" varchar(256) not null, constraint "projects_pk" primary key ("projectId")); create table "...
true
be4a1e926430dcbd4f887e1db19a0ff798f66e28
SQL
Marissa1999/Database-Assessments
/Assignment 2/Assign2/createRiverTables.sql
UTF-8
1,183
3.5625
4
[]
no_license
--createRiverTables.sql --Name: Marissa Gonçalves --Due Date: November 16, 2018 --Part 2: Build the Tables CREATE TABLE CUSTOMER (CustomerID NUMBER(10), LastName VARCHAR(20) NOT NULL, FirstName VARCHAR2(20) NOT NULL, Phone VARCHAR2(12) DEFAULT NULL, Email VARCHAR2(20) DEFAULT NULL, CONSTRAINT CUSTOMER_CustomerID_P...
true
c6168bbb248379614d4a3694656e981dfd80d580
SQL
lo-guevara/LOL-Club-Page
/include/setup.sql
UTF-8
993
3.625
4
[]
no_license
# All queries that you use should be recorded here as documentation. # Write and SQL statement to create your club membership table. CREATE TABLE Login( FirstName varchar(20), LastName varchar(20), Email varchar(40), Date datetime(10), Password char(40), Password1 char(40), Membership enum("gold", "silver") UNIQUE (E...
true
1bcda1c3357115af112564235d8239af1c41e294
SQL
PRITHWISHDEY/Nagarro-TSQL-Assignment-Answers
/Exercise 3/Exercise 3.sql
UTF-8
617
4.3125
4
[]
no_license
--Show the most recent five orders that were purchased from account numbers that have spent more than $70,000 with AdventureWorks. WITH MoreThan70k AS ( SELECT CustomerID FROM Sales.SalesOrderHeader H GROUP BY CustomerID HAVING SUM(TotalDue) > 70000 ), TopOrders AS ( SELECT H.CustomerID, H.SalesOrderID, H.OrderDat...
true
6537c1b5a32a5b93ff8b9d52b04bb2b230394742
SQL
ss100yan/Burger
/db/seeds.sql
UTF-8
833
2.8125
3
[ "MIT" ]
permissive
-- 4. Run the `schema.sql` and `seeds.sql` files into the mysql server from the command line -- 5. Now you're going to run these SQL files. -- * Make sure you're in the `db` folder of your app. -- * Start MySQL command line tool and login: `mysql -u root -p`. -- * With the `mysql>` command line tool runn...
true
e645cd06aed99d496317133e2c930e04c2e91058
SQL
topcoder-platform/tc-elasticsearch-feeder-service
/src/main/resources/sql/challenge-feeder/get_submitter_ids.sql
UTF-8
436
3.3125
3
[]
no_license
SELECT u.project_id as challengeId, ri.value::DECIMAL as submitterId FROM submission s, upload u, resource_info ri WHERE u.upload_id = s.upload_id AND s.submission_status_id <> 5 AND s.submission_type_id in (1,3) AND u.upload_type_id = 1 AND u.upload_st...
true
e7986fdf47e1432c4185f14734558d1d936fe06c
SQL
nicofari/cartesio
/Cartesio.sql
UTF-8
3,263
3.109375
3
[]
no_license
create or replace package Cartesio is -- Author : Nicola Farina -- Created : 27/02/2006 11.44.50 cInfiniteNegative constant integer := 0; cInfinitePositive constant integer := 32565; function bitor( x in number, y in number ) return number; function bitxor( x in number, y in number ) return number; ...
true
c636c7d0da4f771066ae9487c660e2ddba4d0f95
SQL
pradosh2008/cloudproject
/ProjectWork/gcp-project/ann/hist_bi_comparision.sql
UTF-8
3,476
3.78125
4
[]
no_license
select count(*) from ( select dem.Store_ID as Store_ID ,dem.Week_ID as Week_ID ,dem.Style_ID as Style_ID ,dem.Color_ID as Color_ID ,dem.Net_Sales_Unit_cnt ,hst.Net_Sales_Unit_cnt as hst_Net_Sales_Unit_cnt ,case when hst.Net_Sales_Unit_cnt=0 then abs(dem.Net_Sales_Unit_cnt) else abs(dem.Net_Sales_Unit_cnt-hst.Net_S...
true
031b3b2c461be20bc64036ef887f6862282c04f0
SQL
aruizcanton/ETLGenerator
/gen_grants_catalogo.sql
UTF-8
3,377
3.21875
3
[ "Apache-2.0" ]
permissive
DECLARE /* CURSOR QUE NOS DARA TODAS LAS TABLAS QUE HAY QUE CREAR */ CURSOR dtd_permited_values IS SELECT ITEM_NAME, ID_LIST, AGREGATION, MAX(LENGTH(VALUE)) LONGITUD, MAX(LENGTH(DESCRIPTION)) LONGITUD_DES FROM MTDT_PERMITED_VALUES --WHERE ITEM_NAME not in ('TIPO_EN...
true
ab22791fd6bc56692bc90bad400f354a3d23f476
SQL
eayunstack/fuel-astute
/mcagents/puppetsync.ddl
UTF-8
2,259
2.84375
3
[ "Apache-2.0" ]
permissive
metadata:name => "puppetsync", :description => "Downloads latest version of Puppet manifests to managed servers", :author => "Mirantis Inc", :license => "Apache License 2.0", :version => "8.0.0", :url => "http://mirantis.c...
true
889f4a6a7cd9d8e10b628878d29e7b4d3a8b89d3
SQL
Belkis2018/T-l-M-decine
/tp_wi.sql
UTF-8
2,711
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : ven. 14 fév. 2020 à 16:16 -- Version du serveur : 10.1.38-MariaDB -- Version de PHP : 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4010...
true
7dd9985cd4085f23e04e74d49114b2b429c5ad18
SQL
ikodar/ikodar
/DB.sql
UTF-8
1,303
2.90625
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 06, 2019 at 02:26 PM -- Server version: 10.1.19-MariaDB -- 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_CL...
true
af725ab8e82d147745ab6eaea0d5ac251c9eda3a
SQL
aaikedw/fada-import-specs
/database-info/fada-tables/locations.sql
UTF-8
688
3.765625
4
[]
no_license
-- Table: fada.locations -- DROP TABLE fada.locations; CREATE TABLE fada.locations ( id serial NOT NULL, code character varying(8) NOT NULL, name character varying(64) NOT NULL, parent_id integer, CONSTRAINT locations_pkey PRIMARY KEY (id), CONSTRAINT locations_parent_id_fkey FOREIGN KEY (parent_id) ...
true
e77bb4ccebdaad63402d6b9d886e9cc395306287
SQL
SimonRuaGitHub/reddius
/sql-backup/app-reddius.sql
UTF-8
42,729
2.96875
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 11.4 -- Dumped by pg_dump version 11.4 -- Started on 2021-03-26 22:12:38 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_catalo...
true
cf0dcc6977c04400a9a4cba5257f17aed8325ad4
SQL
AMHess/hess
/CareMinderFinal/Spring-Boot-API-Model-Project/java/database/schema.sql
UTF-8
1,772
3.703125
4
[]
no_license
BEGIN TRANSACTION; DROP TABLE IF EXISTS users CASCADE; DROP TABLE IF EXISTS medication; DROP TABLE IF EXISTS caregiver; DROP SEQUENCE IF EXISTS seq_user_id; DROP SEQUENCE IF EXISTS seq_medication_id; DROP SEQUENCE IF EXISTS seq_caregiver_id; CREATE SEQUENCE seq_user_id INCREMENT BY 1 NO MAXVALUE NO MINVALUE CACHE 1;...
true
0acb1dcf052e9ed1a2b279837418fdc430c42f27
SQL
naggenius/BIP
/BIP_App-master/UX/source/plsql/diva.sql
ISO-8859-1
93,090
2.96875
3
[]
no_license
/* diva.sql: fichier contenant le package pack_diva permettant la mise jour des donnes budgtaires en provenance de l'application DIVA. cr le 16/08/2006 par David DEDIEU Modifications : Le 17/10/2006 par PPR : Ajout du statut diva Le 11/12/2006 par DDI : Modification de la gestion des statuts DIVA Le 09/01/2007...
true
bbec2692074d46f92bb465fc74ed7c0b2ce3f57d
SQL
BlinkNotBaby/BIRD3
/app/Resources/Data/users.sql
UTF-8
4,798
3.640625
4
[]
no_license
/* Users */ CREATE TABLE IF NOT EXISTS `tbl_users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(20) NOT NULL, `password` varchar(40) NOT NULL, `email` varchar(128) NOT NULL, -- Generated during registration. `activkey` varchar(128) NOT NULL, -- Admin, Moderator, VIP or User. `superuser` in...
true
a65433c776096852e2429378aee6bd4c93e75d80
SQL
piyusht189/asql-ss20
/lectures/chapter05/sessionize.sql
UTF-8
2,881
4.125
4
[]
no_license
-- Sessionization of the Police HQ computer usage log DROP TABLE IF EXISTS log; CREATE TABLE log(uid text NOT NULL, ts timestamp NOT NULL); -- ➊ Police HQ computer log data -- INSERT INTO log(uid, ts) VALUES ('Cop', '05-25-2020 07:25:12'), -- assumes datestyle = 'ISO, MDY' ('Cop', '05-25-2020 ...
true
03e127878025cae3cb2e3fef68fd31b921b9ada8
SQL
fedjakova-anastasija/TODOList
/localhost/db_todo_list.sql
UTF-8
3,304
3.875
4
[]
no_license
DROP DATABASE IF EXISTS db_todo_list; CREATE DATABASE IF NOT EXISTS db_todo_list DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; USE db_todo_list; /*user*/ DROP TABLE IF EXISTS user; CREATE TABLE IF NOT EXISTS user ( id INT(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(50) NOT NULL,...
true
91109e6a3546cf0d75997c184978fe2bb571948b
SQL
taylor97data/LeetCode-SQL-Summary
/join/simple_join/614. 二级关注者.sql
UTF-8
188
3.25
3
[]
no_license
# Write your MySQL query statement below SELECT followee as follower, count(distinct follower) as num FROM follow WHERE followee IN(SELECT distinct follower FROM follow) GROUP BY followee
true
d6cf385d04a71d103c2dce7b0719334d46300813
SQL
zichenFu1103/BigData
/第二阶段/1.模块一/code/SQL题4.sql
UTF-8
1,962
4.21875
4
[]
no_license
use lianxi01; drop table if exists lesson; drop table if exists professor; drop table if exists category; create table professor ( pid int primary key auto_increment, pname varchar(20), pdescription varchar(100), plevel char(4), index pname_index (pname) ); create table category ( cid int primary k...
true
6ad25858a5cb08ba705e3fd32df3443abbd35ac7
SQL
NeroJz/57-SQL-Practice-Problems
/036.sql
UTF-8
222
3.40625
3
[]
no_license
# Orders with many line SELECT `O`.`OrderID`, COUNT(1) FROM `Orders` `O` JOIN `Order_Details` `OD` ON 1=1 AND `OD`.`OrderID` = `O`.`OrderID` GROUP BY `O`.`OrderID` ORDER BY 2 DESC LIMIT 10;
true
d10baf412926d143dbfecfe9af07eb7ca1ff68e6
SQL
BlipProject/blipDBScripts
/CheckUserNameTempSproc.sql
UTF-8
327
2.96875
3
[]
no_license
DELIMITER $$ CREATE DEFINER=`b4f8e872978aae`@`%` PROCEDURE `CheckUserNameTemp`(in userEmail varchar(30), out emailvailableTemp bool) begin set @noOfUsers = (select count(*) from tmpuser where Email = userEmail); if (@noOfUsers > 0) then set emailvailableTemp = false; else set emailvailableTemp = true; end if; end$$ DE...
true
7403e64462ffc8a45761dfd950caf9cdc598e38e
SQL
nuriakman/teklif
/veritabani.sql
UTF-8
2,064
3.375
3
[]
no_license
-- Adminer 4.6.3 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 `is_adlari`; CREATE TABLE `is_adlari` ( `is_id` int(11) NOT NULL AUTO_INCREMENT, `is_adi` varchar(200) COLLATE utf8_turkish_ci NOT NULL, PRIMARY KEY (`is...
true
412f160c919916106da04cff869593eab0deaca4
SQL
csenn/schesign-js-sql
/tests/fixtures/property_variations.sql
UTF-8
1,440
3.21875
3
[ "MIT" ]
permissive
create table "class1" ( "a" boolean, "a1" boolean not null, "a4" boolean, "a5" boolean, "a6" boolean, "b" text, "b1" text, "b2" text, "b3" text, "b4" text, "b5" text, "c" real, "c1" real, "c2" integer, "c3" integer, "c4" integer, "c5" integer, "c6" bigint, "c7" r...
true
4966a7ba1c4eb61c29f43974a1948f2cfdb75ec3
SQL
MladenMiljus/PersonalLibrary.SQL
/PersonalLibrary/Tables/dbo.Locations.sql
UTF-8
915
4
4
[]
no_license
USE PersonalLibrary IF OBJECT_ID('dbo.Locations', 'U') IS NOT NULL --DROP TABLE dbo.Locations SELECT TOP 100 * FROM dbo.Locations ELSE BEGIN CREATE TABLE dbo.Locations ( ID INT IDENTITY(1,1), UserID INT NULL, GroupID INT NULL, LocationName NVARCHAR(50) NOT NULL, LocationDescription NVARCHAR(200), Loca...
true
1169e7989d8e39d366c59d5f0b6acf9cd38fee41
SQL
WUNDERWAFFEN077/sistema
/backup/reporte_producto.sql
UTF-8
319
3.6875
4
[]
no_license
CREATE VIEW reporte_producto AS SELECT c.id, YEAR(fecha) anio, MONTH(fecha) mes, p.nombre producto, d.cantidad, d.costo, d.total, (d.total-d.costo) utilidad FROM comprobante_detalle d INNER JOIN comprobante c ON (d.comprobante_id = c.id) INNER JOIN producto p ON (d.producto_id = p.id) WHERE c.anulado = 0 ;
true
b78142f45b0098643245e9357c2f59b3c8761065
SQL
Darma52/aplikasi-peminjaman-ruangan-laboratorium
/siplab.sql
UTF-8
6,862
3.25
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: sql301.byetcluster.com -- Waktu pembuatan: 11 Jun 2020 pada 22.50 -- Versi server: 5.6.47-87.0 -- Versi PHP: 7.2.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
true
eb9a5d134740f41058c6ea0aecb00da50ebb7977
SQL
RianAsmara/simple-php-crud-mysqli
/db_komputer.sql
UTF-8
2,577
3.546875
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 15, 2018 at 02:57 PM -- 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
8de49fa697cd991fcdefffb0cefcfe499a2ac971
SQL
Marco-Z/multiplexx
/SQL/createdb.sql
UTF-8
2,219
3.578125
4
[]
no_license
DROP TABLE IF EXISTS PRENOTAZIONE; DROP TABLE IF EXISTS SPETTACOLO; DROP TABLE IF EXISTS POSTO; DROP TABLE IF EXISTS UTENTE; DROP TABLE IF EXISTS SALA; DROP TABLE IF EXISTS FILM; DROP TABLE IF EXISTS PREZZI; CREATE TABLE UTENTE ( id_utente bigserial primary key not null, email varchar(1000) not null u...
true
143c52fbbe7ce703da7b7eadafcee41a32e46ce3
SQL
rdeveloper1925/jpa-sys
/project3-latest.sql
UTF-8
13,422
3.515625
4
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 25, 2020 at 02:20 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
87cf781be12753fa3f3c0268ac0efbbe99545d90
SQL
pnonemyintthaw/exam
/bonus.sql
UTF-8
1,604
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 15, 2020 at 12:18 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
bc19253c287ba3852f4e1f9924a0f6b9455c89ec
SQL
ft2000/release-validation-framework
/importer/src/main/resources/scripts/file-centric/file-centric-snapshot-attribute-value-unique-id.sql
UTF-8
852
3.390625
3
[ "Apache-2.0" ]
permissive
/******************************************************************************** file-centric-snapshot-attribute-value-unique-id Assertion: ID is unique in the ATTRIBUTE VALUE snapshot. ********************************************************************************/ /* view of current snapshot made by findi...
true
2af119bc12069af16d7ff69a0dbf4dcd2c407428
SQL
totutotu/Tsoha-Bootstrap
/sql/add_test_data.sql
UTF-8
1,397
2.890625
3
[]
no_license
INSERT INTO kayttaja (kayttajatunnus, salasana) VALUES ('Tuomo', 'tuomokka'); INSERT INTO kayttaja (kayttajatunnus, salasana) VALUES ('Adonis', 'kaljaa'); INSERT INTO kayttaja (kayttajatunnus, salasana) VALUES ('Adoniina', 'elamaa'); INSERT INTO profiili (kayttajatunnus, ika, etunimi, sukupuoli) VALUES ('Tuomo', 22, '...
true
ede95a5bba1cb30c006e22d3bc7c226081d7eb08
SQL
souravrrp/AKG-SCIL-SQL
/QUERY/Galib Vai/Pen Drive/Querie/Inv_dist_id to trace grn from back end.sql
UTF-8
795
3.125
3
[]
no_license
select aia.doc_sequence_value, -- aid.* aid.INVOICE_DISTRIBUTION_ID, aid.distribution_line_number, aid.amount, aid.ATTRIBUTE_CATEGORY, aid.attribute1, aid.attribute2, aid.attribute5 from ap.ap_invoices_all aia, ap.ap_invoice_distributions_all aid where aia.invoice_id=aid....
true
6733df5335ee00724539857b6cc8ac59e965b484
SQL
evancaldwell/CIT261
/backend/nag-new.sql
UTF-8
7,271
3.625
4
[]
no_license
-- MySQL for Nagger Web Mobile Application -- Database Name: nagger261 SET FOREIGN_KEY_CHECKS = 0; -- USER TABLE DROP TABLE IF EXISTS user; CREATE TABLE user ( user_id varchar(23) PRIMARY KEY NOT NULL COMMENT 'UUID Primary Key' , username VARCHAR(100) NOT NULL , password VARCHAR(200) NOT NULL , join_date DATE...
true
4db3c49221f1eb5cd01f20cbe50a66db1a005440
SQL
Federico4610/UAS-SIEN-2018114018-FedericoNababan
/absensimahasiswa.sql
UTF-8
12,066
3.234375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 17 Feb 2021 pada 23.18 -- Versi server: 10.4.14-MariaDB -- Versi PHP: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
875f4683742145a95964a1840d34a69c39398eba
SQL
MikeRena77/sdlw
/SQL/TIMS/Cretrg.sql
UTF-8
57,062
3.640625
4
[]
no_license
%% ============================================================ %% Database name: PROJECT %% DBMS name: Sybase SQL Anywhere 5.5 %% Created on: 14/11/1997 12:48 %% ============================================================ ...
true
0d2dfc99f238e5171d0c8cf16372504e2aecdf64
SQL
bgies/EDI-DB
/edi_file_details.sql
UTF-8
2,022
3.28125
3
[ "MIT" ]
permissive
/* Navicat MySQL Data Transfer Source Server : MySQL 5.7 Source Server Version : 50712 Source Host : localhost:3306 Source Database : edi-db Target Server Type : MYSQL Target Server Version : 50712 File Encoding : 65001 Date: 2021-03-01 01:41:22 */ SET FOREIGN_KEY_CHECKS=0; -- --...
true
074059fc43ebe5ef47584081872f8653fefed71b
SQL
dkhizhniak/sql
/oracle/occupied_db_space_per_server.sql
UTF-8
134
2.859375
3
[]
no_license
select owner, trunc (sum (bytes / 1024 / 1024)) MB   from dba_segments  group by owner  order by MB desc;
true
68e9e7435227ac7f15245a8ee8943326707360d3
SQL
blenz3/leetcode
/ex1809_ad_free_sessions/solution.sql
UTF-8
228
3.421875
3
[]
no_license
# Write your MySQL query statement below SELECT p.session_id FROM Playback p LEFT JOIN Ads a ON p.customer_id = a.customer_id AND a.timestamp > p.start_time AND p.end_time WHERE a.customer_id IS NULL
true
5b5f060ce3a2c2113a6b7ab1917f0d5aa4621299
SQL
hqottsz/MXI
/assetmanagement-database/src/upgrade/plsql/lib/liquibase/10/3/0/0/sql/OPER-22906-11.sql
UTF-8
4,842
3.34375
3
[]
no_license
--liquibase formatted sql --changeSet OPER-22906:11 stripComments:false CREATE OR REPLACE FORCE VIEW ACOR_ASSY_WP_WORKSCOPE_V1 AS SELECT assy_wp.sched_id AS wo_sched_id, jic_task.alt_id AS sched_id, req_task_task.alt_id AS req_task_id, jic_task_task.alt_id ...
true
08b23ff0bd49b2839121fb9fe01c191f5ed07a75
SQL
swiftrecharge/EarlyFood-Web
/restaurantspage/availability.sql
UTF-8
660
2.9375
3
[]
no_license
CREATE TABLE restaurant_openTime ( id INT(11) NOT NULL AUTO_INCREMENT, restaurant_id INT(11) NOT NULL, monday TIMESTAMP NOT NULL, tuesday TIMESTAMP NOT NULL, wednesday TIMESTAMP NOT NULL, thursday TIMESTAMP NOT NULL, friday TIMESTAMP NOT NULL, saturday TIMESTAMP NOT NULL, sunday TIMESTAMP NOT NULL, PRIMARY KE...
true
d89210305286e82dda5ac33a93eb9440934d87a2
SQL
verpras/Tugas_Akhir_Basic_Data
/db_vaksinasi_polda_banten.sql
UTF-8
19,293
2.578125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 17 Agu 2021 pada 16.05 -- Versi server: 10.4.20-MariaDB -- Versi PHP: 8.0.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
true
7c223eb2c71a38e2d7444e8201dfe05d12e19732
SQL
blackdeman/salary-system
/setup/db/01-salary-system-createDB.sql
UTF-8
5,857
3.71875
4
[]
no_license
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='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema salary_system -- --------------------------------...
true
d11b34fcb6371f30f6f4cfcf3a26835857da344d
SQL
yanoandri/SalesOrder-Pro
/PFSHelper.DataAccessLayer/dbFrameworkPFS/dbFrameworkPFS/dbo/Stored Procedures/uspCOM_ProductRatingList.sql
UTF-8
982
3.109375
3
[]
no_license
 /*********************************************************************************************************************** Copyright (c) 2015 PT Profescipta Wahanatehnik. All Rights Reserved. This software, all associated documentation, and all copies DESCRIPTION Name : uspCOM_ProductRatingList Desc ...
true
623df07667fb462ac8fcb4a3a7f8554b1f4420d5
SQL
ldferrari/sd-05-mysql-vocabulary-booster
/desafio11.sql
UTF-8
254
3.703125
4
[]
no_license
SELECT C.ContactName AS 'Nome' , C.Country AS 'País', (select count(S.Country)-1 FROM w3schools.customers AS S WHERE S.Country = C.Country) AS 'Número de compatriotas' FROM w3schools.customers AS C HAVING `Número de compatriotas` > 0 ORDER BY `Nome`;
true
29e836daaab43ac35252ae62be226f68dd8ae44b
SQL
mirror-neuron/OracleStudy
/20190409_05_scott.sql
UHC
6,464
3.828125
4
[]
no_license
SELECT USER FROM DUAL; --==>> SCOTT -- ν(PRC_STUDNETS_INSERT()) ۵ϴ -- Ȯ ν ȣ -- ν(INSERT ν, Է ν) ϰ Ǹ EXEC PRC_STUDNETS_INSERT('batman', 'java006$', '', '010-2222-2222', ''); --==>> PL/SQL ν ϷǾϴ. SELECT * FROM TBL_STUDENTS; --==>> /* superman 010-1111-1111 ֵ batman 010-2222-2222 */ ...
true
9a23d3ae8b954df25e070f4d616962f1984ed884
SQL
SMC1/JK1
/Integration/ircr_db_info.sql
UTF-8
729
2.703125
3
[]
no_license
drop table IF EXISTS ircr_db_info; CREATE TABLE ircr_db_info ( db_name varchar(31) NOT NULL, -- internal database name db_text varchar(127) NOT NULL -- text shown in dropdown menu ); /* INITIAL DATA */ INSERT INTO ircr_db_info (db_name, db_text) VALUES ('ircr1','AVATAR GBM'),('tcga1','TCGA GBM'),('ccle1','CCLE'); IN...
true
1f1db6abb17e135a4cf788091b5959654247eb23
SQL
xiaochenyang-bob/Spark
/spark_ddl.sql
UTF-8
1,057
3.453125
3
[]
no_license
CREATE TABLE Users ( id int(11) PRIMARY KEY not null AUTO_INCREMENT, username VARCHAR(255) not null, password VARCHAR(255) not null, Account_type int(11) not null, created_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE Likes ( id int(11) PRIMARY KEY not null AUTO_INCREMEN...
true
1e31b00974c8681f71367baa019871c38669c5df
SQL
ChesterYWChu/api-server
/db/mysql/migration/restaurant/000100002_create_bill.sql
UTF-8
1,064
3.3125
3
[]
no_license
-- +migrate Up CREATE TABLE IF NOT EXISTS `bill` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `total_price` INT NOT NULL DEFAULT 0, `is_checked` TINYINT NOT NULL DEFAULT 0, `create_time` BIGINT NOT NULL DEFAULT 0, `update_time` BIGINT NOT NULL DEFAULT 0, PRIMARY KEY (`id`), INDEX `idx_total_price` (`to...
true
5eb7f751a1bbe4138c012bd9bd12bec168f92944
SQL
CUBRID/cubrid-testcases
/sql/_06_manipulation/_01_select/_001_inner_join/cases/1021.sql
UTF-8
1,530
3.125
3
[ "BSD-3-Clause" ]
permissive
--test multiple rows select using and, or keyword in where clause create class aa ( a int, b int, c int ); insert into aa values ( 1,2,3); select * from aa where (a =1 and b=2 and c=3) or (a =1 and b=2 and c=3) or (a =1 and b=2 and c=3) or (a =1 and b=2 and c=3) or (a =1 and b=2 and c=3) or (a =1 and b=2 and c=3) or (...
true
4d793b45113f10e4a103b552cf70787020102327
SQL
albertoglezba/enciclovida
/db/snib/actualizar_base_SNIB.sql
UTF-8
3,144
3.484375
3
[ "MIT" ]
permissive
--==Para saber que queries correr es necesario revisar el README -- 1.2.1 ALTER USER erobles WITH PASSWORD 'erobles123456'; -- 2.1 SELECT entid, nom_ent, geom FROM estados LIMIT 1; SELECT munid, nom_mun, nom_ent, geom FROM municipios LIMIT 1; SELECT anpid, nombre, cat_manejo, geom FROM anp LIMIT 1; SELECT gid, deseco...
true
1bc846a0541b2efb008b25939d611cb91cd5241a
SQL
altango/stonkgames_v2
/scriptSSW.sql
UTF-8
4,314
3.34375
3
[]
no_license
drop table Oferta; drop table Valoracion; drop table Compra; drop table Juego; drop table Empresa; drop table Consumidor; create table Empresa( idEmpresa char(12), nombre char(20), telefono char(20), password char(20), email char(20), primary key (idEmpresa) ); create table Consumidor( idConsu...
true
b5eb5c023603cfc878d33878cbb1cdd5d0dd2a8b
SQL
nicoolasaraujo/thehomeoffice_backend
/init.sql
UTF-8
347
2.953125
3
[]
no_license
CREATE TABLE public."Users" ( "Id" int4 NOT NULL GENERATED BY DEFAULT AS IDENTITY, "Name" varchar NOT NULL, "Email" varchar NOT NULL, "Password" varchar NOT NULL, "UserAddress" jsonb NULL, "IsAdmin" bool NOT NULL, CONSTRAINT "PK_Users" PRIMARY KEY ("Id") ); CREATE UNIQUE INDEX "IX_Users_IsAdmin" ON public."Users...
true
871a50f21e9c459b5da49b235f37212478abc076
SQL
CUBRID/cubrid-testcases
/sql/_27_banana_qa/issue_5765_timezone_support/_11_partition/cases/57_str_to_date_format.sql
UTF-8
5,621
3.234375
3
[ "BSD-3-Clause" ]
permissive
set timezone 'Asia/Shanghai'; drop table if exists t; create table t (i int auto_increment, j varchar, dttz datetime with time zone, dtltz datetime with local time zone, tstz timestamp with time zone, tsltz timestamp with local time zone ) ; insert into t values (null,'2015-3-8 01:59:59',datetimetz'2015-3-8 01:59:59',d...
true
0c986f5ec971d165dc4dd4f7b101bae0fb006351
SQL
mundodron/arduino-bot-aurelio
/Querys/~eb3ACD.sql
UTF-8
1,835
3.03125
3
[]
no_license
SELECT /*+ ordered parallel(a 08) full(a) */ a.account_no, a.bill_ref_no, a.bill_ref_resets, e.full_sin_seq, -- b.bill_ref_no, -- b.bill_ref_resets, a.closed_date, b.statement_date, b.payment_due_date, subst...
true
2635ec98a1b1aa4fc26f8f1927d20f7548b0711b
SQL
decentos/OtusSpringProject
/hw13-springSecurityAcl/src/main/resources/data.sql
UTF-8
2,312
2.796875
3
[]
no_license
insert into AUTHORS(FIRST_NAME, LAST_NAME) values ('Lewis', 'Carrol'); insert into AUTHORS(FIRST_NAME, LAST_NAME) values ('Charlotte', 'Bronte'); insert into AUTHORS(FIRST_NAME, LAST_NAME) values ('Miguel', 'de Cervantes'); insert into AUTHORS(FIRST_NAME, LAST_NAME) values ('Herbert', 'Wells'); insert into AUTHORS(FIRS...
true
83a388f111d5060471ae4f5678dd78c8ddf819f5
SQL
Data944/Insert_update_Delete-statement-MySQL
/updating a single row.sql
UTF-8
363
2.53125
3
[]
no_license
use sql_invoicing; update invoices set payment_total = 10, payment_date = '2019-03-01' where invoice_id = 1; update invoices set payment_total = 0, payment_date = null where invoice_id = 1 -- use null to reset null value in column that accepts null values update invoices set payment_total = invoice_total * 0.5, paym...
true
bdc61e5b9414e4690ecd576c490760f276cd6ba0
SQL
JcGaara/SGA-PLSQL-OPE
/SGA-OPERACION/Views/V_OFERTA_COMERCIAL.sql
UTF-8
1,146
2.828125
3
[]
no_license
CREATE OR REPLACE VIEW OPERACION.V_OFERTA_COMERCIAL AS select vtatabpspcli.NUMPSP, vtatabslcfac.NUMSLC, vtatabpspcli.FECPSP, vtatabpspcli.TITPSP, vtatabpspcli.NUMOFE, vtatabpspcli.DURCON, vtatabpspcli.OBSPSP, vtatabpspcli.ESTPSPCLI, vtatabpspcli.NRODOC, vtatabpspcli.NUMCRT, vtatabpspcli.IDOPC , ...
true
f8996bf88085d941dc6512a7ebde9509881639f0
SQL
cyanthecomputerscientist/SQL-BasicOperationsII
/answers/exercise9.sql
UTF-8
95
2.78125
3
[]
no_license
SELECT * FROM Courses WHERE CourseName BETWEEN "ColdFusion" AND "Python" ORDER BY CourseName;
true
33e69aca70a0057ee67325f46d22eb1714ab2625
SQL
theman0123/foodz
/db/createUserFacebook.sql
UTF-8
160
2.625
3
[]
no_license
INSERT INTO users (username, facebook_id) VALUES ($1, $2) ON CONFLICT (facebook_id) DO UPDATE username = $1 RETURNING username, user_id;
true
42cf92a6794e8c1938e8f9386bca645293e5845e
SQL
ailtonluiz/erp-api
/src/main/resources/db/migration/V008__create_table_user_group.sql
UTF-8
330
3.328125
3
[]
no_license
CREATE TABLE user_group ( user_id BIGINT NOT NULL, group_id BIGINT NOT NULL, PRIMARY KEY (user_id, group_id), CONSTRAINT fk_user_group_group FOREIGN KEY (group_id) REFERENCES `group` (id), CONSTRAINT fk_user_group_user FOREIGN KEY (user_id) REFERENCES user (id) ) ENGINE = InnoDB DEFAULT CHARSET...
true
54a448e9fae07d0880c530b3ba6807bdf0d0272e
SQL
radtek/abs3
/sql/mmfo/bars/Table/firewall_job_module_params.sql
WINDOWS-1251
4,789
3.40625
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/FIREWALL_JOB_MODULE_PARAMS.sql ======= PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
9c543ad70d5b6081e263dce4c0b74d7e668df446
SQL
Thangtran96/CodeDuAn
/Tho/vanban.sql
UTF-8
823
3.265625
3
[]
no_license
use lportal; alter table lportal.vanban_vanban add foreign key (nguoikiID) references lportal.vanban_nguoiki (nguoikiID); alter table lportal.vanban_vanban add foreign key (userID) references lportal.vanban_nguoidung(userId); alter table lportal.vanban_vanban add foreign key (noiBHId) references lportal.vanban_noib...
true
8be54875cda5aa28adf58db94051b51ba6badf01
SQL
kevinshuai/Coding_Practice
/sql/cum_sum.sql
UTF-8
3,442
4.6875
5
[]
no_license
/* two month data get sum and cum sum */ CREATE TABLE march ( user_id INT NOT NULL, p_date DATE NOT NULL, transaction_amount INT NOT NULL ); INSERT INTO march(user_id, p_date, transaction_amount) VALUES (1,'2014-03-31', 15), (1,'2014-03-30', 30), (1,'2014-03-30', 20), (1,'2014-03-30', 1), (1,'2014-03-24', 2...
true
7dc73eaef287b4ae4754e09bf5fbbfbc422f1126
SQL
Kinotosi/Web-CRUD-with-Flask
/sekolah.sql
UTF-8
3,218
3.40625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 15, 2021 at 02:12 PM -- Server version: 10.4.19-MariaDB -- PHP Version: 8.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
3c5c261b28563d529008bec35301ce2f57560151
SQL
tebanSalas/TMS
/tms/installer/DB_postgres/Tables/access_log.sql
UTF-8
465
2.5625
3
[]
no_license
-- Table: access_log -- DROP TABLE access_log; CREATE TABLE access_log ( id_registry integer NOT NULL, id_member integer NOT NULL, login_date timestamp without time zone NOT NULL, id_account integer NOT NULL, "login" character varying(30) NOT NULL, logout_date timestamp without time zone, portal charac...
true
30ab315bb2233d9b40e3ddf3798179e4be5c77ae
SQL
JesseWright/cs373
/notes/04-07.sql
UTF-8
422
3.5625
4
[]
no_license
-- ----------- -- Fri, 7 Apr -- ----------- select cName from College as R inner join College as S where (R.state = S.state) and (R.cName != S.cName); select cName, state from College as R where not exists (select * from College as S where R...
true
09050c5e08b7ff5a4bf04fc0f3b5918f78aec7a5
SQL
MerlotQ/csdn-czl389
/家教网站源码/test.sql
UTF-8
5,969
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2016-10-18 14:58:04 -- 服务器版本: 10.1.13-MariaDB -- PHP Version: 5.6.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40...
true
2d3f7d474f68dd2ae1fb29fcb7eeb14cc2589f37
SQL
fabiotadashi/thot-server
/src/test/resources/db/migration/V1_004__alter_table_security.sql
UTF-8
495
3.265625
3
[]
no_license
ALTER TABLE TB_USER ADD PASSWORD VARCHAR(255); ALTER TABLE TB_USER_AUD ADD PASSWORD VARCHAR(255); create table USER_ROLES ( USER_ID BIGINT not null, ROLES INTEGER, constraint FKLQB868DHPATXI3E1M1NU3UKR5 foreign key (USER_ID) references TB_USER ); create table USER_ROLES_AUD ( REV INTEGER not null, USER_ID BIGI...
true
f66b7e6291aeacd21aa305648c14a27348e2e203
SQL
uk-gov-mirror/dvsa.mot-automated-testsuite
/src/server/resources/queries/authorised-examiner/AE_WITH_ASSIGNED_SITE.sql
UTF-8
469
3.890625
4
[ "MIT" ]
permissive
select afe.ae_ref as ae_ref, o.name as ae_name, assigned_site.site_number as site_number, assigned_site.name as site_name from organisation o, auth_for_ae afe, site assigned_site, organisation_site_map osm where o.name is not null and afe.organisation_id = o.id and osm.organisation_id = o.id and osm.site_id = assigne...
true
e980b114813eda5190938f5cabbc8ea961135d1d
SQL
haojunyu/UnionGo
/data/select.sql
UTF-8
1,364
3.65625
4
[]
no_license
-- views Alter VIEW `UserActivityDetail` AS select Activity.activityId,activityTitle,activityDesc,activityDate,activityTime,activityLat,activityLong,activityPos,UserActivity.signed,UserActivity.userId,UserActivity.type from Activity join UserActivity on Activity.activityId=UserActivity.activityId; CREATE VIEW `Activit...
true
7b82ed95ef85a5956151c6b41b54efbe8b6d84ad
SQL
RobertJGabriel/Third-Year-Group-Project
/backup/database import/gym.sql
UTF-8
4,395
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 06, 2014 at 02:39 PM -- Server version: 5.6.14 -- PHP Version: 5.5.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
true
f52a2edfd67979e43f5b854438e44394261025df
SQL
RigobertoBolanos/DataBasesFinalProject
/DML/pkAsignacionNivel2.sql
UTF-8
2,505
3.578125
4
[]
no_license
CREATE OR REPLACE PACKAGE pkAsignacionNivel2 as PROCEDURE pAsignarIndividual(idSolicitud VARCHAR2,cedulaFuncionario VARCHAR2); PROCEDURE pInsertar(cedulaFuncionario VARCHAR2, nombre VARCHAR2, fechaNacimiento DATE, direccion VARCHAR2, telefono VARCHAR2); END pkAsignacionNivel2; / CREATE OR REPLACE TRIGGER trigger_name ...
true
c2b650c08d4663e19f88121dd148a8e3041d6f52
SQL
AbdullaElshourbagy/Hacker-Rank-Solutions
/SQL/01 - Basic Select/09_Weather_Observation_Station_3.sql
UTF-8
155
2.84375
3
[]
no_license
--https://www.hackerrank.com/challenges/weather-observation-station-3/problem --Solution SELECT DISTINCT(CITY) FROM STATION WHERE MOD(ID, 2) = 0;
true
95291af4710d4b327d7366c1b7255865c09d5ecf
SQL
MustafaShaaban/employees-system
/sqlFile/mvc.sql
UTF-8
2,776
3.40625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 22, 2018 at 04:24 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
6bc993a24cb2e81d6166f4c2ca6d52454eeb9e93
SQL
BenjaminTzudiker/CKD_Database
/Old Sql/CreateLoadTemporaryTables.sql
UTF-8
8,688
3.3125
3
[]
no_license
create table SHistEncounter (patient_id numeric(38) ,encounter_id numeric(38) ,encounter_date timestamp ,SEXUALLY_ACTIVE varchar(254) ,FEMALE_PARTNER varchar(254) ,MALE_PARTNER varchar(254) ,SMOKING_STATUS...
true
58763dd233ee44c0d944d33e2a5b88d5c52c86ed
SQL
lincolnvieira/uPartner
/Database/Stored Procedure/sp_publicacoes.sql
UTF-8
1,190
3.859375
4
[]
no_license
CREATE PROCEDURE sp_publicacoes @CampoBusca int AS SELECT us.Usuario_ID AS Usuario_ID, us.Nome AS Nome, us.Sobrenome AS Sobrenome, tc.Descricao AS TipoConta, us.FotoPerfil AS Foto_Perfil, us.MimeType AS MimeType_Perfil, pb.Publicacao_ID ...
true
7604f66dda97f91ed89077376db0439bd59cb040
SQL
x-cpu/SQL
/NumberOfSQLconnections.sql
UTF-8
166
3.03125
3
[]
no_license
SELECT DB_NAME(dbid) AS DBName, COUNT(dbid) AS NumberOfConnections, loginame FROM sys.sysprocesses GROUP BY dbid, loginame ORDER BY DB_NAME(dbid)
true
8274cab24bd3b16a1dfe10016a87a34acf80128d
SQL
equatic/equatic-tool
/src/main/resources/db/migration/V30__add_url_to_institutions_and_data_uploads.sql
UTF-8
1,460
2.890625
3
[]
no_license
ALTER TABLE INSTITUTIONS ADD URL VARCHAR(200) CONSTRAINT INSTITUTION_URL_UK UNIQUE; INSERT INTO DATA_SHEET_COLUMN_CODES (CODE) VALUES ('URL'); INSERT INTO DATA_SHEET_COLUMN_TYPES (CODE, VALUE_TYPE, IS_FIXED_VALUE, IS_MULTIPLE_CHOICE) VALUES ('URL', 'STRING', 0, 0); INSERT INTO DATA_SHEET_COLUMNS (CODE, DATA_SHEET_...
true
5681903f51dc89da474d7d4889d83a8ebaa68440
SQL
felipe-quirozlara/proyecto-semestral-bbdd
/PRUEBA3 PROG DE BASE DE DATOS/prueba-partidosganados.sql
UTF-8
3,009
3.859375
4
[]
no_license
CREATE OR REPLACE PROCEDURE partidos_ganados (id_jugador in jugador.id_jugador%type, cant_ganados out number ) is TYPE tipo_encuentros IS TABLE OF encuentro.id_encuentro%TYPE INDEX BY PLS_INTEGER; tabla_encuentros tipo_encuentros; plantel_jugador NUMBER; equipo1 ...
true
89c2817fc59b17e5ebb5bc2ff171186f3fb44235
SQL
eduardomoreira1506/teste_transmeet
/teste_transmeet.sql
UTF-8
1,745
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 13-Fev-2019 às 15:32 -- Versão do servidor: 10.1.37-MariaDB -- versão do PHP: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
b9338d42b3f62a0d0682719e4f54d2b3999a01ee
SQL
vytsci/forkcms-module-members
/src/Backend/Modules/Members/Installer/Data/install.sql
UTF-8
5,238
3.484375
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS `members`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `members` ( `id` int(11) NOT NULL, `member_id` int(11) DEFAULT NULL, `type` enum('natural','juridical') NOT NULL DEFAULT 'natural', `first_name` varchar(255) N...
true
b294794c75fabe968f2a7a89cb7d6f7be9abc446
SQL
Drop-it-Like-its-HotSpot/Database
/User table.sql
UTF-8
419
3.0625
3
[]
no_license
-- Table: users -- DROP TABLE users; CREATE TABLE users ( "User_id" serial NOT NULL, "Email_id" character varying(80), "Latitude" double precision, "Longitude" double precision, "DisplayName" character varying(20), radius double precision, CONSTRAINT pk_user_id PRIMARY KEY ("User_id"), CONSTRAINT "use...
true
71378d32de1b5f2b2bd862f6b411b8a2aa892279
SQL
Ecotrust/forestplanner
/idb_import/treelive_summary/unpivoted/schema.sql
UTF-8
714
2.75
3
[ "BSD-3-Clause" ]
permissive
DROP TABLE TREELIVE_SUMMARY; CREATE TABLE TREELIVE_SUMMARY ( CLASS_ID Int8, PLOT_ID Int8, COND_ID Int8, VARNAME varchar (60), FIA_FOREST_TYPE_NAME varchar (60), CALC_DBH_CLASS Float8, CALC_TREE_COUNT Int4, SumOfTPA Float8, AvgOfTPA Float8, SumOfBA_FT2_AC Float8, AvgOfBA_F...
true
629d4c3c650182ad14a0ed670dc57d7dfff5328f
SQL
dylants/catsdb
/db/init.sql
UTF-8
1,435
3.84375
4
[]
no_license
SET SQL_MODE='ALLOW_INVALID_DATES'; DROP DATABASE IF EXISTS `catsdb`; CREATE DATABASE `catsdb`; USE catsdb; CREATE TABLE `Users`( `createdAt` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, `id` BIGINT(20) NOT NULL AUTO_INCREMENT, `lastLogin` TIMESTAMP DEFAULT 0, `password` VARCHAR(255) NOT NULL, `updatedAt`...
true
7312c9450accd1ae9599b7cea5f16031056a4d1d
SQL
FreekDB/transmart-data
/ddl/oracle/deapp/de_protein_annotation.sql
UTF-8
474
2.796875
3
[]
no_license
-- -- Type: TABLE; Owner: DEAPP; Name: DE_PROTEIN_ANNOTATION -- CREATE TABLE "DEAPP"."DE_PROTEIN_ANNOTATION" ( "ID" NUMBER(*,0), "GPL_ID" VARCHAR2(50 BYTE) NOT NULL ENABLE, "PEPTIDE" VARCHAR2(200 CHAR) NOT NULL ENABLE, "UNIPROT_ID" VARCHAR2(50 CHAR), "BIOMARKER_ID" NVARCHAR2(200), "ORGANISM" VARCHAR2(200 CHAR)...
true
8ac3a46f9bfdf4b04b038728b496fac79cdc640c
SQL
rbozzini/java-performance
/CorsoJavaEEDeveloper/docs/corso.sql
UTF-8
726
3.34375
3
[]
no_license
insert into corso_java.clienti (nome, cognome, email, telefono) values ('Arianna', 'Brandolini', 'ari.bramdolini@gmail.com', ''); insert into corso_java.ordini (id_cliente, data_consegna, importo) values (7, null, 900); delete from corso_java.clienti where ID = 5; select email from corso_java.clienti where nome='Ross...
true
1324bbccf7c65f51fd84d0c6757c6751650b1fea
SQL
CUBRID/cubrid-testcases
/sql/_23_apricot_qa/_02_performance/_02_function_based_index/cases/function_based_index_function_time_to_sec.sql
UTF-8
2,258
3.265625
3
[ "BSD-3-Clause" ]
permissive
--+ holdcas on; set system parameters 'dont_reuse_heap_file=yes'; create table t1(a char(1200), b varchar(1200), c nchar(1200), d NCHAR VARYING(1200), e BIT(1200), f BIT VARYING(1200), g int, h SMALLINT, i BIGINT, j NUMERIC, k FLOAT, l DOUBLE, m MONETARY, n DATE, o TIME, p TIMESTAMP, q DATETIME); ins...
true
021277a095004d05db4cba8c977af72de9a27262
SQL
enrinal/SiWali-Web
/siwali_sql.sql
UTF-8
71,663
3.015625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 15, 2019 at 10:20 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.1.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
e37072ebd540528e2741088e5471054b293e582a
SQL
akbaker/erate
/fabric/import/missouri_library.sql
UTF-8
657
2.609375
3
[]
no_license
drop table if exists fabric.mo_lib; CREATE TABLE fabric.mo_lib ( loc_type character varying(10), site_id character varying(5), org_name character varying(50), site_name character varying(100), fcc_entity_no character varying(10), mb11_12 double precision, mrc11_12 double precision, mb12_13 double precision, m...
true
b08de65fb4f29e59c3954baf65a5b3d1173229fc
SQL
gracewgao/htg-server
/data/schema.sql
UTF-8
578
3.78125
4
[]
no_license
-- table for users CREATE TABLE IF NOT EXISTS user ( id SERIAL, username VARCHAR(100) NOT NULL UNIQUE, email_address VARCHAR(255) NOT NULL UNIQUE ); -- images table CREATE TABLE IF NOT EXISTS images ( image_id INTEGER PRIMARY KEY, fname TEXT NOT NULL UNIQUE, detail TEXT, created_on DATETIM...
true
e80f4468ce27f5d89ed4b308d444c1ab65169aee
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day13/select0900.sql
UTF-8
299
2.625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-12T09:00:00Z' AND timestamp<'2017-11-13T09:00:00Z' AND SENSOR_ID=ANY(array['01ac8a35_2b90_4122_9ab0_c06f0a845eec','c3d22220_eb84_493b_bf93_0978453f3a54','wemo_10','3a645823_4857_4371_9faf_4d1ac78fbb93','wemo_06'])
true
616d2e7abadb9488c081461a783f0950c4ffeb35
SQL
Legresa/Datebase_2255_Lukicheva_Alena
/Многотабличные запросы №30.sql
UTF-8
186
3.890625
4
[]
no_license
SELECT SUBSTRING(st.name,1,1), max(hb.risk), min(hb.risk) FROM student st, student_hobby sh, hobby hb WHERE st.id = sh.student_id and hb.id = sh.hobby_id GROUP BY SUBSTRING(st.name,1,1)
true