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
75fce948f348b0e711cc5e1bd1186a32ad6d5f79
SQL
LGullaci/site-pessoal
/app_data/script_banco/PROCEDURES/procPropostaSelecionar.sql
UTF-8
507
3.25
3
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS procPropostaSelecionar $$ CREATE PROCEDURE procPropostaSelecionar (in IdProposta int) BEGIN SELECT p.idProposta, p.idCliente, p.idTipoAvaliacao, p.fgOrcamentoLivre, p.idStatus, p.vlrProposta, p.strProposta, s....
true
e31e6e5af31b6f14162dc804c2d17b67303508eb
SQL
vazzanag/DOS_INL
/GTTS/INLDB/budgets/Stored Procedures/GetBudgetItemsByTrainingEventID.sql
UTF-8
405
3.28125
3
[]
no_license
CREATE PROCEDURE [budgets].[GetBudgetItemsByTrainingEventID] @TrainingEventID BIGINT AS BEGIN SELECT BudgetItemID, TrainingEventID, IsIncluded, LocationID, BudgetItemTypeID, BudgetItemType, BudgetCategoryID, BudgetCategory, Cost, Quantity, PeopleCount, TimePeriodsCount, ModifiedByAppU...
true
9191573aba6803b06603eda2fb59755e648407b9
SQL
DamnAndo/-Simple-NodeJs-with-MySQL
/node_student.sql
UTF-8
2,520
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Aug 23, 2020 at 07:52 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
6548c8175972b97017e1c5ba1543059867933437
SQL
apache/druid
/integration-tests/docker/test-data/sql-input-source-sample-data.sql
UTF-8
6,998
2.75
3
[ "EPL-1.0", "Classpath-exception-2.0", "ISC", "GPL-2.0-only", "BSD-3-Clause", "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-generic-cla", "0BSD", "LicenseRef-scancode-sun-no-high-risk-activities", "LicenseRef-scancode-free-unknown", "JSON", "LicenseRef-scancode-unico...
permissive
-- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may not...
true
6bbd222e9059be75390c682bc00876e2afc4e0ea
SQL
OHDSI/WebAPI
/src/main/resources/db/migration/sqlserver/V2.6.0.20181015182101__role-group-mapping.sql
UTF-8
715
2.8125
3
[ "Apache-2.0" ]
permissive
ALTER TABLE ${ohdsiSchema}.sec_role_group ADD job_id BIGINT; ALTER TABLE ${ohdsiSchema}.sec_role_group ADD CONSTRAINT fk_role_group_job FOREIGN KEY(job_id) REFERENCES ${ohdsiSchema}.user_import_job(id) ON UPDATE NO ACTION ON DELETE CASCADE; ALTER TABLE ${ohdsiSchema}.sec_role_group DROP CONSTRAINT UC_PROVIDER...
true
30b6748dad575b2bdd2cc693a4bb2bd3fb28bc13
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day20/select1434.sql
UTF-8
178
2.640625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-19T14:34:00Z' AND timestamp<'2017-11-20T14:34:00Z' AND temperature>=25 AND temperature<=29
true
0dfa31e4eafc99372d8f3e81eeb1fd83f22a8a3f
SQL
ezhov-da/java-ee-examples
/cdi-book-service/src/resources/one-to-many-simple.sql
UTF-8
612
2.9375
3
[]
no_license
DROP TABLE IF EXISTS T_E_NOTE_TEST_ONE_TO_MANY; SELECT * FROM T_E_NOTE; CREATE TABLE T_E_NOTE_TEST_ONE_TO_MANY ( ID_USER INT NOT NULL , ID INT AUTO_INCREMENT NOT NULL , NAME VARCHAR(500) NOT NULL ); INSERT INTO T_E_NOTE_TEST_ONE_TO_MANY (ID_USER, ID, NAME) SELECT ...
true
5368362af1d68c2b8c132e9a8b011da177a80392
SQL
akula-srinu/Customization_Test
/custom/NVWB_INV_PO_Transactions.sql
UTF-8
11,916
2.6875
3
[]
no_license
-- ******************************************************************************* -- FileName: NVWB_INV_PO_Transactions.sql -- -- Date Created: 2019/Nov/20 01:07:51 -- Created By: nemuser -- -- Source: -- - Package: Package_Test -- - Environment: EBSPJD1 -- - NoetixViews...
true
3c8a1ae259b2100614ae138d22482e9c67c87ef0
SQL
EricJohnson101106/IntroToDatabaseSystems
/Ch2-Assignment2.sql
UTF-8
2,388
3.84375
4
[]
no_license
/********************************/ /* Name: Eric Johnson */ /* Class: CS3410 */ /* Term: Spring 2018 */ /* Assign#: 2 Part 1 */ /********************************/ /* 2.17 */ SELECT [SKU] ,[SKU_Description] FROM [INVENTORY]; /* 2.18 */ SELECT [SKU_Description] ,[SKU] FROM [INVENTORY]; /* 2.19 */ SELECT...
true
5d6653cffe5df1b4e700061a5e72ccc208b229ab
SQL
aguntupalli0525/snowflake
/Search Optimization Service.sql
UTF-8
3,769
3.8125
4
[]
no_license
----------------------------------------------------- --Executive Summary: --Search Optimization Service gives 13x (104seconds vs 8 seconds) improvement in query speed --At one company, across 16M jobs, it has reduced files scanned by 99% --Analogous to online availability of non-clustered indexes /*Pu...
true
554e08e2174da80f0dcef6bdfa6e835b3f982ba2
SQL
tylernchls/SELECT-todo-FROM-list
/todo_app.sql
UTF-8
1,624
3.59375
4
[]
no_license
\c tylernichols; DROP USER IF EXISTS MICHAEL; CREATE USER michael WITH ENCRYPTED PASSWORD 'stonebreaker'; DROP DATABASE IF EXISTS todo_app; CREATE DATABASE todo_app; \c todo_app; CREATE TABLE tasks( id serial primary key, title character varying(255), description text, created_at timestamp, updated_at t...
true
c35459ef39aa175fb7ff489df707df72c708dea4
SQL
ElodieWDJ/SQL
/sitemarchand.sql
UTF-8
6,151
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.9 -- http://www.phpmyadmin.net -- -- Client: 127.0.0.1 -- Généré le : Lun 11 Février 2013 à 13:26 -- Version du serveur: 5.5.20 -- Version de PHP: 5.3.9 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
c44c93f2aa1ed1187de4ad166fc1f210d88a4f64
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day24/select1930.sql
UTF-8
178
2.609375
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-23T19:30:00Z' AND timestamp<'2017-11-24T19:30:00Z' AND temperature>=17 AND temperature<=46
true
a9b21f0cf1dc3224d4daf819b9c5a04bf1b56873
SQL
bertoldi11/teste-enad
/database/mysql_schema.sql
UTF-8
584
4.0625
4
[ "BSD-3-Clause" ]
permissive
create table course ( idcourse int auto_increment primary key, idinstitution int not null, name varchar(128) not null, coursegrade float not null, studentgrade float not null ) engine=InnoDB ; create index course_institution___fk on course (idinstitution) ; create table institution ...
true
49fef557c5a8fc32b7b48b79f52b16e83e801506
SQL
hal1000-code/movies-db
/movies_query3.sql
UTF-8
301
3.8125
4
[ "Apache-2.0" ]
permissive
use movies; SELECT Actors.LastName, Actors.FirstName, Movies.MovieName, Movies.ReleaseDate FROM Movies INNER JOIN (Actors INNER JOIN Movie_Actor ON Actors.Actor_ID = Movie_Actor.Actor_ID) ON Movies.Movie_ID = Movie_Actor.Movie_ID WHERE (((Movies.ReleaseDate)>='1950-01-01')) ORDER BY Actors.LastName;
true
74249b4dd37aff290355e71a3a1c2c628b1fcfb7
SQL
DevilCCCP/Code
/Misc/Db/Tables/object_state_log.sql
UTF-8
1,105
3.828125
4
[]
no_license
-- Table: object_state_log -- DROP TABLE object_state_log; CREATE TABLE object_state_log ( _id bigserial NOT NULL, _ostate integer NOT NULL, old_state integer NOT NULL, new_state integer NOT NULL, change_time timestamp with time zone NOT NULL, CONSTRAINT object_state_log_pkey PRIMARY KEY (_id),...
true
d96d15e778a2e5e557926af0a3f0a49b0b48da03
SQL
SindhuParthasardi/SupermarketDatabase
/7.sql
UTF-8
878
3.578125
4
[]
no_license
-- 7. Yangon calls itself the most eWallet-friendly city for health and beauty while Mandalay calls itself a haven for cash spending. Does the data support their claims? USE supermarketdb; SELECT sum(IV.Total) AS Purchase_Total, PY.PaymentType, LT.City FROM invoices IV JOIN productline PL ON IV.ProductLine_ProductLineI...
true
bcb5b3a1c2c52bf52d5cf98eb2889c3288193716
SQL
evrimulgen/Oracle-DBA-Life
/INFO/Books Codes/Oracle9i PLSQL Programming/ch02/SimpleClass.sql
UTF-8
447
2.671875
3
[ "MIT" ]
permissive
REM SimpleClass.sql REM Chapter 2, Oracle9i PL/SQL Programming by Scott Urman REM This script will create a simple Java class. It requires REM Oracle8i or higher to run. CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "SimpleClass" AS class SimpleClass { static public void Hello() { System.out.print...
true
21875c7b0c622c24096faea1a95965374cc905fb
SQL
iguxa/terminal
/db_update/dump6.sql
UTF-8
7,389
2.90625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64) -- -- Host: localhost Database: terminal -- ------------------------------------------------------ -- Server version 5.7.24-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_S...
true
2af6ef1700b2dcdb1e554affe270cd9aa977fc1a
SQL
mravifrmnsyh/Do-Ponic
/database/db_doponic.sql
UTF-8
2,772
3.203125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 06 Jun 2021 pada 10.14 -- Versi server: 10.4.18-MariaDB -- Versi PHP: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
true
dad84c4985b8dddc7a5eaec32c999123813e1bec
SQL
TsvetomirAleksandrov/Software-University
/Databases Basics - MS SQL Server - May 2020/07.JoinsSubqueriesAndCTEIndices/07.JoinsSubqueriesAndCTEIndices/01.EmployeeAddress.sql
UTF-8
215
3.4375
3
[]
no_license
SELECT TOP 5 e.EmployeeID, e.JobTitle, a.AddressID, a.AddressText FROM Employees e INNER JOIN Addresses a ON a.AddressID = e.AddressID ORDER BY a.AddressID
true
76421cd2726d0a0174f6cdf25a01a36ccc4eb6eb
SQL
singlag888/bc_yc
/bc_yc.sql
UTF-8
10,437
2.6875
3
[ "Apache-2.0" ]
permissive
/* Navicat MySQL Data Transfer Source Server : yeq Source Server Version : 50553 Source Host : localhost:3306 Source Database : bc_yc Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2018-09-02 23:19:05 */ SET FOREIGN_KEY_CHECKS=0; -- ---------...
true
a77869ae1cfba715c2da40e4264633926972b68e
SQL
herbertyz/smartmvp
/sqldb/loaddata.sql
UTF-8
1,370
3.09375
3
[]
no_license
-- LOAD DATA LOCAL INFILE 'lead_users.csv' LOAD DATA INFILE '/docker-entrypoint-initdb.d/lead_users.csv' INTO TABLE lead_users FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' IGNORE 1 ROWS; LOAD DATA INFILE '/docker-entrypoint-initdb.d/lead_user_sessions.csv' INTO TABLE lead_user_sessions FIEL...
true
a581450ec4bf455db7431a4609c02eebf242a52c
SQL
CUBRID/cubrid-testcases
/sql/_14_mysql_compatibility_2/_04_table_related/_02_alter_change_column/_06_unique/cases/collection.sql
UTF-8
615
3.734375
4
[ "BSD-3-Clause" ]
permissive
---- ALTER TABLE ... CHANGE COLUMN , type change -- constraints : constraints : add UNIQUE KEY on collection (SET) columns -- ordering : no order defined -- name : same or different -- type : changed --------------------- UNIQUE keys ------- type the same, name changed - only one unique on 2 columns create table...
true
127669df27bd00d3a1e2c5913508ffde7c69ba79
SQL
pralavgoa/_sql
/dashboard/Dashboard_C.sql
UTF-8
364
3.5625
4
[]
no_license
--select ONTOLOGY_ID,ONTOLOGY_NAME,OBSERVATION_YEAR,OBSERVATION_COUNT from select count(1) from (select DASH_TAB_1_A.ONTOLOGY_ID as ontology_id,DASH_ONTOLOGY.C_FULLNAME as ontology_name from DASH_TAB_1_A JOIN DASH_ONTOLOGY ON DASH_TAB_1_A.ONTOLOGY_ID=DASH_ONTOLOGY.ID) first --JOIN OBSERVATION_COUNT_TEMP --ON first.ont...
true
2a9851e092e1d16904fb678879cf34085fda62f3
SQL
VladimirGladkilh/job4j_car_accident
/src/main/java/accident/db/schema.sql
UTF-8
1,079
3.625
4
[]
no_license
CREATE TABLE accident ( id serial primary key, name varchar(2000), text varchar(2000), address varchar(2000), type_id int ); CREATE TABLE rule ( id serial primary key, name varchar(2000) ); CREATE TABLE accident_type ( id serial primary key, name varchar(2000) ); CR...
true
da26b0d617708050937c09a5fdb1e11c78444b20
SQL
bradybyrd/dbm_demo
/devops/draft/Import/Import/imports/scripts/ODS_STG_DV1.sql
ISO-8859-1
20,153
2.578125
3
[ "MIT" ]
permissive
-------------------------------------------------------------------------- -- ODS_STG_DV1@DOMDMA schema extracted by user BE82947 -------------------------------------------------------------------------- -- "Set define off" turns off substitution variables. Set define off; CREATE TABLE ODS_STG_DV1.TB_STG_SEVEV_EVNT_E...
true
7bc7c6caffbf3d0019dd4297157f78574a70aeb4
SQL
DuarteNuno/BD
/i_ar.sql
UTF-8
126
2.828125
3
[]
no_license
Select Title, Duration , Year, StreamDate from MOVIE NATURAL JOIN STREAM where Duration >=140 and Year = Year(StreamDate)-1
true
98999addb2ef9d266d628ae91ba30bc88a6f3444
SQL
dhrutipandya177/FinalBilling
/database/cer_admission_list.sql
UTF-8
3,315
2.890625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 16, 2021 at 01:15 PM -- Server version: 10.4.20-MariaDB -- PHP Version: 8.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
06754a7cd2d10912b7051c490051d75f8243df17
SQL
joegeneq/apc-softdev-it111-01
/database/dst_sts_phpmyadmin.sql
UTF-8
13,082
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 22, 2015 at 05:48 AM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
b745c248a8ba531908f905d16cd3e0e147ac49f6
SQL
kimsanghyeon-code/Study_PHP_2
/6.15/creat table.sql
UTF-8
2,326
3.859375
4
[]
no_license
CREATE TABLE member --테이블을 만들겠다 ( id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT, --첫번째는 열이 id라는 이름이고 -- 중간정도사이즈 정수형자료를 저장할수있음 -- 부호가 없다 -- 이 열(칼럼)은 절대 빈공백(널)이 들어올수없음 -- 하나의 데이터들이 추가될때마다 id값을 1씩 자동으로 증가한다 -- 자동증가 auto increment -- 아이디넘버를 시스템이 자동으로 설정해준다 last_name VARCHAR(50), -- last_name은 50개의 글자가 들어올수있...
true
fcc5b080520baa3684c48567a2bfcc24229a15f6
SQL
Home-and-House-Enterprise/H-and-H-Decktop-App
/Database Script/other spare code/testDB Scripts.sql
UTF-8
509
3.421875
3
[]
no_license
CREATE TABLE IF NOT EXISTS `videos` ( `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `id` bigint(20) NOT NULL AUTO_INCREMENT, `camera_id` bigint(20) NOT NULL, `name` varchar(40) NOT NULL, `vurl` varchar(120) NOT NULL, PRIMARY KEY (`id`,`camera_id`), UNIQUE KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHA...
true
cc31d26f5b83542449a0c4317e7f198dc99d6fca
SQL
an--/base
/src/test/sql/Untitled.sql
UTF-8
403
3.890625
4
[]
no_license
SELECT attr.id, attr.name, attr.attribute_type attributeType, attrv.id attributeValueId, attrv.value, base.baseId FROM attr LEFT JOIN attribute_value attrv ON attr.id = attrv.attr_id LEFT JOIN (SELECT MIN(id) baseId, attr_id FROM attribute_value ...
true
b456cbb44b0a0228ec990d13573ed123a8da9eef
SQL
veronica2012/transactionAPI
/transaction_db.sql
UTF-8
7,554
3.25
3
[]
no_license
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
f07bc6d1a69f7744fbfe52893bc1f0972ac17bf8
SQL
Madinah2491/B_Amazon
/b_amazon.sql
UTF-8
1,499
2.953125
3
[]
no_license
CREATE DATABASE bamazonDB; USE bamazonDB; CREATE TABLE products( id INT NOT NULL Auto_INCREMENT, product_name VARCHAR(50) NULL, department_name VARCHAR (50) NULL, price decimal (50, 2), stock_quantity INT (50) ); INSERT INTO products (product_name, department_name, price, stock_quantity) VALUE ("Curl moiusture cream...
true
48c44d50b233959d8d449f53d9636aef9e3c0227
SQL
organization-gu/cloud-alibaba
/alibaba-business/user-center/src/main/resources/sql/user_init.sql
UTF-8
4,014
3.40625
3
[]
no_license
/* SQLyog Ultimate v12.4.1 (64 bit) MySQL - 5.6.43 : Database - user_center ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FORE...
true
f76c8c88c04a62ac55a9f017eec0b8a31f528c84
SQL
socrat12/Homeworks
/src/main/java/com/itStep/home81/postgre/sql/5. CreateOrder.sql
UTF-8
153
3.0625
3
[]
no_license
CREATE TABLE t_order ( order_id SERIAL PRIMARY KEY, order_date date NOT NULL, user_id int, FOREIGN KEY (user_id) REFERENCES t_user ("customer_id") );
true
7ea4bc81d65689faf00ec2c14c36c654ed944811
SQL
mindware/core-lib
/secure/simulated-efuns/database/migrations/0002_persist_npcs.sql
UTF-8
934
3.59375
4
[]
no_license
CREATE TABLE `npcs` ( `playerid` int(11) NOT NULL, `fileName` varchar(256) NOT NULL, `data` blob NOT NULL, `inParty` tinyint NOT NULL DEFAULT '0', KEY `npcs_playerid_idx` (`playerid`), CONSTRAINT `npcs_playerid` FOREIGN KEY (`playerid`) REFERENCES `players` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) E...
true
2e357dc48988c104271b580332f499b3b1c0a25a
SQL
Enitsed/KhDBStudy
/oracledemo/oracle_002.sql
UTF-8
20,042
4.4375
4
[]
no_license
=========================================================================================================================== 조인(join) : 두개 이상의 테이블에서 원하는 데이터를 추출해주는 쿼리문이다. join은 oracle 제품에서 사용되는 oracle용 join이 있고 모든 제품에서 공통적으로 사용되는 표준(ansi) join이 있다. ========================================================================...
true
41bfa77e60eca8b2e202bedab6c3fc8753a8f69f
SQL
rocketeerbkw/DNA
/Main/Source/Databases/The Guide/storedprocedures/GetNumberOfUserSubmittedCampaignLinks.sql
UTF-8
443
4
4
[]
no_license
CREATE PROCEDURE getnumberofusersubmittedcampaignlinks @siteid INT, @startdate datetime, @enddate datetime AS /* Returns number of user submitted campaign links within a date range. */ SELECT COUNT(l.LinkID) FROM dbo.Clubs c LEFT JOIN dbo.Links l ON l.SourceID = c.ClubID AND l.SourceType = 'club' AND l.Rel...
true
ad2cb666cc3087913646174cb5a008ef2f71c5ab
SQL
thanhthuy1309/thuebannhadat
/backupdb/10112016/tbl_user.sql
UTF-8
2,001
2.953125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : locahost Source Server Version : 50505 Source Host : localhost:3306 Source Database : realestate Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2018-08-24 00:10:21 */ SET FOREIGN_KEY_CHECKS=0; --...
true
07bc6c52073b4b48951b0f3ff527144a53b99b30
SQL
JerryCha/Evention2
/App_Data/EventRates_view.sql
UTF-8
151
3.078125
3
[]
no_license
CREATE VIEW EventRates AS SELECT r.Id, r.Event_id, u.UserName, r.Rating_Score, r.Comments FROM Rates r JOIN AspNetUsers u ON r.Reviewer_id = u.Id;
true
4add700b225947af220ba75b83061039127d3391
SQL
MLClark/Bookmarks
/Vendor specific/Discovery Benefits/HMN/hmn-db-research.sql
UTF-8
4,085
2.953125
3
[]
no_license
(select ppd.personid, count(ppd.etv_id) as counter from pspay_payment_detail ppd where ppd.etv_id in ('VEJ','VEK','VEH','VBA''VBB') and check_date = ?::date and personid = '68671' group by 1); (select * from pspay_payment_detail ppd where ppd.etv_id in ('VEJ','VEK','VEH','VBA''VBB') and date_part('year',check_d...
true
9b3b0a8e6dc55684427da1a0dcca10f4f747eadf
SQL
vidhoonv/edcurate
/cpacpa.sql
UTF-8
10,915
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.1.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 19, 2009 at 10:48 PM -- Server version: 5.1.30 -- PHP Version: 5.2.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
true
9ce2fe2e8d59f4fa59ef51d08e2ec07e2a53cc61
SQL
SayrePeterson/BSU-HU-CS-310-Final-Project
/bsu-cs-hu-310-final-project-template-master/src/sql/reporting_queries.sql
UTF-8
4,753
4.09375
4
[]
no_license
/* Put your final project reporting queries here */ USE cs_hu_310_final_project; -- 1. Calculate the GPA for a student given a student_id (ussing student_id=1) SELECT students.first_name, students.last_name, count(class_registrations.class_section_id) as number_of_classes, sum(convert_to_grade_point(grades.lette...
true
dd4733146c2146e3663aeb70f7e3a66b9cb776e6
SQL
dqw/flask_blog
/sql/sqlite/schema.sql
UTF-8
348
2.578125
3
[]
no_license
drop table if exists blogs; create table blogs ( blog_id integer primary key autoincrement, blog_title text not null, blog_content text not null, blog_time real not null ); drop table if exists user; create table user ( user_id integer primary key autoincrement, user_name text not null, use...
true
94e8b9cbe2def6e1539cf94b40c75425578d24f9
SQL
kartano/Prometheus2
/schemas/prom2_translations.sql
UTF-8
874
2.796875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : Local Source Server Version : 100125 Source Host : localhost:3306 Source Database : prom2 Target Server Type : MYSQL Target Server Version : 100125 File Encoding : 65001 Date: 2017-09-18 15:57:24 */ SET FOREIGN_KEY_CHECKS=0; -- -----...
true
31973346815f1d50f29bbf5e557efe5caaeac62a
SQL
cchris37/sql-lf05
/lf02_ernährungskat.sql
UTF-8
12,984
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Erstellungszeit: 29. Sep 2020 um 11:45 -- 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_CLIENT=...
true
6315710d16338c772d7a9d5fbf109ccb836b79e3
SQL
SweetnSpicy/iste422
/res/createSQL.sql
UTF-8
381
3
3
[]
no_license
DROP DATABASE if exists edgedb; CREATE DATABASE edgedb; USE edgedb; CREATE TABLE student ( name VARCHAR(30), studentSSN VARCHAR(9), PRIMARY KEY (studentSSN) ); CREATE TABLE faculty ( name VARCHAR(30), facSSN VARCHAR(9), PRIMARY KEY (facSSN) ); CREATE TABLE courses ( courseName VARCHAR(20)...
true
3c1b443e48fff0312551458260aa479fdc74262e
SQL
y00j/learning
/coding_challenges/InsuranceSQL.sql
UTF-8
684
3.984375
4
[]
no_license
SELECT ROUND(SUM(INSURANCE_2012), 2) FROM INSURANCE WHERE PID IN ( SELECT TIV_2011_DISTINCT.PID FROM ( SELECT lat, lon FROM INSURANCE GROUP BY lat, lon HAVING COUNT(*) = 1 ...
true
9507384479c983b0a83643627eededcf6c1b7cc7
SQL
JohnnyYamanaka/uri_sql_challenge
/2622.sql
UTF-8
364
2.8125
3
[]
no_license
/** * Pessoas Jurídicas * https://www.urionlinejudge.com.br/judge/pt/problems/view/2622 * O setor de vendas quer fazer uma promoção para todos os clientes que são pessoas jurídicas. * Para isso você deve exibir o nome dos clientes que sejam pessoa jurídica. */ SELECT name from customers, legal_person where custo...
true
41e8973e2b77ac9bd6b3b3549ddc818f672bb271
SQL
SergioMadness/gochat
/migrations/001_init_221020151809.up.sql
UTF-8
1,452
3.640625
4
[ "MIT" ]
permissive
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; CREATE TABLE IF NOT EXISTS `messages` ( `id` int(11) unsigne...
true
1c221a7b778552a78701d65d119ab924d228a302
SQL
AdrianJ1/Trabajo-en-equipo-GIT
/UPDATE.sql
UTF-8
692
2.640625
3
[]
no_license
update table USUARIO1 set Nombre like Carlos, set Apellidos like Rodrigo Aguilar, set Edad = 20, set Dirección like Calle Falsa 123, set Nº de hermanos = 0, set Correo electronico del alumno like estenoesuncorreofalso@gmail.com; update table AULA2 SET NOMBRE_AULA LIKE ASIR_1, SET CAPACIDAD = 20, SET PLANT...
true
0c727bb3e7de3fed15efe77c737ca6b08f1cdd8d
SQL
AlexanderMarquez/LaboratorioSQL
/Lab03/demo.sql
UTF-8
435
3.5
4
[]
no_license
use AdventureWorks2016 select * from Person.Person CREATE VIEW vw_persona AS SELECT firstName, LastName from Person.Person SELECT * from vw_persona CREATE VIEW vw_persona2 as SELECT FirstName, LastName from Person.Person where LastName like 'adams' SELECT * from vw_persona2 create VIEW vw_persona3 AS SELECT ...
true
3e6cb9f5c9c7a5f117453e97a778e6b516e0e51a
SQL
chnd-ktvn/MuseCoffee
/etc/muse_coffee.sql
UTF-8
17,852
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 24 Feb 2021 pada 13.55 -- Versi server: 10.4.17-MariaDB -- Versi PHP: 8.0.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
true
243e7a493f69a64082e3677db2bbbc70fe7454b4
SQL
ev37/alibrandfinal
/tienda_alibrand.sql
UTF-8
21,616
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 22-01-2018 a las 22:58:00 -- Versión del servidor: 10.1.13-MariaDB -- Versión de PHP: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
true
33b1fc5b5b8cd37095a7c6744e354eeb90aadfd4
SQL
Mohammed-Bhatti/edbas
/files/postgis_sfcgal--unpackaged--2.3.4.sql
UTF-8
2,380
2.671875
3
[]
no_license
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- PostGIS - Spatial Types for PostgreSQL -- http://postgis.net -- -- This is free software; you can redistribute and/or modify it under -- the terms of the GNU General Public Licence. See the COPYING file. -- -- -- -- -- -- -- -- -- -- -...
true
0e206d8eef6654c57cacc23d6aa6652222f0383d
SQL
roneetkumar/sql-queries
/SQL Project.sql
UTF-8
2,482
4.75
5
[]
no_license
-- DISPLAY THE NUMBER OF CUSTOMERS FOR EACH COUNTRY. SELECT COUNT(*) AS NO_OF_CUSTOMERS, COUNTRY FROM CUSTOMER GROUP BY COUNTRY; -- DISPLAY THE EMPLOYEE_ID AND THE NUMBER OF ORDERS FOR EACH EMPLOYEE HAVING MORE THAN. SELECT EMPLOYEE_ID,COUNT(ORDER_ID) AS NB_OF_ORDERS FROM ORDERS HAVING COUNT(ORDER_ID) > 10 GROUP ...
true
bc9ab0e068d86652b8d3c6ea6b572aac95884a4a
SQL
iainfrost/DRUG-ADDICTION
/sql_drugStudy.sql
UTF-8
15,502
3.4375
3
[]
no_license
/* ***************************************************************************** * * * Titre : sql_drugStudy.sql * * Auteur: Iain Frost * * Date: 06 mars 2018 * * Description: Contient les instructions pour construire * * la base de donnée pour le p...
true
72e6d0e100ca02da868d18ec8b142688c0f22b32
SQL
Piulres/rp-site-intern
/db/rpx_v1.sql
UTF-8
33,686
2.6875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 186.202.152.190 -- Generation Time: 22-Ago-2018 às 16:07 -- Versão do servidor: 5.6.35-81.0-log -- PHP Version: 5.6.30-0+deb8u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
true
551313dcf00c0a632063e69a4f0b5536a58154da
SQL
widro/niftythriftyarchive
/src/NiftyThrifty/ShopBundle/Database/tables/invoice.sql
UTF-8
3,111
2.78125
3
[]
no_license
CREATE TABLE `invoice` ( `invoice_id` bigint(20) NOT NULL, `invoice_num` varchar(100) NOT NULL, `order_id` bigint(20) NOT NULL, `basket_id` bigint(20...
true
f0523bb59edb44bad51154b5d0b9f85d8899ef1f
SQL
NetserviceLab/Co-Authors-Plus
/tmpquery.sql
UTF-8
1,031
4
4
[]
no_license
SELECT wp_posts.* FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_term_taxonomy ON ( wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id ) WHERE 1=1 AND ( (wp_posts.post_author = 2 OR (wp_term_taxonomy.taxonomy = '...
true
9f66bc82ce3a11b2d782a40084f9dc4a367e4c26
SQL
karavokyrismichail/VoteGR
/project_code/VoteGR-DB/votegr_vote.sql
UTF-8
2,864
3.25
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64) -- -- Host: localhost Database: votegr -- ------------------------------------------------------ -- Server version 8.0.18 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!4...
true
e57ee24223d08c241019b9514444986f8e3b8ece
SQL
runenv/wxms
/src/test/resources/db/wxms_rollback.sql
GB18030
2,811
2.5625
3
[]
no_license
--ɾûȨ /*drop user wxms cascade;*/ --ɾݱռ /*drop tablespace tbs_wxms_temp including contents and datafiles; drop tablespace tbs_wxms including contents and datafiles;*/ --ɾ drop table T_APP_DICTIONARY_ITEM; drop table T_APP_DICTIONARY; drop table T_APP_USER_ROLE_PROGRAM; drop table T_APP_PROGRAM_ITEM; drop table T_APP...
true
cb72dd5acd8f5e2101023a6d420797cb47717596
SQL
kingof9999/MyExamples
/Document/AVX/テーブル新規SQL/AUTDPCUM.sql
SHIFT_JIS
598
2.71875
3
[]
no_license
ALTER TABLE AUTDPCUM DROP CONSTRAINT PK_DPCUM; DROP TABLE AUTDPCUM; CREATE TABLE AUTDPCUM ( DPCUM_KKCD CHAR(02) NOT NULL, -- [J[ DPCUM_SSCD CHAR(01) NOT NULL, -- rrR[h DPCUM_FORM CHAR(08) NOT NULL, -- ꏊR[h D...
true
a1f8c5b8ffa8becc060c0b9241e7f7477ac5830f
SQL
pgoldtho/visulate
/code/database/public_records/volusia/volusia2.sql
UTF-8
958
3.046875
3
[]
no_license
declare cursor cur_prop is select prop_id , source_pk from pr_properties p where source_pk is not null and source_id = 4; cursor cur_use(p_source_pk in pr_properties.source_pk%type) is select ucode from vol_properties where source_pk = p_source_pk; v_ucode pr_property_us...
true
7eed7456231dac78ea04d5fc495742ebc1428c98
SQL
Ktobias/DatabaseManagementFall2014
/Assignment6.sql
UTF-8
2,286
4.65625
5
[]
no_license
-- Kimberly Tobias -- Assignment 6 -- Due October 17 --1. Get the name and city of customers who live in A city that makes the MOST different kinds of products. --(There are two cities that make the most different products. Return the name and city of customers from EITHER ONE) select cust.name, p.city from customers...
true
e268fd78f085202650e405772b3fafdd1d50690d
SQL
justinlettau/sql-source-control-example
/_sql-database/tables/Sales.SalesTerritoryHistory.sql
UTF-8
1,990
3.984375
4
[]
no_license
IF NOT EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[Sales].[SalesTerritoryHistory]') AND type = 'U') CREATE TABLE [Sales].[SalesTerritoryHistory] ( [BusinessEntityID] int NOT NULL, [TerritoryID] int NOT NULL, [StartDate] datetime NOT NULL, [EndDate] datetime NULL, [rowguid] unique...
true
161c5172914be2c7004e661db2ed16a3707a3209
SQL
sandrain/cslim
/test/cdb.schema.sql
UTF-8
625
2.59375
3
[]
no_license
-- cdb.schema.sql drop table if exists lib; drop table if exists compat; drop table if exists syms; create table lib ( lid integer not null, sid integer not null, func text not null, file text not null, line integer not null, primary key (lid), unique (sid), unique (func) ); create table compat ( cid intege...
true
0a5bc4dace3762c8a6c894d27af54344957fda1a
SQL
zhtool/MyBat
/ExpDpTab_1_9/v_report_.sql
UTF-8
578
2.96875
3
[]
no_license
create or replace view hscenter.v_report_ as select * from hscenter.report_ where id in (select p.id from hscenter.report_catalog_temps t, hscenter.report_ p where t.id not in ('navBarGroup7', 'navBarItem276', 'rc20160908000035') and p.report_catal...
true
3c8a99193b69b7a1b9aecf6ba918c14d8375e925
SQL
kellymorin/SQL_ChinookPractice
/sales_per_country.sql
UTF-8
197
3.15625
3
[]
no_license
-- 22. sales_per_country.sql: Provide a query that shows the total sales per country. SELECT Invoice.BillingCountry, SUM(Invoice.Total) as "Total Sales" FROM Invoice GROUP BY Invoice.BillingCountry
true
2bfcea5bbe9b08af5518b67fbe56da8976caf65d
SQL
yorek/sys2dmv
/__ToDo/duplicate_index.sql
UTF-8
874
4.3125
4
[ "MIT" ]
permissive
with indexcols as ( select object_id as id, index_id as indid, name, ( select case keyno when 0 then NULL else colid end as [data()] from sys.sysindexkeys as k where k.id = i.object_id and k.indid = i.index_id order by keyno, colid for xml path('') ) as cols, ( ...
true
d983340489b66a646d67dae3e575d9f229fc017b
SQL
rcdeo/curso-mysql
/18-update.sql
UTF-8
376
3.1875
3
[]
no_license
USE hcode; UPDATE tb_funcionarios SET salario = 3000 /* apontando */ WHERE id = 5; SELECT * FROM tb_funcionarios WHERE id = 5; UPDATE tb_funcionarios SET salario = 4000, admissao = '2015-12-20' /* Em SET se usa vírgula para mudar várias colunas */ WHERE id = 6; /* Em WHERE se usa operadores, como AND ou OR e não vír...
true
f9b808592c6041c52048e73f5a5fc0eaa50133a4
SQL
zdergatchev/Database-Basic
/06 Built-in-Functions Exercises/05. Find Towns with Name Length.sql
UTF-8
174
2.953125
3
[ "MIT" ]
permissive
USE soft_uni; SELECT name FROM towns WHERE CHAR_LENGTH(name) IN (5, 6) ORDER BY name ASC; /* SELECT name FROM towns where length(name)=5 or length(name)=6 order by name; */
true
19db0bd82f60e30c2f6ac63debb21ca02623d9f5
SQL
TuNVSE61897/SchoolFeedbackManagement_Final
/Source Code/CapstoneDB/capstone_feedback.sql
UTF-8
4,611
3.234375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: capstone -- ------------------------------------------------------ -- Server version 5.5.5-10.1.19-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
true
7aa94f434ed7e4ce506604a88952cc508f2d5436
SQL
alexrios/dbunit-labs
/src/main/resources/dbunit-create.sql
UTF-8
186
2.828125
3
[]
no_license
drop sequence person_seq if exists; create sequence person_seq; create table person ( id int, firstname varchar(255), lastname varchar(255), constraint person_pk primary key (id) );
true
d463696cf4ae59c29b01062151c1df47a8b5bf44
SQL
vdvd-xiaohu/HospitalizationManSys
/DB/触发器.sql
UTF-8
1,427
3.53125
4
[]
no_license
/** *paracode表-->>category表触发器 *在paracode表增加、修改、删除一个病房类型时,同时增加、修改、删除category表的病房类型 */ delimiter || DROP TRIGGER IF EXISTS insert_trigger_on_paracode || CREATE TRIGGER insert_trigger_on_paracode AFTER INSERT ON paracode FOR EACH ROW BEGIN IF (new.code = '003') THEN insert into category(type,name) values(new....
true
b1937a9657f41170b4039c861ef5b17161aa7fbd
SQL
2817748290/wcr
/wcr11-11.sql
UTF-8
6,400
3.046875
3
[]
no_license
/* SQLyog v12.2.6 (64 bit) MySQL - 5.7.17 : Database - wcr ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_...
true
c8d8f815955a9f94ef636c7d99e54c8abc1b9d09
SQL
RichLeonC/TallerMecanico
/Scripts/TallerMecanicoMySQL.sql
UTF-8
4,850
3.390625
3
[]
no_license
create database TallerMecanico; use TallerMecanico; create table Cliente( cedula int not null primary key, nombre varchar(100) not null, apellido varchar(100) not null, apellido2 varchar(100) not null, direccion varchar(300) not null, telefono int unique not null, check(cedula>0) ); create ta...
true
6d36c587bb002085d14336d1186207c08d3ae530
SQL
jphcoi/veille
/mesr/library/creation_de_tables.sql
UTF-8
515
2.734375
3
[]
no_license
CREATE TABLE users (ID INT NOT NULL AUTO_INCREMENT PRIMARY KEY, username VARCHAR(100), password VARCHAR(60)) CREATE TABLE commentaires (ID INT NOT NULL AUTO_INCREMENT PRIMARY KEY, username VARCHAR(100), commentaire VARCHAR(800), jour DATE, periode VARCHAR(50), concept INT, blog INT, vue VARCHAR(50), comm_unique VARCH...
true
9ec86272ad9df6b81dbbbd1fe81b504f46285941
SQL
pacomytaco/bamazon
/bamazon.sql
UTF-8
845
2.953125
3
[]
no_license
drop database if exists top_songsdb; drop database if exists bamazon_db; create database bamazon_db; use bamazon_db; create table products ( itemId int auto_increment primary key, productName varchar(100) not null, departmentName varchar(100) not null, price int not null, stockQuantity int not null ); insert into pr...
true
156bce56abdca6f73c1cad780159c416e00be837
SQL
AudioSpaceTeam/AudioSpaceCode
/setup.sql
UTF-8
976
3.328125
3
[]
no_license
-- # Below create the user we will be using to access the data for the application -- # TODO: change user password to what you are going to use, don't use default CREATE USER audiospace_user@localhost IDENTIFIED BY 'password'; -- # Below grants the user we just created all CRUD functionality on our new database. GRANT ...
true
0c87f4dea602fd4546738355eb0c5e59d70a5bd2
SQL
AlNovik/clothing-store
/database/clothing-store_dump.sql
UTF-8
990,860
2.984375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50528 Source Host : localhost:3306 Source Database : clothing-store Target Server Type : MYSQL Target Server Version : 50528 File Encoding : 65001 Date: 2013-12-23 05:25:04 */ SET FOREI...
true
31f0e8c3b5796b9000043d90038967f562a4bf70
SQL
mdjukic/repos
/q_weworks/repos/mdjRetailAX/Markdown.Data.PostgresSql/ephemeral/01_schema_ProductSalesTax.sql
UTF-8
418
2.9375
3
[]
no_license
CREATE TEMP TABLE IF NOT EXISTS ephemeral.product_sales_tax ( product_sales_tax_id SERIAL NOT NULL, product_id INTEGER NOT NULL, week INTEGER NOT NULL, rate DECIMAL(34, 4) NOT NULL, CONSTRAINT pk_product_sales_tax_id PRIMARY KEY (product_sales_ta...
true
1fa14fdfe48c72932ea264c143dae2c5abd9d0a5
SQL
akkpatel/cs348
/project2/qu.sql
UTF-8
862
4
4
[]
no_license
Select d.deptid, count(s.deptid) FROM DEPARTMENT d LEFT JOIN student s ON s.deptid = d.deptid GROUP BY d.deptid ORDER BY deptid ASC; Select s.deptid, s.sname FROM student s, Department d WHERE s.deptid = d.deptid ORDER BY s.sname ASC; select s.sname, count(e.snum) FROM enrolled e LEFT JOIN student s on s.snum = e....
true
d6c0e93419e2fdfc84fe7ef147171713540ec13e
SQL
arq-gabo/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/11-genre_id_all_shows.sql
UTF-8
255
3.1875
3
[]
no_license
-- Script for show all list contained in hbtn_0d_tvshows SELECT tv_shows.title, tv_show_genres.genre_id FROM tv_shows LEFT JOIN tv_show_genres ON tv_shows.id = tv_show_genres.show_id ORDER BY tv_shows.title, tv_show_genres.genre_id;
true
da0bd3ecb7bbd22ba3c1bf5d8a0609ed0572fdd6
SQL
victorLishuyuan/Logistics
/logistics.sql
UTF-8
47,550
3.4375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : lsy Source Server Type : MySQL Source Server Version : 80015 Source Host : localhost:3306 Source Schema : logistics Target Server Type : MySQL Target Server Version : 80015 File Encoding : 65001 Date: 04/12/2020 21:44:...
true
8033082c053b3d861719cadf0c93b5df572c03b2
SQL
Last-Mile-Health/LMD-Databases
/lastmile_cha/view/view_position_community.sql
UTF-8
333
3.109375
3
[]
no_license
use lastmile_cha; -- view of all active positions and the commuunities they are assigned to. drop view if exists view_position_community; create view view_position_community as select trim( position_id ) as position_id, community_id, begin_date from position_community as pc where pc.end_d...
true
d0f6cf9cfaa54cb4e236ea84e7728b4ca189dc65
SQL
dawangbaixiaofu/risk_manager
/documents/风控模型脚本/1.建表语句/t_mod_ind_cal_result_xyyh_csfh.sql
UTF-8
6,050
2.515625
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : 192.168.85.140 Source Server Type : MySQL Source Server Version : 50560 Source Host : 192.168.85.140:3306 Source Schema : yth_xybk_cs Target Server Type : MySQL Target Server Version : 50560 File Encoding : 65001 Date:...
true
d2e6d303fa4b654ac0e87940a83dfaa17e405202
SQL
vdvz/DBproject
/src/main/resources/requests/requestes.sql
UTF-8
7,016
4.03125
4
[]
no_license
-- Получить перечень и общее число поставщиков, поставляющих указанный -- вид товара, либо некоторый товар в объеме, не менее заданного за -- весь период сотрудничества, либо за указанный период./*DONE*/ SELECT * FROM PROVIDERS P INNER JOIN DELIVERIES_GOODS DG on P.ID = DG.PROVIDER_ID INNER JOIN DELIVER...
true
66f7c76b6830641225472540393b16fd5e817809
SQL
LovelyGuy/DataDisplay
/table.sql
UTF-8
811
3.3125
3
[]
no_license
CREATE DATABASE data_analysis; # Tips: 在生成这些表之前, 可以先更新 # ###################################################################### # 用户列表 CREATE TABLE `user_profile` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `logic_id` VARCHAR(32) NOT NULL, `gender` TINYINT(1) DEFAULT NULL, `city` VAR...
true
dbdd6e03de02c05a0abffd2c5e6a453a805d1d65
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/tables/PRIMASGARANSEG.sql
ISO-8859-1
4,682
2.875
3
[]
no_license
-------------------------------------------------------- -- DDL for Table PRIMASGARANSEG -------------------------------------------------------- CREATE TABLE "AXIS"."PRIMASGARANSEG" ( "SSEGURO" NUMBER, "NMOVIMI" NUMBER, "NRIESGO" NUMBER, "CGARANT" NUMBER, "FINIEFE" DATE, "IEXTRAP" NUMBER, "IPRIANU"...
true
567863f1a7e90e932b627151b9d202224fea47c8
SQL
shoumitro-cse/Hibernate-small-projects
/Inheritance Mapping /Table_Per_Concrete/src/com/javatpoint/xml/db.sql
UTF-8
1,178
3.71875
4
[]
no_license
create table emp122 ( id integer not null, name varchar(255), primary key (id) ) ; create table regemp122 ( id integer not null, name varchar(255), salary float, bonus integer, primary key (id) ); create table contemp122 ( id integer not null, name varchar(2...
true
e5375eefb7780f15908a1f03b2407ea894a56f0e
SQL
lee-seunghwan/20201222_spring_team_github
/itschoolTeamProject/lib/itschool.sql
UTF-8
21,003
3.28125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.21, for Win64 (x86_64) -- -- Host: localhost Database: itschool -- ------------------------------------------------------ -- Server version 5.7.21-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */...
true
09ba9ac7df29c873fe8efccde2c9fb2c7a0833d8
SQL
SophiaAvvo/Projects
/2016 Projects/First Touch SubChannel Report/20160718_high_order_count_PID_check.sql
UTF-8
609
3.890625
4
[]
no_license
select DISTINCT a.* ,oas.* , op.name from ( select DISTINCT persistent_session_id , regexp_extract(url, 'thank_you\/([0-9]+)', 1) as order_id ,event_date from src.page_view where page_type = 'LS-Thankyou' AND event_date >= '2016-02-08' and persistent_session_id = '51836885-5c9b-4205-b186-c9befd10d6a3' ) a left ...
true
86cb1cc72cb89482d9afa0f1cbac703c08dd5e10
SQL
gipplab/eCoachSql
/src/test/resources/com.formulasearchengine.sql.check.good/hp06/1/1f.sql
UTF-8
132
3.0625
3
[ "Apache-2.0" ]
permissive
SELECT e.ssn, e.fname, e.lname FROM Employee e WHERE e.super_ssn IS NULL AND e.ssn NOT IN ( SELECT essn FROM Works_on );
true
9e4ca8a801aaea9ea4d68b89e59715afa0f41da1
SQL
Dragontalker/MySQL-study-notes
/Notes_18.sql
UTF-8
2,593
4.625
5
[ "MIT" ]
permissive
#1. 查询和Zlotkey相同部门的员工姓名和工资 #(1)查询Zlotkey的部门 SELECT department_id FROM employees WHERE last_name = 'Zlotkey'; #(2)查询部门号=(1)的姓名和工资 SELECT last_name, salary FROM employees WHERE department_id = ( SELECT department_id FROM employees WHERE last_name = 'Zlotkey' ); #2. 查询工资比公司平均工资高的员工的员工号, 姓名和工资 #(1)查询平均工资 SELEC...
true
fae4e7426814c6173a5b288d28fc0c5b1363a064
SQL
kalregi/quest_for_biomarkers
/bin/database/etl_scipts/RSC_qs_dboracle_query.sql
UTF-8
1,887
3.609375
4
[]
no_license
SELECT * FROM EBI_PROJECT_DATA; SELECT * FROM METADATA_EBI_PROJECT_DATA; SELECT * FROM METADATA; SELECT * FROM METADATA_EBI_PROJECT_DATA; -- kell egy subsampling-et csinálni. -- restarting subset info: TRUNCATE TABLE SEQUENCING_SUBSET_MACHINE CASCADE; TRUNCATE TABLE SEQUENCING_SUBSET_EBI_PROJECT_DATA CASCADE; TRUNC...
true
5857fa6db09610a38c540d1be7c046b3f356202b
SQL
Thainnt/BootcampX
/1_queries/students_in_cohort.sql
UTF-8
480
3.734375
4
[]
no_license
SELECT id, name FROM students WHERE cohort_id = 2 ORDER BY name; SELECT COUNT(*) FROM students WHERE cohort_id BETWEEN 1 AND 3; SELECT name, id, cohort_id FROM students WHERE email IS NULL OR phone IS NULL; SELECT name, email, id, cohort_id FROM students WHERE email NOT LIKE '%@gmail.com' AND phone IS NULL; SELECT...
true
2c5a99944940e16270ac64ea5d58480afeac1e9b
SQL
anthill-platform/anthill-config
/anthill/config/sql/config_application_versions.sql
UTF-8
583
2.875
3
[ "MIT" ]
permissive
CREATE TABLE `config_application_versions` ( `gamespace_id` int(11) unsigned NOT NULL, `application_name` varchar(64) NOT NULL DEFAULT '', `application_version` varchar(64) NOT NULL DEFAULT '', `build_id` int(11) unsigned NOT NULL, PRIMARY KEY (`gamespace_id`,`application_name`,`application_version`), KEY `...
true