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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
adb3049999f3f53f136d910a2544802694405fba | SQL | MuggleWei/Hakuna_Matata | /play/app/distributed_calc/datasource-services/dc-user/src/test/resources/test_user.sql | UTF-8 | 1,003 | 3.71875 | 4 | [
"WTFPL"
] | permissive | CREATE DATABASE IF NOT EXISTS test_dc_db DEFAULT CHARACTER SET utf8;
USE test_dc_db;
DROP TABLE IF EXISTS t_user;
CREATE TABLE IF NOT EXISTS t_user (
id BIGINT NOT NULL AUTO_INCREMENT COMMENT 'user id',
name VARCHAR(64) NOT NULL COMMENT 'user name',
password VARCHAR(64) NOT NULL COMMENT 'user password',
... | true |
12aa11f79c8605f23aa2028a2d2b604995b5c9c4 | SQL | edmilsonalves/registration-login-spring-hsql | /src/main/webapp/WEB-INF/insert-usuario.sql | UTF-8 | 2,353 | 2.53125 | 3 | [
"MIT"
] | permissive | INSERT INTO tb_regra_acesso ( criado_em, criado_por, nome ) VALUES ( '2017-02-15', 'assinc', 'ADMIN' );
INSERT INTO tb_perfil ( criado_em, criado_por, nome ) VALUES ( '2017-02-15', 'assinc', 'System Administrator' );
INSERT INTO tb_perfil_regra_acesso ( perfil_id, regra_acesso_id ) VALUES (1, 1);
INSERT INTO tb_... | true |
e8e4bf36a53db6d7aa095489962de17bd00d0036 | SQL | karinrimstidt/Bamazon | /Bamazon.sql | UTF-8 | 1,539 | 2.984375 | 3 | [] | no_license | CREATE DATABASE Bamazon;
USE Bamazon;
CREATE TABLE products(
item_id INT NOT NULL AUTO_INCREMENT,
product_name VARCHAR(100) NOT NULL,
department_name VARCHAR(100) NOT NULL,
price DECIMAL(10,2) NOT NULL,
stock_quantity INTEGER(4) NOT NULL,
PRIMARY KEY (item_id)
);
INSERT INTO products (product_name, ... | true |
3af8984f73dea246a7e774d0f97f9d72d3672f38 | SQL | rainerroth/digitalresearch | /english-plays.sql | UTF-8 | 570 | 3.515625 | 4 | [] | no_license | CREATE TABLE people (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT,
born DATE
);
CREATE TABLE plays (
id INTEGER PRIMARY KEY AUTOINCREMENT,
title TEXT,
written DATE,
author INTEGER REFERENCES people(id),
genre TEXT
);
CREATE TABLE acts (
act INTEGER,
play INTEGER REFERENCES plays(id)
);
CREATE TABLE sce... | true |
fd6c764d10aed83729a5e443a1c48a9869e62903 | SQL | LucasVanden/ProyectoFinalUTN | /consultasfrm_backup_2019-12-15.1576464677-datos.sql | UTF-8 | 82,444 | 2.875 | 3 | [] | no_license |
CREATE TABLE `alumno` (
`id_alumno` int(20) NOT NULL AUTO_INCREMENT,
`legajo` int(50) NOT NULL,
`apellido` varchar(50) NOT NULL,
`nombre` varchar(50) NOT NULL,
`email` varchar(50) NOT NULL,
`fechaNacimientoAlumno` date NOT NULL,
`telefonoAlumno` varchar(50) NOT NULL,
`eliminado` tinyint(1) DEFAULT NUL... | true |
0424f3a88a017e0f0c34801f1db6bb9497b1d7fb | SQL | dgandrewc/leetcode | /Programmers/없어진 기록 찾기.sql | UTF-8 | 196 | 2.921875 | 3 | [] | no_license | -- 코드를 입력하세요
SELECT ANIMAL_OUTS.ANIMAL_ID, ANIMAL_OUTS.NAME FROM (ANIMAL_OUTS LEFT JOIN ANIMAL_INS ON ANIMAL_OUTS.ANIMAL_ID=ANIMAL_INS.ANIMAL_ID) WHERE ANIMAL_INS.ANIMAL_ID IS NULL | true |
c12c83f6afb378dd9cd6df6e58f3600a58526e74 | SQL | Mark44230/DABC-Homework-07-SQL-Ludwick | /HW_07_SQL_Ludwick_queries.sql | UTF-8 | 3,701 | 4.15625 | 4 | [] | no_license | --Homework 7-SQL
--Mark Ludwick
/**********************************************************
1. List the following details of each department employee:
employee number, last name, first name, gender, and salary
***********************************************************/
SELECT Employees.emp_no, Employees.last_na... | true |
d2b44cf31997c7d6922f20e1adf5481004cb76ea | SQL | ryanlerner/Pewlett-Hackard-Analysis | /Queries/list-queries.sql | UTF-8 | 1,828 | 4.28125 | 4 | [] | no_license | SELECT * FROM salaries
ORDER BY to_date DESC;
SELECT e.emp_no, e.first_name, e.last_name, e.gender, de.to_date
INTO emp_info
FROM employees as e
INNER JOIN salaries as s
ON (e.emp_no = s.emp_no)
INNER JOIN dept_emp as de
ON (e.emp_no = de.emp_no)
WHERE (e.birth_date BETWEEN '1952-01-01' AND '1955-12-31')
AND (e.hire_d... | true |
54ba2ceb863c3526db78586048506bc336b0cfa4 | SQL | HopeMeNow/MDS | /sql/final_project/1-5/task4.sql | UTF-8 | 1,006 | 4.09375 | 4 | [] | no_license | truncate table company_abc ;
insert into company_abc
select cid,
salestotal,
case
when sum(salestotal) over (partition by "year" order by salestotal DESC) <= 0.8 * sum(salestotal) over (partition by "year")
then 'A'
when sum(salestotal) over (partition by "year" order by salestotal DES... | true |
7373125899b0e889e745faa18b30e0b8d617237c | SQL | OnezeroW/benchmark | /src/main/resources/cratedb/schema/mapping1/create.sql | UTF-8 | 3,751 | 3.46875 | 3 | [] | no_license |
CREATE TABLE IF NOT EXISTS LOCATION (
ID string NOT NULL,
X float NOT NULL,
Y float NOT NULL,
Z float NOT NULL,
PRIMARY KEY (ID)
) CLUSTERED INTO 1 shards WITH ( number_of_replicas = 0 );
CREATE TABLE INFRASTRUCTURE_LOCATION (
LOCATION_ID string NOT NULL,
INFRASTRUCTURE_ID string NOT NULL,
PRIMARY ... | true |
8dbc289cc926118b7deb4fe59e76fd7082c89e0f | SQL | zuizim/weapp | /server/sql/data.sql | UTF-8 | 6,667 | 3.203125 | 3 | [] | no_license | /*创建绑定者信息表*/
set names utf8;
create database weapp character set utf8 collate utf8_general_ci;
use weapp;
drop table if exists binder_info;
create table binder_info(
binderID int(8) primary key auto_increment,
xOpenID varchar(32) unique not null,
gOpenID varchar(32),
unionID varchar(32),
fullName varchar(32)... | true |
3bb78326ae5c9c6e1e4b9f23249319e2e7da0782 | SQL | LBS-sws/Hr | /hr/protected/data/2017-11-16.sql | UTF-8 | 5,032 | 3.109375 | 3 | [] | no_license | /*
Navicat MySQL Data Transfer
Source Server : local
Source Server Version : 50620
Source Host : localhost:3306
Source Database : hrdev
Target Server Type : MYSQL
Target Server Version : 50620
File Encoding : 65001
Date: 2017-11-16 11:11:15
*/
SET FOREIGN_KEY_CHECKS=0;
-- -------... | true |
091ba3db91cf86f37e5e0f2d75d8d88f99639316 | SQL | Tomoaki-Banno/local | /15i/.svn/pristine/33/338e79658e027a420825b88576663045b300e5a5.svn-base | UTF-8 | 2,542 | 3.0625 | 3 | [] | no_license | drop table if exists user_master;
create table user_master
(
user_id serial primary key, /* ユーザーid */
login_user_id text unique, /* 15i: ログインユーザーID */
user_name text unique, /* ユーザー名 */
password text not null, /* パスワード */
company_id int not n... | true |
e88eedfc5994aa0a7283a6bd9146210f1fa76918 | SQL | stjepad/SQL-update-Recap-back-end-project | /updateRecap.sql | UTF-8 | 1,156 | 2.703125 | 3 | [] | no_license | /*
select *
from Surveys
where SurveyId = 14
update Surveys set Name = 'Do you like this app?'*/
/*select * from Surveys
update Surveys set Name = 'That DQ blizzard'
where SurveyId = 10 */
/*select * from Questions
update Questions set Content = 'Would you use this app?'
where QuestionId = 36 */
/*select * from A... | true |
9fb389915711e405039ce12a72fab29e0503bdd0 | SQL | nischalstha9/web-college | /database/crud/web.sql | UTF-8 | 2,284 | 3.109375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 29, 2021 at 01:42 PM
-- Server version: 10.4.13-MariaDB
-- PHP Version: 7.4.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... | true |
e93457491a121612079794688fd99cb6653f63b6 | SQL | radtek/abs3 | /sql/mmfo/bars/Sequence/s_customerw_update.sql | UTF-8 | 964 | 2.71875 | 3 | [] | no_license |
PROMPT =====================================================================================
PROMPT *** Run *** ========== Scripts /Sql/BARS/Sequence/S_CUSTOMERW_UPDATE.sql =========***
PROMPT =====================================================================================
PROMPT *** Create sequence ... | true |
d259831da42fbb56919956ec882c644a91149e9d | SQL | kiyomizuhi/sql_recipe | /script/ch03_03/query_08.sql | UTF-8 | 311 | 3.15625 | 3 | [] | no_license | SELECT
product_id
, category
, ROW_NUMBER() OVER(PARTITION BY category ORDER BY score DESC) AS row
, RANK() OVER(PARTITION BY category ORDER BY score DESC) as rank
, DENSE_RANK() OVER(PARTITION BY category ORDER BY score DESC) as dense_rank
FROM
popular_products
ORDER BY
category, row
;
| true |
d5a775b3f152cf45257b1b12aba2db0ccdec9b15 | SQL | tectronics/sigemillenium | /SIGEM/src/main/def/br/com/millenium/service/ferramenta/database/createTable.sql | UTF-8 | 1,193 | 3.5625 | 4 | [] | no_license | CREATE TABLE MM_TipoFerramenta (
id CHAR(32) NOT NULL,
nome VARCHAR(255) NOT NULL,
obs VARCHAR(255) NULL,
CONSTRAINT PK_MM_TipoFerramenta PRIMARY KEY(id)
);
CREATE TABLE MM_Ferramenta (
id CHAR(32) NOT NULL,
tipoFerramentaId CHAR(32) NOT NULL,
numRegistro VARCHAR(50) NUL... | true |
12d338034b0667bca23f18f40e3023a3c2dcca66 | SQL | vekselman/Data_analysing | /Microsoft.DAT201x.tsql.DONE!/tsqlModule6.sql | UTF-8 | 1,927 | 4.25 | 4 | [] | no_license | --Challenge 1: Retrieve Product Price Information
--1.Retrieve products whose list price is higher than the average unit price
SELECT sp.ProductID, sp.Name, sp.ListPrice
FROM SalesLT.Product as sp
WHERE sp.ListPrice > (SELECT AVG(ssod.UnitPrice)
FROM SalesLT.SalesOrderDetail as ssod)
ORDER BY sp.ListPrice;
--2.Re... | true |
2c99eccd548fdf9460e14ab32f31a85747ae8909 | SQL | chelitodelgado/lula | /database/db.sql | UTF-8 | 146 | 2.578125 | 3 | [] | no_license | CREATE DATABASE namedb;
USE namedn;
CREATE TABLE my_table(
id int not null,
created_at date,
updated_at date,
PRIMARY KEY(id)
);
| true |
6426ce09875ee42f93ed1e8d57aa61f426d3fceb | SQL | rezkyd/bank-sampah-aws | /Schema 2.sql | UTF-8 | 20,557 | 3.3125 | 3 | [
"Apache-2.0"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 19 Agu 2019 pada 11.11
-- Versi Server: 10.1.30-MariaDB
-- PHP Version: 7.2.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHA... | true |
ca30a52922f4e66099c52aa1e71bf0d6167baa86 | SQL | julkwel/techzara-site | /data/dump/base.sql | UTF-8 | 15,610 | 2.828125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Nov 06, 2018 at 09:29 AM
-- Server version: 10.1.34-MariaDB
-- PHP Version: 7.2.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
684746ff400b1a58c5a32dd1c93fa6faa02164c3 | SQL | AminaTheUnicorn/Employee-Tracker | /employeeTrackerSeed.sql | UTF-8 | 835 | 3.40625 | 3 | [] | no_license | -- ==== EMPLOYEE =====
USE employee_db;
INSERT INTO
department (name)
VALUES
('Sales'),
('Developer'),
('Web Experience'),
('Marketing');
INSERT INTO
role (title, salary, department_id)
VALUES
('Sales Lead', 100000, 1),
('Salesperson', 80000, 1),
('Lead Developer', 150000, 2),
... | true |
0ae89c05d7721680a73704c37c80f82d779e6fcf | SQL | cmmolanos1/holbertonschool-machine_learning | /pipeline/0x02-databases/8-genre_id_by_show.sql | UTF-8 | 175 | 3.65625 | 4 | [] | no_license | -- Genre by tv show
SELECT tv_shows.title, tv_show_genres.genre_id
FROM tv_shows
JOIN tv_show_genres ON tv_shows.id = tv_show_genres.show_id
ORDER BY title, genre_id; | true |
7314d66943c753cc7c3a92eee71fdd301e5c0e5c | SQL | MrEmin/patika-sql | /ODEV4.sql | UTF-8 | 324 | 3.265625 | 3 | [] | no_license | -- 1
SELECT DISTINCT replacement_cost FROM film;
-- 2
SELECT COUNT(DISTINCT replacement_cost) FROM film;
-- 3
SELECT COUNT(title) FROM film
WHERE title LIKE 'T%' AND rating = 'G';
-- 4
SELECT COUNT(country) FROM country
WHERE country LIKE '_____';
-- 5
SELECT COUNT(city) FROM city
WHERE city ILIKE '... | true |
46aee678b56241b97f86731cb645f0980a17187a | SQL | NelsonDJCR/test_crud | /crud.sql | UTF-8 | 3,059 | 3.234375 | 3 | [] | no_license | /*
Navicat Premium Data Transfer
Source Server : local
Source Server Type : MySQL
Source Server Version : 100411
Source Host : localhost:3306
Source Schema : crud
Target Server Type : MySQL
Target Server Version : 100411
File Encoding : 65001
Date: 27/06/2021 20:58:0... | true |
c5b1f96414f7234aa06e5609ab77138d240fce9a | SQL | sams248/PostgreSQL | /36. USING clause.sql | UTF-8 | 148 | 2.703125 | 3 | [] | no_license | SELECT *
FROM orders
JOIN order_details USING (orderid);
SELECT *
FROM orders
JOIN order_details USING (orderid)
JOIN products USING (productid);
| true |
d45c4f9bd4c2a87a30eba1a2bc929429d43d8080 | SQL | hpie/GIST | /database/DB-Groups/012-03-cdac_gist_atc_student_enrolments.sql | UTF-8 | 1,881 | 3.25 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.4.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Oct 01, 2017 at 07:19 PM
-- Server version: 5.6.26
-- PHP Version: 5.6.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `cdac_gist`
--
-- -------------------------------... | true |
6eb6f0bc23bfbfd0cec74302b5f8093ccc4c9b8c | SQL | nicolasmns/PostgreSQL-exercises | /exercise1/exercise1.4.sql | UTF-8 | 241 | 3.40625 | 3 | [] | no_license | /* 4. Select all the products with a price between $60 and $120.*/
SELECT productname, unitprice FROM products WHERE unitprice >= 60 and unitprice <= 120;
-- solución alternativa:
SELECT * FROM products
WHERE unitprice BETWEEN 60 and 120; | true |
88e1b9ce55639a1f93c298c43b0eaa3bc72bba0f | SQL | silence-do-good/stress-test-Postgres-and-MySQL | /dump/high/day26/select0451.sql | UTF-8 | 264 | 2.921875 | 3 | [] | no_license |
SELECT sen.name
FROM SENSOR sen, SENSOR_TYPE st, COVERAGE_INFRASTRUCTURE ci
WHERE sen.SENSOR_TYPE_ID=st.id AND st.name='WeMo' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['5052','3204','1431','3068','3100_3','2038','4232','4231','5100_3','4062'])
| true |
15fdfa7ba4d5155f6718ca62c79c8b92b7f8e98e | SQL | himselfv/jet-tool | /examples/Views.sql | UTF-8 | 716 | 3.3125 | 3 | [] | no_license | /*
Views are implemented in Access as simple procedures.
*/
CREATE TABLE [ViewTestTable] (
[ID] COUNTER NOT NULL,
[IntValue] INTEGER DEFAULT 0,
[StringValue] TEXT(128)
);
INSERT INTO [ViewTestTable] ([IntValue], [StringValue]) VALUES (10, 'Item A');
INSERT INTO [ViewTestTable] ([IntValue], [StringValue]) VAL... | true |
f51a1814fbefb894157fac046dc9ea43c18eeb17 | SQL | digideskio/lead-public | /aux/assessor.sql | UTF-8 | 1,854 | 3.703125 | 4 | [] | no_license | drop table if exists aux.assessor;
create table aux.assessor as (
select substring(house_num from 6)::int || ' ' || st_dir || ' ' || st_name || ' ' || st_suffix as address,
sum((substring(house_num from 6)::int || ' ' || st_dir || ' ' || st_name || ' ' || st_suffix = taxpayer_address)::int) owner_occupied,
... | true |
6a7d47511b31384dfd665f217153c51a86fc421a | SQL | JeffBaudanza/World-Population-I | /population_queries_answers.sql | UTF-8 | 481 | 3.65625 | 4 | [] | no_license | SELECT *
FROM population_years
WHERE country = 'Gabon'
ORDER BY population DESC
LIMIT 5 ;
SELECT country, population, year
FROM population_years
WHERE year = 2005
ORDER BY population ASC
LIMIT 10;
SELECT DISTINCT country
FROM population_years
WHERE population > 100 and year = 2010;
SELECT DISTINCT country
FROM ... | true |
9c20f77163d969c348e17fda6c773a0bf8374fd4 | SQL | madgerg/otus-msql-2020-06-terentyev | /HW06/SQLQuery4.sql | UTF-8 | 2,138 | 4.09375 | 4 | [] | no_license | /*
4. Написать рекурсивный CTE sql запрос и заполнить им временную таблицу и табличную переменную
Дано :
CREATE TABLE dbo.MyEmployees
(
EmployeeID smallint NOT NULL,
FirstName nvarchar(30) NOT NULL,
LastName nvarchar(40) NOT NULL,
Title nvarchar(50) NOT NULL,
DeptID smallint NOT NULL,
ManagerID int NULL,
CONSTRAINT PK... | true |
9d1e72dce69f6c5ac329c9a96e86c8b3c1122737 | SQL | sefaes/SQL-deneme-Proje | /150202062___150202086.sql | UTF-8 | 24,964 | 3.203125 | 3 | [] | no_license | #include <iostream>
#include <stdio.h>
#include <string>
#include <windows.h>
#include "include/mysql.h"
#include <sstream>
#include <string>
using namespace std;
int main()
{
MYSQL* conn;
MYSQL_ROW row;
MYSQL_RES *res;
int qstate;
int status = 0;
conn = mysql_init(0);
/*if (con == NULL)... | true |
92c59c183221d17a4699cbc549ae81f6ea22c11f | SQL | xzeng1991/nc-web | /core-libs/src/main/resources/h2/schema.sql | UTF-8 | 1,145 | 3 | 3 | [] | no_license | DROP TABLE t_user IF EXISTS;
DROP TABLE t_user_menu IF EXISTS;
DROP TABLE t_xingzuo IF EXISTS;
CREATE TABLE t_user (
user_id int NOT NULL,
user_name varchar(30) NOT NULL,
password varchar(30) NOT NULL,
user_type int NOT NULL,
locked int NOT NULL,
credit int NULL,
create_time timestamp NOT NULL,
... | true |
b8ad3db1af4c7f603c9d5d22df679652844e7599 | SQL | ylyxf/Scripts | /SQL/Query ODR check History.sql | UTF-8 | 233 | 2.828125 | 3 | [] | no_license | select cpod.*, cu.username from CD_Prj_ODR_Check cpod
JOIN CD_Prj_ODR cpo ON cpo.id=cpod.ODRID
JOIN CD_Device cd on cd.id=cpo.DeviceID
JOIN CD_User cu ON cu.id=cpod.CheckerID
WHERE cd.GenericCode='878321420' and cpod.TaskFlowID=64; | true |
fa4877f6090610d6661aec699556dbd1c68afa5c | SQL | go2suresh1979/MyRepo | /Personal/Solaris/main/datawarehouse/sql/cr_ad_obj.sql | UTF-8 | 6,434 | 3 | 3 | [] | no_license | /*
**---------------------------------------------------------------------------#
**
** Component: $Id:
** Author: Sunil L Ayyasamy
** Copyright: Totality Corporation, 2005. All Rights Reserved.
** Description: This script creates tables, index and constraints for the
** MS ActiveDirectory SPI m... | true |
33f9716a3d4ea8ad2fe2f20c6cb7adf2c8bad27c | SQL | dewangga-pk/SQL_BASDA | /Praktikum/Tugas 1.sql | UTF-8 | 369 | 4.0625 | 4 | [] | no_license | use pubs
--No.1
select p.pub_name,t.title,s.qty
from publishers p join titles t
on p.pub_id = t.pub_id
join sales s on t.title_id = s.title_id
where (p.pub_id%2 = 0) and (s.qty between 30 and 55)
--No.2
select s.stor_name,t.title
from stores s join sales sa on s.stor_id=sa.stor_id
join titles t on sa.title_id=t.title_i... | true |
a45ef43495baf5dc64e1f5d55535dd579f4b2527 | SQL | a-hurst/klibs | /klibs/resources/template/schema.sql | UTF-8 | 2,355 | 3.859375 | 4 | [] | no_license | /*
******************************************************************************************
NOTES ON HOW TO USE AND MODIFY THIS FILE
******************************************************************************************
This file is used at the beginning of your project to create the SQ... | true |
85b93b58bebd86b174d27338b32d015153b272a1 | SQL | husuch/Jukebox | /Database/music.sql | UTF-8 | 16,190 | 2.953125 | 3 | [] | no_license | DROP DATABASE IF EXISTS jukebox;
CREATE DATABASE IF NOT EXISTS jukebox;
USE jukebox;
CREATE TABLE IF NOT EXISTS music
(
ID SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
Song VARCHAR(45) NOT NULL,
Album VARCHAR(45) NOT NULL,
Artist VARCHAR(45) NOT NULL,
G... | true |
b2025d440da1041ba710d41605ca1974adef52f3 | SQL | TopProgger228/Training-Portal-NetCracker-Project | /backend/src/main/java/com/group3/basic/netcracker/backend/util/dbtables/InfoDesk.sql | UTF-8 | 550 | 3.203125 | 3 | [] | no_license | CREATE TABLE public."InfoDesk"
(
id integer NOT NULL DEFAULT nextval('idinfodeskupper'::regclass),
created_at timestamp without time zone,
status character varying(100) COLLATE pg_catalog."default",
user_id integer NOT NULL,
CONSTRAINT "InfoDesk_pkey" PRIMARY KEY (id),
CONSTRAINT user_infodesk F... | true |
c915fce3215ca8166f1ef285309d6cc91fbbe2d7 | SQL | SebSH/php | /bdd.sql | UTF-8 | 1,750 | 3.34375 | 3 | [] | no_license | -- Adminer 4.7.0 MySQL dump
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DROP TABLE IF EXISTS `article`;
CREATE TABLE `article` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
`content` varchar(255) NOT NULL,
`username` in... | true |
fc5e418c90e321d545860d4c04b002ad6dd8e64b | SQL | williamsVzla/scripts-user | /script.sql | UTF-8 | 453 | 3.34375 | 3 | [] | no_license | CREATE TABLE USER (
NAME VARCHAR(100) NOT NULL,
EMAIL VARCHAR(50) NOT NULL UNIQUE,
ENC_PASSW VARCHAR(30) NOT NULL,
ID VARCHAR(36) PRIMARY KEY,
CREATED DATE NOT NULL,
MODIFIED DATE,
LAST_LOGIN DATE NOT NULL,
IS_ACTIVE BOOLEAN NOT NULL);
CREATE TABLE PHONE (
ID VARCHAR(36) PRIMARY KEY,
NUMBER VARCHAR(15) NOT NULL,
CITY_... | true |
449cf79fccc8f60fd757fd088b7a8d32c247eda0 | SQL | mansijain980/Sysads-Task2 | /HackerMode/Mysql/HackerMode1.sql | UTF-8 | 245 | 2.609375 | 3 | [
"Apache-1.1"
] | permissive | CREATE DATABASE DATA;
GRANT ALL ON DATA.* TO 'ChiefCommander'@'db';
USE DATA;
CREATE TABLE complaint (
id int(255) auto_increment not null primary key,
name varchar(255) not null, complain varchar(500) not null,
time varchar(255) not null
); | true |
5da10f0683c1ad0a7f5ffbe57ef757221c845b3b | SQL | ecemozturkk/market_otomasyonu | /DataBase/stok.sql | UTF-8 | 7,371 | 3.265625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Anamakine: 127.0.0.1
-- Üretim Zamanı: 17 Haz 2021, 19:41:47
-- Sunucu sürümü: 10.4.19-MariaDB
-- PHP Sürümü: 8.0.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=... | true |
8142e8fd08352bc9f3c179901ccd9f3dcb2c9033 | SQL | Caoxianseng/Project | /专家信息管理系统/user.sql | UTF-8 | 196 | 2.515625 | 3 | [] | no_license | create table majoruser(
username varchar(50) Not Null,
usernumber varchar(50) PRIMARY KEY,
password varchar(50) Not Null,
phone varchar(50) Not Null,
ustime DateTime DEFAULT GetDate(),
); | true |
2644778a205213001611d61156b6171d243a1d10 | SQL | rlancer/emve | /emve-server/db_init.sql | UTF-8 | 900 | 3.6875 | 4 | [] | no_license | create table users (
id bigserial primary key,
google_id text not null unique,
email text,
email_verified boolean,
picture text,
first_name text not null,
last_name text not null,
locale text,
created_on date not null default current_timestamp
);
create table channels (
id bigserial primary key,... | true |
51d6bbda3856ffc2c373ff1adb8ea8c7e1b11b80 | SQL | AcerbragTI/db_escuela | /plan-de-trabajo/estudiantes/1-17.sql | UTF-8 | 209 | 2.765625 | 3 | [] | no_license | -- cuánto pagan por mes para asistir
SELECT E.NOM_Y_APE,
C.ID_CURSO,
C.NOMBRE_CURSO,
C.TURNO,
C.CUOTA_ALUMNO
FROM ESTUDIANTE E
LEFT JOIN CURSO C
ON E.ID_CURSO = C.ID_CURSO; | true |
aef90dcc5c724a59c88081965aac65dad9565fb0 | SQL | polecpatryk/Weather_Forecast_ZF | /DB.sql | UTF-8 | 330 | 3 | 3 | [] | no_license | CREATE DATABASE `weather` ;
USE `weather` ;
CREATE TABLE IF NOT EXISTS `search` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ip` int(4) unsigned NOT NULL,
`city` varchar(64) NOT NULL,
`from_date` datetime NOT NULL,
`to_date` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCR... | true |
b50b96dc8257c70c5da90e5493d66bb80e1dfe29 | SQL | harshitha811/DBMS | /LABTEST/labtest.sql | UTF-8 | 2,814 | 4.46875 | 4 | [] | no_license | create database AirlineFlightInfo;
use AirlineFlightInfo;
create table flight(fl_no int,fl_from varchar(20),fl_to varchar(20),distance int,depart varchar(20),arrives varchar(20),
primary key(fl_no));
create table aircraft(aid int,aname varchar(20),cruising_range int,fl_no int,
primary key(a... | true |
5896ce6e08b3ffae42219cb425fbbde04b239e69 | SQL | hhhayssh/stealmyidea | /src/main/sql/stealmyidea_create_tables.sql | UTF-8 | 869 | 3.734375 | 4 | [] | no_license | create sequence idea_id_sequence;
create sequence idea_number_sequence;
create table idea (
idea_id bigint primary key default nextval('idea_id_sequence'),
idea_number bigint not null default nextval('idea_number_sequence'),
idea varchar(100) not null unique,
idea_date varchar(100),
steal_status varchar(100),
ste... | true |
1fc727f4e830e5b20c0bbea9d363e20fa6e83dd6 | SQL | SvetlanaSumets11/python-education | /database/task_1_2/3_view.sql | UTF-8 | 686 | 3.75 | 4 | [] | no_license | CREATE MATERIALIZED VIEW count_price_rent
AS
SELECT first_name, last_name,
car_num, brand, model, price,
rent_period, (price * rent_period) as price_rent
FROM customer
JOIN rent USING(customer_id)
JOIN car USING(car_id)
ORDER BY price_rent DESC;
SELECT * FROM count_price_rent;
DROP MATERIALIZED VIEW count_price... | true |
e6f6d5b18052b10bc60a59ab94f52794ed74f5fc | SQL | Ani-Gil/Database | /Study/SQL 첫걸음 (서적)/7장-복수의 테이블 다루기/예제 7-06_상품 테이블 작성하기.sql | UTF-8 | 197 | 2.703125 | 3 | [] | no_license | CREATE TABLE 상품 (
상품코드 CHAR(4) NOT NULL,
상품명 VARCHAR(30),
메이커명 VARCHAR(30),
가격 INTEGER,
상품분류 VARCHAR(30),
PRIMARY KEY (상품코드)
); | true |
5bea75757257f788076abedd7b98ffef2f67316a | SQL | entrofi/microservicesSandbox | /airline-booking-engine/kbms/src/main/resources/sql/CREATE_SCHEMA.sql | UTF-8 | 10,755 | 3.265625 | 3 | [] | no_license | DROP SCHEMA IF EXISTS TESTDB;
CREATE SCHEMA IF NOT EXISTS TESTDB;
DROP TABLE IF EXISTS KBMS_AIRLINE;
CREATE TABLE KBMS_AIRLINE
(
ID NUMBER(19) NOT NULL,
CREATE_DATE TIMESTAMP(6),
IP_ADDRESS VARCHAR2(255 CHAR),
UPDATE_DATE TIMESTAMP(6),
USER_ID NUMBER(19),
VERSION NUMBER(10) ... | true |
cc7d0668d977d7e1890029b62c117ec0797d5f3a | SQL | DoStini/feup-bdad | /exams/2020/recurso/q1.sql | UTF-8 | 82 | 2.640625 | 3 | [] | no_license | SELECT Name, Title, Country FROM Speaker
JOIN Talk ON id=speaker
ORDER BY Country; | true |
7f3d92209d37607a8447cc5ed9b475be19675131 | SQL | Arshitha/mysql-practice | /employee_salaries.sql | UTF-8 | 87 | 2.78125 | 3 | [] | no_license | SELECT name
FROM Employee
WHERE salary > 2000 AND months<10
ORDER BY employee_id ASC
| true |
12e403c2296ccde39827cc023294ea7eb9114f5e | SQL | jkvou943/vl | /amz.sql | UTF-8 | 47,357 | 2.96875 | 3 | [] | no_license | /*
Navicat MySQL Data Transfer
Source Server : 192.168.10.33
Source Server Version : 50722
Source Host : 192.168.10.33:3306
Source Database : amz
Target Server Type : MYSQL
Target Server Version : 50722
File Encoding : 65001
Date: 2018-09-29 12:16:51
*/
SET FOREIGN_KEY_CHECKS=0;
... | true |
379d765b9609f4a33ec22fba841849476ff36b90 | SQL | paran0ids0ul/exploits | /oracle/raptor_orafile.sql | UTF-8 | 2,452 | 3.515625 | 4 | [
"MIT"
] | permissive | --
-- $Id: raptor_orafile.sql,v 1.1 2006/12/19 13:53:01 raptor Exp $
--
-- raptor_orafile.sql - file system access suite for oracle
-- Copyright (c) 2006 Marco Ivaldi <raptor@0xdeadbeef.info>
--
-- This is an example file system access suite for Oracle based on the utl_file
-- package (http://www.adp-gmbh.ch/ora/plsql/... | true |
cb9efa3f5eaf7ca8d91ac74137466daa11b95049 | SQL | rolandoquiroz/holbertonschool-higher_level_programming | /0x0E-SQL_more_queries/1-create_user.sql | UTF-8 | 370 | 2.734375 | 3 | [] | no_license | -- Script that creates the MySQL server user user_0d_1
-- user_0d_1 have all privileges on your MySQL server
-- The user_0d_1 password is set to user_0d_1_pwd
-- If the user user_0d_1 already exists, this script does not fail
CREATE USER IF NOT EXISTS user_0d_1@localhost IDENTIFIED BY 'user_0d_1_pwd';
GRANT ALL PRIV... | true |
9d49753c0a01e9808e78959c751b60e4409dbedd | SQL | Pokochok/Epam-projects | /tourAgency/pgsqlinit/schema.sql | UTF-8 | 15,018 | 2.8125 | 3 | [] | no_license | --
-- PostgreSQL database dump
--
-- Dumped from database version 10.10
-- Dumped by pg_dump version 11.5
-- Started on 2019-09-16 18:10:29
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catal... | true |
4d25df3f9aa7f6eb434d92046eaa372d7ff0362c | SQL | lgarceau768/group16itcs3160project | /procedures/getLowestVendorRatings.sql | UTF-8 | 254 | 3.171875 | 3 | [] | no_license | DELIMITER $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `getLowestVendorRatings`()
Begin
select * from vendor_ratings as ratings
left join restaurant on
ratings.resturant_id = restaurant.restaurant_id
order by ratings.rating asc;
end$$
DELIMITER ;
| true |
210e65eab2d742a8f53e5779cb75da5ab09a069d | SQL | aknosa/entregas-hab | /sql/entrega-4/zonaAzul.sql | UTF-8 | 1,823 | 3.78125 | 4 | [] | no_license | CREATE DATABASE IF NOT EXISTS zona_azul;
USE zona_azul;
SET FOREIGN_KEY_CHECKS = 0;
CREATE TABLE IF NOT EXISTS usuarios (
id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT,
nombre VARCHAR(50)NOT NULL,
apellidos VARCHAR(50) NOT NULL,
dni VARCHAR(9) NOT NULL,
telefono VARCHAR(15),
email VARCHAR(50),
... | true |
a55821fe0b53e86a76230281dc537e021b8450c8 | SQL | 4ndertron/UrgentFeedback | /SQL/CXBR/CXBR Archive/DeceasedReduction.sql | UTF-8 | 3,068 | 4.3125 | 4 | [] | no_license | WITH TWO_Q_AGO AS (
/*
SELECT
DATE_TRUNC('MM', DATEADD('MM', -6, CURRENT_DATE)) AS START_TWO_Q_AGO
, LAST_DAY(DATEADD('MM',-4, CURRENT_DATE)) AS END_TWO_Q_AGO
*/
SELECT C.CREATED_DATE
, C.CASE_NUMBER
, C.STATUS
, C.PRIMARY_REASON
, CAD.SYSTEM_SIZE_ACTUAL_... | true |
2bcbba961bd8121006d928731bcb3b0b5665745c | SQL | nwseven/Shopee | /shopee.sql | UTF-8 | 2,048 | 2.875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.2.7.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 20 Jun 2017 pada 03.40
-- Versi Server: 5.6.20
-- PHP Version: 5.5.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*... | true |
43822e6c31d92b0a8fd5c3d87b11c73fd672a1e1 | SQL | pmSavenko/web-tecnologies | /bd_cherepashka.sql | UTF-8 | 3,413 | 3.078125 | 3 | [] | no_license | -- --------------------------------------------------------
-- Хост: 127.0.0.1
-- Версия сервера: 8.0.19 - MySQL Community Server - GPL
-- Операционная система: Win64
-- HeidiSQL Версия: 11.2.0.6213
-- ------------------------------------------------------... | true |
f5720797a623c96bfc9b0417ca7b99d7a2743942 | SQL | ivaneyvieira/engEstoque | /src/main/resources/sqlSaci/userSenha.sql | UTF-8 | 1,060 | 2.96875 | 3 | [] | no_license | SELECT U.no,
U.name,
login,
auxLong1 AS storeno,
CAST(CONCAT(CHAR(ASCII(SUBSTRING(pswd, 1, 1)) + ASCII('e') - ASCII('j')),
CHAR(ASCII(SUBSTRING(pswd, 2, 1)) + ASCII('a') - ASCII('h')),
... | true |
e0f940f81efb934a17bcf19b963d02d2f7a9ab84 | SQL | amnnma/mysql_tutorial | /mysql8_json_filter_pokedex.sql | UTF-8 | 3,144 | 3.96875 | 4 | [] | no_license | -- สอน MySQL 8: filter JSON data
-- pokedex table: https://github.com/prasertcbs/mysql_tutorial/blob/main/pokedex.sql
-- doc: https://dev.mysql.com/doc/refman/8.0/en/json-search-functions.html
-- YouTube: https://youtu.be/CxY6oxtXXkI
-- Author: Prasert Kanawattanachai
-- email: prasert.k@chula.ac.th
describe po... | true |
e695222adc44c99f260af7b4a55a00177bd10447 | SQL | ferran34160/lab-sql-8 | /Lab SQL Queries - Lesson 2.8 (Solutions).sql | UTF-8 | 2,258 | 4.5 | 4 | [] | no_license | USE sakila;
-- 1 / Write a query to display for each store its store ID, city, and country.
SELECT s.store_id, c.city, co.country
FROM sakila.store s
JOIN sakila.address a USING (address_id)
JOIN sakila.city c USING (city_id)
JOIN sakila.country co USING (country_id);
-- 2 / Write a query to display how much busines... | true |
2ae6cad8db7aa643fd678887010ebd5cca2bda8b | SQL | dgopstein/atoms-of-confusion | /snippet_study/sql/clustered_contingency_normalized.sql | UTF-8 | 484 | 3.9375 | 4 | [] | no_license | -- Select clustered user data to be analyzed by the
-- clustered-matched-pair package I'm developing
select
uc.userid as subject,
t.tag as atom,
uc.correct = 'T' as control,
uc2.correct = 'T' as treatment
from scrubbed_usercode uc
join code c on uc.codeid = c.id
join scrubbed_usercode uc2 on uc.userid = uc2.u... | true |
4b35bf58feebdc9f188d444f9af4a43f95695256 | SQL | moutainhigh/project-exchange | /fupin/sql/stat2.sql | UTF-8 | 3,504 | 2.96875 | 3 | [] | no_license | select
'北部山区',
a.name as '区(县)',
(select sum(f2.id) from fp_family f2 LEFT OUTER JOIN fp_diqu c2 ON f2.cun_id = c2.id where c2.id=c.id) as '贫困户数',
sum(c.poorPersonNum) as '贫困人口数',
sum(c.poorFamilyNum1) as '1低保对象(户) ',
sum(c.poorPersonNum1) as '1低保对象(人) ',
sum(c.poorFamilyNum3) as '1低收入困难家庭(户) ',
sum(c.poorPersonNum3) a... | true |
d2c06af1ebb336e5ff791c1bcb91be4aaf7c8606 | SQL | rocknoon/TCVM | /sql.sql | UTF-8 | 4,676 | 3.046875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 3.4.9
-- http://www.phpmyadmin.net
--
-- 主机: localhost
-- 生成日期: 2012 年 02 月 26 日 11:37
-- 服务器版本: 5.0.92
-- PHP 版本: 5.2.6
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- 数据库: `tcvmcoma_tcvm`
--
-- --------------------------------------------------------
--
-- 表... | true |
251fdc344fc819712067e8bf2edebb2fcb3537e2 | SQL | silence-do-good/stress-test-Postgres-and-MySQL | /dump/low/day28/select1221.sql | UTF-8 | 191 | 2.6875 | 3 | [] | no_license |
SELECT timeStamp, temperature
FROM ThermometerObservation
WHERE timestamp>'2017-11-27T12:21:00Z' AND timestamp<'2017-11-28T12:21:00Z' AND SENSOR_ID='5506827c_00f2_4264_b1db_a1feace90e51'
| true |
ff1435d19f3fec39ce5b9eb67e36abb8e10b45e3 | SQL | Kami-Juan/PL-SQL-TEC | /Unidad 2/Ejemplos/llamarMiPrimerBloqueAnonimo.sql | UTF-8 | 646 | 2.640625 | 3 | [] | no_license | DECLARE
ide Employees.Employee_id%TYPE;
nombre_emp Employees.first_name%TYPE;
apellido_emp Employees.last_name%TYPE;
salario_emp VARCHAR2(20);
contrata_emp VARCHAR2(20);
numerito VARCHAR2(100);
BEGIN
ide:=150;
consulta_emp(ide,nombre_emp,apellido_emp,salario_emp,contrata_emp,numerito);
DBMS... | true |
218109f3687c6113fe90acae5612c7d12e81a134 | SQL | shuaibabubakker/s5 | /asd/exp9/exp9.sql | UTF-8 | 418 | 2.75 | 3 | [] | no_license | --EXPERIMENT 9--
--* Implementation of various aggregate functions in SQL --
----- MESS MARKING SYSTEM -----
USE mess;
select * from bills;
select max(amount) from bills;
select min(amount) from bills;
select avg(amount) from bills;
select count(bill_id) from bills;
select * from bills;
select sum(amount) ... | true |
f394c0720c42fb71a975f792e133579420d40192 | SQL | E7su/eevee | /kernel/V_VACATIONS_CHANGES.SQL | UTF-8 | 1,963 | 3.953125 | 4 | [] | no_license | CREATE OR REPLACE FORCE VIEW JIRA_READER.V_VACATIONS AS
SELECT
COALESCE(u1.DISPLAY_NAME, u2.DISPLAY_NAME, j.REPORTER) AS fio,
TRUNC(c1.DATEVALUE) AS DATE_START,
TRUNC(c2.DATEVALUE) AS DATE_END,
c3.STRINGVALUE AS TIME_START,
c4.STRINGVALUE AS TIME_END,
c5.STRINGVALUE AS REASON_ID,
j.REPORTE... | true |
a84e3d0bd0ec26792a81e3915d66815f289c61a4 | SQL | apokar1211/technothon | /technothon/technothonFinal.sql | UTF-8 | 8,608 | 2.890625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 3.3.9
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Feb 25, 2016 at 07:56 AM
-- Server version: 5.5.8
-- PHP Version: 5.3.5
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SE... | true |
bd74397190a330a12af1c78c858943a00c55d63e | SQL | grocy/grocy | /migrations/0052.sql | UTF-8 | 2,442 | 4 | 4 | [
"MIT"
] | permissive | ALTER TABLE recipes
ADD base_servings INTEGER DEFAULT 1;
ALTER TABLE recipes
ADD desired_servings INTEGER DEFAULT 1;
DROP VIEW recipes_fulfillment;
CREATE VIEW recipes_fulfillment
AS
SELECT
r.id AS recipe_id,
rp.id AS recipe_pos_id,
rp.product_id AS product_id,
rp.amount * (r.desired_servings / r.base_servings) A... | true |
8729facae740a970780302e61ae5b7737c345c7c | SQL | daniellacosse/app-academy | /Week 3; SQL/W3D1/SQL_Zoo.sql | UTF-8 | 11,393 | 4.28125 | 4 | [] | no_license | --1.1
SELECT population FROM world
WHERE name = 'Germany';
--1.2
SELECT name, gdp/population
FROM world
WHERE area > 5000000;
--1.3
SELECT name, continent
FROM world
WHERE area < 2000
AND gdp > 5000000000;
--1.4
SELECT name, population
FROM world
WHERE name IN ('Denmark', 'Finland', 'Norway', 'Sweden');
--1.5
S... | true |
e4b818b3e62cdac5694000e6a019bb977d68d482 | SQL | GrisafiAlessandro/bootstrapQRProject | /php/Sql backups/Documents.sql | UTF-8 | 2,693 | 3.140625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.4.6.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Creato il: Lug 09, 2015 alle 00:05
-- Versione del server: 5.6.24
-- Versione 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_CLIENT */;... | true |
332ad1b47a83aef46d23f45f2f960fd7469bd644 | SQL | lytranuit/ALTP | /Mysql/altp.sql | UTF-8 | 9,580 | 3.109375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.1.6
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jun 20, 2014 at 11:59 AM
-- Server version: 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 */;
/... | true |
afb09b8628ae2d751396ca48bd7584504dd7450b | SQL | cha63506/Archive-114 | /Delphi/Abonents/SQL/Создание БД/07 CITY_LIST.sql | WINDOWS-1251 | 1,887 | 3.21875 | 3 | [] | no_license | /******************************************************************************/
/*** Generated by IBExpert 20.05.2010 14:00:00 ***/
/******************************************************************************/
/***************************************************************************... | true |
7e6210e0805ee8da0cbd6c6cc433e76b2b6c65f0 | SQL | agarwalvibhor99/BookStore | /-- SQLite.sql | UTF-8 | 309 | 3.8125 | 4 | [] | no_license | -- SQLite
SELECT bookData.*, AVG(score) FROM bookData, Review WHERE bookData.ISBN = Review.ISBN GROUP BY Review.ISBN;
-- SQLite
SELECT bookData.*, Author.name,AVG(score) FROM bookData LEFT JOIN Author ON bookData.authorID = Author.authorID LEFT JOIN Review ON bookData.ISBN = Review.ISBN GROUP BY Review.ISBN | true |
381df8982c44992708ef58c2e4444a2829c74d28 | SQL | omkumar001/Eventista | /Eventista.session.sql | UTF-8 | 3,314 | 3.71875 | 4 | [] | no_license | CREATE TABLE Attendee(
Att_username varchar(16),
AttEmail varchar(30),
AttName varchar(30),
AttPassword varchar(15),
DateOfBirth date,
Age int as (year(CURRENT_TIMESTAMP) - year(DateOfBirth)),
primary key (Att_username)
);
CREATE TABLE Organizer(
Org_username varchar(16),
OrgEmail varchar(3... | true |
8a97c27afee5f8114551d714662ffd5c3d14dc35 | SQL | murilomirandan/sqlProject | /part2/query6.sql | UTF-8 | 498 | 3.859375 | 4 | [] | no_license | /* Let's explore Cancelled orders now.
We will try to find relationships between the state of the orders and the category & brand of the products in those orders.
First, we will connect each product (sku) from the line_item table to the orders table.
We only want sku that have been in any order. This table w... | true |
589eafe78497769022d3706b6fbf3380781d9b82 | SQL | jboss-set/mjolnir | /src/main/resources/InitialPostgresSQL/create_tables.sql | UTF-8 | 993 | 3.4375 | 3 | [] | no_license | create sequence sq_github_orgs;
create table github_orgs (
id bigint default nextval('sq_github_orgs') primary key,
name varchar(255) unique,
subscriptions_enabled boolean default true;
);
create sequence sq_github_teams;
create table github_teams (
id bigint default nextval('sq_github_teams') primar... | true |
4f525a79be16e767d9158711e1bb6613f4877b18 | SQL | khoihoang123-zz/Testing_system_1 | /SQL/Testing Assignment/Testing_System_1_2.sql | UTF-8 | 9,618 | 3.21875 | 3 | [] | no_license | -- tao database
DROP DATABASE IF EXISTS Testing_System_Assignment_1;
CREATE DATABASE Testing_System_Assignment_1;
USE Testing_System_Assignment_1;
-- tao bang department
CREATE TABLE `Department` (
DepartmentID INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
DepartmentName VARCHAR (30) NOT NULL
);
-- insert data cho bang d... | true |
3088b06967c6e35e1dfdbe0c8dc34e1f229941d6 | SQL | DamienIsOK/Homework-week12-bamazon | /schema.sql | UTF-8 | 228 | 2.78125 | 3 | [] | no_license | CREATE DATABASE Bamazon;
CREATE TABLE Products (
ItemID INT(9) NOT NULL,
ProductName VARCHAR(50) NOT NULL,
DepartmentName VARCHAR(50) NOT NULL,
Price DECIMEL(3,2) NOT NULL,
StockQuantity INT(3) NOT NULL,
PRIMARY KEY (ItemID)
); | true |
24e90c0fd94dca315038d529271fd4ae559ed88e | SQL | luharm03/test | /setup.sql | UTF-8 | 3,323 | 3.109375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 3.3.9
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Sep 18, 2013 at 07:49 AM
-- Server version: 5.5.8
-- PHP Version: 5.3.5
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Database: `setup`
--
-- --------------------------------------------------------
--
-- Ta... | true |
8b5e6a4b7e74fc3cf3fe6edc2869052f3dce5d10 | SQL | demo-mode/demo-github-sync | /Mode/demo/spaces/Jessica Baier's Collection/Netradyne Example Company KPI Dashboard.ed2b4690f7e0/Heat map.697d2e508fee.sql | UTF-8 | 167 | 3.359375 | 3 | [] | no_license | SELECT DISTINCT a.lat,
a.long
FROM demo.accounts a
JOIN demo.orders o
ON o.account_id = a.id
AND o.occurred_at < '2017-01-01' | true |
6536d34de3782f07baba5f99b8fd47d86d16d370 | SQL | SELiOTe/fitting-room-backend | /script/mariadb/create.sql | UTF-8 | 12,190 | 3.765625 | 4 | [] | no_license | -- -------------------------------------------------------------------------
-- 数据库创建脚本
-- 版本: MariaDB 10.5.8
-- 用法: mariadb -uroot -p < create.sql
-- -------------------------------------------------------------------------
-- 创建数据库
CREATE DATABASE fitting_room CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci';
-... | true |
8d873ba394d99d865bee1628278d23cef7a8ea9e | SQL | Oscajunq/HandsON | /HandsON_Oracle/DBA/ANALYZE_FULL_CARDS.SQL | UTF-8 | 1,753 | 2.828125 | 3 | [] | no_license | ----------------------------------------------------------------------------
--
-- File: ANALYZE.SQL
--
-- Description: Analyze Tables/Indexes/Clusters Compute Statistcs
--
-- From: SQL*Plus
--
-- Author:
--
-- History: 19/09/2000
--
----------------------------------------------------------------------------
SET EC... | true |
a56cf3453de01e9fb69cbe2824b89b61af5f510a | SQL | VerlyCode/TPL3 | /ABD/TP1_Exo5.sql | UTF-8 | 1,593 | 4.09375 | 4 | [] | no_license | #1. Quelles sont les personnes ayant emprunté le livre “Recueil Examens BD” ?
SELECT e.Personne FROM Emprunt e, Retard r
WHERE e.Personne=r.Personne
AND r.Livre="Recueil Examens BD";
#2. Quelles sont les personnes n’ayant jamais rendu de livre en retard ?
SELECT e.Personne FROM Emprunt e, Retard r
WHERE e.Personne=r.Pe... | true |
85d6131831e9ce41bf43957e93a3b75c5cbb7837 | SQL | 84tghuynh/DatabaseProgramming | /Mid-term Project/Mid-term Project Part D/Set Up PartD.sql | UTF-8 | 1,896 | 3.8125 | 4 | [] | no_license | ACCEPT userid PROMPT "Please enter your user id: "
conn &userid@DBMSDBII
--=================================================
-- This script cleans up your schema and creates
-- four tables and a table in the Recyclebin
-- that can be used to test the final part of
-- assignment 6.
--
-- When this script is done your ... | true |
69a051d598c5edb9b3aa44d0de8dc66d2834776a | SQL | PrimOox/cursodeferias2017 | /plsql/respostas/capitulo-02-exercicio-02.sql | UTF-8 | 759 | 3.265625 | 3 | [] | no_license | -- TIME
alter table TIME add constraint PK_TIME primary key (ID_TIME);
alter table TIME add constraint UK_TIME unique (NOME);
-- JOGADOR
alter table JOGADOR add constraint PK_JOGADOR primary key (ID_JOGADOR);
alter table JOGADOR add constraint FK_JOGADOR foreign key (ID_TIME) references time(ID_TIME);
alter table ... | true |
2c842c8dc06691f311647343a2bc33ee1e874503 | SQL | djibril-coulybaly/FishingTAG-A2G-Campaign-Website | /Website/a2g-campaign.sql | UTF-8 | 1,702 | 3.078125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 04, 2021 at 03:14 AM
-- Server version: 10.4.6-MariaDB
-- PHP Version: 7.3.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... | true |
ea0576ef1e6b315ed23d7b45e4477b336abc4733 | SQL | Goflyinging/AEMAIP | /src/main/resources/aemaip.sql | UTF-8 | 20,507 | 3.125 | 3 | [] | no_license | drop database if exists mybatis;
create database mybatis CHARACTER SET UTF8;
use mybatis;
drop table if exists Character_Resource;
drop table if exists Characters;
drop table if exists Enclosure;
drop table if exists MonitoringPrograms;
drop table if exists OversightGroup;
drop table if exists ReservationSupervis... | true |
cace138019b700cd26727b1c7f928650174eb124 | SQL | kmpetitlopez/ucmflix-db | /scripts/reset_database.sql | UTF-8 | 273 | 2.515625 | 3 | [] | no_license | DROP DATABASE IF EXISTS ucmflix;
CREATE DATABASE ucmflix DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_bin;
DROP user 'ucmflix'@'%';
flush privileges;
CREATE USER 'ucmflix'@'%' IDENTIFIED BY 'ucmflix';
GRANT ALL PRIVILEGES ON ucmflix.* TO 'ucmflix'@'%' WITH GRANT OPTION; | true |
8f8886f141798989fc81588b3f6fbbe1ad2ad735 | SQL | Clelo4/ActsBoard | /docs/actsboard_2018-5-4.sql | UTF-8 | 14,099 | 3.25 | 3 | [] | no_license | /*
Navicat MySQL Data Transfer
Source Server : 腾讯云
Source Server Type : MySQL
Source Server Version : 50556
Source Host : 123.207.35.163:3306
Source Schema : actsboard_test
Target Server Type : MySQL
Target Server Version : 50556
File Encoding : 65001
Date: 04/05/201... | true |
d4944bb3caf61bea87fc3f620fab9b5427f62fb1 | SQL | hhummel/recyclobuddy | /app/sql/subscribers.sql | UTF-8 | 857 | 2.609375 | 3 | [] | no_license | create table subscribers
(
prefix varchar(3) not null,
first_name varchar(35) not null,
middle_name varchar(35) null,
last_name varchar(35) not null,
suffix varchar(5) null,
address varchar(100) not null,
address2 varchar(100) null,
city varchar(100) not null,
state varchar(2) not null,
zip varchar(5) not nul... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.