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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
41095dc08c5c648999463448db71c0839c4d91b5 | SQL | AlShr/Enterprise-App | /Enterprise/db_script/create_table.sql | UTF-8 | 3,021 | 3.5625 | 4 | [] | no_license | create table authors
(id number(20,0) primary key not null,
firstname nvarchar2(50) not null,
lastname nvarchar2(50) not null
)
/
create sequence seq_authors start with 1;
/
create table publishers
(id number(20,0) primary key not null,
publisher_title nvarchar2(50) not null
)
/
create sequence seq_publishers start wit... | true |
49a000777bd1cc0e97d108115330fca1e5df96a3 | SQL | austinshircliff/Portfolio | /CIS 310/a8/A8 (1).sql | UTF-8 | 4,473 | 3.40625 | 3 | [] | no_license | --A8
--72
SELECT MOVIE_TITLE, MOVIE_YEAR, MOVIE_GENRE
FROM MOVIE
--73
SELECT MOVIE_YEAR, MOVIE_TITLE, MOVIE_COST
FROM MOVIE
ORDER BY MOVIE_YEAR DESC, MOVIE_COST DESC
--74
SELECT MOVIE_TITLE, MOVIE_YEAR, MOVIE_GENRE
FROM MOVIE
ORDER BY MOVIE_GENRE ASC, MOVIE_YEAR DESC
--75
SELECT MOVIE_NUM, MOVIE_TITLE... | true |
4fe632ae8d8780843d4eb196eac0fa620eaff254 | SQL | zhilien-tech/juyo-new-visa | /src/main/resources/sql/mydata.sql | UTF-8 | 5,453 | 3 | 3 | [] | no_license | /*mydata_list*/
SELECT
taoj.applicantId,
CONCAT( ta.firstName, ta.lastName ) applicantname,
ta.telephone,
tap.passport,
taoj.orderid,
tor.ordernum,
tor.STATUS orderstatus,
tor.sendVisaDate,
tor.outVisaDate
FROM
t_applicant_order_jp taoj
INNER JOIN t_applicant ta ON taoj.applicantId = ta.id
LE... | true |
6381e1841b0ddd61fd9704b37a72c55e409a958d | SQL | marwaw/Oracle | /LISTA 4/4_48/48_test_REF.sql | UTF-8 | 4,869 | 3.265625 | 3 | [] | no_license | CREATE OR REPLACE TYPE KOCURY_test_O AS OBJECT
(IMIE VARCHAR2(15),
PLEC VARCHAR2(1),
PSEUDO VARCHAR2(15),
FUNKCJA VARCHAR2(10),
SZEF REF KOCURY_test_O,
W_STADKU_OD DATE,
PRZYDZIAL_MYSZY NUMBER(3),
MYSZY_EXTRA NUMBER(3),
NR_BANDY NUMBER(2),
MAP MEM... | true |
ab2fcdcba2fdcd7bfcf309d73f7b25a757a85636 | SQL | prateekshrivastava/sql | /training/procedures.sql | UTF-8 | 954 | 2.6875 | 3 | [] | no_license | old:declare
a varchar2(30);
b number(3);
--d varchar2(30);
k number(2);
h varchar2(30);
i varchar2(30);
procedure getname(b in number,
e out number,
c out varchar2,
f out varchar2)
is
--c varchar2(30);
begin
select authorid, authorname,authoraddress into e,c,f from auth where authorid=b;
exception
when ... | true |
a24512b20f4c83532c6ff58b2fad0bec32beb4cb | SQL | pelauimagineering/SalonBook | /admin/sql/updates/mysql/0.0.2.sql | UTF-8 | 494 | 2.625 | 3 | [] | no_license | DROP TABLE IF EXISTS `#__salonbook_services`;
CREATE TABLE `#__salonbook_services` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`sku` varchar(25),
`name` varchar(100) NOT NULL,
`durationInMinutes` int(11) ,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
INSERT INTO `#__salonbook_se... | true |
b094d1a6c245fc448db580d0c90bc36106ff8738 | SQL | nikhilbhatewara/Leetcode | /Find the Quiet Students in All Exams.sql | UTF-8 | 998 | 4.46875 | 4 | [
"MIT"
] | permissive | # Write your MySQL query statement below
/*
- find the students who took atleast 1 exam => inner join
- find the students who scored the highest and lowest score for each exam
=> create a ranking using dense rank for each exam
=> Based on ranking select student who scored highest and lowest score
- exclude s... | true |
d6525b9648f9f814c95589b9f3c7e2c14b742935 | SQL | gitnew22/desarrollo-web | /sql/consultaspractica3desarrollo.sql | UTF-8 | 9,803 | 4.1875 | 4 | [] | no_license | USE practica3desarrollo;
/* 1 visualizar el numero de empleados de cada departamento. utilizar groupBy para agrupar por departamento*/
SELECT COUNT( e.emp_no), e.dept_no FROM emple e GROUP BY e.dept_no;
/* 2 visualizar los departamentos con mas de 5 empleados. utilizar groupBy para agrupar por departamento y having p... | true |
6b14ecb045b19ed76d9ee9c9f54bd4c887203699 | SQL | eyal-leshem/CaServer | /sql/temp.sql | UTF-8 | 2,019 | 3.265625 | 3 | [] | no_license | DROP database IF EXISTS server;
create database server;
use server;
CREATE TABLE agents( agentId VARCHAR(20),
lastconn datetime,
regDate datetime,
PRIMARY KEY (agentId)
);
CREATE TABLE inReg( agentId VARCHAR(20),
connTime BIGINT,
PRIMARY KEY (agentId)
);
C... | true |
07e1bc21f9a8ce68220820d2c4ab8c9b47f9dc64 | SQL | clumsy/Civ5-MP_MODSPACK | /Mods/Misc - Events and Decisions/CoreDecisions.sql | UTF-8 | 8,575 | 2.75 | 3 | [] | no_license | --==========================================================================================================================
-- Resources
--==========================================================================================================================
INSERT INTO Resources
(Type, Description, ... | true |
41f78ab4f641e522724efc5432ff8634aec2a23f | SQL | przemyslawstudzinski/mots | /src/main/resources/db/changelog/20180309_1839.mysql.sql | UTF-8 | 1,582 | 3.171875 | 3 | [
"Apache-2.0"
] | permissive | --liquibase formatted sql
--changeset pmuchowski:1520617157717-1
ALTER TABLE module_progress ADD course_module_id VARCHAR(255) NOT NULL;
--changeset pmuchowski:1520617157717-2
ALTER TABLE course_module ADD created_date datetime NULL;
--changeset pmuchowski:1520617157717-3
ALTER TABLE course_module ADD ivr_id VARCHAR... | true |
84a24ee5d7748a744f353ee7386349dcf2311b03 | SQL | SarvagyaGupta/Android-Development | /SQLiteTest/app/src/main/res/raw/simpsons.sql | UTF-8 | 1,549 | 3.3125 | 3 | [] | no_license | CREATE TABLE courses (
id INT UNSIGNED NOT NULL PRIMARY KEY,
name VARCHAR(32) DEFAULT NULL,
teacher_id INT UNSIGNED NOT NULL
);
INSERT INTO courses VALUES (10001, 'Computer Science 142', 1234);
INSERT INTO courses VALUES (10002, 'Computer Science 143', 5678);
INSERT INTO courses VALUES (10003, 'Computer Science 190M... | true |
060bba95b9259a3f9fd20f3a00987e7350ae01f6 | SQL | BairenZhu/CS6232018 | /Project.sql | UTF-8 | 1,234 | 3.71875 | 4 | [] | no_license | CREATE TABLE Product (
prod_id CHAR(10),
pname VARCHAR(128),
price DECIMAL
);
Alter table Product add constraint pk_product primary key (prod_id);
Alter table Product add constraint ck_product_price check (price > 0);
INSERT INTO Product (prod_id, pname, price) Values
('p1', 'tape', 2.5),
('p2', 'tv', ... | true |
ce456f039e40d95794f04757f8e551479d2a5844 | SQL | CUBRID/cubrid-testcases | /sql/_24_aprium_qa/_03_other/issue_6400_groupbylimit/cases/_03_group_partition.sql | UTF-8 | 1,463 | 3.46875 | 3 | [
"BSD-3-Clause"
] | permissive | set system parameters 'dont_reuse_heap_file=yes';
drop table if exists t;
create table t (i numeric(10,1), j double,k date,l varchar(200),m char(200),n bigint ) partition by hash(n) partitions 10;
create index idx_t_i on t (i);
create index idx_t_j on t (j);
insert into t select rownum,rownum, TO_DATE('12/25/2008'... | true |
40ea6dba5e1de1f30fe79bc137eed76ccc62deba | SQL | bearhug15/BD_work | /server/BD_server/migrations/17_department_head/up.sql | UTF-8 | 345 | 3.28125 | 3 | [] | no_license | -- Your SQL goes here
CREATE TABLE IF NOT EXISTS department_head
(
department_name TEXT PRIMARY KEY,
worker_id INTEGER NOT NULL,
CONSTRAINT valid_department_name FOREIGN KEY (department_name) REFERENCES department (department_name),
CONSTRAINT valid_worker_id FOREIGN KEY (worker_id) REFERENC... | true |
2bc5e4f38fbfdb3f18ee17dc67cb9ed48444611c | SQL | Nfinley/Bamazon-Node_MySql | /BamazonExecutive.sql | UTF-8 | 368 | 3.359375 | 3 | [] | no_license |
USE bamazon;
CREATE TABLE departments (
departmentID INT NOT NULL AUTO_INCREMENT,
departmentName VARCHAR(45),
overheadCosts INT(10),
totalSales DECIMAL(7,2),
PRIMARY KEY(departmentID)
);
INSERT INTO departments (departmentName, overheadCosts)
VALUES ('Instruments', 50000),
('Books', 20000),
('Accessories', 15000... | true |
e6f14c1d47ceed92d385abc3c7b7ee1288271b73 | SQL | efiivanir/oldSchools | /technion_db/final_exam/triggers.sql | UTF-8 | 3,244 | 3.796875 | 4 | [] | no_license | -- triggers
-- Check that dealer age is more than 24
DELIMITER $$
CREATE PROCEDURE check_dealer_age (IN birth_date DATE, IN work_start_date DATE)
BEGIN
IF TIMESTAMPDIFF(YEAR, birth_date,work_start_date) <= 24 THEN
SIGNAL SQLSTATE '45000'
SET MESSAGE_TEXT = 'Dealer age i... | true |
1aa228edf36e4021599d4c72d1f7138932c97046 | SQL | UAMS-DBMI/PosdaTools | /posda/posdatools/queries/sql/CreatePathologyVisualReviewInstance.sql | UTF-8 | 457 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | -- Name: CreatePathologyVisualReviewInstance
-- Schema: posda_files
-- Columns: ['pathology_visual_review_instance_id']
-- Args: ['activity_creation_id', 'scheduler']
-- Tags: ['visual_review']
-- Description: Create a visual review instance for a pathology collection activity
--
--
insert into pathology_visual_revi... | true |
317c36594bb50a0cd7d55c9099ea054c488f6cc3 | SQL | jpsaraiva/sql | /sch_job_actions.sql | UTF-8 | 597 | 2.703125 | 3 | [] | no_license | ----------------------------------------------------------------------------------------
--
-- File name: sch_job_actions.sql
--
-- Purpose: Job action detail
--
-- Author: jpsaraiva
--
-- Version: 2017/02/13
--
-- Example: @sch_job_actions < job_name >
--
-- Notes: Developed and tested on 11.2.0.4.
--
---------------... | true |
69ac53f96f59f40b73ac3abeb7de28426968126b | SQL | boydungbg/FinalProjectSem1_Group1_MotoParkingManagementSystem | /Sql/Group1_MotoParkingManagementSystem.sql | UTF-8 | 3,977 | 3.453125 | 3 | [] | no_license | drop database if exists Group1_MotoParkingManagementSystem;
create database if not exists Group1_MotoParkingManagementSystem char set 'utf8';
use Group1_MotoParkingManagementSystem;
create table if not exists Customer(
cus_id varchar(20) primary key,
cus_fullname nvarchar(50) not null,
cus_address nvarchar(70) not nul... | true |
367f4be0a2f47df193daac64486bf3f37df5f84f | SQL | fredweb/PETS | /Banco/create.sql | UTF-8 | 18,563 | 3.453125 | 3 | [] | no_license | -- MySQL Script generated by MySQL Workbench
-- Thu Mar 29 11:06:31 2018
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TR... | true |
604ea5c5cff13e3424b34f3b3edfaee19b4d228e | SQL | sedc-codecademy/skwd8-07-dbdevdesign | /g4/Class03/Workshop/Session 3 Homework - 00 Done on Class.sql | UTF-8 | 3,300 | 4.53125 | 5 | [
"MIT"
] | permissive | -- Calculate the count of all grades in the system
select count(*) from dbo.Grade --20425
-- Calculate the count of all grades per Teacher in the system
select t.FirstName + ' ' + t.LastName as Teacher, count(*) as GradeCount
from dbo.Grade g
join dbo.Teacher t on g.TeacherID = t.ID
group by t.FirstName + ' ' + t.Last... | true |
00f08ab49cc4701aa171d478645506e989134ec0 | SQL | mcminton57/dbt-learn-mminton | /models/customers.sql | UTF-8 | 1,116 | 4.21875 | 4 | [] | no_license | WITH CUSTOMERS AS (
SELECT * FROM {{ ref('stg_customers') }}
),
ORDERS AS (
SELECT * FROM {{ ref('stg_orders') }}
),
PAYMENTS AS (
SELECT * FROM {{ ref('stg_payments') }}
),
CUSTOMER_ORDERS AS (
SELECT
ORD.CUSTOMER_ID
,MIN(ORD.ORDER_DATE) AS FIRST_ORDER_DATE
,M... | true |
c3ae5cfe818a02334518a0ed915d778f74e36ef0 | SQL | skyformat99/EMDC | /src/main/resources/sql/E_DETAIL_1.sql | UTF-8 | 915 | 2.6875 | 3 | [] | no_license | /*
Navicat Oracle Data Transfer
Oracle Client Version : 10.2.0.1.0
Source Server : sa_oracle
Source Server Version : 100200
Source Host : localhost:1521
Source Schema : SA
Target Server Type : ORACLE
Target Server Version : 100200
File Encoding : 65001
Date: 2018-06-... | true |
4333dd1def4c065ee7ce37a5758057b164ebc070 | SQL | NarayanaBojja/spring-boot-samples | /associations/src/main/resources/associations.sql | UTF-8 | 1,846 | 3.90625 | 4 | [] | no_license | CREATE SCHEMA `associations` ;
CREATE TABLE `associations`.`person_details` (
`id` int(11) NOT NULL,
`email` varchar(45) NOT NULL,
`mobile` bigint(20) NOT NULL,
`adrdress` varchar(200) DEFAULT NULL,
PRIMARY KEY (`id`)
)
CREATE TABLE `associations`.`person` (
`id` INT NOT NULL AUTO_INCREMENT,
`full_nam... | true |
06c4db49ef1789b5acbe152d42da3e7e05b66e02 | SQL | VinodRobert/DBCapacite | /VersionSQL/BERACHAH/BSBS_CAPACITE/BT/Table/ManPowerTypes.sql | UTF-8 | 258 | 2.515625 | 3 | [] | no_license | /****** Object: Table [BT].[ManPowerTypes] Committed by VersionSQL https://www.versionsql.com ******/
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
CREATE TABLE [BT].[ManPowerTypes](
[SKILLTYPEID] [int] NULL,
[SKILLNAME] [varchar](25) NULL
) ON [PRIMARY] | true |
1dd84e1cb8c5c7d260b5e6f4e86bc02384aeeb16 | SQL | modscleo4/knop | /dbscript.sql | UTF-8 | 3,229 | 3.515625 | 4 | [
"Apache-2.0"
] | permissive | CREATE TABLE usuario (
id_usuario BIGSERIAL NOT NULL PRIMARY KEY,
login VARCHAR(40) NOT NULL UNIQUE,
email VARCHAR(40) NOT NULL UNIQUE,
senha VARCHAR(200) NOT NULL,
excluido CHAR(1) DEFAULT 'n' NOT NULL,
data_exclusao DATE,
valido ... | true |
cacf29bebb229210cdf08f7055d16f0cd7058eaf | SQL | J3B60/Databases-and-Information-SQL-week5 | /Task6W5Window-2.sql | UTF-8 | 148 | 2.625 | 3 | [] | no_license |
--BEGIN TRANSACTION;
--UPDATE newemp SET deptno = 30 WHERE ename = 'SMITH';
COMMIT;
SELECT * FROM newemp;
--See rows because its because of commit | true |
b12b60416ba91532c779e29616feb761b05f4ab7 | SQL | tiffmaelite/hotel-precheck | /src/Database/postgresql/1-dbCrea-ServicesFamiliesMain-pgSQL.sql | UTF-8 | 478 | 2.78125 | 3 | [] | no_license | CREATE TABLE SERVICESFAMILIES
(
ID SERIAL,
LABEL VARCHAR(25) NOT NULL,
CONSTRAINT PK_SERVICESFAMILIES_ID PRIMARY KEY (ID),
CONSTRAINT UQ_SERVICESFAMILIES_LABEL UNIQUE (LABEL)
) WITH (autovacuum_enabled = 'true', autovacuum_vacuum_threshold = 5);
--suppress_redundant_updates_trigger(); incompatible with upserts... | true |
df4fda10adb7d58b6c696b200379aced1bc16321 | SQL | Silverback1992/The-Complete-SQL-Bootcamp-My-solutions | /Challenge 2 - SELECT DISTINCT.sql | UTF-8 | 138 | 2.578125 | 3 | [] | no_license | --Challenge 2
--Checking the structure of table
SELECT *
FROM film
LIMIT 1;
--Actual solution
SELECT DISTINCT rating
FROM film; | true |
3683e0cb1b04f0b22ed9c60df4713c9f8a2df2f7 | SQL | 1BE6-ankit/Science-Fest | /science-quiz/database/science-final.sql | UTF-8 | 4,855 | 3.078125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.5.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 15, 2017 at 12:04 PM
-- Server version: 10.1.19-MariaDB
-- PHP Version: 7.0.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI... | true |
23f88432b95429f4f9775f58ae5be989500c6a7b | SQL | Fantasmy/SQL_Scripts | /bluewinds/BestProductRevenue.sql | UTF-8 | 416 | 3.6875 | 4 | [] | no_license | --OBTENER EL PRODUCTO QUE MAS GANANCIA GENERO ENTRE MARZO Y OCTUBRE DE 2013
select top 1
p.ProductName
, p.UnitPrice
, sum(oi.Quantity*oi.UnitPrice) ganancias
from Products p
inner join OrderItems oi
on oi.ProductId = p.Id
inner join Orders o
on o.Id = oi.OrderId
where year (o.OrderDate) = 2013
AND month(o.OrderDate) ... | true |
5e029d47bd090226d28891d13a577a7232ae2832 | SQL | Manjor/EcommercePHP | /Arquivos do Banco/procedures/addProduto.sql | UTF-8 | 636 | 2.90625 | 3 | [] | no_license | CREATE DEFINER=`root`@`localhost` PROCEDURE `addProduto`(
IN v_nomeproduto varchar(150),
IN v_descricao varchar(150),
IN v_modelo varchar(100),
IN v_quantidade int,
IN v_valor float,
IN v_endereco varchar(250),
IN v_categoria int,
IN v_marca int
)
BEGIN
INSERT INTO produto
(
nomeproduto... | true |
ecc3ebfcde3275743f9cbeceee5f62516e8ed676 | SQL | hajirodeon/Belajar | /db.sql | UTF-8 | 543 | 2.671875 | 3 | [] | no_license | -- ----------------------------
-- Table structure for `biodata`
-- ----------------------------
DROP TABLE IF EXISTS `biodata`;
CREATE TABLE `biodata` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`nama` varchar(50) DEFAULT NULL,
`alamat` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3... | true |
a7656fabc0998a815281e0123a2efcb7e059626c | SQL | amirhoseinkh91/pondms | /src/ir/viratech/pond_ms/core/db/flyway/migrations/V1__FirstSchema.sql | UTF-8 | 7,061 | 3.1875 | 3 | [] | no_license | --drop schema if EXISTS pond_ms cascade;
--create schema pond_ms;
create table pond_ms.ABSTRACT_FILES (id bigint not null, hashCodeStr varchar(255) not null, primary key
(id));
create table pond_ms.CONFIG_ENTRIES (id bigint not null, extuid varchar(255) not null, title varchar(255),
configKey varchar(255) not ... | true |
41d98f093fcdf675318713d51b6c1c71857b2a01 | SQL | jean-1314/309949-typoteka-3 | /sql/fill-db.sql | UTF-8 | 2,771 | 3.40625 | 3 | [] | no_license | -- Добавление пользователей
INSERT INTO users VALUES
(1, 'Анастасия', 'Смирнова', 'asmirnova@mail.ru', 'qwerty12345', NULL, NOW()),
(2, 'Пётр', 'Петров', 'petrovp@yandex.ru', '12345qwerty', NULL, NOW())
ON CONFLICT DO NOTHING;
-- Добавление категорий
INSERT INTO categories VALUES
(1, 'Деревья', NOW()),
(2, 'За жизнь',... | true |
6e511414748cb29d15b428122ea80c46ddd3057b | SQL | monitiwa/Sample1 | /Datawarehouse/MDM.DMS.1.1.sql | ISO-8859-1 | 2,587 | 3.28125 | 3 | [] | no_license | --<ScriptOptions statementTerminator=";"/>
-- Version 13698
CREATE TABLE MD33_DMS_Dokumentart (
ID_Dokumentart NUMBER(28 , 0) NOT NULL,
TA_Ladedatum DATE NOT NULL,
TA_Ersatzdatum DATE NOT NULL,
TA_Lade_ID NUMBER(28 , 0) NOT NULL,
TA_GELOESCHT CHAR(1),
TA_SPERRE CHAR(1),
Erfassung_Gueltig_Beginn DATE NOT ... | true |
bcd51991a334fce10f0de8b20f7eb0d23eb0b6b9 | SQL | tuongtang68/karros-test | /src/main/resources/db/migration/V1_0_0__create_sequence.sql | UTF-8 | 1,266 | 3.828125 | 4 | [] | no_license | CREATE TABLE USER
(
id int auto_increment primary key not null,
name varchar(255)
);
CREATE TABLE DEVICE
(
id int auto_increment primary key not null,
name varchar(255),
link varchar(255)
);
CREATE TABLE GPS
(
id int auto_increment primary key not null,
file_path varcha... | true |
f981234a182a03cb46dc3d264deb75281a7fa08c | SQL | kohanevich85/atm-test-application | /src/main/resources/sql/init-test-data.sql | UTF-8 | 434 | 2.546875 | 3 | [] | no_license | INSERT INTO card (card_number, pin_code, balance, attempt, blocked) VALUES
(1234567890123456, 1234, 500.00, 0, 0),
(6543210987654321, 4321, 300.00, 0, 0),
(2222222222222222, 1122, 100.00, 0, 0);
INSERT INTO operation_type (type) VALUES
('WITHDRAW'), ('INFO');
INSERT INTO operation (card_id, operation_type_id,... | true |
6d8f8632537c0a27dfc3702abea7c8be27b3a393 | SQL | halshudukhi/assignment1_ci3 | /sql.sql | UTF-8 | 1,358 | 3.09375 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:8889
-- Generation Time: Oct 28, 2020 at 02:38 PM
-- Server version: 5.7.26
-- PHP Version: 7.3.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `paytab`
--
-- ---------------------------... | true |
39453512cb48c8ad926674b0ae0c9e3cd234eb8b | SQL | intCCP/CCP | /Application/Viste/v_mcres_app_extract_from_doc.sql | UTF-8 | 5,335 | 3.203125 | 3 | [] | no_license | /* Formatted on 21/07/2014 18:42:13 (QP5 v5.227.12220.39754) */
CREATE OR REPLACE FORCE VIEW MCRE_OWN.V_MCRES_APP_EXTRACT_FROM_DOC
(
COD_SOCIETA_SAP,
COD_ABI,
COD_NDG,
COD_AUTORIZZAZIONE,
COD_AUTORIZZAZIONE_PADRE,
COD_PROGRESSIVO,
ID_OBJECT,
VAL_DOC_NAME
)
AS
SELECT ... | true |
118c3b3f02fe26bd01b99a844552b06a439ccdf5 | SQL | jizel/snap-im-tests | /nonpms-integrations/manual-reloading/reload_Fact_twitter_daily.sql | UTF-8 | 2,179 | 3.765625 | 4 | [] | no_license | REPLACE INTO
Fact_twitter_daily
SELECT
f1.property_id,
d.date_id,
ROUND((CAST(f2.impressions AS SIGNED) - CAST(f1.impressions AS SIGNED)) * TIMESTAMPDIFF(DAY, d.day, d1.day) / TIMESTAMPDIFF(DAY, d2.day, d1.day)) + f1.impressions,
ROUND((CAST(f2.engagement AS SIGNED) - CAST(f1.engagement AS SIGNED)) ... | true |
c4fb0dfdc62254790804d1068ec7c4745351c9de | SQL | vladlay/Avtopark | /MY-db/avto_parks.sql | UTF-8 | 2,623 | 3.109375 | 3 | [
"MIT"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.6.6deb5
-- https://www.phpmyadmin.net/
--
-- Хост: localhost:3306
-- Время создания: Май 31 2020 г., 21:14
-- Версия сервера: 5.7.30-0ubuntu0.18.04.1
-- Версия PHP: 7.2.24-0ubuntu0.18.04.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTE... | true |
d3959af2da396f7d9302396f23ca44070e8b4ff4 | SQL | jonathansavas/marist-mscs710-capping-project | /resource-monitor/metrics-persistence-api/src/main/resources/db_schema.sql | UTF-8 | 1,926 | 3.40625 | 3 | [
"MIT"
] | permissive | -- This file should not have in-line comments
-- Statements should begin on a new line (i.e. on a line there
-- should be nothing after a semi colon)
PRAGMA foreign_keys = off;
CREATE TABLE IF NOT EXISTS cpu (
datetime BIGINT NOT NULL PRIMARY KEY,
delta_millis BIGINT NOT NULL,
temperature REAL,
u... | true |
611db08a793384fada592bfa3e84564b4e6efce6 | SQL | 15515710742/Test | /cuikui/HTML5/day04/homework/db.sql | UTF-8 | 1,850 | 3.0625 | 3 | [] | no_license | USE web1806;
CREATE TABLE yaopin(
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(255),
price DECIMAL(10,2)
);
CREATE TABLE kucun(
id INT PRIMARY KEY AUTO_INCREMENT,
yid INT,
bank INT
);
CREATE TABLE xiaoshou(
id INT PRIMARY KEY AUTO_INCREMENT,
yid INT,
sales DECIMAL(10,2)
);
INSER... | true |
a0430b75b2ffbee2b308b6e88b40e6d8f8292306 | SQL | M0rgan01/Projet-12 | /DataBase/init/db_stock/02_data.sql | UTF-8 | 5,244 | 2.78125 | 3 | [] | no_license | --
-- PostgreSQL database dump
--
-- Dumped from database version 11.4
-- Dumped by pg_dump version 11.4
-- Started on 2019-10-09 22:38:42
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_catalo... | true |
6ba8e11286d8f40a69fd3fea6a125a9d0ff8e18f | SQL | prasetiyo28/gis | /gis.sql | UTF-8 | 4,300 | 3.21875 | 3 | [
"Apache-2.0"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.7.6
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: May 13, 2019 at 09:21 PM
-- Server version: 10.1.29-MariaDB
-- PHP Version: 7.2.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
977b0fcdbdacb19dda58f09c95c557cb9d4db892 | SQL | ahsanshah23/IPT-Whole | /logger_ayaz (1).sql | UTF-8 | 31,757 | 2.90625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 25, 2020 at 03:58 PM
-- Server version: 10.3.16-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 |
66a010a91d0706a3f0b3c05646615720351be2a1 | SQL | BimberLab/DiscvrLabKeyModules | /SequenceAnalysis/resources/queries/sequenceanalysis/aa_snps_by_position_and_type.sql | UTF-8 | 1,313 | 3.828125 | 4 | [] | no_license | SELECT
c.analysis_id,
c.ref_nt_id,
c.ref_aa_id,
c.ref_aa,
c.ref_aa_position,
c.ref_aa_insert_index,
count(*) as totalRecords,
group_concat(DISTINCT CASE
WHEN (c.q_aa = ':' OR c.q_aa = '?' OR c.q_aa = '+' OR c.ref_aa = '-') THEN 'Indel'
WHEN c.ref_aa = c.q_aa THEN 'Synonymous'
WHEN c.ref_aa != c.q_aa THEN 'Non-Sy... | true |
19399aa035353d160e8553aa5282de3ec6cd0e09 | SQL | cdesmarais/WebDB-Test | /WebDB/StoredProcedures/Common/dbo.DNDinerDelete.PRC | UTF-8 | 479 | 3.140625 | 3 | [] | no_license | if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[DNDinerDelete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[DNDinerDelete]
GO
CREATE PROCEDURE dbo.DNDinerDelete
@DinerID int
AS
SET NOCOUNT ON
--we do not actually delete here but just set the diner to inactive
Update Call... | true |
7658f0388dfd50d73d6fbfe95feaa8c926fdcb4d | SQL | Colin-Whitcomb/Employee_Tracker | /db/seeds.sql | UTF-8 | 1,289 | 3.03125 | 3 | [
"MIT"
] | permissive |
-- Adding employees --
INSERT INTO employee(first_name, last_name, role_id, manager_id)
VALUES("Bob", "Smith", 3, 1);
INSERT INTO employee(first_name, last_name, role_id, manager_id)
VALUES("Addy", "Payne", 5, 1);
INSERT INTO employee(first_name, last_name, role_id, manager_id)
VALUES("Keith", "Tillotson", 1, 1);
INSE... | true |
b035e8cb018c3b33149161a10e3aca6f1db7a554 | SQL | unica-open/siacdbimpl | /src/sql/postgres/caricamento variabili report/caricamento variabili report BILR014.sql | UTF-8 | 7,527 | 3.265625 | 3 | [] | no_license | /*
*SPDX-FileCopyrightText: Copyright 2020 | CSI Piemonte
*SPDX-License-Identifier: EUPL-1.2
*/
/* DA CONFIGURARE SIAC_T_REPORT PER ALCUNI ENTI mancanti??? FORSE sono gli enti locali che non hanno il report BILR014 */
/* 1) configurazione delle variabile 'A) Entrate correnti di natura tributaria, contributiva e pereq... | true |
4e68e0d28e2cf26389901ca23bf7e2c9968b5c3f | SQL | EmanuelVA403/capacitacion | /capacitacion.sql | UTF-8 | 4,700 | 2.9375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.3.11
-- http://www.phpmyadmin.net
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 06-09-2015 a las 15:34:47
-- Versión del servidor: 5.6.24
-- Versión de PHP: 5.6.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARAC... | true |
496eda89907c642e5d4aeb4371ed907960657d75 | SQL | viadee/dbt-dorfladen | /models/staging/stage_dim_artikel.sql | UTF-8 | 893 | 3.140625 | 3 | [] | no_license | {{ config(
tags=["Wareneingang"]
) }}
select distinct
artikelnummer
,artikelbezeichnung
,warengruppe
,mwst_satz
,bestandsfuehrung
from
(
select
artikelnummer
,artikelbezeichnung
,warengruppe
,mwst_satz
,bestandsfuehrung
from {{ source('dorfladen', 'STAGE_WARENEINGANG_POSITION') }}
... | true |
77431cabad4e0307ba513e211e4f93d9fc540ce0 | SQL | alena1112/PreparationProject | /src/main/java/com/alena/preparationproject/deutscheBank/queries.sql | UTF-8 | 1,373 | 4.15625 | 4 | [] | no_license | create table Employee (
id int not null AUTO_INCREMENT,
dep varchar(10),
salary int,
bonus int,
PRIMARY KEY (id)
);
insert into Employee (dep, salary, bonus) values ('IT', 100, 100);
insert into Employee (dep, salary, bonus) values ('IT', 300, 300);
insert into Employee (dep, salary, bonus) values ('HR', 150, 15);
ins... | true |
1a007851d494812d2b18ce1ba1e3d8f4234c14a5 | SQL | pauloricardo50/Daily-Log-1.1 | /Banco de Dados/daylog_tbl_subcategoria.sql | UTF-8 | 2,779 | 2.953125 | 3 | [] | no_license | -- MySQL dump 10.13 Distrib 8.0.16, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: daylog
-- ------------------------------------------------------
-- Server version 5.6.19
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!4... | true |
f4b3e77fbd19e40791e5d27fee8dccfdaf4bed23 | SQL | Jayesh07/Pizza-World | /product_details.sql | UTF-8 | 6,036 | 2.9375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 13, 2019 at 11:39 PM
-- 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 |
980ef9f774629d89d8f2a6b62d35ff39fe7f0868 | SQL | VitaminasG/Slim-3-Boilerplate | /seed/seed-mysql.sql | UTF-8 | 286 | 2.703125 | 3 | [] | no_license | -- Database seed with default message value
create table if not exists slim.main
(
id int auto_increment primary key,
message text null,
created_at timestamp default current_timestamp() not null,
updated_at timestamp default null
);
insert into main (message) value ('What now?'); | true |
654b0f05b6e097275b30fd7c6c997e71928b9362 | SQL | acmlmboard/acmlmboard-2 | /sql/old/updates/badges_update-120126.sql | UTF-8 | 616 | 2.921875 | 3 | [] | no_license | #Adds unique id table for easier manipulating. Adds new perm for editing system badges, and for assigning badges
#Date: 1/26/2014
ALTER TABLE `badges` CHANGE `desc` `description` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';
ALTER TABLE `user_badges` ADD `id` INT NOT NULL AUTO_INCREME... | true |
d6cedc5cb5f6e5b9c6e89c90620d75fbdebbfe2c | SQL | Yloen/ERP | /setup/sql/createJob.sql | UTF-8 | 3,543 | 3.8125 | 4 | [] | no_license |
set define off
spool job.log
prompt
prompt 定时执行采购需求采购情况(每天凌晨)
prompt ==========================================
prompt
--select job, broken, what, interval, t.* from user_jobs t;
--show parameter job
--删除job
--exec dbms_job.remove(jobID)
--输出日记
--set serveroutput on
drop procedure erp.task_... | true |
db2f53bb3bdd7bcf46921aae223db1b6a4c7be55 | SQL | anandeka/my-project | /DBScripts/MasterScripts/Master_Scripts_275.sql | UTF-8 | 3,880 | 3.1875 | 3 | [] | no_license |
update DGM_DOCUMENT_GENERATION_MASTER set FETCH_QUERY=
'INSERT INTO AS_ASSAY_D(
INTERNAL_CONTRACT_ITEM_REF_NO,
ASSAY_REFNO,
INTERNAL_GMR_REF_NO ,
CONTRACT_TYPE ,
ACTIVITY_DATE ,
ship_land_date ,
BUYER ,
SELLER ,
OUR_CONTRACT_REF_NO ,
CP_CONTRACT_REF_NO ,
GMR_REF_NO ... | true |
e9a5dddf57b68622388ebdcf35e5a21777a7835f | SQL | AndrewZXue/CS-143 | /CS-143/hw2/part1.sql | UTF-8 | 4,069 | 3.9375 | 4 | [] | no_license | -- a)
SELECT
highway,
area
FROM caltrans
WHERE text like '%IS CLOSED%' and (text like '%DUE TO SNOW%' or text like '%FOR THE WINTER%')
GROUP BY highway, area
ORDER BY highway DESC, area DESC
LIMIT 20;
+---------+-------------------------------------------------+
| highway | area ... | true |
8000da39104c6ec08bae165ae52c7b1b928e17d6 | SQL | wrunkiev/relational-db | /sql/home_work_6_1/CREATE_TABLE_ORDER_DETAILS.sql | UTF-8 | 279 | 2.875 | 3 | [] | no_license | CREATE TABLE ORDER_DETAILS(
ORDER_ID NUMBER,
PRODUCT_ID NUMBER,
UNIT_PRICE DECIMAL(7,2),
QUANTITY NUMBER,
DISCOUNT NUMBER,
CONSTRAINT ORDER_ID_FK FOREIGN KEY(ORDER_ID) REFERENCES ORDERS(ORDER_ID),
CONSTRAINT PRODUCT_ID_FK FOREIGN KEY(PRODUCT_ID) REFERENCES PRODUCTS(PRODUCT_ID)); | true |
c555e736ec4b71820b2391506819db7a85d6fb7a | SQL | gironVasquez/bytes | /bytes.sql | UTF-8 | 1,619 | 2.859375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 15-02-2020 a las 22:28:32
-- Versión del servidor: 10.1.21-MariaDB
-- Versión de PHP: 5.6.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CL... | true |
d38912127c0512de206c12a4f14768e1644a3172 | SQL | AlfaRiza/sistem-pemilu | /project.sql | UTF-8 | 7,711 | 2.921875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 22, 2019 at 05:51 PM
-- Server version: 10.1.33-MariaDB
-- PHP Version: 7.2.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
11fb51cd44a325ba7732be9675dbb1f3086832fc | SQL | gdsotirov/mysql-play | /Examples/Optimizer/histogram.sql | UTF-8 | 4,443 | 3.5625 | 4 | [] | no_license | /* Histogram example
* Histograms are available since MySQL 8.0.3 RC, released 2017-09-21
*/
SET histogram_generation_max_mem_size = 184*1024*1024;
/* Create histogram */
ANALYZE TABLE emp
UPDATE HISTOGRAM ON job WITH 5 BUCKETS;
/* +--------------+-----------+----------+------------------------------------------... | true |
777ca83a52f64445975f276cec64536dc3fc647e | SQL | pianohagens/ITC222-Spring-2016-Assignment1 | /metro_Alt.sql | UTF-8 | 1,332 | 3.421875 | 3 | [] | no_license | use metro_Alt;
Create table Bus_Service
(
BusServiceKey int identity(1,1) primary key,
BusServiceName nvarchar(255) not null,
BusServiceDescription varchar (5000)
)
Create table Maintenance
(
MaintenanceKey int identity(1,1),
BusServiceKey int not null,
MainenanceDate Date default getDate(),
Constraint PK_Maintenance... | true |
3964f0dbb8242c8961de3268c6f1758abfe103a8 | SQL | VijayEluri/src | /csharp/SimpleProjects/GrandMaster/import.sql | UTF-8 | 830 | 3.5 | 4 | [] | no_license | IF EXISTS (SELECT * FROM tempdb..sysobjects
WHERE id = OBJECT_ID('tempdb..#grand_master') AND type = 'U')
DROP TABLE #grand_master
CREATE TABLE #grand_master (
[position] [int] NOT NULL,
[name] [nvarchar](max) NOT NULL,
[race] [varchar](10) NOT NULL,
[joined] [varchar](10) NOT NULL,
[poi... | true |
fa6264d62eefeac597f34e9ab34121c019f2ca1c | SQL | Asguard847/ProjectServlet | /src/main/resources/scripts/create_schema.sql | UTF-8 | 4,338 | 3.171875 | 3 | [] | no_license | -- MySQL dump 10.13 Distrib 8.0.18, for Win64 (x86_64)
--
-- Host: localhost Database: projectservlet
-- ------------------------------------------------------
-- Server version 8.0.18
DROP SCHEMA IF EXISTS 'projectservlet';
CREATE SCHEMA 'projectservlet';
USE 'projectservlet';
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... | true |
3e3dc8f11a02d1530f0eb0bed46f4cc06ecae8f4 | SQL | simonc99/sql | /find_lob_sizes.sql | UTF-8 | 325 | 3.0625 | 3 | [] | no_license | set linesize 400
select 'select ''TABLE : '||a.table_name||' HAS '','''||b.num_rows||' ROWS, WITH AN AVG LOB SEGMENT SIZE OF '', avg(dbms_lob.getlength('||a.column_name||')) bytes from TRENTADM.'||a.table_name||';'
from dba_lobs a, dba_tables b where
a.owner = 'TRENTADM' and
a.table_name = b.table_name and
b.num_rows >... | true |
4cecc150702785a70a86379138918fab8175cc05 | SQL | 416Akbr/PPDB-WK | /home/ppdb-dev.sql | UTF-8 | 8,377 | 2.796875 | 3 | [
"CC-BY-3.0",
"CC-BY-4.0"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 22 Mei 2018 pada 10.40
-- Versi Server: 10.1.30-MariaDB
-- PHP Version: 5.6.33
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CH... | true |
9a9321aca67aa094f4db350cb6f25f44369979e4 | SQL | kfancode/Allworx-UI | /remove 800 numbers from outgoing calls.sql | UTF-8 | 501 | 2.71875 | 3 | [] | no_license | /** remove outgoing calls to 800 numbers - no need to bill **/
-- find outgoing calls to 800 numbers
select * from outgoingcalls
where placedto like '(800)%'
or placedto like '(855)%'
or placedto like '(866)%'
or placedto like '(877)%'
or placedto like '(888)%'
order by placedto
-- delete 800 numbers from... | true |
2ac8452269c9fea4508b20d6edb6d0465f2b5d5d | SQL | StanevDev/Telephony-service | /src/main/resources/sql/dump.sql | UTF-8 | 21,506 | 3.0625 | 3 | [] | no_license | --
-- PostgreSQL database dump
--
-- Dumped from database version 10.0
-- Dumped by pg_dump version 10.0
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_m... | true |
041e5cd04674a784af527961eabeb94000a60e5e | SQL | zeralot/Java-Web-lab | /Labs/P0002/SourceCode/airlinetickets.sql | UTF-8 | 2,728 | 3.859375 | 4 | [] | no_license | create database AirlineTickets
drop database AirlineTickets
create table Customer(
cid int primary key identity(1,1),
email nvarchar(30),
pass nvarchar(15),
firstname nvarchar(15),
lastname nvarchar(15),
addr nvarchar(50),
phonenumber nvarchar(11),
sex bit,
age int,
cardnumber nvarchar(15),
)
select * from C... | true |
f29d169374372227f60e3380b1f45ff1525cb481 | SQL | 269219362ljf/askr-yggdrasills-api | /askr-dao/create.sql | UTF-8 | 1,554 | 3.515625 | 4 | [] | no_license | create table stock_code_list
(
id int primary key auto_increment,
stock_code varchar(10) comment '股票代码',
stock_name varchar(50) comment '股票名称',
created_at timestamp not null default CURRENT_TIMESTAMP,
updated_at timestamp not null default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
)
C... | true |
30b95ff16b0466dba3a035f91890b97606f2da13 | SQL | UNAH-IS/IS501-I2019 | /UnidadII/Ejercicio12/DDL.sql | UTF-8 | 68,588 | 2.734375 | 3 | [] | no_license | --------------------------------------------------------
-- File created - Saturday-April-22-2017
--------------------------------------------------------
--------------------------------------------------------
-- DDL for Table TBL_ALUMNOS
--------------------------------------------------------
CREATE TABL... | true |
98c6c81c624b6ff6ea4a529fd57ec3d47b4d5a88 | SQL | nestoor22/FilmsScrapping | /films_db.sql | UTF-8 | 4,635 | 3.65625 | 4 | [] | no_license | -- MySQL Script generated by MySQL Workbench
-- Sun Oct 27 11:25:55 2019
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ON... | true |
28311c0de16ae9629806292dd4e378b1a8d7a913 | SQL | deepuktvm08/DeepuTestDepository | /SQL/insuranctable.sql | UTF-8 | 2,140 | 3.53125 | 4 | [] | no_license | --BRANCH 1 CODES
CREATE TABLE C_INSURANCE
(
INSURANCE_ID NUMBER(20),
SOLID VARCHAR2(5 BYTE),
POLICY_NO VARCHAR2(20 BYTE),
CREATE_DATE DATE,
ACCOUNT_NO VARCHAR2(16 BYTE),
INSURED_ASSET_DETAILS VARCHAR2(50 BYTE),
INSURED_FROM... | true |
cfdf0cb38ae1c4e1e47e26c5f0ebf85164cb208d | SQL | exyangbang/learngit | /utp-manage-ht/utp-manage-api/src/main/resources/ddl/certificate/CertificateMerchantInfo.ddl | UTF-8 | 657 | 3.265625 | 3 | [] | no_license | drop table if exists certificate_merchant_info;
create table certificate_merchant_info (
id int(6) NOT NULL PRIMARY KEY AUTO_INCREMENT COMMENT '主键ID'
,user_create varchar(250) COMMENT '创建用户'
,gmt_create datetime COMMENT '创建时间'
,user_modified varchar(250) COMMENT '修改用户'
,gmt_modified datetime COMMENT '修改时间'
,... | true |
6517cc8a9b028f312f1cb4e7150871b77cc06b89 | SQL | yusronhanan/consolidation | /consolidation1.sql | UTF-8 | 3,598 | 3.015625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 23 Apr 2019 pada 21.13
-- Versi Server: 10.1.13-MariaDB
-- PHP Version: 7.0.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ... | true |
eed0cfa11849e09bf4ed7707bc573bc8d063dbe3 | SQL | patricknaka/Nova | /Views Nike/VW_NK_PEV_CAB.sql | UTF-8 | 10,712 | 2.84375 | 3 | [] | no_license | SELECT DISTINCT
-- O campo CD_CIA foi incluido para diferenciar NIKE(13) E BUNZL(15)
--**********************************************************************************************************************************************************
-- a tabela ttdsls094201 é compartilhada com a 201
-- em 02/10/15 foram reti... | true |
3d79500f661bd3e2bd5c7ec3e5084228e9619176 | SQL | lindemannrichard/geonames-installer | /installer.sql | UTF-8 | 4,241 | 3.65625 | 4 | [
"MIT"
] | permissive | CREATE USER geonamesadmin;
ALTER USER geonamesadmin SET search_path=geonames;
CREATE SCHEMA geonames;
ALTER SCHEMA geonames OWNER TO geonamesadmin;
SET ROLE geonamesadmin;
SET search_path=geonames;
CREATE TABLE geonames (
geonameid SERIAL, /* integer id of record in geonames database ... | true |
affcecf3aa79e419c7a30844fcee711a7430f8cc | SQL | jumorris2017/SQL-queries | /ShiftsEntirelyInDayPart_Moodring__SQLserver.sql | UTF-8 | 1,418 | 3.375 | 3 | [] | no_license | --SELECT TOP 100 caseID, SendDate, KillDate, surveyRespDate, Question_ID, RespID, STORE_NUM_ASSIGNED, STORE_NUM_WORKED, JOB_ID, BUS_DT, START_DTM_LCL, END_DTM_LCL, [RANK], SHIFT_LEN_MIN, LoadDate
SELECT
Question_ID
,JOB_ID
,CASE
WHEN (CAST(START_DTM_LCL AS time) >= CONVERT(time,'06:00:00',114) AND CAST(END... | true |
c260c45ff2b2d54d7ab6fe4f8252d551f18d253f | SQL | kumarvivek633/retail-store | /dao/src/main/sql/v0.1/V0.1.0_082__RC-XXX_CREATE_COUNTRIES_TABLE.sql | UTF-8 | 1,028 | 3.234375 | 3 | [] | no_license | DECLARE
v_cnt NUMBER := 0;
V_QRY VARCHAR2(4000);
P_TABLE_NAME VARCHAR2(1000):='COUNTRIES';
v_s_cnt NUMBER := 0;
v_cnt2 NUMBER := 0;
BEGIN
SELECT COUNT (*)
INTO v_cnt
FROM ALL_TABLES
WHERE TABLE_NAME = 'COUNTRIES' AND owner = 'DBO_TC';
IF v_cnt = 0
THEN
--
... | true |
2e2e09d72f79f415d03279139b051f4d73cc4d42 | SQL | yawzyag/holbertonschool-higher_level_programming | /0x0E-SQL_more_queries/7-cities.sql | UTF-8 | 321 | 3.109375 | 3 | [] | no_license | -- 3 first students in the Batch ID=3
-- because Batch 3 is the best!
CREATE DATABASE IF NOT EXISTS hbtn_0d_usa;
CREATE TABLE IF NOT EXISTS hbtn_0d_usa.cities(id INT UNIQUE AUTO_INCREMENT NOT NULL PRIMARY KEY, state_id INT NOT NULL, FOREIGN KEY (state_id) REFERENCES hbtn_0d_usa.states(id),name VARCHAR(256) NOT NULL)... | true |
83ac863e5fabae0a2d32e9a126b2bb2518449493 | SQL | cfgrok/nbp-data-import | /db/scripts/original_data_cleanup_test.sql | UTF-8 | 19,782 | 3.3125 | 3 | [] | no_license | /*
-- delete survey records w/o data
DELETE FROM tblNeighborhoodBirdProjectData WHERE ID IN (19552, 20889, 21810, 22476, 22563, 22966, 23585);
-- delete erroneous survey & species records
DELETE FROM tblNeighborhoodBirdProjectData WHERE ID IN (21080, 21081, 21082);
DELETE FROM tblNHBPSpeciesData WHERE ID IN (21080, 2... | true |
847c8f5f25978f120e82452b408fd705f2783741 | SQL | tklustig/MySQL | /MySQL/user.sql | UTF-8 | 1,485 | 3.09375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Erstellungszeit: 21. Aug 2018 um 12:17
-- Server-Version: 10.1.34-MariaDB
-- PHP-Version: 7.2.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CH... | true |
9e44b873db49c63c979781c21cfbf92f68656ef1 | SQL | charlesdanner/BAMazon | /bamazon.sql | UTF-8 | 1,398 | 3.765625 | 4 | [] | no_license | DROP DATABASE IF EXISTS bamazonDB;
CREATE DATABASE bamazonDB;
USE bamazonDB;
CREATE TABLE products(
id INT NOT NULL AUTO_INCREMENT,
product_name VARCHAR(40) NOT NULL,
department_name VARCHAR(30) NOT NULL,
price DECIMAL(10,2) NOT NULL,
stock_quantity INT(10) NOT NULL,
product_sales DECIMAL(10,2) DEFAULT 0,
PRIMARY KEY ... | true |
ba46e420972719b55e4c3860ae7f545b1d3ede4d | SQL | mwherman2000/PSN.ModelMate | /PSN.ModelMate.Specification/specification3_modelmate.cql | UTF-8 | 12,924 | 3.25 | 3 | [
"MIT"
] | permissive | LOAD CSV FROM "file:///Parallelspace_ModelMate_MasterDatasets_Complete10.csv" as row
FIELDTERMINATOR ','
WITH row
RETURN row
LIMIT 100
LOAD CSV FROM "file:///Parallelspace_ModelMate_MasterDatasets_Complete10.csv" as row
FIELDTERMINATOR ','
WITH row
RETURN row
LIMIT 1
//[RelativeStrength, IsInputRelation, StandardV... | true |
61be8571abb6be44749406f41d05bdc9266461d8 | SQL | MohamedSamirNassar1993/Oracle-Forms-And-Reports | /law/Client Script.sql | UTF-8 | 5,287 | 3.625 | 4 | [] | no_license | CREATE TABLE users (
User_id number(10) NOT NULL,
User_Name varchar2(50) NOT NULL,
User_Password varchar2(50) NOT NULL,
User_StartDate date DEFAULT NULL,
User_EndDate date DEFAULT NULL,
User_Active char(1) DEFAULT 'N',
USER_ADMIN char(1) DEFAULT 'N'
) ;
create unique index User_Name_idex on us... | true |
820745211b7369793164843ce3aca550089760d6 | SQL | zhiji6/szbj-code | /cdr.core/src/main/resources/com/yly/cdr/dao/VisitDao_getOutPatientCount.sql | UTF-8 | 601 | 3.265625 | 3 | [] | no_license | /** 获取有效的门急诊条数 */
select count(*) from medical_visit mv
where mv.patient_sn = /*patientSn*/
and mv.delete_flag = '0'
and mv.visit_type_code <> /*visitTypeCode*/'03'
and (exists (select 'X' from diagnosis where diagnosis.delete_flag = 0 and diagnosis.visit_sn = mv.visit_sn)
or exists (select 'X' from exa... | true |
b116963daa042c42435726cb82f02b96a91dd38b | SQL | LouwieLou/NashvilleNutritionSpot | /database/load-csv.sql | UTF-8 | 417 | 2.984375 | 3 | [] | no_license | DROP DATABASE IF EXISTS menu_db;
CREATE DATABASE IF NOT EXISTS menu_db;
USE menu_db;
DROP TABLE IF EXISTS items;
CREATE TABLE IF NOT EXISTS items (
id INT,
category VARCHAR(10),
item_name VARCHAR(100),
description VARCHAR(1000),
price INT,
CONSTRAINT PRIMARY KEY pk_items(id)
);
LOAD DATA IN... | true |
e08ce8a559b787d0c18265b44abc7b745e3db9ce | SQL | SkillsFundingAgency/dfc-devops-database | /dfc.devops.database/dfc.devops.database/dbo/Stored Procedures/dfc_GetUserAuthorisationDetailsByEmail.sql | UTF-8 | 884 | 3.46875 | 3 | [
"MIT"
] | permissive | -- =============================================
-- Author: <Author, , Name>
-- Create Date: <Create Date, , >
-- Description: <Description, , >
-- =============================================
CREATE PROCEDURE dfc_GetUserAuthorisationDetailsByEmail
(
@Email nvarchar (256)
)
AS
BEGIN
SELECT usr.id AS UserId ... | true |
8b1d511646974ae0479dbcf199638f15037176f9 | SQL | nicozanellato/BigQuery_ML_GA | /predictions.sql | UTF-8 | 1,429 | 3.546875 | 4 | [] | no_license | SELECT
*
FROM
ml.PREDICT(MODEL `yourDataset.ML_USonly`,
(
WITH all_visitor_stats AS (
SELECT
fullvisitorid,
IF(COUNTIF(totals.transactions > 0 AND totals.newVisits IS NULL) > 0, 1, 0) AS purchase_on_return
FROM `bigquery-public-data.google_analytics_sample.ga_sessions_*`
GROUP BY fullvisitorid
)
SELECT... | true |
d213e1b0193dddce266c9147e4d246a681cec26e | SQL | rdsurya/Yana-Mintak | /emintak.sql | UTF-8 | 10,099 | 2.5625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 11, 2018 at 07:56 AM
-- Server version: 10.1.28-MariaDB
-- PHP Version: 7.1.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... | true |
378eee84abe740afdc5d16c26e3dc1af1a83cb12 | SQL | melvinm43/sqls | /003 sql3 and 4 combined.sql | UTF-8 | 2,067 | 3.90625 | 4 | [] | no_license | --Jira User story transactions :
select /*+ PARALLEL(10) */
PKEY.project_key || '-' || JI.ISSUENUM as STORY_NUMBER,
PRJ.pname as Proj_name,
PRJ.ID as proj_id,
IT.Pname as IssueType_name,
prty.pname as Priority,
to_char(ci.oldstring) T... | true |
c95ee35bcf72ea39bfe624015819e8cb9b043f17 | SQL | quinnjn/HackRegina2013 | /database/1-database.sql | UTF-8 | 683 | 2.828125 | 3 | [] | no_license | DROP SCHEMA HACKATHON;
CREATE SCHEMA HACKATHON;
CREATE TABLE HACKATHON.facilities(
rha int,
rha_name varchar(30),
facility_id varchar(15),
facility_name varchar(65),
facility_type varchar(40),
type_id int,
hospital_designation varchar(40),
street_address varchar(35),
location varchar(25),
postal_code ... | true |
8e2a6c65fbf575e3b592d9ded93daeaa46daa69e | SQL | acrosdale/OOP- | /MongoDB/MONGODB:SQL/mongo:SQL queries/Queries pt.1/16.sql | UTF-8 | 2,684 | 3.78125 | 4 | [] | no_license | -- $ID$
-- TPC-H/TPC-R Parts/Supplier Relationship Query (Q16)
-- Functional Query Definition
-- Approved February 1998
:x
:o
select
p_brand,
p_type,
p_size,
count(distinct ps_suppkey) as supplier_cnt
from
partsupp,
part
where
p_partkey = ps_partkey
and p_brand <> 'Brand#45' -- <> means not equa... | true |
7dfe827f10d40ee66ccfff6dd6fac3b8d32e9219 | SQL | ariefsatrianugraha/LP3I_jquery_pustaka | /lp3i_jquery_pustaka.sql | UTF-8 | 2,775 | 3.171875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 26, 2020 at 10:13 AM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.3.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
7df36ecc350d17165febdde1a2bafeaf5c591ce6 | SQL | BudhathokiJhalak/Demo-App-Servlet | /DemoApp/demo_app.sql | UTF-8 | 2,419 | 3.140625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.5.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 08, 2016 at 03:25 PM
-- Server version: 10.1.19-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_CL... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.