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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
c8a05bab9514af48ad9df58c544a52e6334d4416 | SQL | gpiantoni/xelo2 | /sql/commands/recordings.sql | UTF-8 | 2,183 | 3.96875 | 4 | [
"MIT"
] | permissive | CREATE TABLE `recordings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`run_id` int(11) DEFAULT NULL,
`modality` text DEFAULT NULL COMMENT 'Modality: Name of recording modality (this is BIDS specific)' ,
`offset` float DEFAULT 0 COMMENT 'Offset: Offset between the run time and the time stamp in the dataset file. Whe... | true |
e9ce7fbb052c5ea63168903cbfa9c0444c2485de | SQL | Denis-Sotnikov/ToDoList | /db/table.sql | UTF-8 | 431 | 3.078125 | 3 | [] | no_license | create table item(
id SERIAL PRIMARY KEY,
description text,
created timestamp,
done boolean
);
create table j_role (
id serial primary key,
name varchar(2000)
);
create table j_user (
id serial primary key,
name varchar(2000) unique,
password varchar(2000),
role_id int not null... | true |
905eb7adaf55ad9c2246440ab558de45d363b034 | SQL | maidultech/ukshop | /db/07-03-20-bundle.sql | UTF-8 | 14,628 | 2.96875 | 3 | [
"MIT"
] | permissive | /*
SQLyog Professional v13.1.1 (64 bit)
MySQL - 10.2.10-MariaDB : Database - AZURADB_BETA
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY... | true |
15eecd9174a1dae9feb581ec2f55ef6be39f0a71 | SQL | rstanchuk/TrainApp | /SQL/TrainApp.sql | UTF-8 | 5,061 | 3.859375 | 4 | [] | no_license | drop database if exists TrainApp;
create database if not exists TrainApp;
use TrainApp;
-- User account tables
create table Customer (
userName varchar(50) primary key,
password varchar(50),
email varchar(100),
firstName varchar(30),
lastName varchar(30),
isChild boolean,
isSenior boolean,
isDisabled boo... | true |
a4860ab887eff770b3b540216f3acd70fb8b008e | SQL | gridcoin-community/Gridcoin-Research | /src/bdb53/lang/sql/odbc/strict_typing.sql | UTF-8 | 11,075 | 3.71875 | 4 | [
"BSD-3-Clause",
"Sleepycat",
"MIT",
"LicenseRef-scancode-newlib-historical",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | -- Example for SQLite + TinyCC taken from the book
-- "The Definitive Guide to SQLite" by Mike Owen, Chapter 7, p. 267-278
.echo on
-- Loading sqlite+tcc.dll ...
.load 'sqlite+tcc.dll'
-- Compiling code (SQL not shown) ...
.echo off
select tcc_compile('
#include <sqlite3.h>
/* Installs type validation triggers on c... | true |
de9fed631cafed9b3c0b38845d641973738ba788 | SQL | RonCav23/Cavaliere-Ronald-Database-Management | /Lab # 8 Normalization 2.sql | UTF-8 | 6,250 | 3.375 | 3 | [] | no_license | --Ronald Cavaliere--
--Lab #8--
--4/28/2017--
--SQL Statements--
Drop table if exists PeopleData, ActorData, DirectorData, MovieActors, MovieDirectors, Moviedata;
Create Table PeopleData (
pid integer not null,
firstName text not null,
lastName text not null,
spouseName text,
address varchar,
prim... | true |
e0f9c6aed892edb1586d10362a32dd0fc3b17471 | SQL | DomikIAm/codewars_challenges | /SQL/6 kyu/SQL Basics - Monsters using CASE/monsters_case.sql | UTF-8 | 295 | 3.6875 | 4 | [
"MIT"
] | permissive | SELECT
t.id as id,
t.heads as heads,
t.arms as arms,
b.legs as legs,
b.tails as tails,
CASE
WHEN heads > arms then 'BEAST'
WHEN tails > legs then 'BEAST'
ELSE 'WEIRDO'
END AS species
FROM top_half t, bottom_half b
WHERE t.id = b.id
ORDER BY species | true |
de5f03b5daa74705db46951d1147ead87daeafec | SQL | Jacobkmd/testing | /src/main/resources/schema.sql | UTF-8 | 2,434 | 3.34375 | 3 | [] | no_license | -- Database: `Bank` DENNE MÅ VÆRE OPPRETTET FØR SCRIPTET KJØRES !!!
--
DROP TABLE `Konto` IF EXISTS;
DROP TABLE `Kunde` IF EXISTS;
DROP TABLE `Poststed` IF EXISTS;
DROP TABLE `Transaksjon` IF EXISTS;
-- --------------------------------------------------------
--
-- Tabellstruktur for tabell `Konto`
--
CREATE TABLE IF... | true |
9079613a20dec552b7439d692029b4ece7b5fede | SQL | mnevins09/burger | /db/schema.sql | UTF-8 | 197 | 2.71875 | 3 | [] | no_license | --Schema--
create database burgers_db;
use database burgers_db;
create table burgers
(
id int not null auto_increment,
burger_name varchar(200) not null,
devoured boolean,
primary key(id)
);
| true |
0fc9cf5016e57dacd7ec66eb7a094a25c138aebd | SQL | memanuel/kepler-sieve | /sql/02-create-table/064-DetectionTime.sql | UTF-8 | 3,675 | 3.75 | 4 | [] | no_license | CREATE OR REPLACE TABLE KS.DetectionTime(
DetectionTimeID INT NOT NULL PRIMARY KEY
COMMENT "Integer ID for this detection time",
-- Keys to other time related tables
HiResTimeID INT NOT NULL
COMMENT "Foreign key to HiResTime table",
-- Time filds
mjd DOUBLE NOT NULL UNIQUE
... | true |
27e0d79c8b13385061fe2ea7ef56e7534cecfc9a | SQL | kploskonka/Highschool-Database-System | /views/endangered-students.sql | UTF-8 | 535 | 3.859375 | 4 | [] | no_license | --pokazuje studentów z zagrożeniem wraz z przedmiotem z którego to zagrożenie występuje
--jako zagrożenie uznaje średnią poniżej 2.0
CREATE VIEW endangered_students AS
SELECT S.FirstName [Imię], S.LastName [Nazwisko],C.CourseName [Przedmiot], ROUND(AVG(Mark),2) [srednia]
FROM ExamResults ER
JOIN Students S... | true |
ee4b500c701abe546456cfeca6cca82f2a1eed99 | SQL | meugeniatr/TestWe_Movies | /datas/test-cinemahd-datas.sql | UTF-8 | 8,777 | 2.921875 | 3 | [
"MIT"
] | permissive | --
-- Database: `test_cinemahd`
--
--
-- Dumping data for table `Movie`
--
INSERT INTO `Movie` (`id`, `title`, `duration`)
VALUES
(1, 'Miss Peregrine et les enfants particuliers', 127),
(2, 'Deepwater' , 107),
(3, 'Kubo et l\'armure magique' , 102),
(... | true |
2639bceb8255d94d3a56f18bb1054b80f72f9338 | SQL | SteveSerjeant/COMP2001 | /Unit 2 SQL code.sql | UTF-8 | 3,180 | 4.09375 | 4 | [] | no_license | IF OBJECT_ID(N'dbo.Orders', N'U') IS NOT NULL
BEGIN
DROP TABLE dbo.Orders;
END
CREATE TABLE dbo.Orders
(
OrderId INT NOT NULL,
OrderDate Date NOT NULL,
Customer NVARCHAR(5) NOT NULL,
CONSTRAINT pk_Orders PRIMARY KEY (OrderID)
);
INSERT INTO dbo.Orders (OrderId, OrderDate, Customer)
VA... | true |
0ed1252091d0f771e8c26867e73ef6fe2d99ec46 | SQL | nortonlifelock/aegis | /init/migrations/1560977248_adding_json_auth_column.up.sql | UTF-8 | 963 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | ALTER TABLE `SourceConfig` ADD COLUMN AuthInfo JSON NOT NULL AFTER `Port`;
UPDATE `SourceConfig` SET SourceConfig.AuthInfo = JSON_OBJECT(
"PrivateKey",
SourceConfig.PrivateKey,
"ConsumerKey",
SourceConfig.ConsumerKey,
"Token",
SourceConfig.Token
) WHERE SourceConfig.... | true |
de9b3edb30803259d089484533d370e6fba88d0a | SQL | rakibroo/rakib | /cash_count.sql | UTF-8 | 6,912 | 3.1875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jul 23, 2019 at 07:29 PM
-- Server version: 10.1.36-MariaDB
-- PHP Version: 7.2.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... | true |
2e3a27406c3375b9b526a4b4ab1ddde6fc0a8602 | SQL | Maisa-ah/HalalNYC | /halal.sql | UTF-8 | 4,806 | 2.953125 | 3 | [] | no_license | -- This is an updated version of MariaDB table as of June, 2023
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Dec 15, 2020 at 06:34 AM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.4.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;... | true |
61b6f6c7a2f11a17137e8c9ca2ae37b23b9d48a3 | SQL | orcascope/spark-query-log-plugin | /src/test/resources/query-hash-tests/inputs/groupby.sql | UTF-8 | 868 | 2.96875 | 3 | [
"Apache-2.0"
] | permissive | SELECT k AS k, COUNT(v) AS v FROM VALUES (1, 1) t(k, v) GROUP BY k;
SELECT k AS key, COUNT(v) AS v FROM VALUES (1, 1) t(k, v) GROUP BY key;
SELECT k AS k, COUNT(v) AS v FROM VALUES (1, 1) t(v, k) GROUP BY k;
SELECT k, COUNT(v) AS v FROM VALUES (1, 1) t(k, v) GROUP BY k;
SELECT k, SUM(v) AS v FROM VALUES (1, 1) t(k,... | true |
eb03b709253620abc78a31bd9ae2565723d1d24e | SQL | medy13/dbshell | /normal_shell/DCG_WORKFLOW.sql | UTF-8 | 685 | 2.796875 | 3 | [] | no_license | \echo ------------------DCG_WORKFLOW----------------
select now();
\timing
insert into DCG_WORKFLOW_GPTMP (CMD_TYPE,DCG_NO, STEP_ID, CREATE_DATE) select CMD_TYPE,DCG_NO, STEP_ID, CREATE_DATE from DCG_WORKFLOW_INC_EXT;
delete from DCG_WORKFLOW using DCG_WORKFLOW_GPTMP where DCG_WORKFLOW_GPTMP.DCG_NO=DCG_WORKFLOW.DCG_NO... | true |
53f7141c30b0d4f641b63b4b20bf6390a3a18409 | SQL | MuhammadRido/Form-CI | /Application/db/ci_crud.sql | UTF-8 | 1,854 | 3.0625 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.8.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: May 17, 2018 at 05:35 AM
-- Server version: 5.7.9
-- PHP Version: 7.2.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER... | true |
c686d8484e95b8f393da07bf60134d10c913b421 | SQL | darekAsz/sql_przychodnia | /sql/gotowysql.sql | WINDOWS-1250 | 9,165 | 3.171875 | 3 | [] | no_license | CREATE TABLE Pracownicy ( NumerPWZ CHAR(7) PRIMARY KEY CHECK ( NumerPWZ LIKE '[1-9][0-9][0-9][0-9][0-9][0-9][0-9]' ),
Nazwisko VARCHAR(20) NOT NULL,
Imie VARCHAR (20) NOT NULL )
CREATE TABLE Diagnosci (NumerPWZ CHAR(7) PRIMARY KEY REFERENCES Pracownicy ,
NumerTel CHAR(9) UNIQUE CHECK( NumerTel LIKE... | true |
f0a952c422ca5f3820df449976a8b96d69d9e3f3 | SQL | google/perfetto | /src/trace_processor/metrics/sql/android/android_multiuser_populator.sql | UTF-8 | 4,255 | 4.1875 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | --
-- Copyright 2021 The Android Open Source Project
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applica... | true |
15e097fb7b6c0d864347dae164c1308e3d676491 | SQL | phoavn96/ASM64 | /seed/generate/asmspring.sql | UTF-8 | 3,282 | 3.09375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 04, 2021 at 04:37 AM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... | true |
6438584ed59817b153f0a9c94ee839e3b397ec5d | SQL | tomarovschenko/MainAcadProject | /src/main/resources/db/migration/V1_1__create_db.sql | UTF-8 | 5,099 | 3.484375 | 3 | [] | no_license | CREATE TABLE `сontract`(
`id` INT ZEROFILL UNSIGNED NOT NULL AUTO_INCREMENT,
`сontract` VARCHAR(45) NOT NULL,
`date` DATE NOT NULL,
`аmount` DOUBLE NOT NULL,
`student_id` INT UNSIGNED NOT NULL,
PRIMARY KEY (`id`),
UNIQUE INDEX `id_UNIQUE` (`id` ASC),
UNIQUE INDEX `сontract_UNIQUE` (`сontract` ASC));
CR... | true |
99e3787c16dc26c73ba187c67ca701146755f433 | SQL | blackseabass/database | /lab_09_02.sql | UTF-8 | 154 | 3.3125 | 3 | [] | no_license | SELECT country_id, country_name
FROM countries
MINUS
SElECT country_id, country_name
FROM countries
NATURAL JOIN locations
NATURAL JOIN departments; | true |
66ac246d7832bdeabd2178b9fd87e5e254a2c8eb | SQL | spicerg1978/orapy | /sql/buffer_cache_usage1.sql | UTF-8 | 920 | 3.578125 | 4 | [] | no_license | column c1 heading "Object|Name" format a30
column c2 heading "Object|Type" format a12
column c3 heading "Number of|Blocks" format 999,999,999,999
column c4 heading "Percentage|of object|data blocks|in Buffer" format 999
select
object_name c1,
object_type c2,
num_blocks c3,
... | true |
27c0781ebfa26af1c8155c12f4b95b5de67b713b | SQL | VSX13/PraktikumVI | /dataku.sql | UTF-8 | 1,208 | 2.65625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 11 Mar 2020 pada 15.52
-- Versi server: 10.1.31-MariaDB
-- Versi PHP: 7.2.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARA... | true |
dde353995af2cac45adbb330cbbd42cc13008756 | SQL | q5562811/YGW | /sql/ygw.sql | UTF-8 | 32,322 | 2.8125 | 3 | [] | no_license | /*
Navicat MySQL Data Transfer
Source Server : html1812
Source Server Version : 50714
Source Host : localhost:3306
Source Database : ygw
Target Server Type : MYSQL
Target Server Version : 50714
File Encoding : 65001
Date: 2019-03-27 20:40:17
*/
SET FOREIGN_KEY_CHECKS=0;
-- ------... | true |
fb06c8e9086e138527260f034e414e0d6215b44e | SQL | iqbaleff214/jam-masjid | /database/db_masjid.sql | UTF-8 | 8,747 | 2.734375 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Nov 06, 2020 at 03:56 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
5a2937837aee71765e0ff187a39665d1e9ad4e24 | SQL | RobertLRead/openFEC | /data/sql_updates/create_candidate_detail_vw.sql | UTF-8 | 2,290 | 3.359375 | 3 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | drop materialized view if exists ofec_candidate_detail_vw;
create materialized view ofec_candidate_detail_vw as
select
dimcandproperties.candproperties_sk as properties_key,
dimcand.cand_sk as candidate_key,
dimcand.cand_id as candidate_id,
max(dimcandstatusici.election_yr) as active_through,
array_... | true |
04f01dd55d65c91ea0ddaa84331f26ba9bfd9cc5 | SQL | Tomuchiharo/Chatbox | /Chatbox.sql | UTF-8 | 6,084 | 3.078125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2.1
-- http://www.phpmyadmin.net
--
-- Client : localhost
-- Généré le : Mar 07 Mai 2019 à 11:25
-- Version du serveur : 5.7.26-0ubuntu0.16.04.1
-- Version de PHP : 7.0.33-0ubuntu0.16.04.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!4010... | true |
074f1961facc1ed728bc46a2587b60540cba06a0 | SQL | vjcardoza2011/burger | /db/schema.sql | UTF-8 | 287 | 3.140625 | 3 | [] | no_license | -- Create the database
CREATE DATABASE burgers_db;
USE `burgers_db`;
-- Create the table burgers
CREATE TABLE `burgers`
(
`id` INT NOT NULL AUTO_INCREMENT,
`burger_name` VARCHAR(255),
`devoured` BOOLEAN DEFAULT false,
`date` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (id)
); | true |
14b50e35f24ad4c40f6e1e7734b62c0a56f5fe67 | SQL | KamilGanczarski/Order-form | /vendor/Database/sql/db.sql | UTF-8 | 4,896 | 3.109375 | 3 | [
"MIT"
] | permissive | DROP DATABASE IF EXISTS Order_form;
CREATE DATABASE Order_form DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_polish_ci;
USE Order_form;
-- Table structure for table Coupon_code
DROP TABLE IF EXISTS Coupon_code;
CREATE TABLE Coupon_code (
`id` INT(3) NOT NULL AUTO_INCREMENT,
`active` tinyint(1) NOT NULL,
`... | true |
81f6d6ec75cd3c5e77732ac8f444c436aef33955 | SQL | pentaled/todo | /queries.sql | UTF-8 | 313 | 2.75 | 3 | [] | no_license | SELECT * FROM todo.tasks WHERE todo.tasks.status = "?" AND todo.tasks.task = "?";
INSERT INTO todo.tasks (todo.tasks.task)
VALUES ("Meeting at 4pm")
UPDATE todo.tasks
SET todo.tasks.task = "Buy Chocolate", todo.tasks.status = "DONE"
WHERE todo.tasks.id = '3C';
DELETE FROM todo.tasks WHERE (todo.tasks.id = '3C'); | true |
b4c34b1d512a9ee2d210ab05ae4cf9c7bdd13c71 | SQL | natkramarz/cinema_database_system | /sample_queries.sql | UTF-8 | 689 | 3.96875 | 4 | [] | no_license | SELECT FirstName, LastName, PostalCode FROM Customers
SELECT FirstName, LastName FROM Employees
SELECT * FROM Screenings WHERE [Date] <= DATEADD(day, 7, GETDATE())
SELECT MovieTitle, [Date] FROM Movies
JOIN Screenings
ON Movies.MovieID = Screenings.MovieID
WHERE [Date] <= DATEADD(day, 7, GETDATE())
SELECT MovieTitl... | true |
db6a93a98bf8336fcf6adf006002f1140a9d72d8 | SQL | ikirmdn/UTS-WS-187006062 | /manutd.sql | UTF-8 | 2,628 | 3.171875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 25 Apr 2021 pada 15.58
-- Versi server: 10.4.18-MariaDB
-- Versi PHP: 8.0.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH... | true |
cb39c9c914c929ae48ac38529c62a3e43e0d82eb | SQL | tunatore/apache-spark | /spark4.sql | UTF-8 | 710 | 2.828125 | 3 | [] | no_license | import org.apache.spark.sql.hive._
//HiveContext supports window functions therefore it is used instead of SqlContext
//if hive context is initialized once the following code could be commented out
val sqlContext = new HiveContext(sc)
val df = sqlContext.read
.format("com.databricks.spark.csv")
.option("header... | true |
75dbbd3348aea3c654bf4e07a9a659e2b2f556b0 | SQL | kaminokyoku/A-Simple-Blog | /database/user_article_comment.sql | UTF-8 | 5,524 | 3.453125 | 3 | [] | no_license | DROP TABLE IF EXISTS comment;
DROP TABLE IF EXISTS article;
DROP TABLE IF EXISTS user;
CREATE TABLE IF NOT EXISTS user
(
userId INT NOT NULL AUTO_INCREMENT,
userName VARCHAR(64) NOT NULL,
birth_year INT NOT NULL,
birth_month INT NOT NULL,
birth_date... | true |
301a60a4aede441c507717689d920375ba41e662 | SQL | sansna/scripts | /sql/daily_stat_match.sql | UTF-8 | 19,068 | 3.6875 | 4 | [] | no_license | --odps sql
--********************************************************************--
--author:wangwentao
--create time:2019-09-15 23:17:10
--********************************************************************--
--#########################有效会话############################
-- effective chat
-- total
INSERT INTO TABLE dn... | true |
8525c4cbb9f8fdfb0fe5edc28eb6430958fd55ef | SQL | ebowen8503/communitythrive | /events.sql | UTF-8 | 569 | 3.453125 | 3 | [] | no_license | /*=============================================
Description: Pantry Events
records date and time of event and the type
Author: Erica Bowen
Date: 11/30/2016
Change History:
=============================================*/
CREATE TABLE pantryEvents
(
eventsID INT PRIMARY KEY NOT NULL,
eventT... | true |
d2a2f751c100ecf05271d175ba1b59e42ccc6ffa | SQL | ChrisMatto/AdvancedWeb | /Dumps/advancedweb_docente.sql | UTF-8 | 2,685 | 2.890625 | 3 | [] | no_license | -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64)
--
-- Host: localhost Database: advancedweb
-- ------------------------------------------------------
-- Server version 5.7.21-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_... | true |
483556df2e6b54f1e341c149c3bdab9b5bcdfd57 | SQL | Alisson-tech/E-commerce_de_Camiseta | /Banco de dados/ecommerce.sql | UTF-8 | 6,126 | 3.328125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Tempo de geração: 09-Mar-2021 às 19:43
-- Versão do servidor: 10.4.14-MariaDB
-- versão do PHP: 7.4.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_C... | true |
dc179e58647a105de6dc102db51a7cba294bf3f7 | SQL | samuelLingMel/trashure | /sql/seed.sql | UTF-8 | 3,710 | 2.5625 | 3 | [] | no_license | -- USERS
insert into users (username, name, email, encrypted_password, lat, long, avatar_url) values ('ben', 'ben johnson', 'ben@home.com', '$2b$10$r8zXFvR6OacAyaU8uEeQIe/pjZwCiKc4MoasuUfXhXrqXk4zgiB/2', -37.8140692, 144.9487768, 'https://qph.fs.quoracdn.net/main-qimg-8d945bbaf167b063040eca16b0c59cd8.webp');
insert i... | true |
5967f21c3838ed45c89801c08e6195cdca279f3c | SQL | silence-do-good/stress-test-Postgres-and-MySQL | /dump/low/day22/select1204.sql | UTF-8 | 398 | 3.65625 | 4 | [] | no_license |
SELECT obs.sensor_id, avg(counts)
FROM (SELECT sensor_id, date_trunc('day', timestamp), count(*) as counts
FROM WiFiAPObservation WHERE timestamp>'2017-11-21T12:04:00Z' AND timestamp<'2017-11-22T12:04:00Z' AND SENSOR_ID = ANY(array['3141_clwa_1300','3142_clwa_2209','wemo_04','3145_clwa_5039','wemo_02'])
... | true |
9edd01ee087fdee1cf5e3d199c317b063a705572 | SQL | jbroadway/todos | /conf/install_mysql.sql | UTF-8 | 162 | 2.578125 | 3 | [] | no_license | create table `todo` (
`id` int not null auto_increment primary key,
`text` char(128) not null,
`done` int not null,
`order` int not null,
index (`order`)
);
| true |
74655ef3a43d2a677cd5d77150fd4bd96fcd6ab6 | SQL | jrjr-randy/backoffice | /sql/proc/update_personal_sponsor_levels.proc.sql | UTF-8 | 4,755 | 4.125 | 4 | [] | no_license | DELIMITER $$
DROP PROCEDURE IF EXISTS `update_personal_sponsor_levels`$$
CREATE PROCEDURE `update_personal_sponsor_levels`(IN in_commission_period_id INT)
BEGIN
SET @commission_period_id = in_commission_period_id;
SET @paid = (SELECT order_status_type_id FROM order_status_types
WHERE NAME = 'paid');
SET @cancelled... | true |
9b74585a0fd447af61a41346ebae656774042d0c | SQL | TheSandDoctor/Add-Commons-Cat | /setup.sql | UTF-8 | 277 | 2.625 | 3 | [] | no_license | CREATE DATABASE commons_task3_run;
use commons_task3_run;
CREATE TABLE `runs` (
`title` TEXT,
`date_added` VARCHAR(255)
);
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON commons_task3_run . * TO 'newuser'@'localhost';
FLUSH PRIVILEGES;
| true |
9914512ae14b82392935c13235f35cfd45316d94 | SQL | brunomairey/CFLMS-SQL-Day01-Bruno-Beniamin | /hospital.sql | UTF-8 | 1,517 | 3.140625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Erstellungszeit: 07. Jul 2020 um 14:09
-- Server-Version: 10.4.13-MariaDB
-- PHP-Version: 7.4.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@... | true |
ddfcdc9b1c50607a51fdacc3d1e7acba23c76029 | SQL | FridaRodriguezPa/sql | /03-modificar-tablas/modificar.sql | UTF-8 | 246 | 2.546875 | 3 | [] | no_license | --renombrar
ALTER TABLE usuarios RENAME TO users;
--Cambiar el nombre de una columna
ALTER TABLE users CHANGE direccion dir VARCHAR(50);
--Agregar columnas
ALTER TABLE users ADD edad INT NOT NULL;
--Borrar columna
ALTER TABLE users DROP edad; | true |
5f802373ef7189eadc563175738698a61a86dd96 | SQL | kkogovsek/KontrolaTaksijev | /sql_poizvedbe/kontrola.sql | UTF-8 | 1,082 | 2.875 | 3 | [] | no_license | select k.oznaka as 'oznaka',
o.ID_osebe as 'kontrolor',
o.naslov1 as 'naslov1',
o.naslov2 as 'naslov2',
k.metoda as 'metoda',
k.kraj_kontrole as 'kraj_kontrole',
k.datum_kontrole as 'datum_kontrole',
k.datum_izdaje as 'datum_izdaje',
r.ID_rezultat as 'ID_rezultat',
r.Tip_vozila as 'tip_vozila',
r.Registrska_stev... | true |
baaa4245b6e1ae790cf1c5ccb633d2125702a172 | SQL | PeterBanning/ETSIcode | /2 Segundo/BD/Practica 3/rallyCompletado.sql | UTF-8 | 853 | 3.046875 | 3 | [] | no_license | create or replace FUNCTION rallyCompletado (a_rally RALLY.nombre%TYPE, a_piloto PILOTO.nombrep%TYPE) RETURN NUMBER IS
cod_piloto PILOTO.codPiloto%TYPE;
cod_rally RALLY.codRally%TYPE;
existe INTEGER;
nTramos_total INTEGER;
nTramos_corre INTEGER;
BEGIN
SELECT COUNT(*) INTO existe FROM PILOTO WHERE nombreP=a_p... | true |
38ea541180a420f47ef331080af346c799ac7105 | SQL | gabyrlsilva/Mysql | /Atividade_Lapisco/Consulta.sql | UTF-8 | 926 | 3.890625 | 4 | [] | no_license | select * from tbNovela where horario_exibicao is null; #Questão 2
select * from tbAtor where cidade_ator like 'M%'; #Questão 3
##############Questão_4#################
select a.codigo_ator, p.codigo_personagem, p.nome_companhia, p.idade_persongem, p.situacao_financeira_personagem
from tbAtor as a
inner join tbPe... | true |
b2b0b97763ce85e63d17fde19107b6ffa3d73ff1 | SQL | Surfboy678/Change-management | /src/main/resources/sql/schema.sql | UTF-8 | 1,186 | 3.609375 | 4 | [] | no_license |
CREATE TABLE document(
id SERIAL NOT NULL ,
type varchar(100) NULL,
PRIMARY KEY (id)
);
CREATE TABLE question(
id SERIAL NOT NULL ,
content varchar(500) NULL,
answer_id INT NULL,
PRIMARY KEY (id)
);
CREATE TABLE document_questions(
id_document INT NOT NULL ,
id_question INT NOT NULL ,
PRIMARY KEY (id_document, id_... | true |
54f3bd082e2bddd7b7aa0cf38d8675e036d91841 | SQL | bellmit/origin | /family_order/sql/.svn/pristine/54/54f3bd082e2bddd7b7aa0cf38d8675e036d91841.svn-base | UTF-8 | 1,621 | 3.53125 | 4 | [] | no_license | SELECT trade_staff_id staff_id,
F_SYS_GETCODENAME('STAFF_ID',A.FEE_STAFF_ID,NULL,NULL) STAFF_NAME,
F_SYS_GETCODENAME('DEPART_ID',A.TRADE_DEPART_ID,NULL,NULL) DEPART_NAME,
A.TRADE_ID,
F_SYS_GETCODENAME('TRADE_TYPE_CODE',A.TRADE_TYPE_CODE,NULL,NULL) TRADE_TYPE,
A.SERIAL_NUMBER,
A... | true |
69724d18a5308951d40e5c97182d30ad5652c667 | SQL | aaronsheldon/postgresql_measure_types | /source/create_sort.sql | UTF-8 | 3,037 | 4.0625 | 4 | [
"PostgreSQL"
] | permissive | ----------------------------
-- Generic measure spaces --
----------------------------
CREATE OR REPLACE FUNCTION _sort(_measure anyarray) RETURNS TABLE
(
_key_index BIGINT,
_key_ordinal BIGINT,
_value_distinct BOOLEAN
)
LANGUAGE sql IMMUTABLE AS
$body$
/*
* Sort Array Subscripts in Topological Order
*
* Given ... | true |
c60c954f790b1dd2cd9a5842734f1937d5bfe2c2 | SQL | tautvydascoding/2017-09-kurso-medziaga | /uzduotys/MAMP/PROJEKTAI/Julija_projektas_isitaskyk/issitaskyk .sql | UTF-8 | 3,154 | 2.953125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 02, 2017 at 11:16 AM
-- Server version: 5.7.14
-- PHP Version: 7.0.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */... | true |
48c2db43c4000d9657facada1af667232fd1d87b | SQL | JoaoGabrielOliveira/AkinWinkel | /WindowsFormsApplication1/Classe/SQL Table.sql | UTF-8 | 959 | 3.171875 | 3 | [] | no_license | CREATE TABLE Contas (
email VARCHAR(80) NOT NULL PRIMARY KEY,
senha VARCHAR(32) NOT NULL,
nome VARCHAR(60) NOT NULL,
tipoConta CHAR(4) NOT NULL, --admi user
foto TEXT
)
CREATE TABLE Produtos (
Codigo INT NOT NULL PRIMARY KEY IDENTITY,
Nome VARCHAR(70) NOT NULL,
Preço DECIMAL(7,2) ... | true |
124d4c3fffb84f73e7159608508abe143948f53d | SQL | cursos-udemy/spring-facturacion-jwt | /src/main/resources/sql/create-tables-login.sql | UTF-8 | 1,010 | 3.640625 | 4 | [] | no_license | CREATE TABLE `udemy_springboot`.`user` (
`id` INT NOT NULL AUTO_INCREMENT,
`username` VARCHAR(45) NOT NULL,
`password` VARCHAR(60) NOT NULL,
`enabled` TINYINT(1) NOT NULL DEFAULT 1,
PRIMARY KEY (`id`),
UNIQUE INDEX `username_UNIQUE` (`username` ASC));
CREATE TABLE `udemy_springboot`.`authority` (
`id`... | true |
885193fde353f2fca9ca3db122bd3f8fce36d0fd | SQL | sagunsharma/emr | /fundzforus-master/sql/tables.sql | UTF-8 | 15,939 | 3.078125 | 3 | [] | no_license | DROP TABLE IF EXISTS `fundzforus`.`TBL_USER_MESSAGES`;
DROP TABLE IF EXISTS `fundzforus`.`TBL_PROGRAM_BOOKINGS`;
DROP TABLE IF EXISTS `fundzforus`.`TBL_PROGRAM`;
DROP TABLE IF EXISTS `fundzforus`.`TBL_USER_VIDEO_COMMENT`;
DROP TABLE IF EXISTS `fundzforus`.`TBL_USER_VIDEO`;
DROP TABLE IF EXISTS `fundzforus`.`TBL_N... | true |
bf9bd524dccb004210d3a4d51dfccf431232b2f9 | SQL | choria-io/vagrant-demo | /environments/production/modules/mcollective_agent_package/files/mcollective/agent/package.ddl | UTF-8 | 7,820 | 3.234375 | 3 | [
"Apache-2.0"
] | permissive | metadata :name => "package",
:description => "Manage Operating System Packages",
:author => "R.I.Pienaar <rip@devco.net>",
:license => "Apache-2.0",
:version => "5.3.0",
:url => "https://github.com/choria-plugins/package-agent",
... | true |
78f3a9042676574bc9bcae4ae57fda1f1d2e14c9 | SQL | CUBRID/cubrid-testcases | /sql/_06_manipulation/_01_select/_001_inner_join/cases/1059.sql | UTF-8 | 2,784 | 3.703125 | 4 | [
"BSD-3-Clause"
] | permissive | -- This testcase use modified Oracle samples. See below for the license:
-- Copyright (c) 2015 Oracle
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including witho... | true |
b447a65b99f9f9ddb272cd88342a82996b2c5ce9 | SQL | jfifer/dataguy | /StoredProcedures/getTop5CustomersSpDrillIn.sql | UTF-8 | 2,588 | 3.625 | 4 | [] | no_license | CREATE DEFINER=`root`@`localhost` PROCEDURE `getTop5CustomersSpDrillIn`(in_resellerId INT(11))
BEGIN
DECLARE done BOOLEAN DEFAULT FALSE;
DECLARE didCount, userCount, extCount, v_mailCount,v_aaCount, v_customerId, v_confCount INT;
DECLARE v_companyName VARCHAR(155);
DECLARE getDidCounts CURSOR
FOR SELECT c.customer... | true |
63f7df4317d47c86c0bc53b2acefa88bd891c9a3 | SQL | shimaomao/biao | /挖矿相关表结构/js_plat_user_coin_balancechange.sql | UTF-8 | 1,588 | 3.140625 | 3 | [] | no_license | /*
Navicat MySQL Data Transfer
Source Server : TEST
Source Server Version : 50725
Source Host : rm-j6c6mdh161ts3o52bco.mysql.rds.aliyuncs.com:3306
Source Database : bbex
Target Server Type : MYSQL
Target Server Version : 50725
File Encoding : 65001
Date: 2019-07-28 21:31:20
*/
SET... | true |
c3864dcc418ef10f90c37512e8898e9b890fc1a5 | SQL | mpar1/CS425 | /medclinic.sql | UTF-8 | 2,298 | 4.21875 | 4 | [] | no_license | create type privilege as ENUM('admin', 'scheduler', 'medicalStaff', 'patient');
create type category as ENUM('Lab', 'MRI', 'Xray', 'Office Visit');
create type jobtype as ENUM('Medical Staff', 'Admin', 'Scheduler');
create index timestamps on login(LoginTime,LogoutTime);
create index fullname on patient(fname,lname... | true |
5c1d389f0d4084585283e9d54e12fd0ad26a769b | SQL | aliz-riaz/complain21 | /sql/ict_db.sql | UTF-8 | 3,209 | 3 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 08, 2021 at 08:32 AM
-- Server version: 10.4.16-MariaDB
-- PHP Version: 7.4.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... | true |
dbc7b799d555424605ac65493fc101d81778a039 | SQL | Belzee01/BD2_project | /SQLQuery3.sql | UTF-8 | 108 | 2.625 | 3 | [] | no_license | select * from Production.TransactionHistory ORDER BY (SELECT NULL)
OFFSET 10 ROWS FETCH NEXT 13 ROWS ONLY;
| true |
76df72e1c1d59c392d17f42e124f76a6b352f6fa | SQL | loughrc/Linux_Distros | /sql_queries_for_database_creation.sql | UTF-8 | 5,742 | 3.5625 | 4 | [] | no_license | /* Linux Distros Database Creation
The data origin is https://distrowatch.com
This data is used to populate the Distros and Desktop_Environments tables
The Computers table is populated with data about my own computers,
and has two columns that are foreign keys referencing the primary keys of each of the other two tabl... | true |
ce15e706c4dcea90e6d47c44b2a226c669feba33 | SQL | antessio/xp-socialnetwork | /src/test/resources/init_db.sql | UTF-8 | 1,638 | 3.859375 | 4 | [
"MIT"
] | permissive | create table user(
username varchar(255),
created_at datetime not null,
primary key (username)
);
create table user_post(
id bigint primary key auto_increment,
username varchar(255),
content varchar(255) not null,
created datetime not null,
foreign key (username) references user(username)
);
cr... | true |
b79f30968e3f97129d7789426e2b596e7223cdf6 | SQL | cdesmarais/WebDB-Test | /WebDB/StoredProcedures/Common/dbo.DNNLMapGetNameToFoodTypeGeneric.PRC | UTF-8 | 975 | 3.734375 | 4 | [] | no_license | IF EXISTS (SELECT * FROM dbo.SysObjects WHERE Id = Object_Id(N'[dbo].[DNNLMapGetNameToFoodTypeGeneric]') AND ObjectProperty(id, N'IsProcedure') = 1)
DROP PROCEDURE [dbo].[DNNLMapGetNameToFoodTypeGeneric]
GO
CREATE PROCEDURE dbo.DNNLMapGetNameToFoodTypeGeneric
(
@MapFileGenDateTime datetime,
@DomainId int ... | true |
5189091deff2519788a96f67ddd7cb1632eaed99 | SQL | liubo404/demo | /j17/daily_report.sql | UTF-8 | 5,147 | 3.28125 | 3 | [] | no_license | DROP TABLE IF EXISTS wf_report_daily;
CREATE TABLE wf_report_daily (
id bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增主键',
report_date date NOT NULL DEFAULT '1970-01-01' COMMENT '日期',
batch_no varchar(128) NOT NULL DEFAULT '' COMMENT '生产批号',
process_name varchar(128) NOT NULL DEFAULT '' COMMEN... | true |
a12c35e6b5c7aa2fbf9bb578787ac39bb5697b18 | SQL | ajollymarlier/University_Code | /csc343/a2/q2.sql | UTF-8 | 3,620 | 3.96875 | 4 | [] | no_license | /* get scheduled and real times with locations and flight_id */
create view flightinfo as
select f.id flight_id, s_dep, s_arv, d.datetime r_dep, a.datetime r_arv, air1.country out_country, air2.country in_country, b.price, b.seat_class, f.airline, airl.name
from flight f inner join departure d on f.id = d.flight_id
... | true |
707fa3059172951118705b98b209b3dda7966973 | SQL | skan/training_sql | /helloSQL/first_attemps.sql | UTF-8 | 1,703 | 3.71875 | 4 | [] | no_license | SELECT animal.nom, race.nom as race_animal, pere_race.nom as race_du_pere, mere_race.nom as race_de_la_mere, espece.nom_courant as espece_animal
FROM animal
INNER JOIN animal as pere
ON animal.pere_id = pere.id
INNER JOIN race as pere_race
ON pere.race_id = pere_race.id
INNER JOIN animal as mere
ON anima... | true |
0e007a25c4cd9edb95ec633c52cc477927921160 | SQL | SkillsFundingAgency/das-providerpayments | /src/PeriodEnd/PaymentsDue/DeployPaymentsDue/sql/MigrationScripts/2_PeriodEnd.Deds.PaymentsDue.Add_Columns.sql | UTF-8 | 364 | 3.546875 | 4 | [
"MIT"
] | permissive |
IF NOT EXISTS (
SELECT null FROM sys.columns c
INNER JOIN sys.tables t
ON c.object_id = t.object_id
INNER JOIN sys.schemas s
ON t.schema_id = s.schema_id
WHERE t.name='RequiredPayments'
AND s.name='PaymentsDue'
AND c.name='LearnAimRef'
)
BEGIN
ALTER TABLE PaymentsDue.RequiredPayments
Add LearnAimRef var... | true |
5d04228c8a70c705c139a07dbe0e1cd695ae9ce1 | SQL | tuyet48/happybuy | /happybuy/happybuy.sql | UTF-8 | 19,319 | 2.828125 | 3 | [
"MIT"
] | permissive | INSERT INTO USERS (id, username, password, first_name, last_name, email, phone_number, enabled) VALUES (1, 'user', '$2a$04$Vbug2lwwJGrvUXTj6z7ff.97IzVBkrJ1XfApfGNl.Z695zqcnPYra', 'Fan', 'Jin', 'user@example.com', '+1234567890', true);
INSERT INTO USERS (id, username, password, first_name, last_name, email, phone_number... | true |
fdfbc28136e3cefbfaf18af0af8f62b8dc877c10 | SQL | billinkc/SSMSTemplates | /45NewTSQLFeatures/14_CrossApply.sql | UTF-8 | 469 | 3.671875 | 4 | [
"MIT"
] | permissive | --CROSS APPLY
--http://technet.microsoft.com/en-us/library/ms175156.aspx
--Uses a table valued function for each row in outer query.
--Similar to INNER JOIN in that only returns rows if fn has rows
-- Generate 20 numbers in outer query,
-- see that only the matches are returned
SELECT
A.number AS original
, ... | true |
3d9aa9c12e615f80cb8a95ad64054cc9adc3508d | SQL | kmjbebe0701/work_spring | /Spring09JdbcTemplate02/sql/job.sql | UTF-8 | 158 | 2.609375 | 3 | [] | no_license | DROP TABLE job;
CREATE TABLE job (
job_id VARCHAR(10) PRIMARY KEY,
job_title VARCHAR(10),
max_salary INT,
min_salary INT
);
SELECT * FROM job; | true |
25df6a85aa4ade09d94babb68560b13e75d30962 | SQL | yeastrc/msdapl | /MS_LIBRARY/schema/nrseqSQL.sql | UTF-8 | 832 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | DROP DATABASE IF EXISTS nrseq_test;
CREATE DATABASE nrseq_test;
USE nrseq_test;
CREATE TABLE tblDatabase (
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255),
description VARCHAR(255)
);
CREATE TABLE tblProteinSequence (
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
sequence ... | true |
a7e0faf58306122f62b881254e95ebc9833e1f2b | SQL | MikyWang/generate-sql | /file/insert.sql | UTF-8 | 131,361 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | insert into yw_debit_dict values('','','000000','交易成功');
insert into yw_debit_dict values('','','000009','账户非法');
insert into yw_debit_dict values('','','000014','未找到此卡号对应的账户记录');
insert into yw_debit_dict values('','','000045','未找到公司编号');
insert into yw_debit_dict values('','','000050','卡号非法');
insert into yw_debit_di... | true |
1485f2fff5e1c28141b05e51bfc59bf2ae2f3522 | SQL | mangixs/tp-administrator | /tp.sql | UTF-8 | 11,100 | 2.828125 | 3 | [
"Apache-2.0"
] | permissive | /*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50718
Source Host : localhost:3306
Source Database : tp
Target Server Type : MYSQL
Target Server Version : 50718
File Encoding : 65001
Date: 2017-11-07 17:59:46
*/
SET FOREIGN_KEY_CHECKS=0;
-- ------... | true |
43bd9b45a5aaa775299fa7f518a071d9eea2703a | SQL | bluelinemango/mango | /8farvardin95.sql | UTF-8 | 208,201 | 2.703125 | 3 | [
"MIT"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.4.14.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Mar 27, 2016 at 04:11 PM
-- Server version: 5.6.21
-- PHP Version: 5.6.3
SET FOREIGN_KEY_CHECKS=0;
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT... | true |
a595c6ec9bd4245dc36d43a21603c751398377e3 | SQL | jim60105/PMS5003TAirQuality | /SQLStructure/air.sql | UTF-8 | 7,267 | 3.078125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- 主機: 127.0.0.1
-- 產生時間: 2018-06-12 11:39:19
-- 伺服器版本: 10.1.30-MariaDB
-- PHP 版本: 7.1.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACT... | true |
19c1289a02c669504590a8ed2e5dd4681783d33e | SQL | kuwanbarnes/database-exercises | /subqueries_exercises.sql | UTF-8 | 697 | 3.796875 | 4 | [] | no_license | USE employees;
SELECT first_name, last_name, birth_date,hire_date
FROM employees
WHERE hire_date = '1990-10-22';
SELECT *
FROM employees
WHERE hire_date IN (
SELECT hire_date
FROM employees
WHERE emp_no = 101010
);
---------
SELECT title,COUNT(title)
FROM titles
WHERE emp_no IN (
SELECT emp_no
... | true |
34aa322289eec1f948df1a0e3b63bd56c5a8e8bb | SQL | trajan4k6/acv | /models/l20_marts/delighted/delighted_dimension_browser.sql | UTF-8 | 321 | 2.5625 | 3 | [] | no_license | {{ config(materialized='table') }}
SELECT
{{ dbt_utils.surrogate_key(
[6,'n.browser']
) }} AS dimension_browser_key,
browser,
6 AS datasource_id
FROM
{{ ref('stg_delighted_net_promoter_score') }} n
WHERE
browser IS NOT NULL
GROUP BY browse... | true |
18d4a285d361c31e31c6cb748f3becd52e458afe | SQL | acarop/finalInteraccionHombreMaquina | /YourWebsite/sql/yourwebsite.sql | UTF-8 | 1,702 | 2.890625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1:3306
-- Tiempo de generación: 14-12-2020 a las 22:01:22
-- Versión del servidor: 5.7.23
-- Versión de PHP: 7.2.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "... | true |
1c7ff74ae3ffa3f4d604110db9b06762806fe1ff | SQL | mikestevenson86/SQL-Repository | /Mike S Queries/Archives/00 Archive 2014/05 May/Data Audit Report.sql | UTF-8 | 2,297 | 2.671875 | 3 | [] | no_license | SELECT
l.id [Salesforce ID],
l.[status] [Prospect Status],
IsNull(l.Suspended_closed_reason__c,'No Summary') [Status Summary],
case when IDG_FK__c is not null then 'IDG' when THL_FK__c is not null then 'Thompson' else 'Neither' end Source,
bdm.name [BDM],
IsNull(l.OutCode__c,'No Postcode') AreaCode,
case when l.SIC200... | true |
5368746f1469223f17b951d6e1a42d539b68f57f | SQL | gitprojectjockey/DatabaseScripts | /SQL/StoredProcedures/prc_ClientPortal_GetMessageAttachment.PRC | UTF-8 | 616 | 3.171875 | 3 | [] | no_license | SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF EXISTS (SELECT *
FROM sys.objects
WHERE object_id = OBJECT_ID(N'[dbo].[prc_ClientPortal_GetMessageAttachment]') AND type in (N'P'))
DROP PROCEDURE [dbo].[prc_ClientPortal_GetMessageAttachment]
GO
CREATE PROC prc_ClientPortal_GetMessageAtt... | true |
8a7563dcdc02b071976f6041a30cbc3ff3dac731 | SQL | PulakithaRapolu/CSE-Automation | /Room Booking/test.sql | UTF-8 | 5,704 | 2.859375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 29, 2020 at 08:19 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
b4622a59b180b2160c4db80e062f46b6ad70d71e | SQL | soiqualang/php_live_inline_grid_by_soiqualang | /old/t2/db/test.sql | UTF-8 | 1,499 | 3.328125 | 3 | [] | no_license | -- Adminer 4.6.3 MySQL dump
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DROP TABLE IF EXISTS `posts`;
CREATE TABLE `posts` (
`id` int(8) NOT NULL,
`post_title` varchar(255) NOT NULL,
`description` text NOT NULL,
`post_at` date DEFAULT NULL
) EN... | true |
28984cd342971377ccffc9d3a5c38bbca6fb3170 | SQL | CristyCarmona/Project_FoodAnalysis | /Project2/ETL/table_schema.sql | UTF-8 | 1,235 | 3.65625 | 4 | [] | no_license | -- CREATE TABLES
CREATE TABLE essential_nutrient_group (
id_essengroup SERIAL PRIMARY KEY,
group_name VARCHAR(100) NOT NULL);
SELECT * FROM essential_nutrient_group;
CREATE TABLE food_category (
id_category SERIAL PRIMARY KEY,
desc_category VARCHAR(100) NOT NULL);
SELECT * FROM food_category;
CREATE TABLE esse... | true |
d75cb7563a20db31dc005c378bbaaff012c0018f | SQL | todak-sun/outmoongram | /etc/generate_test_data.sql | UTF-8 | 2,213 | 2.828125 | 3 | [] | no_license | --------테스트 데이터 생성쿼리
--유저
INSERT
INTO
OUTMOON_USER(
USER_NAME, PASSWORD, NICK_NAME, REGISTERED_AT, UPDATED_AT
)
VALUES(
'tjsdydwn@gmail.com', '1234', 'todak', now(), now()
);
INSERT
INTO
OUTMOON_USER(
USER_NAME, PASSWORD, NICK_NAME, REGISTERED_AT, UPDATED_AT
)
VALUES(
'yjsun@gntsolution.com', '1234', 'yon... | true |
054faff430c4796491c2d122532b53f03ea3c5a9 | SQL | s6fikass/BCD-UI | /Server/wellKnownBindingSets/bcd_db_properties.sql | UTF-8 | 1,254 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | /*
Copyright 2010-2017 BusinessCode GmbH, Germany
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | true |
2b2975e616206514d54d2d972a98c171e0086a74 | SQL | SterinGM/Bot-test | /dump.sql | UTF-8 | 631 | 3.578125 | 4 | [] | no_license | CREATE TABLE public.users
(
id SERIAL NOT NULL PRIMARY KEY,
login VARCHAR(255) NOT NULL,
password VARCHAR(255) NOT NULL,
balance BIGINT DEFAULT 0 NOT NULL,
session_id VARCHAR(32) DEFAULT NULL
);
CREATE UNIQUE INDEX user_login_uindex ON public.users (login);
CREATE TABLE transactions
(
id SERIAL NOT NULL PRIMARY... | true |
815dc529e860a6e21ae915e6871d0234a0f3ec8d | SQL | hristopanev/java---fundamentals | /Databases Basics - MySQL/Exercises/Functions Triggers And Transactions/10. Future Value Function.sql | UTF-8 | 274 | 2.640625 | 3 | [] | no_license | DELIMITER $$
CREATE FUNCTION ufn_calculate_future_value (initial_sum DECIMAL(19,4),
interest_rate DOUBLE, years INT)
RETURNS DOUBLE
BEGIN
DECLARE output DOUBLE;
SET output := initial_sum * POW((1 + interest_rate), years);
RETURN output;
END $$
DELIMITER ;
| true |
c1fdfba56527820f1e5d1676df0fa2673af0d660 | SQL | KavithaVarughese/Dockerized_NodeJS | /db/sql-scripts/CreateTables.sql | UTF-8 | 1,356 | 2.609375 | 3 | [] | no_license | CREATE TABLE `announce`(
`id` int(10) UNSIGNED PRIMARY KEY NOT NULL AUTO_INCREMENT,
`serv_name` varchar(255) DEFAULT NULL,
`serv_type` varchar(255) DEFAULT NULL,
`desc` varchar(255) DEFAULT NULL,
`ipv4` varchar(255) DEFAULT NULL,
`ipv6` varchar(255) DEFAULT NULL,
`host` varchar(255) DEFAULT NULL,
`mac` varchar(... | true |
260a29cbbe23d2af693873459d30264659c4324c | SQL | Allan5829/sql-library-lab-onl01-seng-pt-032320 | /lib/insert.sql | UTF-8 | 1,166 | 3.09375 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] | permissive | INSERT INTO series (title, author_id, subgenre_id) VALUES
("One Piece", 1, 1), ("My Hero Acadaemia", 2, 2);
INSERT INTO subgenres (name) VALUES
("adventure"), ("action");
INSERT INTO authors (name) VALUES
("Oda"), ("Hirokoshi");
INSERT INTO books (title, year, series_id) VALUES
("volume 90", 2018, 1)... | true |
7231734c27fe28aa4453e16cd3e444cc28dc9df1 | SQL | saragutierrez/trabalho | /sqlCorretos/trabalho_usuario.sql | UTF-8 | 2,904 | 3.1875 | 3 | [] | no_license | -- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64)
--
-- Host: localhost Database: trabalho
-- ------------------------------------------------------
-- Server version 5.7.24-0ubuntu0.16.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_S... | true |
28a6fe4674f6704572b1fa99171c51af52ff06cd | SQL | faouzidev/FIVEPOINTSChatBundle | /sql/fivepoints_chat.sql | UTF-8 | 3,862 | 3.171875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Client : 127.0.0.1
-- Généré le : Jeu 05 Juillet 2018 à 11:43
-- Version du serveur : 5.7.14
-- Version de PHP : 5.6.25
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER... | true |
31a9fc19797cd6205cd93cb6d3f23e6a9e628cc4 | SQL | pa-pa-me/zizhujy.com | /Source/ZiZhuJY.Data/InstallMembership.sql | UTF-8 | 1,840 | 3.484375 | 3 | [] | no_license | CREATE TABLE [aspnet_Applications]
(
[ApplicationId] TEXT PRIMARY KEY UNIQUE NOT NULL,
[ApplicationName] TEXT UNIQUE NOT NULL,
[Description] TEXT NULL
);
CREATE TABLE [aspnet_Roles]
(
[RoleId] TEXT PRIMARY KEY UNIQUE NOT NULL,
[RoleName] TEXT NOT NULL,
[LoweredRoleName] TEXT NOT NULL,
[ApplicationId] TEXT NOT ... | true |
076e7d6c91be1f54ff5ccd409b21581be1a655af | SQL | este6an13/oracle-apex-fixed-assets-app | /Final Product/APEX application file/application/pages/page_00014.sql | UTF-8 | 3,621 | 2.65625 | 3 | [] | no_license | prompt --application/pages/page_00014
begin
-- Manifest
-- PAGE: 00014
-- Manifest End
wwv_flow_api.component_begin (
p_version_yyyy_mm_dd=>'2020.03.31'
,p_release=>'20.1.0.00.13'
,p_default_workspace_id=>4191826468060857088
,p_default_application_id=>11918
,p_default_id_offset=>0
,p_default_owner=>'DIQUINTERO... | true |
6ddbd05961d06f7b751eedcc61658dffd0886773 | SQL | iambashir/NetBeans_Project | /Registration_Form/student_data_DB.sql | UTF-8 | 1,741 | 2.78125 | 3 | [] | no_license | -- MySQL Administrator dump 1.4
--
-- ------------------------------------------------------
-- Server version 5.1.73-community
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNE... | true |
559948f84a08b829352b58835a8f815b2855b026 | SQL | muratturkoglu78/IMDBDataset | /Query4.sql | UTF-8 | 596 | 3.859375 | 4 | [] | no_license | --The query shows the famous actor, producer etc. Tom Hanks' acting as a producer in imdb
select n.primaryname,
n.birthyear,
p.category,
p.characters,
t.titletype,
t1.primarytitle,
t.primarytitle,
t.startyear,
t.genres
from
name_basics n (nolock)
inner join title_principals p (nolock) on n.nconst ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.