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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
9ef2b35fcf1afceb8379c65ac87d5b1d4a51f0f8 | SQL | mikelawrencecalleja/bigquery_stackoverflow | /target/run/stackoverflow_project/models/stackoverflow/main_trending_contributors_year.sql | UTF-8 | 895 | 3.8125 | 4 | [] | no_license |
create or replace table `precise-ether-284916`.`dbt_mcalleja`.`main_trending_contributors_year`
OPTIONS()
as (
with badges_index as (
select * from `precise-ether-284916`.`dbt_mcalleja`.`index_badges_count`
),
trending_contributors as (
select * from `precise-ether-284916`.`dbt_mcalleja`.`... | true |
50d9d72addf54fa678f4cdaf0d613678fd9a6f1d | SQL | chinhlk81/PL-SQL | /ams_ept_group_company.sql | UTF-8 | 1,132 | 3.3125 | 3 | [] | no_license | drop table ams_ept_group_company;
create table ams_ept_group_company
(
grco_group_id number(18) not null,
grco_company_ams_id varchar2(32) not null,
grco_location_ams_id varchar2(32) not null,
grco_location_type varchar2(32),
grco_direct_type varchar2(32),
grco_location_name varchar2(256),
... | true |
2b63b95616c1d355c0c4f2b82ac75ad0b24daa4e | SQL | cindyliu/p4.plesiosaur.us | /database.sql | UTF-8 | 2,079 | 3.4375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 3.5.7
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 30, 2013 at 05:32 AM
-- Server version: 5.5.29
-- PHP Version: 5.4.10
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `plesiosa_p4_plesiosaur_us`
--
-- ------------------... | true |
10b0bf98db8f1b8085c1dba01a1890ab7628376b | SQL | surmurthag/SQLServer2019 | /mod01.sql | ISO-8859-1 | 375 | 2.875 | 3 | [] | no_license | -- Lister les ID de bases de donnes; la base courante et une base spcifies dans la commande
select db_id() as 'base courante',
db_id('gescom') as 'Gescom'
-----------------------------------------------------------------------------------------------
-- Lister les tables et vues utilisateur d'une base de donne... | true |
ead3cbbc8f8d17319473817daa5c60d9d17ce359 | SQL | lkp1996/Edelcert | /edelcert.sql | UTF-8 | 3,726 | 3.46875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.4.10
-- http://www.phpmyadmin.net
--
-- Client : localhost
-- Généré le : Ven 08 Janvier 2016 à 11:13
-- Version du serveur : 5.5.42
-- Version de PHP : 7.0.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Base de données : `edelcert`
--
-- ----------... | true |
dd8cb2bfae985ff8ef63e190918935d9c1236ae7 | SQL | alee-revature/revature-210621 | /sql/SQL_scripts.sql | UTF-8 | 4,766 | 3.125 | 3 | [] | no_license | CREATE TABLE employee (
id serial NOT NULL,
"name" varchar NOT NULL,
gender char(1) NOT NULL,
age int NULL,
"location" varchar NULL,
department varchar NULL,
"role" varchar NULL,
join_date date NULL,
salary int NULL
);
INSERT INTO employee ("name", gender, age, "location", department, "role", join_date, salar... | true |
bfc62c0d111eca31cc730dfa01d655f1d2873f80 | SQL | elgodmaster/soccer2 | /db/soccer.sql | UTF-8 | 18,938 | 3.390625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 24-05-2013 a las 19:19:18
-- Versión del servidor: 5.5.27-log
-- Versión de PHP: 5.4.6
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHA... | true |
a8e80f6cb448a71567649f82a902d491a18799ed | SQL | ManOfSteel46/PHP-Developer-Book-Store-Project | /MY DATABASE.sql | UTF-8 | 5,487 | 2.9375 | 3 | [] | no_license | -- --------------------------------------------------------
-- Host: localhost
-- Server version: 5.7.19 - MySQL Community Server (GPL)
-- Server OS: Win64
-- HeidiSQL Version: 9.4.0.5125
-- --------------------------------------------------------
/*... | true |
3d6b9b8c79d8475023dd0a0c5853776966ac7eb6 | SQL | MMunibas/FittingWizardWeb | /db/sqlite_create.sql | UTF-8 | 2,028 | 3.390625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | PRAGMA synchronous = OFF;
PRAGMA journal_mode = MEMORY;
PRAGMA foreign_keys=ON;
--
-- Table structure for table `compounds`
--
CREATE TABLE IF NOT EXISTS "compounds" (
"id" INTEGER PRIMARY KEY NOT NULL,
"idPubchem" INTEGER NOT NULL,
"name" TEXT NOT NULL,
"added" DATE NOT NULL,
"lastUpdate" DATE NOT NULL
)... | true |
870937d027c84f2fcbd3a96aefda76237ad125a9 | SQL | Sigma-Enigma/SQL-Practice | /SQL Practice Queries Q1 to Q25.sql | UTF-8 | 327 | 3.046875 | 3 | [] | no_license | -- SQL Practie Queries: Q1 - X
-- Q-1. Write an SQL query to fetch “FIRST_NAME” from Worker table using the alias name as <WORKER_NAME>.
SELECT FIRST_NAME AS WORKER_NAME
FROM ORG.Worker;
-- Q-2. Write an SQL query to fetch “FIRST_NAME” from Worker table in upper case.
SELECT UPPER(FIRST_NAME)
FROM ORG.Worker;
| true |
3e3cf5fbec442a499873e4a664dcaa88fd854b2a | SQL | XuejieGuo/Sql-practice | /Leetcode/1077_ProjectEmplyeesIII.sql | UTF-8 | 258 | 4.03125 | 4 | [] | no_license | select project_id, employee_id
from(
select project_id, project.employee_id,
dense_rank() over(partition by project_id order by experience_years desc) as dr
from project
left join employee
on project.employee_id = employee.employee_id
) a
where dr = 1
| true |
5683621679a51764fdeca760dd0e4d28641e2b20 | SQL | hlzhu1983/caixaestoqueflex | /CaixaEstoqueFlex/bd/caixaeestoque.sql | UTF-8 | 11,810 | 3.1875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 3.2.4
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tempo de Geração: Ago 22, 2010 as 05:28
-- Versão do Servidor: 5.1.41
-- Versão do PHP: 5.3.1
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CH... | true |
973feaeb26bdcfd9fef17edc505a2f5fd41d9aaa | SQL | AlexBoeira/MigradorUnicooTotvs | /Progress/migracao/_scripts_migracao_gps/listar_erros_import_beneficiario_inf_contrato.sql | ISO-8859-1 | 1,066 | 2.828125 | 3 | [] | no_license | -- listar erros importao beneficirio de um determinado contrato
select e.*, b.* from gp.erro_process_import e, import_bnfciar b, import_propost ip
where e.num_seqcial_control = b.num_seqcial_control
and b.ind_sit_import = 'PE'
and ip.num_livre_3 = '7017'
and ip.nr_contrato_antigo = b.nr_contrato_antigo;
--update impor... | true |
7d6b8750798debbfd1a7880e85d24ca2c6276a68 | SQL | bellmit/practicas_empresa | /opentach-server/src/main/resources/sql/InfractionAnalyzerWSQueryActivities.sql | UTF-8 | 840 | 3.125 | 3 | [] | no_license | SELECT
TPACTIVIDAD,
TO_CHAR(FEC_COMIENZO, 'DD/MM/YYYY HH24:MI:SS') AS FEC_COMIENZO,
MINUTOS,
TO_CHAR(FEC_FIN, 'DD/MM/YYYY HH24:MI:SS') AS FEC_FIN,
ORIGEN,
REGIMEN,
TRANS_TREN
FROM CDACTIVIDADES
WHERE
NUMREQ = ? AND
IDCONDUCTOR = ? AND
FEC_COMIENZO > = (? - 15) AND
FEC_FIN <= ?
UNION ALL
SELECT
TPACT... | true |
36b41baabdb8387bedc8bb954833be7edd099f45 | SQL | xianZJ/analysis | /db/topic.sql | UTF-8 | 1,725 | 3.25 | 3 | [] | no_license | /*
Navicat Premium Data Transfer
Source Server : zj
Source Server Type : MySQL
Source Server Version : 80011
Source Host : localhost:3306
Source Schema : world
Target Server Type : MySQL
Target Server Version : 80011
File Encoding : 65001
Date: 30/10/2019 16:13:16
*/... | true |
ce60a298505ff5ef3d1592bbe4eebb8391238117 | SQL | The-Trip/The-Trip | /database.sql | UTF-8 | 5,498 | 4.0625 | 4 | [] | no_license | --CREATE DATABASE thetrip
-- ORIGIN TABLE (to amend use drop as below)
DROP TABLE IF EXISTS likes;
DROP TABLE IF EXISTS comment;
DROP TABLE IF EXISTS suggestion;
DROP TABLE IF EXISTS flight;
DROP TABLE IF EXISTS permission;
DROP TABLE IF EXISTS trip;
DROP TABLE IF EXISTS customer;
-- IMMUTABLE BASE TABLE FOR customer... | true |
9be66a0d95fee761627b24874bc455835c1cbbfa | SQL | CicciiSacket/PHP | /Exam PHP/Esame.sql | UTF-8 | 1,686 | 3 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:8889
-- Generation Time: Dec 11, 2020 at 12:50 PM
-- Server version: 5.7.30
-- PHP Version: 7.4.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN... | true |
13b4028ebd455ee6c097322ae9f28a40e7aca5bc | SQL | cvick32/mastery-with-sql | /chapter_5_exercises.sql | UTF-8 | 4,514 | 4.4375 | 4 | [] | no_license | -- 5.1 Write a query to print a description of each film's length as
-- shown in the output below. When a film does not have a length,
-- print: [title] is unknown length
select title || ' is ' || coalesce(length || ' minutes', 'unknown length') as length_desc
from film;
-- 5.2 You want to play a movie title guess... | true |
16c2d35614bcd14da6660d76e4d8504a227363ee | SQL | MateuxLucax/programacao-ifc | /banco-de-dados/empresa_desenvolvimento_software.sql | UTF-8 | 2,444 | 3.859375 | 4 | [] | no_license | -- Seguradora
DROP DATABASE `sicherheit`;
CREATE DATABASE `sicherheit`;
USE `sicherheit`;
CREATE TABLE IF NOT EXISTS `Clientes` (
`RG` VARCHAR(15) PRIMARY KEY,
`CPF` VARCHAR(15) NOT NULL,
`Nome` VARCHAR(150) NOT NULL,
`Endereco` VARCHAR(200) NOT NULL,
`Telefone` VARCHAR(25) NOT NULL
);
CREATE TABLE IF NOT... | true |
6a9925bb60157100e1fdca74966d51f6f404c227 | SQL | MorganShaw/helo | /db/get_posts_by_author_title.sql | UTF-8 | 220 | 3.234375 | 3 | [] | no_license | -- SELECT * FROM posts
-- WHERE NOT author_id = $1
-- AND title = $1;
SELECT p.id, p.title, p.author_id, u.username, u.profile_pic FROM posts p
JOIN users u
ON p.author_id = u.id
WHERE NOT author_id = $1
AND title = $1; | true |
cfa8d9be0db6bc168fad0b507e5a1e25fa0a7456 | SQL | google-code/adofdh | / adofdh/new/proc/insertintable.prc | UTF-8 | 1,644 | 3.015625 | 3 | [] | no_license | CREATE OR REPLACE PROCEDURE insertintable(p_sb_stove IN VARCHAR2,
p_plan_id IN VARCHAR2,
p_in_area IN VARCHAR2,
p_in_class IN VARCHAR2,
... | true |
f8c10e10d4a8ea3bd605423948ff919ebabdedfd | SQL | whlee21/aumc-daily | /init_load/sprint_2/itf_cost_o_2.sql | UTF-8 | 3,454 | 3.625 | 4 | [] | no_license | /*****************************************************
프로그램명 : ITF_COST_O_2.SQL
작성자 : Won Jong Bok
수정자 :
최초 작성일 : 2020-12-07
수정일 :
소스 테이블(기본) :
소스 테이블(참조) :
프로그램 설명 : 외래 COST 정보 선적재 2
cnt: 36,757
time : 14s
*****************************************************/
DROP TABLE IF EXISTS ITFCDMPV532_dail... | true |
a9fcdf17982964ebb96db75a61272e0206a33810 | SQL | KarenMorales16/DATABASE | /Unidad1/Practica3- Morales Galindo Karen Nohemi.sql | UTF-8 | 1,433 | 3.390625 | 3 | [] | no_license |
---CREAR BASE DE DATOS INVESTIGADOR
create DataBase Practica3
--USAR BASE DE DATOS
use Practica3
--TABLA AREA CONOCIMIENTO
create table AREACONOC (IdArea Int NOT NULL PRIMARY KEY,
AreaConc varchar(30))
--TABLA PROGRAMA EDUCATIVO
create table PE (IdPE Int NOT NULL PRIMARY KEY,
PROGRAMA varchar(30)... | true |
041190b802e8fc5fdfe68f7c7c735442cede5773 | SQL | kern/pavlov-prime | /src/console/db/queries/entities/websites/insert.sql | UTF-8 | 341 | 3.421875 | 3 | [
"Apache-2.0"
] | permissive | INSERT INTO
entity_graph.websites AS w (
name,
domain,
type,
url
)
VALUES
(
${name},
${domain},
${type},
${url}
)
ON CONFLICT ON CONSTRAINT websites_url_unique DO UPDATE SET
name = COALESCE(w.name, ${name}),
domain = COALESCE(w.domain, ${domain}),
type = COALESCE(w.type, ${... | true |
d2b740c9191703d62c1282fa260303bc72a146ee | SQL | yalisofer94/Second_Hand_DB_Store_App | /second_hand_books_db/second_hand_books_transactions.sql | UTF-8 | 2,885 | 3.4375 | 3 | [] | no_license | -- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64)
--
-- Host: localhost Database: second_hand_books
-- ------------------------------------------------------
-- Server version 8.0.19
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESUL... | true |
9bac26db31fa00766cb003b4138e7ca8abdaf1de | SQL | rock007/httpStarter | /doc/sql/init.sql | UTF-8 | 1,563 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | drop table if exists spider_fetch_page;
/*==============================================================*/
/* Table: spider_fetch_page */
/*==============================================================*/
create table spider_fetch_page
(
id varchar(128) not null... | true |
373a2c3e3b0843643d63885d3db6bda76f346ea9 | SQL | JeroenDebra/spaceshark-parkshark | /application/src/main/resources/db/migration/V5__create_parking_spot.sql | UTF-8 | 271 | 3.09375 | 3 | [] | no_license | SET SCHEMA 'parkshark-test';
CREATE TABLE parking_spot(
id SERIAL NOT NULL PRIMARY KEY,
member_id SERIAL NOT NULL,
parkinglot_id SERIAL NOT NULL ,
FOREIGN KEY (parkinglot_id) REFERENCES parkinglot(id),
FOREIGN KEY (member_id) REFERENCES members(id)
) | true |
ba2d5555c6adde7adb9db960fdeb288248651eee | SQL | wfyhehe/MobilePhoneManageSystem | /src/main/resources/tables/business/mobile_stock.sql | UTF-8 | 1,552 | 3.609375 | 4 | [] | no_license | CREATE TABLE t_mobile_stock (
id VARCHAR(32) PRIMARY KEY,
model_id VARCHAR(15) NOT NULL,
color VARCHAR(64) NOT NULL,
config VARCHAR(64),
first_supplier_id VARCHAR(15),
first_in_time DATETIME,
last_supplier_id VARCHAR(15),
last_in_time DATETIME,
... | true |
7cf2a7bd8587d443083618608fc48ff2fb83d506 | SQL | nqdai1992/postgres-basic-practice | /postgres-basic/week4/assignment/1-create-table.sql | UTF-8 | 462 | 3.78125 | 4 | [] | no_license | CREATE TABLE IF NOT EXISTS student (
id SERIAL,
name VARCHAR(128) UNIQUE NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE course (
id SERIAL,
title VARCHAR(128) UNIQUE NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE roster (
id SERIAL,
student_id INTEGER REFERENCES student (id) ON DELETE CASCADE,... | true |
cd0f3d47f5290919f7e36e73d4113463fc65f5eb | SQL | silence-do-good/stress-test-Postgres-and-MySQL | /dump/high/day09/select0400.sql | UTF-8 | 178 | 2.59375 | 3 | [] | no_license |
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o
WHERE timestamp>'2017-11-08T04:00:00Z' AND timestamp<'2017-11-09T04:00:00Z' AND temperature>=17 AND temperature<=63
| true |
0f6863f345065a070b1e5a4542c913307e474b6e | SQL | dekaybe/Projects | /mondrian/voters/test_voter_lookup.sql | UTF-8 | 763 | 2.90625 | 3 | [] | no_license | SET @v_Address_Postcode="S6 2PL";
SET @v_Surname="Klabis";
select v_id
, concat(v_PD,"/",v_ENO)
, v_Forename
, v_Surname
, v_Address_Line_2
, v_Address_Postcode
from srgp_voters_root
where v_Address_Postcode=@v_Address_Postcode
and v_valid=1
order by v_Surname
, v_Foren... | true |
886de2984b4e30b53ed161641ff5bac30c8d063f | SQL | nimamshah/intro-db | /Assignment 3/a3_7.sql | UTF-8 | 64 | 2.78125 | 3 | [] | no_license | SELECT MAP, AVG(ELEV)
FROM peak
GROUP BY MAP
ORDER BY AVG(ELEV); | true |
b8e99e0f7fbf75e89f24baf89999bef8c90845ff | SQL | daleondeveloper/anime_sao_site | /src/main/resources/database/addPublicationToDB.sql | UTF-8 | 14,113 | 2.859375 | 3 | [] | no_license | INSERT INTO anime_publication(id, access, create_date, description, director, full_name, language, last_update_date_time, name, release_date_time, count_series)
VALUES
(8,2,DATE '2019-10-29','','Ито Томохико','Мастера Меча Онлайн','RU',now(),'Мастера Меча Онлайн',now(),25),
(1,2,DATE '2019-10-29','Карэн всегда чувство... | true |
71659be81152876c247513193110e009551a28ff | SQL | cdesmarais/WebDB-Test | /WebDB/StoredProcedures/Common/dbo.GetRestaurantOfferBeverageItems.PRC | UTF-8 | 577 | 3.21875 | 3 | [] | no_license |
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[GetRestaurantOfferBeverageItems]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[GetRestaurantOfferBeverageItems]
GO
--
-- Gets all the restaurant offer beverage item values
--
create Procedure dbo.GetRestaurantOfferBeverage... | true |
3f123742d39113cb15ca5240d722d04471580a8e | SQL | OlafMd/MedCon1.0 | /mm-libs/dbaccess/Level 2/CL2_ApplicationSubscription/Atomic/Retrieval/SQL/cls_Get_TenantSubscription_for_Application.sql | UTF-8 | 531 | 3.328125 | 3 | [] | no_license |
Select
cmn_tenant_applicationsubscriptions.CMN_Tenant_ApplicationSubscriptionID As TenantSubscriptionID,
cmn_tenant_applicationsubscriptions.Tenant_RefID,
cmn_tenant_applicationsubscriptions.Application_RefID
From
cmn_tenant_applicationsubscriptions
Where
cmn_tenant_applicationsubscriptions.Tenant_Re... | true |
7381f41c222536ba4d5f09a6786ffcdfadf7036a | SQL | etalab/sirene_as_api | /db/structure.sql | UTF-8 | 24,943 | 2.890625 | 3 | [
"MIT"
] | permissive | --
-- PostgreSQL database dump
--
-- Dumped from database version 10.12 (Ubuntu 10.12-0ubuntu0.18.04.1)
-- Dumped by pg_dump version 10.12 (Ubuntu 10.12-0ubuntu0.18.04.1)
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming... | true |
581510dfdfc80ef1dc39e654d6d5a78c4dbc1e83 | SQL | c-maine/newspaper_bias_project | /Eventregistry/clear_aws_tables.sql | UTF-8 | 1,210 | 3.59375 | 4 | [] | no_license | DROP TABLE articles_tab;
DROP TABLE newspapers_tab;
DROP TABLE countries_tab;
DROP TABLE dates_tab;
DROP TABLE categories_tab;
CREATE TABLE countries_tab(
country_iso VARCHAR(10) PRIMARY KEY,
country_name TEXT NOT NULL,
population INTEGER,
n_languages INTEGER,
eng_language INTEGER,
area INTEGER,
capital VARCHA... | true |
75863524ab140a035fee45bdfb2e03053fd98c13 | SQL | MIU-2021/MASKM-Store | /Database-MySQL-configration/DataBase_backup/maskm_db_buyer_orders.sql | UTF-8 | 2,289 | 3.015625 | 3 | [] | no_license | -- MySQL dump 10.13 Distrib 8.0.26, for Win64 (x86_64)
--
-- Host: localhost Database: maskm_db
-- ------------------------------------------------------
-- Server version 8.0.26
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*... | true |
b248787f1952e26b0311570b854985354ba70820 | SQL | BadLice/todo-list-react | /todo_list.sql | UTF-8 | 3,103 | 3.15625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 02, 2019 at 05:45 PM
-- Server version: 10.4.6-MariaDB
-- PHP Version: 7.3.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... | true |
1f4d1466e069ce9aa13b07806ee6cb4114627461 | SQL | BajanGerry/SimpleAlarm | /monitoring.sql | UTF-8 | 1,262 | 3.40625 | 3 | [] | no_license | CREATE DATABASE monitoring;
USE monitoring;
CREATE TABLE IF NOT EXISTS `mitel_alarms` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(25) NOT NULL,
`ip` varchar(15) NOT NULL,
`state` varchar(25) NOT NULL,
`alarm` varchar(250) NOT NULL,
`date` datetime NOT NULL,
`last` datetime NOT NULL,
`company... | true |
f7a122e749887c772ca5463de7fb457604a0cdda | SQL | aniledev/bon-appetit-server | /migrations/002.do.create_reviews.sql | UTF-8 | 251 | 2.796875 | 3 | [] | no_license | CREATE TABLE "reviews"
(
"id" SERIAL PRIMARY KEY NOT NULL,
"restaurant_id" SERIAL NOT NULL REFERENCES restaurants(id),
"name" VARCHAR(50) NOT NULL,
"review" TEXT NOT NULL,
"rating" INT NOT NULL check(rating >= 1 and rating <=5)
);
| true |
d469b78cd1e85685128dc885647590f29e3d573e | SQL | DouglasGo8/cassandra-udemy | /cassandra.cql | UTF-8 | 1,524 | 3.28125 | 3 | [] | no_license |
CREATE KEYSPACE vehicle_tracker WITH REPLICATION = {'class': 'NetworkTopologyStrategy', 'dc1': 3, 'dc2': 2}
CREATE KEYSPACE vehicle_tracker WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor': 1 }
CREATE KEYSPACE home_security WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor': 1 }... | true |
cd35990b4a5a99fdd3975065eaecf2e6043733ff | SQL | ql657195490/cs4400 | /cs4400table.sql | UTF-8 | 6,389 | 4.125 | 4 | [] | no_license | use cs4400;
CREATE TABLE user(
username VARCHAR(50) PRIMARY KEY NOT NULL,
password VARCHAR(50) NOT NULL,
userType VARCHAR(50) NOT NULL
);
CREATE TABLE customer(
username VARCHAR(50) PRIMARY KEY NOT NULL,
email VARCHAR(50) NOT NULL,
isStudent enum('true', 'false') DEFAULT 'false',
FOREIGN KEY (username) RE... | true |
6159542b7dfe8fbdc24dd3c0fd06ae46a2ec60cc | SQL | heyiamqq/ground_fashion | /f37ee.sql | UTF-8 | 4,935 | 3.171875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Oct 30, 2020 at 11:08 AM
-- Server version: 5.5.44-0ubuntu0.14.04.1
-- PHP Version: 5.5.9-1ubuntu4.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_C... | true |
acfae765eb0f9954460bd39dc8f62407d68022c0 | SQL | allexolic/web-juridico-php | /sql/tb_acao.sql | UTF-8 | 1,936 | 3.03125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: 21-Maio-2018 às 22:07
-- Versão do servidor: 5.7.19
-- PHP Version: 5.6.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_C... | true |
630bf1da900546e507fac8a66bbd1222e52945b8 | SQL | renatopcinfo/validar-users | /src/scripts/postgres.sql | UTF-8 | 596 | 3.484375 | 3 | [] | no_license | DROP TABLE IF EXISTS TB_HEROIS; /* VAI APAGAR SE EXISTIR DEPOIS CRIAR COM CREATE */
CREATE TABLE TB_HEROIS (
ID INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY NOT NULL,
NOME TEXT NOT NULL,
PODER TEXT NOT NULL
)
/* INSERCAO DE DADOS CREATE*/
INSERT INTO TB_HEROIS (NOME, PODER)
VALUES
('Flash', 'Velocidade... | true |
900dcdb08488d142cd96c9905eb6d2c26dd97d71 | SQL | luanscosta/projetoMarketPlace | /query.sql | UTF-8 | 863 | 3.421875 | 3 | [] | no_license | CREATE TABLE users (
user_id number(8) NOT NULL,
user_name VARCHAR(30) NOT NULL,
user_pass VARCHAR(255) NOT NULL,
user_email VARCHAR(255) NOT NULL,
user_creation_date TIMESTAMP NOT NULL,
user_type number(8) NOT NULL,
PRIMARY KEY (user_id)
);
CREATE TABLE topics (
topic_id number(8) NOT NULL,
topic_... | true |
70cee9ba38d5a0ea38684d2708cf7082e6049cb0 | SQL | PsyberPro/Asset-ManagementAppRepo | /Asset-Management/src/main/java/za/co/authoritativelabpro/ddl/mysql.sql | UTF-8 | 3,254 | 3.3125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.4.11
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jul 29, 2015 at 06:10 PM
-- Server version: 10.0.20-MariaDB
-- PHP Version: 5.6.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_C... | true |
b09eadcf323b792d4333c68bbccdae8d30603fcd | SQL | romanticstxj/service | /services/sql/v4.2.1.sql | UTF-8 | 1,861 | 3.015625 | 3 | [] | no_license | /*Table structure for table `mad_dict_reqblocktype` */
DROP TABLE IF EXISTS `mad_dict_reqblocktype`;
CREATE TABLE `mad_dict_reqblocktype` (
`code` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '黑名单流量的类型',
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '黑名单流量的类型名称',
PRIMARY KEY (`code`)
) ENGINE=InnoDB ... | true |
5acf2f584d90684831853c165de7dbddc4fff9cf | SQL | huandu/yuki | /samples/simple_sidu/sample.sql | UTF-8 | 365 | 2.734375 | 3 | [] | no_license | DROP TABLE IF EXISTS mysample;
CREATE TABLE mysample (
id bigint auto_increment primary key,
uid varchar(32) not null,
int_value int not null,
bigint_unsigned_value bigint unsigned not null,
char_value char(16) not null,
varchar_value varchar(32) not null,
text_value text,
unique key I_u... | true |
1fbe6c8d60702b8d02fbea9bfc7bfecc7b32bdcd | SQL | Syinua/demoblog | /data/schema.mysql.sql | UTF-8 | 634 | 3.671875 | 4 | [] | no_license | CREATE TABLE tbl_posts
(
id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
title VARCHAR(128) NOT NULL,
content TEXT NOT NULL,
create_time INTEGER,
update_time INTEGER,
author VARCHAR(128) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE tbl_comments
(
id INTEGER NOT NULL... | true |
9633664950df0aad5ec8ce99edce8767a0ab33cb | SQL | yoshiiinuma/DocumentRemover | /scripts/create-arrival-date-trigger.sql | UTF-8 | 1,021 | 3.65625 | 4 | [] | no_license |
DELIMITER $$
CREATE TRIGGER ArrivalDateUpdateTrigger
AFTER UPDATE ON Travelers
FOR EACH ROW
BEGIN
DECLARE EarliestArrivalDate Date;
SET @EarliestArrivalDate = (
SELECT DATE(MIN(`Arrival Date`))
FROM Travelers
WHERE RequestId = NEW.RequestId
GROUP BY RequestId);
IF (@Earli... | true |
f552c93f208b7ec847e91b84b6b3295fd1060f65 | SQL | noreez/TP_SQL | /requete1.sql | UTF-8 | 168 | 3.4375 | 3 | [] | no_license | SELECT firstname,label FROM student
LEFT JOIN enroiment ON student.id = enroiment.id_student
LEFT JOIN year on year.id = enroiment.id_year
ORDER BY firstname asc; | true |
e2143cf6f889f52c1057180a1aef4bdfacf45c9f | SQL | LucasGaravaglia/QuintoPeriodo | /BD/trabalho5-6/tables.sql | UTF-8 | 11,949 | 3.359375 | 3 | [] | no_license | DROP DATABASE IF EXISTS ficha_medica;
CREATE DATABASE IF NOT EXISTS ficha_medica;
USE ficha_medica;
CREATE TABLE IF NOT EXISTS TipoLogradouros (
siglaLogradouro varchar(3) primary key not null,
nomeTipoLogradouro varchar(255) not null
);
CREATE TABLE IF NOT EXISTS Logradouros (
idLogradouro int unsigned a... | true |
b9036400dc543c7a062515c3309fb8d6f2d4127b | SQL | dexteryam/rmdb | /sql_scripts/rmdb.sql | UTF-8 | 51,662 | 3.234375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 3.4.5
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 04, 2012 at 06:33 AM
-- Server version: 5.5.16
-- PHP Version: 5.3.8
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!... | true |
32357c0fae27bb4f35bedebb070aeb362a9474bf | SQL | ggalina13/sql-fitness-club-project | /ddl.sql | UTF-8 | 3,577 | 4.28125 | 4 | [] | no_license | create type day_of_week as enum('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday');
create type sports_category as enum('Master of sports', 'Candidate Master of sports');
create table addresses
(
address_id int primary key,
country varchar(100) not null,
region varchar(... | true |
18df09cd53db89ed5895baf229b9fb79f1e815a2 | SQL | taiko19xx/Honeypot_on_GCP | /part5/WOWHoneypotPathTop10_1Month.sql | UTF-8 | 303 | 3.03125 | 3 | [
"MIT"
] | permissive | SELECT jsonPayload.path AS path, COUNT(jsonPayload.path) AS cnt
FROM `gcp-honeypot-book.wowhoneypot.wowhoneypot_access_*`
WHERE
_TABLE_SUFFIX BETWEEN FORMAT_DATE('%Y%m%d', DATE_SUB(CURRENT_DATE(), INTERVAL 1 MONTH))
AND FORMAT_DATE('%Y%m%d', CURRENT_DATE())
GROUP BY path
ORDER BY cnt DESC
LIMIT 10 | true |
3f3cd07ab4e2715e4fe3ad1737d3680200c49cb1 | SQL | reloadbrain/svion | /server/svion/src/main/sql/questions.sql | UTF-8 | 18,610 | 3.265625 | 3 | [] | no_license | --
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = fals... | true |
9da11bf0efac462bfcf5d22ab5009672352d4bcb | SQL | Djohn163/SQL-Term-Assignment | /Part One Term Assignment.sql | UTF-8 | 1,098 | 4.28125 | 4 | [] | no_license | USE employees;
#PART ONE
#Problem1
#SELECT * FROM employees;
#Problem2
#SELECT emp_no, birth_date, gender
#FROM employees;
#Problem3
#SELECT hire_date, emp_no, gender
#FROM employees
#WHERE emp_no> 10003
#Problem4
#SELECT emp_no, title, from_date, to_date
#FROM employees.titles
#WHERE title = 'Senior Engineer' AND ... | true |
436c1203046e1ec2df60e90755912575a1237bad | SQL | jchaganti/gharonda | /server/src/main/resources/gharonda.sql | UTF-8 | 6,515 | 3.15625 | 3 | [
"MIT"
] | permissive | /*
SQLyog Community Edition- MySQL GUI v6.15
MySQL - 5.0.45-community-nt : Database - sahibidenev
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
create database if not exists `gem1453_sev`;
USE `gem1453_sev`;
/*Table... | true |
c3eda968ef5942d06781bacd3d81f1e3428de26d | SQL | yaswanth-kalyan/EMPLOYEE_DATA | /evolutions/7.0/30032016_TimeSheet.sql | UTF-8 | 1,743 | 3.375 | 3 | [] | no_license | CREATE TABLE timesheet
(
id bigserial NOT NULL,
app_user_id bigint,
project_id bigint,
hours double precision,
date timestamp without time zone,
created_on timestamp without time zone NOT NULL,
last_update timestamp without time zone NOT NULL,
CONSTRAINT pk_timesheet PRIMARY KEY (id),
CONSTRAINT fk_ti... | true |
73a4d88764960b247fc8bfbd35c8bb115ff4464e | SQL | sunhye1023/JAVA | /ERD/src/ERD_BOOKPROGRAM.sql | UTF-8 | 1,844 | 3.78125 | 4 | [] | no_license |
/* Drop Tables */
DROP TABLE BOOK_RETURN CASCADE CONSTRAINTS;
DROP TABLE BOOK_LEND CASCADE CONSTRAINTS;
DROP TABLE BOOK CASCADE CONSTRAINTS;
DROP TABLE MEMBERS CASCADE CONSTRAINTS;
DROP TABLE MANAGER CASCADE CONSTRAINTS;
/* Create Tables */
CREATE TABLE BOOK
(
BOOK_NAME varchar2(50) NOT NULL,
BOOK_NO number(10... | true |
91c6e1c25ed22fdbf79afafd7f79982b1c142910 | SQL | Sananthu-47/Social_Feeds | /database/init_db.sql | UTF-8 | 4,801 | 3.8125 | 4 | [] | no_license | CREATE TABLE `users` (
`id` int(20) NOT NULL,
`first_name` varchar(50) NOT NULL,
`last_name` varchar(50) NOT NULL,
`email` varchar(50) NOT NULL,
`username` varchar(50) NOT NULL,
`password` varchar(255) NOT NULL,
`joined` date NOT NULL,
`user_image` text NOT NULL,
`last_seen` bigint(20) NOT NULL,
`ac... | true |
b17bce3492a71253cb40e41883c51203f39ed751 | SQL | zl0314/ci-with-module | /application/controllers/Jsapi/ci_tokens.sql | UTF-8 | 1,430 | 2.984375 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | /*
Navicat Premium Data Transfer
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 50547
Source Host : localhost:3306
Source Schema : ci_module
Target Server Type : MySQL
Target Server Version : 50547
File Encoding : 65001
Date... | true |
a1dac6213e9b0886226fde9b25910ae3d0153c5c | SQL | lingyunyi/PhpSmallProject | /20200605 - student_manager/student_manager.sql | UTF-8 | 1,626 | 3.1875 | 3 | [] | no_license | /*
Navicat MySQL Data Transfer
Source Server : A
Source Server Version : 50547
Source Host : localhost:3306
Source Database : student_manager
Target Server Type : MYSQL
Target Server Version : 50547
File Encoding : 65001
Date: 2020-06-06 15:32:49
*/
SET FOREIGN_KEY_... | true |
331489534b55a98254a9e335936e204cd4b55d78 | SQL | cheneym/databases | /server/schema.sql | UTF-8 | 1,804 | 3.921875 | 4 | [] | no_license | DROP DATABASE chat;
CREATE DATABASE chat;
USE chat;
CREATE TABLE users (
/* Describe your table here.*/
id int(11) NOT NULL AUTO_INCREMENT,
name varchar(255) NOT NULL,
primary key (id)
);
/* Create other tables and define schemas for them here! */
CREATE TABLE rooms (
/* Describe your table here.*/
id in... | true |
4d41b1ac47d1e037493054419fd8070afee6be86 | SQL | dsbeltran/Base-de-datos | /BDD_Mer_CSp_DavidBeltran/Mer_CajeroSup.sql | UTF-8 | 5,266 | 3.484375 | 3 | [] | no_license | /*==============================================================*/
/* DBMS name: Sybase SQL Anywhere 12 */
/* Created on: 18/11/2019 10:56:06 */
/*==============================================================*/
if exists(select 1 from sys.sysforeignkey wh... | true |
7e033542430a593a825ad3865f29f89c020f005e | SQL | RittikSoni/project-classroom | /loginsystem.sql | UTF-8 | 2,118 | 3.15625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 05, 2020 at 12:30 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
4d2fc5a33c4ae398902f0f5b9dea7c5f0b62e9ac | SQL | efarrell3/sql-challenge | /sql-challenge-table-schemata.sql | UTF-8 | 1,390 | 3.78125 | 4 | [] | no_license | drop table Employees;
drop table Departments;
drop table Department_Employees;
drop table Department_Manager;
drop table Salaries;
drop table Titles;
CREATE TABLE Employees (
emp_no INT NOT NULL,
title_id VARCHAR NOT NULL,
birth_date date NOT NULL,
first_name VARCHAR NOT NULL,
last_name VARCHAR NOT NU... | true |
0992ac2841a138cbdfcfc4733c67e4702fa3f2f8 | SQL | ArnaudW29/projet1TBonbon | /BACKEND/scripts-web-service/procedure-verifMail.sql | UTF-8 | 576 | 2.90625 | 3 | [] | no_license |
CREATE PROCEDURE "DBA"."proc_verifMail" (IN Mail VARCHAR(70))
RESULT(Mail VARCHAR(70))
BEGIN
call sa_set_http_header('Access-Control-Allow-Origin','*');
call sa_set_http_header('Content-Type','application/json');
select clientMail from tbClient
where Mail = clientMail
END;
--------------------------... | true |
b1c14abdf26ec21987b1078fd05b5680995b47fb | SQL | afbogdan/budget-planner | /sql/PGcreate&insert.sql | UTF-8 | 16,378 | 4.28125 | 4 | [] | no_license | -- ********* CREATING TABLES *********
-- DROP DATABASE bp;
-- CREATE DATABASE bp
-- WITH
-- OWNER = postgres
-- ENCODING = 'UTF8'
-- LC_COLLATE = 'English_Denmark.1252'
-- LC_CTYPE = 'English_Denmark.1252'
-- TABLESPACE = pg_default
-- CONNECTION LIMIT = -1;
DROP SCHEMA public CASCADE;
... | true |
73d89be15f08d8a2ec717fdd6f431e8dec766e0a | SQL | MuhammadRizkiSatria/TKT311-2020-C-PrizeClass | /prizeclass.sql | UTF-8 | 1,568 | 2.75 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 15, 2020 at 08:29 AM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 8.0.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... | true |
b541afbe58019cb2558f818765a3b2fab1b34d29 | SQL | algorenator/OLIVER | /Constraints/TBL_EMPLOYER_CONTACTS_NonFK.sql | UTF-8 | 260 | 3.25 | 3 | [] | no_license | --
-- Non Foreign Key Constraints for Table TBL_EMPLOYER_CONTACTS
--
ALTER TABLE OLIVER.TBL_EMPLOYER_CONTACTS ADD (
CONSTRAINT TBL_EMPLOYER_CONTACTS_PK
PRIMARY KEY
(TEC_KEY)
USING INDEX OLIVER.TBL_EMPLOYER_CONTACTS_PK
ENABLE VALIDATE);
| true |
5732ae550838615849ababed584b41db0a03ba68 | SQL | gladiopeace/digital-data-syn | /documents/oms/TB_SYSXG.sql | GB18030 | 1,922 | 2.953125 | 3 | [] | no_license | /*
================================================================================
ṹ:TB_SYSXG
ṹ: жϽڵķ֧
ṹĿ:
================================================================================
*/
drop table TB_SYSXG;
create table TB_SYSXG (
SYSXG001 VARCHAR2(50) not null, /*߱ */
SYSXG002 VARC... | true |
935a2b774646012195ccc32aeba2427dea3e35c5 | SQL | LopMOP101/VT2020-5- | /create_db.sql | UTF-8 | 3,409 | 3.875 | 4 | [] | no_license | create database aircompany;
create table if not exists user_roles (
role_id int not null,
role varchar(20) not null unique,
primary key(role_id)
);
insert into user_roles values (0, 'admin');
insert into user_roles values (1, 'dispatcher');
create table if not exists users (
user_id int not null auto_increment,
logi... | true |
a10298b75be20384ecf2649b7cfba33682db5489 | SQL | DWerkPrice/sql-tutorial | /my-first-sql-scripts.sql | UTF-8 | 506 | 4.03125 | 4 | [] | no_license | SELECT Id, concat(Firstname,' ',lastname) as 'Full Name', gpa, sat
from student
where sat >= 1200
Order by lastname asc;
SELECT * FROM student
Where gpa < 3.0
Select * from Student
where gpa<3.00
order by sat desc;
select * from student;
select * from major;
Select student.id, concat(firstname, ' ', lastname... | true |
332260d7121db917b05118a50e5f6d9471f9e3ca | SQL | dighetushar654/PostgresSQL_Tut | /Querying .sql | UTF-8 | 8,293 | 3.765625 | 4 | [] | no_license | 1) Using PostgreSQL SELECT statement to query data from one column example
This example uses the SELECT statement to find the first names of all customers from the customer table:
SELECT first_name FROM customer;
OUTPUT:
first_name
-------------
Jared
Mary
Patricia
Linda
Barbara
Elizabeth
Jennifer
Maria
Susan
... | true |
31da12b23e5e929108ff930373d999f0eff2bab8 | SQL | adityajain17/College-Stuff | /DBMS/Set1_1.sql | UTF-8 | 332 | 2.6875 | 3 | [] | no_license | declare
cursor pa is select * from parts;
begin
for rec in pa
loop
if rec.pname='screw'
then
update parts set cost=cost+0.15*cost where pid=rec.pid;
elsif rec.pname='bolt'
then
update parts set cost=cost+0.1*cost where pid=rec.pid;
else
update parts set cost=cost+0.2*cost where pid=rec.pid;
end if;
end lo... | true |
6a522db2cc8453fa149f0e79775798e3c19323ae | SQL | dariotilgner/sudoku | /sudoku.sql | UTF-8 | 2,339 | 3.125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.1.12
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Erstellungszeit: 10. Mai 2014 um 12:36
-- Server Version: 5.6.16
-- PHP-Version: 5.5.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*... | true |
ffb9dd6fff5c501ac83a9db37c96b60441d2ebaf | SQL | bwoody3142/FullCourtAnalytics | /AuxiliaryFiles/fcadatabase1.sql | UTF-8 | 5,255 | 3.09375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 17, 2020 at 12:05 AM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 8.0.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_S... | true |
eab1b58d21c055933d458d60fe1286deec498b18 | SQL | ufjf-getsi/reader-game-server | /src/main/java/Persistence/SQL_Banco.sql | UTF-8 | 833 | 3.453125 | 3 | [] | no_license | --É necessário criar um banco de dados com as seguintes informações
--Nome: readergameserver, user: root, senha: 1234
--Não utilizar, somente Postgres
create table game (
game_identifier integer primary key generated always as identity,
name varchar(100),
currentPlayer integer,
turnsLeft integer,
turnOrder varchar(100... | true |
cdf1fb36cea155fb1a228df75470ee773aba0d4c | SQL | liewegas/VoterHelpLine | /sql/20201004.sql | UTF-8 | 1,843 | 3.484375 | 3 | [] | no_license | -- couple more indexes for message
CREATE INDEX idx_messages_slack_parent_message_ts
ON messages(slack_parent_message_ts);
CREATE INDEX idx_messages_twilio_message_sid
ON messages(twilio_message_sid);
-- add fields to messages to store Twilio callback data
ALTER TABLE messages
ADD COLUMN twilio_callback_status text... | true |
e2b7e62fdf305035eda136606ba00eeeb4815361 | SQL | isthatcentered/miniframework | /dump.sql | UTF-8 | 4,080 | 3.109375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Client : localhost:8889
-- Généré le : Sam 02 Septembre 2017 à 16:17
-- Version du serveur : 5.6.35
-- Version de PHP : 7.0.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Base de données : `puppy_commerce`
... | true |
2871ad2629e461192395f8cd233379d12d06fd6d | SQL | manggala/sstock-olstore | /core/yb_main.sql | UTF-8 | 18,316 | 3 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Nov 04, 2016 at 03:47 PM
-- Server version: 10.1.16-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 |
82f44603b90951db3a51457c5be8d4c4e482196a | SQL | Ethan-Hamet/backend | /script-db/procedimiento-almacenado.sql | UTF-8 | 522 | 3.59375 | 4 | [] | no_license | USE `empresa`;
DROP procedure IF EXISTS `employeeAddOrEdit`;
DELIMITER $$
USE `empresa`$$
create procedure employeeAddOrEdit (
in _id int,
in _fullname varchar(50),
in _functions varchar(100)
)
begin
if _id = 0 then
insert into Employee(fullname,functions)
values(_fullname, _functions);
se... | true |
c1e6a9de8dc9fa09e01c1680e6123255923e4ef0 | SQL | john-kelly/elm-postgrest-spa-example | /src/backend/data/follow.sql | UTF-8 | 283 | 3.15625 | 3 | [
"MIT"
] | permissive | create table follow (
follower_name text references users(name) on delete cascade default request.user_name(),
followed_name text references users(name) on delete cascade not null,
primary key (follower_name, followed_name),
check (follower_name != followed_name)
);
| true |
e1c415e66f4b351db5cd979fbe2c48a9bbc6ebfc | SQL | d1gi/Smart-Core-CMF | /system/Modules/WebForm/sql/install.mysql | UTF-8 | 4,462 | 3.53125 | 4 | [] | no_license | -- Базовые таблицы для работы юниката.
--
-- 2011-11-22.0
-- 1.
CREATE TABLE IF NOT EXISTS `{prefix}webforms` (
`form_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`site_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`name` varchar(255) NOT NULL,
`use_captcha` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'И... | true |
973641c4271f66a3b2f290d5240a11ac056bc660 | SQL | dungnguyen1709/3.4_Cac_ham_thong_dung_in_sql | /src/TH_tren_lop.sql | UTF-8 | 1,651 | 4.25 | 4 | [] | no_license | use quanlikhachhang;
create table SanPham(
MaSP int primary key ,
TenSP varchar(50)
);
create table KhachHang(
MaKH int primary key,
TenKH varchar(50)
);
create table HoaDon(
MaHD int primary key,
MaKH int,
NgayTao date,
foreign key (MaKH) references KhachHang(MaKH)
);
create table HoaDonChiTiet(
MaHD int,
MaS... | true |
30a71c98b5fa6090d0a97728be188cab2cecdbad | SQL | AissaAmor/QUIZ | /testbackend.sql | UTF-8 | 2,240 | 3.078125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1:3305
-- Généré le : jeu. 27 fév. 2020 à 16:25
-- Version du serveur : 8.0.18
-- Version de PHP : 7.3.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SE... | true |
228f547f6171a6e636506a34ba29d05a299673ab | SQL | guatajuk/hospitalVeterinario | /sistema/ScriptDBv03.sql | ISO-8859-10 | 4,942 | 3.8125 | 4 | [] | no_license |
/* *************************************************************************** */
/* BASE DE DATOS: HOSPITAL VETERINARIO UNIVERSIDAD DE CALDAS */
/* FECHA: JUNIO 11 - 2013 */
/* VERSION: V0.3 */
/* AUTOR: JUAN CASTAO */
/* ***************************************************************************... | true |
98f170edbd1e59c0e1f977559a8d1111a4288a84 | SQL | CHAMBONPERRIER/Appli_web | /gsb.sql | UTF-8 | 9,671 | 3.421875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Client : 127.0.0.1
-- Généré le : Dim 08 Mai 2016 à 22:51
-- Version du serveur : 5.6.17
-- Version de PHP : 5.5.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_... | true |
0375198f2318920f65f487a1b32009ff92302cd3 | SQL | debjyoti-pandit/FeedbackModule | /src/main/resources/query.sql | UTF-8 | 4,474 | 3.640625 | 4 | [] | no_license | use code;
drop table Feedback;
CREATE TABLE Feedback (
feedbackID integer auto_increment primary key,
feedback smallint not null,
comments text not null,
dateOfFeedback datetime not null,
chatbotName varchar(100),
givenBy varchar(40) not null
);
INSERT INTO `code`.`feedback` (`feedbackID`,`feedback`,`comments`,`dateO... | true |
e5e18f3e91a390b51336941fd52fe5eb954d94e7 | SQL | alvarperezsoucase/SINTAGMA | /REF_CONSTRAINTS/A1_DOCUMENT.sql | UTF-8 | 334 | 2.640625 | 3 | [] | no_license | --------------------------------------------------------
-- Ref Constraints for Table A1_DOCUMENT
--------------------------------------------------------
ALTER TABLE "SINTAGMA_U"."A1_DOCUMENT" ADD CONSTRAINT "A1_FKDOCUMENT01" FOREIGN KEY ("CATALEG_DOCUMENT_ID")
REFERENCES "SINTAGMA_U"."A1_DM_CATALEG_DOCUMENT" (... | true |
a9288361a7c0db95c3736fa28880756377db842b | SQL | egalli64/oved210 | /Scripts/alessandraC/Script-25mar.sql | UTF-8 | 1,018 | 3.21875 | 3 | [] | no_license | -- INSERT
select *
from regions
delete from regions
where region_id > 10
rollback
insert into regions(region_id, region_name)
values(11, 'Antartica')
insert into regions(region_id)
values(12)
--UPDATE (WHERE)
update regions
set region_name = 'Oceania'
where region_id = 12;
update regions
se... | true |
34c98292ce1aaa00356d7a354e19443002637709 | SQL | Meredith0/RMS | /doc/sql/database.sql | UTF-8 | 4,157 | 3.515625 | 4 | [
"MIT"
] | permissive | CREATE TABLE affiche
(
aid int AUTO_INCREMENT
PRIMARY KEY,
amessage varchar(500) NULL COMMENT '公告信息',
adate date NULL COMMENT '公告日期'
);
CREATE TABLE careerinfo
(
ciid int AUTO_INCREMENT
PRIMARY KEY,
eid int NULL,
stardate date NULL,
... | true |
936b2610c899d198c5b42cf4ae13a2d11d40767b | SQL | RobertWSmith/TD_SQL | /On Time Delivery/ORDER RESCHEDULING QRY.sql | UTF-8 | 14,991 | 2.96875 | 3 | [] | no_license | SELECT
RES.RESCHD_DT,
RES.PBU_NBR,
SUM( RES.BACK_ORDER_QTY ) AS BACK_ORDER_QTY,
SUM( RES.UNCONFIRMED_QTY ) AS UNCONFIRMED_QTY,
SUM( RES.OPEN_CONFIRMED_QTY ) AS OPEN_CONFIRMED_QTY,
SUM( RES.OTHER_OPEN_QTY ) AS OTHER_OPEN_QTY,
SUM( RES.TOT_CNFRM_QTY ) AS TOTAL_CONFIRMED_QTY,
SUM( RES.TOT_R... | true |
f6ffdc79762ca8160ac84cce59ac1e47f9034938 | SQL | inselberge/Coworks.In | /database/generated_sprocs/Job.sql | UTF-8 | 2,437 | 3.75 | 4 | [] | no_license | DELIMITER $$
DROP PROCEDURE IF EXISTS `Coworks_In`.`validateJob`$$
CREATE PROCEDURE `validateJob`(IN ID_VALUE int(10) unsigned)
BEGIN
SELECT 1
FROM `Job`
WHERE `id` = ID_VALUE;
END$$
DELIMITER ;
DELIMITER $$
DROP PROCEDURE IF EXISTS `Coworks_In`.`getJob`$$
CREATE PROCEDURE `getJob`(IN ID_VALUE int(10) unsigned)
B... | true |
a800810a6c0bcdc1151ae800b517c8a42c2fd22c | SQL | NJTurner/Database_Exercises | /database_exercise/albums_seeder.sql | UTF-8 | 2,230 | 2.828125 | 3 | [] | no_license | USE codeup_test_db;
TRUNCATE albums;
INSERT INTO albums (artist, name, release_date, sales_in_millions, genre)
VALUES ('Michael Jackson', 'Thriller', 1982, '46.00', 'Pop, Rock, R&B'),
('AC/DC', 'Back in Black', 1980, '26.10', 'Hard Rock'),
('Pink Floyd', 'The Dark Side of the Moon', 1973, '24.20', 'Progressive Ro... | true |
7fc74d5296a1415d836044c99e6ab05f7b1a213a | SQL | Redwanuzzaman/SQL | /SELECT/LIKE.sql | UTF-8 | 321 | 2.9375 | 3 | [] | no_license | SELECT <columns>
FROM <table>
WHERE <column> LIKE 'c%' -- will find a value which starts with "c"
SELECT <columns>
FROM <table>
WHERE <column> LIKE '%c' -- will find a value which ends with "c"
SELECT <columns>
FROM <table>
WHERE <column> LIKE 'm%r' -- will find a value which starts with "m" and ends with "r"... | true |
5baf4283502d6ecd44121a6680ed8881e3441c5d | SQL | nghiepuit/php-thuan-thaytuan | /docs/vt64u_course.sql | UTF-8 | 12,577 | 2.75 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Máy chủ: 127.0.0.1
-- Thời gian đã tạo: Th4 17, 2017 lúc 03:14 CH
-- Phiên bản máy phục vụ: 10.1.21-MariaDB
-- Phiên bản PHP: 7.1.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.