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
6442b7828a092b6037ddd6884f37952dd0ca2d7c
SQL
MinhHuong/Programmation_backup
/BaseDonnes/TD1/ques2-29.sql
UTF-8
134
2.9375
3
[]
no_license
select nom_acteur from acteur where nom_acteur in ( select nom_acteur from acteur group by nom_acteur having count(*) = 1 );
true
c248effd025d1e25a4b332494fb5f0e7527f26b5
SQL
skmbw/vteba-batch
/vteba-batch/src/main/resources/tianxun_question.sql
UTF-8
5,440
3.671875
4
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50711 Source Host : localhost:3306 Source Database : tianxun_question Target Server Type : MYSQL Target Server Version : 50711 File Encoding : 65001 Date: 2016-03-21 09:09:31 */ SET FOR...
true
e39ab82e31cf7ef9ff41ee88b5e9f772727257b5
SQL
stephennesloney/Portfolio
/LW_GA_SESSIONS_INTERACTION.sql
UTF-8
10,082
3.234375
3
[]
no_license
CREATE OR REPLACE VIEW TF_DATA_WAREHOUSE.SALES_AND_MARKETING.LW_GA_SESSIONS_INTERACTIONS AS SELECT z.*, /*Product Area*/ CASE WHEN z."PRODUCT" IN ('WordPress', 'WooCommerce','Magento') THEN 'Managed Apps' WHEN z."PRODUCT" NOT IN ('WordPress', 'WooCommerce','Magento','Unknown','Other') THEN 'Managed Hosting' /*save f...
true
b13c6e401148de6b99ddc312d6eb771262b12bf4
SQL
facundososagonzales/edextapp
/src/main/java/schema.ddl
UTF-8
4,264
3.5
4
[]
no_license
create table Categoria ( nombre varchar(255) not null, primary key (nombre) ); create table Curso ( nombre varchar(255) not null, cantHoras time, creditos int4 not null, descripcion varchar(255), duracion varchar(255), fechaR timestamp, ...
true
d0abbefe3fbedaa258e3ada0a26dd3734a8b5647
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day21/select2347.sql
UTF-8
178
2.6875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-20T23:47:00Z' AND timestamp<'2017-11-21T23:47:00Z' AND temperature>=20 AND temperature<=40
true
0d4e622b48cce79b794316221cd27f4b58335167
SQL
crafrankzhang/knowledge_graph
/data/dump.sql
UTF-8
2,057
3.3125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `knowledge_graph` /*!40100 DEFAULT CHARACTER SET latin1 */; USE knowledge_graph; CREATE TABLE IF NOT EXISTS entity ( id varchar(20) PRIMARY KEY, label varchar(20), code varchar(20), name varchar(100)) ...
true
62c294d47f26bb632fc9a5bb74be4d98fbf14a94
SQL
macorains/sform2
/adminApi/conf/evolutions/test/22.sql
UTF-8
996
3.375
3
[]
no_license
# --- !Ups ALTER TABLE `d_form_col` CHANGE COLUMN `created` `created` DATETIME NOT NULL , CHANGE COLUMN `modified` `modified` DATETIME NOT NULL ; CREATE TABLE `d_form_col_select` ( `id` INT NOT NULL AUTO_INCREMENT, `form_col_id` INT NOT NULL, `form_id` INT NOT NULL, `select_index` INT NOT NULL, `select_name`...
true
4e3ef9bab89de9694ba2b4915916096cf17ca49f
SQL
grbzmhmmt/veritaban-Havayolu-Sirketi-
/proglab2.4/prolab.sql
UTF-8
4,548
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4.1 -- http://www.phpmyadmin.net -- -- Anamakine: 127.0.0.1 -- Üretim Zamanı: 22 May 2017, 14:14:21 -- Sunucu sürümü: 5.5.32 -- PHP Sürümü: 5.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
d2953f2d705b58f59e75033ed671040fe3bf00d5
SQL
ybak/loan
/web/doc/sql/table/hous/hous_quick_information.sql
UTF-8
1,096
3.078125
3
[]
no_license
CREATE TABLE `hous_quick_information` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '编号id', `creator` int(11) DEFAULT NULL COMMENT '创建人', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `modifier` int(11) DEFAULT NULL COMMENT '修改者', `modify_time` datetime DEFAULT NULL COMMENT '修改时间', `is_delete` tinyint(4) u...
true
bac0c636fb80fc1a7b1a292218c9a4657bb32a58
SQL
DiamondSolutionsAfrica/Auto-Dealer-Software
/autodealer.sql
UTF-8
4,947
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.2deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 24, 2011 at 12:09 PM -- Server version: 5.1.41 -- PHP Version: 5.3.2-1ubuntu4.9 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @...
true
d91d32f5d82588327013735e76e5d6943d9b0c15
SQL
truongbachinh/truongbachinh-assignment2cloud
/php.sql
UTF-8
4,201
2.859375
3
[]
no_license
DROP TABLE IF EXISTS toy, kindtoy, admin; CREATE TABLE toy ( id SERIAL, id_kindtoy INT NOT NULL, toyname VARCHAR(255) NOT NULL, price INT NOT NULL, brand VARCHAR(255) NOT NULL, made VARCHAR(255) NOT NULL, toydescription VARCHAR(510) NOT NULL, img VARCHAR(255) NOT NULL, PRIMARY KEY (id) ); INSERT INTO toy (id_kindtoy...
true
6e981da637f1018db92c25f3846951b52afed96b
SQL
gsvk2734tp/RatingFood
/src/main/resources/db/populateDB.sql
UTF-8
1,312
2.984375
3
[]
no_license
DELETE FROM user_roles; DELETE FROM feed_types; DELETE FROM feed; DELETE FROM users; ALTER SEQUENCE global_seq RESTART WITH 100000; INSERT INTO users(name, email, password) VALUES ('User', 'user@ya.ru', '{noop}password'), ('Admin', 'admin@gmail.com', '{noop}admin'); INSERT INTO user_roles (role, user_id) VALUE...
true
001e637bdaa94564704e4692f7acbcac8fdeafc3
SQL
Nilottom/Web-Database-Programming-Lab-Final
/ttoc.sql
UTF-8
4,690
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 25, 2019 at 03:38 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
f335ef9af77114063f761966a4b2f62a8f0b6016
SQL
CUBRID/cubrid-testcases
/sql/_31_cherry/issue_21522_json/cases/json_select_insert.sql
UTF-8
1,595
3.421875
3
[ "BSD-3-Clause" ]
permissive
drop table if exists players; create table players(id int primary key not null auto_increment, player_and_games json not null); INSERT INTO `players` (`id`, `player_and_games`) VALUES (1, '{ "id": 1, "name": "Sally", "games_played":{ "Battlefield": { "weapon": "sniper rifle", ...
true
6159af1d5dea31b34c3e14c0546da036ee84a1ac
SQL
Sulhin-uli/sid_kenanga_web
/sid_db.sql
UTF-8
32,228
3.09375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 29, 2021 at 06:49 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
aba56f5a67cce48116feb5686fb5ca0ab309623a
SQL
Stuntback46/BlogPHP
/comments.sql
UTF-8
1,659
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Nov 16, 2018 at 02:34 PM -- Server version: 5.7.23 -- PHP Version: 7.2.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `test` -- -- -------------------------------...
true
1c80ab86efc0b0e2fccb8c34f67ddd254ebad226
SQL
Julia-XD/PFM
/all.sql
UTF-8
6,126
3.203125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `pfm` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `pfm`; -- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64) -- -- Host: localhost Database: pfm -- ------------------------------------------------------ -- Server vers...
true
db5a9e1d26a647e7f2a37b4bf9f5c9af65e7df96
SQL
browniefed/graphql-engine
/server/src-rsr/mssql_table_metadata.sql
UTF-8
2,986
3.890625
4
[ "MIT", "Apache-2.0" ]
permissive
-- SCHEMA_NAME(..) SELECT ISNULL( (SELECT object.name, object.schema_id, object.object_id, object.type_desc, JSON_QUERY([schema].json) AS [joined_sys_schema], JSON_QUERY([column].json) AS [joined_sys_column] FROM sys.objects object CROSS APPLY (SELECT [column].name, [column].col...
true
dc1ea396225a5e43d9098d920f6f1f340728da67
SQL
blackwolfinc/Kalbefarma.netcore
/RUN API/kalbe.sql
UTF-8
1,570
2.625
3
[]
no_license
# Host: localhost (Version: 5.5.8) # Date: 2020-11-23 23:41:24 # Generator: MySQL-Front 5.3 (Build 4.81) /*!40101 SET NAMES utf8 */; # # Structure for table "tb_admin" # DROP TABLE IF EXISTS `tb_admin`; CREATE TABLE `tb_admin` ( `username` varchar(255) NOT NULL DEFAULT '', `password` varchar(255) DEFAULT NULL...
true
d90f09be8bbefd688c0ddaa7d8524f29c7fca739
SQL
neoandrey/mssql-stash
/check_online_systems.sql
UTF-8
208
2.703125
3
[]
no_license
SELECT * FROM post_normalization_session sess join post_norm_rtfw_session rtfw on sess.normalization_session_id = rtfw.session_id join post_online_system ons ON sess.online_system_id= ons.online_system_id
true
c2f2db5145828690a6a40a7a4ac3c8fa6fdd8f34
SQL
mavalos90/codewars_katas
/sql/6_kyu/simple_in.sql
UTF-8
559
4.21875
4
[]
no_license
-- SQL Basics: Simple IN -- 6 kyu -- For this challenge you need to create a SELECT statement, this SELECT statement will use an IN to check whether a department has had a sale with a price over 98.00 dollars. -- departments table schema -- id -- name -- sales table schema -- id -- department_id (department forei...
true
a0c0345e9d65dcf827d6e8f9a9e5e6ecd51be8c1
SQL
woo7348/team1_v2sbm3c
/team1_v2sbm3c_git/src/main/webapp/WEB-INF/doc/관리자/admin.ddl
UTF-8
2,466
4.09375
4
[]
no_license
/**********************************/ /* Table Name: 관리자 */ /**********************************/ CREATE TABLE admin( adminno NUMBER(10) NOT NULL PRIMARY KEY, id VARCHAR2(20) NOT NULL, name VARCHAR2(300) ...
true
432e76ca1e6ac9b8c8e2373bd69f0ac8070bdaa2
SQL
scvalencia/SchoolWork
/Courses/2015-10/AS/Laboratorios/LSHIRO/Lab-seguridadBasico-master/Competitors Lab 1/Competitors/src/main/resources/META-INF/dataExample.sql
UTF-8
1,292
2.578125
3
[]
no_license
INSERT INTO APP.COMPETITORENTITY (ID, ADDRESS, AGE, CELLPHONE, CITY, COUNTRY, CREATE_AT, "NAME", SURNAME, TELEPHONE, UPDATED_AT, WINNER) VALUES (20, 'Calle falsa 123', 20, '311240450', 'Bogota', 'Colombia', '2014-12-09', 'Kay', 'Maria', '123445', '2014-12-09', 1); INSERT INTO APP.COMPETITORENTITY (ID, ADDRESS, AGE, ...
true
c27f56376420149a19bb72b4fcf52c44c52bb625
SQL
Last-Mile-Health/LMD-Databases
/lastmile_chwdb/views/common/view_sequentialUnsignedInteger.sql
UTF-8
337
3.03125
3
[]
no_license
use lastmile_chwdb; drop view if exists view_sequentialUnsignedInteger; create view view_sequentialUnsignedInteger as select d4.digit * 1000 + d3.digit * 100 + d2.digit * 10 + d1.digit as n from view_digit as d1 cross join view_digit as d2 cross join view_digit as d3 cross join view_digit as d...
true
ef9d39c70b6c36a68d0f36bf84cb0b48f35459c0
SQL
SarahTTAN107/code_snippets
/2_BQ_aggregate_streaming_data_to_minutes.sql
UTF-8
800
3.6875
4
[]
no_license
-- example of BQ's StandardSQL to aggregate IoT data to minute. check further details in this qwiklabs: https://googlecoursera.qwiklabs.com/focuses/11579147?parent=lti_session WITH streaming_data AS ( SELECT timestamp, TIMESTAMP_TRUNC(timestamp, HOUR, 'UTC') AS hour, TIMESTAMP_TRUNC(timestamp, MINUTE, 'UTC') ...
true
d0f627658d3033f31233218e0efc26d413f0ca3f
SQL
nh43de/mssql-algorithms
/mssql-algorithms/dbo/Functions/Generate Omega Intervals.sql
UTF-8
384
3.390625
3
[ "MIT" ]
permissive
-- ============================================= -- Author: Name -- Create date: -- Description: -- ============================================= CREATE FUNCTION [Generate Omega Intervals] ( @n int ) RETURNS TABLE AS RETURN ( SELECT a.n, a.k, b.IntervalMin, b.IntervalMax FROM [Generate k](@n) a CR...
true
2c9293aa37ffab69ff57244552bec0a19b08954a
SQL
stochastic-ltda/mepagas.com
/data/database/20130901.sql
UTF-8
1,401
3.25
3
[]
no_license
ALTER TABLE `aviso` ADD `subcategoria` VARCHAR( 100 ) NOT NULL AFTER `categoria`; ALTER TABLE `aviso` ADD `permalink` VARCHAR( 80 ) NOT NULL; CREATE TABLE IF NOT EXISTS `usuario_favoritos` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_usuario` int(11) NOT NULL, `url` varchar(200) COLLATE utf8_spanish_ci NOT N...
true
9142ec67de07ef3721230ae2f8512d029f28285c
SQL
ehsanwaheedraja/sql-database
/Ex-5 solution/ex-5-solution.sql
UTF-8
636
3.25
3
[]
no_license
SELECT * FROM customers where name = 'Laurence Lebihan'; SELECT name FROM customers where country = 'UK'; SELECT address, city, postcode FROM customers where name = 'Melinda Marsh'; SELECT name FROM hotels where postcode = 'DGQ127'; SELECT name FROM hotels where rooms > 11; SELECT name FROM hote...
true
61bb46bba88ad5821c005398223a4b7f5fe05d8d
SQL
jampaniuday/sql_source
/sql/feuerstein/Best_Practices/Code/always_use_ora.sql
UTF-8
584
2.984375
3
[]
no_license
/* || Reference event arributes via the || provided public synonyms. */ DROP TABLE log_create; CREATE TABLE log_create (object_type VARCHAR2(30), object_name VARCHAR2(30)); CREATE OR REPLACE TRIGGER after_create AFTER CREATE ON SCHEMA DECLARE /*-- the BAD way with direct referencing */ v_type VARCHAR2(30) :=...
true
464b6623356505f8c326c1910c9b85207509b663
SQL
thoced/PolEcoute
/src/main/resources/db_nicetrack.sql
UTF-8
3,733
3.453125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 13, 2018 at 06:32 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
db81c4eb53abeb3557f687c94b78e3638cbe5492
SQL
cbfowler4/AppAcademy
/w3d2/daywork/aa_questions/import_db.sql
UTF-8
3,352
4.15625
4
[]
no_license
DROP TABLE IF EXISTS users; CREATE TABLE users ( id INTEGER PRIMARY KEY, fname VARCHAR(255) NOT NULL, lname VARCHAR(255) NOT NULL ); DROP TABLE IF EXISTS questions; CREATE TABLE questions ( id INTEGER PRIMARY KEY, title VARCHAR(255) NOT NULL, body VARCHAR(255), user_id INTEGER, FOREIGN KEY (user_id) ...
true
f91a7f5fea13b758ad512fe3291d0399c1f04e95
SQL
Gianlucca-Buzo/HemocentroBD
/.sql/InsertionOperations.sql
UTF-8
2,612
2.859375
3
[]
no_license
USE HEMOCENTRO; INSERT INTO Doador VALUES ('04048884026','Gianlucca de Mendonca Buzo', 'gdmbuzo@inf.ufpel.edu.br', 'M', '2001-03-01','O+'), ('44334528821','Isabela Fernandes Gomes Dias','ifgdias@inf.ufpel.edu.br','F', '2000-09-13','B+'), ('88731247132','Joaz Fernando', 'jfernando@inf.ufpel.edu.br', 'M', '1...
true
e39dc1df6c4161159acab13a44422d9ff2e8337a
SQL
Taynan-Vieira/sctcc
/application/src/main/resources/db/migration/V2__cria_tabela_aluno.sql
UTF-8
379
3.359375
3
[]
no_license
create table if not exists public.tcc02_aluno ( tcc02_cod_aluno bigint not null, tcc02_nome varchar(255), tcc02_matricula varchar(255), fktcc02tcc01_cod_curso bigint not null, constraint pktcc02_cod_aluno primary key (tcc02_cod_aluno), constraint fktcc02tcc01_cod_curso foreign key (fktcc02tcc01...
true
1523fbc89ea42817d21a2295d7cadab8a7c201b6
SQL
AdamBasheer/Build-A-Menu-For-Bytes-Of-China
/Build A Menu For Bytes Of China.txt
UTF-8
6,070
3.484375
3
[]
no_license
CREATE TABLE restaurant ( id integer PRIMARY KEY, name varchar(20), description varchar(100), rating decimal, telephone char(10), hours varchar(100) ); CREATE TABLE address ( id integer PRIMARY KEY, street_number varchar(10), street_name varchar(20), city varchar(20), state varchar(15), google_...
true
2bc4273546bb95725fdd0b4e34d74bf22ec2bef5
SQL
ITSaninho/laravelshop
/laravelshop.sql
UTF-8
45,004
3.0625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Час створення: Вер 11 2017 р., 02:41 -- Версія сервера: 5.7.16 -- Версія PHP: 5.6.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT *...
true
bce11e9c7f45b8678887a56415e49d6363f9312d
SQL
hqottsz/MXI
/assetmanagement-database/src/upgrade/plsql/lib/liquibase/7/2/4/0/sql/DEV-1372.sql
UTF-8
1,913
2.796875
3
[]
no_license
--liquibase formatted sql --changeSet DEV-1372:1 stripComments:false /******************************************************* * Edit Vendor Tax menu item *******************************************************/ INSERT INTO utl_menu_item ( MENU_ID,TODO_LIST_ID,MENU_NAME,MENU_LINK_URL,NEW_WINDOW_BO...
true
68315fc312980e54a1491fa0bae09c405328f35c
SQL
phively/nu-plsql
/packages/test code/ksm_pkg_utility.sql
UTF-8
4,541
2.78125
3
[]
no_license
--------------------------- -- ksm_pkg_utility tests --------------------------- -- math_mod Select ksm_pkg_utility.math_mod(5, 2) As "1" , ksm_pkg_utility.math_mod(5, 3) As "2" , ksm_pkg_utility.math_mod(-2, 5) As "3" , ksm_pkg_utility.math_mod(5, 5) As "0" , ksm_pkg_utility.math_mod(0, 5) As "0...
true
d185c0c446cfcbb2f22baca022bcc051b8474b72
SQL
FUUK/fuuk
/fuuk/people/models/sql/updates/update-0.11-agency.mysql.sql
UTF-8
963
3.453125
3
[]
no_license
ALTER TABLE people_agency ADD COLUMN shortcut varchar(10); ALTER TABLE people_agency ADD COLUMN shortcut_en varchar(10); ALTER TABLE people_agency ADD COLUMN shortcut_cs varchar(10); ALTER TABLE people_agency ADD COLUMN name varchar(100); ALTER TABLE people_agency ADD COLUMN name_en varchar(100); ALTER TABLE people_age...
true
a3c45011f6170b6900cdd6938a2a35f17ea75909
SQL
henry0475/diffLove
/sqls/init.sql
UTF-8
1,959
3.296875
3
[]
no_license
CREATE TABLE `diffLove_db`.`users` ( `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, `username` varchar(32) NOT NULL, `nickname` varchar(32) NOT NULL, `password` varchar(40) NOT NULL, `add_time` int(10) UNSIGNED NOT NULL, `gender` tinyint(1) DEFAULT 1 COMMENT '0girl-1boy', `status` tinyint(1) DEFAULT 0, PRI...
true
f86148a095a8a8f6f69b396bdb79cc0678dee373
SQL
supra08/discuz
/schema.sql
UTF-8
5,475
3.265625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64) -- -- Host: localhost Database: mvc -- ------------------------------------------------------ -- Server version 5.7.21-0ubuntu0.17.10.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RE...
true
9a50ad5a11d3d92ba15ca0d5ef85b53cb1aae50a
SQL
scchess/LabKey
/server/customModules/onprc_ehr/resources/queries/study/demographicsFamily.sql
UTF-8
595
3.234375
3
[]
no_license
/* * Copyright (c) 2013 LabKey Corporation * * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 */ SELECT d1.id, d1.id.parents.dam as dam, d1.id.parents.sire as sire, dam.id.parents.dam AS MaternalGranddam, dam.id.parents.sire AS MaternalGrandsire, si...
true
ffc236c7609c5209fb7bcc03af4cec618efdfe9e
SQL
cajelp1/DB_SQL
/2019_11_20.sql
UHC
8,050
4.125
4
[]
no_license
--Ư ̺ ÷ ȸ --1. DESC ̺ --2. SELECT * FROM user_tab_columns; -- prod ̺ ÷ȸ DESC prod;-- ? κ --NOT NULL = . ݵ ǥؾϴµ . --NOT NULL = ־ . -- Ʒ ߿ VARCHAR2, CHAR --> ڿ (Character).. ٵ character ڰ sentence ڿ ƴ? NUMBER -->. CLOB --> character Large OBject, ڿ Ÿ ϴ Ÿ -- VERCHAR2 : 4000byte Ѱ. -- CL...
true
8f616aecb1b9107324a64a1e5dfea181f7c75d5f
SQL
PAMCollegeShawinigan/Hippie
/Documentation/Technique/Analyse/Modele/Insert/marchandise_unite.sql
UTF-8
852
2.515625
3
[]
no_license
/* Table data export for table marchandise_unite */ /* Preserve session variables */ SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS; SET FOREIGN_KEY_CHECKS=0; /* Export data */ INSERT INTO `marchandise_unite` (`unite_id`,`description_marchandise_unite`) VALUES (1,"Lbs"); INSERT INTO `marchandise_unite` (`unite_id`,...
true
8d89ef53bfcef872859b59adc7ffb198a7ee989a
SQL
alansslva/gregory
/sql/database.sql
UTF-8
3,560
3.578125
4
[]
no_license
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema my...
true
ba1a6bf0a0eedb972c8d1b23ab65157b133016e2
SQL
denis1989java/scorebox
/src/test/resources/schema-ddl.sql
UTF-8
618
2.984375
3
[]
no_license
DROP SCHEMA IF EXISTS SCORE_BOX; CREATE SCHEMA SCORE_BOX; SET SCHEMA SCORE_BOX; CREATE TABLE ORGANIZATION ( ID INT(11) PRIMARY KEY, NAME VARCHAR(50), ); CREATE TABLE LEAGUE ( ID INT(11) PRIMARY KEY, NAME VARCHAR(50), ORGANIZATION_ID INT(11) ); CREATE TABLE TEAM ( ...
true
12018215e43e91afe46b04f9f520c5a6deef7ac1
SQL
dabarc/DabarcStrategyNewDesignMabe
/DabarcStrategyNewDesign/dabarc/Stored Procedures/sp_INFO_ReadListOfIFF_Reg.sql
UTF-8
400
2.828125
3
[]
no_license
CREATE PROCEDURE [dabarc].[sp_INFO_ReadListOfIFF_Reg] @IsRegister VARCHAR(5), @table_id INT AS BEGIN SET NOCOUNT ON; IF (@IsRegister = 0) BEGIN SELECT report_id AS Id ,name FROM dabarc.t_IFF WHERE registered = 0 and table_id = @table_id END ELSE BEGIN SELECT report_id AS Id ,name ...
true
573c31168955dba1aa78aa7b40f3d2900b660ab5
SQL
bubbletea13/medicalsys
/medical_system .sql
UTF-8
10,522
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 11, 2016 at 03:45 AM -- Server version: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
28c7ddd118a887cf327aa3fe655d3c22507b601c
SQL
himansurathi/labCourseWork
/Database Design Lab/practice understanding.sql
UTF-8
477
4.0625
4
[ "MIT" ]
permissive
SELECT B.AUTHOR,COUNT(B.POST),COUNT(C.COMMENT) FROM friendbook_sizepost B,friendbook_comment C WHERE B.ID=C.POST GROUP BY B.AUTHOR /* to get all comments and all posts of all author*/ /* SELECT A.NAME FROM friendbook_author A WHERE A.ID IN( SELECT B.AUTHOR FROM friendbook_sizepost B GROUP BY B.AUTHOR ORDER...
true
abf2f945def52057a8e41fc1800162e760c3af39
SQL
krizoeris/kailearning-system
/elearning.sql
UTF-8
13,476
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 28, 2019 at 10:50 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
32fb59fdaf1b2fddec62e359a3f1aa3f97783222
SQL
zhayh/awesome-spring-boot
/chapter-7/mybatis-pagehelper-demo/src/main/resources/message.sql
UTF-8
257
2.703125
3
[ "MIT" ]
permissive
drop table if exists message; create table message ( msg_id int not null auto_increment, msg_text varchar(32) not null, msg_summary varchar(32) default null, primary key (msg_id) )engine=InnoDB auto_increment=1 default charset=utf8
true
6eee1d71aaa0ef28975602cfe89b25b019328674
SQL
maskaro/opheme-v2
/database.sql
UTF-8
17,860
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 02, 2015 at 01:48 PM -- Server version: 5.5.43-0+deb7u1 -- PHP Version: 5.6.7-1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `opheme21` -- CREATE DATABASE IF NOT EXIS...
true
5f2b948a3ec21bc2feace98d8e6e96cf624747dc
SQL
chanipsophie/MusicAppCS360TermProject
/TeamProject_view.sql
UTF-8
938
3.71875
4
[]
no_license
CREATE VIEW PlaylistView AS SELECT TOP (100) CustomerUsername As USER_NAME, CustomerFirstName + ' ' + CustomerLastName AS NAME, CustomerGender AS Gender, CustomerAge AS Age, CustomerRegistration AS Registration_Date, PlaylistName, PlaylistTracks, PlaylistCreatedDate AS Create_At FROM Customer c, Playlist p WHERE c....
true
b246d8422a539c00560ae7aba7a3b3b1cee16365
SQL
GoPlaceIn/siacc
/sql/Replicacao_caso.sql
UTF-8
1,352
2.84375
3
[]
no_license
INSERT INTO mescaso(Nome, Descricao, DtCadastro, CodNivelDif, CodArea, Ativo, Publicado, Sexo, Idade, IDPaciente, Cid10, CodAutor, Publicado, Etnia, NomePaciente, ImgPaciente, Excluido) select Nome ,Descricao ,current_timestamp as DtCadastro ,CodNivelDif ,CodArea ,1 as Ativo ,0 as Publicado ,Sexo ,Idade ,IDP...
true
b27840c97c5a26d227eff0b22d4557123b87d690
SQL
Harinur123/UTS_Pak_Wahyu
/Restaurant_Baso.sql
UTF-8
5,608
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Mar 31, 2020 at 01:32 PM -- Server version: 10.1.44-MariaDB-0ubuntu0.18.04.1 -- PHP Version: 7.2.24-0ubuntu0.18.04.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET...
true
f33339e50393c679c49485425e176150d10478e5
SQL
newkayak12/sql-learn
/Task/t24.02.21.sql
UTF-8
8,143
3.765625
4
[]
no_license
--ADDITIONAL SELECT -OPTION --1 SELECT STUDENT_NAME AS "학생 이름", STUDENT_ADDRESS AS "학생 주소" FROM TB_STUDENT ORDER BY 1; --2 SELECT STUDENT_NAME , STUDENT_SSN FROM TB_STUDENT ORDER BY 2 DESC; --3 SELECT STUDENT_NAME, STUDENT_NO, STUDENT_ADDRESS FROM TB_STUDENT WHERE SUBSTR(STUDENT_ADDRESS, 1,3) IN ('경기도', '강원도') AND...
true
cae2bdec159ae749658e80c4a08395e104c9915f
SQL
NeverMoreShadowFiend/serv_source_sanguomobile2
/app/db_zhcn/create_static/Alliance_Match_chest_drop.sql
UTF-8
462
2.734375
3
[]
no_license
-- -- Table structure for table `Alliance_Match_chest_drop` -- DROP TABLE IF EXISTS `Alliance_Match_chest_drop`; CREATE TABLE IF NOT EXISTS `Alliance_Match_chest_drop` ( `id` int(11) NOT NULL COMMENT '作者: 联盟名次', `rank` int(11) COMMENT '作者: 联盟获得的名次', `item_id` int(11) COMMENT '作者: 物品id', `max_count` int(11) COMMENT '作者...
true
f7968c3d27a3cc0762543dbaa7a609a81acff402
SQL
vinay-singh/hire
/hire-internet/code/build/build-db/output_hire.sql
UTF-8
800
3.078125
3
[]
no_license
-- START CHANGE SCRIPT #100000000040: 100000000040_DML_JOB_SEEKER_TABLE.sql /* Tables for JobSeeker */ create table job_seeker( ID NUMBER(20) NOT NULL , owner_user_id NUMBER(20), created_by varchar2(50), created_date TIMESTAMP DEFAULT sysdate, updated_by varchar2(50), updated_date TIMESTAMP, deleted number(1), USER_...
true
69bc37242382f7b459dc85bc2173d6e48f1758e0
SQL
niznich/ITCC14_FinalProject
/student_db (1).sql
UTF-8
2,175
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 10, 2020 at 02:57 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
b56a7cd270c738f7c276f8803789edf6652712fc
SQL
shawnsp/clowdr
/hasura/migrations/1621286166776_fixup_eventStart_eventEnd_events/up.sql
UTF-8
1,164
4.09375
4
[ "BSD-3-Clause" ]
permissive
WITH hasuraEvents as ( SELECT DISTINCT ON (event_url, eventId) *, hasuraEvent.webhook_conf::text as event_url, CAST(hasuraEvent.payload->>'updatedAt' as bigint) as the_timestamp, CAST(hasuraEvent.payload->>'eventId' as uuid) as eventId FROM hdb_catalog.hdb_scheduled_events AS hasuraEvent WHERE h...
true
6d275681c8662de0858d28af4478be5f3e87dd69
SQL
Trung-IoT2020/timNhaTro
/Đồ Án/DATABASE/DANGNHAP.sql
UTF-8
3,885
3.390625
3
[]
no_license
 create table KHACHHANG ( SDT_KHACHHANG INT PRIMARY KEY , id_KHACHHANG VARCHAR(25) NOT NULL, pass_KHACHHANG VARCHAR(25) NOT NULL, HOTEN_KHACHHANG NVARCHAR(30) NOT NULL DEFAULT N'CHƯA CÓ TÊN', NAMSINH_KHACHHANG DATETIME NOT NULL DEFAULT N'CHƯA NHẬP TUỔI', CMND_KHACHHANG INT NOT NULL DEFAULT N'CHƯA CÓ CMND', DIAC...
true
62049345662c64bcd3678d1c5a0c801c64a9c1f7
SQL
dhamotharang/SvnGit
/Core/Database/StoredProcedure/Create Scripts/InserScript_GlobalCodes_CLAIMLINESACTION_SWMBH-Enahancement#591.sql
UTF-8
6,118
2.84375
3
[]
no_license
/******************************************************************************** -- -- Copyright: Streamline Healthcare Solutions -- Author: K. Soujanya -- CreatedDate: 30/oct/2018 -- Purpose: To insert a new entry into Globalcodes for the GlobalCodeCategory 'CLAIMLINESACTION',Task #591 - SWMBH - Enhanc...
true
503baf72d931bda8ed035e43c983d9371bc02b9f
SQL
janderfg/sql
/coalesce.sql
UTF-8
475
2.90625
3
[]
no_license
/* COALESCE Return the first non-null value in a list of arguments */ SELECT id, first_name, email, state, COALESCE(state, 'Ops, estado nulo') AS state_modificado FROM e_commerce.customers; SELECT id, first_name, email, state, number, additionals, COALESCE(CAST(number A...
true
305665f860f5e8a0a9357e4bd7bb8917d1fad495
SQL
Oliviawoow/BD
/Test1Lab.sql
UTF-8
1,246
3.296875
3
[]
no_license
TEST LAB 1 -- met 1 select ename, sal||' si bonus '|| (comm + 0.25*sal) as "bonus", deptno, hiredate from emp where (deptno = &deptno) and (hiredate between '1-JAN-1981' and '1-APR-1981') and ((ename like 'A%') or (ename like 'B%') or (ename like 'C%') or (ename like 'D%') or (ename like 'E%')); -- met 2 select...
true
712839fce8e1714a1f66c1e6296bbc909e024c7b
SQL
nicolassnider/ms_sql_server_2019_development
/GestionTienda/09 having.sql
UTF-8
421
3.84375
4
[]
no_license
use Facturas select marca, nombre, sum(precio) as totalPrecio, count(*) as numeroProductos, avg(precio) as mediaPRecio from Producto where marca in ('Samsung', 'Intel', 'HP','ElGato') group by marca, nombre having count(*)>1 order by marca select marca as Marca, min(precio) as minprecio, max(precio) as maxpr...
true
78b9209ef5182b4e3e68228e3699291d8af6a1b9
SQL
bembel1993/MySQL_LABS
/LABS/+SQL3.sql
WINDOWS-1251
8,345
4
4
[]
no_license
--3.1. . select name, hire_date from salesreps; --3.2. , . select * from orders where order_date > '2008-01-12'; --3.3. . select office, region from offices; --3.4. , . select DESCRIPTION, price from products where price > '1875.00'; --3.5. . select cust, mfr from orders where cu...
true
85acfcfb80291327e679d6d88981991634d1c5ac
SQL
forkmaybe/GameTradingWebsite
/Databases/Database.sql
UTF-8
11,765
3.109375
3
[]
no_license
DROP DATABASE IF EXISTS GameHub; CREATE DATABASE IF NOT EXISTS GameHub; USE GameHub; CREATE TABLE IF NOT EXISTS Users( UserId INTEGER NOT NULL AUTO_INCREMENT, Username VARCHAR(20) UNIQUE NOT NULL, Password VARCHAR(200) NOT NULL, Balance DOUBLE(7,2) NOT NULL, FirstName VARCHAR(20) NOT NULL, LastName VARCHAR...
true
bbcdd22cb7f6cc677444d26d9fa0faf440cd543b
SQL
andrehideki/jpa-mapper-gen
/h2_start.sql
UTF-8
308
3.359375
3
[]
no_license
CREATE TABLE person ( name VARCHAR(255) PRIMARY KEY NOT NULL, age INT NOT NULL ); CREATE TABLE job ( name VARCHAR(255) PRIMARY KEY NOT NULL, salary DOUBLE NOT NULL ); CREATE TABLE person_job ( person_name VARCHAR(255) NOT NULL, job_name VARCHAR(255) NOT NULL, PRIMARY KEY (person_name, job_name) );
true
0080e3a15be6e8c0f3c2b5ac770e75ca4633e25b
SQL
edward638/datastone
/db/begin.sql
UTF-8
3,878
4.28125
4
[]
no_license
-- player_status table (Eddie makes this in Flask, no need to use this CREATE TABLE statement) CREATE TABLE player_status (player_id DECIMAL(4,0) NOT NULL REFERENCES player_data.id PRIMARY KEY, name VARCHAR(256) NOT NULL REFERENCES player_data.name, score_avg DECIMAL(4,9), NOT NULL, score_sd DECIMAL(4,9) NOT NULL, ...
true
6c3e1191f479c659e812e726491aba56188fdd27
SQL
hoodlake/ymxx-sync
/Enterprise/Bytter/Sql_Script/VP6584_ORCL.sql
GB18030
993
3.875
4
[]
no_license
-- ޸ڣ20120925 -- ޸ˣֻ -- ޸ݣݱ˻ʱδģ INSERT INTO fc_out_online_ledger (ACCOUNT, tally_cnt, check_cnt,online_balance,check_balance) SELECT dtl.ACCOUNT, SUM(CASE WHEN book.status > 11 AND book.status NOT IN (22,23,30,31) THEN 1 ELSE 0 END) tally_cnt, SUM(CASE WHEN book.status IN (13,33,20,21,22) THEN 1 ELSE 0 END) check_cnt,...
true
36b7f90bbb8a2db2fc4ac583f4f86ab16c99bb90
SQL
kozakjefferson/bigquery-etl
/udf/extract_document_type.sql
UTF-8
394
3.015625
3
[]
no_license
/* Extract the document type from a table name e.g. _TABLE_SUFFIX. */ CREATE OR REPLACE FUNCTION udf.extract_document_type(table_name STRING) AS (REGEXP_EXTRACT(table_name, r"^(.*)_v.*")); -- Tests SELECT assert_equals("type", udf.extract_document_type("type_v1")), assert_equals( "namespace__namespace_type", ...
true
b8154b707b7068fb860253a30a86b3b1c79579ea
SQL
pciio1957/Java
/webexp/src/main/java/Database/a01_exp/0721exp.sql
UTF-8
4,985
4.28125
4
[]
no_license
/* 전날 정리문제 1. 함수 종속성의 개념을 js에서 아는 function의 예로 기술하세요. - 풀이 함수 종속성 : 데이터가 특정 함수에 종속되어 매개변수로 입력된 데이터가 결과값에 종속여부를 나타낸다 function plus(num01, num02) { return num01+num02; } -> plus(25,5) 메소드 실행 => 30 결과 출력 25, 5라는 데이터는 30을 만들기 위한 종속적인 데이터이다 ex) 이름, 나이, 사는 곳, 생년월일로 된 인적사항으로 => 주민번호를 조합할 수 있고 종속적인 데이터이다. 그러므...
true
d713b1af67b47c1685b2cc6cae4e5c6485daa578
SQL
ChrisJo93/techie-calendar
/database.sql
UTF-8
322
2.65625
3
[]
no_license
CREATE TABLE "events" ( "id" SERIAL PRIMARY KEY, "title" VARCHAR NOT NULL, "start" DATE NOT NULL, "end" DATE NOT NULL, "desc" VARCHAR, "allDay" BOOLEAN ); INSERT INTO "events" ("title" , "start" , "end" , "desc", "allDay") VALUES ('Nuclear Physics', '1-14-2021' , '1-20-2021', 'Studying the Magic of Big Booms', 'false'...
true
27ae4bfb9410fa8ee1bc45d88d8154701c1a7ec2
SQL
jasonzou/Thesora
/vocbench/26.sql
UTF-8
997
2.9375
3
[ "Apache-2.0" ]
permissive
DROP TABLE IF EXISTS `users_ontology`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `users_ontology` ( `user_id` int(7) NOT NULL DEFAULT '0', `ontology_id` int(11) NOT NULL DEFAULT '0', `status` int(1) NOT NULL DEFAULT '0', PRIMA...
true
833a7968b7aabb33273f59984247df964c3ee411
SQL
danielabrantes/site
/etc/sql/db.sql
UTF-8
5,858
2.625
3
[]
no_license
drop database if exists `site`; create database `site`character set utf8 collate utf8_unicode_ci; use 'site'; create table `agente` ( `id` int unsigned not null auto_increment, `empresa` varchar(255) null default null collate 'utf8_unicode_ci', `nif` varchar(255) null default null collate 'utf8_unicode_ci', ...
true
b72e44fd2ed1dbbcdcac50ec21e974b9e97ed5d6
SQL
MammothGrowth/dbt-facebook-ads-segment
/models/fb_ad_insights.sql
UTF-8
330
2.671875
3
[]
no_license
{{ config( alias="insights" ) }} select date_start::date as date_day, nullif(ad_id,'') as ad_id, impressions, clicks, unique_clicks, spend, frequency, reach, link_clicks, inline_post_engagements from {{ source('facebook_ads', 'insights') }} WHERE nullif(ad_id,'') is n...
true
b94517cc933e4c86476f2faaa7e0b13f29d27428
SQL
belyash23/internship
/php/7 - database/gallery.sql
UTF-8
1,377
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Июн 01 2021 г., 09:36 -- Версия сервера: 8.0.19 -- Версия PHP: 7.4.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
true
cf332c7fa8d501cbf9b0bd571a32a93ab698e227
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/Scripts Complementarios/IAXIS-4979/V2/Punto6.sql
UTF-8
2,021
2.671875
3
[]
no_license
DECLARE BEGIN FOR C IN (select * from garanpro g where g.cramo = 802 AND g.cmodali = 1 AND g.ctipseg = 2 AND g.ccolect = 0 AND g.cactivi = 0) LOOP INSERT INTO GARANPROMODALIDAD (CACTIVI, CCAPDEF, CCOLECT, CDEFECTO, CGARANT, CMODALI, CMODALIDAD, CRAMO, CTIPGAR, CTIPSEG, ICAPDEF) VALUES ( 0, NUL...
true
17c5277eecfd33913e09316797a7a2bfcc7a2fa6
SQL
zhaosijun/familyTreeDoc
/新建文件夹/mySql_seq.sql
GB18030
1,699
3.65625
4
[ "Apache-2.0" ]
permissive
DROP TABLE IF EXISTS sequence; CREATE TABLE sequence ( name VARCHAR(50) NOT NULL, current_value INT NOT NULL, increment INT NOT NULL DEFAULT 1, PRIMARY KEY (name) ) ENGINE=InnoDB; DROP FUNCTION IF EXISTS currval; DELIMITER $ CREATE FUNCTION currval (seq_name VARCHAR(50)) RETURNS IN...
true
8118be7a18034772c0a2aee0a3971d2c8e7d9e72
SQL
pavantejam/SQL
/sql-ex-ru/q106.sql
MacCentralEurope
1,070
3.84375
4
[]
no_license
/* Exercise: 101 (qwrqwr: 2013-03-29) The Printer table is sorted by the code field in ascending order. The ordered rows form groups: the first group starts with the first row, Each row having color=n begins a new group, the groups of rows dont overlap. For each group, determine the maximum value of the model field...
true
ecd5aa960d6ad7ab0b56f3ef38d9bca42064e9e5
SQL
suleymansevimli/setup-wizard-class
/test.sql
UTF-8
2,536
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Anamakine: 127.0.0.1 -- Üretim Zamanı: 15 Ağu 2018, 23:19:07 -- Sunucu sürümü: 10.1.34-MariaDB -- PHP Sürümü: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
true
5574311dad4534a5bd4ee1af677dd4e71f267e9f
SQL
david-perez/tfg-code
/sql_setup/create_materialized_view_validation_set_top10_labels_patients_and_diagnoses.sql
UTF-8
735
3.546875
4
[]
no_license
CREATE MATERIALIZED VIEW validation_set_top10_labels_patients_and_diagnoses AS ( WITH patients_validation_set_with_top10_labels_who_have_notes AS ( SELECT DISTINCT subject_id FROM validation_set_top10_labels ORDER BY subject_id ASC ) SELECT patients_validation_set_with_top10_labels_who_hav...
true
f19b65ea6706e0a8c0cdf059119ff530ffdff288
SQL
kit-data-manager/base
/Authorization/src/main/resources/createview.sql
UTF-8
1,117
3.953125
4
[ "Apache-2.0" ]
permissive
-- Create script for KIT Data Manager Authorization views combining. -- These views are used to bring users, groups, resources and special grants into relation to make the results -- accessible easily via Java entities. CREATE VIEW FilterHelper_hack AS (SELECT ut.USERID as USERID, gt.GROUPID as GROUPID, grst.RESOURCE_...
true
56fa274dab1e400d1000a1be293945d439da8eb8
SQL
quartznet/quartznet
/docker/oracle/tables_oracle.sql
UTF-8
7,295
3.328125
3
[ "Apache-2.0" ]
permissive
-- -- A hint submitted by a user: Oracle DB MUST be created as "shared" and the -- job_queue_processes parameter must be greater than 2 -- However, these settings are pretty much standard after any -- Oracle install, so most users need not worry about this. -- -- Many other users (including the primary author of Quar...
true
32f39d69b6a7b9024c68d2b37a33fd0cddd21511
SQL
kseniaxen/php-book-2020-api
/books_as_a_gift_v3.sql
UTF-8
6,376
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Дек 01 2020 г., 12:43 -- Версия сервера: 5.7.20 -- Версия PHP: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTE...
true
1107497611ee5545227a0e2d708008bbd83c883d
SQL
geeksilva97/construtor-de-site
/proj_jp.sql
UTF-8
5,454
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 05, 2016 at 04:20 -- Server version: 10.1.13-MariaDB -- PHP Version: 7.0.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
b33d2d77cfb707b847b7141bc63c4e6a48941f0b
SQL
phamquanganh31101998/Project3
/project3_web.sql
UTF-8
17,452
3.21875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1:3306 -- Thời gian đã tạo: Th5 13, 2019 lúc 02:08 AM -- Phiên bản máy phục vụ: 5.7.24 -- Phiên bản PHP: 7.2.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!401...
true
878c0c137415dca2991b078bc3cb00eba8d6d67f
SQL
shashwattyagi007/Creating-procedures-to-find-the-moneyness-and-payoff-for-the-stock-options
/procedure specifc.sql
UTF-8
1,477
3.40625
3
[]
no_license
drop table spec; Call Specify("MSFT",110,"Call","2018-01-19"); DROP procedure Specify; DELIMITER $ CREATE PROCEDURE specify (In Tic varchar(20),In k DOUBLE, In opt varchar(20), In Exp DATE) BEGIN if (Tic = "MSFT" && opt = "Call") then Create Table Spec (Ticker VARCHAR(20),Strike DOUBLE, Option_Type VARCHAR(20),Ex...
true
368fb9068a45867de7d44f63f61e6885d475e531
SQL
davitron2/pw20201mvc
/modeloDb.sql
UTF-8
6,205
2.953125
3
[]
no_license
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTI...
true
439d89e9c8f625c9efa0720a5c97a8cec4b7966f
SQL
L1nwatch/Mac-Python-3.X
/Python项目开发实战/第3章 管理数据/3.4 从LendyDB迁移到SQL数据库/3.4.2 创建LendyDB SQL数据库/lendydb.sql
UTF-8
544
3.421875
3
[]
no_license
PRAGMA Foreign_Keys=True; drop table loan; drop table item; drop table member; create table member ( ID INTEGER PRIMARY KEY, Name TEXT NOT NULL, Email TEXT); create table item ( ID INTEGER PRIMARY KEY, Name TEXT NOT NULL, Description TEXT NOT NULL, OwnerID INTEGER NOT NULL REFERENCES member(ID), Price NUMERIC, Cond...
true
2bc5b92b6499b92fe2b60bf32d41d3e173ed843f
SQL
Deewens/Run4Exp
/backend/src/test/resources/data.sql
UTF-8
2,354
3.234375
3
[]
no_license
/* Admin */ INSERT INTO user VALUES (1, null, 'ilya@gmail.com', 'Ukhanov', 'Ilya', '$2a$12$CoF9BPzKH2wUEYUGlDyvK.T.jT.nIV52Mf/tGoXjv0WWDXP.IsIrS'); INSERT INTO user_roles VALUES (1, 1); INSERT INTO user_roles VALUES (1, 0); /* Simple user */ INSERT INTO user VALUES (2, null, 'ilya2@gmail.com', 'Ukhanov2', 'Ilya2', '$2...
true
1b2921f6528ed8370556cc7399aa17df45bdeb22
SQL
FabianMosquera/holbertonschool-web_back_end
/0x0C-MySQL_Advanced/3-glam_rock.sql
UTF-8
225
3.59375
4
[]
no_license
-- script that lists all bands with Glam rock as their main style, ranked by their longevity SELECT band_name, IFNULL(split, 2020) - formed AS lifespan FROM metal_bands WHERE style LIKE '%Glam rock%' ORDER BY lifespan DESC;
true
0081e282809b5934cda06214c0cb9f3cf8a6ab89
SQL
conormuldoon/unison
/back-end/src/main/resources/schema.sql
UTF-8
2,644
2.96875
3
[ "MIT" ]
permissive
create table if not exists Location ( name varchar(255) not null, geom GEOMETRY, user_userName varchar(255), primary key (name) ); create table if not exists HourlyPrecipitation ( fromHour timestamp not null, maxvalue double, minvalue double, ...
true
9fb9abc14c5f7d1afcdfc1c7e17943f4533da7e3
SQL
sion007005/book-store
/domain/src/main/resources/db/migration/V1__create_table.sql
UTF-8
433
2.734375
3
[]
no_license
DROP TABLE IF EXISTS `book_store`.`sample`; CREATE TABLE `book_store`.`sample` ( `id` BIGINT(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(45) NOT NULL, `email` VARCHAR(45) NOT NULL, `description` VARCHAR(500) NULL, `created_at` DATETIME NOT NULL, `created_by` VARCHAR(45) NOT NULL, `modified_at` DATETIME NO...
true
9e981dcbe18f3b1798a773794aeb64ce310435fc
SQL
regisseur69/exam22-01
/immobilier_jean_luc.sql
UTF-8
1,393
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3308 -- Généré le : mar. 22 jan. 2019 à 16:00 -- Version du serveur : 5.7.23 -- Version de PHP : 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
true
7a2bcc70b2a7e9b7b3c80744191e0d6de7f1c166
SQL
tkilias/script-languages
/tests/lang/python/get_connection.sql
UTF-8
589
2.625
3
[ "MIT" ]
permissive
create or replace python scalar script print_connection(conn varchar (1000)) emits(type varchar(200), addr varchar(2000000), usr varchar(2000000), pwd varchar(2000000)) as def run(ctx): c = exa.get_connection(ctx.conn) ctx.emit( c.type, c.address, c.user, c.password ) / create or replace python set...
true
bbcf2f2f828819960a24f3343d18b788f2eaf8d2
SQL
gxa/gxa
/sql/remove_whitespace_pv_duplicates.sql
UTF-8
9,643
4.40625
4
[ "Apache-2.0" ]
permissive
-- This script serves to remove property value white space duplicates - i.e. property values that differ only by a white space. -- We achieve this by replacing all double spaces with a single one and then removing this created property value duplicates. -- Note that before duplicates can be removed from A2_*propertyval...
true
8aa659fe26daf69d731a3282395d15b1628404ef
SQL
StanimirMirchev/Databases
/Homework2/Problem12.sql
UTF-8
280
3.8125
4
[]
no_license
--Problem 12.Write a SQL query to find all employees along with their managers. SELECT e.FirstName + ' ' + e.LastName AS Emplouees, ISNULL(m.FirstName + ' ' + m.LastName, 'no manager') AS Manager FROM Employees e LEFT OUTER JOIN Employees m ON e.ManagerID = m.EmployeeID
true
d58f3cb19a6034b015ea1e77ff39479876ee6ae7
SQL
Moncker/Paradigmas
/script.sql
UTF-8
2,186
3.875
4
[]
no_license
-- tables -- Table: Favorito CREATE TABLE Favorito ( coordenadaX float NOT NULL, coordenadaY float NOT NULL, CONSTRAINT Favorito_pk PRIMARY KEY (coordenadaX,coordenadaY), CONSTRAINT Favorito_Localizacion FOREIGN KEY (coordenadaX,coordenadaY) REFERENCES Localizacion (coordenadaX,coordenadaY) ON UPDA...
true
5548c1e5e2d4091abd2134c0dbd10b6b511b3de1
SQL
ErykKrupa/bank-database
/src/main/resources/queries/debit_card.sql
UTF-8
346
3.09375
3
[]
no_license
drop table if exists debit_card; create table debit_card ( number char(16) primary key, account_number char(26) unique not null, card_verification char(3) not null, expiry_date date not null, constraint foreign key (account_number) references client (account_number) );...
true
59783b63d308d140647025fae352cc972a48a0da
SQL
sxinger/grouse
/etl_i2b2/sql_scripts/cms_enr_dstats.sql
UTF-8
16,693
3.90625
4
[ "MIT" ]
permissive
/** cms_enr_dstats - Descriptive statistics for CMS Enrollment. We build a PCORNet CDM style ENROLLMENT table and compute descriptive statistics. To distinguish enrollments for part AB, A, B, or D, use ENR_BASIS or RAW_BASIS as follows: select coverage, count(*) from ( select case when enr_basis = 'I' then raw_basis...
true