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
df9a391c48b3e807ba039b9ae405eabddf0c450b
SQL
B-Houssam/SDED
/TP5/script.sql
UTF-8
3,788
3.328125
3
[]
no_license
set autotrace on ; set timing on ; Update DAeroportArr Set NomPays = 'Portugal' where codePays = 10; Update DAeroportDep Set NomPays = 'Portugal' where codePays = 10; select a1.CodePays,a1.NomPays, sum(v.NbVolRetard) from FTraffic v , DAeroportDep a1 where v.NumAerD = a1.NumAerD and a1.NomPays = 'Portugal' and...
true
ab007078ffa82624db10ddabd866a8f799e831ef
SQL
vigneshj6/HistoryCard
/query/teacher/subject_teacher/sub_stud.sql
UTF-8
201
3.046875
3
[]
no_license
--2ND QUERY RUN IN DATABASE RETURNED FROM 1st query(i.e Batch Database) SELECT "RRN","STUDENT_NAME" FROM "TEACHING" LEFT OUTER JOIN "STUDENT" USING("RRN") WHERE "FACULTY_ID"= $1 AND"SUBJECT_CODE"= $2;
true
b26a722928581437da8f54f1a53f4762592dfbb4
SQL
abhimany-gt/ecommerce-microservice
/product-service/target/classes/data.sql
UTF-8
334
2.734375
3
[]
no_license
DROP TABLE IF EXISTS product; create table product(id int AUTO_INCREMENT primary key,code varchar(50),name varchar(200),description varchar(500),price double,inStock boolean); INSERT INTO product (code,name,description,price,inStock) VALUES ('123A', 'BOOK-1', 'Cook-Book',100.00,true), ('123B', 'BOOK-2', 'Play-Book'...
true
32189f56556ebcca70e9fdec3fa30d43f497d332
SQL
ehtiramabdullayev/BookStoreApi
/src/test/resources/data.sql
UTF-8
2,924
3.515625
4
[]
no_license
DROP TABLE IF EXISTS `books`; DROP TABLE IF EXISTS `authors`; DROP TABLE IF EXISTS `book_author`; CREATE TABLE `books` ( `id` int PRIMARY KEY AUTO_INCREMENT, `name` varchar(255), `status` varchar(255), `price` int, `published_year` int, `category` ENUM ( 'Science fiction', 'Drama', 'Manga', 'Ac...
true
bf4dfefef0e6fcc341ed337a39c7af1d7f7a1e8b
SQL
Sam-Boss/Analytics-Home-Assignment
/Main Queries/4_query.sql
UTF-8
390
3.828125
4
[]
no_license
Create Table assignment.sboss.tasks_7d_avg as ( select t.*, avg(cast(tasks as float)) over ( partition by t.account_id order by date rows between 6 preceding and current row ) as avg_7d from ( select * from assignment.sboss.task...
true
de605eff9dd4c61a51c9a6e77a79bc8fcae1c266
SQL
DariaGera/computer-practicum2
/sql/V23__educ_place_VIEW.sql
UTF-8
1,452
3.015625
3
[]
no_license
create view educ_place as select DISTINCT * from( -- навчальний заклад select DISTINCT EOAreaName, EOTerName, EORegName, EOName from zno_ua19_20 -- територія пунктів проведення ЗНО UNION select DISTINCT ukrPTAreaName, ukrPTTerName, ukrPTRegName, ukrPTName from zno_ua19_20 UNION select DISTINCT mathPTAreaNam...
true
d2198bcf9f903bb435fdfe6c44cc315aca417c57
SQL
Dheeraj543/leetcode
/rearrange-products-table.sql
UTF-8
276
2.984375
3
[]
no_license
SELECT product_id, 'store1' AS store, store1 AS price FROM Products WHERE store1 IS NOT NULL UNION SELECT product_id, 'store2', store2 FROM Products WHERE store2 IS NOT NULL UNION SELECT product_id, 'store3', store3 FROM Products WHERE store3 IS NOT NULL
true
8d40193a7f9f599ecda8c38c163dc9125ff7a977
SQL
gurpreet19/ec198392_wht
/Database/configuration/03_02_headless_tool/Delta_WST/SourceViewDefinitions/V_FCST_SUMM_PHASES.sql
UTF-8
6,570
3.015625
3
[]
no_license
CREATE OR REPLACE FORCE EDITIONABLE VIEW "V_FCST_SUMM_PHASES" ("PHASE_CODE", "PHASE_NAME", "SORT_ORDER", "RECORD_STATUS", "CREATED_BY", "CREATED_DATE", "LAST_UPDATED_BY", "LAST_UPDATED_DATE", "REV_NO", "REV_TEXT") AS ( --------------------------------------------------------------------------------------------------...
true
0ca6d5b7de931781e7e549dae480a89f84e84712
SQL
BartoszDabek/MyCalories
/src/main/resources/liquibase/init.sql
UTF-8
4,622
3.75
4
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS category ( id BIGSERIAL PRIMARY KEY UNIQUE, name VARCHAR(255) UNIQUE ); CREATE TABLE IF NOT EXISTS product ( id BIGSERIAL PRIMARY KEY UNIQUE, category_id BIGINT REFERENCES category(id), name VARCHAR(255) NOT NULL...
true
f3e7e0e18272af1d1fb9e77b83a7a19a54271eeb
SQL
Zina07/Database
/student.sql
UTF-8
5,749
3.453125
3
[]
no_license
/*+============== table Students =============*/ INSERT INTO `Students` (`IDSudent`, `Nom`, `Ville`) VALUES (NULL, '', ''), (NULL, 'Véronique', ' Paris'); INSERT INTO `Students` (`IDSudent`, `Nom`, `Ville`) VALUES (NULL, 'Steeven', 'Lyon'); INSERT INTO `Students` (`IDSudent`, `Nom`, `Ville`) VALUES (NULL, 'Marc', '...
true
edb50bc2665eb334e045d34236820e0875e5a47a
SQL
Cikro/finance-app
/db-scripts/maria-db/stored-procedures/2021-10-01_13-39-get-account-by-account-id.sql
UTF-8
229
3.09375
3
[]
no_license
DELIMITER | DROP PROCEDURE IF EXISTS GetAccountByAccountId| CREATE PROCEDURE GetAccountByAccountId(accountId int UNSIGNED) READS SQL DATA BEGIN SELECT * FROM accounts WHERE id = accountId; END| DELIMITER ;
true
d40661c460735638459990994b5013f37f39842c
SQL
ankeetpatel98/Pokemon-Project-with-HTML
/pkm_DB_load.sql
UTF-8
2,105
3.859375
4
[]
no_license
--You can load this sql script through phpmyadmin with the "import" feature on the home menu --NOTE: YOU MUST CHANGE THE ABSOLUTE FILE PATH OF THE DATA CSV FILE BELOW -- Uncomment the line below if you need to reimport the database for whatever reason -- DROP DATABASE pkmDB; CREATE DATABASE pkmDB; USE pkmDB; SET SQL_...
true
25a301e6750c6a2cd8b027ac407f771a6f36069f
SQL
liu650/military-system
/table.sql
UTF-8
15,622
3.59375
4
[]
no_license
-- start table.sql drop table Area cascade constraints; drop table Mission_takePlace_assign1 cascade constraints; drop table Mission_takePlace_assign2 cascade constraints; drop table Mission_takePlace_assign3 cascade constraints; drop table General cascade constraints; ...
true
3ea581161587a29c1412f278def8c0e4c844dbf6
SQL
jasarsoft/fit-src
/bp2/vjezbe_video/bp2_vj02_zadatak06.sql
UTF-8
455
3.6875
4
[ "MIT" ]
permissive
/* Vjezbe Predavanje 2, Zadatak 6 Prikazati broj proizvoda po kategoriji. Listu sortirati opadajucim redosljedom po broju proizvoda. Prikazati samo 10 kategorija. Takodjer, provjeriti da li ima kategorija koji imaju isti broj proizvoda kao ona na 10 mjestu. (AdventureWorksLT) */ USE AdventureWorksLT2014 SELECT ...
true
015729a9a7c75f3843f344eb61e9aa26ca3e6639
SQL
XuHuaYang/CSCI3100-Course-Project
/FinalCode/sql/createquestion.sql
UTF-8
413
2.859375
3
[ "MIT" ]
permissive
CREATE TABLE question( qid int AUTO_INCREMENT PRIMARY KEY, nid int not null, title text not null, choicea varchar(2000) not null, choiceb varchar(2000) not null, choicec varchar(2000) not null, choiced varchar(2000) not null, acount int not null, bcount int not null, ccount int n...
true
5b7d4f6f6792dddf5361e5d490302423583c185c
SQL
alfianprayanta/code-examples
/umbraco/umbraco-list-users-groups.sql
UTF-8
427
3.53125
4
[ "MIT" ]
permissive
SELECT umbracoUser.id, umbracoUser.userLogin, umbracoUser.userName, umbracoUserGroup.userGroupName, umbracoUserGroup.userGroupAlias FROM [umbracoUser] umbracoUser JOIN [umbracoUser2UserGroup] umbracoUser2UserGroup ON umbracoUser.id = umbracoUser2UserGroup.userId JOIN [umbracoUserGroup] umbr...
true
ce5c494bb8e3b4cb48577c9265748d77c587a01f
SQL
patoacosta/CinemaCRUD
/cinema.sql
UTF-8
3,818
2.890625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.26, for Win64 (x86_64) -- -- Host: localhost Database: cinema -- ------------------------------------------------------ -- Server version 5.7.31 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!4...
true
b65799d61eed0075c175094ab1ce09b30a7e9730
SQL
zainen/LightBnB
/seeds/01_seeds.sql
UTF-8
1,557
2.859375
3
[]
no_license
INSERT INTO users (name, email, password) VALUES ('Craig', '1234@whatsit.com', '$2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBIDRh70tGevYzYzQgFId2u.'), ('Max', 'Maxipad@flowcentral.com', '$2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBIDRh70tGevYzYzQgFId2u.'), ('Chris', 'krisxros@x.com', '$2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBIDRh70tGe...
true
a78e280021fd33930b3f6d1d48347bf6255f5528
SQL
Mehul1887/MSSQLDatabase
/MSSQLDatabase/nan/Stored Procedures/GetSubscriptionMasterAll.sql
UTF-8
689
2.828125
3
[]
no_license
-- ============================================= -- Author: <Author,,ADMIN> -- Create date: <Create Date,, 24 Apr 2017> -- Description: <Description,,GetSubscriptionMasterAll> -- Call SP : GetSubscriptionMasterAll -- ============================================= CREATE PROCEDURE [nan].[GetSubscriptionMasterAll] AS...
true
0232f4bdd391811a53c5a9245ee68f9cc288f401
SQL
jhoaquinsito/vet
/backend/web/src/main/resources/database/changelog/changes/2016-02-27_1845.sql
UTF-8
442
2.78125
3
[]
no_license
--liquibase formatted sql --changeset lautaro:final_consumer splitStatements:false -- modifico el nombre de la persona con id=1 de "Sin identificar" a "Consumidor Final" -- y la asocio a la categoría de iva Consumidor Final UPDATE person SET name='Consumidor Final', iva_category=5 WHERE id=1; -- creo la persona físic...
true
fbd4501473bb7a7db4e6687735ed19d272d83244
SQL
dnsosebee/EShop2
/FinalDB.sql
UTF-8
6,771
3.625
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='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTI...
true
93ac2604b0d8b421221f8e51657d8d41cd80a621
SQL
alefwhite/squad2
/banco/script_DML.sql
UTF-8
4,708
2.671875
3
[]
no_license
/* Script de DML Para teste */ USE fcamara; -- tipo_usuario INSERT INTO tipo_usuario(nivel) VALUES('adm'),('gestor'),('funcionario'); SELECT * FROM tipo_usuario; -- cargo INSERT INTO cargo(nome) VALUES ('Abastecedor de Linha de Produção'), ('Abastecedor de Máquinas'), ('Acabador de Embalagens'), ('Açougueiro'), ('A...
true
73afa268821b359ab5a0c92c7f4d7cc7c1c1a22c
SQL
madehim/sql-ex.Solutions
/sql-ex dml/14.sql
UTF-8
409
4.15625
4
[]
no_license
-- Delete the classes having less than three ships in database (taking into account Outcomes table). DELETE FROM Classes WHERE class NOT IN (SELECT class FROM (SELECT b.ship name, a.class class FROM Classes a JOIN Outcomes b ON a.class=b.ship UNION SELECT name, class FROM Ships ) x WHERE name NOT IN (SELECT ship FROM ...
true
001aaf96e6085e5cd873d5767c4462015aa34dcd
SQL
cyinine/hw12
/catalog.sql
UTF-8
746
3.1875
3
[]
no_license
DROP DATABASE IF EXISTS bamazonDB; CREATE DATABASE bamazonDB; USE bamazonDB; CREATE TABLE products ( id INT NOT NULL AUTO_INCREMENT, department VARCHAR(45) NULL, item VARCHAR(45) NULL, price DECIMAL(10,2) NULL, stock INT NULL, PRIMARY KEY (id) ); INSERT INTO products (department,item, price, stock) VALU...
true
f6251b9e8f3dcb19f97ce685be4839d357e8e281
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/tables/TERMINALES.sql
ISO-8859-1
1,588
2.984375
3
[]
no_license
-------------------------------------------------------- -- DDL for Table TERMINALES -------------------------------------------------------- CREATE TABLE "AXIS"."TERMINALES" ( "CEMPRES" NUMBER(2,0), "CMAQFISI" VARCHAR2(50 BYTE), "CTERMINAL" VARCHAR2(50 BYTE), "CUSUALT" VARCHAR2(20 BYTE), "FALTA" DATE, ...
true
c6173b2243b0d1a384d32155cfd5b3d46b691f6d
SQL
roshgor/OSM_bengaluru
/OSM_MySQL_queries.sql
UTF-8
3,505
4.25
4
[]
no_license
#Loading of the CSV FILES into MYSQL database ########################################################### LOAD DATA INFILE 'nodes.csv' INTO TABLE nodes FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\r\n' IGNORE 1 LINES; LOAD DATA INFILE 'nodes_tags.csv' INTO TABLE nodes_tags FIELDS TERMINATED BY ',' EN...
true
a9c98e18776a683ad861beb4cc39a54fd649c540
SQL
davjd/fantasy_ball
/config/postgre_scripts/create_matchup.sql
UTF-8
1,011
3.453125
3
[]
no_license
-- *************** SqlDBM: PostgreSQL ****************; -- ***************************************************; -- ************************************** matchup CREATE TABLE IF NOT EXISTS matchup ( "id" serial NOT NULL, user_1_score int NOT NULL, user_2_score int NOT NULL, ties_count int NOT NULL, ...
true
003565b209b04074bd0794789d4b0d1ba1c9486b
SQL
andri000me/dr.spiral
/datamining_db.sql
UTF-8
2,680
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 24, 2017 at 03:12 PM -- Server version: 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
e9a184100ebac2df3eeec0a52dfa22949daaf4e9
SQL
CUBRID/cubrid-testcases
/sql/_14_mysql_compatibility_2/_04_table_related/_02_alter_change_column/_01_name_change/cases/1013.sql
UTF-8
737
3.75
4
[ "BSD-3-Clause" ]
permissive
---- ALTER TABLE ... CHANGE COLUMN -- constraints : no -- ordering : no order defined -- name : change -- type : type change -- other : -- no name collision create table t1 ( i integer ); insert into t1 values (11),(3112),(1000012),(1002000),(1090000),(21); select * from t1 order by 1; show columns in t1; alter ...
true
0386daa6c4bc4b3fce1a083758c9ba523de9b981
SQL
BlessingSanusi/bamazon
/seed.sql
UTF-8
393
2.765625
3
[]
no_license
CREATE DATABASE Bamazon; use Bamazon; CREATE TABLE `products` ( `item_id` int(11) NOT NULL AUTO_INCREMENT, `product_name` varchar(45) DEFAULT NULL, `department_name` varchar(45) DEFAULT NULL, `price` decimal(10,2) DEFAULT NULL, `stock_quantity` int(11) DEFAULT NULL, PRIMARY KEY (`item_id`) ) ENGINE=InnoDB...
true
f754104690c112174f601ce5159b379fee52dc01
SQL
Xlight5/miaoshashop
/miaoshashop.sql
UTF-8
10,054
3.078125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50528 Source Host : localhost:3306 Source Database : miaoshashop Target Server Type : MYSQL Target Server Version : 50528 File Encoding : 65001 Date: 2020-08-31 18:36:25 */ SET FOREIGN_KEY_CHECKS...
true
1bf9b0289664ab9a57b5f51aeb03275bd79efa1a
SQL
bigBadEggs/springcloud
/microcloud-provider-dept-8001/src/main/java/dept-8001.sql
UTF-8
558
2.796875
3
[]
no_license
drop database if exists ithm8001; create database ithm8001 character set utf8; use ithm8001; create table dept( deptno bigint auto_increment, dname varchar(50), dbname varchar(50), constraint pk_deptno primary key(deptno) ); insert into dept(dname, dbname) values ('开发部', database()); insert into dept(dname, dbname)...
true
eb2a98ecde6bbe6ceffc6a531447e74d3ccfcc82
SQL
TruongCongToan/database-s-final-exam
/cuoiky.sql
UTF-8
2,001
3.59375
4
[]
no_license
create database quanly; create table MonHoc ( MaMH varchar(20) not null, TenMH varchar(20) not null, SoTC varchar(20) not null ); alter table MonHoc add constraint primary key(MaMH); create table GiaoVien( MaGV varchar(20) not null, HoGV varchar(20) not null, TenGV varchar(20) not null, DonVi varchar(20) not null );...
true
7cf04a55c376760a78715f3fae02ddf4fd8a1a5c
SQL
AdonayCalix/PROYECT-FOJJ
/BD/proyecto.sql
UTF-8
3,790
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 28-11-2017 a las 19:51:22 -- Versión del servidor: 10.1.19-MariaDB -- Versión de PHP: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
true
2e1d15518ccbafb75726717dfe2aecf4d3785d9c
SQL
VizualAbstract/NostalgiaEQ-Database
/aa_required_level_cost.sql
UTF-8
4,346
2.90625
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.0.21-MariaDB - mariadb.org binary distribution -- Server OS: Win64 -- HeidiSQL Version: 11.3.0.6295 -- -----------------------------------------------...
true
5c0ab00ae653d1bd0ff69a5e1b0975c2a159df83
SQL
mullerpaul/DBAstuff
/warehouse/resources/database/operationalstore/refresh_sql/lego_cac_current.sql
UTF-8
3,545
2.953125
3
[]
no_license
/******************************************************************************* SCRIPT NAME lego_cac_current.sql LEGO OBJECT NAME LEGO_CAC_CURRENT CREATED 08/10/2016 ORIGINAL AUTHOR Paul Muller ***************************MODIFICATION HISTORY ******************************** ******...
true
4a1ffe0ef4f880069bc67cd38c7192d10802bffb
SQL
ndean87/happy-hour-backend
/11-24-dbdump.sql
UTF-8
596,156
2.953125
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.6 -- Dumped by pg_dump version 10.1 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_...
true
8ab71cdf636e03f9028c20f286659ef3444c7ab9
SQL
Martin1987/myTestCode
/Pro_Oracle_SQL/chapter01_scripts/lst-01-16.sql
UTF-8
233
2.84375
3
[]
no_license
/* Listing 1-16 */ insert into hr.jobs (job_id, job_title, min_salary, max_salary) values ('IT_PM', 'Project Manager', 5000, 11000) ; insert into scott.bonus (ename, job, sal) select ename, job, sal * .10 from scott.emp;
true
0080e3e119a81b29cea5ad1d8ea7bf715e6c51f1
SQL
dcormar/LibraryMavenJDBC
/bibliotecaMavenJDBC/src/main/resources/db/sql/create-db.sql
UTF-8
642
2.84375
3
[]
no_license
create table AUTORES ( NOMBRE VARCHAR (100) PRIMARY KEY , NACIONALIDAD CHAR (50), COMENTARIOS CHAR (200) ) ; create table DIRECCIONES ( CALLE VARCHAR (100) PRIMARY KEY, NUMERO VARCHAR (10), POBLACION VARCHAR (50), CP VARCHAR(10), PROVINCIA VARCHAR (30) ) ; create table EDITOR...
true
f67826c41c5c20c18ab6bb48c733f4247fbe970b
SQL
xuanson2000/bandokhoangsantinhlangson
/public/database/map.sql
UTF-8
2,568
3.171875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 14, 2020 at 08:46 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
4882725198d37f74e611302c3da82b9ce6454758
SQL
futprdiego/login_php_bootstrap
/uteis/estruturado.sql
UTF-8
704
3.265625
3
[]
no_license
CREATE DATABASE estruturado; USE estruturado; CREATE TABLE usuarios ( usuario VARCHAR(45) NOT NULL PRIMARY KEY, senha VARCHAR(32) NOT NULL, idPessoa BIGINT NOT NULL, situacao ENUM('true','false') NOT NULL DEFAULT 'true', administrador ENUM('true','false') NOT NULL ); CREATE TABLE pessoas ( i...
true
1cd03050b14f770df527ec97ea37868a5fb59e6d
SQL
tavolafourcade/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/102-rating_shows.sql
UTF-8
246
3.703125
4
[]
no_license
-- Lists all shows from hbtn_0d_tvshows_rate by their rating. SELECT tv_shows.title, SUM(tv_show_ratings.rate) AS rating FROM tv_shows LEFT JOIN tv_show_ratings ON tv_shows.id=tv_show_ratings.show_id GROUP BY tv_shows.title ORDER BY rating DESC;
true
a9006121a7e5b3993975dc20fce42e6575c1fbb8
SQL
anare/trustTests
/test1/SQLQuery.sql
UTF-8
3,249
3.453125
3
[]
no_license
/*!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 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101...
true
389d6d2e17288504332347ff424a92a6836c036b
SQL
priyayidimas/sipejek
/public/sipejek_beta_db.sql
UTF-8
46,914
3.109375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : mysqli_connect Source Server Type : MySQL Source Server Version : 100140 Source Host : localhost:3306 Source Schema : sipejek_beta_db Target Server Type : MySQL Target Server Version : 100140 File Encoding : 65001 Date...
true
2145d58d86b865707008d7e93e27b7276e8602ad
SQL
Gangmin-dev/practice-DB
/src/course.sql
UTF-8
257
3.6875
4
[]
no_license
CREATE TABLE IF NOT EXISTS `course` ( `id` INT NOT NULL AUTO_INCREMENT, `title` VARCHAR(15) NOT NULL, `subject_id` INT NOT NULL, PRIMARY KEY (`id`), CONSTRAINT `fk_course_subject_id` FOREIGN KEY (`subject_id`) REFERENCES `subject` (`id`));
true
388d5b115290d9606c2d7fa9f7c359c352c5e01b
SQL
A-725-K/EasyBeer
/Cassandra/beers_by_idibu/workload.cql
UTF-8
680
3.640625
4
[]
no_license
USE ks_user10; EXPAND ON; -- Remove all beers with international bitterness unit smaller than 1 DELETE FROM beers_by_idibu WHERE clusteringid IN (1,2,3) AND ibu < 1; -- Remove all beers with international bitterness unit grater than 150 DELETE FROM beers_by_idibu WHERE clusteringid IN (1,2,3) AND ibu >= 150; -- Ret...
true
7b00122b4863ae63095ce316476f03191adc62a2
SQL
eapereira/coparticipacao
/CoParticipacaoCore/src/main/resources/20181011-004-dml-INTERVALOR-8EAPM.sql
UTF-8
29,792
2.765625
3
[]
no_license
/** * Edson - 23/07/2018 * Script para criar processo Abbvie */ drop procedure if exists PROC_CREATE_HOC; delimiter $$ create procedure PROC_CREATE_HOC() LANGUAGE SQL DETERMINISTIC SQL SECURITY DEFINER COMMENT 'Script para configurar o Hospital Oswaldo Cruz' BEGIN declare VAR_NM_SCRIPT_REQUIRED varchar( 400 ) d...
true
4de55643505f98fcabd4d1028b0bb70a2351cd8c
SQL
christian-fries/color_manager
/ext_tables.sql
UTF-8
729
2.890625
3
[]
no_license
# # Table structure for table 'tx_colormanager_domain_model_color' # CREATE TABLE tx_colormanager_domain_model_color ( uid int(11) NOT NULL auto_increment, pid int(11) DEFAULT '0' NOT NULL, name varchar(255) DEFAULT '' NOT NULL, color varchar(255) DEFAULT '' NOT NULL, tstamp int(11) unsigned DEFAULT '0' NOT NUL...
true
ce641159e400ecb13db292f679dafe7bdfc0de74
SQL
wagner-goncalves/sr-coletor
/src/Downloader/Camara/comandos.sql
UTF-8
5,292
3.21875
3
[]
no_license
INSERT INTO camara_processamento SET dataHora = CURRENT_TIMESTAMP(); -- Depende: camara_processamento TRUNCATE camara_partido; ALTER TABLE camara_partido CHANGE COLUMN dataCriacao dataCriacao CHAR(10) NULL DEFAULT NULL, CHANGE COLUMN dataExtincao dataExtincao CHAR(10) NULL DEFAULT NULL ; LOAD XML LOCAL INFILE 'D:\Ob...
true
058da1f7f29504fab7dcb5dbd8618a0d1a4edba0
SQL
justusfowl/comfash-be
/db/db-schema-cfdata-2.sql
UTF-8
670
3.34375
3
[]
no_license
INSERT INTO tblversion VALUES(2, CURRENT_TIME); CREATE TABLE `cfdata`.`tblfollowers` ( `followerId` varchar(50) NOT NULL, `followedId` varchar(50) NOT NULL, `createdAt` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`followerId`, `followedId`), INDEX `followingForeignKey_idx` (`followedId` ASC), CO...
true
868a42e4dcd9f16e7aaecc58dfe3866e0934387f
SQL
AkhileshDahat/testAkhilesh
/genus/install/db/core_space_modules.sql
UTF-8
410
2.890625
3
[]
no_license
CREATE TABLE `core_space_modules` ( `workspace_id` int(11) NOT NULL, `teamspace_id` int(11) DEFAULT NULL, `module_id` int(11) NOT NULL, `date_start` date DEFAULT NULL, `date_end` date DEFAULT NULL, `datetime_installed` datetime DEFAULT NULL, UNIQUE KEY `workspace_id` (`workspace_id`,`teamspace_id`,`module...
true
5ac837b99cffaf9eb1e7a1ff08b2a8fd955b2cfa
SQL
dattack/dbping
/src/test/scripts/commodities_sqlite.sql
UTF-8
9,856
2.703125
3
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
create table commodities ( day TEXT, name TEXT, price REAL, open_price REAL, high_price REAL, low_price REAL, volume INTEGER, change REAL ); insert into commodities values ('31/07/2015', 'Brent Oil', 52.85, 53.84, 54.12, 52.24, 121510, -2.09); insert into commodities ...
true
a6d9e60d365d638886050b9cf5f0def61a69a8e3
SQL
fl061157/core-server
/src/main/resources/doc/cql/20150707.cql
UTF-8
572
2.71875
3
[]
no_license
alter table contact_request add source text; alter table friends add source text; INSERT INTO app_key_info (app_key, app_secret ) VALUES ( 100000,'dadcseqd13131cdadfa1'); CREATE TABLE cg_third_app_users( user_id text, type text, third_app_user_id text, PRIMARY KEY(user_id, type) ) WITH COMMENT = 'cg ...
true
6496e784126de4744e94f4a66d9b3d953ba68e15
SQL
davidfang/website
/common/config/xwjtoa.sql
UTF-8
58,125
3.1875
3
[ "BSD-3-Clause" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 2015-11-04 17:30:25 -- 服务器版本: 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 */; /*!40101 SET @...
true
c85c996579f7d8487211a457fb537ab31ab6689b
SQL
etiik37/amra_groupe3
/BDD/createBD.sql
UTF-8
1,800
3.453125
3
[]
no_license
CREATE TABLE as_User ( id INT AUTO_INCREMENT PRIMARY KEY, login VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL, role VARCHAR (255) NOT NULL) ; CREATE TABLE as_Service ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255) NOT NULL) ; CREATE TABLE as_ServiceComposition ( id INT AUTO_INCREMENT PRIMARY KEY, u...
true
cab9472733d18ead189b3afbdb97951b0e6fbb71
SQL
NZSpark/bullstock
/bull-stock/hateoas-demo/hateoas-order/src/main/resources/schema.sql
UTF-8
247
2.609375
3
[]
no_license
drop table t_order if exists; create table t_order ( id bigint auto_increment, user varchar(64), stock_name varchar(64), volume int, price double , create_time timestamp , update_time timestamp, primary key (id) )
true
2149837d74673cfcfe75537a65f47b62982da3c8
SQL
ptrnov/ubudsatu
/db/modul_permission.sql
UTF-8
5,428
2.59375
3
[ "BSD-3-Clause" ]
permissive
/* Navicat MySQL Data Transfer Source Server : Localhost Source Server Version : 50624 Source Host : localhost:3306 Source Database : ubudsatu Target Server Type : MYSQL Target Server Version : 50624 File Encoding : 65001 Date: 2016-01-28 10:00:35 */ SET FOREIGN_KEY_CHECKS=0; -- ...
true
a29bf10fd0c6a26cf477a9863d5c36d5d6c6438f
SQL
masardi95/PENGIRIMAN_DATA_AJI
/db/kirimdata.sql
UTF-8
14,623
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 01 Okt 2020 pada 07.43 -- Versi server: 10.4.13-MariaDB -- Versi PHP: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
true
460f64d8dc4cb9e32d5eb013ebecec96450d441d
SQL
DaTrueBrad/sql-2-answers
/join.sql
UTF-8
1,114
3.703125
4
[]
no_license
-- problem 1 select * from invoice_line where unit_price > 0.99; -- problem 2 select i.invoice_date, c.first_name, c.last_name, i.total from invoice i join customer c on i.customer_id = c.customer_id; -- problem 3 & 4 select c.first_name as customer_first_name, c.last_name as customer_last_name, e.first_name as support...
true
d696c010b11914ea451b4c94e3f3e3b926128a4b
SQL
perlfu/open-habitats
/clc.sql
UTF-8
526
2.953125
3
[]
no_license
create table clc06 (id int, code char(3), name varchar(10)); select AddGeometryColumn('clc06', 'geom', 3035, 'MULTIPOLYGON', 2); create index clc06_gix on clc06 using GIST (geom); create unique index on clc06 (id); create index on clc06 (code); create table clc_tiled (id int, code char(3), name varchar(10)); select Ad...
true
9c6a92fff543717a33000ccebd7734012fa36b3f
SQL
gg1711/Datebase-Management-System
/lab 3/dbq2.sql
UTF-8
1,469
3.921875
4
[]
no_license
ALTER SESSION SET NLS_DATE_FORMAT='YYYY-MM-DD'; drop table transaction; create table transaction( transNo int not null primary key, acctNO int not null, tr_date date not null, amount int not null ); insert into transaction values('101','2001','2020-01-15','1000'); insert into transaction values('102'...
true
14d2081175f731fcc1173d3c0e9e32b2804532fc
SQL
igit-cn/jmqtt
/jmqtt-broker/src/main/resources/conf/jmqtt.sql
UTF-8
5,646
3.53125
4
[ "Apache-2.0" ]
permissive
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for jmqtt_event -- ---------------------------- DROP TABLE IF EXISTS `jmqtt_event`; CREATE TABLE `jmqtt_event` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键:也是集群节点批量拉消息的offset', `content` text NOT NULL COMMENT '...
true
968dff714c1c3e74557b42dc52df468083ef8c1c
SQL
rachelucard/DigicraftUAS
/admin/backup/20180523_backup_database_1527046503.sql
UTF-8
1,879
2.84375
3
[]
no_license
DROP TABLE admin; CREATE TABLE `admin` ( `username` varchar(200) NOT NULL, `nama` varchar(200) NOT NULL, `password` varchar(200) NOT NULL, `lastlogin` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`username`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSERT INTO admin VALUES("adsi","Administrator...
true
15437e03365d9d5c260e03b0b3328cc825b48ee3
SQL
ncss/projects-2016-2
/db/create_tables.sql
UTF-8
1,780
3.390625
3
[]
no_license
---- Create Database --CREATE footbook; -------- Create Tables ---- Create Users Table CREATE TABLE users( id INTEGER PRIMARY KEY, username TEXT NOT NULL, password TEXT NOT NULL, email TEXT NOT NULL, fname TEXT NOT NULL, lname TEXT NOT NULL, dob TEXT, postcode TEXT NOT NULL, countr...
true
d96b1703237abbd7d81daf327fc5de2ae20b8e8b
SQL
Gingmin/springboot-mybatis-test
/script/script.sql
UTF-8
491
3.609375
4
[]
no_license
DROP TABLE IF EXISTS MEMBER; CREATE TABLE MEMBER( NO INTEGER AUTO_INCREMENT PRIMARY KEY COMMENT '사번', ID VARCHAR(50) NOT NULL UNIQUE COMMENT '아이디', PWD VARCHAR(255) NOT NULL COMMENT '비밀번호', ENROLLDATE DATETime DEFAULT CURRENT_TIMESTAMP COMMENT '가입일' ) ENGINE=INNODB DEFAULT CHARSET=UTF8; CREATE TABLE AUT...
true
54794d9c5cfaeeca8071b445531828690be23d6d
SQL
dharanitharans/Java-project
/RestaurantManagement.sql
UTF-8
4,119
3.625
4
[]
no_license
Drop table customer_login; Drop table customer_profile; Drop table order; Drop table items; Drop table chef; Drop table waiter; Drop table bill; Drop table cart; Drop table dinning_table; Drop table order_status; Drop table card; Drop table payment_mode; Create table customer_login( customerid ...
true
429531f88c1424cf4b91385e73c8afacb416ef1e
SQL
ro-msg-spring-training/online-shop-roliboy
/src/main/resources/db/migration/V1_4__create_location.sql
UTF-8
257
2.515625
3
[ "MIT" ]
permissive
create table `location` ( `id` integer not null auto_increment, `name` varchar(255), `country` varchar(255), `city` varchar(255), `county` varchar(255), `street_address` varchar(255), constraint pk_location primary key (`id`) );
true
090385a157d35429026a76e647236ce2e5843f6f
SQL
CM7CHAEL/veterinaria
/base/veterinaria.sql
UTF-8
23,814
3.375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 04-12-2017 a las 13:22:47 -- Versión del servidor: 5.5.24-log -- Versión de PHP: 5.4.3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
0384344833b9d427ff61e3dd0d7f4a80156549fb
SQL
CCE-3RD-YEAR/sales_inventory
/database/sales_inventory_db.sql
UTF-8
10,938
3.109375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.24, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: sales_inventory_db -- ------------------------------------------------------ -- Server version 5.7.24 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESU...
true
6d3012f9519053171e3dcf251851f54d6b77d5a1
SQL
SurajitPoddar/MiniBank-project
/Minibank.sql
UTF-8
1,295
3.34375
3
[]
no_license
desc customer; desc transaction; DESC fixeddepositaccount; alter table savingsaccount add foreign key (IFSC) references intereste(IFSC); alter table fixeddepositaccount add foreign key (IFSC) references intereste(IFSC); alter table intereste rename to interestrate; alter table savingsaccount add column savstartdat...
true
44867d2478bd67bac9e88abd062f50dfa1a0d5c0
SQL
PaulDThomas/21.180-commander
/sql/sr_transfer_cash.sql
UTF-8
7,388
3.546875
4
[]
no_license
use asupcouk_asup; /*!50003 SET character_set_client = latin1 */ ; /*!50003 SET character_set_results = latin1 */ ; /*!50003 SET collation_connection = latin1_swedish_ci */ ; Drop procedure if exists sr_transfer_cash; -- -------------------------------------------------------------------------------- -- Routine DDL...
true
0c71ebd875e27534ce4238dece56e2d8ba9eab71
SQL
TerentievEvgany/cinemaService
/src/main/resources/sql/create-db.sql
UTF-8
376
2.890625
3
[]
no_license
CREATE TABLE users ( id INTEGER PRIMARY KEY, name VARCHAR(30), email VARCHAR(50) ); CREATE TABLE events ( name VARCHAR(30) PRIMARY KEY , rating VARCHAR(10), eventDate DATE, auditorium VARCHAR(30) ); CREATE TABLE auditoriums ( name VARCHAR(30) PRIMARY KEY, vipSeats VARCHAR(30), seatNumber INTEGER ); CR...
true
0b293e120cd6aced103f4ae225f62b8b86fd4a00
SQL
IvanVarabei/giftCertificateAdvanced
/api/src/main/resources/db/migration/V1.0__create_sсhema.sql
UTF-8
2,984
3.96875
4
[]
no_license
create table gift_certificate ( id serial not null primary key, name varchar(64) not null, description varchar(512), price numeric(16, 2) not null, duration integer not null, created_date timestamptz not null default (now() at time zone 'UTC'), ...
true
c11b2982a337cd0a771fe54c0397cedf2ffcbe02
SQL
NasC0/Telerik_HW_2013-2014
/Databases/10. DatabasePerformance/04. CreateDatabase.sql
UTF-8
364
3.1875
3
[]
no_license
CREATE DATABASE TestDb; USE testdb; CREATE TABLE Logs( LogID int NOT NULL AUTO_INCREMENT, LogText varchar(1000), LogDate datetime, PRIMARY KEY (LogId, LogDate) ) PARTITION BY RANGE (YEAR(LogDate)) ( PARTITION p0 VALUES LESS THAN (1990), PARTITION p1 VALUES LESS THAN (2000), PARTITION p2 VALUES LESS THAN (2010)...
true
862d5a08405cc484c4b6f017293d99b280ba1282
SQL
FordFoundation/ContactMasterList
/6. UpdateContactMasterList.sql
UTF-8
2,656
3.65625
4
[]
no_license
--select tag from tblContacts where tag is not null --update tblContacts set Tag='' where tag is not null UPDATE C SET C.Tag= CASE WHEN ISNULL(S.[Country (Optional)],'')='' THEN ISNULL(C.Tag,'') ELSE ISNULL(C.Tag,'') +','+S.[Country (Optional)] END from tblContacts c inner join TblSubscribedContacts S on s...
true
2ea125d1f13570c38dbcb29c2889dea0e83437ae
SQL
nxhuy-github/multimif_multivote
/src/main/sql/constraints/Voice.sql
UTF-8
731
3.296875
3
[]
no_license
-- Script de contraintes de la table Voice ALTER TABLE Voice ADD PRIMARY KEY (idVoice); -- id table ALTER TABLE Voice ADD FOREIGN KEY (FK_idVoteVoice) REFERENCES Vote(idVote) -- clé étrangère vers Vote CHECK; -- vérifier les contraintes pour les lignes existantes ALTER TABLE Voice ADD CONSTRAINT U_keyVoice UN...
true
d1f555abca758700b60f51a9d11964e4c51f32f4
SQL
coleHafner/colehafner.com
/data/20101228_cms.sql
UTF-8
10,717
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 28, 2010 at 12:43 PM -- Server version: 5.1.44 -- PHP Version: 5.3.2 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
true
18082b6818dc2cbc8cde7534c0b181e4a286cde2
SQL
wkollernhm/bhl-europe
/pre-ingest/ingest/docs/database/create_database.sql
UTF-8
5,936
3.109375
3
[]
no_license
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'; -- ----------------------------------------------------- -- Table `users` -- ----------------------------------------------------- CREA...
true
98a3c9174a1ddd5f800c45c0782b9b28090d2653
SQL
hibarikyouya/findlab
/sql/create.sql
UTF-8
4,404
4.125
4
[]
no_license
-- creation de la base de donnees CREATE DATABASE IF NOT EXISTS prwb; USE prwb; -- creation de la table des utilisateurs CREATE TABLE IF NOT EXISTS user ( login CHAR(30) NOT NULL, firstname CHAR(30) NOT NULL, lastname CHAR(30) NOT NULL, password CHAR(30) NOT NULL, PRIMARY KEY (login) ) ENGINE=InnoDB DEFAULT CHARSET=ut...
true
418ce2a4e24947c1464a29578126d5988611b0a1
SQL
emmagperez/File-and-Database-
/sakila-db/staff_names.sql
UTF-8
297
3.203125
3
[]
no_license
Select staff.first_name, staff.last_name, address, postal_code, district, country.country, staff.email, address.phone From address Right Join staff On address.address_id = staff.address_id Inner Join city On address.city_id = city.city_id Inner Join country On city.country_id = country.country_id
true
60f8a7d83e88c6b2a7b46339073a9914461aec92
SQL
Tatjana95/PBP-AutobuskaStanica
/triggers.sql
UTF-8
3,434
3.40625
3
[]
no_license
use autobuska_stanica delimiter | drop trigger if exists triger_biPolazi_sa_medjustanice | create trigger triger_biPolazi_sa_medjustanice before insert on Polazi_sa_medjustanice for each row begin set new.broj_slobodnih_mesta = (select broj_mesta from Vozilo where id = new.vozilo_id and prevoznik_id = new.prevoznik...
true
f58e3d50ea5d4d0f00028ceae13a5e7afdd228b3
SQL
ashishkamat/-Php-Repo
/SQL/triggers/order_trigger.sql
UTF-8
198
2.6875
3
[]
no_license
CREATE TRIGGER `order_trigger` BEFORE INSERT ON `order_details` FOR EACH ROW BEGIN INSERT INTO order_seq VALUES (NULL); SET NEW.order_id = CONCAT('ORD', LPAD(LAST_INSERT_ID(), 3, '0')); END
true
4715d5b7394192c4e52286193947120402b2dd8f
SQL
pakpake/licence-informatique
/3rd-year/semester-2/gestion-bdd/td/td5/td5.sql
UTF-8
4,786
3.78125
4
[]
no_license
--- titre: TD 5 - BDD date: 15/4/21 --- # Partie 1 Quel est le rôle qui vous est affecté ? Cette requête nous permet de savoir dans quelle table chercher les rôles/privilèges attribués. ```sql select * from dict where comments like '%role%'; ``` On peut voir ci-dessous le role qui nous est attribué : 'UBS_AVANCE' ...
true
d39b10a25c8af4da2db793ae793c60694a3b5dcb
SQL
OscarGauss/comollego.bo
/moduloBaseDeDatos/CREARDBcomollego.sql
UTF-8
1,689
3.390625
3
[]
no_license
CREATE DATABASE comollego; USE comollego; CREATE TABLE sindicato( idsindicato integer NOT NULL AUTO_INCREMENT, nombre varchar(50), tipo varchar(20), direccion varchar(50), telefono varchar(50), PRIMARY KEY (idsindicato) ); CREATE TABLE linea( idlinea integer NOT NULL AUTO_INCREMENT, nombre varch...
true
740c05a4f9cb84ca12985f9bc6e4b2229c514ace
SQL
pacsayt/DBPRO1
/sql/dbpro1.sql
UTF-8
3,149
3.484375
3
[]
no_license
/* dbpro1.sql */ DROP TABLE szamok ; DROP TABLE sztringek ; DROP TABLE kenyszer ; DROP TABLE datum ; DROP TABLE seq ; DROP TABLE gyerek ; DROP TABLE szulo ; DROP SEQUENCE seq_proba ; CREATE TABLE szamok ( szam_tiz NUMBER(10) , szam_ket_nn NUMBER(2) NOT NULL , szam_har_...
true
27441d4d0341164f34f0dfe1291a2def8cd5240d
SQL
soniksarungale/DigiPaper
/digipaper.sql
UTF-8
2,876
3.421875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 24, 2018 at 06:39 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.0.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
3dbbc1d8d5f2c650fc649ea0bedf777fc0d38dd4
SQL
DHK810/Multicamp
/mysql/06_13_select in select.sql
UTF-8
999
4.28125
4
[]
no_license
select * from products where unitprice between 15 and 20; -- Q. 가격이 15에서 20사이인 상품(Products) 의 생산자 목록 조회 select * from suppliers where SupplierID = ( select supplierID from products where unitprice between 15 and 20 ); select supplierid, case supplierid when 1 then 'a' when 2 then 'b' when 3 then 'c'...
true
698d2261731e33fdc80b19ab4aa8e9b37d1353f2
SQL
Felpz13/IFLIX-CI
/sql/iflix.sql
UTF-8
6,008
3.453125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 03-Mar-2019 às 19:45 -- Versão do servidor: 10.1.37-MariaDB -- versão do PHP: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
4609ddd9b293749765a77d741b079c098332f24d
SQL
ashish-r/Fizz-Buzz
/PostgreSQL/fizzbuzz.sql
UTF-8
316
2.984375
3
[ "MIT" ]
permissive
SELECT result from (SELECT generate_series, case when MOD(generate_series, 15) = 0 then 'FizzBuzz' when MOD(generate_series, 3) = 0 then 'Fizz' when MOD(generate_series, 5) = 0 then 'Buzz' else generate_series::text end as result FROM generate_series(1,100) )as query;
true
442463718528a2ea785661f353cfa7639a92cb13
SQL
Malow/AccountServer
/CreateSqlTables.sql
UTF-8
267
2.578125
3
[]
no_license
CREATE TABLE Accounts (id INT NOT NULL AUTO_INCREMENT, username VARCHAR(40) NOT NULL UNIQUE, PASSWORD VARCHAR(100) NOT NULL, email VARCHAR(50) NOT NULL UNIQUE, pw_reset_token VARCHAR(50), failed_login_attempts INT NOT NULL, PRIMARY KEY (ID));
true
8c50adbe6dc499c97551c40e324eec5d9d34d70f
SQL
regiamariana/2s2019-t2-hroads-sprint-1-bd
/T_JeanMarianaLucas_hroads_criacao_01.sql
UTF-8
801
2.84375
3
[ "MIT" ]
permissive
USE T_HRoads; --DDL --CRIACAO CREATE TABLE TIPO ( IDTIPO INT PRIMARY KEY IDENTITY , TIPO VARCHAR (200) NOT NULL UNIQUE ); CREATE TABLE HABILIDADE ( IDHABILIDADE INT PRIMARY KEY IDENTITY , HABILIDADE VARCHAR (200) NOT NULL ,IDTIPO INT FOREIGN KEY REFERENCES TIPO (IDTIPO) ); CREATE TABLE CLASSE ( IDCLASSE INT PRIMARY...
true
ba17abc71f411491c4e50a7f0119af41d1177897
SQL
BergLars/TimeTracker
/TimeTracker-Database/tables/timeentry.sql
UTF-8
865
3.28125
3
[]
no_license
-- Table: timetracker.timeentry -- DROP TABLE timetracker.timeentry; CREATE TABLE timetracker_backend.timeentry ( tid SERIAL PRIMARY KEY, userprofile_id integer NOT NULL, project_id integer NOT NULL, description varchar(40) NOT NULL, entrydate date NOT NULL, worktime interval NOT NULL, clie...
true
571525dc602f7f2b92b9c9a84de2da223aa52ea3
SQL
revryazmimr/wp2
/database/sistemku.sql
UTF-8
3,197
3.40625
3
[]
no_license
-- -------------------------------------------------------- -- Host: localhost -- Server version: 5.7.24 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 10.2.0.5599 -- -------------------------------------------------------- /...
true
0936f401af9ed59193f13a3cee8bcf0c5ced8f63
SQL
gopi158/Sample
/FinaoDb/Stored Procedures/profileimage.sql
UTF-8
230
2.515625
3
[]
no_license
DELIMITER // CREATE PROCEDURE profileimage (IN insert_id INT) BEGIN insert into fn_user_profile (user_id, createdby, createddate, updatedby, updateddate) values (insert_id, insert_id, NOW(), insert_id, NOW()); END // DELIMITER //
true
d77d08d5f55d299512f4a8db07abfebc6493ea2b
SQL
polavarapup2/CTRP_4x_PA
/pa/dbscripts/db-upgrade/postgresql/4.3/PO-7751-2.sql
MacCentralEurope
31,801
3.109375
3
[]
no_license
UPDATE pa_properties set value='<hr> <p><b>Title: </b>${trialTitle}</p> ${trialIdentifiers} ${otherIdentifiersRow} <table border="0"> <tr> <td><b>Submission Date:</b></td> <td>${submissionDate}</td> </tr> </table> <hr> <p>Date: ${CurrentDate}</p> <p>Dear ${SubmitterName},</p> <p>You have successfully c...
true
4c5594869ecf6174976073ad679d7f8cf78dcc71
SQL
brunowaldvogel/bootcamp-meli
/Modulo13/Aula2/movies-db-exercicio-3.sql
UTF-8
3,151
4.125
4
[]
no_license
/* Este arquivo conterá as respostas para os enunciados do Exercício Individual SQL 3 - Movies DB EXERCÍCIOS 1) Explique o conceito de normalização e para que é usado. 2) Adicione um filme à tabela de filmes. 3) Adicione um gênero à tabela de gêneros. 4) Associe o filme do Ex 2. ao gênero cria...
true
e490f74b4692ef4fdd721ba4ac7467c0941afa9a
SQL
mrGeist469/scheme_sql
/scheme.sql
UTF-8
649
3.125
3
[]
no_license
create table if not exists Styles ( id serial primary key, name varchar(20) not null unique ); create table if not exists Executors ( id serial primary key, styles_id integer references Styles (id), executors_name varchar (80) not null unique ); create table if not exists Albums ( id serial pr...
true
0aba99cd71ee6c87823c1d38602c0f5cb7f387d1
SQL
noccy80/lepton-ng
/dist/sql/groups.sql
UTF-8
277
2.875
3
[]
no_license
CREATE TABLE IF NOT EXISTS groups ( id INT PRIMARY KEY AUTO_INCREMENT, groupname VARCHAR(32) NOT NULL, description VARCHAR(256) NOT NULL DEFAULT '', flags VARCHAR(32) NOT NULL, active TINYINT(1) NOT NULL, uuid VARCHAR(37) NOT NULL, UNIQUE KEY groupname(groupname) );
true
41e3ac9426fb5c3c06a2c9fa3ffed3e3e8931a08
SQL
MrScX/nsu_acm_sigapp_sc_website
/db_schema/db_schema.sql
UTF-8
5,784
3.640625
4
[]
no_license
# everything starting with a hash is a comment and is ignored # Drop the DB if it exist, and then re-create the DB DROP DATABASE IF EXISTS nsu_sigapp_sc; CREATE DATABASE IF NOT EXISTS nsu_sigapp_sc; USE nsu_sigapp_sc; # Drop tables if they already exist DROP TABLE IF EXISTS users; DROP TABLE IF EXISTS roles; DR...
true
15a944d28092b0fc2fef0788603f2453a291eb2a
SQL
suarezluis/DB_ClassRepo
/fkumi/ITSE2309 - Oracle Database Programming/SQL Examples/Chapter 9 - Joins/Full-Outer-Join.sql
UTF-8
257
3.703125
4
[]
no_license
SELECT c.customer#, c.lastname, c.firstname, c.address, c.city, o.order#, o.customer#, o.orderdate FROM customers c FULL OUTER JOIN orders o ON c.customer# = o.customer# ORDER BY c.lastname, c.firstname;
true