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
12e0a8a8e47bbfe6f16588bf140ce3d91ef09092
SQL
Ifrago/Ejercicio-Consulta-de-Libros
/sql/booksdb-data.sql
WINDOWS-1250
1,914
2.75
3
[]
no_license
source booksdb-schema.sql; insert into users values('alicia', MD5('alicia'), 'Alicia Jackson', 'alicia@acme.com'); insert into user_roles values ('alicia', 'registered'); insert into users values('blas', MD5('blas'), 'Blas Guillermo', 'blas@acme.com'); insert into user_roles values ('blas', 'registered'); insert int...
true
4d05fceee550e49a27d6fdfbb94ba6c26906da8f
SQL
VyacheslavGL/PHP_work
/front-controller/UserArticlePicture.sql
UTF-8
1,091
3.328125
3
[]
no_license
create database frontcontroller; CREATE TABLE IF NOT EXISTS `frontcontroller`.`Picture` ( `id` INT(11) NOT NULL auto_increment, `title` VARCHAR(150) NOT NULL, `description` MEDIUMTEXT NOT NULL, `img` VARCHAR(255) NOT NULL, `yearCreated` YEAR NOT NULL, PRIMARY KEY (`id`)) ENGINE = InnoDB DEFAULT CHARACTER S...
true
6b41d81b4a13a589d33a761e9db884593cc683bf
SQL
guillaume-petit/JWKingdomHall
/data/patches/20150810_add_link_user_publisher.sql
UTF-8
223
3.15625
3
[ "MIT" ]
permissive
ALTER TABLE publisher ADD user_id INT DEFAULT NULL; ALTER TABLE publisher ADD CONSTRAINT FK_9CE8D546A76ED395 FOREIGN KEY (user_id) REFERENCES fos_user (id); CREATE UNIQUE INDEX UNIQ_9CE8D546A76ED395 ON publisher (user_id);
true
50d4f155d63a23605a506f1888c7e2aa4a8c7ba7
SQL
viszi/codes
/CodeWars/7kyu/SQL/014-sql-right-and-left.sql
UTF-8
592
3.6875
4
[ "MIT" ]
permissive
-- https://www.codewars.com/kata/5943a58f95d5f72cb900006a -- You are given a table named repositories. The table shows project names of major cryptocurrencies, their numbers of commits and contributors and also a random donation address ( not linked in any way :) ). -- For each row: Return first x characters of the pro...
true
00465385d310fb6e4605500da55a76d032bd3918
SQL
thesoftwarefactoryuk/BuoyBot
/observations.sql
UTF-8
445
2.5625
3
[ "MIT" ]
permissive
-- PREPARE DATABASE CREATE TABLE observations ( uid serial NOT NULL, observationtime timestamp, windspeed real, winddirection varchar (3), significantwaveheight real, dominantwaveperiod integer, averageperiod real, meanwavedirection varchar (3), airtemperature real, watertempera...
true
4ab26aeb29ffb4375a13eeda6b9f7b24da88299d
SQL
MARCOSBLACKER7/ESCOM-TRAYECTORIA
/BASES DE DATOS/Apuntes clases/Oracle by example/Capitulo2/Scripts/Ejercicio 7.sql
UTF-8
422
2.96875
3
[]
no_license
set echo off; Column Descripcion format A30; Column Costo format 99999; Column Prerequisito format 99999999; set colsep ' * '; Spool "C:\Users\Acer\Desktop\Ejercicios\Oracle by example\Capitulo2\Salidas\Ejercicio 7.txt" Select Description "Descripcion", Cost "Costo", Prerequisite "Prerequisito" From Cours...
true
896f78adbaea9620b4efa488f9dd7d9b7483490b
SQL
France-ioi/AlgoreaBackend
/db/migrations/2004210235_rename_contest_related_columns.sql
UTF-8
1,560
3.734375
4
[ "MIT" ]
permissive
-- +migrate Up ALTER TABLE `items` CHANGE COLUMN `contest_participants_group_id` `participants_group_id` BIGINT(20) DEFAULT NULL COMMENT 'Group to which all the entered participants (users or teams) belong. Must not be null for an explicit-entry item.', CHANGE COLUMN `contest_max_team_size` `entry_max_t...
true
864dfd9444f9202493e2b7645380119458fd236a
SQL
weijx-xa/schoolclub
/schoolclubdocument/clubmessage.sql
UTF-8
41,418
3.125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : watermelon Source Server Version : 50713 Source Host : localhost:3306 Source Database : schoolclub Target Server Type : MYSQL Target Server Version : 50713 File Encoding : 65001 Date: 2016-12-29 17:28:26 */ SET FOREIGN_...
true
ab6eede1f3c958c8eff265966970ae42f52c4753
SQL
tpeschke/bestiary
/db/get/encounter/temperament.sql
UTF-8
198
3.171875
3
[]
no_license
select bt.id, beastid, temperamentid, weight, temperament, tooltip from bbbeasttemperament bt join bbtemperament t on t.id = bt.temperamentid where bt.beastid = $1 order by weight desc, temperament;
true
f92a9ecba740437ba26f1536a6e20c61f0384b86
SQL
yaodehaung/MySQLTutorial
/examples/ch12/ch12_01_Stored Routines的應用.sql
UTF-8
290
2.8125
3
[]
no_license
DROP TABLE IF EXISTS mycountry SET @my_code := 'JPN' SELECT @pop_var := Population FROM country WHERE Code = @my_code CREATE TABLE mycountry SELECT Code, Name, GNP, Population FROM country WHERE Code = @my_code OR Population > @pop_var ORDER BY Population
true
1bbf31ec68c93e2a525cfa2a79642fe680c7ee3f
SQL
clam12/471_Project
/InventoryFilled.sql
UTF-8
6,257
3.296875
3
[]
no_license
 # # Structure for table "cpu" # DROP TABLE IF EXISTS `cpu`; CREATE TABLE `cpu` ( `part_id` int(11) NOT NULL AUTO_INCREMENT, `clock_speed` varchar(255) DEFAULT NULL, `cores` varchar(255) DEFAULT NULL, `threads` varchar(255) DEFAULT NULL, PRIMARY KEY (`part_id`), CONSTRAINT `part_id_cpu` FOREIGN KEY (`par...
true
cfd7570bc99f64e43e384098b0c6685ffde74a73
SQL
LeoValter/votingballot
/src/main/resources/db/populateDB.sql
UTF-8
1,465
3.15625
3
[]
no_license
DELETE FROM user_roles; DELETE FROM users; DELETE FROM restaurants; DELETE FROM dishes; DELETE FROM votes; ALTER SEQUENCE GLOBAL_SEQ RESTART WITH 100000; INSERT INTO users (name, email, password) VALUES ('Admin', 'admin@gmail.com', '{noop}admin'), ('User', 'user@gmail.com', '{noop}password'); INSERT INTO user_roles ...
true
23449581b7272accd76e0aa542f5609baae2be37
SQL
ashikurrahmanaust/Shop-Management-System
/package/main/addshop.sql
UTF-8
455
2.53125
3
[]
no_license
set serveroutput on declare name_ shop.name%TYPE; division_ shop.division%TYPE; address_ shop.address%TYPE; owner_name_ shop.owner_name%TYPE; id shop.s_id%TYPE; begin name_ := '&shop_name'; division_ := '&city'; address_ := '&address'; owner_name_ := '&owner_name'; ...
true
fd48dfcfbb66aadacab8c11e88f20bba9e3c25cd
SQL
Wouter36/ThreadOefening
/DbMake.sql
UTF-8
587
2.703125
3
[]
no_license
use boeki; create table WoodRecords( recordID int IDENTITY(1,1) NOT NULL PRIMARY KEY, woodID int NOT NULL, treeID int NOT NULL, x int NOT NULL, y int NOT NULL, ); create table MonkeyRecords( recordID int IDENTITY(1,1) NOT NULL PRIMARY KEY, monkeyID int NOT NULL, woodID int NOT NULL, seqnr int NOT NULL, treeID i...
true
f38db1214606aef31ab5cd1611a59f9a7e1d0cbc
SQL
apache/phoenix
/phoenix-core/src/it/resources/sql_files/add_data.sql
UTF-8
1,280
2.8125
3
[ "MIT", "OFL-1.1", "BSD-3-Clause", "ISC", "Apache-2.0" ]
permissive
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
true
7dddf2cfbeb9676cde5f40b02ecafbb2fa573dfb
SQL
sophiamallaro/Election_Simulation
/VotingSystem/src/addData.sql
UTF-8
4,270
3.46875
3
[]
no_license
DROP TABLE IF EXISTS states; CREATE TABLE states ( addressid SERIAL PRIMARY KEY NOT NULL, stateName VARCHAR(15) NOT NULL, numDistricts INT NOT NULL ); INSERT INTO states(stateName, numDistricts) VALUES('Alabama', 7), ('Alaska', 1), ('Arizona', 9), ('Arkansas', 4), ('California', 53),...
true
d320ab2494b816a1e95c8c51c8badb815ee4500b
SQL
demullane/episodic-apps
/episodic-shows/src/main/resources/db/migration/V3__create_episodes.sql
UTF-8
225
3.28125
3
[]
no_license
create table episodes ( id bigint not null auto_increment primary key, show_id bigint not null, season_number int not null, episode_number int not null, unique key show_id (show_id, season_number, episode_number) );
true
5406ac34deb30138e54383f72a18861f9fe2192d
SQL
kos984/test
/teststuzocom/dump.sql
UTF-8
1,808
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.10deb1 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Сен 03 2012 г., 01:55 -- Версия сервера: 5.1.63 -- Версия PHP: 5.3.5-1ubuntu7.10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD...
true
41b03ca95fac485fce0121d2eb8a3cebbfb56ee8
SQL
homebysix/micromdm
/migrations/201608150001_devices_applications_up.sql
UTF-8
564
2.75
3
[ "MIT" ]
permissive
ALTER TABLE devices_applications DROP CONSTRAINT IF EXISTS devices_applications_application_uuid_fkey; -- DELETE FROM devices_applications; ALTER TABLE devices_applications ADD PRIMARY KEY (application_uuid); ALTER TABLE devices_applications ALTER application_uuid SET DEFAULT uuid_generate_v4(); ALTER TABLE devices_...
true
b8f4633c673ef31493560f90185dff2c610177f7
SQL
din982/authority
/user_role.sql
UTF-8
849
3.328125
3
[]
no_license
use mydemo; #用户,角色与菜单权限、功能权限 drop table if exit user,role,menu,operate; create table user( id int primary key auto_increment, name varchar(64), account varchar(64), password varchar(64) ); create table role( id int primary key auto_increment, name varchar(64) ); create table user_role( uid int , rid int ); ...
true
5972f7a85e8a9b2346e8a5d56aaef818cfd01a0f
SQL
olemathias/nms
/vlan.sql
UTF-8
4,343
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Vert: localhost -- Generert den: 07. Sep, 2014 19:47 PM -- Tjenerversjon: 5.5.38-0ubuntu0.14.04.1 -- PHP-Versjon: 5.5.9-1ubuntu4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
true
654452bc14e35d9de2a03e2b3d59472b34fcfba8
SQL
corneliouzbett/purchaser-order-generator
/out/production/DocumentsGenerator/com/bettkipchumba/java/sql/procument.sql
UTF-8
9,018
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 08, 2018 at 08:24 PM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
f29e23e9d8fa57b602cbd0b4f259e6d3911f790a
SQL
Guidarius/Bamazon
/Bamazon.sql
UTF-8
975
3.5
4
[]
no_license
-- Create a database called 'Bamazon' and switch into it for this activity -- DELETE Bamazon; CREATE DATABASE Bamazon; USE Bamazon; -- Create a table called 'products' which will contain the store inventory -- CREATE TABLE products ( itemID INTEGER(11) AUTO_INCREMENT NOT NULL, product_name VARCHAR(30) NOT NULL, cat...
true
f553d599a8c5600c2d676a6f7d4de01927a7300c
SQL
rachmanlazu/SIsabisa-Fix
/sabisafix.sql
UTF-8
11,753
2.796875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 21 Des 2017 pada 05.08 -- Versi Server: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
18bb1c1368ca559dd33146ffcf79d81571f04046
SQL
benoitdurand/sennece
/sql/chargement-structure.sql
UTF-8
2,674
3.3125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : intraslpr Source Server Type : MySQL Source Server Version : 50623 Source Host : 10.52.62.214 Source Database : chargement Target Server Type : MySQL Target Server Version : 50623 File Encoding : utf-8 Date: 06/02/2015 0...
true
04fd89dd50cfa191607d9c96b4b5b545adc06b4a
SQL
pbs-software/pbs-tools
/PBStools/inst/sql/fos_catch_records.sql
UTF-8
5,821
4.1875
4
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
-- Last modified by RH (2014-06-23) -- Query species catch from GFFOS on DFBCV9TWVASP001 SET NOCOUNT ON -- Trip Hail SELECT H.TRIP_ID, Min(H.HAIL_NUMBER) AS HAIL_NUMBER INTO #TRIP_HAIL FROM GF_HAIL_NUMBER H WHERE H.HAIL_TYPE='OUT' GROUP BY H.TRIP_ID ORDER BY H.TRIP_ID -- HAIL & SET HS SELECT ...
true
b430989b67d42e63cd1e58943ea0ab2d52ca57df
SQL
jasarsoft/fit-src
/bp2/vjezbe_video/bp2_vj05_zadatak01.sql
UTF-8
796
4.125
4
[ "MIT" ]
permissive
/* Vjezbe 5, Zadatak 1 Primjer se radi na Northwind bazi podataka. Menadzment firme zeli da nagradi kupca koji je utrosio najvise novca u februaru mjesecu. Zbog ograniceni sredstava ovaj put ce biti nagradjen samo kupac koji dolazi iz Londona. Prikazati kupca sa sljedecim podacima: ime i prezime (ContactName), ad...
true
73c90d79f25610bffd609ee6f5805e4aaa92a136
SQL
rosolbashar/project-of-software
/cinema.sql
UTF-8
3,028
2.625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 16, 2019 at 10:13 PM -- Server version: 10.1.36-MariaDB -- PHP Version: 5.6.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
a86f42dbd83d97204a58a06b8442121bd3860520
SQL
CarlosAmadorAyala/mcvscripts
/mysql/zeppelin/variables/variables actualizadas/Universo_Negocios/Variables Marcela Enero/RSS_MCV_NEGOCIOS_VAR_MOVIMIENTOS_LINEA_ENE.sql
UTF-8
731
3.265625
3
[]
no_license
%hive DROP TABLE IF EXISTS RSS_MCV_NEGOCIOS_VAR_MOVIMIENTOS_LINEA_ENE; CREATE TABLE RSS_MCV_NEGOCIOS_VAR_MOVIMIENTOS_LINEA_ENE ROW FORMAT DELIMITED FIELDS TERMINATED BY '|' LOCATION 's3://boi-banregio/datalake/data/InteligenciaRiesgos/M&M/MCV/RSS/Enero/RSS_MCV_NEGOCIOS_VAR_MOVIMIENTOS_LINEA_ENE' AS SELECT 'fecha' A...
true
ccb8efdc53ffe7b87051a215097f45c6ab81ad42
SQL
plancaster88/sql_files
/dischargecode_builder.sql
UTF-8
10,058
3.125
3
[]
no_license
/* drop table la_ops_temp.dbo.DischargeCodes create table la_ops_temp.dbo.DischargeCodes ( DischargeCode varchar(2) , Description varchar(500) , DescriptionShort varchar(50) , DischargeStatus varchar(50) ) */ insert into la_ops_temp.dbo.DischargeCodes values --select * from la_ops_temp.dbo.DischargeCodes (...
true
21ce9cd4a34dd303489c9821783ec0b8c3a8a4bd
SQL
shakermegahed/CoreCrud
/BB.WM.Database/Account/Tables/Account.sql
UTF-8
1,064
2.734375
3
[]
no_license
CREATE TABLE [Account].[Account] ( [AccountId] UNIQUEIDENTIFIER NOT NULL, [Email] NVARCHAR (255) NOT NULL, [NormalizedEmail] NVARCHAR (255) NOT NULL, [UserName] NVARCHAR (255) NOT NULL, [NormalizedUserName] NVARCHAR (255) NOT NULL, [FirstName] ...
true
bf3ca97f10f84366513bd545a93ec2616232ea28
SQL
medhanie/akr-web-dev
/backend/db/src/main/resources/db/migration/V1__Create_user_table.sql
UTF-8
739
4.0625
4
[]
no_license
CREATE TABLE users ( username VARCHAR(50) NOT NULL , password VARCHAR(500) NOT NULL , enabled TINYINT NOT NULL DEFAULT 1, PRIMARY KEY (username) ); CREATE TABLE user_roles ( user_role_id int(12) NOT NULL AUTO_INCREMENT, username varchar(50) NOT NULL, role varchar(50) NOT NULL, PRIMARY KEY (user_role_...
true
314b81559e44002cfaaa87d5da2623c48ce928a3
SQL
61160079SE/project_AC
/databases/ac_daily_money.sql
UTF-8
2,405
3.40625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 02, 2021 at 02:21 PM -- Server version: 5.6.38-log -- PHP Version: 7.3.19-1+0~20200612.60+debian9~1.gbp6c8fe1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone...
true
e6f2d870eef53a870c70904f69bd7b67aa0e518d
SQL
johnaohara/db_perftest
/test_apps/sb_jpa_hikari_jdbc/src/main/resources/schema.sql
UTF-8
1,088
2.5625
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS public.person; CREATE TABLE public.person ( id SERIAL PRIMARY KEY, first_name character varying(255) COLLATE pg_catalog."default", last_name character varying(255) COLLATE pg_catalog."default" ) TABLESPACE pg_default; ALTER TABLE public.person OWNER to postgres; INSERT INTO public.p...
true
f6095a3dc3ba32426b3c619dc02d617f3980fd22
SQL
momoDevDL/Tron
/BD/Creation_BD_TRON.sql
UTF-8
6,290
3.59375
4
[]
no_license
/* Fichier : Creation_BD_TRON.sql Auteurs : Antoine AFFLATET 21709838 Mohamed MASBAH ABOU LAICH 21611213 */ /* A METTTRE OBLIGATOIREMENT AU DEBUT - SUPPRESSION DE LA BASE DE DONNEES - CREATION DE LA BASE DE DONNEES - SUPPRESSIONS DE TOUTES LES BASES CREEES POUR LE PROJET */ DROP DATABASE IF EXISTS lightcyclefight...
true
69929d18007d2b8a74f27661b2d9e3f9c15ea024
SQL
anahigo/Trybe_Exercise_Back-End_MySQL_MongoDB_NodeJs
/20_03/Class/Exercise_04.sql
UTF-8
1,172
3.671875
4
[]
no_license
-- EXERCÍCIO 1A SELECT * FROM sakila.customer; SELECT * FROM sakila.customer WHERE customer_id IN (269, 239, 126, 399, 142); -- EXERCÍCIO 2A SELECT * FROM sakila.address; SELECT * FROM sakila.address WHERE district IN ('QLD', 'Nagasaki', 'California', 'Attika', 'Mandalay', 'Nantou', 'Texas'); -- EXERCÍCIO 1B SELECT *...
true
f64ff937e9363429c00104c41508a3e3b280dc77
SQL
nirjonroy/sylhettsc
/system/result7th.sql
UTF-8
2,701
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 12, 2020 at 07:54 AM -- 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
375890eef69f10f9d8df340a9c2684c4c28be971
SQL
bangx2e/NarP-MVCPrj
/WEB/webapp/WEB-INF/classes/kr/web/db/member.sql
UTF-8
614
3.484375
3
[]
no_license
-- member table (member 테이블 생성) create table member( num int primary key auto_increment, id varchar(20) not null, pass varchar(20) not null, name varchar(30) not null, age int not null, email varchar(30) not null, phone varchar(30) not null ) --member 테이블 내용 검색 select * from member; -- insert (저장) inse...
true
9165fd13f9f9750cb3f6e976d7c5075b05a62cd4
SQL
vergil-lai/mysql-node-categoires
/schema.sql
UTF-8
607
3.15625
3
[]
no_license
-- 无限分类表结构 -- 作者:Vergil <vergil@vip.163.com> CREATE TABLE IF NOT EXISTS `category` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `parent_id` int(11) unsigned NOT NULL DEFAULT '0', `level` smallint(5) unsigned NOT NULL DEFAULT '1', `name` varchar(60) NOT NULL, PRIMARY KEY (`id`), KEY `idx_parent_id` (`p...
true
a50b06c6512ccc77b0158a852495fb532f02240a
SQL
okroutDev/SampleDatabases
/Family/Family_Queries.sql
UTF-8
11,427
4.53125
5
[]
no_license
----------------------------------------------------------- -- 14 Fun Family Queries ----------------------------------------------------------- USE Family ----------------------------------------------------------- -- Raw Data SELECT * FROM Person ORDER BY PersonID SELECT * FROM Marriage ORDER BY DateOfWedding --...
true
d3e99aaf971a31c7d70b147b6147ae8a0e329cd6
SQL
Aitor-Ventura/BD1_SQL222
/Ejercicio 2.2.2.sql
UTF-8
1,067
3.71875
4
[]
no_license
--.2.2.1) 'Obtener los nombres de las partes vendidas por proveedores de Telde' con 3 niveles create view ej2221 as select pnombre from p where pn in(select pn from sp where sn in( select sn from s where ciudad = 'Teld...
true
a3c5925ef8c925dd93e91983f809e0e850912ac4
SQL
StephanieHou/Linests
/server/db/linestsDB.sql
UTF-8
2,819
3.625
4
[]
no_license
DROP DATABASE IF EXISTS linestsdb; CREATE DATABASE linestsdb; \c linestsdb; CREATE TABLE users ( user_id SERIAL PRIMARY KEY, username VARCHAR (355) UNIQUE NOT NULL, first_name VARCHAR (50) NOT NULL, last_name VARCHAR (50) NOT NULL, about TEXT NOT NULL, gender TEXT NOT NULL, education TEXT NOT NULL, bi...
true
363b31ca5ac8eb107d3991d67d1049f26a4e26a0
SQL
yiluns/SQL_Intermediate-Advanced_Practice
/yiluns_practice2.sql
UTF-8
3,067
4.1875
4
[]
no_license
-- START Q1 SELECT u.user_id, AVG(r.stars) AS average_star_rating FROM users u JOIN reviews r USING(user_id) GROUP BY 1 HAVING COUNT(*) > 2 ORDER BY 2 DESC LIMIT 5; -- END Q1 -- START Q2 SELECT unnest(catearray) category, SUM(review_count*stars)/SUM(review_count) weighted_average_stars, COUNT(DISTINCT...
true
3301e51000f95f898f6b5b114306d333032983a3
SQL
vias2019/Mysql-node
/bamazon.sql
UTF-8
975
3.5
4
[]
no_license
create database bamazon_db; use bamazon_db; create table products ( item_id int auto_increment not null, product_name varchar (255), department_name varchar (255), price decimal (10.2), stock_quantity integer, primary key (item_id) ); insert into products (product_name, department_name, price, stock_...
true
5e6b8f415c5dfd3abc975bd4662b765ddca937ac
SQL
nguyentruongky/meetup
/sqls/usersClubs.sql
UTF-8
663
2.953125
3
[]
no_license
-- ------------------------------------------------------------- -- TablePlus 2.12(282) -- -- https://tableplus.com/ -- -- Database: meetup -- Generation Time: 2020-01-18 13:21:04.5880 -- ------------------------------------------------------------- DROP TABLE IF EXISTS "public"."usersClubs"; -- This script only cont...
true
230ba1972375a2e3bb4aea24dade6c857947132b
SQL
BluecellChen/SQL-Challenge
/EmployeeSQL/EmployeeSQL_8queries.sql
UTF-8
2,272
4.59375
5
[]
no_license
-- 1. List the following details of each employee: employee number, last name, first name, gender, and salary. SELECT emp.emp_no,emp.first_name,emp.last_name,emp.gender,s.salary FROM EMPLOYEES AS emp INNER JOIN salaries AS s ON emp.emp_no = s.emp_no; -- 2. List employees who were hired in 1986. SELECT * FROM employees...
true
223b5d965664036a2af331cd7de5b572c7915580
SQL
avgo/avgproject
/database.sql
UTF-8
562
3.59375
4
[]
no_license
DROP DATABASE IF EXISTS `avgproject`; CREATE DATABASE `avgproject`; USE `avgproject`; CREATE TABLE `tasks` ( `id` INT UNSIGNED AUTO_INCREMENT NOT NULL, `parent_id` INT UNSIGNED NOT NULL DEFAULT '0', `type` INT UNSIGNED NOT NULL DEFAULT '0', `title` VARCHAR(60), `description` TEXT, `dtm_created` DATETIME, PRI...
true
8ae7e5ccb1fae856aafd8c9f11521416207f59d0
SQL
Wang1995/trafodion
/core/sql/regress/hive/TEST006_a.hive.sql
UTF-8
2,873
3.015625
3
[ "Apache-2.0", "LicenseRef-scancode-generic-export-compliance", "BSD-3-Clause", "MIT" ]
permissive
-- @@@ START COPYRIGHT @@@ -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2...
true
15b94df62eeb29d3caa54b01353d1366b5143937
SQL
intCCP/CCP
/Application/Viste/v_mcres_app_alert_voci_ag_epc.sql
UTF-8
495
2.90625
3
[]
no_license
/* Formatted on 21/07/2014 18:41:39 (QP5 v5.227.12220.39754) */ CREATE OR REPLACE FORCE VIEW MCRE_OWN.V_MCRES_APP_ALERT_VOCI_AG_EPC ( COD_AGENDA, COD_GESTORE, VAL_NUMERO ) AS SELECT V.COD_AGENDA, V.COD_GESTORE, COUNT (*) AS VAL_NUMERO FROM T_MCRES_APP_VOCI_AGENDA_EPC V WHERE 1 = 1 ...
true
fe64dd039fe779b8bb326a905d2a6c802b1da58b
SQL
EdvinsVormsbehers/EDIBO_14-SQL-Constructions
/Test_Procedure.sql
UTF-8
898
3.703125
4
[]
no_license
USE music_shop; DELIMITER $$ CREATE DEFINER = `root`@`localhost` PROCEDURE `get_invoices_by_empl`(IN inEmplId INT, IN inYear varchar(4), IN inMonth varchar(2), OUT outTotal DEC(10,2)) BEGIN SET @filtr = concat('%',inYear,'-',inMonth,'-%'); SELECT EmployeeId, CustomerId, InvoiceId, InvoiceDate, Total FROM employ...
true
09cc99813939380a169446d5cc1a3f3743a6a4b8
SQL
Sunmon/Database_2018
/docs/제출용/2.논리,물리설계/make_table.sql
UTF-8
5,023
3
3
[]
no_license
CREATE TABLE `cart` ( `p_code` VARCHAR(20) NOT NULL COMMENT 'p_code', `customer_ID` VARCHAR(20) NOT NULL COMMENT 'customer_ID', `seller_ID` VARCHAR(20) NOT NULL COMMENT 'seller_ID', `p_count` DECIMAL DEFAULT 0 COMMENT 'p_count', `tot_price` DECIMAL DEFAULT 0 COMMENT 'tot_price' )...
true
f986d8a08ba110a04a49f72546a3d16dbfc27506
SQL
abdul15irsyad/uhuy-rental
/db/rentalmobil.sql
UTF-8
8,046
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 01 Jan 2019 pada 19.12 -- Versi server: 10.1.32-MariaDB -- Versi PHP: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
a68ca348ef69f93034a2ed9c9b216bb8dfb94fde
SQL
Daniel2015/IExam
/dbSQL.sql
UTF-8
30,796
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: -- Версия на сървъра: 5.6.16 -- PHP Version: 5.5.9 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_CHAR...
true
9b9051e1bed4d19a1d950d8a088f7a33591b99e8
SQL
batego/db_fintra
/fintra/public/Tables/proceso_interno.sql
UTF-8
1,167
3.34375
3
[]
no_license
-- Table: proceso_interno -- DROP TABLE proceso_interno; CREATE TABLE proceso_interno ( id serial NOT NULL, reg_status character varying(1) NOT NULL DEFAULT ''::character varying, id_proceso_meta integer NOT NULL, tipo character varying(80) NOT NULL DEFAULT ''::character varying, descripcion character varyi...
true
c5d86389215912ca567bb890a883651636d145b0
SQL
pildit/GabonWeb
/database/sql/R__ProductTypeView.sql
UTF-8
3,111
3.8125
4
[ "MIT" ]
permissive
create or replace view "Taxonomy"."ProductType"("Id", "Name", "User", "Email", "CreatedAt", "UpdatedAt", "DeletedAt") as SELECT "ProductTypeTable"."Id", "ProductTypeTable"."Name", "ProductTypeTable"."User", acc.email AS "Email", "ProductTypeTable"."CreatedAt", "ProductTypeTable"."Upda...
true
3d5560d976f75ca21de0890fa02b6605bbec51d8
SQL
dingjinhui821/julive_database
/schema/julive_app/app_market_app_process_utm_source_nocost.sql
UTF-8
4,268
2.765625
3
[]
no_license
drop table if exists julive_app.app_market_app_process_utm_source_nocost; CREATE TABLE julive_app.app_market_app_process_utm_source_nocost ( report_date STRING comment '日期:yyyy-MM-dd', app_type STRING comment 'app类型', utm_source ...
true
ee1d94cd9e9e38d1be907c4af2a74e2bb44f305a
SQL
Ailurupoda/TestGpp
/Create_GeoLimi_v5.sql
UTF-8
9,208
3.265625
3
[]
no_license
------------------------------------------------------------ -- Script Postgre ------------------------------------------------------------ CREATE SCHEMA brut; ------------------------------------------------------------- -- Table: espece ------------------------------------------------------------- CREATE...
true
39a795a42cbec71fd3faf83ec81b5a72e6a2f956
SQL
MichaelBabushkin/laptopShop
/database/laptop.sql
UTF-8
5,336
3.234375
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; 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 ...
true
aeff398ce0b1031fd25fde488fa7f70df76cdfed
SQL
ivmafo/sibro
/workspace4/terranvm/SQL_TERRA/Scripts/Script3.sql
UTF-8
11,662
2.921875
3
[]
no_license
---Abril 6 de 2011 -------------------------------------------------------------------------Concept_Templates-------------------------------------------------------------------------------------------- CREATE SEQUENCE concep_template_id_seq; CREATE TABLE concep_template ( id INTEGER NOT NULL D...
true
7f9e2b83672de61881dd372d490d8d4037f595a2
SQL
FallenAngelX/Infinity_MaNGOS
/IsQl/Development/Realmd/uptime.sql
UTF-8
1,456
2.84375
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.0.45-community-nt - MySQL Community Edition (GPL) -- Server OS: Win32 -- HeidiSQL Version: 7.0.0.4312 -- ----------------------------------------------...
true
fce7e64db3cf769cddec35cb3efa83accc0cb44b
SQL
JonathonBeeBaker/Node.js-MySQL
/Bamazon_Schema.sql
UTF-8
2,077
3.421875
3
[]
no_license
CREATE DATABASE Bamazon_db; USE Bamazon_db; CREATE TABLE products( id INT NOT NULL AUTO_INCREMENT, ProductName VARCHAR(100) NOT NULL, DepartmentName VARCHAR(100) NOT NULL, Price DECIMAL(10,2) default 0, StockQuantity INT default 0, PRIMARY KEY(id) ); INSERT INTO products(ProductName, DepartmentName, Price, Sto...
true
bb02018e03fb834872726054f188f66cc7d27473
SQL
keymean/MySeckill
/src/main/sql/schema.sql
UTF-8
1,582
3.8125
4
[]
no_license
-- 数据库初始化脚本 -- 创建数据库 CREATE DATABASE seckill; -- 使用数据库 use seckill; -- 创建秒杀库存 CREATE TABLE seckill( `seckill_id` bigint NOT NULL AUTO_INCREMENT COMMENT '商品库存id', `name` varchar(120) NOT NULL COMMENT '商品名称', `number` int NOT NULL COMMENT '库存数量', `start_time` timestamp NOT NULL COMMENT '秒杀开启时间', `end_time` timestamp NOT...
true
7fdb782cf91be7f0280bdd842562bb1967b5752e
SQL
claire-middendorf/BCS-internship
/budget/sql/bonapp_class.sql
UTF-8
1,375
3.359375
3
[]
no_license
-- Deep Dive on BonApp Pattern with subset as ( select distinct descr from dev.budget_staging where descr similar to '%BonApp%' and not descr like 'SR%' and not descr like 'sr%' ) select * from subset order by 1 limit 500 -- BonApp space Four Digits with subset as ( select distinct descr from dev.budget_sta...
true
d597576e834d96d0fb82870f8a6da74f7b30777f
SQL
fabricioad/webapi
/CodigoFonte/Schema_BD_Mutant/SCHEMA_MUTANT_CONSULTA_PAISES.sql
UTF-8
1,549
3.484375
3
[]
no_license
CREATE SCHEMA mutant; CREATE TABLE `mutant`.`pais` ( `idPAIS` INT NOT NULL AUTO_INCREMENT, `CapitalCity` VARCHAR(150) NULL, `ContinentCode` VARCHAR(2) NULL, `CountryFlag` VARCHAR(450) NULL, `CurrencyISOCode` VARCHAR(3) NULL, `ISOCode` VARCHAR(2) NULL, `Name` VARCHAR(120) NULL, `PhoneCode` INT NULL, P...
true
389b2dea98f4b141d7211fbf752cd2d3e46d5a87
SQL
annisarl02/kodingan
/ta.sql
UTF-8
3,591
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 17, 2021 at 05:45 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
true
0366cd335551e82c03e45fc79d4ea3fecae87efa
SQL
NYCPlanning/db-zoning
/zoningdb_build/createfar.sql
UTF-8
3,911
3.890625
4
[]
no_license
-- add FAR values based on zonedist and using lookup table DROP TABLE IF EXISTS fars; -- create view of lookup table CREATE TABLE fars AS ( SELECT zoningdistrict, resequivalent, NULL AS residfar, (CASE WHEN commfar IS NULL THEN commfarr6otr10 ELSE commfar END) AS commfar, NULL AS facilfar FROM dcp_zo...
true
79b5081deb00729f5c607439609b2e2e50e24f8e
SQL
RizkiRF/parkir-1
/database/parkir_unpas.sql
UTF-8
5,113
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 03, 2014 at 10:24 AM -- Server version: 5.5.16 -- PHP Version: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_C...
true
83f2a5feb13d44c91e2fabd0d268da1a4af2d20a
SQL
MLacra/Synthegrate
/resources/scenarios/scenario_55_0_5_56_100_300_56_0_110_56/schema_schema_0.sql
UTF-8
3,784
2.6875
3
[ "Apache-2.0" ]
permissive
DROP SCHEMA IF EXISTS schema_0 CASCADE; CREATE SCHEMA schema_0; DROP TABLE IF EXISTS schema_0.relation_0 CASCADE ; CREATE TABLE schema_0.relation_0 ( attribute_0 text, -- target attribute = relation_0.attribute_0 attribute_1 text, -- target attribute = relation_0.attribute_1 attribute_2 text, -- target attribute = rela...
true
f7f08fd4c536df4988acdaac51e510b9ed7efcbd
SQL
darshann25/PostgreSQL-Bootcamp-Coursework
/Create_Account_Role_Table.sql
UTF-8
436
3.703125
4
[]
no_license
CREATE TABLE account_role( user_id integer NOT NULL, role_id integer NOT NULL, grant_date timestamp without time zone, PRIMARY KEY(user_id, role_id), CONSTRAINT account_role_role_id_fkey FOREIGN KEY(role_id) REFERENCES role (role_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION, CONSTRAINT acoount_role_user...
true
af6eab0eccf35fe6020a835bd6a2f19c2ba1cd60
SQL
Artydabomb/Employee-Tracker
/seed.sql
UTF-8
513
3.140625
3
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS `org_DB`; CREATE database `org_DB`; USE `org_DB`; CREATE TABLE department ( `id` INT NOT NULL, `name` VARCHAR(30), PRIMARY KEY (`id`) ); CREATE TABLE role ( `id` INT NOT NULL, `title` VARCHAR(30), `salary` DECIMAL(7,2), `department_id` INT, PRIMARY KEY (`id`) ); CREATE TABLE...
true
75ffdb6c33669c3cdaac4c55ef6ddee4deca5474
SQL
MoriMorou/Spring_Framework
/HomeworkThree/src/main/resources/bd.migration/migration.sql
UTF-8
1,822
3.734375
4
[]
no_license
SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS students; CREATE TABLE students ( id INT(11) NOT NULL AUTO_INCREMENT, name VARCHAR(100) DEFAULT NULL, PRIMARY KEY(id) ) ENGINE=InnoDB CHARSET=utf8; DROP TABLE IF EXISTS courses; CREATE TABLE courses ( id INT(11) NOT NULL AUTO_INCREMENT, title VARC...
true
ab1a0073ee11690970ed87905e8a564048a94888
SQL
Agrity/handler-server
/conf/evolutions/default/4.sql
UTF-8
480
2.71875
3
[ "Apache-2.0" ]
permissive
# Add Grade to Trader Bids # ================================================================ # --- !Ups alter table if exists bids drop constraint ck_bids_almond_variety; alter table if exists bids alter column almond_variety type varchar(255); # --- !Downs alter table if exists bids alter column almond_variety ...
true
3623b86887ad23e0ac56d5bb3912705d31dd9bf9
SQL
McLeodMoores/starling
/projects/master-db/src/main/resources/db/migrate/postgres/cfg/V_48__migrate_cfg.sql
UTF-8
855
2.8125
3
[ "Apache-2.0" ]
permissive
START TRANSACTION; UPDATE cfg_schema_version SET version_value='48' WHERE version_key='schema_patch'; DROP INDEX ix_cfg_config_oid; DROP INDEX ix_cfg_config_ver_from_instant; DROP INDEX ix_cfg_config_ver_to_instant; DROP INDEX ix_cfg_config_corr_from_instant; DROP INDEX ix_cfg_config_corr_to_instant; D...
true
bda35ff93800aa15c2943e798ded5871c944b7d8
SQL
2Nifty/PFC
/_My Workorders/_Closed/WO 2875 - Upgrade Label Conversion to use ERP tables/ERPRefreshItems_INSERTS.sql
UTF-8
2,345
2.984375
3
[]
no_license
--INSERT SELECT Porteous$Item.[No_] AS ItemNo, Porteous$Item.[Description] AS ItemDesc, Porteous$Item.[Harmonizing Tariff Code] AS Tariff, Porteous$Item.[Cat_ No_ Description] AS CatDesc, Porteous$Item.[Plating Type] AS Finish, Porteous$Item.[Size No_ Description] AS ItemSize, Porteous$Item.[Item Disc_ Group] as...
true
733613def4b72827cd4a900cd1422601398d7ba7
SQL
Seosamhoc/Csharp-Basics
/SQLAssignment/SQLrequests/Request16.sql
UTF-8
698
3.828125
4
[]
no_license
--Produce a list of employees showing percentage raises, employee numbers and old and new salaries. --Employees in departments 20 and 10 are given a 5% rise, --employees in departments 50, 80, 90 and 110 are given a 10% rise and employees in other departments are not given a rise. SELECT CASE WHEN Department_No IN ...
true
5d3ea3199ca54218be9523ad4a3bc76ec4a01ec9
SQL
mskuratov/atg
/KnowledgeBase/International/sql/db_components/db2/versioned_knowledgebase_multisite_i18n_ddl.sql
UTF-8
916
3.09375
3
[]
no_license
create table crs_rnow_xlate ( asset_version numeric(19) not null, workspace_id varchar(40) not null, branch_id varchar(40) not null, is_head numeric(1) not null, version_deleted numeric(1) not null, version_editable numeric(1) not null, pred_version numeric(19) default null, checkin_date timestamp default n...
true
b7d60d531c07a34f45af6f959aed9f4cb12521bd
SQL
Eliott-Lepage/M2PR01_BIERES
/backend/scripts-api-rest/Mathis-webservice-catalogueEntier.sql
UTF-8
950
3.3125
3
[]
no_license
/* auth : Mathis Creation de la procédure qui récupère toutes les bières. Elle renvoit un id, le nom, la couleur, le degré d'alcoolémie, le volume, la brasserie et le prix. */ CREATE PROCEDURE "DBA"."proc_catalogueEntier"() RESULT (id char(3), biere varchar(30), couleur varchar(15), alcool decimal(3,1), volume decimal(...
true
7f4ba7bdb98d09bc7d67c225d0504419a753516d
SQL
SHolleworth/BookClubServer
/DB_creation.sql
UTF-8
1,031
3.625
4
[]
no_license
CREATE TABLE User ( id int NOT NULL AUTO_INCREMENT, username VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL, salt VARCHAR(255) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE Shelf (\ id INT NOT NULL AUTO_INCREMENT,\ name VARCHAR(255) NOT NULL,\ userId INT NOT NULL,\ PRIMARY KEY (id),\ FOREIGN KEY (userId...
true
fd54b58f59d87e184dbff5d10a46e7ba93061142
SQL
Craig240z/Database_Exercises
/update_exercises.sql
UTF-8
635
3.46875
3
[]
no_license
USE codeup_test_db; SELECT name AS "All Albums" FROM albums; UPDATE albums SET sales = sales * 10; SELECT sales, name as "All Albums in the albums table" FROM albums; SELECT release_date AS "All Albums released before 1980" FROM albums WHERE release_date < 1980; UPDATE albums SET release_date = 1800; SELECT relea...
true
e537f93c031bade463ce5ce13d973e0e53abb527
SQL
zihai367/springboot-vertx
/src/main/resources/schema.sql
UTF-8
410
3.015625
3
[ "Apache-2.0" ]
permissive
CREATE TABLE DEPT ( DEPTNO int primary key NOT NULL, DNAME varchar default NULL, LOC varchar default NULL ); CREATE TABLE EMP ( EMPNO int primary key NOT NULL, ENAME varchar default NULL, JOB varchar default NULL, MGR int default NULL, HIREDATE date default NULL, SAL float default NULL, COMM float ...
true
2f58b88de39186fcfc0d76bb761b82e0bb9825bd
SQL
Zhanao/epjp
/scripts/oracle/s55.sql
ISO-8859-13
378
2.90625
3
[]
no_license
insert into regions(region_id, region_name) values (11, 'Antarctica'); insert into regions(region_id) -- dato che hanno fatto la tab regions con region name nullable, posso evitare di mettere il nome values (12); -- oracle metter null nel campo region_name insert into regions -- non avendo specificato il nome d...
true
845321a480fa502e02f9eedb3b65a773ddf28c8a
SQL
kostarev/test
/dota_heroes.sql
UTF-8
4,610
2.546875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10.6 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Окт 11 2015 г., 21:27 -- Версия сервера: 5.5.41-log -- Версия PHP: 5.3.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
true
485db0a4f3a53b83ea4bf0fcbed4b60e187c4ff8
SQL
OliBerry84/WeekendHW-Week3
/db/codeclan_cinema.sql
UTF-8
602
3.984375
4
[]
no_license
DROP TABLE tickets; DROP TABLE films; DROP TABLE customers; CREATE TABLE films ( id SERIAL4 PRIMARY KEY, title VARCHAR(255), price INT4 ); CREATE TABLE customers ( id SERIAL4 PRIMARY KEY, name VARCHAR(255), funds INT4 ); CREATE TABLE tickets ( id SERIAL4 PRIMARY KEY, customer_id INT4 REFERENCES custo...
true
e9d87ba6bc4d91c05f73629e914fd8c97501ac48
SQL
mba2/my-login
/sql-scripts/selects.sql
UTF-8
225
2.8125
3
[]
no_license
USE soccer_guess; -- ALL TEAMS -- SELECT * FROM sg_teams; -- ALL GROUPS -- SELECT * FROM sg_groups; SELECT * FROM sg_group_formation LEFT JOIN sg_teams USING(TEAM_ID) LEFT JOIN sg_groups USING(GROUP_ID);
true
0f6f0785d837c5472823ebc1bef1f621833e3227
SQL
hund1235/project
/fanta/SQL file.sql
UTF-8
908
3
3
[]
no_license
SELECT * FROM mydb.customers; insert into customers values (111, 'Nick' ,'Jones', 'dev',26,'M','USA', 20000000), (222, 'Antony', 'Martial', 'bet',24, 'M','France', 10000000), (333, 'Nebiha', 'Amir', 'jek', 24, 'F', 'uzbekistan', 36000000), (444, 'Soresa', 'Hailu', 'bayo', 24, 'M','Unkown', 34000000), (555, 'Beka', ...
true
a34d1c9723918d947ad96d583a8a27add53c7f8a
SQL
NoobeNegra/angularapp
/sql.sql
UTF-8
1,064
3.5
4
[]
no_license
-- -- Base de données : `angularapp` -- -- -------------------------------------------------------- -- -- Structure de la table `books` -- CREATE TABLE IF NOT EXISTS `books` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `author` varchar(50) COLLATE utf8_unicode_c...
true
7ad92b3779cdf3be02e587e495c3a52de15d4c96
SQL
jeannirasic/BD2_Proyecto_clase
/Fase1/consulta de resultados.sql
UTF-8
14,077
4.21875
4
[]
no_license
-- ░█████╗░ Realizar un stored procedure que devuelva la tabla de -- ██╔══██╗ posiciones en cualquier momento. Como parámetro -- ███████║ debe recibir la temporada (id o año) y tener dos -- ██╔══██║ parámetros excluyentes, el número de jornada y la fecha. -- ██║░░██║ Si recibe la fecha calcula la tabla a la fecha -...
true
0092a79488f95c44501e8b3b95cde0478917def1
SQL
HaopengSun/BootcampX
/4_queries/student_assistance_request.sql
UTF-8
207
3.53125
4
[]
no_license
SELECT COUNT(assistance_requests.*) as total_assistance, students.name as name FROM assistance_requests JOIN students ON assistance_requests.student_id=students.id WHERE students.name='Elliot Dickinson' GROUP BY name;
true
26508cf1b7e0bafeed2051ff0739c47056219409
SQL
CUBRID/cubrid-testcases
/sql/_01_object/_02_class/_002_constrains/cases/1012.sql
UTF-8
317
2.953125
3
[ "BSD-3-Clause" ]
permissive
--[er]test PK of constraint using NULL value create class test_class( a integer primary key, b integer); insert into test_class(a) values(1); insert into test_class(a) values(2); insert into test_class(a) values(3); insert into test_class(b) values(8); select * from test_class order by 1; drop class test_class;
true
c31c24d6176f1d3f18104636239f0b0d7e8e7416
SQL
Jony635/Data-Analysis
/Entrega 1/database/kpis_routines.sql
UTF-8
6,033
3.203125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `kpis` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `kpis`; -- MySQL dump 10.13 Distrib 8.0.12, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: kpis -- ------------------------------------------------------ -- Server version 8.0.12 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
true
49900fc83f8863180f491e80cc5288abcf6ea96b
SQL
deepanshu-nickelfox/bigquery-etl
/udf/boolean_histogram_to_boolean/udf.sql
UTF-8
1,190
3.375
3
[]
no_license
/* Given histogram h, return TRUE if it has a value in the "true" bucket, or FALSE if it has a value in the "false" bucket, or NULL otherwise. https://github.com/mozilla/telemetry-batch-view/blob/ea0733c/src/main/scala/com/mozilla/telemetry/utils/MainPing.scala#L309-L317 */ CREATE OR REPLACE FUNCTION udf.boolean_his...
true
30912819379205e6e2dc5b9ebe1a3641563c25f1
SQL
arrnavvv/dbms_project
/test.sql
UTF-8
3,786
3.46875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Dec 04, 2020 at 10:33 AM -- Server version: 5.7.31 -- PHP Version: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
true
5da55baa71c6a0a76c210f5508ae8797817ead48
SQL
Good725/ideabubble-lamp
/projects/shop1/model/irishtimestraining/model-20191015150200.sql
UTF-8
16,784
3.453125
3
[]
no_license
/* ts:2019-10-15 15:02:00 */ DELIMITER ;; -- Add the "about us" page, if it does not already exist. INSERT IGNORE INTO `plugin_pages_pages` (`name_tag`, `title`, `content`,`date_entered`, `last_modified`, `created_by`, `modified_by`, `publish`, `deleted`, `include_sitemap`, `layout_id`, `category_id`) SELECT 'abo...
true
64646eaf9e2752db201ee75f610cd6ce9f634eb4
SQL
celsops/agente-backend
/sql_versaoApp.sql
UTF-8
8,965
3.515625
4
[]
no_license
-- create database if not exists agente CHARACTER SET utf8 COLLATE utf8_general_ci;; -- -- use agente; create table if not EXISTS tbl_escolaridade( cod_escolaridade int not null primary key, nom_escolaridade varchar(255) not null ); create table if not EXISTS tbl_deficiencia( cod_deficiencia int not null...
true
27808d3cf12ce5410ccf5414be74292c3bf59c84
SQL
gaetano1984/0brand-test
/migration/tables.sql
UTF-8
271
3.03125
3
[]
no_license
create table node_tree( idNode int, level int, iLeft int, iRight int, primary key(idNode) ); create table node_tree_names( idNode int, language varchar(7), NodeName varchar(32), primary key(idNode, language), foreign key(idNode) references node_tree(idNode) );
true
b5c680c743f01707f0937b80cd35b337793f2249
SQL
aizeeck/swift
/SwiftHomeWork/out/production/SwiftHomeWork/lesson13_DBMS/Task4_PersonCharacteristics.sql
UTF-8
7,900
3.140625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `citizen_registrations` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */; USE `citizen_registrations`; -- MySQL dump 10.13 Distrib 5.7.18, for Linux (x86_64) -- -- Host: localhost Database: citizen_registrations -- ------------------------------------------------------ -...
true
e5429ce8ac16e736bc762e52765561acff02f00f
SQL
MichaelMunro/FedUni-Research-Register
/SQL/database.sql
UTF-8
5,532
3.46875
3
[]
no_license
DROP DATABASE IF EXISTS FedUni_RA_Register; CREATE DATABASE FedUni_RA_Register CHARACTER SET utf8 COLLATE utf8_general_ci; USE FedUni_RA_Register; GRANT SELECT, INSERT, UPDATE, DELETE ON FedUni_RA_Register.* TO 'raUser'@'localhost' IDENTIFIED BY 'password123'; CREATE TABLE Users ( user_id IN...
true
bc20f1fb5287d428901b20018125a03c7aad06d0
SQL
jinfan480/Madeline
/SQL/user.sql
UTF-8
377
2.6875
3
[]
no_license
create table USER ( USERID integer not null auto_increment, USERNAME varchar(255), USERPASSWORD varchar(255), ROLEID integer, ROLENAME varchar(255), EMAIL varchar(255), PHONE bigint, PORTRAIT varchar(255), DESCRIPTION varchar(255), ISSUBSCRIBED bi...
true
4f14bb2620076ac8a5e72f3ad75e0d07bf2d79a6
SQL
dandraden/Database-Scripts
/Oracle/others/user_script/VIEW_TRANSFERIDOS21102004.sql
UTF-8
2,973
3.40625
3
[]
no_license
-- View VIEW_TRANSFERIDOS CREATE OR REPLACE VIEW view_transferidos ( matricula, nome, nome_abreviado, numero_cpf, data_tranferencia, ofu_codigo, ofu_descricao, dep_ant, dep_atual, uor_ant, uor_atual, sigla_cargo, descricao_cargo, ocupacao_atuacao ) AS select ...
true
096096dc8e1a55839c235904c514d2353a66bb53
SQL
lelbil/pharmaliv-api
/dbCreationSchema.sql
UTF-8
3,565
3.21875
3
[]
no_license
CREATE TYPE userType AS ENUM ('patientContent', 'deliveryManContent', 'doctorContent', 'pharmacistContent'); CREATE TYPE medicamentCategorie AS ENUM ('MEDICAMENTS','HOMEO','SANTE','COMPLEMENTS_ALIMENTAIRES','PLANTES','VISAGE','CORPS','HYGIENE','CHEVEUX','BEBE','ORTHO','BIO','PROMO'); CREATE TYPE commandeType AS ENUM ('...
true