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
04cc3996ae4bf317ccaed1cc391888e99f65258e
SQL
juliuskamil/pw2020_360179155
/kuliah/phpdasar.sql
UTF-8
2,479
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 27, 2021 at 08:59 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
13b866bdaf43d8bd77c36471869e1a3b15f08645
SQL
wfuu/SQL
/Aggregation.sql
UTF-8
1,425
4.6875
5
[]
no_license
# Count the number of makers with more than 100 available Decor items # Records are on the item level. Each item has a "maker" attribute SELECT COUNT(*) FROM (SELECT maker, COUNT(*) FROM db.items WHERE item_type = 'Decor' AND available = 1 AND maker <> 'Unknown' GROUP BY maker HAVING COUNT(*) > 100) tmp # C...
true
b6d99078aa847f62217276cfb216a70ca038e6f6
SQL
sikale/wisdompcb
/二层/鸿泰源代码/acessexe/file/EP087材料出库查询.sql
GB18030
8,456
3.015625
3
[]
no_license
--EP087ϳѯ ELECT Data0457.REF_NUMBER,Data0457.GON_NUMBER, data0456.grn_number, data0022.tax_2, Data0017.INV_PART_NUMBER,Data0017.INV_NAME, Data0017.INV_DESCRIPTION,data0017.STOCK_BASE, data0034.dept_code,Data0034.DEPT_NAME,Data0207.TDATE,Data0496.GROUP_NAME,data0496.group_desc, data0019.inv_group_name, ...
true
544a5035a6bb9fc9f04922800c7d5b8c1918c33b
SQL
bellmit/flexdb
/2.HOST/4.Function/fn_getmaxdeffeerate.sql
UTF-8
529
3.34375
3
[]
no_license
CREATE OR REPLACE FUNCTION fn_getmaxdeffeerate(p_afacctno varchar2) return number is l_maxdeffeerate number(10,4); begin select max(odt.deffeerate) into l_maxdeffeerate from afmast af, afidtype afid, odtype odt where af.actype = afid.aftype and afid.objname = 'OD.ODTYPE' and odt.actype = afid.actype and odt.status = 'Y...
true
271ff3f531d290aa857fe177141956790240ed2d
SQL
dante7qx/springboot
/springboot-jwt-server/src/main/resources/data-h2.sql
UTF-8
855
2.5625
3
[]
no_license
-- t_user insert into t_user(id, user_name, password, email, last_password_reset_date) values (1, 'dante', '$2a$10$0mZumykXOWGcaosL7K6wqOv3v3McNyRbvn0.nOJW9ezmeIrXwtaJK', 'dantefreedom@gmail.com', '2017-07-11 12:00:00'); insert into t_user(id, user_name, password, email, last_password_reset_date) values (2, 'snake', '$...
true
d1866aefd6d02a133f4466984839af5d96db6b37
SQL
C291F14/C291A1
/291 Mini Project 1/a2-data.sql
UTF-8
8,935
2.875
3
[ "Apache-2.0" ]
permissive
-- -- Assignment 2 Database -- Cody Ingram -- -- Populate Medical_lab table insert into medical_lab values ('Edmonton West','780 Edmonton Rd.', '7809102014'); insert into medical_lab values ('CMPUT Lab', '10110 CMPUT Ridge', '8881010110'); insert into medical_lab values ('Calgary Lab', '587 Calgary Blvd.', '58744466...
true
fca7b2eab8f688acf46d5b8117fbe97e07054de6
SQL
AbiRubrico/ThesisFinals-2.0-
/Thesis/database/DB (1)/marthagoshen_concern.sql
UTF-8
2,671
3.234375
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.16, for Win64 (x86_64) -- -- Host: localhost Database: marthagoshen -- ------------------------------------------------------ -- Server version 5.7.24 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */...
true
161a612c1cb77428958381eae5775ae78d734a23
SQL
bellmit/kem
/kem/target/classes/upgrade/dbupdater/notify@0v11.sql
UTF-8
1,723
3.609375
4
[]
no_license
CREATE PROCEDURE exe() BEGIN DECLARE ts VARCHAR(50) DEFAULT "{{dataBaseName}}"; DECLARE tn VARCHAR(50) DEFAULT "notify"; -- 表结构创建: -- 删除例子 -- DROP TABLE IF EXISTS notify; -- 创建例子 CREATE TABLE IF NOT EXISTS `notify` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '编号', `read_time` datetime DEFAULT NULL, ...
true
f039bd7cf44fc40c9adaa3c7f92135540ff9a0dc
SQL
agildss/jinja-sql-demo
/macros/volume_ratios.sql
UTF-8
670
3.40625
3
[]
no_license
{% from 'volume_ratio.sql' import volume_ratio %} {% macro volume_ratios(numerator_vol_refs, denominator_vol_ref) %} select age_group, state, {%- for ref in numerator_vol_refs -%} {{ ref }}_over_{{ denominator_vol_ref }} {%- if not loop.last -%},{%- endif -%} {% endfor %} from ({{ volume_r...
true
19dd2bfadc01acbfcd7f7f010013936e3fbdaacd
SQL
analy96/kochtopf
/data/schema.sql
UTF-8
1,597
3.21875
3
[]
no_license
create database kochtopf; use kochtopf; CREATE TABLE kategorie ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, kategorie varchar(64) not null, PRIMARY KEY (id) ); CREATE TABLE benutzer ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, benutzername VARCHAR(128) NOT NULL, vorname VARCHAR(64) NOT ...
true
d3dd2f4dc6583faec7b53dd9254f00e302c5ef97
SQL
Jeanzw/LeetCode_Practice
/SQL/Easy/1084. Sales Analysis III(只在某个时间段出现的产品).sql
UTF-8
1,922
4.6875
5
[]
no_license
select Sales.product_id,product_name from Sales join Product on Product.product_id = Sales.product_id group by Sales.product_id having min(sale_date) >= '2019-01-01' and max(sale_date) <='2019-03-31' -- 后来一次写,我是用了cte,从而会比较清楚 with product_in_spring_2019 as (select product_id, min(sale_date) as min_da...
true
27711d6938c7cbc89c815d8244d45679d24c07ad
SQL
yokohamaracana/Webtintuc
/tintuc.sql
UTF-8
9,951
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 14, 2021 at 11:31 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
200686045606cd3ef9d917e46eb531b84f46fccb
SQL
marianhtuyet/Mobile
/appbanhang.sql
UTF-8
9,771
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th12 27, 2019 lúc 03:37 PM -- Phiên bản máy phục vụ: 10.1.38-MariaDB -- Phiên bản PHP: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
true
3cc003847fbdc1faf4dd4552203210109fee5c2f
SQL
alibaba/canal
/parse/src/test/resources/ddl/alter/test_22.sql
UTF-8
1,967
2.703125
3
[ "Apache-2.0" ]
permissive
CREATE TABLE `tb_sxbbqclsgf` ( `col_avzjcdfkfv` year(4) NOT NULL DEFAULT '2019', `col_kgfprqgdwt` mediumtext CHARACTER SET latin1, CONSTRAINT PRIMARY KEY (`col_avzjcdfkfv`), UNIQUE `col_kgfprqgdwt` (`col_kgfprqgdwt`(6)) ) DEFAULT CHARSET=latin1; CREATE TABLE `tb_uakpdqzysm` ( `col_zknooyoueg` time NOT NULL DE...
true
a307b7aee0f91beef76c5049eb08d586cc06ac82
SQL
jkjudy/VSCoded
/Snapshot/Category DataSnapView/SubcatMod/SubCat Scope.sql
UTF-8
608
3.4375
3
[]
no_license
WHERE CUSTOMER_ID IN ( SELECT DISTINCT PURCHASER_AGENT_ID FROM GPO.PBI_TRANS_4095_EXTRACT WHERE "&Filters&" AND VOL NOT BETWEEN - 1 AND 1 AND ACTIVE_INDICATOR = 1 SELECT DISTINCT ITEM_CATALOG_ID FROM GPO.ITEM_INFO_HISTORY_OR WHERE "&Filters&" WHERE ITEM_CATALOG_ID IN ( SELECT DISTINCT ITEM_CATALOG_...
true
2bdac5871c2bd73a559f11b8b2f30c074474254e
SQL
mhuarca/flashcards
/backend/src/main/resources/db/migration/V1__create_tables.sql
UTF-8
3,255
3.90625
4
[]
no_license
create table users ( id varchar(255) primary key, username varchar(255) UNIQUE, email varchar(255) UNIQUE, password varchar(255) NOT NULL, ); create table decks ( id int primary key, userId varchar(255) NOT NULL, title varchar(255) NOT NULL, category varchar(100) NOT NULL, foreign k...
true
1aadbd50e984300ed837515d7ae9a43afd5101cc
SQL
mauriciomanoel/AESODESENV32015.2
/src/sql.txt
UTF-8
983
3.84375
4
[]
no_license
-- SET FOREIGN_KEY_CHECKS = 0; -- truncate table cliente; -- truncate table endereco; -- SET FOREIGN_KEY_CHECKS = 1; CREATE TABLE `cliente` ( `cliente_id` INT(11) NOT NULL AUTO_INCREMENT, `nome` VARCHAR(50) NOT NULL, `cpf` VARCHAR(11) NOT NULL, `banco` VARCHAR(50) NOT NULL, PRIMARY KEY (`cliente_id`), UNIQUE IN...
true
f8b5e909ef79e5b1d517211f98f3c2c66af693b0
SQL
qwat/qwat-data-model
/update/delta/delta_1.4.0_001_DMS.sql
UTF-8
2,037
3.40625
3
[]
no_license
CREATE EXTENSION IF NOT EXISTS "pgcrypto"; CREATE TABLE qwat_vl.document_type () INHERITS ( qwat_vl.value_list_base); ALTER TABLE qwat_vl.document_type ADD CONSTRAINT vl_document_type_pk PRIMARY KEY (id); COMMENT ON TABLE qwat_vl.document_type IS 'document_type table'; ALTER TABLE qwat_vl.document_type ADD COLUMN acti...
true
5bc4ba7210c457ea00fb9c37ffd11a6bb81ce415
SQL
qjhart/dwr-calsimetaw
/pre2003/bin/join4km/baydelta.sql
UTF-8
1,259
3.9375
4
[]
no_license
create schema baydelta; set search_path=baydelta,public; create table points ( id varchar(8) primary key, region text, centroid geometry('Point',3310) ); insert into points VALUES ('sac','Sacramento River',st_transform(st_setsrid(ST_MakePoint(-122.38,40.44),4326),3310)), ('sj','San Joaquin',st_transform(st_setsrid(...
true
c07def614ad7c26d6232384a5d7c69a2432ccc47
SQL
OvidiuEDSgrup/TET
/OBIECTE/140405/SQLQuery4.sql
UTF-8
142
2.71875
3
[]
no_license
select * from pozdoc p where p.Tip='AP' and p.Cantitate<0 and p.detalii is not null group by p.Numar having count( --order by p.idPozDoc desc
true
f1d5980e333770897ef4e42003addff58e77798c
SQL
nss-day-cohort-28/chinook--BradDavisTech-
/total_sales_2009.sql
UTF-8
209
3.234375
3
[]
no_license
-- What are the respective total sales for each of those years? select sum(Total) as "Total Sales for 2009" from Invoice i where i.InvoiceDate > "2008-12-31 00:00:00" AND i.InvoiceDate < "2010-01-01 00:00:00"
true
c396590e0d2f6e7c801e1a27aab9ab00e324373a
SQL
diogoalves86/interativacp2
/InterativaCPII/protected/data/InterativaCPII.sql
UTF-8
2,544
3.4375
3
[]
no_license
-- -- Table structure for table `Post` -- DROP TABLE IF EXISTS `Post`; CREATE TABLE IF NOT EXISTS `Post` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idUser` int(11) NOT NULL, `idImage` varchar(400) NOT NULL, `title` varchar(400) NOT NULL, `message` text NOT NULL, `creationTime` datetime NOT NULL, `updateTim...
true
b7968fa2e65714df6c02aa628b1b85b9a899ae80
SQL
furiousnur/Php-Ecommerce
/database/myshop(4-13-18).sql
UTF-8
8,012
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 13, 2018 at 12:59 AM -- 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
0fb8c6dc5780c2ecc70f9a8defb008626be06d41
SQL
SMNSSC/KKUL
/library/kku_lib.sql
UTF-8
3,677
3.140625
3
[ "MIT", "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 06, 2018 at 09:13 AM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
8091015cbb0e84d5ef7e183ab228a157ed8a66ab
SQL
kogasom/pipeline
/database/migrations/1548252164_doke.up.sql
UTF-8
1,559
3
3
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
CREATE TABLE `digitalocean_doke_clusters` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `cluster_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `region_slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `version_slug` varchar(...
true
715a72be0e4a0f6d60060685f57f6514f5249e2b
SQL
anyelot/FinalBDGANT-V
/ganaderiaApp/sql/script_ generacion_db.SQL
UTF-8
6,106
3.625
4
[]
no_license
 --DROP DATABASE IF EXISTS GANTV; --CREATE DATABASE GANTV; --USE DATABASE GANTV; --1 DROP TABLE IF EXISTS registro_venta,cliente,salida,defuncion,salida,enfermedad; CREATE TABLE cliente( codigo INTEGER PRIMARY KEY, nombre VARCHAR(30), telefono VARCHAR(20), credito FLOAT, calificacion INTEGER );...
true
08c5254cf3812a5707312d8f824309a3b5ea0d59
SQL
demianbarry/web-db
/inventario/trunk/DBScripts/24.updates.sql
UTF-8
706
2.546875
3
[]
no_license
START TRANSACTION; ALTER TABLE `inventario`.`almacenes` MODIFY COLUMN `observaciones` MEDIUMTEXT CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL; ALTER TABLE `inventario`.`centro_costo` MODIFY COLUMN `observaciones` MEDIUMTEXT CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL; ALTER TABLE `...
true
f452a0a27dde296d720b1553a17616e7bb12f9dd
SQL
muntaza/Open_Persediaan
/sql1_persediaan/persediaan_barang_sql2/persediaan_barang2_bpmpd.sql
UTF-8
423
2.9375
3
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
DROP VIEW IF EXISTS view_persediaan_barang2_bpmpd; CREATE VIEW view_persediaan_barang2_bpmpd AS SELECT *, sum(jumlah) OVER (PARTITION BY kode_barang ORDER BY serial, tanggal, id_persediaan) as pra_saldo FROM view_persediaan_barang_bpmpd WHERE 1 = 1 AND id_skpd = 10; GRANT ALL PRIVILEGES ON view_persediaan_bara...
true
98741cbd969881a136096c4c9eec743354e17118
SQL
prakashkoganti/SpringRestRepo
/SpringRestExample/src/main/resources/Database/empdata_navriti_details.sql
UTF-8
2,972
2.953125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: localhost Database: empdata -- ------------------------------------------------------ -- Server version 5.7.16-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;...
true
eb5f1030ef4c5f5703b634533b8dce6de1b5e259
SQL
Yellowmanic/CrashData
/2019_Crash_Project.sql
UTF-8
6,148
3.78125
4
[]
no_license
--Data Exploration ---- Accident by Weather Count SELECT weather, COUNT(WEATHER) as count FROM CrashData2019 GROUP BY WEATHER ORDER BY 2 DESC -- Accident by Weekday Select DATENAME(dw, WEEKDAY) as Weekday, count(WEEKDAY) as count FROM CrashData2019 GROUP BY WEEKDAY ORDER BY 2 DESC -- Accident by Hour...
true
775fb63c0d61e75d8145a99acd7527b4e83a23d3
SQL
SanaaSaadoune/ReservationVols_NodeJs
/bdreservationvols.sql
UTF-8
3,998
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : lun. 01 fév. 2021 à 11:11 -- Version du serveur : 10.4.11-MariaDB -- Version de PHP : 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SE...
true
dc26ca664204e8b4d9b1646e43b95ec9c9f90c62
SQL
AkshayMehta2301/Online-Movie-Ticket-Booking-System
/movie_ticket.sql
UTF-8
1,717
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Oct 16, 2019 at 12:21 PM -- Server version: 5.7.24 -- PHP Version: 7.2.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
00f1103a610eaa936a64b5461f40ca5b778b67f5
SQL
VVIZE-ops/Student_info
/sql/建表语句.sql
UTF-8
1,184
3.21875
3
[]
no_license
-- 建表sql CREATE DATABASE userweb; DROP TABLE IF EXISTS use_info; CREATE TABLE `use_info` ( `id` int(32) NOT NULL AUTO_INCREMENT, `userName` varchar(255) DEFAULT NULL, `sex` varchar(10) DEFAULT NULL, ...
true
588c2ca435f34f087af9fad9c4a720e0fe54a780
SQL
Ignema/BDD-R
/sql/db/db.sql
UTF-8
1,623
3.703125
4
[]
no_license
------------------- Creating our distributed database CREATE DATABASE LINK lien_DB_DB1 CONNECT TO admin1 IDENTIFIED BY oracle using 'DB1'; CREATE DATABASE LINK lien_DB_DB2 CONNECT TO admin2 IDENTIFIED BY oracle using 'DB2'; CREATE SYNONYM Agence FOR Agence@lien_DB_DB1; CREATE VIEW Client (No, Nom, Prenom, Adresse, ...
true
1eb3c3c7811c9058aa89824334a48a5305adbb94
SQL
Kryspo/blaion
/Data/dist/sql/game/account_premium.sql
UTF-8
707
2.578125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : Server Source Server Version : 50522 Source Host : localhost:3306 Source Database : l2jgs Target Server Type : MYSQL Target Server Version : 50522 File Encoding : 65001 Date: 2017-11-23 15:54:21 */ SET FOREIGN_KEY_CHECKS=0; -- ------...
true
84c6eff281937186f39a611e3d0ecba20638e4d0
SQL
ro-msg-spring-training/online-shop-AndreeaDan97
/shop/src/main/resources/db/migration/V1_7__create_Revenue_schema.sql
UTF-8
228
3.5
4
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS revenue( id int NOT NULL AUTO_INCREMENT PRIMARY KEY, id_location int, date timestamp, sum decimal, CONSTRAINT FK_REVENUE_LOCATION FOREIGN KEY(id_location) references location(id) );
true
4e27eeea049a968ed09ea184069025dca5e36a5c
SQL
hiqdev/reodb
/src/show/obj_stats.sql
UTF-8
150
3.15625
3
[ "BSD-3-Clause" ]
permissive
SELECT c.name, count(*) FROM obj o JOIN zref c ON c.obj_id = o.class_id GROUP BY c.name ORDER BY count DESC ;
true
a1de4822cd13d84cb5f609e383aeec0373b51ac4
SQL
MC-Sol/DBSuperMarket
/quary/8.firstpartyear.sql
UTF-8
143
2.5625
3
[]
no_license
SELECT CustomName, CustomSurname, CustomMiddle, BeginDate, Town FROM customers WHERE YEAR(BEGINDATE)=2020 AND MONTH(BEGINDATE) BETWEEN 1 AND 6
true
cd6587e8e7d4420cfcf468bd791ac7a7d70d7f3e
SQL
evrimulgen/FCR
/DO_RECALC_MASS_PAY_BY_PERSONID.sql
WINDOWS-1251
4,744
3.4375
3
[]
no_license
-------------------------------------------------------- -- DDL for Procedure DO#RECALC_MASS_PAY_BY_PERSONID -------------------------------------------------------- set define off; CREATE OR REPLACE EDITIONABLE PROCEDURE "FCR"."DO#RECALC_MASS_PAY_BY_PERSONID" ( p_person_id IN NUMBER, p_do_char...
true
b9271d65c2748430eb9c9149efad01f2d63bff29
SQL
Marcel1123/E-Catalog
/PLSQL/CrearePLSQL.sql
UTF-8
1,152
3.046875
3
[]
no_license
set SERVEROUTPUT ON; / drop table Activitate cascade constraints / drop table Bursieri cascade constraints / drop table Teze cascade constraints / create table Bursieri( id int not null primary key, id_elev int not null, valoare int not null, constraint fk_Bursieri_id_elev foreign key (id_elev) refere...
true
8c58c5dd13fd9cf4c7c5419d4507d1c29d5f2684
SQL
pepi55/project-ewa
/db/insert.sql
UTF-8
4,728
3.09375
3
[ "MIT" ]
permissive
USE `ent3`; -- USERS -- INSERT INTO `user`(`username`, `password`, `name`, `surname`) VALUES ("user2","userpassword2","peterpan2","deachterrnaam2"); INSERT INTO `user`(`username`, `password`, `name`, `surname`) VALUES ("user3","userpassword3","peterpan3","deachterrnaam3"); INSERT INTO `user`(`username`, `password`, `n...
true
82af5d9b1ff5ec04c150fe0160a70ac7f008dd36
SQL
JafeelKhanZada/temp-sts-heroku-api
/prisma/migrations/20211014200553_qoute/migration.sql
UTF-8
895
3.46875
3
[]
no_license
-- CreateTable CREATE TABLE `Qoute` ( `id` VARCHAR(191) NOT NULL, `name` VARCHAR(191) NOT NULL, `email` VARCHAR(191) NOT NULL, `phone` VARCHAR(191) NOT NULL, `message` VARCHAR(191) NOT NULL, PRIMARY KEY (`id`) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; -- CreateTable CREATE TA...
true
f2033e4d8569541ec885a1ad7f1620fa6397a2c4
SQL
jweaver156/Sql-Server
/buildLibrary.sql
UTF-8
10,831
3.453125
3
[]
no_license
CREATE DATABASE DB_Library_Management_Project2; USE DB_Library_Management_Project2; CREATE TABLE LIBRARY_BRANCH ( BranchID INT PRIMARY KEY NOT NULL IDENTITY, BranchName VARCHAR(50) NOT NULL, Address VARCHAR(50) NOT NULL ); CREATE TABLE PUBLISHER ( PublisherName VARCHAR(50) PRIMARY KEY NOT NULL, PubAddress VARC...
true
515a53cc27aa0c660e1eebb22cbe2703f9840683
SQL
duribeiro/trybe-exercises-1
/BACK-END/BLOCO_22/DIA_3/exercicio5.sql
UTF-8
755
4.03125
4
[]
no_license
-- Verifique o impacto de um FULLTEXT INDEX na tabela category -- (banco de dados sakila) adicionando-o na coluna name. -- Após ter adicionado o índice, mensure o custo da query utilizando o -- execution plan, como já foi feito em lições anteriores. -- Após ter criado e mensurado o custo da query, exclua o índice e m...
true
ab74c9b4706b5ed4fd53d3fe761a10739d750729
SQL
juanpgaviriastride/strider_test
/resources/sql/invitation-queries.sql
UTF-8
673
3.265625
3
[]
no_license
-- name: create-invitation<! -- creates a new invitation record INSERT INTO invitations (inviter_id, email, token) VALUES (:inviter_id, :email, :token) --name: get-invitation --queries for an invitation object by the id SELECT id, inviter_id, email, token FROM invitations WHERE id = :id --name: find-invitation --quer...
true
815433390c1cb520f5757a1fceb82d163613cd1f
SQL
bettersun/hellogo
/database/book.sql
UTF-8
304
2.765625
3
[ "MIT" ]
permissive
-- 书籍 CREATE TABLE m_book ( book_id int8 NOT NULL, -- 书籍 ID title text NOT NULL, -- 书名 author text NULL, -- 作者 total_page int4 NULL, -- 总页数 publish_date date NULL, -- 出版日期 CONSTRAINT book_pkey PRIMARY KEY (book_id) );
true
c441b0fcd1dacfebc6de39ae71f538e9fbb99f08
SQL
chamoddissanayake/Greeting-Card-Shop
/greeting_card_shop.sql
UTF-8
3,722
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 10, 2018 at 11:32 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 7.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
ad4bb25cd5dea2dcfe06b1cac5bd0a39aee8b429
SQL
manosbatsis/SAVEFILECOMPANY
/NEW2/PRODUctNew/src/test/resources/WIC_MASTER_DLL.sql
UTF-8
2,596
2.671875
3
[]
no_license
DROP table PROD_SCN_CD_WIC IF EXISTS ; DROP table WIC_CAT IF EXISTS ; DROP table WIC_SUB_CAT IF EXISTS ; DROP table PROD_SCN_CODES IF EXISTS ; DROP table BAT_ENVMT_CFG IF EXISTS ; create table PROD_SCN_CD_WIC ( SCN_CD_ID NUMBER(17) not null, WIC_APL_ID NUMBER(17) not null, WIC_CAT_ID NUMBER not null, WIC_SUB_CAT_ID...
true
22f23395bf6812849c55f09301dac25fe019e8d6
SQL
njosefbeck/api.poketeambuilder.com
/sql/getTypeMatchModifierByAtkTypeIdsAndGeneration.sql
UTF-8
299
3.265625
3
[]
no_license
SELECT tmm.id AS type_match_modifier_id, tmm.type_match_id AS type_match_id, tmm.generation_id, tm.atk_type_id, tm.def_type_id, tmm.dmg_modifier FROM type_match_modifiers AS tmm JOIN type_matches AS tm ON tmm.type_match_id = tm.id WHERE tm.atk_type_id IN (12, 4) AND tmm.generation_id = 7;
true
eb8bd4ae878520e283154c054d6f6597329da7fc
SQL
Kiverian/mysqlweek1
/veryhard.sql
UTF-8
1,420
4.4375
4
[]
no_license
-- Use Database USE week1sql; -- Create Table within Database with 4 columns. ID will update automatically CREATE TABLE cars ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, make VARCHAR (20), model VARCHAR (20), year DATE ); -- Insert Data into table (1st Entry) INSERT INTO cars (make, model, year) VALUES ("...
true
2200121185416c3f1c50515d60240b8acae8e39a
SQL
elorest/sphinx_presentation
/db/sphinx_presentation_development_2013-02-04.sql
UTF-8
3,120,698
2.875
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 3991 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: 127.0.0.1 (MySQL 5.5.22) # Database: sphinx_presentation_development # Generation Time: 2013-02-04 19:02:40 +0000 # *************************...
true
63b522327fac03004836d9be4c2945d0de130a68
SQL
bvhackett/eulachon
/get-gfbio-sensor-eulachon.sql
UTF-8
864
3.828125
4
[]
no_license
SELECT FE.TRIP_ID, FE.FISHING_EVENT_ID, FE.FE_MAJOR_LEVEL_ID, AVG(SDE.SENSOR_DATA_VALUE) AS MEAN_TEMPERATURE, MIN(SDE.SENSOR_DATA_VALUE) AS MIN_TEMPERATURE, MAX(SDE.SENSOR_DATA_VALUE) AS MAX_TEMPERATURE , STDEV(SDE.SENSOR_DATA_VALUE) AS SD_TEMPERATURE FROM GFBioSQL.dbo.FISHING_EVENT FE INNER JOIN GFBioSQL.dbo....
true
654e1d819aa69faa7b5e93873ea56622cf2801be
SQL
qqcong/jyoghurt
/common/com.github.jyoghurt.security/security-service/src/main/resources/flyway/security/V1.0.4__Create_security_table.sql
UTF-8
1,240
2.640625
3
[]
no_license
CREATE TABLE `SecurityUserUnitR` ( `userUnitId` varchar(36) CHARACTER SET utf8 NOT NULL COMMENT '关系ID', `userIdR` varchar(36) CHARACTER SET utf8 DEFAULT NULL COMMENT '用户ID', `unitIdR` varchar(36) CHARACTER SET utf8 DEFAULT NULL COMMENT '组织机构ID', `userNameR` varchar(30) CHARACTER SET utf8 DEFAULT NULL COMMENT '用...
true
d3409f63955e5edb5a832a6a5fd4a8fb0aa441eb
SQL
PNNL-Comp-Mass-Spec/DBSchema_PgSQL_DMS
/dms/pc/pc.t_protein_collection_types.sql
UTF-8
1,202
3.375
3
[ "Apache-2.0" ]
permissive
-- -- Name: t_protein_collection_types; Type: TABLE; Schema: pc; Owner: d3l243 -- CREATE TABLE pc.t_protein_collection_types ( collection_type_id smallint NOT NULL, type public.citext, display public.citext, description public.citext ); ALTER TABLE pc.t_protein_collection_types OWNER TO d...
true
644edb5314c0ee4c08646e1ab060b6d2f44177f5
SQL
cdesmarais/WebDB-Test
/WebDB/StoredProcedures/Common/dbo.User_ReActivate.PRC
UTF-8
427
3.203125
3
[]
no_license
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[User_ReActivate]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[User_ReActivate] GO CREATE Procedure dbo.User_ReActivate (@CustID int ) AS SET NOCOUNT ON update Customer set active =1 where CustID = @CustID delete from Cus...
true
4fe07a9767f0780fdce79f24e133ff818b1ba8e0
SQL
jadsongonzaga/trabalho-banco-dados-1
/sql/questao_2.sql
UTF-8
2,554
3.265625
3
[]
no_license
/* Questão 2 - Adição das chaves estrangeiras nas tabelas. */ -- Adição da chave estrangeira de estado na tabela cidade ALTER TABLE cidade ADD CONSTRAINT fk_cidade_estado FOREIGN KEY (id_estado) REFERENCES estado(id); -- Adição da chave estrangeira de cidade na tabela bairro ALTER TABLE bairro ADD CONSTRAINT fk_bai...
true
4c03f14d2e67f75c1176cc8853f9b117819a60d7
SQL
hwingerter/companysystem
/sql/relatorio de comissoes.sql
UTF-8
746
3.671875
4
[]
no_license
select c.dt_inclusao as dt_venda, case when ci.cod_servico <> '' then s.nome when ci.cod_produto <> '' then prod.descricao end as servico_produto, c1.nome, (ci.comissao*ci.quantidade) as total_comissao, (ci.comissao*ci.quantidade) as valores_processar, '0....
true
e5127979c16946a75749885aea245b46fecb0e73
SQL
miapurnama/ukt
/new_ukt.sql
UTF-8
15,094
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 16, 2018 at 09:06 AM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
f14271bb8c586e7f37dd638092cbf279c60b697c
SQL
ednaranjo/cis395
/ThemeParkDump20191113.sql
UTF-8
13,118
2.890625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `themepark` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `themepark`; -- MySQL dump 10.13 Distrib 8.0.17, for Win64 (x86_64) -- -- Host: localhost Database: themepark -- ----------------------------------------------...
true
827ce60713b690c866dd8883eddc394bfe43b8a5
SQL
nfabian13/POS-WINAPP
/sql/precios_por_producto.sql
UTF-8
493
3.78125
4
[]
no_license
select * from unidades_has_precio uhprecio join producto p on uhprecio.id_producto = p.producto_id left join impuestos i on i.id_impuesto = p.producto_impuesto join precios on uhprecio.id_precio = precios.id_precio join unidades u on u.id_unidad = uhprecio.id_unidad join unidades_has_producto uhproducto on uhprec...
true
9526c9609a870b017ea0d5f78117d571f5e8a46d
SQL
activej/activej
/examples/core/sql/src/main/resources/userservice/init.sql
UTF-8
181
2.71875
3
[ "Apache-2.0" ]
permissive
CREATE TABLE IF NOT EXISTS users ( id INTEGER NOT NULL AUTO_INCREMENT, first_name VARCHAR(128) NOT NULL, last_name VARCHAR(128) NOT NULL, PRIMARY KEY (id) );
true
3b6d399b457618379824daf0653588abbb606555
SQL
argustelecom/opsWorkshop
/db/src/sql/repeatable/001.#system#/90.data/insert_superuser.sql
UTF-8
1,241
2.9375
3
[]
no_license
-- Супер-пользователь INSERT INTO system.party (id, dtype, first_name, last_name, version) VALUES (1, 'Person', 'Главный', 'Администратор', 1) ON CONFLICT (id) DO NOTHING; INSERT INTO system.party_role (id, dtype, party_id, version) VALUES (2, 'Employee', 1, 1) ON CONFLICT (id) DO NOTHING; INSERT INTO system.empl...
true
81a03c8475e06107882375e96860f1ceb7dfb70f
SQL
zou-song/leetcode
/db/lc185/lc185.sql
UTF-8
322
4
4
[]
no_license
# Write your MySQL query statement below SELECT T3.Name AS Department, T1.Name AS Employee, T1.Salary AS Salary FROM Employee AS T1 JOIN Department AS T3 ON T1.DepartmentId = T3.Id WHERE 3 > ( SELECT COUNT(DISTINCT Salary) FROM Employee AS T2 WHERE T2.Salary > T1.Salary AND T1.DepartmentId = T2.DepartmentId...
true
85ed7409d491cf34ae71bee570c1049511277d7a
SQL
sqlunet/builder
/fn/noreference.sql
UTF-8
1,542
3.234375
3
[]
no_license
-- mysql -- this selects fk-pk null reference -- SET @table1='fn_annosets'; -- SET @col1='cxnid'; -- SET @table2='fn_cxns'; -- SET @col2='cxnid'; -- SET @table1='fn_fegrouprealizations'; -- SET @col1='luid'; -- SET @table2='fn_lexunits'; -- SET @col2='luid'; -- SET @table1='fn_lexunits'; -- SET @col1='incorporatedfe...
true
3b8cf7b0c5ed687479bc797c61c5ec31746a1649
SQL
ElKamilaszczy/sql_ru-exercises
/SQL_EX_RU/Exercises1-50.sql
WINDOWS-1252
15,427
4.375
4
[]
no_license
-- Exercise 1 - Computer firm -- Find the model number, speed and hard drive capacity for all the PCs with prices below $500. Select model, speed, hd from pc where price < 500 -- Exercise 2 - Computer firm -- List all printer makers. Result set: maker. select distinct maker from product where type = 'Print...
true
decf41031f9ee7add9caf381356c786472ce204a
SQL
wsldl123292/LotteryOdds
/sql/lotteryodds.sql
UTF-8
6,664
3.15625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50621 Source Host : localhost:3306 Source Database : lotteryodds Target Server Type : MYSQL Target Server Version : 50621 File Encoding : 65001 Date: 2015-09-29 17:56:41 */ SET FOREIGN_KEY_CHECKS=0; ...
true
92b92600515fcf89fed821720179e74a59e929a2
SQL
shawn0915/devstats
/configs/prod/metrics/shared/pr_age_company.sql
UTF-8
4,575
4.5
4
[ "Apache-2.0" ]
permissive
with prs as ( select pr.id, pr.created_at, pr.merged_at, CASE WHEN aa.company_name = 'PingCAP' THEN 'is-top-contributing-company' ELSE 'not-top-contributing-company' END company_category from gha_pull_requests pr left join gha_actors_affiliatio...
true
6b828d420f313019bbcf16ca0a000b10f3f88425
SQL
ppedvAG/SQL-Abfragesprache-ppedv-april-
/Inhouse_SQL_Abfragesprache/Inhouse_SQL_Abfragesprache/WH2.sql
ISO-8859-1
1,531
3.84375
4
[]
no_license
-- WH 2 SELECT * FROM Customers WHERE Country IN('Germany', 'Austria') SELECT * FROM Products WHERE ProductID BETWEEN 10 AND 15 SELECT * FROM Customers WHERE CompanyName LIKE '[a-c]%' SELECT * FROM Customers WHERE CompanyName LIKE 'a%' OR CompanyName LIKE 'c%' -- oder: SELECT * FROM Custome...
true
5beed354bb8ffcd0808968394c43d8baf7caf702
SQL
ramirezmiguelengineer/Sql
/Parcial-Done.sql
UTF-8
1,201
3.90625
4
[]
no_license
Select concat(p.FirstName,' ',isnull(p.MiddleName,''),' ',p.LastName) as 'Nombre',s.TerritoryID, stid.Name 'Territorio', count(so.OrderQty) as Pred_vendidos, sub.promedio as Promedio_Territorio, case when count(so.OrderQty)>= sub.promedio then 'Cumplio' when count(so.OrderQty)< sub.promedio then 'No cumplio' else '...
true
bc22c5dcd0f5deda8929ff4a10ef3e9a2b69a91a
SQL
c-rocket/DeviceCentral
/IotDeviceCentral/script.sql
UTF-8
756
3.28125
3
[]
no_license
DROP TABLE iot_device; CREATE TABLE iot_device ( ID NUMBER, NAME VARCHAR2(60) UNIQUE NOT NULL, device CLOB, picture CLOB ); DROP SEQUENCE iot_device_seq; CREATE SEQUENCE iot_device_seq MINVALUE 1 MAXVALUE 999999999999999999999999999 START WITH 1 INCREMENT BY 1 CACHE 20; ...
true
3151a9de67dd053a4864a612433569201e16fb4f
SQL
adnaannazir/dashboard
/dumpfile.sql
UTF-8
30,271
3.0625
3
[ "Apache-2.0" ]
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 utf8mb4 */; CREATE DATABASE IF NO...
true
071743c60e5adf876eefad145d1dcb39c57a20b7
SQL
aamirlatif1/bank-account-toy
/src/main/resources/db/migration/V1_initial_schema.sql
UTF-8
1,138
3.84375
4
[]
no_license
CREATE TABLE IF NOT EXISTS bank_account ( id INT PRIMARY KEY, first_name VARCHAR(40) NOT NULL, last_name VARCHAR(40) NOT NULL, address VARCHAR(256) NOT NULL, iban VARCHAR(30), account_number VARCHAR(20), account_status ...
true
09c5e7e09e25ca842a6eede935dbceedc94071f1
SQL
albertus88/keepcoding
/KeepCoding/Scripts/Scripts_2._STAGE_Revision_tablas.sql
UTF-8
5,836
3.125
3
[]
no_license
# Tabla STG_CLIENTES_CRM USE STAGE; SELECT COUNT(*) TOTAL_REGISTROS , SUM(CASE WHEN LENGTH(TRIM(CUSTOMER_ID))<>0 THEN 1 ELSE 0 END) TOTAL_CUSTOMER_ID , COUNT(DISTINCT CASE WHEN LENGTH(TRIM(CUSTOMER_ID))<>0 THEN CUSTOMER_ID ELSE 0 END) TOTAL_DISTINTOS_CUSTUMER_ID , SUM(CASE WHEN LENGTH(TRIM(FIRST_NAME))<>0 THEN 1 ELS...
true
0cd9d70e4ab47887342efa6a8124386feaecfb99
SQL
hjs5712/dbSql
/20200414.sql
UHC
478
2.9375
3
[]
no_license
/*SQL ּ*/ -- ּ --> JABA ּ // /* ּ*/ SELECT * -- ÷ ȸ FROM prod; -- prod ̺ -- SQL ϴ -- 1. Ϸ SQL ϰ (shift) cntl + enter; -- 2. Ϸ SQL ƹ Ʈ ġŰ cntl + enter; -- * Ʒ ٸ SQL ; SQL е Ұ
true
b6e1c7b2dbb8529ae31abd5a8a66907d7d428dbc
SQL
dany240/Django
/proyecto/Basededatos/Universidad/migrations/s.sql
UTF-8
49,129
2.96875
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 10.5 (Debian 10.5-1.pgdg90+1) -- Dumped by pg_dump version 10.5 (Debian 10.5-1.pgdg90+1) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; S...
true
f6caecd332ee79263b16e5108a1a3c7be0731c59
SQL
Aman-Shinde/User-Navigation-and-Tracking
/tracking.sql
UTF-8
2,020
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 14, 2021 at 08:02 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
2ae026632d70c84f46193c40b04b62476ce17cd1
SQL
ArnavSankhe/car-dealorship-website-firebase
/sql/dealsonwheels.sql
UTF-8
3,635
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 21, 2018 at 10:34 AM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
d863dcfd29eb6e8751af88ec9d6496f1f4c5d02a
SQL
nss-evening-cohort-3/learning-sql-individual-assignment-csbarrett1
/15.sql
UTF-8
221
3.6875
4
[]
no_license
SELECT Playlist.Name, COUNT (Track.TrackId) FROM Playlist INNER JOIN PlaylistTrack ON Playlist.PlaylistId = PlaylistTrack.PlaylistId INNER JOIN Track ON PlaylistTrack.TrackId = Track.TrackId GROUP BY Playlist.Name
true
2eabcf8ac954a35efb9eb75f09ad59c009729943
SQL
blestonbandeiraUPSKILL/upskill_java1_labprg_grupo2
/BaseDados/Alter.sql
UTF-8
8,003
3.0625
3
[]
no_license
ALTER TABLE Utilizador ADD CONSTRAINT fk_Utilizador_idRolename FOREIGN KEY (idRolename) REFERENCES Rolename(idRolename); ALTER TABLE Organizacao ADD CONSTRAINT fk_Organizacao_idEnderecoPostal FOREIGN KEY (idEnderecoPostal) REFERENCES EnderecoPostal (idEnderecoPostal); ...
true
0d683eab01877fcd4830be101bc8d3c0dea99e63
SQL
liuyork083255/first
/webbond/src/main/sql/cdh_restful_api/webbond_broker_auth-api.sql
UTF-8
3,429
2.546875
3
[]
no_license
DELETE FROM `t_api` WHERE `API_NAME` = 'webbond_broker1_auth'; INSERT INTO `t_api` VALUES ('107', '100', 'webbond_broker1_auth', 'idb_account_business.account_id:string', null, 'select [columns] from ( select a.account_id, b.id as business_allow_id from idb_account_business a, idb_business_allow b where b.id=a.bu...
true
717f13a2db6296ad3b717556439c349479db0ee8
SQL
anda-dev/Anda
/pgsql/init.sql
UTF-8
1,270
3.296875
3
[]
no_license
CREATE TABLE "Party" ( "id" serial NOT NULL, "name" varchar(255) NOT NULL UNIQUE, "addressid" serial NOT NULL UNIQUE, "super" BOOLEAN NOT NULL, CONSTRAINT "Party_pk" PRIMARY KEY ("id") ) WITH ( OIDS=FALSE ); CREATE TABLE "Address" ( "id" serial NOT NULL, "country" varchar(255) NOT NULL, "city" varchar(255)...
true
f9943c537f98c6c48fe6dd88e7b8f0a6fb11ac26
SQL
arjun2504/user-base-area
/database.sql
UTF-8
2,657
3.71875
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.0 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Dec 30, 2016 at 11:05 PM -- Server version: 5.5.34 -- PHP Version: 5.5.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `userbasearea` -- -- ------------------------...
true
221ecbdbe89f37b42410d0184a7f611bef3075eb
SQL
nataliaz87/lahaman-baseball-sql
/Q2.sql
UTF-8
1,094
4.21875
4
[]
no_license
-- Find the name and height of the shortest player in the database. -- 43 inches; playerID: gaedeed01; team id:SLA, player's name: Gaedel Eddie select min(cast (height as integer)) as shortest_height, namelast, namefirst from people where height = 43 group by people.namelast, people.namefirst -- How many games did h...
true
fa33955d95dbfe943c44878328b60b5fd02e38a9
SQL
AKhil123ak/OracleDBA-Docs
/akhil/locks.sql
UTF-8
2,874
3.734375
4
[]
no_license
--#block_monitor.sql ---------------------------------------------------------------------- --rem modified 8/28 - Tools Team ---------------------------------------------------------------------- set pages 0 lines 170 col blk_sess format a11 col wtr_sess format a11 col blocker format a10 col waiter format a10 col...
true
339c839198b2142c5338905f0df95db18ee2577d
SQL
CECHitsolctr/StudentSuccessDashboard
/src/SSD.Integration.Database/Queue/Tables/StudentClasses.sql
UTF-8
240
3.125
3
[]
no_license
CREATE TABLE [Queue].[StudentClasses]( [id] [int] IDENTITY(1,1) NOT NULL, [StudentKey] NVARCHAR (68) NOT NULL, [ClassKey] NVARCHAR (68) NOT NULL, CONSTRAINT [PK_Queue.StudentSection] PRIMARY KEY CLUSTERED ( [id] ASC )) ;
true
787d47a5a890a5ee6fc4fb0ec823e0d182a265fd
SQL
yani-valeva/Databases-Basics-MySQL
/Basic CRUD/24.Countries and Currency - Euro Not Euro.sql
UTF-8
201
3.125
3
[ "MIT" ]
permissive
SELECT `country_name`, `country_code`, CASE WHEN `currency_code` = 'EUR' THEN 'Euro' ELSE 'Not Euro' END AS `currency` FROM `countries` ORDER BY `country_name` ASC;
true
91790b37e80c7b3e29084d97798f47370b162b2d
SQL
fandashtic/arc_chennai
/Sivabalan-SQL/SQL_STORED_PROCEDURE/sp_get_Item_Company.sql
UTF-8
569
3.09375
3
[]
no_license
CREATE Procedure sp_get_Item_Company As Select Case IsNull(ItemsReceivedAbstract.PartyName, N'') When N'' Then ItemsReceivedAbstract.ForumCode Else ItemsReceivedAbstract.PartyName End, "Count Of Items" = (Select Count(Product_Code) From ItemsReceivedDetail Where PartyID In (Select A.ID From ItemsReceivedAbstract as A ...
true
c4fc83921496dd22ecc5c2c8188fdb26df6c1a1a
SQL
venkin84/fullstack-nanodegree-vm
/vagrant/tournament/tournament.sql
UTF-8
1,462
4.375
4
[]
no_license
-- Table definitions for the tournament project. -- -- Put your SQL 'create table' statements in this file; also 'create view' -- statements if you choose to use it. -- -- You can write comments in this file by starting them with two dashes, like -- these lines here. DROP DATABASE IF EXISTS tournament; CREATE DATABAS...
true
aa25c36e1b3ae2aed61e4b400fba722fd297c682
SQL
treebat1/SQLBackup
/ViewHistoryOfLastTransactionLogBackup.sql
UTF-8
693
3.546875
4
[ "MIT" ]
permissive
--All Logs SELECT type, backup_start_date, backup_finish_date FROM msdb..backupset S JOIN msdb..backupmediafamily M ON M.media_set_id=S.media_set_id WHERE S.database_name = 'Staples' and Type = 'L' order by backup_start_date desc SELECT physical_device_name FROM msdb...
true
51e840b3f947cdbab466841469ae8b8b9f42ab72
SQL
liangdev/shopinterest
/quickstart/application/configs/store.v8.sql
UTF-8
1,216
3.234375
3
[]
no_license
alter table `products` add column `free_shipping` tinyint not null default '0' after `shipping`; CREATE TABLE `pinned_products` ( `id` int(11) NOT NULL AUTO_INCREMENT, `status` tinyint not null default '0', `product_id` int(11) NOT NULL DEFAULT '0', `pinterest_account_id` int(11) NOT NULL DEFAULT '0', `pinte...
true
38e1d99633622fa0247c663617461b29398cc239
SQL
ardipta/PHP
/SWE-333/Session/student_info.sql
UTF-8
2,746
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 24, 2019 at 03:43 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.1.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
562c31bf18d7f066c0f13faef16f48ccd1a572d7
SQL
marcysilverman/goals
/server/aggregation.sql
UTF-8
229
3.234375
3
[]
no_license
select profile_id, MIN(end_date - start_date) as mindiff, MAX(end_date - start_date) as maxdiff, CAST(AVG(end_date - start_date) as int) as average, count(goal_table.id) as "count" from goal_table group by profile_id;
true
cfc56d66f7e0f6d1130a453daf460db1020a4f54
SQL
WPI-CS3733-Team5/CourseLoadScheduling
/src/main/resources/sql/Active/SelectUserGivenDepartment.sql
UTF-8
135
2.75
3
[]
no_license
SELECT * FROM user_info WHERE deleted = FALSE AND id IN ( SELECT user_info_id FROM instructor_info WHERE department = :department );
true
b682ecab6be21d34e8b90046aca0ae137ede1e59
SQL
felixerdy/IVE
/sql/schema/posts.sql
UTF-8
357
2.8125
3
[ "MIT" ]
permissive
CREATE TABLE Posts ( post_id INTEGER PRIMARY KEY AUTOINCREMENT, post_uuid TEXT NOT NULL UNIQUE, created TEXT NOT NULL DEFAULT (datetime(CURRENT_TIMESTAMP, 'localtime')), updated TEXT NOT NULL DEFAULT (datetime(CURRENT_TIMESTAMP, 'localtime')), comment TEXT DEFAULT NULL, rating INTEGER DEFAULT NU...
true
efba7e64dc70c4e4cb42e25f175c94df27918d16
SQL
825bingwen/SELFSVC
/.svn/pristine/10/101d088073bed64a971ac5c1d90aeedf122dba62.svn-base
GB18030
855
3.21875
3
[]
no_license
--============================================================== -- űݣDBAûִУ -- 1.ռǰijʼ -- 2.ռ,ָռӵеļ·ԼСȲ -- ע:ļ·Ϊݿռļλ,ssΪݿSID --============================================================== -- 1. ռǰȷδ --drop tablespace ngsh_data including contents; -- 2. ռ,ָռӵеļ·С -- ԼԶչ(100M)(MAXSIZE UNLIMITED), -- ռ(local...
true
484e3093c60d871c9fe4374fd38795468b19b4b2
SQL
97Lazorenko/Demo_day
/2. Функции проверки условий (для записи).sql
UTF-8
8,261
3.40625
3
[]
no_license
------------------------------------------------------------------------------------------------------------------------ -----------------------------------------------ФУНКЦИИ ПРОВЕРКИ УСЛОВИЙ (ДЛЯ ЗАПИСИ)------------------------------------ ----------------------------------------------------------------------------...
true
fcf8c219bfb6e8a3428e8c4a49e6dcc81b396bdb
SQL
aaronjwilson/ELISA-R-DRC
/SQL.sql
UTF-8
976
3.359375
3
[]
no_license
SELECT q.ParticipantId, q.VisitID, BG.BCK, BG.CTOF, ((q.T100_1+q.T100_2)/2)-BG.BCK AS T_100, ((q.T400_1+q.T400_2)/2)-BG.BCK AS T_400, ((q.T1600_1+q.T1600_2)/2)-BG.BCK AS T_1600, ((q.T3200_1+q.T3200_2)/2)-BG.BCK AS T_3200, ((q.T6400_1+q.T6400_2)/2)-BG.BCK AS T_6400, ((q.T12800_1+q.T12800_2)/2)-BG.BCK AS T_12800, ((q.T2...
true
07348a450ea1488e7edffbff20ee4c9d0ffc09e5
SQL
EhisEA/ms-SQL
/ws for group (blaze).sql
UTF-8
3,672
3.9375
4
[]
no_license
select SalesPersonID, TerritoryID from Sales.SalesPerson select * from Sales.SalesPerson select* from Sales.SalesTerritory select p.SalesPersonID, p.TerritoryID, t.Name from Sales.SalesPerson p join Sales.SalesTerritory t on p.TerritoryID=t.Name select * from Sales.SalesOrderDetail select SalesOrderID, Produc...
true
33520ac45692f5586da0e6a0a9edde29f8e03bf6
SQL
jsgregori/ecommerce
/database/structure_v2.sql
UTF-8
2,352
3.734375
4
[]
no_license
CREATE DATABASE `veterinaria`; CREATE TABLE `veterinaria`.`usuarios` ( `id` INT NOT NULL AUTO_INCREMENT, `first_name` VARCHAR(45) NOT NULL, `last_name` VARCHAR(45) NOT NULL, `email` VARCHAR(45) NOT NULL, `password` VARCHAR(255) NOT NULL, `category` VARCHAR(15) NOT NULL, `image` VARCHAR(45) NOT NULL, PR...
true
b80b1a420a6df26567b91f702dee192bc135746e
SQL
javaxiaobai110/bookstore02
/bookstore.sql
UTF-8
9,448
2.96875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50536 Source Host : localhost:3306 Source Database : bookstore Target Server Type : MYSQL Target Server Version : 50536 File Encoding : 65001 Date: 2018-06-05 19:48:38 */ SET FOREI...
true