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
056b1bddb068986a8f294cfa87ea234fe681c544
SQL
harshari/SIMBII
/DataScience/SQL/AggregateFunction.sql
UTF-8
3,814
4.65625
5
[ "MIT" ]
permissive
28/04/2020 Learn SQL: Aggregate Functions Cheatsheet | Codecademy Cheatsheets / Learn SQL Aggregate Functions Column References The GROUP BY and ORDER BY clauses can reference the selected columns by number in which they appear in the SELECT statement. The example query will count the number of movies per rating, and...
true
725d20edb81666da89bd57ef2a6573e88a32dd4a
SQL
marcelosoliveira/trybe-exercises
/Modulo_3_Back-end/Bloco 22: Normalização e Modelagem de Banco de Dados/dia_3: Transformando ideias em um modelo de banco de dados - Parte 2/conteudo/views.sql
UTF-8
466
3.828125
4
[]
no_license
USE nome_do_banco_de_dados; -- Defina em qual banco a view será criada CREATE VIEW nome_da_view AS SELECT * FROM sakila; DROP VIEW nome_da_view; USE sakila; CREATE VIEW top_10_customers AS SELECT c.customer_id, c.first_name, SUM(p.amount) AS total_amount_spent FROM sakila.payment p INNER JOIN sakila.custom...
true
c1bc9d56a08ea391b9074c6d7c079afb391794c0
SQL
HGONeV/hgon_donation
/ext_tables.sql
UTF-8
7,030
2.859375
3
[]
no_license
# # Table structure for table 'tx_hgondonation_domain_model_donation' # CREATE TABLE tx_hgondonation_domain_model_donation ( uid int(11) NOT NULL auto_increment, pid int(11) DEFAULT '0' NOT NULL, type int(11) unsigned DEFAULT '0', title varchar(255) DEFAULT '' NOT NULL, short_description text NOT NULL, descript...
true
64bb02dae7546fed1400ec8beef51bb0658356a8
SQL
delphi1977/NewDicomPACS
/Database/oracle/constraints/asu.trecipe_dlo_rpac_info_fk.sql
UTF-8
321
3.03125
3
[]
no_license
ALTER TABLE ASU.TRECIPE_DLO_REG_PAC_INFO DROP CONSTRAINT TRECIPE_DLO_RPAC_INFO_FK / -- -- Foreign Key Constraints for Table TRECIPE_DLO_REG_PAC_INFO -- ALTER TABLE ASU.TRECIPE_DLO_REG_PAC_INFO ADD ( CONSTRAINT TRECIPE_DLO_RPAC_INFO_FK FOREIGN KEY (FK_REGPACID) REFERENCES ASU.TRECIPE_DLO_REG_PAC (FK_ID)) / ...
true
1539920e1cae164ab86672df45e0967819389fbe
SQL
Jamaxack/HackerrankPractice
/SQL/Basic Select/Weather Observation Station 8.sql
UTF-8
208
2.875
3
[]
no_license
--Problem: https://www.hackerrank.com/challenges/weather-observation-station-8/problem --Max Score: 15 SELECT DISTINCT City FROM STATION WHERE City LIKE '[AIOUEaioue]%' AND City LIKE '%[AIOUEaioue]';
true
dab6126332b47d29487e5e4257905cc7afcc8692
SQL
Hanz41-dev/Kalkulator-RFM
/db_rfm.sql
UTF-8
3,601
2.828125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 28 Feb 2021 pada 07.46 -- Versi server: 10.4.17-MariaDB -- Versi PHP: 7.4.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
0d2b2c835e79d4173d9622f21d1308ee9058bfcb
SQL
fakegit/toolkit
/dbwrapper/template.sql
UTF-8
468
3.484375
3
[]
no_license
DROP DATABASE IF EXISTS test; CREATE DATABASE `test` DEFAULT CHARACTER SET utf8 collate utf8_general_ci; USE test; CREATE TABLE `user` ( `id` INT AUTO_INCREMENT, `username` VARCHAR(100) NULL, `password` VARCHAR(64) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `Duplicate_username` (`username`) ) ENGINE=InnoDB D...
true
eeae07dc9d81d5da06a417ed9264298fe6be70d4
SQL
Nedhro/bd-uhc_config
/sql/openmrs/LocationWisePatient.sql
UTF-8
1,784
3.65625
4
[]
no_license
select distinct concat(pn.given_name," ", ifnull(pn.family_name,'')) as name, pi.identifier as identifier, concat("",p.uuid) as uuid, concat("",v.uuid) as activeVisitUuid, IF(va.value_reference = "Admitted", "true", "false") as hasBeenAdmitted from vis...
true
8b3c71093b49afafd6edf6a63606a6fdec21e906
SQL
oramm/taryfy
/back-end/src/sql/create_db.sql
UTF-8
17,607
3.5
4
[]
no_license
DROP TABLE IF EXISTS wspolczynnik_alokacji; DROP TABLE IF EXISTS popyt_wariant_sumy; DROP TABLE IF EXISTS popyt_wariant_odbiorcy; DROP TABLE IF EXISTS grupy_odbiorcow; DROP TABLE IF EXISTS popyt_warianty; DROP TABLE IF EXISTS popyt_element_sprzedazy; DROP TABLE IF EXISTS elementy_przychodow_dict; DROP TABLE IF EXISTS p...
true
c75aeb1ea1d3adc7e00695093effa51c23e2c234
SQL
paul-rogers/drill-test-framework
/framework/resources/Functional/table_schema/data/10_boolean.sql
UTF-8
353
2.765625
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
CREATE OR REPLACE SCHEMA ( boolean_col BOOLEAN, varchar_boolean_col VARCHAR ) FOR TABLE dfs.drillTestDir.`table_schema/boolean`; SET `store.table.use_schema_file` = true; --@test SELECT boolean_col, sqlTypeOf(boolean_col), CAST(varchar_boolean_col as BOOLEAN) FROM dfs.drillTestDir.`table_schema/boolean`; RESE...
true
a63c3a744aaa72ed325d61dbe8a65a3d73a4d83b
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/01047_simple_aggregate_sizes_of_columns_bug.sql
UTF-8
515
3.046875
3
[ "BSL-1.0", "Apache-2.0" ]
permissive
DROP TABLE IF EXISTS column_size_bug; CREATE TABLE column_size_bug (date_time DateTime, value SimpleAggregateFunction(sum,UInt64)) ENGINE = AggregatingMergeTree PARTITION BY toStartOfInterval(date_time, INTERVAL 1 DAY) ORDER BY (date_time) SETTINGS remove_empty_parts = 0; INSERT INTO column_size_bug VALUES(now(),1); ...
true
e3a03a92cbf2f786af598ef79fdfab1534876a75
SQL
obajasiadari/UAS_Semester4
/obaja_store.sql
UTF-8
5,346
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 10, 2021 at 07:56 AM -- 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
3c3742cef7d42cf726f325abbe6126afeab8f3c3
SQL
youcef-86/travail-semaine6-eval
/développer des composants d_accès aux données/programmer des procédures stockées/exo stockée avec declaration de variable.sql
UTF-8
3,803
3.734375
4
[]
no_license
-- exo Procédure stockée avec déclaration de variable(s) DELIMITER | CREATE PROCEDURE ajoutFournisseur( IN p_nom VARCHAR(50), IN p_countries_id CHAR(2), IN p_address VARCHAR(150), IN p_zipcode VARCHAR(5), IN p_contact VARCHAR(100), IN p_phone VARCHAR(10), IN p_mail VARCHAR(75) ) ...
true
e1ed3aa4cdc71cb250286af052b4e0e05185bbca
SQL
CStuckey/sequelizedBurger
/db/schema.sql
UTF-8
279
2.796875
3
[]
no_license
-- Create the database taco_db and specify it for use. CREATE DATABASE taco_db; USE taco_db; -- Create the table plans. CREATE TABLE tacos ( id int NOT NULL AUTO_INCREMENT, taco_name varchar(255) NOT NULL, devoured BOOLEAN DEFAULT false, date TIMESTAMP, PRIMARY KEY (id) );
true
1d27b908aee5e9076709b302aa0f98d7c897a28d
SQL
gitletian/mpintranettool
/scripts/数据迁移/weibo_user.sql
UTF-8
2,306
2.984375
3
[]
no_license
-------------------------------------------------------------------------------------- ---------- weibo user 自动化 ---------- 1、weibo ---------- -------------------------------------------------------------------------------------- drop table if exists extract.socialmedia_weibo_user_txt; CREATE TA...
true
d9a0a55b21ba121f5d12f892042d0e8bf3b26bfb
SQL
Archibaltuss/DB_MovieList
/6_insert_procedure.sql
UTF-8
2,337
4.125
4
[]
no_license
USE movielista; -- ----------------- ADDING A NEW USER --------------------- DROP PROCEDURE IF EXISTS sp_add_user; DELIMITER // CREATE PROCEDURE sp_add_user(username VARCHAR(50), email VARCHAR(100), phone_number BIGINT, password_hash VARCHAR(100), OUT u_in_status VARCHAR(200)...
true
2ae8f82038ac0436dcc90e644374cef65cd10a67
SQL
duan847/matecloud
/doc/sql/matex_schema_5.6+5.7.sql
UTF-8
69,934
3.484375
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 */; -- -- Database: `mat...
true
ed6744efce060fb32adedc7b7aa5f721b1f6321e
SQL
pdet/VoterClassification
/Classification/predicted_table.sql
UTF-8
276
3.3125
3
[]
no_license
CREATE TABLE predicted AS SELECT * FROM voter_predict( (SELECT county, precinct, sex, race, ethnicity, age, ncvoters_preprocessed.id FROM ncvoters_preprocessed INNER JOIN train_set ON train_set.id=ncvoters_preprocessed.id WHERE train_set.train=false )) WITH DATA;
true
b61c9a17e5dffe7f7f4c17ded88136ac02b266ef
SQL
BalioFVFX/Database-Basics-MySQL-September-2018
/EXAM PREPARATION II/04. Delete/04. Delete.sql
UTF-8
199
3.859375
4
[]
no_license
DELETE FROM users WHERE users.id = (SELECT u.id FROM (SELECT * FROM users u LEFT JOIN users_followers uf ON uf.user_id = u.id WHERE user_id IS NULL AND follower_id IS NULL) u WHERE users.id = u.id);
true
bc1a77d0c333c3134914ffddf993c041443a78ad
SQL
VladPavluts/bsu
/business_intelligence/Lab3/Lab3.sql
UTF-8
2,115
4.40625
4
[]
no_license
--1 SELECT CASE GROUPING(deptname) WHEN 0 THEN deptname ELSE 'Total' END deptname, COUNT(empno) emp_count FROM career JOIN dept USING(deptno) JOIN EMP USING(empno) GROUP BY ROLLUP(deptname); --2 SELECT deptname, jobname, CASE GROUPING(deptname) || GROUPING(jobname) WHEN '00' THEN 'TOTAL BY DEPT AND JOB' WHEN...
true
9a829f30417d0902d176cb7089d04f49ba0ca9df
SQL
mariana-cristina-santos/projetoModulo-03
/queries/consultas/sets/set6.sql
UTF-8
445
4.1875
4
[]
no_license
# Qual o id, nome e tema dos sets e quantos de cada tipo temos no inventário? select sets.set_num as 'set_id', sets.name as 'set_nome', sets.theme_id as 'tema_id', th.name as 'tema_nome', sum(inv_set.quantity) as 'qtd_set' from sets inner join inventory_sets as inv_set on sets.set_num = inv_set.inventory_id inner jo...
true
664635ebfebf861a5866d49ae9d751cf51544fa8
SQL
nad2000/postgresql-contrib-uint
/sql/tables.sql
UTF-8
3,585
3.28125
3
[ "MIT" ]
permissive
-- -- uint1 table tests -- -- Single uint1 column, NULLS permitted, with OIDS. CREATE TABLE uint1_table_test ( col1 uint1 ) WITH OIDS; DROP TABLE uint1_table_test; -- Single uint1 column, NULLS permitted, without OIDS CREATE TABLE uint1_table_test ( col1 uint1 ) WITHOUT OIDS; DROP TABLE uint1_table_test; -- Si...
true
bb4c63fd62cf5636af9eb8cf08e93e71813e0b6c
SQL
jurip/cuba-example-using-data-import
/modules/core/db/update/hsql/18/180626-1-createMlbPlayer.sql
UTF-8
481
2.515625
3
[]
no_license
create table DDCDIT_MLB_PLAYER ( ID varchar(36) not null, VERSION integer not null, CREATE_TS timestamp, CREATED_BY varchar(50), UPDATE_TS timestamp, UPDATED_BY varchar(50), DELETE_TS timestamp, DELETED_BY varchar(50), -- NAME varchar(255), TEAM_ID varchar(36), HEIGHT int...
true
2249730ccc04b3ede4c1c02de324dc62db2fb8bc
SQL
gracethom/cobradb
/gcdIntegration/GCD_full_STRUCT.sql
UTF-8
26,322
2.859375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.44, for debian-linux-gnu (x86_64) -- -- Host: mysql0a.comics.org Database: gcd -- ------------------------------------------------------ -- Server version 5.5.44-0ubuntu0.12.04.1-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RE...
true
611c4b0fd9b76168680e768e23abda72361defbb
SQL
lordnynex/CLEANUP
/FORKS/Python/amazon-redshift-utils/tree/src/AdminViews/v_check_wlm_query_time.sql
UTF-8
1,124
3.921875
4
[ "WTFPL", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-.amazon.com.-AmznSL-1.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-unknown" ]
permissive
--DROP VIEW admin.v_check_wlm_query_time; /********************************************************************************************** Purpose: View to get WLM Queue Wait Time , Execution Time and Total Time by Query for the past 7 Days History: 2015-07-01 srinikri Created ****************************************...
true
afbb091b23426b640cb9a4b70e06c920dcc09d1b
SQL
fictionalparakeets/BootcampX
/4_queries/1_ttl_teach_asst_rqsts.sql
UTF-8
547
3.9375
4
[]
no_license
-- Get the total number of assistance_requests for a teacher. -- Select the teacher's name and the total assistance requests. -- Since this query needs to work with any specific teacher name, use 'Waylon Boehm' for the teacher's name here. -- total_assistances | name -- -------------------+---...
true
760d43d009bd99f8ba523881ff51962d5063787d
SQL
SayantoRoy/PRATIBHAPOP
/PRATIBHAPOP/SEC/PasswordHistory.sql
UTF-8
391
3.140625
3
[]
no_license
CREATE TABLE [SEC].[PasswordHistory] ( [Id] VARCHAR (36) NOT NULL, [UserId] VARCHAR (10) NOT NULL, [Password] VARCHAR (100) NOT NULL, [LastChangedDay] DATETIME NOT NULL, CONSTRAINT [PK_PasswordHistory] PRIMARY KEY CLUSTERED ([Id] ASC), CONSTRAINT [FK_PasswordHis...
true
81fbd0bdc4f0268033563b8d816c58f2e779124d
SQL
sutra/okcoin-syncer
/src/main/scripts/okcoin.sql
UTF-8
1,783
3.734375
4
[]
no_license
-- Create database schema. -- org.oxerr.okcoin.rest.dto.Type CREATE TYPE "type" AS ENUM ('buy', 'sell', 'buy_market', 'sell_market'); CREATE TABLE trade ( tid bigint PRIMARY KEY, -- transaction time date timestamp with time zone NOT NULL, -- buy/sell "type" "type" NOT NULL, -- quantity in BTC (or LTC) amoun...
true
ebd98f79643ea572788c48aa63a4209efe8b9472
SQL
liulei199409/fastproject
/deploy/test_user.sql
UTF-8
1,315
3.125
3
[ "MIT" ]
permissive
/* Navicat MySQL Data Transfer Source Server : pony Source Server Type : MySQL Source Server Version : 80018 Source Host : rm-2zee5e5ytvd02o9e9no.mysql.rds.aliyuncs.com Source Database : bookcrawl Target Server Type : MySQL Target Server Version : 80018 File Encoding : u...
true
d540935794331031af79539894d39f65d22d22fa
SQL
Alcereo/artilidus
/app/databaseDDL.sql
UTF-8
2,860
4.28125
4
[]
no_license
CREATE TABLE public.articles ( uid UUID PRIMARY KEY NOT NULL DEFAULT uuid_generate_v4(), id INTEGER NOT NULL DEFAULT nextval('articles_id_seq'::regclass), title TEXT NOT NULL, contenthtml TEXT NOT NULL, contentmarkdown TEXT NOT NULL, parentuid UUID, noteuid UUID NOT NULL, FOREIGN KEY (parentuid) REFEREN...
true
b172a2826a7b63d69df256257f2beb0851f5b1c5
SQL
MaryIoannou/SQL_Queries-C_Sharp_SchoolPartB
/22.STUDENTS THAT BELONG TO MORE THAN ONE COURSES.sql
UTF-8
223
3.609375
4
[]
no_license
USE SCHOOL; SELECT S.FIRSTNAME,S.LASTNAME, COUNT(*) AS COURSES FROM COURSE_STUDENT CS INNER JOIN COURSE C ON CS.CID= C.IDCOURSE INNER JOIN STUDENT S ON CS.SID= S.IDSTUDENT GROUP BY S.FIRSTNAME,S.LASTNAME HAVING COUNT(*)>1 ;
true
bc6ba4091ac6d2d8ef636591939c2ef781128ac4
SQL
PE-Pmi-32-2020/DrinkIT
/DrinkIT/DrinkIt/migrations/postgres_public_drunkdrinks.sql
UTF-8
452
3.0625
3
[]
no_license
create table drunkdrinks ( id serial not null constraint drunkdrinks_pkey primary key, volume integer constraint drunkdrinks_volume_check check (volume > 0), time timestamp, beverage_id integer constraint drunkdrinks_beverage_id_fkey ...
true
2c6ac244a76cdc9db4afe06eff9f340ca8b2242b
SQL
BhaskaranR/social-app
/ks-reporter/db/rewards_storeproc.sql
UTF-8
8,351
4.21875
4
[]
no_license
DROP PROCEDURE IF EXISTS pricing.CALCULATE_PRICING; DELIMITER $$ CREATE PROCEDURE pricing.`CALCULATE_PRICING`(IN personId VARCHAR(45), IN eventPointId int, IN actionId VARCHAR(45) ) BEGIN DECLARE curr_insertedDate DATE; DECLARE curr_eventID INT; DECLARE curr_person VARCHAR(45); DECLARE curr_created_at DATE; DE...
true
79f32192424b5b8aa299f5d111397bb34477f754
SQL
SamaaShehata/Animal-Shelter-Desktop-Application
/AnimalsShelterDatabase.sql
UTF-8
12,911
3.453125
3
[]
no_license
CREATE SCHEMA `animalsshelter` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE animalsshelter; CREATE TABLE `medical_state` ( `medical_state_id` int(11) NOT NULL AUTO_INCREMENT, `medical_state_name` varchar(20) NOT NULL, `comments` varchar(200) DEFAUL...
true
5fed613e422f879fedd747be3b5efa0742921918
SQL
ErickTiossi/CRUD
/CRUD BACKUP - FUNCIONANDO CLIENTES/db.sql
UTF-8
2,432
3.734375
4
[]
no_license
create database javamvc; use javamvc; CREATE TABLE categories( categoryId int AUTO_INCREMENT, description varchar(50) , PRIMARY KEY(categoryId) ); CREATE TABLE products( productId int AUTO_INCREMENT, name varchar(50) , price float , quantity int , category_id int , PRIMA...
true
455881bac2d43ac231e74db18baf9f88419d1b65
SQL
xtttk/Bb-Data-Visualization-Fmwk
/TERM_FACULTY_MODIFIED_MERGE.sql
UTF-8
1,292
4
4
[]
no_license
/* Oracle. Start Prep: Term Faculty Added or Modified. Supporting visualization tool for system admins monitoring automated faculty assignment creation processes. Counts of enrollments added to a given DSK including Row and Availability status. */ SELECT 'The Faculty DSK <b>'||TERM_ENROLLMENT_DSK||'</b><ul><li> Was...
true
a2db7e3bc88566bba49aedb064d9bd1c07bcc1bc
SQL
misstamu/SQL_Scripts
/Q2.sql
UTF-8
838
4.03125
4
[]
no_license
-- 2a. You need to find the ID number, first name, and last name of an actor, of whom you know only the first name, "Joe." SELECT actor_id, first_name, last_name FROM actor WHERE first_name LIKE 'JOE'; -- 2b. Find all actors whose last name contain the letters GEN: SELECT actor_id, first_name, l...
true
c704cf5621cee1dad5a7919030650b39b4b8e222
SQL
ericboris/CSE344-Intro-Data-Management
/HW2/hw2-q5.sql
UTF-8
689
4.40625
4
[]
no_license
-- (10 points) Find all airlines that had more than 0.5 percent of their flights out of Seattle be canceled. Return the name of the airline and the percentage of canceled flight out of Seattle. Order the results by the percentage of canceled flights in ascending order. -- Name the output columns name and percent, in th...
true
6552fe8c53f223e430807dc84071e32d87585b9a
SQL
dat-hq/hqdat243.io
/W9/database.sql
UTF-8
2,918
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 19, 2019 at 11:19 AM -- 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
0a5552b09c99a71a7ca7c1e4cfae3997afcdea72
SQL
sajjanbh/covid19-project
/athena-queries/top-hashtags-per-country.sql
UTF-8
212
3.109375
3
[]
no_license
CREATE OR REPLACE VIEW top_hastags_per_country AS SELECT "country" , "day" "date" , "hastag" FROM (covid_twitter_etl2 CROSS JOIN UNNEST("top10hashtagspercountry") t (hastag)) WHERE ("length"("country") = 2)
true
305eb288130cf9db776bf4f41d944152bc8a637c
SQL
iamcynthia/MSc_Database_CW2
/Part1/databaseNormalization.sql
UTF-8
824
3.359375
3
[]
no_license
-- Part 1.5 databaseNormalization.sql -- -- Submitted by: Hsin -Ju, Chan -- -- Write your Data Normalization statements here CREATE TABLE Area AS SELECT DISTINCT rd,area,area_name FROM crimes; ALTER TABLE Area ADD PRIMARY KEY(rd); CREATE TABLE Type AS SELECT DISTINCT crime_no, crime_desc FROM crimes; ALTER TABLE T...
true
7a1aab3bdda748dea6d1b55321f27e5cfff45a93
SQL
scortina/kolor
/kolor.sql
UTF-8
15,667
2.984375
3
[]
no_license
/* SQLyog Enterprise Trial - MySQL GUI v7.11 MySQL - 5.6.12-log : Database - kolor ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101...
true
717ddfd003279fc33367e4d6d76ff21b03eda8a0
SQL
cmonoto/Database-Design
/Proj2/proj2-jinhao.sql
UTF-8
4,128
4.65625
5
[]
no_license
-- change xxx in this line to your NetID \o proj2-jinhao.out -- Put your SQL statement under the following lines: --1. Find all the coaches who have coached exactly ONE team. List their first names followed by their last names; select firstname,lastname from coaches_season where tid in (select tid from coaches_s...
true
72cabd2e5476df1c8c73611e79d18db9b7c6f5e0
SQL
Arunbk83/home_projects_back-end_backUp
/back-end-back_up/bkmg_db.sql
UTF-8
12,243
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Apr 09, 2019 at 08:47 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 5.6.39 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
f5b3ce013fb205d1908589256ab025d2265aa535
SQL
AmeViegas/LHL_week_3
/day_1/ex_06.sql
UTF-8
1,233
3.3125
3
[]
no_license
List all book titles along with their publication dates (column on the editions dates) That's 2 columns: "title" and "publication" Important Notes: Certain books (such as "Learning Python") don't have any editions but we still want to see those books in the results. They just shouldn't have a publication date associa...
true
78f4e5a8cf075bad81d6068297652abe6a2c5305
SQL
achimhoth/weathercomp
/analytics/get_single_day_avgs.sql
UTF-8
1,110
4.0625
4
[]
no_license
DROP PROCEDURE IF EXISTS get_single_day_avgs; DELIMITER // CREATE PROCEDURE get_single_day_avgs(day_count int) BEGIN drop table if exists temp_forecasts; create temporary table if not exists temp_forecasts as (select p.city, p.service, p.curr_date as _on, DATE_ADD(p.curr_date, INTERVAL day_count DAY) as _f...
true
dc71759c47a023a1e7d2a37e9af47cd14553f242
SQL
dicko-hub/Conception-Application-Repartie
/MiageBook/status.sql
UTF-8
1,625
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : mar. 24 mars 2020 à 10:19 -- Version du serveur : 5.7.26 -- Version de PHP : 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
true
d40b9790ce4c429b8c92ead116ddff7ee05e57fc
SQL
ByunSoYun/backup
/oracle/ex26_account.sql
UTF-8
881
3.375
3
[]
no_license
/* ex26_account.sql 계정 - DCL - 계정 생성 - 리소스 접근 권한 제어 사용자 계정 생성하기 - 시스템 권한을 가지고 있는 계정만 할 수 있다. -관리자만 가능 (sys,system,관리자 권한을 부여받은 계정 등 ) - 계정 생성 권한을 가지는 일반 계정 create user 계정명 identified by 암호; alter user 계정명 identified by 암호; alter user 계정명 account lock; alter user 계정명 account unlock; drop user 계정명 */ sho...
true
48ea77001f941eee862b8c1a62efe9a68b1f7490
SQL
Luzaks/SQL-Zoo
/3_Select_Fomr_Nobel.sql
UTF-8
1,246
3.5625
4
[]
no_license
SELECT yr, subject, winner FROM nobel WHERE yr = 1950; SELECT winner FROM nobel WHERE yr = 1962 AND subject = 'Literature'; SELECT yr, subject FROM nobel WHERE winner = 'Albert Einstein'; SELECT winner FROM nobel WHERE subject = 'Peace' AND yr >= 2000; SELECT yr, subject, winner FROM nobel WHERE subject = 'Li...
true
1dd5aa23b8ad16e69fa2096a734118421cc9161f
SQL
Christiantaguejou/CerisaieEJB
/ProjetCerisaie/cerisaie.sql
UTF-8
8,866
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : jeu. 14 juin 2018 à 16:28 -- Version du serveur : 10.1.28-MariaDB -- Version de PHP : 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4010...
true
928509900c070603d1deaf26bb7e36f172ee9929
SQL
es021/cf-app
/ref/oejf21-NEW.sql
UTF-8
7,350
2.890625
3
[]
no_license
-- ################################## CREATE TABLE `ref_year_latest` ( `ID` INT NOT NULL AUTO_INCREMENT , `val` VARCHAR(700) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL , PRIMARY KEY (`ID`), UNIQUE(`val`), INDEX (`val`)) ENGINE = InnoDB; INSERT INTO ref_year_latest (val) VALUES ('Not Applicable');...
true
fb057c672457967a074cef70cb35e49ca5c91dcb
SQL
DeiseFreire/Banco-de-Dados
/realizar-consultas-simples-em-tabelas-com-o-comando-select.sql
UTF-8
512
2.953125
3
[]
no_license
/** REIS, Fábio dos. Postgresql: Como realizar consultas simples em tabelas com o comando SELECT. 10 sep. 2020, 07 jul. 2021. Notas de Aula. No prelo. */ SELECT * FROM clientes; SELECT nome_cliente FROM clientes; SELECT nome_cliente, sobrenome_cliente FROM clientes; SELECT sobrenome_cliente, nome_cliente FROM cli...
true
20ad8eeecbb707dd46c794fb2a9cf6d754a8f712
SQL
ashishM11/Java-Projects
/krivaRide/SQLDumps/krivacab_tblbookingInfo.sql
UTF-8
2,488
3.015625
3
[ "MIT" ]
permissive
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64) -- -- Host: localhost Database: krivacab -- ------------------------------------------------------ -- Server version 5.7.21 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *...
true
7b29a6af209c7c7718f2af9442b8c8d62c406c54
SQL
juniorpsilva7/PHP_personal_expenses
/finan.sql
UTF-8
13,303
2.796875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 18-Out-2016 às 11:39 -- Versão do servidor: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
339ae7a85cc46ca3cdfa0ea1d2e8826769598392
SQL
Azure4Arjun/sql-performance-tuning
/MOD10/Locks/004 - DR 2.sql
UTF-8
121
2.609375
3
[]
no_license
USE AdventureWorks2012; SELECT FirstName ,LastName FROM Person.Person WHERE LastName Like 'Raheem%';
true
a5a190065b95c48e0a2c002021cc9462aef93890
SQL
DavingToT/JavaOracleJdbc
/03. ERD+Script_/데이터_순서표기/07_강의실데이터.sql
UTF-8
679
2.875
3
[]
no_license
-- 강의실 데이터 CREATE TABLE Classroom ( seq NUMBER PRIMARY KEY, name VARCHAR2(50) NOT NULL, capacity number NULL ); select * from Classroom; INSERT INTO Classroom (seq, name, capacity) VALUES (1, '제 1강의실', 30); INSERT INTO Classroom (seq, name, capacity) VALUES ...
true
55ea43c288d44788dedf2dc5a7e0b1807b36f341
SQL
tasfe/hryetl
/日常sql开发/反洗钱审计/风控-个人认证信息-2015-12-01之后.sql
UTF-8
1,278
4.0625
4
[]
no_license
SELECT T1.member_id 会员ID, T1.default_login_name 默认登录名, T2.auth_name 认证实名, T2.auth_type 认证类型, T2.result 认证结果, TO_CHAR(T1.create_time,'yyyy-MM-dd hh:mm:ss') 注册日期, T2.file_path 影印文件路径 FROM member.tr_personal_member@kjtdb T1 LEFT JOIN (SELECT tt1.member_id, tt1.auth_name, ( CASE tt1.auth_type ...
true
3c420774dcb5d2e2e827face1214aaca1ab6d76d
SQL
dataplumber/dmas
/inventory/src/main/resources/sql/patch_311-to-320.sql
UTF-8
298
2.625
3
[ "Apache-2.0" ]
permissive
ALTER TABLE METADATA_MANIFEST ADD ("DIFF" CLOB) ; create or replace TRIGGER GR_UP_TRIG AFTER UPDATE ON GRANULE FOR EACH ROW BEGIN update granule_meta_history set LAST_REVISION_DATE_LONG=INVENTORY.PSTTimeStampToLong(CURRENT_DATE) where granule_id=:new.granule_id; END GR_UP_TRIG; / COMMIT;
true
43a7d9e0f1d180e955e49818e9560450dc6701fa
SQL
DanielMuthupandi/FAST
/FAST/vsql/SFDC/SF_SWT_MDF_Funds_Budget_Association_Object__c.sql
UTF-8
6,623
3.296875
3
[]
no_license
/**** ****Script Name : SF_SWT_MDF_Funds_Budget_Association_Object__c.sql ****Description : Incremental data load for SF_SWT_MDF_Funds_Budget_Association_Object__c ****/ /*Setting timing on */ \timing /**SET SESSION AUTOCOMMIT TO OFF;**/ \set ON_ERROR_STOP on CREATE LOCAL TEMP TABLE Start_Time_Tmp ON COMMIT PRE...
true
66e4a010e7cd9b14008798dad9eef433ba3d5d2d
SQL
sgutierrez93/Balance
/balance.sql
UTF-8
8,869
3.640625
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 20-05-2015 a las 21:38:28 -- Versión del servidor: 5.5.44-0ubuntu0.14.04.1 -- Versión de PHP: 5.5.9-1ubuntu4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @...
true
57991b394fecf4289e115a92f04a7b5071381642
SQL
YanovAlexander/SQLCmdWeb
/src/main/resources/sql/v1.sql
UTF-8
1,358
3.734375
4
[]
no_license
-- Database: sqlcmd_log -- DROP DATABASE sqlcmd_log; CREATE DATABASE sqlcmd_log WITH OWNER = postgres ENCODING = 'UTF8' TABLESPACE = pg_default LC_COLLATE = 'Ukrainian_Ukraine.1251' LC_CTYPE = 'Ukrainian_Ukraine.1251' CONNECTION LIMIT = -1; -- Schema: public -- DROP SCHEMA publi...
true
fc12b1659d6e61023da067d5b60884619a69f673
SQL
zhuqiujie/spring_cloud_project
/QyWechatService/src/main/resources/sqlscript/mysql/qywx_user.sql
UTF-8
2,170
3.015625
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : 172.16.23.194 Source Server Type : MySQL Source Server Version : 50724 Source Host : 172.16.23.194:3306 Source Schema : cube_qywechat_dev Target Server Type : MySQL Target Server Version : 50724 File Encoding : 65001 D...
true
1a7dd777ba69e429ffcd616fcdbd8667cdc896fd
SQL
jayseo5953/BootcampX
/4_queries/4_average_duration.sql
UTF-8
121
2.53125
3
[]
no_license
SELECT avg(assistance_requests.completed_at - assistance_requests.started_at) AS avg_duration FROM assistance_requests;
true
c323425a497b963c7a2a9db42ec7f846629f7500
SQL
nathanroberts55/CPSC_440
/hall.sql
UTF-8
14,520
4.4375
4
[]
no_license
-- DROP SCHEMA before creation, if it Exists DROP SCHEMA IF EXISTS private CASCADE; -- CREATE private schema CREATE SCHEMA private; -- DROP Tables before creation DROP TABLE IF EXISTS seat_row CASCADE; DROP TABLE IF EXISTS seat_num CASCADE; DROP TABLE IF EXISTS seat CASCADE; DROP TABLE IF EXISTS ticket CASC...
true
74ba637a61abca862ad94e384b9953d1a17fe48b
SQL
bono-cms/Wallpaper
/Storage/MySQL/schema.sql
UTF-8
2,933
3.484375
3
[]
no_license
/* Main wallpapers */ DROP TABLE IF EXISTS `bono_module_wallpaper`; CREATE TABLE `bono_module_wallpaper` ( `id` INT NOT NULL PRIMARY KEY AUTO_INCREMENT, `interior_id` INT DEFAULT NULL COMMENT 'Attached iterior image ID', `image_id` INT DEFAULT NULL COMMENT 'Attached primary image ID', `sku` varchar(255...
true
9070d028cd7441e7149bcdf66c3d5e135fd0b1f3
SQL
gustavomanuelquintana/atm-origin
/reactAtmOrigin/127_0_0_1.sql
UTF-8
22,539
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 27-01-2021 a las 22:43:25 -- Versión del servidor: 10.4.17-MariaDB -- Versión de PHP: 8.0.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
fe5e8fd7b8db1e2b67ddfd054f64ab5e6829dbf8
SQL
RAposhian/shelf-of-books
/db/init.sql
UTF-8
871
3.828125
4
[]
no_license
create table users ( user_id serial primary key, username varchar(100) not null, password varchar(300) not null, image text ); create table books ( book_id serial primary key, name varchar(150) not null, genre varchar(100), image text, description varchar(30000) ); create table aut...
true
e423fe89afc29914173840fbb50343d97d8ca85d
SQL
dcm00199/Darian_Mayle_CS-230_Lab
/cs230.sql
UTF-8
3,381
3.578125
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 04, 2020 at 08:07 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
fcca08401bd42c74b7e7f0af4b4b2b58a03f1642
SQL
felipepatente/Programacao-em-Sql-Server-Boson-Treinamentos
/Programando em SQL - Boson Treinamentos/Criando a função valor de tabela embutida.sql
UTF-8
405
3.734375
4
[]
no_license
--Criando a função valor de tabela embutida CREATE FUNCTION retorna_itens(@valor REAL) RETURNS Table AS RETURN( SELECT L.Nome_Livro, A.Nome_Autor, E.Nome_Editora FROM tbl_Livro AS L INNER JOIN tbl_autores AS A ON L.ID_Autor = A.ID_Autor INNER JOIN tbl_editoras AS E ON L.ID_editora = E.ID_Editora WHERE L.Preco_Li...
true
56ae9a7fa7834ef7a33e44b0c020d7687ac0dfc3
SQL
imtiaz-m4/spring-multitenancy
/multitenancy-demo-boot-parent/multitenancy-demo-scheduling/src/main/resources/db/employee.sql
UTF-8
362
2.59375
3
[ "MIT" ]
permissive
CREATE TABLE employee ( id bigint NOT NULL AUTO_INCREMENT, first_name varchar(250) DEFAULT NULL, last_name varchar(250) DEFAULT NULL, department varchar(250) DEFAULT NULL, office varchar(250) DEFAULT NULL, email varchar(250) DEFAULT NULL, phone varchar(250) DEFAULT NULL, version integer, PRIMARY KEY (...
true
4971c2af7131e7b736729782a707dc76831a8225
SQL
sekiskylink/amr-integrator
/integrator.sql
UTF-8
1,406
2.75
3
[]
no_license
CREATE TABLE facilities( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(64) NOT NULL DEFAULT '', -- as in DISIS dhis2_name VARCHAR(64) NOT NULL, dhis2id VARCHAR(64) NOT NULL DEFAULT '', created TIMESTAMP DEFAULT NOW(), updated TIMESTAMP DEFAULT NOW() ); CREATE TABLE organisms ( id...
true
5919acec072b8505b424f08822e081c2a78296b3
SQL
nicoraynaud/data-to-bigquery
/src/main/resources/schema.sql
UTF-8
662
3.515625
4
[]
no_license
DROP TABLE IF EXISTS user; CREATE TABLE user ( id INT AUTO_INCREMENT PRIMARY KEY, first_name VARCHAR(250) NOT NULL, last_name VARCHAR(250) NOT NULL, email VARCHAR(250) NOT NULL ); DROP TABLE IF EXISTS device; CREATE TABLE device ( id INT AUTO_INCREMENT PRIMARY KEY, OS VARCHAR(50) NOT NULL, name VARCHA...
true
b9a1b5264cc8966d73303be282b291c458829ee7
SQL
ShAlireza/gin_tutorial
/setup.sql
UTF-8
166
2.71875
3
[]
no_license
CREATE TABLE products ( id SERIAL, name VARCHAR(128) NOT NULL, price NUMERIC(10, 2) NOT NULL DEFAULT 0.00, CONSTRAINT products_pkey PRIMARY KEY (id) )
true
ca0d4642f54ddd880e02cb8e75ce3a319e0e678f
SQL
mkomuravelly/spatial_databases
/quiz-1.sql
UTF-8
2,183
3.984375
4
[]
no_license
# 5443 Quiz 1 # Madhuri Komuravelly # 1 ############## CREATE TABLE IF NOT EXISTS `Planets` ( `Name` varchar(70) DEFAULT NULL, `NumMoons` int(30) DEFAULT NULL, `Type` varchar(50) DEFAULT NULL, `LengthOfYear` double DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `Planets` --...
true
7f33b2cabc4e8a2dfef567b8e13645a7363ce6b0
SQL
sachinsu/momentumflow
/dbt/models/rankstocks.sql
UTF-8
699
3.109375
3
[]
no_license
{{ config( materialized='incremental', ) }} with cnxcompanies as ( select symbol, company, ltp, yearlyhigh, updatedat, rank() over (order by yearlyhigh-ltp) as diff_rank from {{ source('datastore', 'cnx...
true
73f3bc99c9424f51055290c7fde2a193aac353ce
SQL
danyfang/SourceCode
/sql/leetcode/CustomerOrder.sql
UTF-8
520
3.3125
3
[ "MIT" ]
permissive
create table Customers (Id int, Name varchar(10)); create table Orders (Id int, CustomerId int); insert into Orders (Id, CustomerId) values (1,3); insert into Orders (Id, CustomerId) values (2,1); insert into Customers (Id, Name) values (1,'Joe'); insert into Customers (Id, Name) values (2,'Henry'); insert into Custo...
true
06a5859292afccc1622629da0b6b7b74f2c65ca4
SQL
H-Shen/Collection_of_my_coding_practice
/Leetcode/1440/1440.sql
UTF-8
649
3.765625
4
[]
no_license
# Write your MySQL query statement below select t1.left_operand, t1.operator, t1.right_operand, case when t1.operator = '>' and t2.v1v > t2.v2v then 'true' when t1.operator = '<' and t2.v1v < t2.v2v then 'true' when t1.operator = '=' and t2.v1v = t2.v2v then 'true' else 'false' end as value from Express...
true
6ba0e684f2101b5c5874ed99b4418d0294752a87
SQL
ramyaaas/Assigment-programs
/28-oct-2020/SQLQuery1.sql
UTF-8
2,511
3.0625
3
[]
no_license
create database assign_28_oct use assign_28_oct create table student( stu_id int not null primary key identity(1,1), stu_fname varchar(50), stu_lname varchar(100), stu_location varchar(100)) insert into student values('kavya','pn','banglore'); insert into student values('lakshman','p','hyderabad'); ...
true
f3d1f9598087efcbe7427ad98da63af0d4d5bdf0
SQL
dev1912837/Projects
/Assign5.sql
UTF-8
795
3.3125
3
[]
no_license
/* Name: Dev Patel ZID: Z1912837 */ USE BabyName; SHOW TABLES; DESCRIBE BabyName; SELECT DISTINCT name FROM BabyName where year=2001 LIMIT 50; SELECT DISTINCT year, name FROM BabyName WHERE name='Dev'; SELECT MAX(count) FROM BabyName; SELECT DISTINCT name, SUM(count) FROM BabyName WH...
true
bdaa54c68467ff08b18cac83291c7a475cf77c6a
SQL
md-shefatul-islam/learning-web-technologies-spring-2020-2021-sec-h
/FINAL_LAB_TASK_03_php/users.sql
UTF-8
1,290
2.796875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 24, 2021 at 04:09 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
12ee7db5a2ec8c81afb1fc7b0a3ba30548d44b62
SQL
brgj/mno
/mno-assignments/scripts/ledger.sql
UTF-8
1,489
3.140625
3
[]
no_license
DROP TABLE IF EXISTS ledger; CREATE TABLE ledger ( `accountno` varchar(4) NOT NULL, `accountname` varchar(80) NOT NULL, `debit` varchar(20) NOT NULL, `credit` varchar(20) NOT NULL, `status` char(1) NOT NULL, PRIMARY KEY (`accountno`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; INSERT INTO ledger (accountno, ac...
true
16a80472840cc5fc749dd5d0b2669e7459cbdd5c
SQL
ivan-rataichuk/training-project
/SummaryTask4/webapp.sql
UTF-8
3,197
3.515625
4
[]
no_license
DROP DATABASE IF EXISTS webapp; CREATE DATABASE webapp CHARACTER SET utf8 COLLATE utf8_general_ci; USE webapp; DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int NOT NULL AUTO_INCREMENT, `login` char(15) NOT NULL UNIQUE, `password` char(15) NOT NULL, `email` char(25) NOT NULL, `role_id` int NOT...
true
06e5d5e15898818ce0beb4c47dcc4eee5db88763
SQL
liuljlgit/dynamic-gateway-db
/sql/gateway_route.sql
UTF-8
2,996
3.015625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50725 Source Host : localhost:3306 Source Database : reform_auth Target Server Type : MYSQL Target Server Version : 50725 File Encoding : 65001 Date: 2020-06-17 22:39:27 */ SET FOREIGN_KEY_CHECKS=0; ...
true
954913238120a9230271e0758c5909701fc26ffe
SQL
whitneykware/PostgreSQL-Scripts
/snp_associations/gene_region.sql
UTF-8
224
3.15625
3
[]
no_license
SELECT snps.snp_id, position, gene_symbol, measure, effect_allele_frequency FROM assocs FULL OUTER JOIN snps ON (assocs.snp_id=snps.snp_id) WHERE chromosome=9 AND position BETWEEN 4153000 AND 8863000 ORDER BY position ASC;
true
1bd373cf0be35dd8d95d290ceeeec7e09476b636
SQL
AlexVilla92/Proyecto-SQL-
/sql/operaciones_aritmeticas.sql
UTF-8
806
3.1875
3
[]
no_license
select *from libros /* operadores aritmeticos*/ select nombre from libros /* ganancia por libro*/ select precio_venta - precio_compra from libros where id_libro = 1 /*para un libro */ /* presupuesto para un solo libro: compro 10 libros de lobo*/ select precio_venta * 10 from libros where nombre = 'E...
true
b26822dca6ba6774cdf3421aa9c2bed8a4a8864c
SQL
BalioFVFX/Database-Basics-MySQL-September-2018
/INTRODUCTION TO DATABASES. DATA DEFINITION AND DATATYPES - EXERCISE/06. Create Table People/06. Create Table People.sql
UTF-8
636
3
3
[]
no_license
CREATE TABLE people(id INT(11) NOT NULL AUTO_INCREMENT, name VARCHAR(200) NOT NULL, picture MEDIUMBLOB, height DECIMAL(2), weight DECIMAL(2), gender char(1) NOT NULL, birthdate DATETIME NOT NULL, biography LONGTEXT, PRIMARY KEY(id)); INSERT INTO people(name, gender, birthdate) values ('Pesho', 'M', '2017/9/21'); INSER...
true
137769c4e99e58e6e4d29c0a17253b8bc5eb908f
SQL
TeamForeman/PhotoCarousel
/database/csvToCassandra2.cql
UTF-8
332
2.84375
3
[]
no_license
USE sdc_photos; COPY listings_by_id ( share_id, name, rating, reviews, listing, photo_id, description, url ) FROM 'database/monsterListing3.csv' WITH DELIMITER=',' AND HEADER=TRUE; -- COPY photos ( -- photo_id, -- share_id, -- description, -- url -- ) -- FROM 'database/monsterPhotos.csv' -- WITH DELIMITER=',' -- AND ...
true
0afbb6ae923a190bb0965462047078e9caf51be8
SQL
Jafet15/ISIBSI1922019
/Tarea semana 9/cliente.sql
UTF-8
1,525
2.640625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 14-08-2019 a las 06:50:15 -- Versión del servidor: 10.1.40-MariaDB -- Versión de PHP: 7.1.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
4773a3dde52f89c980b6c376afb6f97fd27378eb
SQL
aditya10n/hrsoft
/db/dbhrsoft.sql
UTF-8
5,086
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 27 Des 2017 pada 23.08 -- Versi Server: 10.1.16-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
4fa7183f989ee7f87d4ac21450906d712e88f703
SQL
ZhengtongYan/AlphaJoinRepetition
/resource/jobqueryplan/5a.sql
UTF-8
2,620
4.03125
4
[]
no_license
SELECT MIN(t.title) AS typical_european_movie FROM company_type AS ct, info_type AS it, movie_companies AS mc, movie_info AS mi, title AS t WHERE ct.kind = 'production companies' AND mc.note LIKE '%(theatrical)%' AND mc.note LIKE '%(France)%' AND mi.info IN ('Sweden', 'Norway...
true
cfc0eb3359c937069ca44621a0515327918307f5
SQL
pratiksha-dewangan/database-problem-solving
/Day8/procedure_sol.sql
UTF-8
3,451
4.34375
4
[]
no_license
Procedure ========== 1. Prepare a program which can perform following operation - Lookout for tables which has missing constraints - Display list of those tables -------------------------------------------------------------------------------- 2. Prepare a program to delete the data from emp. It will recei...
true
1b4f47c6dd501d98656585259178924082b1c863
SQL
fenago/oracle19c-multitenant
/labs/RM/script_rm.sql
UTF-8
1,145
2.84375
3
[]
no_license
CONNECT sys/Welcome_1@sales AS SYSDBA set echo on EXEC dbms_resource_manager.clear_pending_area() EXEC dbms_resource_manager.create_pending_area() EXEC dbms_resource_manager.delete_plan_directive('PGA_plan', 'Reporting_Users') EXEC dbms_resource_manager.delete_plan('PGA_plan') EXEC dbms_resource_manager.clear_pending...
true
a809a2681e243976295325c6f55fcee3b338f316
SQL
jpirnat/dex
/sql/schema/dex/species.sql
UTF-8
401
3.109375
3
[]
no_license
create table if not exists `species` ( `id` smallint unsigned not null, `identifier` varchar(12) not null, `introduced_in_version_group_id` tinyint unsigned not null, `base_egg_cycles` tinyint unsigned not null, primary key (`id`), unique key (`identifier`), foreign key (`introduced_in_version_group_id`) references `...
true
2e63bb4e4d3aaf65439db35a0998cc778030c6fc
SQL
bikle/rluck
/svm6dow/score_j_model.sql
UTF-8
549
3.546875
4
[]
no_license
-- -- score_j_model.sql -- -- I use this script to join the score table with the model source so I can gauge the effectiveness of SVM. -- See what I have to work with: SELECT COUNT(npg),AVG(npg)FROM svm6ms; SELECT COUNT(score),AVG(score)FROM svm6scores; CREATE OR REPLACE VIEW score_j_model AS SELECT score,npg FROM s...
true
46eed4efeda19eb22a07ffc3e819267067802ba9
SQL
youjeong-chae/jsp20201103
/WebContent/WEB-INF/sql/select/joinEx1.sql
WINDOWS-1252
1,314
4
4
[]
no_license
-- 14Ʃ??, 8Ʃ SELECT * FROM employee; -- 4Ʃ??, 3Ʃ SELECT * FROM department; SELECT * FROM employee, department; SELECT eno, ename, dname FROM employee, department; SELECT eno, ename, employee.dno edno, department.dno ddno, dname FROM employee, department; SELECT eno, ename, employee.dno edno, department.dno ddno, dna...
true
dd798ce8b2feb89a78430248b2891d36fd934064
SQL
kkyopa/PHP-oneluck
/db.sql
UTF-8
505
2.875
3
[]
no_license
#データベース作成のコマンド CREATE DATABASE one_luck DEFAULT CHARACTER SET UTF8; use one_luck; #デーブル作成時のコマンド CREATE TABLE lucks( id int(11) AUTO_INCREMENT, content varchar(255), attach_filename varchar(255), PRIMARY KEY (id) ); #デーブル作成時のコマンド CREATE TABLE mypage( id int(11) AUTO_INCREMENT, name varchar(25...
true
d30a5bcb3879ffeccedfe456ec20729be1c10a9d
SQL
RibleStrype/crypto-portfolio
/pg-init/schema.sql
UTF-8
494
3.546875
4
[]
no_license
CREATE TABLE assets( symbol VARCHAR PRIMARY KEY, name VARCHAR NOT NULL, price_usd NUMERIC NOT NULL ); CREATE TABLE investors( id BIGINT PRIMARY KEY, name VARCHAR NOT NULL ); CREATE TABLE investments( investor_id BIGINT NOT NULL, asset VARCHAR NOT NULL, amount NUMERIC NOT NULL, PRIM...
true
4e480f3bc2d027abed5a065324e33d687db1fce6
SQL
hellcy/leetcode
/Database/1527. Patients With a Condition.sql
UTF-8
134
2.59375
3
[]
no_license
/* Write your T-SQL query statement below */ select patient_id, patient_name, conditions from patients where conditions like '%DIAB1%'
true
31951605d31bf65be24bc2c2245c049ecc51da45
SQL
mainul35/springboot-examples
/doc/sql/test_hz_city.sql
UTF-8
1,762
3.125
3
[ "MIT" ]
permissive
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50625 Source Host : localhost:3306 Source Database : test_hz_city Target Server Type : MYSQL Target Server Version : 50625 File Encoding : 65001 Date: 2018-06-28 10:34:49 */ SET FOREIGN_KEY_CHECKS=0; ...
true
edf8ffb80783498595fd4f70716bff02c7ada261
SQL
PettVitin/walkdogs
/USBWebserver v8.6/root/DogWalker/bootstrap-4.1.3-dist/BD/WalkDogs.sql
UTF-8
3,778
3.078125
3
[]
no_license
-- -------------------------------------------------------- -- Servidor: 127.0.0.1 -- Versão do servidor: 5.6.13 - MySQL Community Server (GPL) -- OS do Servidor: Win32 -- HeidiSQL Versão: 10.1.0.5464 -- -------------------------------------------------------- /...
true