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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3194024ef94a34ef628c807f64c2c41098165764 | SQL | zhaoqiang6/demo1 | /ooooo.sql | GB18030 | 1,919 | 4.03125 | 4 | [] | no_license | CREATE TABLE INFOS (
STUID VARCHAR2(7) NOT NULL , --ѧ ѧ=S++2λ
STUNAME VARCHAR2(10) NOT NULL, --
GENDER VARCHAR2(2) NOT NULL,--Ա
AGE NUMBER(2) NOT NULL, --
SEAT NUMBER(2) NOT NULL, --
ENROLL DATE,--ѧʱ
STUADDRESS VARCHAR2(50) DEFAULT 'ַ', --סַ
CLASSNO VARCHAR2(4) NOT NULL -- =ѧ+༶
);
select * from infos;
ALTER TABLE INFOS... | true |
c3c6537dbc9f56ffce39b3366610ec13a5b55cb5 | SQL | kenti-lan/framework | /metroUI/smartwork/smartwork.sql | UTF-8 | 3,583 | 3.203125 | 3 | [] | no_license | /*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50524
Source Host : localhost:3306
Source Database : smartask
Target Server Type : MYSQL
Target Server Version : 50524
File Encoding : 65001
Date: 2016-03-13 03:30:05
*/
SET FOREIGN_KEY_CHECKS=0;
-- ... | true |
bce2fe56996e3595d0a9c5ede492d75489c6d6b5 | SQL | wiebejordan/Simulation-one | /shelfie/db/seed.sql | UTF-8 | 582 | 2.734375 | 3 | [] | no_license | drop table if exists shelfie_table;
create table shelfie_table(
product_id serial,
image_url text,
product_Name varchar(80),
price integer
);
insert into shelfie_table
(image_url, product_Name, price)
Values
('https://lor66yzmui-flywheel.netdna-ssl.com/wp-content/uploads/2016/11/decker_30... | true |
c096026f932c82c322594b68d49828b13b297871 | SQL | Daylight-Makaay/MySql_Select_Test_Demo | /mysqlNOTE/0506.sql | UTF-8 | 7,780 | 4.21875 | 4 | [] | no_license |
#授权
grant select on 0506colin.test to testshuang;
#撤回
revoke select on 0506colin.test from testshuang;
create user mytest identified by '123456';
alter user mytest identified by '123478';
drop user mytest;
use 0506colin;
create table PInfo
(
num int primary key ,#主键约束,表中这列不允许重复
name varchar(... | true |
02b325d1a76a256b0aa3a078f9c592a9a8fc778a | SQL | liustanley/fridge-tracker | /backend/fridge-tracker.sql | UTF-8 | 8,367 | 3.765625 | 4 | [
"MIT"
] | permissive | DROP DATABASE IF EXISTS fridge_tracker;
CREATE DATABASE IF NOT EXISTS fridge_tracker;
USE fridge_tracker;
CREATE TABLE IF NOT EXISTS users (
username VARCHAR(255) NOT NULL,
password VARCHAR(255) NOT NULL,
PRIMARY KEY (username)
);
CREATE TABLE IF NOT EXISTS ingredients (
ingredient_id INT AUTO_INCREMENT,
... | true |
82dc65badbac3539b95f54258f05cb3612be3b4b | SQL | hasemeneh/UASPW | /dshoes baru.sql | UTF-8 | 6,071 | 2.890625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 03 Des 2016 pada 09.49
-- Versi Server: 10.1.16-MariaDB
-- PHP Version: 5.6.24
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT... | true |
bc336583f84fc08a710b95634a3fed5ab5e654c8 | SQL | rodrigosbrito/EstruturaDadosFinanciamento | /Querys.sql | UTF-8 | 10,787 | 3.796875 | 4 | [] | no_license | /*Modele uma estrutura de dados do seguinte caso:
- Um cliente tem os seguintes campos :
Nome,
Id Cliente,
UF,
Celular
- Um cliente tem N financiamentos.
- Um financiamento tem os seguintes campos :
Id Cliente,
Tipo Financiamento,
Valor Total,
Data Vencimento
- Cada financiamento tem N parcelas... | true |
ea6fb806b5dbb28ac9b97e86979beb67a5634b3b | SQL | chlam54/Hplus | /batch.sql | UTF-8 | 3,742 | 3.546875 | 4 | [] | no_license | USE data;
CREATE TABLE `match` (
`id` varchar(50) NOT NULL,
`matchNum` varchar(20) NOT NULL,
`matchDate` varchar(20) NOT NULL,
`matchTime` datetime NOT NULL,
`matchType` varchar(20) DEFAULT NULL,
`matchTypeEn` varchar(50) DEFAULT NULL,
`homeName` varchar(20) DEFAULT NULL,
`awayName` varchar(20) DEFAULT ... | true |
04c63555a5a1ce5a380270367ffe74655815c225 | SQL | vpetrigo/courses | /db2017/week05/task04/solution.sql | UTF-8 | 577 | 3.765625 | 4 | [] | no_license | WITH week_delta AS (
SELECT *, share_price - first_value(share_price) OVER _week AS delta
FROM StockQuotes
WINDOW _week AS (PARTITION BY company ORDER BY week ROWS 1 PRECEDING)
),
stock_index AS (
SELECT *, AVG(delta) OVER (PARTITION BY week) AS stock_index
FROM week_delta
),
company_streak AS (
... | true |
744218dbdb820cb51dd80f851615ee45875bf0e7 | SQL | xand0702/sgerp | /vendas/vendas/prod_acab.sql | UTF-8 | 999 | 2.734375 | 3 | [] | no_license |
CREATE TABLE `vendas` (
`VEN_ID` INT(11) NOT NULL AUTO_INCREMENT,
`VEN_CODIGO` INT(11) DEFAULT NULL,
`VEN_ID_VEN_FUN` INT(11) DEFAULT NULL,
`VEN_ID_CLI` INT(11) DEFAULT NULL,
`VEN_TRANSP` VARCHAR(100) DEFAULT NULL,
`VEN_F_PGMT` VARCHAR(100) DEFAULT NULL,
`VEN_M_PGMT` VARCHAR(100) DEFAULT NULL,
`V... | true |
48a79cbb0c2aba93b804096687a9c9d9ec1b9a0d | SQL | barbarodh/dashboard-datatables-modal-crud | /bd/test_crud.sql | UTF-8 | 2,295 | 2.953125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 19-01-2021 a las 21:24:24
-- Versión del servidor: 10.4.10-MariaDB
-- Versión de PHP: 7.3.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";... | true |
9a01717fec493907032de9f61829a7ac5c7a8f06 | SQL | marunoa/SELECT-todo-FROM-list | /todo_app.sql | UTF-8 | 3,171 | 4.40625 | 4 | [] | no_license | --Write a query to delete a user named michael if it exists
DROP USER IF EXISTS michael;
--Write a query to create a user named michael with an encrypted password stonebreaker
CREATE USER "michael" WITH ENCRYPTED PASSWORD 'stonebreaker';
--Write a query to drop a database named todo_app if it exists
DROP DATABASE IF ... | true |
976a68b6914e72d71a81def9dcf84f2b82d55304 | SQL | cckmit/das | /sql/ClusterManagement.sql | UTF-8 | 10,527 | 3.84375 | 4 | [
"Apache-2.0"
] | permissive |
# GENERIC DATA SOURCES
select *
from data_source
where bot_class is null;
# LISTING DATA SOURCES VIEW
select
id
, url
, running rn
, staged sg
, temp_disabled td
, perm_disabled pd
, stealth_mode ... | true |
75e14f839a31a09440e14868241b56c9f5d52ed7 | SQL | jbzhang99/Manager | /bi-front-server-master/bi-front-server-master/bi-front-server/db/biserveranalysis.sql | UTF-8 | 15,326 | 3.328125 | 3 | [] | no_license | /*
Navicat Premium Data Transfer
Source Server : db_qq_game_beijing
Source Server Type : MySQL
Source Server Version : 50718
Source Host : bj-cdb-36wyknhl.sql.tencentcdb.com:63832
Source Schema : biserveranalysis
Target Server Type : MySQL
Target Server Version : 50718
File En... | true |
bb34f16f931eea38003f9db2eeccf94b987f6252 | SQL | shahhimtest/5DD | /Help/dump/southernairportdb_aircraft.sql | UTF-8 | 2,894 | 3.203125 | 3 | [] | no_license | CREATE DATABASE IF NOT EXISTS `southernairportdb` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `southernairportdb`;
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: southernairportdb
-- ------------------------------------------------------
-- Server version 5.5.27
/*!40101 SE... | true |
69e0edb52d1afae3608e7d7fbca1d3bb0ed9a395 | SQL | C0rby/matomat-service | /maas-server/db/schema.sql | UTF-8 | 701 | 3.109375 | 3 | [] | no_license | CREATE TABLE `consumption_log` (
`userID` INTEGER PRIMARY KEY,
`itemID` INTEGER NOT NULL,
`amount` INTEGER NOT NULL,
`cost` INTEGER NOT NULL,
`timestamp` INTEGER NOT NULL
);
CREATE TABLE `items` (
`ID` INTEGER PRIMARY KEY AUTOINCREMENT,
`name` VARCHAR(256) NOT NULL,
`cost` INTEGER
);
CREATE TABLE `items_stats` ... | true |
99b2dc19444f51801428eccf611494c8cbd85660 | SQL | rajxeon/WonderChefAdmin | /wonderchefs.sql | UTF-8 | 69,274 | 3.453125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 11, 2017 at 03:22 PM
-- Server version: 5.7.14
-- PHP Version: 5.6.25
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */... | true |
a7a25717a3860576459782564a309e615a7d3d55 | SQL | kevinguimaraes/senac-dd-20182-atividades-kevinguimaraes | /ManagerRentalNew/sql_rentalmanager.sql | UTF-8 | 5,595 | 3.265625 | 3 | [] | no_license | -- drop database db_rentalmanager;
create database db_rentalmanager;
use db_rentalmanager;
create table usuario (
idusuario int not null auto_increment,
nome varchar(255),
cpf varchar(15),
login varchar(100),
pass varchar(100),
primary key (idusuario)
);
create table estado (
idestado int not null auto_increme... | true |
ecde1666d9dd43e9f6e85450be68637c26b002b2 | SQL | heon24500/PS | /Programmers/Practice SQL/59044.sql | UTF-8 | 123 | 3.125 | 3 | [] | no_license | SELECT NAME, DATETIME FROM ANIMAL_INS
WHERE ANIMAL_ID NOT IN (SELECT ANIMAL_ID FROM ANIMAL_OUTS)
ORDER BY DATETIME
LIMIT 3; | true |
068697d4c6a459efcce633e9a2bb1ad05df03ca7 | SQL | fnwiya/pgexercises | /aggregation/count3.sql | UTF-8 | 141 | 2.5625 | 3 | [] | no_license | SELECT
recommendedby
,COUNT(*)
FROM
cd.members
WHERE
recommendedby IS NOT NULL
GROUP BY
recommendedby
ORDER BY
recommendedby;
| true |
ace3acd00c0f8716a3ef28ee21cfd369e8747379 | SQL | KarmaScripter/BudgetExecution | /Data/Database/SQLite/DataModels/INSERT/InsertNetDeobligationsUpdates.sql | UTF-8 | 2,196 | 3.546875 | 4 | [
"MIT"
] | permissive | INSERT INTO NetDeobligations
SELECT DISTINCTROW StatusOfFunds.BFY, StatusOfFunds.EFY, StatusOfFunds.FundCode, StatusOfFunds.FundName, StatusOfFunds.RpioCode, StatusOfFunds.RpioName, StatusOfFunds.AhCode, StatusOfFunds.AhName, StatusOfFunds.OrgCode, StatusOfFunds.OrgName, StatusOfFunds.AccountCode, StatusOfFunds.Progra... | true |
a8043bdf00179b425eaeb375b56dd874f315cc81 | SQL | naikrudresh/internship2020.github.io | /database.sql | UTF-8 | 3,096 | 3.140625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 13, 2020 at 04:21 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
55a8773c09593bfc8858e8e0462f478436881b45 | SQL | wcollins71/Employee-Tracker | /db/schema.sql | UTF-8 | 895 | 4.125 | 4 | [] | no_license | -- Drops the employee_trackerdb if it exists currently --
DROP DATABASE IF EXISTS employee_trackerdb;
-- Creates the "employee_trackerdb" database --
CREATE DATABASE employee_trackerdb;
USE employee_trackerdb;
-- Create the table department.
CREATE TABLE department (
id INT AUTO_INCREMENT PRIMARY KEY,
name VA... | true |
39872b842be224e4eb460c0bfa481e564b0b7c44 | SQL | tilemapjp/OpenTileMap | /sql/pg.sql | UTF-8 | 1,255 | 3.359375 | 3 | [
"MIT"
] | permissive | CREATE TABLE IF NOT EXISTS sessions (
id CHAR(72) PRIMARY KEY,
session_data TEXT
);;
CREATE TABLE IF NOT EXISTS users (
user_id SERIAL PRIMARY KEY,
site varchar(20) NOT NULL,
site_id varchar(100) NOT NULL,
user_name varchar(100) NOT NULL
);;
DO $$
BEGIN
CREATE INDEX site_... | true |
27ce2f463c6c5d0f7848d602cf9966877c2bcaf3 | SQL | ErandikaH/online-content-publication | /back-end/src/main/resources/db/migration/V1.0__create_tables.sql | UTF-8 | 1,619 | 3.3125 | 3 | [] | no_license | CREATE TABLE IF NOT EXISTS user(
id bigint(20) NOT NULL AUTO_INCREMENT,
country_of_origin varchar(255) DEFAULT NULL,
description varchar(255) DEFAULT NULL,
email varchar(255) DEFAULT NULL,
fire_base_registration varchar(255) DEFAULT NULL,
full_name varchar(255) DEFAULT NULL,
password varchar(255) DEFAULT ... | true |
65fc2d96a5669afa12182a34f0ca44d891bde1ec | SQL | traxthunder/Beyond-AC | /New Roulea/Weenies/5000272 Minalim Plant.sql | UTF-8 | 2,386 | 2.515625 | 3 | [] | no_license | DELETE FROM `weenie` WHERE `class_Id` = 5000272;
INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`)
VALUES (5000272, 'plantwintergreen1', 1, '2020-01-08 07:59:45') /* Generic */;
INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`)
VALUES (5000272, 1, 4194304) /* ItemType - Cr... | true |
8411ea3de0b97d907d059fc14ccdef161b7dcfb8 | SQL | wangnanphp/qgjy | /Data/database.sql | UTF-8 | 11,835 | 3.4375 | 3 | [] | no_license | -- --------------------------------------------------------------
--
-- FileName: database.sql
-- Description: QgjyCMS系统数据库源码
-- Database: MySQL5.6.12
-- DatabaseName: `qgjy`
-- Charset: utf-8
-- TablePrefix: qgjy_
-- Author: WangNan
-- Verison: 0.1
-- Since: 2013-12-27 19:48:37
-- Alter Date:
--
-- ------------------... | true |
da93274a322f08818cc567c02836de96cd186ba9 | SQL | karanpreetjaggi/Pewlett-Hackard-Analysis | /Queries/Employee_Database_challenge.sql | UTF-8 | 551 | 4.09375 | 4 | [] | no_license | select count(t.title) as "count",t.title
into retiring_titles
from unique_titles as t
group by title
order by "count" desc;
select * from retiring_titles
--select * from dept_employee
select distinct on(e.emp_no) e.emp_no,
e.first_name,
e.last_name,
e.birth_date,
d.from_date,
d.to_date,
t.title
into mentorship_eligi... | true |
686ed74297711f78528f832b822ee924c11c5b5e | SQL | karlffreire/bordes | /scripts-bd/20190401_cambios.sql | UTF-8 | 1,489 | 3.4375 | 3 | [] | no_license | ALTER TABLE datos.cartas
ADD COLUMN idemisor integer;
ALTER TABLE datos.cartas
ADD COLUMN idreceptor integer;
ALTER TABLE datos.cartas
ADD CONSTRAINT emisor_fkey FOREIGN KEY (idemisor) REFERENCES datos.personas (idpersonas) MATCH SIMPLE ON UPDATE CASCADE ON DELETE NO ACTION;
ALTER TABLE datos.cartas
ADD CONSTRA... | true |
b4bd73e3fe555206a819e00bd8bc05dc376766e1 | SQL | chembl/unichem2index | /alter/spoolscript.sql | UTF-8 | 568 | 2.921875 | 3 | [
"MIT"
] | permissive | set colsep "|"
set echo off
set termout off
set underline off
set heading off
set feedback off
set linesize 32767
set trimspool on
set trimout on
set verify off
set newpage 0
set pagesize 0
spool /opt/unichem/csv_file2M.csv
SELECT UCI || '|' || STANDARDINCHI || '|' || STANDARDINCHIKEY || '|' || SRC_COMPOUND_ID || '|' |... | true |
80dc1c81cea4f0dd6d6c063e96abc4c8659be1f1 | SQL | janitham/manpower | /manpower_utils_sql.sql | UTF-8 | 1,538 | 4.34375 | 4 | [] | no_license | DROP FUNCTION IF EXISTS get_this_month;
DELIMITER $$
CREATE FUNCTION get_this_month ()
RETURNS datetime
DETERMINISTIC
BEGIN
DECLARE monthfirst datetime;
SELECT DATE_SUB(LAST_DAY(NOW()),INTERVAL DAY(LAST_DAY(NOW()))-1 DAY) into monthfirst;
RETURN monthfirst;
END$$
DELIMITER ;
DROP FUNCTION IF EXISTS get_emplo... | true |
332a32a4f96f8463a8405d8681164c4be9e29786 | SQL | Rajagunasekaran/Code-Backup | /OLD PROJECT SQL/SAMPLE/CUST PEROSNAL DETAILS/TRG_CUSTOMER_PERSONAL_DETAILS_UPDATE_VER_0.1_24062014.sql | UTF-8 | 513 | 2.828125 | 3 | [] | no_license | -- VERSION 0.6 STARTDATE:25/06/2014 ENDDATE:25/06/2014 DESC: CHECK CONSTRAINS FOR THE EP_DATE AND PASSPORT_DATE IN THE CUSTOMER PERSONAL DETAILS. DONE BY :RAJA
-- TRIGGER FOR BEFORE UPDATE PRETERMINATION AND ENDDATE
DROP TRIGGER IF EXISTS TRG_CUSTOMER_PERSONAL_DETAILS_UPDATE;
CREATE TRIGGER TRG_CUSTOMER_PERSONAL_DETAI... | true |
bb21619a9f0176c9b2b59f9684857fb7b1257085 | SQL | huiiping/IS3102 | /archiveDBschema/inventory (1).sql | UTF-8 | 2,469 | 3.265625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 24, 2017 at 12:01 PM
-- Server version: 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... | true |
77907838104339609380298f451bd3725e94c03a | SQL | ITC-Vanadzor/ITC-Vanadzor | /sql/homework/Karen/Comp_Shop/database/queries.sql | UTF-8 | 758 | 4.15625 | 4 | [] | no_license | /*Get sale by firms DESC*/
CREATE TEMPORARY TABLE IF NOT EXISTS counts_tmp SELECT firm_id, count(firm_id) AS counts FROM History where (saledate >= CURDATE() - INTERVAL 1 MONTH) GROUP BY firm_id ORDER BY counts DESC;
SELECT * FROM counts_tmp INNER JOIN Firms ON Firms.id = counts_tmp.firm_id;
DROP TABLE counts_tmp;
/*S... | true |
591fdf4e55cfbba8499dac538df148fd03f489e8 | SQL | 1Valeria/NetCracker-2nd-team-project | /hotel-dba/src/main/resources/data.sql | UTF-8 | 2,376 | 2.625 | 3 | [] | no_license | insert into type(type_id, type_en, type_ru) VALUES(1 ,'Single', 'Один');
insert into type(type_id, type_en, type_ru) VALUES(2 ,'Twin', 'Два');
insert into type(type_id, type_en, type_ru) VALUES(3 ,'Lux', 'Люкс');
insert into type(type_id, type_en, type_ru) VALUES(4 ,'DoubleLux', 'Двойной люкс');
insert into type(type_i... | true |
98a3e086495fb109cc74184984cfb8518ae6a65f | SQL | LucianErick/bd-roteiros | /Roteiros/roteiro5-lucianoesff-11811400.sql | UTF-8 | 2,839 | 4.21875 | 4 | [] | no_license | --Q1
SELECT count(sex) FROM employee WHERE sex = 'F';
--Q2
SELECT avg(e.salary) FROM employee AS e WHERE e.address LIKE '%TX%' and e.sex = 'M';
--Q3
SELECT superssn AS ssn_supervisor, count(*) AS qtd_supervisionados FROM employee GROUP BY superssn ORDER BY qtd_supervisionados ASC;
--Q4
SELECT sup.fname AS nome_s... | true |
27004380133ec3bb377254ee22339361632d0611 | SQL | chenjianyi1995/4448-Project | /table.sql | UTF-8 | 289 | 2.546875 | 3 | [] | no_license | CREATE TABLE 'user_table' (
'id' int(11) NOT NULL AUTO_INCREMENT,
'email' varchar(255) NOT NULL,
'password' varchar(255) NOT NULL,
'user_name' varchar(20) NOT NULL,
'zip_code' int(5) NOT NULL,
'dog_sitter' tinyint(4) NOT NULL DEFAULT '0',
PRIMARY KEY ('id')
);
| true |
927b14ec25014c5aed6a354aa6f1c9ed3ecef78b | SQL | CRIDIP-SWD/Sauvegarde_SQL_ICE | /SAUVEGARDE TEMPORAIRE 2015/cetessier(4).sql | UTF-8 | 530,138 | 3.125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Client : localhost:3306
-- Généré le : Lun 25 Janvier 2016 à 09:29
-- Version du serveur : 5.5.46-0+deb7u1
-- Version de PHP : 5.5.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT... | true |
fcdb307a77fa5ab1d58dc2bf67661ac7d233ec00 | SQL | ibraphem/full_stock | /flexiblepos_db.sql | UTF-8 | 65,516 | 3.03125 | 3 | [] | no_license | -- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 10.1.41-MariaDB-cll-lve - MariaDB Server
-- Server OS: Linux
-- HeidiSQL Version: 10.2.0.5599
-- --------------------------------------------------------... | true |
004459f6a474020b6364ea3a2fd9b2ec1e56f742 | SQL | PNNL-Comp-Mass-Spec/DBSchema_PgSQL_DMS | /dms/sw/sw.v_processor_status.sql | UTF-8 | 1,742 | 3.53125 | 4 | [
"Apache-2.0"
] | permissive | --
-- Name: v_processor_status; Type: VIEW; Schema: sw; Owner: d3l243
--
CREATE VIEW sw.v_processor_status AS
SELECT ps.processor_name,
COALESCE(ps.mgr_status, 'Unknown_Status'::public.citext) AS mgr_status,
COALESCE(ps.task_status, 'Unknown_Status'::public.citext) AS task_status,
COALESCE(ps.task... | true |
6e86bae15777111312b0096e30d2b20813846318 | SQL | 6638112/mps-1 | /doc/文档/5.产品发布/war包/V12.0-20170804-001/数据库表结构变更/jeesite_table-v13.0_meihao_tousu_2.0.sql | GB18030 | 1,996 | 3.078125 | 3 | [
"Apache-2.0"
] | permissive | /*==============================================================*/
/* DBMS name: MySQL 5.0 */
/* Created on: 2017/7/25 13:46:38 */
/*==============================================================*/
drop table if exists biz_order_complaint_pre;
/*=... | true |
f2a89518ad38c2d4495753a4c67c99be5b6f8c77 | SQL | ramram12345/Beauty_Salon | /beautician.sql | UTF-8 | 7,404 | 3.15625 | 3 | [
"MIT"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.6.6
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jul 31, 2019 at 06:19 AM
-- Server version: 5.7.17-log
-- 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_SET_CLIEN... | true |
bd5e2ac6f0f43623c71a7c4544db8ad30f1ce18c | SQL | Optinomic/apps | /lib/sql/search_replace_sql.sql | UTF-8 | 13,581 | 2.84375 | 3 | [] | no_license |
-- Alcohol Abstinence Self-Efficacy Scale (AASE)
-- ch.suedhang.apps.aase-g.production
---- AASE_AASE1 => AASE[AASE1]
UPDATE "survey_response"
SET response = regexp_replace(response, 'AASE_(\w+)', 'AASE[\1]', 'g')
WHERE module = 'ch.suedhang.apps.aase-g.production';
-- RECODE every AASE-Score with:
---- => 1 -> ... | true |
6ae787343e97dc22fa0c29597c34231926db0069 | SQL | ganeshbabuNN/Databases | /RDMS/Oracle Database/Package_Baisc_Spec_Implementation.sql | UTF-8 | 959 | 3.390625 | 3 | [] | no_license | --- specification of the procedures
create or replace package logger
as
PROCEDURE logit(
v_message IN VARCHAR2 DEFAULT 'Hello World!',
v_output_target IN VARCHAR2 DEFAULT 'T');
end;
/
--Body implementations
Create or replace package body logger
as
PROCEDURE logit(
v_message IN VARCHAR2 DEFAULT 'Hello World!',
... | true |
408cfdcd0bcb8a5f773e9ab1434570b83c9b332b | SQL | parkervoit/database-exercises | /where_exercises.sql | UTF-8 | 2,142 | 3.9375 | 4 | [] | no_license | --1
USE employees;
--2
SELECT first_name, last_name, emp_no
FROM employees
WHERE first_name IN ('Irena','Vidya','Maya');
-- 709 rows returned
--3
SELECT first_name, last_name, emp_no
FROM employees
WHERE first_name = 'Irena' OR first_name = 'Vidya' OR first_name = 'Maya';
-- 709 rows returned, it matches t... | true |
002d631f459f3097f863e1fc5313ad5aa0cf859c | SQL | ibrolive/microverse-sql | /select_basics.sql | UTF-8 | 688 | 3.859375 | 4 | [] | no_license | -- SELECT basics
-- Question 1
SELECT population FROM world
WHERE name = 'Germany'
-- Question 2
SELECT name, population FROM world
WHERE name IN ('Sweden', 'Norway','Denmark');
-- Question 3
SELECT name, area FROM world
WHERE area BETWEEN 200000 AND 250000
--SELECT Quiz
--1
SELECT name, population
FROM wor... | true |
aa2ad6f3874a24610056478e78057eac094b17fa | SQL | nss-day-cohort-48/chinook-anmonzi | /Chinook queries/8_total_invoices_{year}.sql | UTF-8 | 423 | 3.375 | 3 | [] | no_license | SELECT COUNT(InvoiceDate) as TotalInvoices2009
FROM Invoice
WHERE InvoiceDate BETWEEN '2009-01-01' AND '2009-12-31';
SELECT COUNT(InvoiceDate) as TotalInvoices2011
FROM Invoice
WHERE InvoiceDate BETWEEN '2011-01-01' AND '2011-12-31';
SELECT COUNT(InvoiceDate) as TotalInvoicesFor2009_And2011
FROM Invoice
WHERE Invoi... | true |
2f63576eeeb6775af8a3dc5cadd9bc1e113b4bf9 | SQL | piotrszul/info-service | /src/main/sql/create_tweet_avro_table.sql | UTF-8 | 750 | 2.5625 | 3 | [] | no_license | DROP TABLE IF EXISTS tweet_avro;
CREATE EXTERNAL TABLE tweet_avro(
id BIGINT,
created_at STRING,
source STRING,
favorited BOOLEAN,
retweeted_status STRUCT<
text:STRING,
user:STRUCT<screen_name:STRING,name:STRING>,
retweet_count:INT>,
entities STRUCT<
urls:ARRAY<STRUCT<expanded_url:... | true |
ea821ecfd6b838fd196a47719a3a202462bf11d6 | SQL | WangCong1995/maple | /doc/data.sql | UTF-8 | 539 | 3.421875 | 3 | [] | no_license |
create table states (
id int,
name varchar(30)
);
create table test (
id int,
name varchar(30)
);
select t.id,t.name,s.id from test t inner join states s on t.id=s.id where t.id>0 order by t.id desc;
INSERT INTO states VALUES (1, 'Alabama');
INSERT INTO states VALUES (2, 'Alaska');
INSERT INTO states VALUE... | true |
6955a40d581e827d450110c1d436a2abc5af7f52 | SQL | AlexeiLineitsev/mysql | /lesson_18.sql | UTF-8 | 882 | 3.484375 | 3 | [] | no_license | use shop_example;
insert into order_products (order_id, products_id, `count`) values (2, 3, 2);
insert into order_products (order_id, products_id, `count`) values (2, 1, 3);
SELECT * FROM shop.order_;
SELECT sum(price * `count`) as total_price from order_
inner join order_products on order_products.order_id = order... | true |
8ebb4b23f97d340133bf10a34ef79cf1099ac104 | SQL | SantiagoHerreG/holbertonschool-higher_level_programming | /0x0D-SQL_introduction/15-groups.sql | UTF-8 | 216 | 3.265625 | 3 | [] | no_license | -- Lists the number of records with the same score
-- Displays the number of records for this score with the label number
SELECT score, COUNT(score) AS "number"
FROM second_table
GROUP BY score
ORDER BY score DESC;
| true |
a499a9b4380c00017c63a08f7339606cdb6ec718 | SQL | 95shuma/crm | /src/main/resources/db/migration/V1013__change_doctor_position.sql | UTF-8 | 561 | 2.6875 | 3 | [] | no_license | ALTER TABLE `doctor`
ADD COLUMN `position_id` LONG AFTER `hospital_id`;
alter table `doctor`
change column `full_name` `full_name` varchar(256);
alter table `patients`
change column `full_name` `full_name` varchar(256);
alter table `doctor`
change column `gender` `gender` varchar(64);
alter table `do... | true |
7e15814e3f9f98f045a3aaa50281b8d8336273da | SQL | MertOzerdem/Database-Project | /code/table_db.sql | UTF-8 | 11,575 | 3.359375 | 3 | [] | no_license | #DEFAULT TABLE LAYOUT
# OGUZ KAAN AGAC: 04/05/2018
# VER 1.0
# LEVLE 3: EDITOR
# LEVEL 2: REVIEWER
# LEVEL 1: AUTHOR
# LEVEL 0: Subscriber
DROP TABLE IF EXISTS endorsement;
DROP VIEW IF EXISTS paperview;
DROP TABLE IF EXISTS belongs;
DROP TABLE IF EXISTS skills;
DROP TABLE IF EXISTS manages;
DROP TABLE IF... | true |
afe32b961c99dd00e515e8fb08ff946d7d5b30ec | SQL | MigOpsRepos/pg_dbms_job | /test/sql/submit.sql | UTF-8 | 479 | 3.234375 | 3 | [
"PostgreSQL"
] | permissive | -- Insert a scheduled job
TRUNCATE TABLE dbms_job.all_scheduler_job_run_details;
TRUNCATE TABLE dbms_job.all_scheduled_jobs;
SET ROLE regress_dbms_job_user;
DO $$
DECLARE
jobid bigint;
BEGIN
-- Scheduled job that must be executed 10 seconds
-- after its creation and then every 10 seconds
SELECT dbms_job.submit(
'V... | true |
d9aa4e87e6af48075291a48c9cf51e35f20804db | SQL | jakedraddy/PoliceStation | /back_end/src/insert_test_data.sql | UTF-8 | 3,338 | 3.09375 | 3 | [] | no_license |
-- Preferably, you would run this on fresh tables...
INSERT INTO PERSON (PersonId,FirstName, LastName, DoB, SSN) VALUES (1,'Jacob','Draddy',DATE '1927-12-12','1231231233');
INSERT INTO PERSON (PersonId,FirstName, LastName, DoB, SSN) VALUES (2,'Joe','Tester',DATE '1999-1-1','6456456456');
INSERT INTO PERSON (PersonId,F... | true |
f651f682f0b75e9e31c7ef1c2b72556bb64ee76c | SQL | fabiolamayorga/Progra_IV_Examen_II | /tienda.sql | UTF-8 | 2,842 | 3.0625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.2.7.1
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tiempo de generación: 18-04-2015 a las 21:30:55
-- Versión del servidor: 5.6.20
-- Versión de PHP: 5.5.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR... | true |
62652b3b2c15d0c304cc1dbc8c5dbce1f58d393a | SQL | B4N3/SkyBlue-CMS | /custom/data/schema/sqlite-structure.sql | UTF-8 | 7,145 | 2.96875 | 3 | [] | no_license | /*
Navicat Premium Data Transfer
Source Server : sbc-mysql
Source Server Type : MySQL
Source Server Version : 50151
Source Host : localhost
Source Database : sbc
Target Server Type : MySQL
Target Server Version : 50151
File Encoding : utf-8
Date: 10/31/2010 02:56:26 AM... | true |
08bfd9339fc1ad53c341ce0a5eeb1dd16eb0c498 | SQL | fcrepo/fcrepo | /fcrepo-configs/src/main/resources/sql/mariadb/R__Create_membership.sql | UTF-8 | 2,533 | 3.875 | 4 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | -- DDL for setting up membership tables inMariaDB 10.5
-- Non-transaction state of membership properties.
CREATE TABLE IF NOT EXISTS membership (
subject_id varchar(503) NOT NULL,
property varchar(503) NOT NULL,
object_id varchar(503) NOT NULL,
source_id varchar(503) NOT NULL,
proxy_id varchar(503)... | true |
33d8ed698d9d33fb0e82b132b8f830faf70f0c14 | SQL | racheen/CS-ELEC4C | /Codes/F.sql | UTF-8 | 1,221 | 4.25 | 4 | [] | no_license | DROP TABLE LETTERF;
create table LETTERF AS
(
SELECT DEL.ROW_ID, DEL.ORDER_ID, DEL.ORDER_DATE, DEL.SHIP_DATE,
DEL.CITY,
DEL.PRODUCT_NAME,
DEL.SALES, DEL.QUANTITY, DEL.DISCOUNT,DEL.PROFIT,
OTD.TIME_KEY,
OTD.PARENT_ID,
OTD.TIME_DESC
FROM DELIVERIES DEL
RIGHT OUTER JOIN OSS_TIME_DIM OT... | true |
8a924619bb37979b5810125a1a21dd1acd9ca276 | SQL | QuevinMartinezBotina/Sistema-de-Gestion-de-Inventario | /Base de datos SQl(nombre base_ soflithe).sql | UTF-8 | 3,945 | 3.765625 | 4 | [] | no_license | CREATE database empresa;
CREATE TABLE empresa (id_empresa varchar(14)NOT NULL,
nomempresa varchar(25)NOT NULL,
representante_legal varchar(25)NOT NULL,
actividad_economica varchar(20)NOT NULL,
direc_empresa varchar(20),
telefono varchar(11)NOT NULL,
fax varchar(25) NULL,
ema... | true |
b73045e1bad3aeff1d11ec290c8e755fecb6c965 | SQL | abdias96/core | /modulos/ingreso/ingreso.sql | ISO-8859-3 | 12,770 | 2.671875 | 3 | [] | no_license | INSERT INTO modulo (modulo, nombre, activo, orden, sistema, add_usuario, add_fecha) VALUES ('ingreso_s', 'Ingreso de Informacin', 'Y', 3, 'SAC', 1, now());
INSERT INTO pantalla (pantalla, pantalla_padre, modulo, nombre, link, activo, orden, add_usuario, add_fecha) VALUES
('ingreso_caso', NULL, 'ingreso_s', 'Ingreso de... | true |
c5dec4955e7a562de8da8c6da81a8acac68c953b | SQL | nicoasp/assignment_viking_flight_booker | /intermediate.sql | UTF-8 | 1,990 | 4.5 | 4 | [] | no_license | -- Find the top 5 most expensive flights that end in California.
SELECT flights.*
FROM flights
JOIN airports ON airports.id = flights.destination_id
JOIN states ON states.id = airports.state_id
WHERE states.name = 'California'
ORDER BY flights.price DESC
LIMIT 5;
-- Find the shortest flight that username 'zora_johnso... | true |
82b15801f730b5112c70b21dfd2fc6931da7159d | SQL | mjgw/smartest-import-test | /System/Install/SqlScripts/schema.sql | UTF-8 | 27,459 | 3.171875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 2.8.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jan 26, 2008 at 05:45 AM
-- Server version: 4.1.20
-- PHP Version: 5.2.5
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Database: `smartest_live`
--
-- --------------------------------------------------------
... | true |
919dbd25018b6ae5c230f7d88dce64e707dafe9c | SQL | peterk143/CS_uGR | /440/orm/orm_44.sql | UTF-8 | 102 | 2.921875 | 3 | [] | no_license | select ename
from worker
where mgr in (select empno
from worker
where initcap(ename) = 'Blake')
/
| true |
959eeb89d5d10e275be3378080ddfb6d928cd6eb | SQL | diogopainho/bd-ist | /estrela.sql | UTF-8 | 421 | 2.859375 | 3 | [] | no_license | DROP TABLE IF EXISTS tempo_dim;
CREATE TABLE tempo_dim (
id INT,
dia DATE NOT NULL,
PRIMARY KEY (id));
DROP TABLE IF EXISTS geo_dim;
CREATE TABLE geo_dim (
id INT,
concelho VARCHAR (80) NULL,
regiao VARCHAR (80) NULL,
PRIMARY KEY (id));
DROP TABLE IF EXISTS factos;
CREATE TABLE factos (
id INT AUTO_INCREM... | true |
34872264278754436eeebc4bc9c2f02a9ba50101 | SQL | victorhugosrosa/queries | /BI/ANALISE_ESTOQUE_SEM_VENDA.sql | UTF-8 | 613 | 3.484375 | 3 | [] | no_license | SELECT
EP.COD_LOJA
,EP.COD_PRODUTO
,CP.DESCRICAO
,CP.NO_DEPARTAMENTO
,CP.NO_SECAO
,CP.NO_GRUPO
,CP.CLASSIF_PRODUTO AS [ABC GERAL]
,BI.dbo.fn_FormataVlr_Excel(EP.QTD_ESTOQUE) AS ESTOQUE
FROM
BI.dbo.BI_ESTOQUE_PRODUTO AS EP
INNER JOIN BI.dbo.BI_CAD_PRODUTO AS CP
ON 1=1
AND EP.COD_PRODUTO = CP.COD_PRODUTO
L... | true |
0955313c4423545951970bef78bf0b54e2db4ae0 | SQL | medo/elmasla7a | /dump.sql | UTF-8 | 3,797 | 2.75 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Sep 27, 2014 at 08:38 AM
-- Server version: 5.5.38-0ubuntu0.14.04.1
-- PHP Version: 5.5.9-1ubuntu4.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CL... | true |
62aa6a2ca5c50c07a6c6a98aeaf6739f1b936dfe | SQL | adityadees/kios | /apsi.sql | UTF-8 | 7,354 | 2.609375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 26, 2018 at 12:10 AM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 5.6.34
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... | true |
73d45619e2f57b54972d0a81baab1e5165318315 | SQL | suna05/fanduck | /suna/8월 28일 월/mysql export/fanduckdb_film_person.sql | UTF-8 | 2,311 | 2.84375 | 3 | [] | no_license | -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: fanduckdb
-- ------------------------------------------------------
-- Server version 5.7.17-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *... | true |
4c6d2b394824cad5301bfdf462c250c2ac5dfd1c | SQL | mgerasim/smscenter | /SMScenterMVC/SMScenterMVC/CR/CR/migrate/20121121123448_ViewAbonents/Up.sql | UTF-8 | 414 | 3.609375 | 4 | [] | no_license | create or replace view v_abonents as
select t."ID",t."NAME",t."PHONE",t."DESCRIPTION",
t."EMAIL",
t."BRANCHE_ID", b.s_name as "BRANCHE_NAME", t."USER_ID",u.name AS "USER_NAME",
t."DATE_CREATE",t."DATE_MODIFY", a.group_id as group_id
from abonents t
LEFT JOIN Abonent_Group_Link a ON t.id = a.a... | true |
f5fb07f35b7386dac527a00bf52bcff69521f499 | SQL | TimeTuck/TimeTuck_app | /server/schema.sql | UTF-8 | 17,454 | 3.75 | 4 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.2.10
-- http://www.phpmyadmin.net
--
-- Host: localhost:8889
-- Generation Time: Apr 21, 2015 at 02:41 AM
-- Server version: 5.5.38
-- PHP Version: 5.6.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `timetuck_main`
--
DELIMITER $$
--
-- Procedu... | true |
865c941cfa66f91a0708d7c4fb5c20f27c5f44df | SQL | catlan/SubEthaEdit | /SubEthaEdit-Mac/SubEthaPerf/Resources/TestFiles/bugmonkey.sql | UTF-8 | 13,029 | 3.0625 | 3 | [
"MIT"
] | permissive | -- MySQL dump 10.9
--
-- Host: localhost Database: bugmonkey
-- ------------------------------------------------------
-- Server version 4.1.14-standard
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_C... | true |
4d03f57cee0c5ed7a4eb53f8e5a2012d729ceddb | SQL | igwevsiggy15/ACD_JAVAB_Session10__Assignment_10.4 | /10.4_query.sql | UTF-8 | 962 | 4.21875 | 4 | [] | no_license | use bank;
-- 1)
-- a. Display CNAME using the HAVING clause to filter the result set to only those records of CNAME column that
-- have a count of greater than two(i.e. HAVING COUNT(*) >2).
select cname
from customer
group by cname
having count(*) > 2;
-- b. Select all Customers from the Customer table an... | true |
8f59c9f2e3d5d70779269f5d6a72959ed4a9dedf | SQL | alexTRaihel/spring_app | /auth/auth-token/build/resources/main/db/migration/V1__Initial_db.sql | UTF-8 | 399 | 3.453125 | 3 | [] | no_license | create schema if not exists user_db;
create table user_db.user_credentials (
id bigserial primary key,
username varchar(64),
password varchar(64)
);
create table user_db.user_role (
user_id bigint not null,
roles varchar(255)
);
alter table if exists user_db.user_role
add constraint user_role_user_... | true |
183f9163e2fb778ede5d2a1f8449ddf2909b902c | SQL | utcn-sd-serban/assignment-1-galboti12 | /src/main/resources/db/migration/V1__initial_schema.sql | UTF-8 | 2,298 | 4.03125 | 4 | [] | no_license | CREATE TABLE IF NOT EXISTS `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(45) NOT NULL,
`password` varchar(45) NOT NULL,
`is_admin` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
);
CREATE TABLE IF NOT EXISTS `question` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`author` int(11) NOT NULL,
`tit... | true |
95ade634e046d7f348eab7615642fd3299ca29c8 | SQL | namdongvando/php246-27012020 | /Code/phpcanban/Database/banhang.sql | UTF-8 | 19,202 | 2.890625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 26, 2021 at 01:22 PM
-- Server version: 10.3.15-MariaDB
-- PHP Version: 7.3.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @O... | true |
334973c18c30b63590f272f940efb94493d2c8f8 | SQL | KrisQ/lepetitfoudie | /database.sql | UTF-8 | 4,278 | 3.453125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Apr 02, 2019 at 01:08 AM
-- Server version: 5.7.25
-- PHP Version: 7.3.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `foodie`
--
-- -----------------------------... | true |
c8573caa711e2e9c01a4fc47a4c93a889748a40f | SQL | aMakeyev/yii2-shop | /yii2advanced.sql | UTF-8 | 7,474 | 3.0625 | 3 | [
"BSD-3-Clause"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Хост: localhost:8889
-- Время создания: Дек 26 2018 г., 21:45
-- Версия сервера: 5.7.23
-- Версия PHP: 7.2.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;... | true |
6b015207dce89521ef356b716fd15b60ed473820 | SQL | Ivoff/LBD-projeto | /migrations/V1__ddl.sql | UTF-8 | 2,499 | 3.625 | 4 | [] | no_license | create table Perfil(
id serial primary key,
nome_completo varchar not null,
rga varchar not null unique,
siapi varchar not null unique,
cpf varchar not null unique,
codigo_uri varchar not null unique,
status_participante boolean not null default false,
status_voluntario boolean not null ... | true |
4965e8c401bf2cb7801db76ca84d87aef99218a9 | SQL | soon14/parking-cloud-dev | /parking-cloud-core/database/stateList/create_yxy_etc_info_bak.sql | UTF-8 | 228 | 2.625 | 3 | [] | no_license | -- ETC B表
create table yxy_etc_info_bak (
etc_number char(20) not null,
etc_net_id varchar(40) not null,
version integer not null
);
create index yxy_etc_info_bak_etc_number_index on yxy_etc_info_bak (etc_number); | true |
a4908b6bd9f5a9bf1443a02145fd8c786c117403 | SQL | zeionara/barbershop | /crud/nested_states_crud.sql | UTF-8 | 2,013 | 3.375 | 3 | [] | no_license | create or replace package NESTED_STATES_tapi
is
--type NESTED_STATES_tapi_rec is record (
--PRICE HOLDINGS.PRICE%type
--,QUANTITY HOLDINGS.QUANTITY%type
--,ID HOLDINGS.ID%type
--,NAME HOLDINGS.NAME%type
--);
--type HOLDINGS_tapi_tab is table of HOLDINGS_tapi_rec;
--
procedure ins (
master_id in int,
p_date_ in dat... | true |
5705809d841b5ff4360a6f5a16884bf23638b5c9 | SQL | TefloniusMonk/course | /backend/src/main/resources/sql/tables.sql | UTF-8 | 3,239 | 3.625 | 4 | [] | no_license | --liquibase formatted sql
--changeset User1:1
create schema if not exists org;
create schema if not exists course;
--changeset User1:2
create table course.basket
(
basket_id int8 not null,
created timestamp,
updated timestamp,
total_cost int8,
custome... | true |
56e19ed374f18605a82ff4dc63e9a65878768bab | SQL | AmirPasalic/postgres-performance-test | /DatabaseScripts/PerformanceTests/Queries/Query9JSONB.sql | UTF-8 | 481 | 3.65625 | 4 | [
"MIT"
] | permissive | ------------------------------------------------------------
------------------------------------------------------------
-- Query 9
-- Select all from Cars table where the model is 'X1'
-- or model is X3 or model is X5 and car is not used(is_used = false)
-- JSONB
EXPLAIN ANALYSE
SELECT *
FROM jsonb_cars
WHERE
(... | true |
fb7447c6219e361103a59854688049f4f846fced | SQL | Muzamil-Nawaz/Inventory-management-system-using-Java-and-MySql | /inventory_management.sql | UTF-8 | 7,794 | 3.296875 | 3 | [] | no_license | /*
SQLyog Professional v12.09 (64 bit)
MySQL - 10.1.38-MariaDB : Database - testdb
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIG... | true |
9e6671327eeca69003676d3fc79d27f136bef280 | SQL | RU-DataScience-Group5/BasketballML | /Data/ROY Data/combine_predictions_vw.sql | UTF-8 | 811 | 3.546875 | 4 | [] | no_license | CREATE VIEW combined_data_vw AS
--SELECT DISTINCT combined_data."Player", combined_data."Tm",combined_data."season", combined_data."{xstat}", combined_data."{ystat}", combined_data.mvp_votes, combined_data.rookie_votes,
SELECT DISTINCT combined_data.*,
CASE
WHEN mvp_predictions."Player" IS NOT NULL THEN 1
ELSE... | true |
860593a2d666ed3017e3eb532baad31eeeffb1f5 | SQL | poorjanos/Work-Claims-Process | /SQL/preprocess_event_log_flow_breakdowns_2019_new_branch_defs.sql | UTF-8 | 7,266 | 3.4375 | 3 | [] | no_license | /*********************************************************************************************************/
/* Gen Casco claims table with FAIRKAR, CCC KONTAKT and OKK KONTAKT activities ***************************/
/*******************************************************************************************************... | true |
b8fc6007940006ac512af0d1506064d1c3089c8e | SQL | harropm1/MEAN_Final_Project | /server/sql/create_and_seed.sql | UTF-8 | 1,574 | 3.71875 | 4 | [] | no_license | drop database HCA;
create database HCA;
use HCA;
create table users (
ID int(10) NOT NULL AUTO_INCREMENT,
USERNAME varchar(50) NOT NULL,
EMAIL varchar(50) NOT NULL,
PASSWORD varchar(50) NOT NULL,
ISADMIN varchar(1) NOT NULL DEFAULT 0,
createdAt TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updat... | true |
0703cb65a50c71e4302a44bd56587d2d9d39c85e | SQL | afromokus/EtteremProjekt | /sql/etterem.sql | UTF-8 | 4,731 | 3.046875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Gép: 127.0.0.1
-- Létrehozás ideje: 2019. Ápr 02. 14:25
-- Kiszolgáló verziója: 10.1.30-MariaDB
-- PHP verzió: 7.2.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_... | true |
ab805ee5d2390a85bc076a5c2044e630ffdc9b97 | SQL | tagallow/SocialMediaAnalysis | /Schema/StoredProcedures/CleanUpKeywordAssignments.sql | UTF-8 | 325 | 3.203125 | 3 | [] | no_license | delete from
KeywordAssignments
where
LocalAccountID = (
select
KeywordAssignments.LocalAccountID
from
KeywordAssignments
full outer join Accounts
on
KeywordAssignments.LocalAccountID = Accounts.LocalAccountID
where
--KeywordAssignments.LocalAccountID is null
Accounts.LocalAccountID is nu... | true |
abd41bf7cf946b985ac604963ca9ba50f1b63d0c | SQL | bitgittry/BaseCodeAnalysis | /trunk/dbv/stored_routines/MessageTemplateDeleteMessageGreeting.sql | UTF-8 | 599 | 3.125 | 3 | [] | no_license | DROP procedure IF EXISTS `MessageTemplateDeleteMessageGreeting`;
DELIMITER $$
CREATE PROCEDURE `MessageTemplateDeleteMessageGreeting`(messageGreetingID BIGINT(20))
BEGIN
DECLARE priorityToDelete INT(11);
SELECT priority INTO priorityToDelete from gaming_message_greetings where message_greeting_id = messageGreeting... | true |
5e0dc7f3f9886271ece3d1e3dd0496b1239ebf26 | SQL | LightSkif/DosugApp | /src/main/scripts/02TagTable.sql | UTF-8 | 492 | 3.96875 | 4 | [] | no_license | DROP SEQUENCE IF EXISTS public.tags_id_seq CASCADE;
DROP TABLE IF EXISTS public.tags CASCADE;
CREATE TABLE tags (
id bigint PRIMARY KEY,
tag_name character varying(256) NOT NULL
);
CREATE SEQUENCE tags_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER SEQUENCE tags_id... | true |
b032fab62d24568f845d48ae3d4fa3848672c972 | SQL | eenesdemiir/database | /localhost.sql | UTF-8 | 825 | 3.015625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 2.10.3
-- http://www.phpmyadmin.net
--
-- Anamakine: localhost
-- Üretim Zamanı: 21 Aralık 2012 saat 14:20:09
-- Sunucu sürümü: 5.0.51
-- PHP Sürümü: 5.2.6
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Veritabanı: `iletisim`
--
CREATE DATABASE `iletisim` DEFAULT CHARACTER SET utf8 C... | true |
44a4cde913756806088f3b83584c255ae26f01f4 | SQL | agusprogrammer/scriptsSQLProyects | /Scripts bases de datos proyectos/proyecto TPV .Net/proyecto_tpv_inserts.sql | UTF-8 | 54,348 | 2.65625 | 3 | [
"MIT"
] | permissive | /*Inserts tpv*/
/*Clientes*/
/*
INSERT INTO `proyecto_tpv`.`clientes` (`cod_cliente`, `nombre`, `apellidos`, `direccion`, `e_mail`) VALUES ('1', 'Esther', 'Aguado', 'Avenida Francisco Catolico 20 Valencia', 'eaguado@ieshenrimatisse.com');
INSERT INTO `proyecto_tpv`.`clientes` (`cod_cliente`, `nombre`, `apellidos`, `dir... | true |
3eb5c62bf700de2f40a1fb45082ace3b2f8d2489 | SQL | MashaelAlsalhi/Book-Uni-Python | /BKUni_database.sql | UTF-8 | 1,643 | 3.5625 | 4 | [] | no_license | CREATE TABLE `admin` (
`username` varchar(30) NOT NUll,
`password` varchar(45) NOT NULL,
PRIMARY KEY (`username`)
)
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `user` (
`user_id` int NOT NULL AUTO_INCREMENT,
`major` varchar(45) DEFAULT NULL,
`level` int DEFAULT NULL,
... | true |
0b8b7d36ae91e9dd09708dc7bdb4680e8433f18c | SQL | borisbotev/SoftUni | /Databases Basics/10.ExamPreparation(22-10-2017)/06.UnassignedReports.sql | UTF-8 | 102 | 2.671875 | 3 | [
"MIT"
] | permissive | SELECT
Description,
OpenDate
FROM Reports
WHERE EmployeeId IS NULL
ORDER BY OpenDate, Description | true |
eadbac41cf60a43e25602070420ff82c05e857c9 | SQL | mrinsin/SQL_create_databases | /SQL_CRUD_Challenge.sql | UTF-8 | 16,420 | 3.4375 | 3 | [] | no_license | --Last login: Wed Oct 26 09:00:00 on console
--learn14:~ learn$ psql postgres
--psql (9.5.2)
--Type "help" for help.
postgres=# CREATE DATABASE rolodex
postgres-# ;
CREATE DATABASE
postgres=# \c rolodex
You are now connected to database "rolodex" as user "learn".
rolodex=# CREATE TABLE persons ( id serial PRIMARY KEY,... | true |
7d9c773c391ea1ca220ccdeb0cfa43e084cfb5de | SQL | TesterRavi/TravisTest | /table_dumps/billing.sql | UTF-8 | 4,597 | 3.46875 | 3 | [] | no_license | -- MySQL dump 10.13 Distrib 5.5.34, for Linux (x86_64)
--
-- Host: localhost Database: hautelook
-- ------------------------------------------------------
-- Server version 5.5.34
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/... | true |
7a301c856ff3f352526b4045b85a504e4ea11dae | SQL | amalkhairin/vietgram-2 | /vietgram.sql | UTF-8 | 7,823 | 3.140625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 18, 2020 at 06:08 PM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.1.33
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
b4434af0097be7e990d0410819d69dee4f52b2e9 | SQL | DailyDaejeon/Komenta | /BE/src/main/resources/sql/Dump20210127.sql | UTF-8 | 1,344 | 3.3125 | 3 | [] | no_license | CREATE TABLE `member` (
`u_id` int NOT NULL AUTO_INCREMENT,
`u_email` varchar(50) NOT NULL,
`u_pw` varchar(32) DEFAULT NULL,
`u_phone_number` varchar(20) NOT NULL,
`u_nickname` varchar(20) N... | true |
7c08e4f44d1d17c084b11f28d6bd14edfb03405c | SQL | craig-gaskill/swkroa-v1 | /swkroa-service/src/main/resources/com/cagst/swkroa/user/sql/GET_USER_BY_USERNAME.sql | UTF-8 | 676 | 2.703125 | 3 | [] | no_license | SELECT u.user_id
,u.person_id
,u.username
,u.password
,u.temporary_pwd_ind
,u.signin_attempts
,u.last_signin_dt_tm
,u.last_signin_ip
,u.account_locked_dt_tm
,u.account_expired_dt_tm
,u.password_changed_dt_tm
,u.user_type
,u.active_ind
,u.updt... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.