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
23e82e8d1858d475251111270957c7c99a18c6b0
SQL
eduardo-amorim7/newvideo
/updatedb/updateDb.v3.0.sql
UTF-8
943
3.109375
3
[ "MIT" ]
permissive
-- MySQL Workbench Synchronization -- Generated: 2017-06-12 12:48 -- Model: New Model -- Version: 1.0 -- Project: Name of the project -- Author: Daniel 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...
true
ba1086e1c9c01b7d9af1edf674627a730956e64a
SQL
falmah/PlaneAppBackend
/postgres/scripts/initialData.sql
UTF-8
5,105
3.296875
3
[]
no_license
/* add users */ INSERT INTO app_db_user (name, surname, phone, email, password, role) VALUES ('John', 'customer', '+3809187129', 'customer@gmail.com', 'qazwsxedc', 'customer'), ('Mike', 'operator', '+3809112129', 'operator@gmail.com', 'qazwsxedc', 'operator'), ('Nick', 'pilot', '+3801187129', 'pilot@gmail.c...
true
10817dd550203466333b6e575d2e3ab42ee124fd
SQL
csrail/sql-exercises
/2-tutorial.sql
UTF-8
2,844
4.5625
5
[]
no_license
#SELECT from world #Q1 Observe the result of running a simple SQL command. SELECT name, continent, population FROM world; #Q2 Show the name for the countries that have a population of at least 200 million: SELECT name FROM world WHERE population > 200E6; #Q3 Give the name and the per capita GDP for those countries ...
true
5afea422958461ebc2c64f53e21df0bc33ac4ca5
SQL
wangxiaoyu92/zhsyj_V_2_0
/src/dbscript/201608/20170518_附件类型.sql
UTF-8
428
2.625
3
[]
no_license
-- aa10表 附件类型 FJTYPE -- 设置aaa105字段为该类型附件上传属性 1 : 只能上传一张 0 : 可上传多张 -- 首先全部设置为只能上传一张 UPDATE aa10 SET AAA105 = '1' WHERE aaa100 = 'fjtype'; -- 设置 图片、文档、视频、商品图片、检测合格证明 类型附件可以上传多张 UPDATE aa10 SET AAA105 = '0' WHERE aaa100 = 'fjtype' AND AAA102 in ('1', '2', '3', '8', '9');
true
af73b28f373764cc4385023858cfedac532d5161
SQL
TheMotleyCrew/QRStore
/Database/SQL/qrstore.sql
UTF-8
7,022
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 20, 2017 at 05:38 PM -- Server version: 10.1.16-MariaDB -- PHP Version: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
7cbbd6da0ed6ed23060d85b2614253d6b4b72f70
SQL
Benllycast/VideoCapitol-java-zk-mybatis-h2
/videocapitol/src/main/resources/sql/insert_data.sql
UTF-8
405
2.6875
3
[]
no_license
insert into CLIENTE(rut,nombre,direccion,telefono) values ('1','1','1','1'), ('2','2','2','2'), ('3','3','3','3'); insert into PELICULA(titulo, descripcion, actores, director, inventario) values ('1','1','1','1',1), ('2','2','2','2',2), ('3','3','3','3',3); insert into RESERVA(cliente_id, pelicula_id, fecha_hora) va...
true
75769c35fc5970c595b047b75c9369f435bcfae1
SQL
pedrogomesiv/Demo_MHA_Website
/src/main/sql/userCreationProcedure.sql
UTF-8
1,381
3.484375
3
[]
no_license
DROP procedure IF EXISTS registerUser; DELIMITER // CREATE PROCEDURE registerUser (email varchar(255), encpassword varchar(255), firstName varchar(255), surName varchar(255), pNumber varchar(15), eNumber varchar(15), mhaTenant int, previousVolunteer int, volunteerExperience varchar(255), conditions int, conditionDeta...
true
a0c7254aa9b179a3eb95c709a34c58fe2bf85739
SQL
raviangularazure/SQL-70-461
/Update_a_table_in_different_database.sql
UTF-8
416
3.21875
3
[]
no_license
-- Updating an entire table from one Db to another Db (Where the Primary Key Ids are different between the dbs) SELECT 'UPDATE SystemFieldTemplate SET SystemFieldTemplateId=''' + convert(nvarchar(50), SystemFieldTemplateId) + '''' + ' , Prompt =''' + Prompt +'''' + ',Value =''' + Value + ''' WHERE Field = '''+ Fie...
true
b43ffa6b3edf6ecec66242c796a7415ae629051e
SQL
mike604259003/cyberlifecafe
/cyberlifecafe.sql
UTF-8
3,848
3.140625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 16, 2019 at 01:25 PM -- Server version: 10.1.39-MariaDB -- PHP Version: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
7ca6a60383aca394618ee18b08eb6b7ed7946462
SQL
qm1083824922/wechat
/doc/stock1.sql
UTF-8
2,569
3.734375
4
[]
no_license
SELECT v_table.project_id, v_table.business_unit_id, v_table.department_id, v_table.id, v_table.goods_id, v_table.customer_id, v_table.validity_or_days, v_table.term_of_validity, SUM(v_table.sum_store_amount) sum_store, (SUM(v_table.sum_lock_amount) + SUM(v...
true
59bacec0ed8d7f82291f232a8d278fd982b3e562
SQL
sozemego/cash-flow
/factory-service/sql/factory-init.sql
UTF-8
362
2.8125
3
[]
no_license
DROP SCHEMA IF EXISTS factory CASCADE; CREATE SCHEMA factory; CREATE TABLE factory.factory_event ( ID UUID PRIMARY KEY, EVENT JSONB NOT NULL ); GRANT ALL PRIVILEGES ON SCHEMA factory to "factory-user"; GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA factory TO "factory-user"; GRANT ALL PRIVILEGES ON ALL SEQU...
true
b76a4932d2aa8c5dcd7c77178f24e6241374ac94
SQL
HotelQuickly/Holistics-backup
/Reports_and_Dashboards/Metasearch-Analysis-Report/Before-After-Comparison-Reports/TripAdvisor-Before-After-Comparison-Reports/query.sql
UTF-8
5,991
3.75
4
[]
no_license
#standardSQL with cc as ( select case when country_code = 'GB' then 'UK' else country_code end as country_code, case when country_name = 'Netherlands' then 'The Netherlands' else country_name end as country_name from `bi_export.lst_destination` group by 1,2 order by 2 ), beat_country_bf as ( select case when traffic_t...
true
b18034001f96545d1c8feee76b4a0cd3de9e990c
SQL
dmrado/aucsku
/aucskudb.sql
UTF-8
2,462
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Хост: localhost -- Время создания: Фев 06 2018 г., 19:11 -- Версия сервера: 5.7.21 -- Версия PHP: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET...
true
10578da1ea2e7623790c2f9610b1b0299f7d3247
SQL
kquinette/Portfolio-Manager
/sql/closed_plays_symbol_dropdown.sql
UTF-8
330
2.921875
3
[]
no_license
-- closed_plays_symbol_dropdown.sql SELECT DISTINCT Adjusted_Underlying_Symbol FROM '<INSERT_PROJECT_ID>.<INSERT_DATASET_NAME>.<INSERT_HISTORY_TABLE_NAME>' WHERE Adjusted_Underlying_Symbol IS NOT NULL GROUP BY Adjusted_Underlying_Symbol, Play_Id HAVING SUM(Open_Close_Flag) = 0 ORDER BY Adjusted_Underlyi...
true
2c3e2ab18026b05de00df7acf2bb4861627b6c99
SQL
NTXpro/NTXbases_de_datos
/DatabaseNTXpro/dbo/Stored Procedures/sp_Busca_Cliente_Especifico.sql
UTF-8
746
3.421875
3
[]
no_license
-- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date,,> -- Description: <Description,,> -- ============================================= CREATE PROCEDURE sp_Busca_Cliente_Especifico -- Add the parameters for the stored procedure here @iCodigoEmpresa int, @idClient...
true
c884913ac457590c16a5d19362d6fc454ff93d63
SQL
chloe-mayer/discussion
/discussion.sql
UTF-8
2,113
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Mar 11 Février 2020 à 08:54 -- 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_...
true
605185eaa8294cc3ad03035c7667639c94cce409
SQL
JSQLParser/JSqlParser
/src/test/resources/net/sf/jsqlparser/statement/select/oracle-tests/explain01.sql
UTF-8
521
2.703125
3
[ "Apache-2.0", "LGPL-2.1-only" ]
permissive
--- -- #%L -- JSQLParser library -- %% -- Copyright (C) 2004 - 2019 JSQLParser -- %% -- Dual licensed under GNU LGPL 2.1 or Apache License 2.0 -- #L% --- explain plan set statement_id = 'raise in tokyo' into plan_table for update employees set salary = salary * 1.10 where department_id ...
true
062c919cbffaf00ec797d5e66a40951fcf134f88
SQL
msktenn/sandbox
/mtpostgres/sql/createschema.sql
UTF-8
628
3.875
4
[ "MIT" ]
permissive
/* create questions table with view to secure tenant */ CREATE TABLE IF NOT EXISTS tenant ( id uuid PRIMARY KEY DEFAULT uuid_generate_v4(), name CITEXT NOT NULL ); GRANT SELECT, INSERT, UPDATE, DELETE ON tenant TO tenant_admin; CREATE TABLE IF NOT EXISTS t_questions ( id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),...
true
ddcf69768a2d97fa9936de35e3be4aefb1d33143
SQL
soarescbm/e-cidade
/e-cidade/db/v2.3.56/up/pre_v2.3.56.sql
ISO-8859-1
74,236
2.953125
3
[]
no_license
--------------------------------------------------------------------------------------------------------------- ---------------------------------------- INICIO TRIBUTARIO ---------------------------------------------------- ------------------------------------------------------------------------------------------------...
true
fce18d4f5455bb041879f8b1e5a49f8907369498
SQL
trigrass2/wj
/WebContent/sql/SQL Editor (0).sql
UTF-8
2,913
3.34375
3
[]
no_license
create table `wisecodecmstest`.`zcarticle`( `ID` BIGINT not null, `SiteID` BIGINT not null, `CatalogID` BIGINT not null, `CatalogInnerCode` VARCHAR(100) not null, `BranchInnerCode` VARCHAR(100), `Title` VARCHAR(200) not null, `SubTitle` VARCHAR(200), `ShortT...
true
af2a7223fec20fbfb480fa4a31455212c31eb0e8
SQL
divyaborse/codeigniter-quizmaker
/quizmaker.sql
UTF-8
1,664
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 25, 2020 at 03:31 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
2a5a92cce50a93af18caeaa6fa05a539ca26fe9b
SQL
MaulanaRizal/apotek
/database/apotek.sql
UTF-8
5,010
3.125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 29, 2020 at 05:42 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.1.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
35bd77778ee9bb82afe47169ddac74d455d5d07b
SQL
MilenaTrajanoska/rest_api
/books_rest_api/src/main/resources/scripts/books_data_insert.sql
UTF-8
8,344
2.828125
3
[]
no_license
create table if not exists book( id serial primary key not null, isbn bigint not null unique, title varchar not null, price decimal not null, gen...
true
dc0591602953bd1f42d73e87a16d0368c9c01983
SQL
LisethCastillo0325/api
/config/script.sql
UTF-8
614
3.015625
3
[]
no_license
CREATE USER 'test'@'localhost' IDENTIFIED BY 'test'; GRANT ALL PRIVILEGES ON * . * TO 'test'@'localhost'; create database test_tienda; create table producto( id int not null auto_increment, nombre varchar(20), descripcion text, referencia text, precio float, fecha_creacion date, pri...
true
bc7e71cf5a6c5c0dc9f2fdee5d8d0f6e07031229
SQL
harish124/Sem-4
/Dbms/Lab8/spoolexceptions.sql
UTF-8
4,160
3.359375
3
[]
no_license
SQL> @"E:\B.Harish\Sem 4\Dbms\Lab8\exceptions" SQL> set serveroutput on SQL> set echo on SQL> --***************************************************************************** SQL> insert into receipts values(99999,sysdate,21); 1 row created. SQL> SQL> declare 2 x_rno receipts.rno%type :=84665; 3 --select r....
true
62d93571ee4334e3711bf9d5c4f4bc57ab08e796
SQL
JuHoonL/ORACLE
/USER(2018-12-06).sql
UHC
2,906
4.03125
4
[]
no_license
-- user1 Դϴ. SELECT 30*40 FROM DUAL; SELECT 'ѹα' FROM DUAL; -- DB Ұ ̹Ƿ DB  ϱ Ҹ ؾѴ. --߿ ǥ DB ǥ Ҹ TABLE ϰڴ. CREATE TABLE tbl_addr ( name CHAR(50), -- 50ڹ ڸ (VARCHAR2 ˻ ӵ ) age NUMBER(10,1), -- 10, Ҽ 1ڶ ǥ addr CHAR(50) ); DROP TABLE tbl_addr; CREATE TABLE tbl_addr ( name VARCHAR2(50), ...
true
f64f497804d28e58fd59f278945ff1f99bfaad61
SQL
TatianFischer/KutiKuti
/BDD/preorder_product.sql
UTF-8
2,022
3.234375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Client : localhost -- Généré le : Dim 26 Février 2017 à 11:36 -- Version du serveur : 5.7.11 -- Version de PHP : 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACT...
true
56203a03730d7292d7b85114f9beecfb0a6bb157
SQL
spencer-m/Medical_Clinic_DBMS
/SQL Source/Stored Procedures/sp_doctor_equipment_ins.sql
UTF-8
725
3.125
3
[]
no_license
/* Procedure: Insert an equipment entry */ use HealthcareClinic; drop procedure if exists sp_doctor_equipment_ins; delimiter go create procedure sp_doctor_equipment_ins ( in e_name varchar(50) ,in e_manufacturer varchar(250) ,in e_room_number int ) begin set @e_user = user(); set @e_date = now();...
true
c53bbe2390ced6890527fd8a85d908b3958d5911
SQL
gknezevic/assignment
/src/main/resources/schema.sql
UTF-8
500
3.453125
3
[]
no_license
CREATE TABLE IF NOT EXISTS PRODUCT (SKU VARCHAR(200) NOT NULL, NAME VARCHAR(200) NOT NULL, PRICE FLOAT NOT NULL, CREATED_ON TIMESTAMP NOT NULL, DELETED BOOLEAN DEFAULT FALSE, PRIMARY KEY (SKU)); CREATE TABLE IF NOT EXISTS ORDERS (ID int auto_increment NOT NULL, EMAIL VARCHAR(200) NOT NULL, CREATED_ON TIMESTAMP NO...
true
4d87b1d4fedaf8edc421629ab7479df129b85765
SQL
ADSmith-100/chore-wars-api
/migrations/003.do.create_chorewars_chores.sql
UTF-8
312
2.65625
3
[]
no_license
CREATE TABLE chorewars_chores ( id INTEGER PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, user_id INTEGER REFERENCES chorewars_users(id) ON DELETE CASCADE NOT NULL, child_id INTEGER REFERENCES chorewars_children(id) ON DELETE CASCADE, title TEXT NOT NULL, status BOOLEAN NOT NULL DEFAULT false );
true
ea6179c660b3a10bd71ee7c459c875f67642311c
SQL
Tousama/SQL_HOMEWORK11
/SQL_HOMEWORK11.sql
UTF-8
953
2.765625
3
[]
no_license
( SELECT first_name FROM actor ORDER BY first_name ) UNION ( SELECT first_name FROM customer ORDER BY first_name ); ----------------------------------------- ( SELECT first_name FROM actor ORDER BY first_name ) INTERSECT ( SELECT first_name FROM customer ORDER BY first_name ); ---------------------------------...
true
51ab1917935b804cec69496fb3ef8c04616b0b9c
SQL
kalitawojciech/ZSBD
/lab2/exercises.sql
UTF-8
2,422
4.0625
4
[]
no_license
-- 1 SELECT LAST_NAME || ' ' || SALARY AS Wynagrodzenie FROM EMPLOYEES WHERE (DEPARTMENT_ID = 20 OR DEPARTMENT_ID = 50) AND (SALARY BETWEEN 2000 AND 7000) ORDER BY LAST_NAME; -- 2 SELECT HIRE_DATE, LAST_NAME FROM EMPLOYEES WHERE MANAGER_ID IS NOT NULL AND HIRE_DATE BETWEEN '2005-01-01' AND '2005-12-31' ORDER BY HI...
true
b0dbc54c4d39cb6479cc66a258c14248d5cf27ac
SQL
radtek/abs3
/sql/mmfo/bars/Function/f_get_date_cck.sql
WINDOWS-1251
6,122
2.9375
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/function/f_get_date_cck.sql =========*** Run PROMPT ===================================================================================== CREATE OR REPLACE FUNCTION BA...
true
84facff123966f62a598fb30719230e66db37faf
SQL
weng1993/ThatCMS
/db.sql
UTF-8
1,692
3.171875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Oct 25, 2016 at 04:23 AM -- Server version: 5.6.28 -- PHP Version: 7.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `ThatCMS` -- -- ---------------------------...
true
ab8623a52583ec2ece77e5c3fc98b6b250f1a3d0
SQL
zhai1997/Douyu_preprocessing
/small_datasets/join_features.sql
UTF-8
1,695
3.65625
4
[]
no_license
SET SESSION max_heap_table_size=536870912000; SET SESSION tmp_table_size=536870912000; create table if not exists douyu.feature_table as SELECT COALESCE( st_t.room_id, fl_t.room_id ) AS room_id, startype_1, startype_2, startype_3, gender, age, community_id, sign_date, location_1, location_2, follower_num ...
true
8a0aea177a605146fc030cb0082d58602977aff5
SQL
CasonWebDev/eduzz
/eduzz.sql
UTF-8
4,207
3.0625
3
[]
no_license
-- -------------------------------------------------------- -- Servidor: 127.0.0.1 -- Versão do servidor: 10.1.10-MariaDB - mariadb.org binary distribution -- OS do Servidor: Win32 -- HeidiSQL Versão: 9.4.0.5125 -- ------------------------------------------------...
true
d54e277f9c374ad320169ffed2ee7a987d0ad431
SQL
OpenData-NC/data-dashboard
/create_tables_sql/dash_nh_real_estate.sql
UTF-8
2,285
2.90625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.44, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: crime -- ------------------------------------------------------ -- Server version 5.5.44-0+deb7u1-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACT...
true
3b6ee9e11163835d62da9334eb75a00ab2bbd692
SQL
iakoul/122A_Database_HW
/answer-script1.2.sql
UTF-8
2,441
4.65625
5
[]
no_license
DROP DATABASE IF EXISTS cs122a; CREATE DATABASE cs122a; USE cs122a; -- -- PROBLEM 1.2a -- CREATE TABLE Emp( eid int, ename varchar(100), age int, salary real, CHECK (salary < 10000) ); -- MySQL doesn't support SQL check constraint -- Testing insert of employee w/ $10000 salary INSERT INTO emp(eid,...
true
df995fa9cc7e8aebec037eca147b53b9bf273b99
SQL
basjansen1/League
/League.Database/Seeds/Ninja.sql
UTF-8
355
3.421875
3
[]
no_license
Merge INTO dbo.Ninja AS Target USING (values (1, 'Ninja1', 800), (2, 'Ninja2', 800), (3, 'Ninja3', 800) ) AS Source (Id, Name, AmountGold) ON Target.Id = Source.Id WHEN NOT MATCHED BY TARGET THEN INSERT (Id, Name, AmountGold) VALUES (Id, Name, AmountGold) WHEN MATCHED THEN UPDATE SET Name = Source.Name, ...
true
22da98597a6fc736c90b7c531a47f8af11964a9d
SQL
YaroslavLeontiev/test_repo
/Senior/task2.sql
UTF-8
1,506
3.828125
4
[]
no_license
CREATE DEFINER=`root`@`localhost` PROCEDURE `task2`( in adress_store1 varchar(50) ) BEGIN declare id_customer, cur_finished int default 0; declare name_customer varchar(25); declare amount_customer decimal(5,2); DECLARE cur_customer CURSOR FOR SELECT customer3.customer_id, concat(customer3.first_name, " ",...
true
bed1dc2f39fcb0333ca21943e458f8a3a7023524
SQL
elias890420/Oracle-EBS-SQL
/PO Requisitions with PO Details/PO Requisitions with PO Details.sql
UTF-8
9,666
3.03125
3
[]
no_license
/*************************************************************************/ /* */ /* (c) 2010-2021 Enginatics GmbH */ /* www.enginatics.com */ /* ...
true
7bb3c02139f5b7bcfef45bbc5d828cfbcdf55e84
SQL
noble-butler-ramos/noble-butler-ramos-adlister
/migration.sql
UTF-8
799
3.671875
4
[]
no_license
USE adlister_db; DROP TABLE IF EXISTS ads; DROP TABLE IF EXISTS users; CREATE TABLE users ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, username VARCHAR(240) NOT NULL, email VARCHAR(240) NOT NULL, password VARCHAR(255) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE ads ( id INT UNSIGNED NOT NULL AUT...
true
6809f6563b9602f37b6e8d1cc4d8f6c7e814b0be
SQL
nik29213/oriel
/orieldb.sql
UTF-8
5,712
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 08, 2020 at 06:39 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.3.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
c5a4588ab420e91208d3f1cad227a5f6c06a6b9b
SQL
Kharstad/ProjetoCantina
/cantinaPrjt/src/persistencia/cantinaPrjt.sql
UTF-8
1,426
3.375
3
[]
no_license
drop database if exists cantinaPrjt; create database cantinaPrjt; use cantinaPrjt; create table salgado ( id_salgado smallint not null primary key auto_increment, nome varchar(250) not null default '---', preco double not null default 0, qntd_disp int not null default 0); create table guaravita ( ...
true
84de4995fcc78218d3f5efa762a5ef6dec985be4
SQL
LeeB-love/Team8_WebProject
/Team8_WebProject/WebContent/WEB-INF/am_members.sql
UTF-8
277
2.5625
3
[]
no_license
create table am_member( id varchar2(35) not null, pwd varchar2(20) not null, email varchar2(40) , profile varchar2(100), name varchar2(15) not null, phone varchar2(15) not null, regdate date, constraint am_member_id_pk primary key(id) ); create sequence am_member_seq;
true
573c29c2b0f4ede49734a1eef56f1cbea756abbc
SQL
serk123/L2jOpenSource
/H5/L2_Scripts_com/L2_Scripts_Revision_20720_2268/dist/gameserver/sql/install/hwid.sql
UTF-8
855
2.734375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : home Source Server Version : 50173 Source Host : localhost:3306 Source Database : l2tales Target Server Type : MYSQL Target Server Version : 50173 File Encoding : 65001 Date: 2014-07-30 03:16:36 */ SET FOREIGN_KEY_CHECK...
true
c703ea8308dbec40f3c763f69b4bb699aacbf630
SQL
000451270/SE266_PHP
/DOLab2SQL/lab2.sql
UTF-8
1,923
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 25, 2017 at 02:12 AM -- Server version: 10.1.19-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
143f3c8aa762115914a0732a75429b8d6951e7dd
SQL
ktbarr/TechElevator-Mod2
/04_INSERT_UPDATE_and_DELETE/friday-review/constraints-and-transactions-exercises-pair.sql
UTF-8
3,098
4.40625
4
[]
no_license
-- Write queries to return the following: -- Make the following changes in the "world" database. -- 1. Add Superman's hometown, Smallville, Kansas to the city table. The -- countrycode is 'USA', and population of 45001. (Yes, I looked it up on -- Wikipedia.) -- 2. Add Kryptonese to the countrylanguage table....
true
1c3213186bffecfab8fcdf19fa90fbaae1d45953
SQL
AndresOnate/MBDA
/Proyecto/Fuentes Azules.sql
UTF-8
9,884
3.0625
3
[]
no_license
-----Restriciones declarativas ----Claves Primarias ---usuarios ALTER TABLE usuarios ADD CONSTRAINT PK_USUARIOS PRIMARY KEY(userId); ---recomendaciones ALTER TABLE recomendaciones ADD CONSTRAINT PK_RECOMENDACIONES PRIMARY KEY(rId); ---logins ALTER TABLE logins ADD CONSTRAINT PK_LOGINS PRIMARY KE...
true
52ac77ffb3ce4c0292570c6b726ca4dd1551bbf5
SQL
ClickHouse/ClickHouse
/tests/queries/1_stateful/00077_log_tinylog_stripelog.sql
UTF-8
1,453
2.984375
3
[ "Apache-2.0" ]
permissive
SET check_query_single_value_result = 1; DROP TABLE IF EXISTS test.hits_log; DROP TABLE IF EXISTS test.hits_tinylog; DROP TABLE IF EXISTS test.hits_stripelog; CREATE TABLE test.hits_log (CounterID UInt32, AdvEngineID UInt8, RegionID UInt32, SearchPhrase String, UserID UInt64) ENGINE = Log; CREATE TABLE test.hits_tiny...
true
951148b8eb29cb368c426ab1c28cd042925e283b
SQL
shsuk/jojesus
/WebContent/WEB-INF/sql/system/attach/back_list.sql
UTF-8
90
2.625
3
[]
no_license
SELECT * FROM attach_tbl WHERE created >= @{start_date} ORDER BY created LIMIT 0,300 ;
true
7145068afa5f37ac2620859cd050ccdd89679d09
SQL
liangjinx/RAP
/bin/database/scripts.sql
UTF-8
1,247
4.34375
4
[]
no_license
-- recent projects SELECT p.name projectName, u.name userName, p.create_date projectCreateTime, p.introduction FROM tb_project p JOIN tb_user u ON p.user_id = u.id ORDER BY p.id DESC -- recent users SELECT * FROM tb_user ORDER BY id DESC -- counters SELECT COUNT(*) userNum FROM tb_user; SELECT COUNT(...
true
26792586e2d0afb4e1d152e6ee02d74e48192279
SQL
sagsango/sql
/SQL for DtataScience/KeyWords.sql
UTF-8
851
3.328125
3
[]
no_license
--- See https://www.javatpoint.com/mysql-tutorial --- For Create, Update, and some other importent jargans with dpt1 as ( ), dpt2 as ( ), dpt3 as ( ) [select ,select distinct ] ___ as c1, ___ as c2, ___ as c3, case when total >= 2000 then 'At least 2000' when total < 1000 th...
true
77e137d176a04103b0d82e6ee8ce2c149fe29ca8
SQL
EPAMHackathons/2016-mogilev-artezio
/src/main/resources/db/migration/V1__init_tables.sql
UTF-8
3,456
3.84375
4
[]
no_license
-- Sequences -- Sequence: user_id_seq CREATE SEQUENCE user_id_seq START WITH 1 MINVALUE 1 INCREMENT BY 1; -- Sequence: advice_id_seq CREATE SEQUENCE advice_id_seq START WITH 1 MINVALUE 1 INCREMENT BY 1; -- Sequence: list_id_seq CREATE SEQUENCE list_id_seq START WITH 1 MINVALUE 1 INCREMENT BY 1; -- ...
true
a89f07ab8784b5618cf440faa6e8e864b160f07c
SQL
jeongmingang/stdGrade_management
/Scripts/1.ddl.sql
UTF-8
3,060
3.890625
4
[]
no_license
-- 성적관리 DROP SCHEMA IF EXISTS grade_jmg; -- 성적관리 CREATE SCHEMA grade_jmg; -- 학생 CREATE TABLE grade_jmg.student ( stdNo INT NOT NULL COMMENT '학번', -- 학번 stdName VARCHAR(20) NULL COMMENT '학생명', -- 학생명 ban VARCHAR(10) NULL COMMENT '분반' -- 분반 ) COMMENT '학생'; -- 학생 ALTER TABLE grad...
true
8d7910f2da632048878baff6fd345aa1479c7e50
SQL
andxbes/phpFirstSite
/my_site.sql
UTF-8
2,043
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10.6 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Авг 31 2015 г., 17:37 -- Версия сервера: 5.6.22-log -- Версия PHP: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
fea7146cdfd737b5b53c22894b08b1f39a049e34
SQL
josuc9123/ProyectoFramework
/database/ele (1).sql
UTF-8
12,048
2.984375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 14-01-2021 a las 20:22:20 -- Versión del servidor: 5.7.31-0ubuntu0.18.04.1 -- Versión de PHP: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 ...
true
7b02003a24811e36a84290640b4fbda6d5966fed
SQL
ecidadenatal/ControleInterno
/estrutura/instalacao.sql
UTF-8
480
2.640625
3
[]
no_license
CREATE SEQUENCE empenhonotacontroleinterno_sequencial_seq INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 1 CACHE 1; create table empenhonotacontroleinterno ( sequencial integer not null primary key, nota integer not null, resalvaanalista text, resalvadiretor text, usuariodiretor integer, usuario...
true
9638e358e44adaffd05471af16a372507254bd3b
SQL
herrycla/sql-challenge
/Instructions/data/schemasql.sql
UTF-8
1,353
4.03125
4
[]
no_license
CREATE TABLE departments ( dept_no VARCHAR(30) NOT NULL, dept_name VARCHAR(30) NOT NULL, Primary key (dept_no), unique (dept_name) ); CREATE TABLE dept_manager ( dept_no VARCHAR(30) NOT NULL, emp_no INT NOT NULL, from_date DATE NOT NULL, to_date DATE Not NULL, Primary key (emp_no, dept_no), Foreign key (emp...
true
2fb044c94e65c065b5eac79840a8effefe460fa6
SQL
traylorc/sqlscripts
/list.of.major.description.and.class.code.and.class.subject.required.for.Gen.business.sql
UTF-8
266
3.25
3
[]
no_license
--list.of.major.description.and.class.code.and.class.subject.required.for.Gen.business-- select Description, c.Code, Subject from Majorclass mc join major m on m.id = mc.MajorId join Class c on c.id = mc.ClassId where Description = 'general business'
true
4d5691697d8cdd1aaa41c739d244d2437f6751d2
SQL
SEEG-Oxford/ABRAID-MP
/db/migrations/1411131454__rename_covariate_influence_name_field_to_file_path.sql
UTF-8
517
2.625
3
[ "Apache-2.0" ]
permissive
-- Rename covariate_name to covariate_file_path on covariate_influence -- and effect_curve_covariate_influence for clarity. -- -- Copyright (c) 2014 University of Oxford ALTER TABLE covariate_influence RENAME COLUMN covariate_name TO covariate_file_path; ALTER TABLE covariate_influence RENAME CONSTRAINT uq_covariate_...
true
75386ed7d254e62c5d6fa3dfc51930b857764516
SQL
wukongGit/bigfamily
/src/main/resources/family.sql
UTF-8
2,614
3.140625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : MyCon Source Server Version : 50717 Source Host : localhost:3306 Source Database : family Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2018-02-05 11:25:15 */ CREATE DATABASE `family` DEFAULT CHAR...
true
cafd874d4da6470cdc8c53fc8989e5a8530f6bee
SQL
DivyaJagadish/LIghtBnb
/1_queries/3_property_listings by city.sql
UTF-8
710
4.3125
4
[]
no_license
-- Show all details about properties located in Vancouver including their average rating. -- Select all columns from the properties table for properties located in Vancouver, and the average rating for each property. -- Order the results from lowest cost_per_night to highest cost_per_night. -- Limit the number of resu...
true
afd1ddacf578833143406c4833c72b06846fedc2
SQL
jnishimu/analysis
/bigquery/workshop/join.sql
UTF-8
323
3.765625
4
[]
no_license
# BigQueryでemployeesテーブルとdepartmentsテーブルをJOINする参考クエリ SELECT employees.id as employee_id, employees.first_name, employees.last_name, departments.id as department_id, departments.department_name FROM employees JOIN departments ON employees.department_id = departments.id;
true
35a633114b54377c440bbf439c02ddf62159170c
SQL
JcGaara/SGA-PLSQL-OPE
/SGA-OPERACION/Packages/pq_sva_claro_video.sql
UTF-8
1,650
2.53125
3
[]
no_license
CREATE OR REPLACE PACKAGE operacion.pq_sva_claro_video IS /************************************************************************************************ NOMBRE: OPERACION.PQ_SVA_CLARO_VIDEO PROPOSITO: SVA CLARO VIDEO REVISIONES: Version Fecha Autor Solicitado por De...
true
428fabdf7785a6337cd2bbe09f06e78564764b9a
SQL
slevinsps/databases
/laba2/SQLQuery21.sql
UTF-8
127
2.859375
3
[]
no_license
delete FROM Contracts WHERE Contracts.Studio= ( SELECT id FROM Studios WHERE Studios.Employees_number = 9952 )
true
6f49b0bdfd597e3bab90e4b4f85f2ce94fd56593
SQL
RodRothbarth/SENAI2TERM
/exercicios banco de dados/exercicioDML/scriptDML-trigger22.sql
UTF-8
420
2.828125
3
[]
no_license
SET SQL_SAFE_UPDATES = 0; DROP DATABASE IF EXISTS DBCLASSIFICACAO; CREATE DATABASE DBCLASSIFICACAO; USE DBCLASSIFICACAO; CREATE TABLE ALUNO ( IDALUNO INT NOT NULL PRIMARY KEY AUTO_INCREMENT , NOME VARCHAR(45) , IDADE INT ); CREATE TABLE CLASSIFICACAO ( CRIANCAS INT , JOVENS INT , ADULTOS INT ); INSERT INTO CL...
true
6e795ebc1981c71c2b0d5b31f3ce3a78cc404ba5
SQL
Shubham-Nayak/testassignment
/product_colors.sql
UTF-8
1,515
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 20, 2020 at 05:23 AM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
2d7ecb1cc4de02d6c9ceb16b5d54edbdc97efaa9
SQL
JakeGreene/phb
/conf/evolutions/default/2.sql
UTF-8
310
2.828125
3
[]
no_license
# --- !Ups CREATE TABLE class_spells (class_id INTEGER REFERENCES classes(class_id), spell_id INTEGER REFERENCES spells(spell_id), level INTEGER NOT NULL, PRIMARY KEY(class_id, spell_id)); # --- !Downs DROP TABLE class_spells;
true
452c991d4baeabdde3d64062a6797d007b1942ff
SQL
TansyBigRabbit/webRtcDemo
/target/classes/db.sql
UTF-8
605
2.734375
3
[]
no_license
CREATE TABLE `t_account` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', `username` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户名', `pwd` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户密码', `token` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '用户token', `regi...
true
4458157c6eeb66ded8e6f86a668427a2de170942
SQL
jampaniuday/sql_source
/sql/partition/part5.sql
UTF-8
325
3.53125
4
[]
no_license
select department_id dept , job_id , first_name || ' ' || last_name name , salary , dept_rank from (select department_id, job_id, first_name, last_name, salary , rank () over (partition by department_id order by salary desc) dept_rank from employees) where dept_rank <= 5 order by dept, dept_rank de...
true
8daf50804c42b61b31f3a545e0c66a548e876b70
SQL
cohenjo/dbautils
/oracle/dbmon/sqls/tsquota.sql
UTF-8
910
3.53125
4
[]
no_license
REM ------------------------------------------------------------------------ REM REQUIREMENTS: REM SELECT on dba_ tables REM ------------------------------------------------------------------------ REM PURPOSE: REM Show users quotas by tablespace REM ---------------------------------------------------------------...
true
bbe00f2785ebc1e4f90f45773cba540e416c702b
SQL
hyahm/ITflow
/go/bug.sql
UTF-8
14,387
3
3
[ "BSD-3-Clause" ]
permissive
-- MySQL dump 10.13 Distrib 5.7.15, for Linux (x86_64) -- CREATE TABLE `bugs` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `uid` bigint(20) NOT NULL DEFAULT '0', `title` varchar(50) DEFAULT NULL, `sid` bigint(20) DEFAULT '0', `content` text, `iid` bigint(20) DEFAULT '0', `createtime` bigint(20) DEFAULT '0...
true
c9f4ad8ad23ab7124dfebe307b9e486b4f2673dd
SQL
DescartesDisciple/FIB-DBD
/Training/2-Relational translation and Normalization.sql
UTF-8
5,126
3.625
4
[ "MIT" ]
permissive
-- ------------------------------------------------- -- PREGUNTA 1 CREATE TABLE Grup ( nom varchar(1) , monitor varchar(1) , CONSTRAINT Grup_PK PRIMARY KEY (nom)); CREATE TABLE Noi ( Grup_nom varchar(1) NOT NULL, nom varchar(1) , edat varchar(1) , nomMascota varchar(1) UNIQUE, CONSTRAINT Noi_FK_Grup FOREIGN KEY (Gr...
true
14610e162a750fbd6584bada20ce07947de6dd50
SQL
qqqsdx/yhd.com
/dl.sql
UTF-8
1,768
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- 主机: localhost -- 生成日期: 2020-07-27 16:02:54 -- 服务器版本: 5.7.26 -- PHP 版本: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
335b614403e11547b02dfa976be50f4e02c7a72c
SQL
vpuhoff/go-admin-demo
/mysql/admin.sql
UTF-8
13,581
3.03125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50727 Source Host : localhost:3306 Source Schema : go-admin-test Target Server Type : MySQL Target Server Version : 50727 File Encoding : 65001 Date: 31/03/2...
true
9b26e46605c71a1ba9ff255d8ac7eb90e43636ed
SQL
chandaku/springboot-jpa-chandan-labs
/src/main/resources/dbscripts/Security_Users.sql
UTF-8
765
3.453125
3
[]
no_license
DROP TABLE ROLES; CREATE TABLE ROLES ( ID int(20), ROLE_ID int, ROLE_NAME varchar(30), USER_ID int(30), FOREIGN KEY ( USER_ID ) REFERENCES USERS ( ID ), PRIMARY KEY (id) ) ; DROP TABLE user_survey.USERS; CREATE TABLE USERS ( ID int(30), DOB DATE, EMAIL varchar(255), NAME varchar(255), PASSWD varchar(255), PRIM...
true
4ba9e534ada8b60c38e135e28290e9e5d70530c1
SQL
BatesColin/Epicodemon
/moves.sql
UTF-8
2,466
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Jul 24, 2018 at 09:05 PM -- Server version: 5.6.35 -- PHP Version: 7.0.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
41548c21bdfbc60c07fde6328492cb298b541b77
SQL
tcuriel/rfid-comlabs
/Data/absenpti.sql
UTF-8
2,504
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 26, 2011 at 12:43 AM -- Server version: 5.1.41 -- PHP Version: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
true
c61c91f68b32f1408ec052978e6f94fa26734d64
SQL
nguyenphanquocthinh/taichinh
/taichinh.sql
UTF-8
12,537
2.875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th8 25, 2020 lúc 01:48 PM -- Phiên bản máy phục vụ: 10.1.24-MariaDB -- Phiên bản PHP: 7.1.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
true
31437dd905096ee28d2f51e6eea6059fe67afa8a
SQL
andrewpetersondev/bamazon
/database.sql
UTF-8
1,011
3.5625
4
[]
no_license
DROP DATABASE IF EXISTS bamazon; CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products ( item_id INT NOT NULL auto_increment, product_name VARCHAR(100) NOT NULL, department_name VARCHAR(50), price DECIMAL(6,2) NOT NULL, stock_quantity INT NOT NULL default 0, PRIMARY KEY(item_id) ); INSER...
true
28b3ac926980483967853f0aeacbc72a967770ba
SQL
jlabedzki/Wiki-Map
/db/schema/02_maps.sql
UTF-8
376
3.125
3
[]
no_license
-- Drop and recreate Maps table DROP TABLE IF EXISTS maps CASCADE; CREATE TABLE maps ( id SERIAL PRIMARY KEY NOT NULL, creator_id INTEGER REFERENCES users(id) ON DELETE CASCADE, title VARCHAR(255) NOT NULL, longitude_1 DECIMAL NOT NULL, latitude_1 DECIMAL NOT NULL, longitude_2 DECIMAL NOT NULL, latitude_...
true
26ce23b2c93482cf74fd12c01392c0affdd352f6
SQL
dangvandat15021997/HelloWorld
/DB system concepts/Part 1/Chap 5/5.15 create works db.sql
UTF-8
2,884
3.171875
3
[]
no_license
create database works; use works; create table employee( employee_name varchar(50), street varchar(50), city varchar(50), constraint employee_pk primary key (employee_name) ); create table works ( employee_name varchar(50), company_name varchar(50), salary numeric(10), constraint work...
true
4ef6798a2e9bf01dab5d139a3727c2b596d738c6
SQL
shelmesky/ndoutils_mq
/db/queries/flapping_history.sql
UTF-8
490
3.234375
3
[]
no_license
SELECT nagios_instances.instance_id ,nagios_instances.instance_name ,nagios_flappinghistory.object_id ,obj1.objecttype_id ,obj1.name1 AS host_name ,obj1.name2 AS service_description ,nagios_flappinghistory.* FROM `nagios_flappinghistory` LEFT JOIN nagios_objects as obj1 ON nagios_flappinghistory.object_id=obj1.object_...
true
c4ac59e47599fce2c2b0ba33e9f8eedc8fa5b875
SQL
vandanasamudrala/JobInfoCenter_NJ
/db/ddl/registeredusers.sql
UTF-8
1,386
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 28, 2017 at 08:17 AM -- Server version: 10.1.25-MariaDB -- 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 @OL...
true
afdf4238f2a9a077cd3062fbba6518f6729a9578
SQL
Lareta064/WD04-filmoteka-Lareta
/WD04-filmoteka-Lareta.sql
UTF-8
6,487
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Окт 04 2018 г., 11:40 -- Версия сервера: 5.6.38 -- Версия PHP: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
787535882f52a58872972cd87d006bb97b9fcf30
SQL
mankycat/sdb-mall
/src/main/resources/sql/product.sql
UTF-8
475
3.265625
3
[ "Apache-2.0" ]
permissive
#sql("listDetailByProductIds") SELECT g.`name` name, g.`model` model, g.`sn` goods_sn, g.caption caption, g.image image, p.specification_values specification_values, p.stock stock, p.sn sn, p.price price, p.group_price groupPrice, p.`enable` `enable`, p.create_date create_date FROM product p LEFT J...
true
6ab6e08807af8b17db7994e9f34dc1fe9f165d9c
SQL
mosamirkhatri/frappe
/frappe_backend/procedures/report/check_available_quantity.sql
UTF-8
364
3.21875
3
[]
no_license
USE `user_schema`; DROP procedure IF EXISTS `user_schema`.`check_quantity_available`; DELIMITER $$ USE `user_schema`$$ CREATE DEFINER=`root`@`%` PROCEDURE `check_available_quantity`(IN p_product_id VARCHAR(40), IN p_location_id VARCHAR(40)) BEGIN SELECT qty FROM report WHERE product_id = p_product_id AND locati...
true
8e8758a2612ae54d716287031dd2c67a76871914
SQL
ItanuRomero/MySQL-studies
/ListasEx/Lista02/Exer06.1Lista02.sql
UTF-8
115
2.9375
3
[ "MIT" ]
permissive
SELECT SOBRENOME, CARGO FROM empr INNER JOIN dept on empr.DEPT = dept.DCODIGO WHERE dept.DNOME LIKE '%PLAN%';
true
48c6f8bec93b788e296027c9fff8347ec8018c71
SQL
andresfborrero/Sistema_SolicitudesTelefonia
/ArchivosSQL/Paquetes Nivel 2/pkAsignacionNivel2.sql
UTF-8
631
2.65625
3
[]
no_license
create or replace PACKAGE pkAsignacionNivel2 AS PROCEDURE pAsignar(ivIdSolicitud IN NUMBER); END pkAsignacionNivel2; / create or replace PACKAGE BODY pkAsignacionNivel2 AS PROCEDURE pAsignar(ivIdSolicitud IN NUMBER) IS BEGIN UPDATE SOLICITUD SET FUNCIONARIO_CEDULA = (SELECT CEDULA FROM ...
true
9bbf41e5f8bf1c5c9f2289eafe5460e170a50d82
SQL
venkatesh26/event_portal_backend
/master_data/trigger.sql
UTF-8
587
2.984375
3
[]
no_license
CREATE TRIGGER after_event_insert AFTER INSERT ON events FOR EACH ROW UPDATE categories SET event_count=(select count(*) FROM events where category_id = NEW.category_id AND status='published') where id = NEW.category_id; CREATE TRIGGER after_event_update AFTER UPDATE ON events FOR EACH ROW U...
true
1087cab121aaf370de7beb088fb88e3dae4f23ba
SQL
luma777/catalyst-data-manager-i18n
/My-Web-App/var/schemaversions/My-Store-Schema-0.01-SQLite.sql
UTF-8
363
2.765625
3
[]
no_license
-- -- Created by SQL::Translator::Producer::SQLite -- Created on Fri Sep 16 14:58:18 2016 -- BEGIN TRANSACTION; -- -- Table: users -- DROP TABLE users; CREATE TABLE users ( id INTEGER PRIMARY KEY NOT NULL, user_name varchar(25) NOT NULL, email varchar(25) NOT NULL, password varchar(27) ); CREATE UNIQUE IN...
true
c4426ba42fbcdabd148bde316208ba6180dabcf4
SQL
nsyuhadam/HotelRes
/hotel.sql
UTF-8
4,631
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 06, 2018 at 01:26 PM -- Server version: 10.1.16-MariaDB -- PHP Version: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
3369ad27dfce6649440758067eac69681d9005e7
SQL
TeixeiraBriel/AulasBancoDeDados
/Aula01/EXERCICIO01.sql
UTF-8
2,860
3.8125
4
[]
no_license
USE pokedex; DESC pokemon; SELECT * FROM pokemon; SELECT numero, nome, cor, altura_m, peso_kg from pokemon; SELECT numero, nome FROM pokemon where geracao = 1; SELECT nome FROM pokemon where geracao = 1 AND cor = 'amarelo'; SELECT * FROM pokemon order by total DESC limit 1; SELECT Numero, nome, tipo1 FROM pokemon where...
true
dace27829c610442e338d8ec0b23066510c1bd6b
SQL
markuszabel/dv_sql
/oversold_items_with_class.sql
UTF-8
2,238
3.75
4
[]
no_license
with item_class as ( SELECT invset.itemid ,invset.winproductclass ,dim.inventsiteid FROM "AX.PROD_DynamicsAX2012.dbo.INVENTITEMINVENTSETUP" as invset LEFT JOIN "AX.PROD_DynamicsAX2012.dbo.INVENTDIM" as dim on invset.inventdimid = dim.inventdimid -- on price.itemrelation = inv.itemid and price.inventdimid = i...
true
b05c2f59c1d36ec46c62407b6ee0403d301e4409
SQL
1newstar/oracle-study
/scripts/dev/sql_statements/sql_dml_lock.sql
UTF-8
271
2.515625
3
[]
no_license
/* lock */ /* 行级锁 */ INSERT UPDATE DELETE SELECT .. FOR UPDATE /* 查看和结束锁进程 */ -- 查看被锁的表和进程 select * from v$session t1,v$locked_object t2 where t1.sid=t2.session_id; -- 杀掉进程 alter system kill session 'sid,serial#';
true
cca23e155af44ff52091510c88497f2b5e89ca92
SQL
Corab500/SoccerApp
/script creation of tables.sql
UTF-8
3,704
3.734375
4
[]
no_license
drop table joueurSaison; drop table evenement; drop table faitdematch; drop table player; drop table saisonclub; drop table rencontre; drop table equipe; drop table club; drop table saison; drop table championnat; create table Championnat ( Id numeric(5) not null, Nom varchar(100) not null, constraint ...
true
bf131acb4865c92354ce8052a922afa74cd40e36
SQL
Xi-Plus/TNFSH-Book
/res/install/install.sql
UTF-8
3,025
3.4375
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; CREATE TABLE `accoun...
true
458df66ddfe6d54ce64e41f81de2783defbe7ae6
SQL
LoulouLMG/esir-project
/application/_install/esir-project-create.sql
UTF-8
1,822
3.4375
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- 10/16/14 20:13:59 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITION...
true
4c31eb448615ae95c736856db70d05bc2d996193
SQL
Fourkap/Stargate
/egyptedb.sql
UTF-8
49,236
3.109375
3
[ "MIT" ]
permissive
/* Navicat Premium Data Transfer Source Server : mysql Source Server Type : MySQL Source Server Version : 50724 Source Host : localhost:3306 Source Schema : egyptedb Target Server Type : MySQL Target Server Version : 50724 File Encoding : 65001 Date: 02/12/2019 09:45...
true