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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
fbaae7ed6ac4e2c3c295ea226098685c68913df5 | SQL | pavihra-k-s/CV_maker | /DB/cv_project.sql | UTF-8 | 3,485 | 3.078125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 28, 2021 at 08:46 AM
-- Server version: 10.1.34-MariaDB
-- PHP Version: 5.6.37
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... | true |
c2df16875aa8b7fcd2f3dfd88624917d8faf087b | SQL | Beaver-G5c/APP-isep-2017-groupe-5c | /Modules geoffrey/capteurs (2).sql | UTF-8 | 1,356 | 2.953125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jan 18, 2018 at 10:53 AM
-- Server version: 5.6.34-log
-- PHP Version: 7.1.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
3a2376d1e11028496ecf2aa8fd6dc6af0884efd0 | SQL | WS4TI/MIND | /TABLES/DEMO_PRODUCT_INFO.sql | UTF-8 | 1,228 | 2.765625 | 3 | [] | no_license | --------------------------------------------------------
-- DDL for Table DEMO_PRODUCT_INFO
--------------------------------------------------------
CREATE TABLE "WS4TI"."DEMO_PRODUCT_INFO"
( "PRODUCT_ID" NUMBER,
"PRODUCT_NAME" VARCHAR2(50 BYTE),
"PRODUCT_DESCRIPTION" VARCHAR2(2000 BYTE),
"CATEGORY" VARCH... | true |
0c7153699f44ab11de4fe805dc5c3d3de49edb90 | SQL | uoahnsuul/Capstone | /web/sqlfile/bbdms.sql | UTF-8 | 9,229 | 2.875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.4.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jul 01, 2017 at 04:17 PM
-- Server version: 5.6.26
-- PHP Version: 5.5.28
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;... | true |
822646de9cf051e931cbc63a16967cb594a8fc69 | SQL | solaresjuan98/MIA_Practica1 | /src/database/[MIA]Consultas.sql | UTF-8 | 6,362 | 4.53125 | 5 | [] | no_license | /*
1. Mostrar el nombre del hospital, su dirección y el número de fallecidos por
cada hospital registrado.
*/
SELECT DISTINCT hospital_victima, HOSPITALES.direccion_hospital, COUNT(id_victima)
FROM VICTIMAS
INNER JOIN HOSPITALES ON VICTIMAS.hospital_victima = HOSPITALES.nombre_hospital
WHERE estado_vict... | true |
322bff73dc9203063832abb0939c8424fd90ec0c | SQL | rrakesh100/posApp | /src/main/resources/db/migration/V2_8__item_updates.sql | UTF-8 | 1,517 | 3.140625 | 3 | [] | no_license |
ALTER TABLE items add COLUMN deleted BOOLEAN DEFAULT false;
ALTER TABLE items add COLUMN quantity DECIMAL DEFAULT 0;
--units will hold values like kgs / grams / litres etc - if units is null then it means that item is sold as unit packets
ALTER TABLE items add COLUMN units text DEFAULT null;
DROP TABLE IF EXISTS it... | true |
1c64bc38c0a1b977052ab675cae5f77701e7b876 | SQL | monkeyidesign/docker-compose | /init.sql | UTF-8 | 396 | 2.78125 | 3 | [] | no_license | CREATE DATABASE IF NOT EXISTS db2020;
USE db2020;
SET
SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET
time_zone = "+07:00";
CREATE TABLE `Person` (
`id` int(11) NOT NULL,
`name` varchar(20) NOT NULL
) ENGINE = InnoDB DEFAULT CHARSET = latin1;
INSERT INTO
`Person` ... | true |
670e4261de022d390d3079b0a3e9de6f2d63d50c | SQL | waelaljamal/restaurant-app | /Database.sql | UTF-8 | 17,741 | 2.90625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Apr 23, 2019 at 10:30 AM
-- Server version: 10.3.14-MariaDB
-- PHP Version: 7.3.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET... | true |
1b51ceaf051cd93378636e5c91d1189fa74314b8 | SQL | harirajibstest/SqlDevCloudTest | /SourceControlOracleRedGate/TEST_VSTSRedgate/Tables/MD_MIGR_WEAKDEP.sql | UTF-8 | 1,126 | 3.4375 | 3 | [] | no_license | CREATE TABLE "TEST_VSTSRedgate".md_migr_weakdep (
"ID" NUMBER NOT NULL,
connection_id_fk NUMBER NOT NULL,
schema_id_fk NUMBER NOT NULL,
parent_id NUMBER NOT NULL,
child_name VARCHAR2(4000 BYTE) NOT NULL,
parent_type VARCHAR2(4000 BYTE) NOT NULL,
child_type VARCHAR2(4000 BYTE) NOT NULL,
security_group_id... | true |
ed5a5d18e54a3d9921756ecd068e7bd88334c086 | SQL | DanielDanteDosSantosViana/hire.me | /schema.sql | UTF-8 | 667 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | DROP TABLE IF EXISTS `sequence`;
CREATE TABLE `sequence` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`stub` varchar(1) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `stub` (`stub`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `url_encurtada`;
CREATE TABLE `url_encurtada` (
`id` bigint(20) u... | true |
43ef4c3382b7c5497cd6d5db5565966b5396ee74 | SQL | aishwary99/TheSlamBook | /scripts/book.sql | UTF-8 | 217 | 2.921875 | 3 | [] | no_license | create table book
(
member_code int,
friend_code int,
data varchar(5000) not null,
primary key(member_code,friend_code),
foreign key(member_code) references user(code),
foreign key(friend_code) references user(code)
) | true |
7874c2861c6b9f553a4d8aeac8bb3cbcbbb46cb9 | SQL | rashid-ab/mastercity | /master.sql | UTF-8 | 11,507 | 2.890625 | 3 | [
"MIT"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 09, 2019 at 12:25 AM
-- Server version: 10.4.6-MariaDB
-- PHP Version: 7.3.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... | true |
94ea22510decb54051edca9735d92bdfebe58676 | SQL | aiemelyanov/RedGate | /TEST3/APEX_030200/Tables/WWV_FLOW_COMPANY_TYPES.sql | UTF-8 | 230 | 2.6875 | 3 | [] | no_license | CREATE TABLE apex_030200.wwv_flow_company_types (
"ID" NUMBER NOT NULL,
company_type VARCHAR2(30 BYTE) NOT NULL,
type_description VARCHAR2(255 BYTE) NOT NULL,
CONSTRAINT wwv_flow_company_types_pk PRIMARY KEY ("ID")
); | true |
5b8c25e74b8e0d9f6b125f6c35805944f78b3895 | SQL | PGaranin/SQL-EX-answer | /7tsak.sql | UTF-8 | 800 | 3.421875 | 3 | [] | no_license | Select PC.model, price
from PC
join product on
product.model = PC.model
where product.maker = 'B'
UNION
Select laptop.model, laptop.price
from laptop
join product on
product.model = laptop.model
where product.maker = 'B'
UNION
Select printer.model, printer.price
from printer
join produ... | true |
669ff424dee1b5653076a1e09a20d98ab90d8fcf | SQL | peterfei/gcr_union | /lib/tasks/sql/city.sql | UTF-8 | 2,908 | 2.765625 | 3 | [] | no_license | -- --------------------------------------------------------
-- Host: 117.34.66.7
-- Server version: 5.5.24-log - Source distribution
-- Server OS: Linux
-- HeidiSQL version: 7.0.0.4176
-- Date/time: 2013-07-06 17:58:25
-- ----... | true |
79338c21134b99fbd3467bfa48a57bf64e682f78 | SQL | truonghuy1011/SQL | /bt1/SQLQuery2.sql | UTF-8 | 3,302 | 3.171875 | 3 | [] | no_license | backup database bt1
to disk= 'D:\SQL\bt1\bt1'
with differential
/*drop table khachhang;
drop table nhanvien;
drop table hoadon;
drop table cthd;
drop table sanpham;*/
--tao bang khachhang
create table khachhang(
makh char(4) not null primary key,
hoten varchar(40) ,
dchi varchar(50),
sodt varchar(20),
ngsinh datetime,... | true |
9c42a8c7f3dcfadbf53bbb3a8259259a8b93913e | SQL | MichLanza/BDC | /db script.sql | UTF-8 | 9,699 | 3.09375 | 3 | [] | no_license | --CREATE DB
CREATE DATABASE bdconocimiento
--create
CREATE TABLE Incidencia
(
inc_id int identity PRIMARY KEY,
inc_name nvarchar(255) NOT NULL,
inc_description nVARCHAR(1000)NOT NULL,
inc_date datetime NOT NULL,
inc_soldesc nvarchar(1000),
inc_soldate datetime
);
CREATE TABLE Arc... | true |
1775c4a62d6e480de9a11e850c30831744378abc | SQL | ry321-tech/Pocketdesk | /PocketDesk/DataBase/pocketdesk.sql | UTF-8 | 11,308 | 2.6875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jul 04, 2018 at 11:02 AM
-- Server version: 5.7.22-0ubuntu0.16.04.1
-- PHP Version: 7.0.30-0ubuntu0.16.04.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_C... | true |
bb89ad24b719dd492a6ba9615c21c0203b5095ee | SQL | nguyenvanphi98/NguyenVanPhi_16T1021124_N2_PHP_KiemTra | /danhba.sql | UTF-8 | 5,090 | 3.1875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Máy chủ: 127.0.0.1:3306
-- Thời gian đã tạo: Th10 08, 2019 lúc 05:15 PM
-- Phiên bản máy phục vụ: 5.7.26
-- Phiên bản PHP: 7.2.18
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40... | true |
52c67570f9cad7e033dfe9e6debc1e050c6eaa91 | SQL | ABourcevet/SQLScript-fuer-SAP-HANA | /Listings/Listings/Kapitel 6/Listing 6.39.sql | ISO-8859-3 | 549 | 3.015625 | 3 | [
"MIT"
] | permissive | -- Listing 6.39.sql
-- Ergebnistabelle einer dynamischen SQL-Abfrage in SQLScript bernehmen
CREATE PROCEDURE get_column_values
(IN iv_column NVARCHAR(30),
IN iv_table NVARCHAR(30),
OUT ot_result TABLE(value NVARCHAR(100)))
AS BEGIN
DECLARE lv_sql NVARCHAR(10... | true |
3c1aa9fbbc945cbfbbdde77da5c5cb9a71a5c56f | SQL | vladosfedulov/NSI | /sql.sql | UTF-8 | 821 | 3 | 3 | [] | no_license |
CREATE TABLE NSI_REF_BOOKS (
id int primary key,
code text not null comment 'Код',
name text not null comment 'Название справочника',
OID text not null comment 'OID справочника'
)
comment 'Список справочников НСИ... | true |
5e2adab2c60d52c936351a26e8c715c75e833e6c | SQL | ItanuRomero/MySQL-studies | /Curso/03_02inserindoDados.sql | UTF-8 | 454 | 2.984375 | 3 | [
"MIT"
] | permissive | use cadastro;
select * from cursos;
create table if not exists gafanhotos (
id int not null auto_increment,
nome varchar(30) not null,
profissao varchar(20),
nascimento date,
sexo enum('M', 'F'),
peso decimal(5, 2),
altura decimal(3, 2),
nacionalidade varchar(20) default 'Brasil',
primary key (id)
);
insert into gaf... | true |
de1cafa31942abf1544ba65a4dff20043b26947d | SQL | solikamian/egsc | /src/main/resources/migrations/V1__INIT.sql | UTF-8 | 7,574 | 3.109375 | 3 | [] | no_license | create table cgsc.users
(
id bigserial not null
constraint users_pkey primary key,
github_id bigint not null
constraint users_github_id unique,
create_date timestamp not null,
last_update_date timestamp not null,
avatar_url varchar(25... | true |
2ef62594ebd2aa4309f46645b533a123eaa3826d | SQL | terod/sonshine | /dbscripts/nlchdbcreate.sql | UTF-8 | 21,962 | 3.78125 | 4 | [] | no_license | SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Schema nlch
-- -----------------------------------------... | true |
4ac9fa184bbd3222f2ce18918b5ea2e372f96bcf | SQL | nngo2/waa | /coffeeShop/src/main/resources/data.sql | UTF-8 | 1,767 | 2.65625 | 3 | [] | no_license | insert into role(role) values ('ADMIN');
insert into role(role) values ('USER');
/* all users have the same password = password */
insert into person(email, last_name, first_name, enable) values('admin@coffeeshop.com', 'Admin', 'Admin', 1);
insert into user(email, password, active) values('admin@coffeeshop.com', '$2a... | true |
00ad0fbb7d5f0a9ff29a221cb209391ebcc1fdd9 | SQL | escalantegc/mupum | /sql/20-07-2018.sql | UTF-8 | 942 | 3.828125 | 4 | [] | no_license | ALTER TABLE public.convenio ADD COLUMN consumo_ticket boolean;
ALTER TABLE public.convenio ALTER COLUMN consumo_ticket SET DEFAULT false;
-- Table: public.talonario_bono
-- DROP TABLE public.talonario_bono;
CREATE TABLE public.talonario_bono
(
idtalonario_bono serial NOT NULL ,
idconvenio integer NOT NULL,
idc... | true |
ee083afba8a37f57d351933ae3d67586883f9f04 | SQL | ubergeekin/SQL_2008R2 | /SQL_Scripts/SQLQuery 7.3.2.sql | UTF-8 | 680 | 3.375 | 3 | [] | no_license | ---------------------------------------
-- Creating Database Snapshots
---------------------------------------
-- View information about AdventureWorks_new Database
SELECT * FROM Sys.Database_Files
-- Create a new database snaphost
CREATE DATABASE AdventureWorks_new_Snapshot01
ON
(
NAME = 'AdventureWorks... | true |
fc303813d2b966fe9bd7d42f55a64948867b6351 | SQL | wuwenxing/das | /das/das_dao/create.sql | UTF-8 | 2,908 | 3.0625 | 3 | [] | no_license | /*
Navicat MySQL Data Transfer
Target Server Type : MYSQL
Target Server Version : 50712
File Encoding : 65001
Date: 2016-07-25 14:17:56
*/
-- ----------------------------
-- Table structure for t_system_user
-- ----------------------------
DROP TABLE IF EXISTS `t_system_user`;
CREATE TABLE `... | true |
dde64f4998cf35d59ca5b5f1010aaa0854aee51b | SQL | Scarnouse/RESTEmpleados | /SQLScripts/ProjectTable.sql | UTF-8 | 290 | 3.28125 | 3 | [] | no_license | CREATE TABLE IF NOT EXISTS PROJECT (
n_proj int(10) unsigned NOT NULL AUTO_INCREMENT,
name_proj varchar(50) NOT NULL,
budget_proj int(10) NOT NULL,
PRIMARY KEY (n_proj),
UNIQUE KEY proj_name_unique (name_proj)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1; | true |
a786dfee324eaf3d2f2c119ed359ceace6105c70 | SQL | ibm-abdullah/dashboard | /category_table.sql | UTF-8 | 468 | 2.546875 | 3 | [] | no_license | CREATE TABLE category
(
id serial NOT NULL,
parentid bigint,
name character varying(255),
createbyuserid bigint,
createtimemillis bigint,
lastupdatetimemillis bigint,
updatebyuserid bigint,
userrequest boolean,
show boolean,
description text,
picturename character varying(255),
picturepath chara... | true |
ce1fc817fe72141ad04954c5092eff1de8b89ce9 | SQL | acenine/databases | /server/schema.sql | UTF-8 | 1,271 | 3.9375 | 4 | [] | no_license | DROP DATABASE chat;
CREATE DATABASE chat;
USE chat;
CREATE TABLE users (
userID INT NOT NULL AUTO_INCREMENT,
username varchar(20) NOT NULL,
PRIMARY KEY (userID),
UNIQUE KEY (username)
);
-- CREATE TABLE rooms (
-- roomID INT NOT NULL,
-- name TEXT NOT NULL,
-- PRIMARY KEY (roomID)
-- );
-- CREATE TABLE... | true |
2be15b4705b10c8102a761fc56133a67933ea090 | SQL | khalidbinwalid0796/POS-using-php | /stock.sql | UTF-8 | 30,769 | 3.53125 | 4 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 31, 2021 at 08:34 AM
-- Server version: 10.1.29-MariaDB
-- PHP Version: 7.0.26
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... | true |
effda740f7412459f4ac8064dc9b19f7327af20f | SQL | felipekari/sql_modelamiento | /caso2.sql | UTF-8 | 551 | 3.109375 | 3 | [] | no_license | CREATE DATABASE caso2;
\c caso2;
CREATE TABLE alumnos(
nombre VARCHAR(150) NOT NULL,
rut VARCHAR(10) NOT NULL PRIMARY KEY
);
CREATE TABLE curso(
alumno_rut VARCHAR(10) NOT NULL,
FOREIGN KEY(alumno_rut) REFERENCES alumnos(rut)
);
CREATE TABLE profesores(
nombre VARCHAR(150) NOT NULL PRIMARY KEY,
departamento VARCHAR... | true |
208b42542c0c39f62703ed3fa7a4e879d896fec3 | SQL | AlexandrIoda/telephone_station_ioda | /datebase_dump/telephone_station.sql | UTF-8 | 4,350 | 3.046875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.0.1
-- https://www.phpmyadmin.net/
--
-- Хост: localhost
-- Время создания: Май 31 2018 г., 17:52
-- Версия сервера: 8.0.11
-- Версия PHP: 7.2.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_S... | true |
eb0c1595a310ce1e4e65477b3d41a6502c4af053 | SQL | minhnhut0602/Salon | /src/main/resources/db/migration/V12__service.sql | UTF-8 | 4,967 | 2.875 | 3 | [] | no_license | CREATE TABLE IF NOT EXISTS `service` (
`service_id` varchar(255) NOT NULL,
`name` varchar(35) NOT NULL,
`category` varchar(35) NOT NULL,
`service_code` char(4) NOT NULL,
`addon_id` varchar(255) DEFAULT NULL,
`timeblock` int(3) NOT NULL,
`role_id` varchar(255) NOT NULL,
`base_price` decimal(5,2) NOT NULL... | true |
8f227af7a0e0e734dcd7c20046951ba17e42d8e3 | SQL | jmhobbs/storytlr | /protected/install/update/0.9.2_to_latest/plugin_scrnshots.sql | UTF-8 | 639 | 3.03125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `scrnshots_data` (
`id` int(10) unsigned NOT NULL auto_increment,
`source_id` int(10) unsigned NOT NULL,
`created_at` varchar(45) NOT NULL,
`title` text NOT NULL,
`description` text NOT NULL,
`link` varchar(256)... | true |
f0307708845a4a79a22324dc7879d62f3b67edec | SQL | hernan-alperin/segmentacion | /EjemplosComunasCABA/segmentar_lazy.sql | UTF-8 | 1,823 | 4.1875 | 4 | [
"MIT"
] | permissive | /*
titulo: segmentar_lazy.sql.sql
descripción:
segemntar de la forma mas facil posible 1 mza = 1 sgm
para testear el mapeo
autor: -h
fecha: 2019-06-04 Ma
*/
create schema if not exists segmentaciones;
--- usando ventanas para ayudar a calcular cortes
drop table if exists segmentaciones.facil;
create table segmentaci... | true |
c5a57e5989314d4b9ddba4c327c653b1c2e1d7fe | SQL | provectus/streaming-data-platform | /fds-lambda-ml-integration/src/main/resources/categorized_bids.sql | UTF-8 | 845 | 3.171875 | 3 | [
"Apache-2.0"
] | permissive | select
case when i.tx_id is null then 0 else 1 end positive,
bitwise_and(from_big_endian_64(xxhash64(to_utf8(cast(b.campaign_item_id as varchar)))), 9223372036854775807) / 9223372036854775807.0 as campaign_item_id,
bitwise_and(from_big_endian_64(xxhash64(to_utf8(b.domain))), 9223372036854775807) / 922337203685477... | true |
1612312fa77aa57bee1b8408e998e58b4b2fc43f | SQL | teodorciripescu/FII | /AN 2 SEM 1/RETELE/tema2_teodor_ciripescu/reteleChatServer/cmake-build-debug/mysql.sql | UTF-8 | 1,307 | 3.59375 | 4 | [] | no_license | PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE IF NOT EXISTS "users" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
"username" TEXT NOT NULL UNIQUE,
"password" TEXT NOT NULL
);
INSERT INTO users VALUES(1,'teodor','parola');
CREATE TABLE IF NOT EXISTS "friend_lists" (
"id" INTEGER NOT NULL PRIMA... | true |
70074af3e28b55a17243b1b5b1dedf51c1b1f3f3 | SQL | adiclepcea/cs_go_rabbitmq_aspx_mysql | /web_client/AspxClient/database creation.sql | UTF-8 | 433 | 2.953125 | 3 | [] | no_license | create database utimeline;
use utimeline;
create table timeline (id integer auto_increment, timepoint timestamp(3) default CURRENT_TIMESTAMP(3), id_agent integer not null, x integer not null, y integer not null, primary key PK_ID(id));
create index IX_TIMEPOINT on timeline(timepoint,id_agent);
create user 'user_timeli... | true |
0690fd3f5a11ba92909703dde15ee14cc0955c55 | SQL | xxgb/shadowsocks-count-system | /backup/speedshadow.sql | UTF-8 | 10,779 | 3.140625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Feb 10, 2017 at 04:10 PM
-- Server version: 5.5.54-0ubuntu0.14.04.1
-- PHP Version: 5.5.9-1ubuntu4.20
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... | true |
43c12fa12c3615452b9064b7cf95ed10b536545e | SQL | nguyenthiennhanc0920g1/C0920G1-NguyenThienNhan | /Module 3/1.Database/Bai_test_suc_chiu_dung_cua_anh_Trung_DP/Shopee_code.sql | UTF-8 | 671 | 3.28125 | 3 | [] | no_license | use shopee;
select * from products;
SET SQL_SAFE_UPDATES = 0;
-- B.Thao tác dữ liệu --
update products set products.price = products.price + 10 where price <= 1000;
update products set products.discount = products.discount + 5 where discount <= 10;
delete from products where products.stock = 0;
-- C.Truy vấn dữ liệu ... | true |
6a9ec42e0df201b27f058026b3699ff4734ae571 | SQL | grahamcrowell/pyfolio | /data/bkup/prices.sql | UTF-8 | 1,577 | 2.90625 | 3 | [] | no_license | -- MySQL dump 10.13 Distrib 5.6.23, for osx10.8 (x86_64)
--
-- Host: localhost Database: stock_stat
-- ------------------------------------------------------
-- Server version 5.6.23
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */... | true |
3772d5d689c4dfaf3cd660b1f2c7ed73afef522f | SQL | kappooo/Count-Visits | /counter.sql | UTF-8 | 1,679 | 2.9375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 04, 2017 at 06:30 PM
-- Server version: 5.7.14
-- PHP Version: 5.6.25
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */... | true |
dfedea9468be7b7374b5fd2ce745dd3028640f49 | SQL | dhenriquedba/SQL | /scripts_auxiliares/MetaData.sql | ISO-8859-1 | 1,573 | 3.015625 | 3 | [] | no_license | set echo off feedback off pages 0 linesize 150 long 2000000000 feedback off
Prompt observar os comandos abaixo para manipular o que retornado !
Prompt execute DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'STORAGE',false);
Prompt SELECT DBMS_METADATA.GET_DDL('INDEX','IX1_DPORC') FROM dual;
Prompt ... | true |
b8371bf154180986cf39926115c315ac3d44c386 | SQL | pengshuangbao/tpc_ds_test | /sql/query/query_s_35.sql | UTF-8 | 567 | 4 | 4 | [] | no_license | use tpc_test;
select a.ca_state state, count(*) cnt
from customer_address a
,customer c
,store_sales s
,date_dim d
,item i
where a.ca_address_sk = c.c_current_addr_sk
and c.c_customer_sk = s.ss_customer_sk
and s.ss_sold_date_sk = d.d_date_sk
and s.ss_item_sk = i.i_item_sk
and d.d_month_seq =
(select distinct (d_... | true |
ab292352fd701bf80d6fb9c9dd33e8056ae8e4e1 | SQL | madaramanage/Payments | /TextFiles/payments.sql | UTF-8 | 1,146 | 2.65625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: May 25, 2019 at 05:55 PM
-- Server version: 5.7.24
-- PHP Version: 7.2.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CH... | true |
339749b595c06f780520d3dd4d2baa1586456137 | SQL | thiagorp/coolops-backend | /migrations/0006_add_builds_table.sql | UTF-8 | 534 | 3.875 | 4 | [] | no_license | create table builds (
id uuid default uuid_generate_v4() not null,
name character varying(255) not null,
params jsonb,
project_id uuid not null,
created_at timestamp without time zone not null,
updated_at timestamp without time zone not null
);
alter table only builds add constraint builds_pkey primary key... | true |
8c6b4ba93652b8ef9044515267c02a1a3d56ecf9 | SQL | dmadan86/Prueba | /doc-web/sql/cambios_contrato_Cenac_334_2017/issue_feature_162.sql | UTF-8 | 13,578 | 3.1875 | 3 | [] | no_license | --
-- Author: jgarcia@controltechcg.com
-- Created: 11/05/2018 Issue #162 (SICDI-Controltech) feature-162
--
-- -----------------------------------------------------------------------------
-- TABLA: ROL
-- -----------------------------------------------------------------------------
INSERT INTO ROL
(ROL_ID, QU... | true |
c209c5ed7110fb0ff42f57346310169a6dc57fa1 | SQL | instructorjonathanc/cursobasededatos | /querys_mysql/querys.sql | UTF-8 | 2,940 | 3.984375 | 4 | [] | no_license | -- creando tablas
CREATE TABLE `dev`.`users` (
`id_users` INT NOT NULL AUTO_INCREMENT,
`first_name` VARCHAR(45) NULL,
`last_name` VARCHAR(45) NULL,
`email` VARCHAR(45) NULL,
`password` VARCHAR(100) NULL,
`creaded_at` DATE NULL,
PRIMARY KEY (`id_users`),
UNIQUE INDEX `email_UNIQUE` (`email` ASC));
-- mo... | true |
4715d19347e28c0d6d7a764d95d8e1fc45e86d42 | SQL | TonyKartony/BI-Lab-2017 | /_0. DWH/Projects/Maryna_Hlazunova/batches/3nf08_batch_customers/cls_customers.sql | UTF-8 | 899 | 2.8125 | 3 | [] | no_license | /**===============================================*\
Name...............: Cleansing table cls_customers BL_CL layer
Contents...........: Create table description
Author.............: Maryna Hlazunova
Date...............: 25-Nov-2017
\*=============================================== */
DROP TABLE cls_customers;
... | true |
c03563ae749c5255cbbf7765278190a6ac6a9a05 | SQL | 8nTJ8yl8RQ/FINAL | /phpMyEdit/Status.sql | UTF-8 | 3,231 | 3.515625 | 4 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 3.1.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Oct 25, 2011 at 05:51 PM
-- Server version: 5.1.30
-- PHP Version: 5.2.8
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OL... | true |
7d385a65996590d48ef68d03d6e24ae400342b27 | SQL | ruo2012/meta-search-engine | /engine.sql | UTF-8 | 2,760 | 2.90625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 3.5.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Nov 04, 2012 at 11:37 AM
-- Server version: 5.5.25a
-- PHP Version: 5.4.4
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*... | true |
03a5d9603c101b4777603c5d983ad0d37d664f1f | SQL | Speckoz/BukkitDev | /Speckoz.BukkitDev/BukkitDev.Desktop/dados.sql | UTF-8 | 1,781 | 3.125 | 3 | [
"LicenseRef-scancode-other-permissive"
] | permissive | create database if not exists BukkitDev;
drop database if exists BukkitDev;
use BukkitDev;
##########################
######### testes #########
##########################
#====================================================================================
show tables;
select * from PluginList;# where NomePlugin li... | true |
281a0bcd412bf487f5acfc2599f6c386a24c0734 | SQL | nmyphp/logminer_client | /src/main/resources/sql/latest_scn.sql | UTF-8 | 397 | 3.0625 | 3 | [] | no_license | SELECT
MIN(FIRST_CHANGE#) FIRST_CHANGE#
FROM
(
SELECT
FIRST_CHANGE#
FROM
V$LOG
WHERE
? BETWEEN FIRST_CHANGE# AND NEXT_CHANGE#
UNION
SELECT
FIRST_CHANGE#
FROM
V$ARCHIVED_LOG
WHERE
? BET... | true |
6a6a56c988ecfda4a9127c42a7d2ca1334880228 | SQL | mratkovic032/blackjack | /sql/blackjack.sql | UTF-8 | 3,470 | 3.75 | 4 | [] | no_license | CREATE TABLE user_list (
id INT NOT NULL AUTO_INCREMENT,
username VARCHAR(100) NOT NULL,
pass VARCHAR(50) NOT NULL,
credit INT NOT NULL,
bet INT NOT NULL DEFAULT 0,
gender ENUM('male', 'female') NOT NULL,
birthday DATE NOT NULL,
country VARCHAR(100) NOT NULL,
email VARCHAR(1... | true |
398ad84e5e6ae7cdf0aca8ef5d4c7b04a972f011 | SQL | rajkaran/PersonnelProjects | /classmate/note.sql | UTF-8 | 1,539 | 2.703125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.0.4.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Dec 18, 2013 at 09:09 AM
-- Server version: 5.6.11
-- PHP Version: 5.5.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;... | true |
6b4cba9bae5af9442d5687120266feb8ad7ac355 | SQL | martagpb/tennis-project | /215_create_table_iot.sql | ISO-8859-1 | 1,549 | 3.296875 | 3 | [] | no_license | -- -----------------------------------------------------------------------------
-- Gnration des tables IOT (Index Organized Table) de la base de donnes pour
-- Oracle Version 10g
-- (10/5/2011)
-- -------------------------------------------------------------------------... | true |
100b012d1d8aadbb3eae6aac1408db45be494615 | SQL | mp3ver/sudiz | /БД/sudiz_detail.sql | UTF-8 | 850 | 2.8125 | 3 | [] | no_license | create table detail
(
id int auto_increment
primary key,
vendor_code varchar(20) not null,
name mediumtext null,
note mediumtext null,
constraint detail_vendor_code_uindex
unique (vendor_code)
)
collate = utf8_unicode_ci;
INSERT INTO sudiz.detail (id, ve... | true |
13a7c12bd22047ae7abd660358f6451f4b30d573 | SQL | mbrint/random_sql | /sql/DBA-create-new-user-and-db.sql | UTF-8 | 5,628 | 3.28125 | 3 | [] | no_license | CREATE USER MGPROD IDENTIFIED BY "odb80mgprod";
grant create session to MGPROD;
grant create synonym to MGPROD;
grant create procedure to MGPROD;
grant create trigger to MGPROD;
grant create table to MGPROD;
grant create type to MGPROD;
grant create view to MGPROD;
grant create sequence to MGPROD;
-- needed for kim_inf... | true |
2db69eaf53da9078031ce62a732d40a4698c69c0 | SQL | marjan1/urls-project | /backend/src/main/resources/schema-mysql.sql | UTF-8 | 2,092 | 2.890625 | 3 | [] | no_license | CREATE DATABASE IF NOT EXISTS `linksdb2` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */;
USE `linksdb2`;
-- MySQL dump 10.13 Distrib 8.0.13, for Win64 (x86_64)
--
-- Host: localhost Database: advocate10
-- ------------------------------------------------------
-- Server version 8.0.13
/*!401... | true |
74a219483122526d8181b8434ea21e670d905d52 | SQL | Dangnh13/core-service | /schema-migration/src/main/resources/jp/afterfit/core/migration/scripts/20200703034443_init_DDL_TABLE_EOFFICE.sql | UTF-8 | 2,236 | 3.03125 | 3 | [] | no_license | --
-- Copyright 2010-2016 the original author or authors.
--
-- 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
--
-- Unles... | true |
3fb2e49d6cd03a77620dce13e2bb8da37e0c7e6d | SQL | jamesacox53/CompleteSQLBootcamp | /Section7 - Assessment Test 2/assessmentTest2.sql | UTF-8 | 1,706 | 4.21875 | 4 | [] | no_license | /* Question 1 */
SELECT * FROM cd.facilities;
/* Question 2 */
SELECT name, membercost FROM cd.facilities;
/* Question 3 */
SELECT * FROM cd.facilities
WHERE membercost > 0;
/* Question 4 */
SELECT facid, name, membercost, monthlymaintenance FROM cd.facilities
WHERE membercost > 0 AND membercost < (monthlymainte... | true |
88f6a787e2a5763b857f4464cf1e2e3a83366894 | SQL | VictorChavdarski/SoftUniExercises | /MS SQL/Exam 08 Apr 2021/Reports&Categories.sql | UTF-8 | 137 | 3.671875 | 4 | [] | no_license | SELECT r.Description, c.Name
FROM Reports AS r
JOIN Categories AS c ON c.Id = r.CategoryId
ORDER BY r.Description ASC, c.Name ASC
| true |
744f7a613a4441899cf18d48f30d83b1e9b62ecb | SQL | GlinkIsCoding/DAWAD20_A01704354 | /zombies/albumes.sql | UTF-8 | 2,169 | 3.125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Oct 02, 2020 at 06:59 AM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.4.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... | true |
ccbc4a9f480a2850a4c2ffa7f5e64ee21322fae6 | SQL | frankalberts/examen | /excellenttaste.sql | UTF-8 | 6,108 | 3.203125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Gegenereerd op: 21 mei 2019 om 14:17
-- Serverversie: 10.1.29-MariaDB
-- PHP-versie: 7.1.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARAC... | true |
a1eb4798b93b4f48f0c89d75fa351f4fb15c2248 | SQL | Zahidsqldba07/CodeSignal-Arcade-Databases-Solutions | /JOIN Us at the Table!/companyEmployees/code.sql | UTF-8 | 290 | 2.9375 | 3 | [] | no_license | /*Please add ; after each select statement*/
CREATE PROCEDURE companyEmployees()
BEGIN
SELECT departments.`dep_name`, employees.`emp_name`
FROM departments, employees
GROUP BY departments.`dep_name`, employees.`emp_name`
ORDER BY departments.`dep_name`, employees.`emp_name`;
END
| true |
61663e14f5c12e62523de0910dbc63f1fa01f416 | SQL | jfeser/castor-bench | /tpch-hyper/2.sql | UTF-8 | 335 | 2.671875 | 3 | [] | no_license | SELECT
s_acctbal,
s_name,
n_name,
p_partkey,
p_mfgr,
s_address,
s_phone,
s_comment
FROM
q2,
q2_supplier
WHERE
q2.s_suppkey = q2_supplier.s_suppkey
AND p_size = 15
AND p_type LIKE '%BRASS'
AND r_name = 'EUROPE'
ORDER BY
s_acctbal DESC,
n_name,
s_name,
... | true |
322f01989419d206e92ac0811411ee6394f859ee | SQL | IBUNHABIBU/SQL | /queries/Select_from_nobel.sql | UTF-8 | 1,266 | 3.921875 | 4 | [] | no_license | -- Question 1
SELECT yr, subject, winner
FROM nobel
WHERE yr = 1950
-- Question 2
SELECT winner
FROM nobel
WHERE yr = 1962
AND subject = 'Literature'
-- Question 3
SELECT yr,subject
FROM nobel
WHERE winner= 'Albert Einstein'
-- Question 4
SELECT winner
FROM nobel
WHERE yr>=2000
AND subject ='Peace'
... | true |
5b69aa56a202403ce4786ecd8dc20cd83da1499a | SQL | Manas-Goel/CorporateQnA | /Data/Views/viewQuestionAnswers.cs.sql | UTF-8 | 168 | 2.8125 | 3 | [] | no_license | CREATE VIEW viewQuestionAnswers AS
SELECT Answers.*,UserDetails.Name,UserDetails.ProfileImageUrl FROM Answers
INNER JOIN UserDetails ON Answers.UserId=UserDetails.Id | true |
7d943ed6ddc84409d51096ad2d3087ecf3e64bb3 | SQL | UAMS-DBMI/PosdaTools | /posda/posdatools/queries/sql/FilesByPatientAndUploadParms.sql | UTF-8 | 797 | 3.59375 | 4 | [
"Apache-2.0"
] | permissive | -- Name: FilesByPatientAndUploadParms
-- Schema: posda_files
-- Columns: ['file_id']
-- Args: ['import_comment_like', 'import_type_like', 'from', 'to', 'patient_id']
-- Tags: ['find_series', 'import_events']
-- Description: Get a list of file_id's by patient_id and upload parms
--
-- Used by script CreateActivityListF... | true |
b7455a5a85313c7a43c3a0dfd535fc7d3a730756 | SQL | ladaposamuel/nigerian-banks | /banks.sql | UTF-8 | 1,527 | 3.0625 | 3 | [] | no_license |
--
-- Table structure for table `banks`
--
CREATE TABLE `banks` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL,
`code` varchar(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `banks`
--
INSERT INTO `banks` (`id`, `name`,`code`) VALUES
(1, 'Access Bank','044'),
(2, 'Citiba... | true |
dd87ff0b4037620aa63ef60c6d8fbb57050f518a | SQL | RCG1961/Curs_Angular | /SQL/NIVELL1/books.sql | UTF-8 | 3,267 | 3.1875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 08-07-2021 a las 16:50:06
-- Versión del servidor: 10.4.19-MariaDB
-- Versión de PHP: 8.0.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_... | true |
499e9a4bfb32d60aa511a57f1dd5b2d7713229d7 | SQL | hfrzhanghao/note | /notebook.sql | UTF-8 | 9,960 | 2.953125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 2017-08-16 11:16:16
-- 服务器版本: 10.1.21-MariaDB
-- PHP Version: 5.6.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/... | true |
8a969044a84ba2235fdadf89aab02aa878c31c1f | SQL | EmanabdoEtman/paytabs_task | /paytabs_task.sql | UTF-8 | 1,730 | 3.078125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 02, 2020 at 12:18 PM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.1.33
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
943e2ccbf074deccbd4e00a984b927a00a26b77c | SQL | kingkongmok/kingkongmok.github.com | /bin/sql-script/free_space_TBS.sql | UTF-8 | 911 | 3.515625 | 4 | [
"MIT"
] | permissive | set linesize 9999
set pagesize 100
column "Tablespace" format a25
column "Used MB" format 99,999,999
column "Free MB" format 99,999,999
column "Total MB" format 99,999,999
select
fs.tablespace_name "Tablespace",
(... | true |
d042db293f48b0b97ed4eb10c198f31c351ffbdf | SQL | NTXpro/NTXbases_de_datos | /DatabaseNTXpro/ERP/Stored Procedures/Procs1/Usp_Ins_Cuenta.sql | UTF-8 | 1,016 | 2.90625 | 3 | [] | no_license | CREATE PROC [ERP].[Usp_Ins_Cuenta]
@IdCuenta INT OUT,
@Nombre VARCHAR(50),
@CuentaInterbancaria VARCHAR(20),
@IdEmpresa INT,
@IdEntidad INT,
@IdMoneda INT,
@IdTipoCuenta INT,
@IdPlanCuenta INT,
@FechaApertura DATETIME,
@SaldoInicialDebe DECIMAL(14,5),
@SaldoInicialHaber DECIMAL(14,5),
@UsuarioRegistro VARCHAR(250),
@F... | true |
acdd1dd00f345fbdcd267ddd5f4468ad841eef78 | SQL | mrabbah/dbsbackup | /req1.sql | UTF-8 | 191 | 3.4375 | 3 | [] | no_license | select distinct(p.phone_id), u.nom, u.prenom from position_geo as p, utilisateur as u
where p.phone_id = u.phone_id
and u.phone_id <> ''
and u.nom ilike '%user%'
order by p.phone_id desc; | true |
8a72cbd47bf79a84b85d15f95abea9e266e25f8a | SQL | sgmqs/quasar | /data/sql/migrations/003_schema_gladiator.sql | UTF-8 | 4,164 | 3.15625 | 3 | [
"MIT"
] | permissive | # ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: quasar.c9ajz690mens.us-east-1.rds.amazonaws.com (MySQL 5.7.17-log)
# Database: gladiator
# Generation Time: 2017-09-25 15:50:02 +0000
# ***... | true |
96c790a59cf9915e27d9ce4fff3247751a2b99ad | SQL | cominhtien30/DACN | /dacn.sql | UTF-8 | 34,970 | 3.015625 | 3 | [
"MIT"
] | permissive | -- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Máy chủ: 127.0.0.1
-- Thời gian đã tạo: Th5 15, 2021 lúc 05:53 AM
-- Phiên bản máy phục vụ: 10.4.17-MariaDB
-- Phiên bản PHP: 7.3.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHAR... | true |
e0c5beec850a1fe19e702240bb2aa36859bab68c | SQL | altamira/visualstudio | /Sistema de Informação Altamira/EGISSQL.Database/dbo/Stored Procedures/Procs1/pr_consulta_pedido_composicao.sql | UTF-8 | 3,204 | 3.515625 | 4 | [] | no_license |
create procedure pr_consulta_pedido_composicao
@cd_pedido_venda int,
@cd_item_pedido_venda int
as
Select
a.cd_pedido_venda as 'Pedido',
a.dt_pedido_venda as 'Emissao',
a.cd_vendedor as 'CodVendedor',
b.cd_item_pedido_venda as 'Item',
b.qt_item_pedi... | true |
cc5dd37a890d3697cd075350b28203fa3ec50672 | SQL | prutha28/University-Students | /studentportal/sql schema/TEACHES.sql | UTF-8 | 1,275 | 3.671875 | 4 | [] | no_license | ------------------------------------------------------------------
-- TABLE TEACHES
------------------------------------------------------------------
CREATE TABLE TEACHES
(
COURSE_ID VARCHAR (10),
PROF_ID VARCHAR (10),
TERM_ID VARCHAR (10)
)
NOCACHE
LOGGING;
ALTER TABLE `universitydb`.`TEACHES`
... | true |
bb76e418b4837efb7025e0579026c0e6f652eba5 | SQL | wolferton/87rb | /87rb-trigger/resource/queries/jobs.sql | UTF-8 | 83 | 2.71875 | 3 | [] | no_license | ID:JOB_SELECT_BY_REF
SELECT
id
FROM
jobs.jobs j
WHERE
j.ref = '${ref}
| true |
acce0d6515ffc758430c989dac4d0de0f22695fc | SQL | opitzconsulting/orcas | /orcas_integrationstest/testspool/tests/test_partition_partition_key_col_order/a.sql | UTF-8 | 189 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | create table tab_new
(
col1 number(10),
col2 number(10)
)
partition by range (col1,col2)
(
partition xy10 values less than (10,5),
partition xy20 values less than (maxvalue,maxvalue)
);
| true |
875ffc011653f71d5acfba6d8d94f3e279832334 | SQL | hoacg/WJBD_SQL-Commands | /library_management.sql | UTF-8 | 4,076 | 4.28125 | 4 | [] | no_license | CREATE SCHEMA `library_management` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
create table library_management.books
(
id int auto_increment primary key,
book_name varchar(255) null,
authors varchar(1000) null,
publisher varchar(255) null
);
create table library_management.students... | true |
965bce3c602f64a05ef9b20ea84330c1f4205258 | SQL | katsukiwataru/web-pro | /ex0611-1/fk.sql | UTF-8 | 525 | 3.609375 | 4 | [] | no_license | // 外部キーを使う例
// 学部
create table faculty(
id int auto_increment not null primary key,
name varchar(255) not null);
// 学生
create table students
(id int auto_increment not null primary key,
faculty_id int not null,
code char(8) not null,
name varchar(255) not null,
grade int no... | true |
809552f0582569ec38872e01226dfc982993bcc0 | SQL | yuenushan/prefectj | /src/main/resources/db/schema.sql | UTF-8 | 1,376 | 3.53125 | 4 | [] | no_license | CREATE TABLE `user` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
`name` varchar(64) NOT NULL COMMENT 'name',
`age` int(11) NOT NULL DEFAULT 0 COMMENT 'age',
`create_time` bigint(20) unsigned NOT NULL COMMENT 'create time',
`update_time` bigint(20) unsigned NOT NULL COMMENT 'update time',... | true |
4785ba0f1248ac1b35f9eb99012a109f332d257f | SQL | elliottbolzan/Fermi | /Submissions/Milestone 2/create.sql | UTF-8 | 1,207 | 3.515625 | 4 | [] | no_license | CREATE TABLE Person (
id INTEGER PRIMARY KEY,
name VARCHAR(256) NOT NULL,
email VARCHAR(256) NOT NULL
);
CREATE TABLE Company (
id INTEGER PRIMARY KEY,
name VARCHAR(256) NOT NULL
);
CREATE TABLE University (
id INTEGER PRIMARY KEY,
name VARCHAR(256) NOT NULL
);
CREATE TABLE Education (
... | true |
e400b0234658b31b69b87f165b872b7888723848 | SQL | google-code/beaver-mvc-ssh | /Liuyun/sql/Oracle/03.证件类型表TBL_CARDTYPE.sql | GB18030 | 2,676 | 2.96875 | 3 | [] | no_license | /*==============================================================*/
/* DBMS name: ORACLE Version 10gR2 */
/* Created on: 2013-06-08 17:19:48 */
/*==============================================================*/
/*==========================================... | true |
9946b5830c3f4b2cfb25d42780de8ad1e65b65bf | SQL | radtek/abs3 | /sql/mmfo/bars/View/v_staff_user_role_lookup.sql | UTF-8 | 1,286 | 2.984375 | 3 | [] | no_license |
PROMPT =====================================================================================
PROMPT *** Run *** ========== Scripts /Sql/BARS/View/V_STAFF_USER_ROLE_LOOKUP.sql =========*
PROMPT =====================================================================================
PROMPT *** Create view V_ST... | true |
cf35e4c24b24bf39cc3031ca86da8fbb161bd046 | SQL | tcerqueira/FlexibleLOP | /MES/database/tables.sql | UTF-8 | 1,563 | 3.859375 | 4 | [] | no_license | -- ==== Document for the sql tables ====
-- Transform Order
CREATE TABLE IF NOT EXISTS TransformOrder (
id_number INTEGER,
piece_initial INTEGER,
piece_final INTEGER,
total_amount INTEGER,
done_amount INTEGER,
doing_amount INTEGER,
sent_at INTEGER,
received_at INTEGER,
max_delay INT... | true |
0b54391934aeb336aab0a92ec970d8418aeb235c | SQL | yanni-lab/Online-quiz-reflection-platform | /Database/create_db.sql | UTF-8 | 4,732 | 3.9375 | 4 | [] | no_license | CREATE DATABASE `berry_street`;
USE `berry_street`;
/*Table structure for table `user` */
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user`
(
`user_id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'unique user id',
`username` varchar(30) NOT NULL COMMENT 'log in username',
`password` varchar(... | true |
7bc9fe51394610e86002383aee61e0561349b743 | SQL | Gusttavomarinho/chat-estudo-02 | /sql.sql | UTF-8 | 490 | 2.84375 | 3 | [] | no_license | CREATE DATABASE chat_b7web;
USE chat_b7web;
CREATE TABLE users(
id INT AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(50) NOT NULL,
pass VARCHAR(255)NOT NULL
);
ALTER TABLE users ADD COLUMN loginhash VARCHAR(25);
CREATE TABLE groups(
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100) NOT NULL
);
C... | true |
1585a8c5f24a6906bc1a577b4191b34fc2ea72cc | SQL | stjdydayou/fastweb-platform | /plugin-fort-gateway/src/main/resources/db.sql/V1.0__init_plugin_db.sql | UTF-8 | 4,743 | 2.84375 | 3 | [] | no_license | -- MySQL dump 10.16 Distrib 10.2.7-MariaDB, for osx10.12 (x86_64)
--
-- Host: localhost Database: dliyun_platform
-- ------------------------------------------------------
-- Server version 10.2.7-MariaDB-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=... | true |
7fb90272204e6a7dcf30bc30ad624f2375c98aa4 | SQL | KIMJAEKWON-0729/Oracle_sql | /연습문제3.sql | UHC | 2,316 | 4.71875 | 5 | [] | no_license | --QUESTION (group/having)
--1. ̺ μ ִ ϶.
select deptno ,max(sal)
from emp
group by deptno
--2. ̺ ּ ϵ CLERK ϶. (having ̿)
select job ,min(sal)
from emp
group by job
having job = 'CLERK'
--3. Ŀ̼ å ΰ?
select ename
from emp
where comm is not null;
--4. 'SALESMAN'̰ 1000̻
-- ̸ ϶.
... | true |
2d74f887dc5eb2a295823d9635f6a508230b2d51 | SQL | xeredi/portico | /integra-portico-db/etc/database/sql/migraciones.sql | UTF-8 | 1,115 | 3.21875 | 3 | [] | no_license | ALTER TABLE TBL_ENTIDAD_GRUPO_DATO_ENGD ADD engd_pk NUMBER(19);
UPDATE TBL_ENTIDAD_GRUPO_DATO_ENGD SET engd_pk = ENGD_ENTI_PK * 10 + ENGD_ORDEN;
ALTER TABLE TBL_ENTIDAD_GRUPO_DATO_ENGD drop constraint pk_engd;
ALTER table TBL_ENTIDAD_GRUPO_DATO_ENGD add CONSTRAINT pk_engd PRIMARY KEY (engd_pk);
INSERT INTO TBL_I18... | true |
f068c958ef20f298a7d90ee5cf71f652a42abde5 | SQL | arc0035/Data-Reconcile | /src/main/scripts/init.sql | UTF-8 | 930 | 2.71875 | 3 | [
"Apache-2.0",
"Apache-1.1"
] | permissive | CREATE TABLE `task_info` (
`pk_id` bigint(20) NOT NULL AUTO_INCREMENT,
`node_id` varchar(255) NOT NULL DEFAULT '""',
`task_id` varchar(255) NOT NULL DEFAULT '""',
`status` tinyint(4) NOT NULL,
`triggered` tinyint(4) NOT NULL,
`business_file_name` varchar(255) DEFAULT NULL,
`business_file_path` varchar(255... | true |
efbf68e46e5bdaaafa2283823ba6b36cc006df03 | SQL | SLIPO-EU/workbench | /command/src/main/resources/db/migration/V1_0_30__Create_table_for_api_calls.sql | UTF-8 | 929 | 3.453125 | 3 | [
"MIT",
"OFL-1.1",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | DROP TABLE IF EXISTS public.process_execution_api;
DROP SEQUENCE IF EXISTS public.process_execution_api_seq;
CREATE SEQUENCE public.process_execution_api_seq
INCREMENT 1
MINVALUE 1;
CREATE TABLE public.process_execution_api (
id bigint NOT NULL DEFAULT nextval('proces... | true |
e7d9ed157fea5f474650ed419d4f680c4bcceda7 | SQL | dpinheiro2/testemeta | /src/main/resources/create-db.sql | UTF-8 | 621 | 2.9375 | 3 | [] | no_license | DROP TABLE IF EXISTS classes;
CREATE TABLE classes (
id bigint PRIMARY KEY,
descricao varchar(255) NOT NULL
);
DROP TABLE IF EXISTS habitats;
CREATE TABLE habitats (
id bigint PRIMARY KEY,
descricao varchar(255) NOT NULL
);
DROP TABLE IF EXISTS ordens;
CREATE TABLE ordens (
id bigint PRIMARY KEY,
descr... | true |
a9addab9f46275e224da256ecb1755ffed51aae8 | SQL | wjphappy90/JavaEE360 | /docs/03_MySQL数据库/SQL代码/多对多的用户角色案例.sql | UTF-8 | 943 | 4.0625 | 4 | [] | no_license | /*
用户和角色:多对多
*/
-- 用户表
CREATE TABLE `user` (
uid VARCHAR(32) PRIMARY KEY,
username VARCHAR(32)
);
-- 角色表
CREATE TABLE role (
rid VARCHAR(32) PRIMARY KEY,
rname VARCHAR(32)
);
-- 中间表,都是外键
CREATE TABLE user_role(
uid VARCHAR(32),
rid VARCHAR(32)
);
/*
中间表创建外键约束: 省略约束名
uid外键,user表的uid主键
rid外键,role表的rid主键
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.