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
106ca5815624a2f20bf942bb749175e34a47d6ce
SQL
FATIZ-CH/sinhogar
/SinHogar/BDD/projet.sql
UTF-8
9,523
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : ven. 22 mai 2020 à 21:24 -- Version du serveur : 10.4.10-MariaDB -- Version de PHP : 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
true
07dc7cf702249299121600d0de10981450b05c2a
SQL
Kronos11/AnhSwgManagerBundle
/Resources/sql/functions/sf_CharacterNameInUseCheck.sql
UTF-8
445
3.046875
3
[]
no_license
DROP FUNCTION IF EXISTS `sf_CharacterNameInUseCheck`; CREATE FUNCTION `sf_CharacterNameInUseCheck`(start_firstname CHAR(32)) RETURNS int(11) BEGIN DECLARE check_name char(32); DECLARE check_value INT(11); DECLARE error_code INT(11); SET error_code = 666; SELECT COUNT(*) from characters where LOWER(firstname) L...
true
b1bcf4ba960990c1ac20d296e4f40efc640fe59d
SQL
znedim11/pizzaShop
/id14463485_pizza.sql
UTF-8
2,066
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 26, 2020 at 05:17 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
true
8c94467831b536e67784d81757c793d321cba834
SQL
AlfredGerke/ZABonline
/source/script/script/create_implementation.sql
ISO-8859-1
4,680
3.375
3
[ "MIT" ]
permissive
/******************************************************************************* /* Author: Alfred Gerke (AGE) /* Date: 2013-12-10 /* Purpose: Erstellt alle DB-Objecte (SPs) welche nur als Interface vorhanden...
true
18eb50571d20cc2d90ade6cc43fa74036600bf72
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day24/select1641.sql
UTF-8
191
2.703125
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-23T16:41:00Z' AND timestamp<'2017-11-24T16:41:00Z' AND SENSOR_ID='39014de7_b857_494a_84af_eaef79ffa12a'
true
3a7e72265068edebd7738626a444d2c0fcb39631
SQL
KhangNguyenKun/C0920G1_NguyenLePhucKhang
/Module_3/src/_1_SQL/practise/bai_3.sql
UTF-8
775
3.5625
4
[]
no_license
create database practise_3; use practise_3; create table productlines ( productLine int primary key, textDescription varchar(200) , htmlDescription varchar(200), image varchar(1000) ); create table products ( productCode int primary key, productName varchar(100) , productLine varchar(100) , productScale varchar(100) ,...
true
a1bc4637e4f8d8ae8e9422be5d4407905f4b2725
SQL
cray33/jnom
/install/db/schema.sql
UTF-8
5,457
3.171875
3
[]
no_license
CREATE EXTENSION hstore; CREATE SCHEMA jnom AUTHORIZATION jnom; CREATE TABLE jnom.administrative_boundary ( osm_id int8 NOT NULL, "name" varchar NOT NULL, tags hstore NULL, admin_level int2 NOT NULL, parent_osm_id int8 NULL, lat float8 NULL, lon float8 NULL, way geometry NULL, CONS...
true
5b74e913c217598ddf4bab10934fb75442965f9d
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day16/select1531.sql
UTF-8
177
2.65625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-15T15:31:00Z' AND timestamp<'2017-11-16T15:31:00Z' AND temperature>=3 AND temperature<=45
true
a6f6a0c4730abb87eed377916c2f61b693aa2472
SQL
PrinceLuo/group01
/sql/create.sql
UTF-8
4,147
3.671875
4
[]
no_license
drop table detail; drop table discount; drop table booking; drop table room; drop table room_type; drop table hotel; drop table staff; drop table customer; drop table peak; --drop table credit_card; --staff information create table staff( id int not null generated always as identity, username varchar(20) not null u...
true
016b8ebc994e91ac75a7bcc2d88727a4d8744f64
SQL
hrithikv/authentise-engineering-rest-api
/migrations/initial/sqls/20200612185930-add-likes-tb-up.sql
UTF-8
155
2.828125
3
[]
no_license
CREATE TABLE likes ( id SERIAL PRIMARY KEY, user_id INTEGER REFERENCES users, liked_by INTEGER REFERENCES users, created_at TIMESTAMPTZ );
true
df05b0b1188976ae1136c35cdd1aa6ef517064de
SQL
viszi/codes
/CodeWars/8kyu/SQL/006-beginner-series-number-2-clock.sql
UTF-8
306
3.265625
3
[ "MIT" ]
permissive
-- https://www.codewars.com/kata/55f9bca8ecaa9eac7100004a -- Clock shows 'h' hours, 'm' minutes and 's' seconds after midnight. -- Your task is to make 'Past' function which returns time converted to milliseconds. -- {h: 0, m: 1, s: 1} => res: 61000 SELECT (h * 3600 + m * 60 + s) * 1000 AS res FROM past;
true
7a3bcd7ad639ae4c1becb4a17152261d568edd29
SQL
snoow/swganh_database
/swganh_galaxy/procedures/sp_GetSystemPlayer.sql
UTF-8
3,351
3.1875
3
[]
no_license
/* --------------------------------------------------------------------------------------- This source file is part of SWG:ANH (Star Wars Galaxies - A New Hope - Server Emulator) For more information, visit http://www.swganh.com Copyright (c) 2006 - 2012 The SWG:ANH Team ---------------------------------------------...
true
c65cb0556a74c7eb779fbdb9e140dc086c5b310b
SQL
gladiopeace/digital-data-syn
/documents/oms/TB_PUBKG.SQL
UTF-8
1,849
3.296875
3
[]
no_license
/* ================================================================================ 表结构代码:TB_PUBKG 表结构名称:货道表 表结构目的: ================================================================================ */ drop sequence SEQ_TB_PUBKG; drop index AK_TB_PUBKG; drop table TB_PUBKG; create table TB_PUBKG ( PUBKG_ID ...
true
b067edce259981059325290f76d81adf34ba2e06
SQL
thanhtinhpas1/UBER_TUTOR_API
/uber_tutor.sql
UTF-8
17,258
3.484375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : PTUDWNC Source Server Type : MySQL Source Server Version : 80013 Source Host : remotemysql.com:3306 Source Schema : SiLmQ4Ybi8 Target Server Type : MySQL Target Server Version : 80013 File Encoding : 65001 Date: 07/12/...
true
b5923e8d87e897887672d2a912ea50351643a9c0
SQL
CSCI3395-F17/daily-code-mmaryyoung
/answers.sql
UTF-8
2,490
4
4
[]
no_license
#1 CSCI1320 26 select courseid, count(quizid) as c from quiz_course_close_assoc group by courseid order by c DESC limit 1; select * from courses where courseid = 12; #2 CSCI1321 65 select qc.courseid, count(*) as c from ( select quizid, func_question_id from function_assoc union all select quizid, lam...
true
db4fcdaa9675924418d3a94a8f8e83db5f8c93a6
SQL
furrycz/furry.cz-v2
/sql/revisions/2/Writings.sql
UTF-8
327
2.65625
3
[]
no_license
ALTER TABLE `Writings` DROP FOREIGN KEY `Writings_ibfk_1`, ADD FOREIGN KEY (`ContentId`) REFERENCES `Content` (`Id`) ON DELETE NO ACTION ON UPDATE NO ACTION; ALTER TABLE `Writings` DROP FOREIGN KEY `Writings_ibfk_2`, ADD FOREIGN KEY (`CategoryId`) REFERENCES `WritingCategories` (`Id`) ON DELETE NO ACTION ON UPDATE NO ...
true
42827b9f9af9d0c10705d66b6373905286ff906a
SQL
kucukbahadir/Codesignal-Solutions
/database/23-marketReport.sql
UTF-8
141
2.6875
3
[]
no_license
SELECT COALESCE(country,'Total:') AS country, COUNT(competitor) AS competitors FROM foreignCompetitors GROUP BY country WITH rollup;
true
366174e2612d8c5a3638dc0ff0b90e1f42ebb05f
SQL
mjauquer/javiera
/sql-scripts/create_tables.mysql
UTF-8
15,346
3.265625
3
[]
no_license
CREATE TABLE IF NOT EXISTS archive_file ( -- #CORE id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT, file_id MEDIUMINT UNSIGNED NOT NULL REFERENCES file(id), PRIMARY KEY (id)) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci'; CREATE TABLE IF NOT EXISTS archive_location ( -- #C...
true
46b79a4b8dac65995b33f2cd8edaffb26284f21f
SQL
microsoftjulius/Church_System
/church (7).sql
UTF-8
20,677
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Oct 12, 2019 at 06:44 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
39766eb9da716b011527d22fecef527dea535a6e
SQL
Z0etrope/FIT3171--Database-SQL
/Tuts/Tut07/week7_schema.sql
UTF-8
1,313
3.59375
4
[]
no_license
-- STUDENT ID : 28083148 -- STUDENT NAME : JASON SETIAWAN SET ECHO ON SPOOL week7_schema_output.txt DROP TABLE unit cascade constraints PURGE; CREATE TABLE unit ( unit_code CHAR(7) NOT NULL, unit_name VARCHAR(50) NOT NULL ) ; ALTER TABLE unit ADD constraint unit_pk PRIMARY KEY (unit_code); ...
true
0f964f5ab3957140eba21a74eccd4ff52247e5e0
SQL
purnachand99/Spring-Boot-2.X
/spring-boot-docker/springboot.sql
UTF-8
856
2.59375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : mysql Source Server Version : 50152 Source Host : localhost:3306 Source Database : springboot Target Server Type : MYSQL Target Server Version : 50152 File Encoding : 65001 Date: 2018-11-30 14:41:31 */ SET FOREIGN_KEY_CHECKS=0; -- ---...
true
d7b8186bb454478c95d88f001a7407fbd81e45b8
SQL
kaspervh/Notable
/notes.sql
UTF-8
3,257
3.125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.23, for Linux (x86_64) -- -- Host: localhost Database: notes -- ------------------------------------------------------ -- Server version 5.7.23-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_...
true
3fd94f33dafde073d98d1fcd273dce2269184735
SQL
Elis0317/SQL
/SQL/SQL-7-1.sql
SHIFT_JIS
2,419
4.21875
4
[]
no_license
/***************************** WZ R[h̎lZ W: R[h̏W e[uAr[ENG̎sʂȂ *****************************/ CREATE TABLE Shohin2 (shohin_id CHAR(4) NOT NULL, shohin_mei VARCHAR(100) NOT NULL, shohin_bunrui VARCHAR(32) NOT NULL, hanbai_tanka INTEGER , shiire_tanka INTEGER , torokubi DATE ...
true
5b2ac818c4163bccb8de5ac6cc4d97b6a63f7ba6
SQL
boudourm/ms-sql-server-dba
/labs/lab 2 - Récapitulatif sur l'ordre SELECT monotable et exercices/Exercice3.sql
ISO-8859-1
1,953
3.9375
4
[]
no_license
/*===================================================== REQUTE 1 :Afficher Nom , Prenom , Fonction , Salaire des tous es Employs ayant 1 salaire entre 2500 et 3500 =====================================================*/ SELECT Nom , Prenom , Fonction , Salaire FROM EMPLOYES WHERE Salaire BETWEEN 2500 AND 35...
true
acc856b4d6de1bacafbe273fecfb9c32868b039e
SQL
lzqsuda/fish
/code/src/main/resources/ddml/tb9101.sql
UTF-8
789
2.796875
3
[]
no_license
drop table if exists `tb9101`; create table `tb9101`( `employee_no` varchar(60) comment '员工编号' , `password` varchar(60) comment '密码' , `email` varchar(60) comment '电子邮箱' , `name` varchar(60) comment '姓名' , `department` varchar(60) comment '部门' , `id` ...
true
eba34cb4426380d0527979497babbf8353c08403
SQL
fajarfyt/penjadwalan
/database/penjadwalan.sql
UTF-8
3,698
3.09375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 09 Jun 2020 pada 14.05 -- Versi server: 10.4.8-MariaDB -- Versi PHP: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
3b57c65b77240ffbde8d60344a08a01be3d96341
SQL
jeromanm/kronos
/functions/custom-made/persona/persona$act_dat_basi$53237$biz.sql
UTF-8
1,080
2.609375
3
[]
no_license
create or replace function persona$act_dat_basi$53237$biz(x$super number, x$persona number, x$apellidos nvarchar2, x$nombres nvarchar2, x$fecha_nacimiento date, x$lugar_nacimiento nvarchar2, x$sexo number, x$estado_civil number, x$paraguayo varchar2) return num...
true
b9f44b273d6593555fb3c3927a12b9325a5431f5
SQL
spacegoing/ITHeiMa
/MySQL/class4_tutor.sql
UTF-8
2,328
4.125
4
[]
no_license
create database 4_tutor; use 4_tutor; CREATE TABLE IF NOT EXISTS `stu` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(10) DEFAULT NULL, `sex` enum('男','女') DEFAULT NULL, `city` varchar(10) DEFAULT NULL, `depart_id` tinyint(4) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABL...
true
2a7e037448f1107308846d2e6657c5705e7954bd
SQL
GSoutter/ruby_sql_MtoM_IMDB
/db/imdb.sql
UTF-8
434
2.9375
3
[]
no_license
DROP TABLE castings; DROP TABLE stars; DROP TABLE movies; CREATE TABLE stars ( id SERIAL PRIMARY KEY, first_name VARCHAR(255), last_name VARCHAR(255) ); CREATE TABLE movies( id SERIAL PRIMARY KEY, title VARCHAR(255), genre VARCHAR(255) ); CREATE TABLE castings ( id SERIAL PRIMARY KEY, id_stars INT R...
true
377878e180440c0c6bc84b7c8e5b3c92b66e4ec0
SQL
MedBENZARTI/Cosmetic-Store-Management-with-javaFX
/DataBase/shop_product.sql
UTF-8
2,774
3
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.20, for Win64 (x86_64) -- -- Host: localhost Database: shop -- ------------------------------------------------------ -- Server version 8.0.20 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!401...
true
a1979106aaa67802c43019a22367eece3f76c7df
SQL
nestorfabian/REST-Example-App-for-Zend-Framework
/scripts/app/schema_sqlite.sql
UTF-8
2,424
3.65625
4
[]
no_license
CREATE TABLE indexed_terms ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, term VARCHAR(20) NOT NULL, total INTEGER NOT NULL, resource VARCHAR(30) NOT NULL, resource_id VARCHAR(20) NOT NULL, updated DATETIME NOT NULL, role VARCHAR(20) NOT NULL ); CREATE INDEX indexed_terms_id ON indexed_ter...
true
d3aea5bd9e755d954b0b9dcec2007a084df8a9e2
SQL
austinmajor/cs665-project
/queries/get-followers.sql
UTF-8
178
3.328125
3
[]
no_license
SET @userID := 1; SELECT `name` FROM `user` WHERE `user`.id IN( SELECT follows.follower_user_id FROM follows WHERE follows.followee_user_id = @userID);
true
34b7ced45f8076fa1479683abaae943c51e259ef
SQL
LWBobo/ZuoYe
/数据库/学生/stu_insert_mysql.sql
UTF-8
2,855
3.09375
3
[]
no_license
CREATE TABLE Student (Sno CHAR(9) PRIMARY KEY, Sname CHAR(20) UNIQUE, Ssex CHAR(2), Sage SMALLINT, Sdept CHAR(20) ); insert into student values('201215121','李勇','男',20,'CS'); insert into student values('201215122','刘晨','女',19,'CS'); insert into student values('201215123','王敏','女',18,'MA'); insert into student values('...
true
4a9878251bdd0ed29d0079643e9486e53d686b83
SQL
teaisawesome/ORACLE-SQL
/otodik-ora.sql
UTF-8
4,161
4.09375
4
[]
no_license
-- Listázzuk, hogy az egyes szerzők mennyi honoráriumot kaptak a sci-fi témájú könyvek -- megírásáért. -- A lista tartalmazza a könyvek címét is. -- A lista legyen rendezett a honorárium szerint csökkenőbe. -- outer join nem jo mert pl azokat is belekapnank akik nem is irtak konyvet. SELECT sz.vezeteknev, ksz.honorari...
true
ababc46f0d3e85c56b53d5fb47f3702b5246441b
SQL
MikhailMatsuyev/Search_Jobs_Laravel_5.1
/structure.sql
UTF-8
14,384
3.046875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 16, 2016 at 02:59 PM -- Server version: 5.5.52-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.20 SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4010...
true
bf789ef7c55b32e8993817bcd729ef931150d40a
SQL
m2i-formation-cdi/git-playground
/AbdelKarim/Odélices/od__lices-BaseDeDonnées.sql
UTF-8
2,213
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : ven. 31 août 2018 à 19:28 -- Version du serveur : 10.1.34-MariaDB -- Version de PHP : 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
true
1c9ed05e158aba3b5e96e012b01e7d8ed2853cdf
SQL
raymondmar61/sql
/practicalsql/practicalsql06.sql
UTF-8
4,515
4.65625
5
[]
no_license
#Chapter 06 Joining Tables In A Relational Database (p 73) #join or inner join RM: both are the same, left join, right join, full outer join returns every row from both tables and matches row then joins the rows where values in the joined columns match and if there's no match for a value in either the left or right ta...
true
2000c8dcf569ec10e28700e0536ad29fbd48b47e
SQL
robn11/drchat
/sql/getBooksCategories.sql
UTF-8
159
2.9375
3
[]
no_license
SELECT book_categories.isbn, categories.categoryid, categories.name FROM book_categories JOIN categories on book_categories.categoryid = categories.categoryid;
true
f29877f151d29154022f4067a255541c568f5ea9
SQL
jgarzonext/packages
/paquete body/PAC_USUARIOS_ADM.sql
ISO-8859-1
27,129
2.671875
3
[]
no_license
-------------------------------------------------------- -- DDL for Package Body PAC_USUARIOS_ADM -------------------------------------------------------- CREATE OR REPLACE EDITIONABLE PACKAGE BODY "AXIS"."PAC_USUARIOS_ADM" IS --@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -- VAR...
true
20da1a361f685db733010c2328d68eb54de0a402
SQL
defrianda/tubes_sisfo
/db_akuntan.sql
UTF-8
3,982
3.46875
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 utf8 */; -- -- Database: `db_akunta...
true
49994c1ac63468996eec2a2830c0ac1c0e00df80
SQL
fhk255a/e_Live
/e_Live/db/evaluate.sql
UTF-8
1,162
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version phpStudy 2014 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2018 年 05 月 17 日 05:58 -- 服务器版本: 5.5.53 -- PHP 版本: 5.4.45 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_CHARA...
true
d10f076566629e91ab4c37bc97b152b8ee49e0b2
SQL
AlexeiVedernikov/myproj
/sql/mysql/04.create_region_table.sql
UTF-8
305
3
3
[]
no_license
CREATE TABLE REGION ( REGION_ID varchar(32) NOT NULL, NAME varchar(255) NOT NULL, DESCRIPTION varchar(512), STATUS varchar(32) NOT NULL, COUNTRY_ID varchar(32) NOT NULL, PRIMARY KEY (REGION_ID), FOREIGN KEY (COUNTRY_ID) REFERENCES COUNTRY(COUNTRY_ID) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
true
4f3ca6715b6b7a76be0b9d8721396cfa14ae2cbc
SQL
zhangdongxuan0227/Robot-framework
/auto-test-demo-master/RF-auto-test-demo-master/test/测试项目/资源_公共/刷库操作/sql_script.sql
UTF-8
1,073
2.6875
3
[]
no_license
#存放要刷入所有库的脚本;脚本中不能使用“;” ALTER TABLE t_promotion_extend ADD time_type INT NOT NULL DEFAULT 2 COMMENT '时间类型:@Enum(1,fix,固定时间;2,relativity,相对时间;3,rule_time,活动时间)', ADD relativity_begin INT NOT NULL DEFAULT 0 COMMENT '相对于当天的开始时间,0表示今天,1表示第二天(相当于有效期2天),类推。@Valid(0,10000)', ADD relativity_end INT NOT NULL DEFAULT 0...
true
1745fabc2b0d115c4d16af3d5e7eff2a341551a0
SQL
JaromirVala/Clients-cards
/config/dibi/dbcards.sql
UTF-8
5,898
3.484375
3
[]
no_license
CREATE DATABASE Cards; CREATE TABLE `users` ( `user_id` int(11) unsigned NOT NULL AUTO_INCREMENT, `user_name` varchar(125) COLLATE utf8mb4_czech_ci NOT NULL, `user_lastname` varchar(125) COLLATE utf8mb4_czech_ci NOT NULL, `user_address` varchar(125) COLLATE utf8mb4_czech_ci default NULL, `use...
true
4e4ca47724cf8fe63009b5852d47c4bce666e849
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/tables/CONVCOMESPAGE.sql
ISO-8859-1
1,186
2.828125
3
[]
no_license
-------------------------------------------------------- -- DDL for Table CONVCOMESPAGE -------------------------------------------------------- CREATE TABLE "AXIS"."CONVCOMESPAGE" ( "IDCONVCOMESP" NUMBER(6,0), "CAGENTE" NUMBER ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 ...
true
1ee540df39673536535f0dc7aef62b21fd650bcf
SQL
PrachiPhatak/database-exercises
/albums_seeder.sql
UTF-8
3,966
2.953125
3
[]
no_license
-- mysqldump -t -u root -pcodeup codeup_test_db albums use codeup_test_db; TRUNCATE table albums; insert into albums (artist, name, release_date, sales, genre)values ("Micheal Jackson", "Thriller", 1982, 48.9, "pop,post-disco, funk, rock"), ("AC/DC", "Back in Black", 1980, 29.6, "Hard rock"), ...
true
3f58e11d6c375ca587bed6d8e667eecc791940a0
SQL
rashiv/comp_services_dm
/scripts/2-agg_rolling.sql
UTF-8
565
3.90625
4
[]
no_license
-- -- QUERY 2: Aggregations across a rolling 30, 60, 90 days -- WITH pi_per_day AS -- temp table storing count of distinct users per day: (SELECT DATE(FROM_UNIXTIME(Timestamp)) AS pi_date, COUNT(DISTINCT Ads_User_Id) AS users_per_day FROM Page_Impression GROUP BY DATE(FROM_UNIXTIME(Timestamp)) OR...
true
b8a5281ff1e7dc3a09fb46e127a518df684cd2de
SQL
u-ashikov/DB-Basics
/Built-In-Functions/2.Find_All_Employees_Names_By_LastName.sql
UTF-8
132
2.984375
3
[]
no_license
SELECT empl.FirstName AS first_name, empl.LastName AS last_name FROM Employees AS empl WHERE CHARINDEX('ei',empl.LastName,1) > 0
true
91397b967b2ea6267890b8a21b5cbeca582f2f6c
SQL
Jieun86/newMB
/db2/SQL_PB.sql
UTF-8
4,154
3.5625
4
[]
no_license
-- 회원정보 DROP TABLE IF EXISTS `PB`.`MMBR_INF` RESTRICT; -- 회원정보 CREATE TABLE `PB`.`MMBR_INF` ( `MMBR_NMBR` INT NOT NULL, -- 회원번호 `MMBR_ID` VARCHAR(16) NOT NULL, -- 회원아이디 `MMBR_EMAIL` VARCHAR(40) NOT NULL, -- 회원이메일 `MMBR_NM` VARCHAR(50) NOT NULL, -- 회원이름 `MMBR_PHOTO` VARCHAR(120) NULL -- 회원...
true
b7a7564ce9ffc8c7e8694c5fe8acd6d16a166115
SQL
dominikgrabinski/Kscope21
/ORDS_REST_planets.sql
UTF-8
2,772
2.875
3
[]
no_license
-- Generated by ORDS REST Data Services 19.4.6.r1421859 -- Schema: WKSP_DGRPRETIUS Date: Sun Jun 20 04:08:40 2021 -- BEGIN ORDS.DEFINE_MODULE( p_module_name => 'planets', p_base_path => '/planets/', p_items_per_page => 25, p_status => 'PUBLISHED', p_comments ...
true
bae895d1d8643c72593af54d0ea19b710e4769e0
SQL
WissamSawah/godeye
/setup.sql
UTF-8
917
3.046875
3
[ "MIT" ]
permissive
-- -- Create the database with a testuser -- CREATE DATABASE IF NOT EXISTS `pythonlogin`; -- GRANT ALL ON pythonlogin TO user@localhost IDENTIFIED BY "pass"; USE `pythonlogin`; -- Ensure UTF8 as chacrter encoding within connection. SET NAMES utf8; -- -- Create table for Content -- -- -- CREATE DATABASE IF NOT E...
true
cd0f9a9b277f4c23a8c4481ec84af7e8025c1ad2
SQL
acidicph/where-cycle
/src/postGIS_tables/production/all_time_stats.sql
UTF-8
1,128
4.1875
4
[ "MIT" ]
permissive
-- Join Citibike, TLC, and Yelp statistics to taxi zones for Dash DROP TABLE IF EXISTS production.all_time_stats; CREATE TABLE production.all_time_stats AS SELECT v.zone_id, v.zone_name, v.borough, v.tlc_visits, v.citibike_visits, v.citibike_stations, y.avg_...
true
b9150b13f9720583354c86be6934fc0ae55f1994
SQL
angielumezeanu/scoala_doctorala
/scoala_doctorala.sql
UTF-8
10,231
2.59375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.22, for Linux (x86_64) -- -- Host: localhost Database: scoala_doctorala_development -- ------------------------------------------------------ -- Server version 5.7.22-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_R...
true
41e08a074b0689385700b40434f0dbd304ae1e2f
SQL
elevenjohns/java-web-study
/BookRepo/db/CreateDB.sql
UTF-8
353
2.546875
3
[]
no_license
DROP TABLE IF EXISTS `test`.`books`; CREATE TABLE `test`.`books` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(45) NOT NULL, `price` float NOT NULL, `author` varchar(45) NOT NULL, `bookConcern` varchar(45) NOT NULL, `counts` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGI...
true
ef9e52cc48bfe1155aa1bbf7985d792ccf45a9e4
SQL
PatruSapte/FarmacieSQL
/farmacie_produse.sql
UTF-8
2,303
2.765625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.27, for Win64 (x86_64) -- -- Host: localhost Database: farmacie -- ------------------------------------------------------ -- Server version 8.0.27 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS...
true
ea9152d77bf174abc1d39573148e4b995205f2bb
SQL
copenhagenr/login-system
/db/table/USERS.SQL
UTF-8
468
2.640625
3
[]
no_license
CREATE TABLE IF NOT EXISTS users ( -- important field id int PRIMARY KEY AUTO_INCREMENT, mail varchar(150) NOT NULL UNIQUE, passwword varchar(32) NOT NULL, -- field function login_attempts int default 10 not null, -- auxiliary first_name varchar(100), last_name v...
true
fe9efa476498ed2ef694945ad1038b053cd4d90b
SQL
akashbytes/laravel-login
/laravel-crud.sql
UTF-8
1,886
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jan 24, 2019 at 02:05 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
e5b5c33d536e1013adf52417da50e609fd5fd67d
SQL
Munseaux/sql-challenge
/schema.sql
UTF-8
1,162
3.78125
4
[]
no_license
--create departments table CREATE TABLE departments( dept_no VARCHAR(30), dept_name VARCHAR(30), PRIMARY KEY (dept_no) ); SELECT * FROM departments; --create employees table CREATE table employees ( emp_no INT, emp_title_id VARCHAR(30), birth_date DATE, first_name VARCHAR(30) , last_na...
true
adad7933374db48d4bfc0a089a4b185017e29934
SQL
madigabor/php-sample-news
/mysql/docker-entrypoint/create.sql
UTF-8
481
2.8125
3
[]
no_license
ALTER DATABASE test DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; USE test; CREATE TABLE news ( id INT NOT NULL AUTO_INCREMENT , title VARCHAR(250) NOT NULL , content TEXT NOT NULL , PRIMARY KEY (id)) ENGINE = InnoDB; INSERT INTO news (id, title, content) VALUES ('1', 'Hello World', 'This is the f...
true
0386846ce2036d6c6417eb41dd52f572750c8b4c
SQL
lopezavila85/emoodsic
/mysql/emoodsic.sql
UTF-8
20,201
3.515625
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 emoodsic ...
true
8ddf01fcf7a9865e0a2fc4bd60e5d1af2b92e225
SQL
Shmyg/unix
/scripts/sql/dn.sql
UTF-8
982
3.34375
3
[]
no_license
SELECT dn.dn_num, cu.custcode, cu.customer_id, cu.cscurbalance, ca.co_id co_id, tm.des, cc.cclname || ' ' || cc.ccfname as customer_name, ch.ch_status, ch.ch_validfrom, pt.port_num FROM contract_all ca, contr_services_cap cs, directory_number dn, customer_all cu, mputmtab tm, ccontact_all cc, contrac...
true
ccd2fd4db3653eaae5f8f0b65742c1b5c67294a3
SQL
nahmed23/git-github.com-Life-Time-Inc-database_udw
/ltdatabaseudw/marketing/Views/v_dim_mms_ltf_key_owner.sql
UTF-8
1,582
2.578125
3
[]
no_license
CREATE VIEW [marketing].[v_dim_mms_ltf_key_owner] AS select d_mms_ltf_key_owner.ltf_key_owner_id ltf_key_owner_id, d_mms_ltf_key_owner.acquisition_id acquisition_id, d_mms_ltf_key_owner.d_ltf_key_bk_hash d_ltf_key_bk_hash, d_mms_ltf_key_owner.display_name display_name, d_mms_ltf_key_owner.i...
true
8abab8071a32178ac34b989958ac1627a09d76c9
SQL
AlexEBean/MySQL-Refresher
/s15-IG-Challenges/c6.sql
UTF-8
151
3.890625
4
[]
no_license
SELECT t.tag_name, COUNT(*) AS count FROM tags t JOIN photo_tags pt ON t.id = pt.tag_id GROUP BY tag_name ORDER BY count DESC LIMIT 5;
true
b80d1009c3bab3e115f2ac9df0287e35b56045f1
SQL
pdpdds/cgsf2019
/LogicLayer/MOGame/sql/sqlite/updates/update_3_to_4.sql
UTF-8
340
2.90625
3
[]
no_license
-- add two columns to table tmw_accounts ALTER TABLE tmw_accounts ADD authorization TEXT NULL; ALTER TABLE tmw_accounts ADD expiration INTEGER NULL; -- update the database version, and set date of update UPDATE tmw_world_states SET value = '4', moddate = strftime('%s','now') WHERE state_name = '...
true
3e90bae245352af173312030c986efc2445e4352
SQL
askvod/TrinityCreator-china
/trinity_string.sql
UTF-8
41,769
3.015625
3
[]
no_license
UPDATE trinity_string SET content_default='您应该选择角色或生物.' WHERE entry=1; UPDATE trinity_string SET content_default='您应该选择一个生物.' WHERE entry=2; UPDATE trinity_string SET content_default='|cffff0000[系统消息]: %s|r' WHERE entry=3; UPDATE trinity_string SET content_default='|cffff0000[游戏广播]: %s|r' WHERE entry=4; UPDATE trin...
true
420a803495eef586ce53630007b28a56adc6d0d1
SQL
Sicarruda/back-end-trybe
/modulo_20/20.4.sql
UTF-8
912
3.1875
3
[]
no_license
USE sakila; SELECT * FROM actor; /*INSERT INTO adicionando valores em uma tabela, mas ignorado erros, insert ignore into actor (first_name, last_name) VALUES ('Ana', 'julia'); não entendi direito esse comando */ INSERT INTO actor (first_name, last_name) VALUES ('Ana', 'julia'); /*UPDATE o comando update atualiza a ...
true
e4771269f465ebd6e0b3e7bcb90d112f480c527c
SQL
frankyframework/franky-skeleton-application
/modulos/galeria/sql/install.sql
UTF-8
1,564
2.796875
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS `albumes_galeria`; CREATE TABLE `albumes_galeria` ( `id` int(10) NOT NULL AUTO_INCREMENT, `nombre` varchar(200) DEFAULT NULL, `friendly` varchar(250) DEFAULT NULL, `status` int(10) DEFAULT NULL, `fecha` datetime DEFAULT NULL, `orden` int(10) DEFAULT NULL, PRIMARY KEY (`i...
true
179fc889c4b79378ffd1149eea532bfbb65f83da
SQL
calin-nicoara/rancher-demo
/client-service/src/main/resources/db/migration/V1__schema.sql
UTF-8
231
2.921875
3
[]
no_license
CREATE SEQUENCE client_seq; create table client ( id bigint not null, full_name character varying(255) NOT NULL, birth_date character varying(255) NOT NULL ); ALTER TABLE client ADD CONSTRAINT client_pkey PRIMARY KEY(id);
true
bb607733fe9ba2e2f850749efca274f888d6ae2e
SQL
proyectobap/ServerTFG
/src/SQL/09.TICKET.sql
UTF-8
955
3.84375
4
[]
no_license
CREATE TABLE IF NOT EXISTS `Ticket` ( `ticket_id` INT(8) ZEROFILL NOT NULL AUTO_INCREMENT, `create_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, `mod_date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `end_date` TIMESTAMP NULL, `title` VARCHAR(200) NOT NULL, `desc` L...
true
587fe6ad0fd47db71021563fa71870db3c532fc1
SQL
cadeparkhurst/DnDatabase
/Stored Proc Scripts/getSpellID.sql
UTF-8
241
3.0625
3
[]
no_license
CREATE PROCEDURE getSpellID @Name varchar(50) AS BEGIN IF(NOT EXISTS (SELECT * FROM Spell WHERE Name = @Name)) BEGIN RAISERROR('No spell with that name exists', 14, 1); RETURN 1; END SELECT SpellID FROM Spell WHERE Name = @Name END
true
5a1ba9958f888e8b963f4e334ee021cf9c893ddf
SQL
kalintsenkov/SoftUni-Software-Engineering
/CSharp-DB/Databases-Basics/Homeworks/06SubqueriesAndJoins/16CountriesWithoutAnyMountains.sql
UTF-8
344
3.90625
4
[ "MIT" ]
permissive
SELECT COUNT(c.CountryCode) AS [CountryCode] FROM ( SELECT c.CountryCode FROM Countries AS c LEFT JOIN MountainsCountries AS mc ON mc.CountryCode = c.CountryCode LEFT JOIN Mountains AS m ON m.Id = mc.MountainId WHERE m.Id IS NULL GROUP...
true
f99d691bfa30e4a457bea7bcaeb4d15e6d57fd1d
SQL
Maslor/notebook
/part1/notepad.sql
UTF-8
4,085
3.6875
4
[ "MIT" ]
permissive
/* Entidades */ create table Log_Registo ( data_registo datetime not null unique, pergunta1 varchar(255), pergunta2 varchar(255), primary key (data_registo) ); create table Login ( data_login timestamp not null unique, sucesso varchar(10), primary key (data_login) ); create table Pessoas ( mail varchar(...
true
0f3acebe7dd0b505da31046c04a700add39c5519
SQL
mlee24/DataQuest-Guided-Projects
/Group Summary Statistics-254.sql
UTF-8
1,963
4.3125
4
[]
no_license
## 2. If/Then in SQL ## SELECT CASE WHEN Sample_size < 200 THEN 'Small' WHEN (Sample_size >= 200 AND Sample_size < 1000) THEN 'Medium' ELSE 'Large' END AS Sample_category FROM recent_grads; ## 3. Dissecting CASE ## SELECT Major, Sample_size, CASE WHEN Sample_size < 200 THEN 'Small' WHEN (Sample_...
true
a090a5abc6d6cd465e9cf6aac5676cadc9b443bb
SQL
cerpinconsafo/Bamazon-Node-App
/bamazon_db.sql
UTF-8
1,238
3.296875
3
[]
no_license
-- alter user 'root' @'localhost' identified WITH mysql_native_password BY 'Octopus0687@'; DROP DATABASE IF EXISTS bamazon_db; create database bamazon_db; use bamazon_db; drop table if exists products; create table products ( item_id INTEGER(11) auto_increment not null, product_name VARCHAR(200) NOT NULL, departme...
true
23f104c7ea27a28569b96d70b5a10e7b32e2cb0b
SQL
kw244/Ticket
/db_install/07-create-and-populate-contacts-tags-table.sql
UTF-8
402
3.234375
3
[]
no_license
CREATE TABLE IF NOT EXISTS `cafecham_sparksms`.`contacts_tags` ( `contact_id` int(11) NOT NULL COMMENT 'contact id', `tag_id` int(11) NOT NULL COMMENT 'tag id', FOREIGN KEY (`contact_id`) REFERENCES contacts(`contact_id`), FOREIGN KEY (`tag_id`) REFERENCES tags(`tag_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8...
true
fca8ea2ec6d42131fbe20da1fe88568456798a63
SQL
roman-yakimkin/job4j_design
/chapter_004/sql/products_sel01.sql
UTF-8
206
3.34375
3
[]
no_license
--Написать запрос получение всех продуктов с типом "СЫР" select p.* from products p inner join product_types t on p.type_id = t.id where t.name = 'СЫР'
true
f41660c365c4a7956326d93cb12a81726f2cae60
SQL
DanielMuthupandi/FAST
/FAST/vsql/APTTUS/AT_Apttus__APTS_Template__c.sql
UTF-8
9,646
3.09375
3
[]
no_license
/**** ****Script Name : AT_Apttus__APTS_Template__c.sql ****Description : Incremental data load for AT_Apttus__APTS_Template__c ****/ /* Setting timing on**/ \timing \set ON_ERROR_STOP on CREATE LOCAL TEMP TABLE Start_Time_Tmp ON COMMIT PRESERVE ROWS AS select count(*) count, sysdate st from "swt_rpt_stg"."AT_Ap...
true
bdb13ab3e13a97cb5753e08386df057a7d8713ac
SQL
drpcwmt/csms
/modules/system/year.sql
UTF-8
9,978
3.234375
3
[]
no_license
CREATE TABLE `absents` ( `id` int(11) NOT NULL AUTO_INCREMENT, `con_id` int(11) NOT NULL, `day` int(11) NOT NULL, `justify` int(11) NOT NULL DEFAULT '0', `ill` int(11) NOT NULL DEFAULT '0', `comments` text CHARACTER SET utf8 COLLATE utf8_bin, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;CREAT...
true
0af573dbbb1fe8f989177ba8249fd197da10dd22
SQL
ddy88958620/traversing
/app/doc/databases/traversing.sql
UTF-8
6,903
2.921875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.21, for osx10.8 (x86_64) -- -- Host: localhost Database: traversing_1 -- ------------------------------------------------------ -- Server version 5.6.21 -- -- Table structure for table `tb_character_activity` -- DROP TABLE IF EXISTS `tb_character_activity`; CREATE TABLE `tb_charac...
true
7dfa7d6229b9c9b2eba4f99e6427e1955d2743f5
SQL
apache/hive
/metastore/scripts/upgrade/derby/052-HIVE-18965.derby.sql
UTF-8
1,239
3.328125
3
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "Python-2.0", "BSD-2-Clause" ]
permissive
-- Upgrades for Schema Registry objects ALTER TABLE "APP"."SERDES" ADD COLUMN "DESCRIPTION" VARCHAR(4000); ALTER TABLE "APP"."SERDES" ADD COLUMN "SERIALIZER_CLASS" VARCHAR(4000); ALTER TABLE "APP"."SERDES" ADD COLUMN "DESERIALIZER_CLASS" VARCHAR(4000); ALTER TABLE "APP"."SERDES" ADD COLUMN "SERDE_TYPE" INTEGER; CREATE...
true
6eb76dc393cf031b04b64d7bbe68a0a64e69e9bd
SQL
LinLeng/SQLMonitor
/information_collection/scripts/server_triggers.sql
UTF-8
397
3.28125
3
[ "MIT" ]
permissive
-- Category: Database Engine Configuration SET NOCOUNT ON; SELECT CONVERT(nvarchar(128), SERVERPROPERTY('ServerName')) AS ServerName ,[name] AS [ObjectName] ,[type_desc] AS [ObjectType] ,CAST([create_date] AS datetime) AS [CreateDate] ,CAST([modify_date] AS datetime) AS [ModifyDate] ,...
true
77df72c40bd9b494c4079ed9c90119836999e739
SQL
rayprea/2018-CS460-DB-Design
/Homework 3 SQL/query05.sql
UTF-8
149
3.234375
3
[]
no_license
--Full name of employee with largest salary SELECT fname, minit, lname FROM mccann.employee WHERE salary = (SELECT MAX(salary) FROM mccann.employee);
true
72a1be46e2bf3021551f33ed22ca1b292bf35ace
SQL
Adub238/New-HW-Repo
/HWonWatson/Projekte/ETL_Projekte_AMY/schema_files/editedquickDBschemageneration.sql
UTF-8
3,172
3.546875
4
[]
no_license
DROP TABLE IF EXISTS beers_reduced_df; DROP TABLE IF EXISTS breweries_reduced_df; DROP TABLE IF EXISTS brewery_address; DROP TABLE IF EXISTS brewery_coordinates; DROP TABLE IF EXISTS brewery_type; DROP TABLE IF EXISTS categories_cleaned; DROP TABLE IF EXISTS contact_brewery; DROP TABLE IF EXISTS styles_reduced_df; CRE...
true
f0fc1cf1fbe84b1b481bf75bc689d29718943c6c
SQL
doerwalter/LivingLogic.Oracle.ul4
/ul4on_pkg.sql
UTF-8
18,808
3.125
3
[]
no_license
create or replace package UL4ON_PKG as /******************************************************************************\ UL4ON is a lightweight text-based crossplatform data interchange format. As the name suggests its purpose is to transport the object types supported by UL4. For more info about UL4 see `http://py...
true
a28c7fb5bcf0bd2b345d3c03edbaaa24eb10c53d
SQL
ErikAguilar15/ScoreBoard
/Queries/20.sql
UTF-8
119
3
3
[]
no_license
--Count number of home wins for team 1 SELECT COUNT(*) FROM TeamStats WHERE st_hometeamID = 1 AND st_score1 > st_score2
true
51574559dda9d6c54e379e19af42e2a2f3cd2ff2
SQL
JeremieBillet/Projet_Cave
/Projet_cave/Doc/mysql_script_projet_cave2 (4).sql
UTF-8
15,027
3.265625
3
[]
no_license
# creation BDD drop database if exists db_projet_cave; create database db_projet_cave; use db_projet_cave; drop table if exists alcools_categories, lignes_commandes, alcools, categories, users, commandes ; create table categories (id_categorie int auto_increment primary key, class_name varchar(50), ...
true
bf550a9a2aee00b1c59b33008e497e7c81adeacb
SQL
RohJ/membership
/target/classes/data.sql
UTF-8
5,253
3.25
3
[ "MIT" ]
permissive
INSERT INTO role (name) SELECT * FROM (SELECT 'ROLE_ADMIN') AS tmp WHERE NOT EXISTS ( SELECT name FROM role WHERE name = 'ROLE_ADMIN' ) LIMIT 1; INSERT INTO role (name) SELECT * FROM (SELECT 'ROLE_USER') AS tmp WHERE NOT EXISTS ( SELECT name FROM role WHERE name = 'ROLE_USER' ) LIMIT 1; INSERT INTO user (username...
true
48d051570ce61354ed1dc3c6082605f920ce3b9a
SQL
hunterinious/paul
/migrations/0-initial/up.sql
UTF-8
295
2.828125
3
[]
no_license
-- SQL ALTER statements for database migration CREATE TABLE PaymentHistory ( id SERIAL, currency INTEGER NOT NULL, amount REAL NOT NULL, description VARCHAR DEFAULT ' ', shop_order_id VARCHAR NOT NULL, transfer_time TIMESTAMP NOT NULL, PRIMARY KEY (id), UNIQUE(shop_order_id) );
true
2780f610239cd17b6f2d0846ad1f4b88d5103381
SQL
jared-ong/data-projects
/sql_server/performance/check_cached_plan_for_procedure.sql
UTF-8
392
3.140625
3
[ "MIT" ]
permissive
--Replace the procedure name in the where statement to pull back a specific procedure select plan_handle,usecounts, cacheobjtype, objtype, size_in_bytes, text, query_plan from sys.dm_exec_cached_plans cross apply sys.dm_exec_sql_text(plan_handle) cross apply sys.dm_exec_query_plan(plan_handle) where usecounts > 1 and t...
true
500c5b332e9031e4b77b347e3c17c1519392380a
SQL
DamienSerrurier/Diagramme-MCD-SQL
/Bibliotheque_Requetes.sql
UTF-8
3,344
4.125
4
[]
no_license
-- Partie 2 : Bibliothèque -- Les besoins -- La bibliothèque La Manu vient d'ouvrir et elle ne dispose pas de logiciel pour suivre ses livres. -- Vous êtes donc en charge de créer une base de données permettant de faciliter cette gestion. -- Les contraintes -- La bibliothèque souhaiterait p...
true
e65dc86f193e14f6e701f04489a28d84b199d817
SQL
chazevo2/skhappycampus-oracle
/20190715-hr.sql
UHC
6,689
4.15625
4
[]
no_license
select * from tab; -- μ ˻ desc departments; -- primary key(not null) / unique key(null) select department_id, department_name, manager_id, location_id from departments; -- where select department_id, department_name, manager_id, location_id from departments where department_name = 'Administration'; -- ...
true
d1e18eecc6d6843e894a5bf5d924d5aac6fb50b2
SQL
stesnyagin-s/FoxPro-Project
/SQL Queries/after_train.sql
UTF-8
146
3.296875
3
[]
no_license
SELECT DISTINCT b.id_train; FROM schedule as a, schedule as b; WHERE (a.id_st = b.id_st); AND (a.id_train = 2); AND (a.end_time < b.end_time);
true
21b6634a415990f4f0f0a9ffff432db8463240d1
SQL
casavelha/product-stock
/src/main/resources/data.sql
UTF-8
532
3.6875
4
[]
no_license
-- DROP TABLE IF EXISTS products; CREATE TABLE IF NOT EXISTS products ( id INT AUTO_INCREMENT PRIMARY KEY, product VARCHAR(250) NOT NULL, quantity INT NOT NULL, price DECIMAL (20,2) NOT NULL, type VARCHAR(250), industry VARCHAR(250), origin VARCHAR(250), source VARCHAR(250) ...
true
b71fcfe82e60aa24c99970b27be864a58b08185e
SQL
vturko/flask_test
/create_users.sql
UTF-8
2,055
3.703125
4
[]
no_license
CREATE DATABASE IF NOT EXISTS Users; USE Users; DROP TABLE IF EXISTS course_user CASCADE; DROP TABLE IF EXISTS user CASCADE; DROP TABLE IF EXISTS courses CASCADE; CREATE TABLE user ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL, name VARCHAR(50) NOT NULL, email VARCHAR(255), status INT(1) NOT NULL, phone VARCH...
true
ac136edc434c24d2e781e1310070930ab22d0782
SQL
SANDAG/QA
/2023/2023-023 Estimates 2022/series_14_automation/sql_queries/household_type_query_2021.sql
UTF-8
978
3.5
4
[]
no_license
/****** Script for SelectTopNRows command from SSMS ******/ -- SELECT -- geo_table.mgra_id -- ,[yr_id] -- ,household_type_id.name AS 'household_type' -- ,[households] -- FROM [estimates].[est_2021_01].[dw_households] AS household_table -- LEFT JOIN [demographic_warehouse].[dim].[household_type]...
true
de11e23209f0679d9a837d335db85aaa2c139e5f
SQL
VijayMVC/JCC-Data-Warehouse
/SQLDB/dbo/Views/AA_SL_POST_BATCH_SECURITY_VIEW.sql
UTF-8
837
2.890625
3
[]
no_license
create view AA_SL_POST_BATCH_SECURITY_VIEW /* ** Written: 5/4/2004 RL ** Last Amended: ** Comments: Returns Security Profile settings for Sales Post Batch */ as select UP_CODE as PROFILECODE, UP_MODULE as PROFILEMODULE, cast(substring(UP_TRANSMASK, 7, 1) as tinyint) as ALLOWEDACCESS, (case when substring(UP_T...
true
3bc29040d51f729a0c4295e6e79003cfed4644c3
SQL
st4hlis/dbtech
/lab2/lab2.sql
UTF-8
2,577
3.78125
4
[]
no_license
DROP TABLE IF EXISTS movies; DROP TABLE IF EXISTS screenings; DROP TABLE IF EXISTS theaters; DROP TABLE IF EXISTS customers; DROP TABLE IF EXISTS tickets; CREATE TABLE movies ( title TEXT, year INT, running_time TIME, imdb TEXT DEFAULT (lower(hex(randomblob(6)))), PRIMARY KEY (imdb) );...
true
86cf3a811453966a8d2ed4492e0f0c3cacda8a39
SQL
radtek/oracle-administration-scripts
/sch_jobs_status.sql
UTF-8
1,275
2.984375
3
[]
no_license
--select * from dba_scheduler_jobs where job_name='DROP_ARCH_DATA'; SELECT JOB_NAME, STATE FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'DROP_ARCH_DATA'; SELECT * FROM ALL_SCHEDULER_RUNNING_JOBS; SELECT * FROM ALL_SCHEDULER_RUNNING_CHAINS WHERE JOB_NAME='DROP_ARCH_DATA'; /* -------------Job status description-----------...
true
b7aa55155e495504aeebd36987493635707ea805
SQL
satriopriadi8/Database
/SQLStasiun Kereta.sql
UTF-8
3,425
3.03125
3
[]
no_license
create database stasiun_kereta create table kepala_stasiun( nip_ks char(15) primary key not null, nama_ks char(20) not null, usia_ks char(30) not null, alamat_ks char(30) not null, hoby_ks char (20) not null) create table petugas_loket( nip_petugas_loket char(15) primary key not null, nama_petugas_loket char...
true
f043dc7e5db2d4e1198de5a69090488177961e58
SQL
CodeLoverss/spoilYou
/sql/user.sql
UTF-8
1,092
2.921875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50562 Source Host : 127.0.0.1:3306 Source Database : pet Target Server Type : MYSQL Target Server Version : 50562 File Encoding : 65001 Date: 2020-07-23 08:31:31 */ SET FOREIGN_KEY_CHECKS=0; -- ...
true