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
3b3a40fea178cc44816e8d153fd7d3122ac3fe70
SQL
tbgdmelo/invetarioEmpresa
/sql/create_tables.sql
UTF-8
2,986
3.515625
4
[]
no_license
-- SCRIPT DE CRIAÇÃO DAS TABELAS -- ter 19 JULHO 2019 -- Ultima atualização: 01/08/2019 -- Thiago Braga de Melo - tbgdemelo@gmail.com -- Version: 3.0 -- ----------------------------------------------------- -- TABELA COM AS INFO DOS FUNCIONARIOS -- ----------------------------------------------------- CREATE TABLE fun...
true
b81675c9a402642d061b0a00df800aca7c1a05f4
SQL
LuwiMelo/IUCSGrocerySystem
/database/10-29-20 DB/iucsproducts_db.sql
UTF-8
26,438
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5-dev -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 29, 2020 at 08:35 AM -- 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_S...
true
2d892add66e4c7113fefb1f04123fb22a9df4228
SQL
saidali/DatabaseObjects-DSS
/Procedures/ps_service_model_mapping.prc
UTF-8
2,396
3.15625
3
[]
no_license
DROP PROCEDURE DSS.PS_SERVICE_MODEL_MAPPING; CREATE OR REPLACE PROCEDURE DSS.PS_SERVICE_MODEL_MAPPING AS BEGIN DELETE FROM DSS_MODEL_MAPPING ; INSERT INTO DSS_MODEL_MAPPING SELECT IM.IIMS_MODEL_SEQ MODEL_SEQ, IM.IIBD_ITEM_BRD_SEQ ITEM_BRD_SEQ, IM.IIMS_MODEL_NAME MODEL_NAME, IM....
true
df6ddf46190e6228ea03cf96063bb7307af6610c
SQL
RonaldoVindas/Proyecto-1---Bases-de-Datos-I-ITCR
/Scripts/Job/Job_new_file_checker.sql
UTF-8
454
2.515625
3
[]
no_license
BEGIN DBMS_SCHEDULER.create_job ( job_name => 'DAILY_NEW_FILE_CHECK', job_type => 'PLSQL_BLOCK', job_action => 'BEGIN SELECT CONTROL_QUERIES.NEWCRIMINALRECORD FROM DUAL; END;', start_date => '30-JUN-20 11.12.00 PM -06:00', repeat_interval => 'FREQ=DAILY;INTERVAL=1', e...
true
df41113e55b7f952f24aee4ca72cc4d4355f5d6e
SQL
thinkpractice/DeepSolaris
/Queries/annotation_diff_register.sql
UTF-8
2,125
4.0625
4
[]
no_license
select count(*) from register_label_per_building select count(*) from annotations_per_tile_geo select ag.uuid, ST_Intersection(ag.tile_geom, rb.geovlak) as intersection_geom, ST_Area(ST_Intersection(ag.tile_geom, rb.geovlak)) as intersection_area from annotations_per_tile_geo as ag inner join register_label_per_b...
true
6bea60b00ec8b3bc34e5a0ceb2e85e380971d079
SQL
man1991/CSharp-LINQ
/LINQtoSQL/SQL/dbo.GetEmployees.sql
UTF-8
169
2.890625
3
[]
no_license
Alter Procedure GetEmployees(@City Varchar(50)=Null) as begin If @City Is Null select *from Employee Else select *from Employee where City = @City End
true
64768d7051343e5eda6402970e0731ddcbc144ab
SQL
danielaloperahernandez/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/3-force_name.sql
UTF-8
267
2.703125
3
[]
no_license
-- script that creates the table force_name on your MySQL server -- The database name will be passed as an argument -- If the table force_name already exists, your script should not fail CREATE TABLE IF NOT EXISTS force_name ( id INT, name VARCHAR(256) NOT NULL );
true
80212b02508473de8a247e58d636428b53ce347b
SQL
iqyoe/hospital-system
/softeng/allhealth (1).sql
UTF-8
4,630
2.828125
3
[ "Unlicense" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 13, 2017 at 05:39 PM -- Server version: 10.1.28-MariaDB -- PHP Version: 7.1.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
c1d242766d01dc419025337d90a74e312a6c403d
SQL
azlanqazi2012/mysqlqueires
/pivot table of skus.sql
UTF-8
274
2.75
3
[]
no_license
select productid, group_concat(case when name='UPC' then sku end ) as UPC, group_concat(case when name='GTIN' then sku end) as GTIN, group_concat(case when name='UNSPSC' then sku end) as UNSPSC from productskus where productid=1048687160 and localeid=1 group by productid
true
0bdc0ff150be24423a535dc0a65c96b8c0f1166a
SQL
postgrespro/jsonbd
/jsonbd--0.1.sql
UTF-8
490
2.578125
3
[]
no_license
CREATE OR REPLACE FUNCTION jsonbd_compression_handler(INTERNAL) RETURNS COMPRESSION_AM_HANDLER AS 'MODULE_PATHNAME', 'jsonbd_compression_handler' LANGUAGE C STRICT; CREATE TABLE jsonbd_dictionary( acoid OID NOT NULL, id INT4 NOT NULL, key TEXT NOT NULL ); CREATE UNIQUE INDEX jsonbd_dict_on_id ON jsonbd_dictionar...
true
edbaabfc20748dd48ad074abfea733fdd967f247
SQL
NickSkye/poorhub
/public/cms/install/database/countries/ne.sql
UTF-8
13,106
2.5625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.42, for osx10.6 (i386) -- -- Host: localhost Database: laraclassified -- ------------------------------------------------------ -- Server version 5.5.42 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
true
679461cca271aad79d7139b63b13788918290f34
SQL
pkrsnak/queries
/military_sales_test.sql
UTF-8
2,020
3.484375
3
[]
no_license
SELECT FACILITYID, VENDOR_NBR, VENDOR_NAME, INVOICE_NBR, BILLING_DATE, CUSTOMER_NO_FULL, ITEM_NBR_HS, ITEM_DESCRIPTION, STORE_PACK, SIZE, QTY_SOLD, LAYER_EXT_COST, EXTENDED_SALES_AMT FROM crmadmin.t_whse_sales_history_dtl WHER...
true
74ce1d20bcd7673cd07c0dd9c71ff45a5d3dfe38
SQL
marcosantoniord/Comandos-SQL
/SQL - Statix - Zero a esquerda.sql
UTF-8
1,025
3.015625
3
[]
no_license
SELECT REPLICATE ('0',9-LEN(V.VDABRCNSU)) + V.VDABRCNSU, * FROM EXTRATO_CARTAO_BRCONSULT ECB INNER JOIN EXTRATO_PARCELA_VENDA_CARTAO_BRCONSULT EPV ON ECB.ID = EPV.ID_EXT AND ECB.EXTBRCDAT = EPV.EXTPARVDABRCDATPAG INNER JOIN VENDA_CARTAO_BRCONSULT V ON V.ID = EPV.ID_VDA WHERE ECB.EXTBRCDAT = '2020/02/12' AND ECB.ID= ...
true
529838beb0803214e952f59efd67c08cce9adb26
SQL
bondanchuk/tvkabel
/tvkabel (2).sql
UTF-8
258,169
3.234375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 01 Jul 2019 pada 15.46 -- Versi server: 5.6.21 -- Versi 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
eff3879b2e8cf6de57989973c9179527e48ae483
SQL
bigtheo/school-cash-procedure-stockes
/Views/AfficherPaiementExetatParID.sql
UTF-8
287
3.5625
4
[]
no_license
delimiter | CREATE PROCEDURE AfficherPaiementExetatParID(IN p_id INT) BEGIN select pe.id,pe.date_paie as 'Date et Heure',fe.designation as 'Désignation' from paiement_exetat as pe INNER JOIN frais_exetat as fe ON pe.frais_exetat_id=fe.id where pe.eleve_id = p_id; END | DELIMITER ;
true
22eadc61087694822208abb8bed0d0bb807b2ba9
SQL
marcondesmacaneiro/aulas_desweb_1
/php/src/RodrigoBorguezan/PHP/Trabalho_PHP/script banco/scriptbanco.sql
UTF-8
1,259
2.75
3
[]
no_license
delimiter $$ CREATE DATABASE `financas` /*!40100 DEFAULT CHARACTER SET latin1 */$$ delimiter $$ CREATE TABLE `despesa` ( `iddespesa` int(11) NOT NULL AUTO_INCREMENT, `descricao` varchar(100) DEFAULT NULL, `valor` decimal(18,6) DEFAULT NULL, PRIMARY KEY (`iddespesa`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT ...
true
4dd1477600482411cf29a48b40d5fd900d25b98a
SQL
imanmahjoubi/bamazon
/bamazon_db.sql
UTF-8
1,813
3.078125
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.7.23) # Database: bamazon_db # Generation Time: 2018-09-04 06:20:43 +0000 # ********************************************...
true
319373144b98a803bab9e82c57ce8129ccf6c30f
SQL
fhnib1998/NoHope
/nohope.sql
UTF-8
11,556
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th7 03, 2019 lúc 10:24 AM -- Phiên bản máy phục vụ: 10.1.38-MariaDB -- Phiên bản PHP: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
true
15387c91ec6719cb4e53588a5174c1fdb62017f4
SQL
igorcha82/project_BI
/schema.sql
UTF-8
3,794
3.875
4
[]
no_license
CREATE TABLE IF NOT EXISTS Organization ( id INTEGER COMMENT 'Уникальный идентификатор' PRIMARY KEY AUTO_INCREMENT , inn VARCHAR(20) NOT NULL COMMENT 'ИНН', kpp VARCHAR(20) NOT NULL COMMENT 'КПП', name VARCHAR(20) NOT NULL COMMENT 'Название', fullname...
true
897e2cb120100ec00cf262d25a44f5955f6a7b38
SQL
npsandler/UnifORM
/demo/teams.sql
UTF-8
737
3.6875
4
[]
no_license
CREATE TABLE players ( id INTEGER PRIMARY KEY, name VARCHAR(255) NOT NULL, team_id INTEGER, FOREIGN KEY(team_id) REFERENCES team(id) ); CREATE TABLE teams ( id INTEGER PRIMARY KEY, name VARCHAR(255) NOT NULL, nation_id INTEGER, FOREIGN KEY(nation_id) REFERENCES team(id) ); CREATE TABLE nations ( i...
true
14e1952c25b2c8eba3305e9611511c9b995dcf07
SQL
pmb086/Online-Bookstore-Management-Website
/database/book_store.sql
UTF-8
11,992
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 24, 2018 at 06:45 AM -- Server version: 10.1.28-MariaDB -- PHP Version: 5.6.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
163598cbcb3bbaa31826b1b57b9f46248845e627
SQL
RakshitaTantry28/Dream-Cricket-Game
/Dream-Cricket/Database/my11.sql
UTF-8
11,445
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 21, 2019 at 10:23 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
2d6189e3912945df2c59dc0d6442fd3edd177b64
SQL
Sebastian785/Aeki
/sql/Database_Initialization.sql
UTF-8
2,767
3.578125
4
[]
no_license
DROP DATABASE aeki; CREATE DATABASE aeki; USE aeki; CREATE TABLE aeki.dbo.Customer ( id int IDENTITY(1,1) NOT NULL, Name nvarchar(50) DEFAULT (NULL), PRIMARY KEY (id) ); CREATE TABLE aeki.dbo.FlavorType ( id int IDENTITY(1,1) NOT NULL, FlavorName nvarchar(50) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE aeki.d...
true
ea16b23fe5f02d174d3f7a87c6077bfad3943c13
SQL
PGrad-zz/HackUCI_Carpool_Backend
/db_dump/rideshare_db.sql
UTF-8
6,178
3.09375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.16, for Linux (x86_64) -- -- Host: localhost Database: rideshare_db -- ------------------------------------------------------ -- Server version 5.7.16-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACT...
true
af1eea3d1d8ad2b252c0cbcbe8c4d9e5a3f18cc7
SQL
ReneNyffenegger/oracle-patterns
/SQL/functions/math/width_bucket.sql
UTF-8
1,495
3.40625
3
[]
no_license
create table tq84_hist ( v number ); insert into tq84_hist select * from table(sys.dbms_debug_vc2coll( -- 0-6 7-13 14-20 21-27 28-34 35-41 42-48 49-55 -- --- ---- ----- ----- ----- ----- ----- ----- 16, 20, 29, 17, 27, 28, ...
true
4ed428ed05b98322e86b58c04d11daa81072f216
SQL
thanhhau052/C0221G1-DuongThanhHau
/module_3/data/database/bai_test.sql
UTF-8
1,504
3.875
4
[]
no_license
use ss2_bai_test1; CREATE TABLE customers( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(40), address VARCHAR(255), email VARCHAR(255) ); create TABLE orders( id INT AUTO_INCREMENT, staff VARCHAR(50), PRIMARY KEY(id), customer_id INT, FOREIGN KEY (customer_id) REFERENCES customers(id) ); CR...
true
c252bea73fc3321f728dd4224fe0a821dde6d047
SQL
akarzhaneuski/sandbox_jun2021
/sandbox-backend/src/main/resources/db/migration/V0000027__addFuzzySearch.sql
UTF-8
2,528
3.671875
4
[]
no_license
DROP function IF EXISTS `soundex_match`; DELIMITER $$ CREATE FUNCTION `soundex_match`( needle varchar(128), haystack text, splitChar varchar(1)) RETURNS tinyint DETERMINISTIC BEGIN declare spacePos int; declare searchLen int default 0; declare curWord varchar(128) default ''; declare tempStr t...
true
93090221f792c93333bc6acd5fc569d13fa23c09
SQL
Shahzaib981/Sql-Basics
/16 - String Function.sql
UTF-8
467
3.53125
4
[]
no_license
select * from tblperson select CHARINDEX('@', 'tom34@y.com') select SUBSTRING('tom34@y.com', CHARINDEX('@', 'tom34@y.com') + 1 ,6) select SUBSTRING('tom34@y.com', CHARINDEX('@', 'tom34@y.com') + 1 , LEN('tom34@y.com') - CHARINDEX('@', 'tom34@y.com')) Select SUBSTRING(Email, CHARINDEX('@', Email) + 1, LEN(Em...
true
da205718abd80d5f98362019fdb33bac85cc6612
SQL
jefferybennett/labs
/AzureIoT_BR/StreamAnalytics/ASAQuery1.sql
UTF-8
990
3.734375
4
[ "MIT" ]
permissive
With RawTelemetryGroupedByMinute AS ( SELECT DeviceId, DateAdd(hour, -7, System.TimeStamp) as EventDateTime, Temperature1, Temperature2, Pressure, Frequency, Latitude, Longitude FROM iothub TIMESTAMP BY EventProcessedUtcTime ), Alarms AS ...
true
7c7450c662333d9f490038bc7a9a919f44ee70e1
SQL
rajgu/machine-master
/db_structure/TypesStpStates.sql
UTF-8
517
2.5625
3
[]
no_license
-- -- @table: TypesStpStates -- -- Tabela przechowuje statusu, w ktorych moze znajdowac sie STP-a -- DROP TABLE IF EXISTS TypesStpStates; CREATE TABLE TypesStpStates ( Type TEXT PRIMARY KEY ); INSERT INTO TypesStpStates(Type) VALUES (''); INSERT INTO TypesStpStates(Type) VALUES ('disabled'); INSERT INTO TypesStp...
true
163b903aa2ac18d82f3a1dc11376ab4882fe15e1
SQL
Schitzos/node-API
/db.sql
UTF-8
4,523
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 15, 2018 at 03:33 AM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
6aa504d7eeab23a98285953394a6e08d4329da1e
SQL
miiwo/items-on-sale
/src/main/resources/schema.sql
UTF-8
735
3.796875
4
[]
no_license
DROP TABLE IF EXISTS Users; DROP TABLE IF EXISTS Products; DROP TABLE IF EXISTS Orders; DROP TABLE IF EXISTS SaleItems; CREATE TABLE Users ( id int AUTO_INCREMENT, username VARCHAR(250) UNIQUE NOT NULL, pass VARCHAR(250) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE Products ( id int AUTO_INCREMENT, ...
true
329b4760a033a45565c5d2e22ae32fecec63da67
SQL
google-code/beaver-mvc-ssh
/Liuyun/FreamWork/mybatis/src/MyBatis.Common.Test/Scripts/Oracle/DataBase.sql
ISO-8859-1
4,094
3.421875
3
[ "Apache-2.0" ]
permissive
/*==============================================================*/ /* Nom de la base : ORACLE */ /* Nom de SGBD : ORACLE Version 9i */ /* Date de cration : 27/05/2004 20:55:37 */ /*===============================================...
true
b6860310dac344b7c8b8eb221c9a6a6e677eb0ec
SQL
DavidSone11/crewlink_0_3
/src/database/database_dump.sql
UTF-8
19,238
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 17, 2015 at 08:27 AM -- Server version: 5.6.16 -- PHP Version: 5.5.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
9db930b6ce0369fe608d6bf4c233b35b1358a659
SQL
lucy-bit/lucy-repository
/HTTP协议-Servlet-博客-2/建库-建表.sql
UTF-8
516
3.09375
3
[]
no_license
CREATE DATABASE java20_blog04 charset utf8mb4; USE java20_blog04; CREATE TABLE users ( id INT PRIMARY KEY AUTO_INCREMENT, username VARCHAR(100) NOT NULL UNIQUE, password CHAR(64) NOT NULL, nickname CHAR(64) NOT NULL, brief VARCHAR(200) NOT NULL, registered_at DATETIME NOT NULL ); CREATE TABLE articles ( ...
true
acd08e2b7b991e2dad6aa1e7af72976d1e09a2a7
SQL
SergeiLevkovets/the-bank-list
/db/db_script.sql
UTF-8
1,491
3.53125
4
[]
no_license
DROP SCHEMA IF EXISTS `bank_list_db`; CREATE SCHEMA IF NOT EXISTS `bank_list_db` CHARACTER SET `utf8`; USE `bank_list_db`; CREATE TABLE `bank_list_db`.`user` ( `user_id` INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT, `name` VARCHAR(255) NOT NULL, `sure_Name` VARCHAR(255) NOT NULL ); CREATE TABLE `bank...
true
c5d39ef64fdd8f758e0da73c89883c4e22c8fdfe
SQL
andresgalaz/apisql
/prResetScore.sql
UTF-8
782
3.203125
3
[]
no_license
DROP PROCEDURE IF EXISTS prResetScore; DELIMITER // CREATE PROCEDURE prResetScore( in prm_dInicio DATE) BEGIN -- Inicializa la tabla tScoreDia para todos los días a partir de mayo de 2016 -- Parametros DECLARE vdDia date DEFAULT prm_dInicio; WHILE vdDia < fnNow() DO -- SELECT 'DIA', fnNow(), vdDi...
true
9cf117147c74fee0ae67c0dab1b9ce864149c863
SQL
CUBRID/cubrid-testcases
/sql/_13_issues/_17_1h/cases/cbrd_20909.sql
UTF-8
1,819
3.625
4
[ "BSD-3-Clause" ]
permissive
--+ holdcas on; drop table if exists t; create table t (name varchar(100020), job varchar(100020)); create index idx on t(name); insert into t values(repeat('Tom',300),repeat('account',300)); select /*+ select_btree_node_info(idx) */ bt_node_key_count,bt_node_first_key,bt_node_last_key from t; selec...
true
265435cdbb73cf39772025248acab1faa0c068a9
SQL
aayousry/FinalCaseStudy
/SQL/Creation SQL script.sql
UTF-8
2,633
3.953125
4
[]
no_license
CREATE DATABASE CaseStudy_A_Hassan /*!40100 COLLATE 'latin1_swedish_ci' */; /*CREATE TABLE user_is_admin ( user_id INT, admin_id INT, CONSTRAINT user_is_admin_pkey PRIMARY KEY (user_id, admin_id)) COMMENT='Table to know which Users are also Admins';*/ CREATE TABLE users ( id INT, first_name VARCHAR(50) NOT NULL, ...
true
c967b808fc445c29cefdb68938a00bcd15f42b46
SQL
mayankp97/AddressBookSystem
/SQL Queries/SpAddContact.sql
UTF-8
540
2.59375
3
[]
no_license
CREATE Procedure SpAddContact ( @FirstName varchar(20), @LastName varchar(20), @RelationType varchar(15), @Address varchar(15), @City varchar(15), @State varchar(20), @Zipcode varchar(6), @PhoneNumber varchar(13), @Email varchar(25), @DateAdded Date ) As Begin Insert into ABookTable values (@FirstName, @Last...
true
528bef2ff02efe8b5a7af3c02e5431ceff4e6873
SQL
ravikalla/online-account
/src/main/resources/import.sql
UTF-8
7,977
3.390625
3
[]
no_license
CREATE schema IF NOT EXISTS onlinebanking /*40100 DEFAULT CHARACTER SET latin1 */; /*USE onlinebanking;*/ DROP TABLE IF EXISTS user; /*40101 SET @saved_cs_client = @@character_set_client */; /*40101 SET character_set_client = utf8 */; DROP TABLE IF EXISTS primary_account; /*40101 SET @saved_cs_client = @@char...
true
ccd07c8e8b14a8dc2b620c53270cc4a02a48e0cb
SQL
njarek/repository
/tasks/hibernate/store/store/resources/cos.sql
UTF-8
1,006
3.640625
4
[]
no_license
select * from basket; select * from basket b, item i where b.b_id=i.b_id; select * from item; select * from lifecycle; select * from basket b, item i, lifecycle l where b.b_id=i.b_id and b.b_id=l.b_id; select basket0_.b_id as b1_1_0_, basket0_.b_name as b2_1_0_, basket0_.b_version as b3_1_0_ from basket basket...
true
a0cc69e75a91f80d65df64167b7a3fead82128f7
SQL
ory/kratos
/persistence/sql/migrations/legacy/20200401183443_continuity_containers.cockroach.up.sql
UTF-8
412
2.984375
3
[ "Apache-2.0" ]
permissive
CREATE TABLE "continuity_containers" ( "id" UUID NOT NULL, PRIMARY KEY("id"), "identity_id" UUID, "name" VARCHAR (255) NOT NULL, "payload" json, "expires_at" timestamp NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, CONSTRAINT "continuity_containers_identities_id_fk" FOREIGN KEY ("identity_i...
true
6cce37dbe26dea51743f0fca6241d700a92f390a
SQL
chandrakarim/Aplikasi_sewa_gedung_Web_php
/aldo.sql
UTF-8
9,424
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 25, 2020 at 01:52 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.2.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
2f9143f720ed3aeb93ff59184a687b9b432612af
SQL
ujjwalsinghdev/database_sql
/12_instagram_data.sql
UTF-8
2,385
4.03125
4
[]
no_license
CREATE DATABASE instagram_data; USE instagram_data; CREATE TABLE users( id INTEGER AUTO_INCREMENT PRIMARY KEY, username VARCHAR(255) UNIQUE, created_at TIMESTAMP DEFAULT NOW() ) CREATE TABLE photos( id INTEGER AUTO_INCREMENT PRIMARY KEY, image_url VARCHAR(255) NOT NULL, user_id INTEGER NOT NULL, created_at TIMESTAMP ...
true
b487d9fcdf44e66806ee553da63416fd6e9924dc
SQL
matrixorigin/matrixone
/test/distributed/cases/expression/temporal_interval.sql
UTF-8
18,000
2.65625
3
[ "Apache-2.0" ]
permissive
-- @suite -- @case -- @desc:test for temporal interval unit with data_add -- @label:bvt select date_add("1997-12-31 23:59:59.000002",INTERVAL "10000 99:99:99.999999" DAY_MICROSECOND); select date_add("1997-12-31 23:59:59.000002",INTERVAL "10000:99:99.999999" HOUR_MICROSECOND); select date_add("1997-12-31 23:59:...
true
9373fd2b2ce746a37728058838813a9b99a6a0f0
SQL
azavea/pfb-network-connectivity
/src/analysis/connectivity/destinations/transit.sql
UTF-8
2,611
4
4
[ "Apache-2.0" ]
permissive
---------------------------------------- -- INPUTS -- location: neighborhood -- proj: :nb_output_srid psql var must be set before running this script, -- e.g. psql -v nb_output_srid=2163 cluster_tolerance=75 -f transit.sql ---------------------------------------- DROP TABLE IF EXISTS generated.neighborhood_transi...
true
159afdfe8bc086a1db527e469a9282409a104bd0
SQL
Gsyrx/dbms-lab
/question-1/table.sql
UTF-8
1,301
4.125
4
[]
no_license
create table employee ( ssn varchar(10) primary key, e_name varchar(20), depno number(2), salary number(10) ); create table projects ( pno varchar(10) primary key, pdomain varchar(20) ); create table workson ( ssn varchar(10) references employee(ssn), pno varchar(10) references project...
true
2a1a484b454e1187587c9568824162334b6f1aa4
SQL
ramesesinc/clfc21
/projects/server/rameses-clfc-mobile-services.jar/sql/mobile_tracker_migrate.sql
UTF-8
555
3.109375
3
[]
no_license
[getForMigrateList] select t.* from mobile_tracker t left join mobile_tracker_migrated m on t.objid=m.objid where t.dtstart < $P{date} and m.objid is null order by t.dtstart desc [getTrackerDetail] select d.* from mobile_tracker_detail d left join mobile_tracker_detail_migrated m on d.objid=m.objid where m.objid is ...
true
01f90d5215f4de21deb794d85cb3dad84146d9ab
SQL
nguyenmanh1211/TTTN
/src/database/sqlCreateTable.sql
UTF-8
1,170
3.171875
3
[]
no_license
use asdatabases; create table users( id bigint(20) AUTO_INCREMENT primary key, name nvarchar(50), full_name nvarchar(70), user_name nchar, created_date datetime, created_by nchar, modified_date datetime, modified_by nchar ); create table role( id bigint(20) AUTO_INCREMENT primary key, ...
true
20390e24e0bcc7bfd75704dfee6e8d25fa13d3b6
SQL
UniversityofFlorida/Data-Warehouse
/issues/sections-classes-enrollment.sql
UTF-8
2,144
3.9375
4
[]
no_license
-- Oracle Query SELECT sections.UF_TERM, classes.TERM_CD, sections.UF_SECTION, classes.CLASS_SECTION, sections.UF_HEAD_CNT, classes.TOT_ENRLMT, sections.UF_DEP_NAME, classes.ACAD_ORG_FD, sections.UF_DEP_CD, classes.ACAD_ORG_CD FROM ( SELECT sect.UF_TERM, sect.UF_DEP_NAME, sect.UF_DEP_CD, sec...
true
6ee9c25504528c39eca23b8268d28457fc4fd228
SQL
jvalenta99/wifiphp
/mixVseho/KopienLehrerTagesweise/22Mar2018Lehrer/mysql/beispiele/002-prozedur.sql
UTF-8
431
3.03125
3
[]
no_license
use wifitag4; drop table if exists anwender; create table anwender( id int unsigned not null auto_increment primary key, vorname varchar(30) )engine=innodb; insert into anwender (vorname) values ('Peter'),('Maria'),('Sophia'); delimiter $$ drop procedure if exists paramdemo1 $$ create procedure paramdemo1(i...
true
2a02837b344f5c7b4783e2cede59c560da073432
SQL
JohnnyGomezzz/Spring-security
/src/main/resources/db/migration/V1__init.sql
UTF-8
1,362
3.4375
3
[]
no_license
create table users ( id bigserial, username varchar(30) not null unique, password varchar(80) not null, email varchar(50) unique, primary key (id) ); insert into users (username, password, email) values ('user1', '$2a$04$Fx/SX9.BAvtPlMyII...
true
5f281a5e5631288306a497d9341d4cd9f89a5a06
SQL
PLRanjit/CommandList
/LQS/reyq.sql
UTF-8
2,495
3.65625
4
[]
no_license
-----------------------------Enable disable constraint--------------- SELECT * FROM user_constraints WHERE table_name = :TableName; alter table TableName ENABLE constraint constraintName; alter table TableName DISABLE constraint constraintName; ----------------------Find column in entire databse-------------- desc all...
true
a051694e142d43897630c4bc33e4b8413ee564cf
SQL
evkafter/School-Quiz
/db/school_quiz.sql
UTF-8
9,455
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Φιλοξενητής: 127.0.0.1:3306 -- Χρόνος δημιουργίας: 14 Ιουλ 2019 στις 22:12:55 -- Έκδοση διακομιστή: 5.7.23 -- Έκδοση PHP: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!401...
true
28ee3ff550232d38528ad13d67e7243db10ec45d
SQL
eugenetan2015/IS203-Bidding-System
/testing/Test resources for Iteration 2/TestScriptCourseVacancy.sql
UTF-8
10,369
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Sep 23, 2016 at 05:27 PM -- Server version: 5.7.11 -- PHP Version: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_...
true
6b7dff6cd602c1d6f2d1c4c4f7792549917da1f3
SQL
Changman126/Dashboard-Back-Ups
/scripts/adleyh/BI-72.sql
UTF-8
729
3.328125
3
[]
no_license
SELECT distinct a.user_id, a.course_id, a.current_enrollment_mode, a.current_enrollment_is_active FROM d_user_course a join d_user b on a.user_id = b.user_id and a.course_id IN ( 'course-v1:HarvardXPLUS+CHNSLITx+3T2016', 'course-v1:HarvardXPLUS+CHNSLITxPLUS+3T2016', 'course-v1:HarvardXPLUS+HKS211xPLUS+3T2016', 'course-...
true
6d544ba62a78e5b88e95119bcdcf0f24dbb7b7c5
SQL
lilewa/---notProject
/工作/重庆新华/退货区货位调整.sql
UTF-8
1,100
3.21875
3
[]
no_license
select * from T_GHDWHWBAK t where hw='970020731' select * from t_ghdw_hythqhw a,t_ghdw_hythqhw170504 b where a.ghdwh=b.ghdwh and b.rqh <> a.rqh is null and a.hw<>b.hw where hqbh='93' and exists (select 1 from t_dfbj where wcbj='0' and ghdwh=t.ghdwh) select * from t_hykcsl t where exists (select 1 from t_dfbj whe...
true
7af0a41ae8273e76508822c2391761c04300a453
SQL
YVictor13/XDSE-exam_management
/sql/all_insert_data.sql
UTF-8
3,976
2.703125
3
[]
no_license
/*Data for the table `const_variable` */ insert into `const_variable`(`name`,`value`) values ('cur_exam_num','2020-01'), ('province_code','001'); /*Data for the table `course` */ insert into `course`(`course_code`,`course_name`,`course_english_name`) values ('0001','java','java'), ('0002','python','python'), ('00...
true
923cfcd93c67201b92dc23803db997641878dbab
SQL
junbao520/ZhaoXiBBS
/document/PhysicalDataModel_1/crebas.sql
UTF-8
3,864
3.484375
3
[ "MIT" ]
permissive
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 2020-12-7 10:30:08 */ /*==============================================================*/ drop table if exists PostReplys; drop table if ex...
true
3d782d38ae430a0d87a46b224e62ccb2cc0ed1c6
SQL
nova301191/SistemParkiranToserba-FINAL-
/parkirantoserba.sql
UTF-8
4,545
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 17, 2017 at 07:35 PM -- Server version: 10.1.28-MariaDB -- PHP Version: 7.1.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
f24822de28c06e43858ba5e286eaa29fa9dc38b9
SQL
pariksg/azure-try-functions
/AzureFunctions/database.sql
UTF-8
2,157
3.015625
3
[ "Apache-2.0" ]
permissive
-- https://github.com/serilog/serilog-sinks-mssqlserver CREATE TABLE [Diagnostics] ( [Id] int IDENTITY(1,1) NOT NULL, [EventId] int NOT NULL, [Message] nvarchar(max) NULL, [MessageTemplate] nvarchar(max) NULL, [Level] nvarchar(128) NULL, [TimeStamp] datetimeoffset(7) NOT NULL, [Exception] nvarch...
true
591c27531905b046b27bf94c345116141128f469
SQL
suzondas/quiz-app-vendor
/cmed-admin/database/tables/doc_exams_20180130.sql
UTF-8
6,815
3.0625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.3.8 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 30, 2018 at 12:00 AM -- Server version: 5.5.51-38.2 -- 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
631eff4411d2a0e483562977015a1e5d2f4d8fa5
SQL
MirelaMileva/Databases-MSSQL-SoftUni-Homework
/DatabasesIntroductionExercise/22.IncreaseEmployeesSalary.sql
UTF-8
124
2.578125
3
[ "MIT" ]
permissive
SELECT Salary FROM Employees UPDATE Employees SET Salary = Salary * 1.10 WHERE Salary > 1 SELECT Salary FROM Employees
true
4dbb9f2cf7536c225c0a05bc69b2d27436ecd87e
SQL
PawanGhewande/Exam-IN
/db/sql/exam-in.sql
UTF-8
12,446
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 15, 2018 at 04:27 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
8ee0cbcc88e348b011410f9430088d5398de487b
SQL
jichigo/test
/terasoluna-gfw-web-blank/src/main/resources/database/H2-schema.sql
UTF-8
1,143
3.84375
4
[]
no_license
create table article_class ( article_class_id varchar(128) not null, name varchar(64) not null, constraint pk_article_class primary key (article_class_id) ); create table article ( -- article_id IDENTITY not null, article_id bigint not null, title varchar(256) not null, overview va...
true
086be8dc713b28ee75468d238d6654ee8121bca8
SQL
chromaticphdevs/cake_ni_paran_jrenz
/app/schema/new.sql
UTF-8
1,370
3.28125
3
[]
no_license
alter table users add column email varchar(150) after lname; alter table users add column phone varchar(150) after email; alter table users add column address varchar(150) after phone; alter table cakes drop column category; alter table cakes add column categoryid tinyint not null; /*2019_28_10*/ alter table ord...
true
fd86e550571760d377e9ff7f67ff3aeab126bd55
SQL
EEMO22/SQL
/Practice03 - Aggregation.sql
UTF-8
4,420
4.875
5
[]
no_license
-- 문제 1. -- 매니저가 있는 직원은 몇 명입니까? 아래의 결과가 나오도록 쿼리문을 작성하세요 SELECT COUNT (manager_id) "haveMngCnt" FROM employees WHERE manager_id IS NOT NULL; -- 문제 2. -- 직원중에 최고임금(salary)과 최저임금을 “최고임금, “최저임금”프로젝션 타이틀로 함께 출력해 보세요. -- 두 임금의 차이는 얼마인가요? “최고임금 – 최저임금”이란 타이틀로 함께 출력해 보세요. SELECT MAX(salary) 최고임금, MIN(salary) 최저임금, (MAX...
true
31d3c3780fee6ec98f388c7565021dad4fb3bcf0
SQL
JVieraLedo/Proyect_Library
/PROYECTO BIBLIOTECA/DatosConsultas/ConsultaG.sql
ISO-8859-2
482
3.265625
3
[]
no_license
--Libros que se encuentran actualmente prestados (prestados, --no devueltos y dentro del plazo de 2 semanas): --Libro, Usuario, Fecha de prstamo. SELECT Libro.Titulo, Usuario.Nombre, Usuario.Apellidos, Realiza.Fecha FROM Libro, Tiene, Prestamo, Realiza, Usuario WHERE Libro.LI# = Tiene.LI# AND Tiene.PR# ...
true
e7d3c075d084c004f6069e01ffb032cefc7cfa0c
SQL
luisim/hatonuevo1
/install/sql/basefinal.sql
UTF-8
1,910
2.71875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 23, 2019 at 02:27 PM -- Server version: 10.1.36-MariaDB -- PHP Version: 5.6.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
f0ba966e7568a3ec7ea8685b0eb1ea350692a80a
SQL
angegon/IFCD0210-Desarrollo-de-aplicaciones-con-tecnologia-web
/Back_End/BBDDs/bd_pedidos.sql
UTF-8
16,366
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 23-06-2021 a las 10:10:10 -- Versión del servidor: 10.4.17-MariaDB -- Versión de PHP: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
36f7bee08337bdabf10808f05501410b6fff6e53
SQL
ipasa/mushkil-asan
/muskil-asan.sql
UTF-8
9,714
2.578125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.2.7 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 21, 2014 at 10:49 PM -- 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
4c56457b4ad03872be5cf49c2dd68baeb8e941ea
SQL
remibenault/examen_php_mailinglist
/remibena281091.sql
UTF-8
1,255
2.640625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.9 -- http://www.phpmyadmin.net -- -- Client : mysql51-79.perso -- Généré le : Ven 13 Juin 2014 à 15:46 -- Version du serveur : 5.1.73-1.1+squeeze+build0+1-log -- Version de PHP : 5.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
true
5908971b433a849b370fce200eaffef30b9a0f2f
SQL
ChikaraFukushima/SQL
/Q7.sql
UTF-8
322
3.015625
3
[]
no_license
mysql> SElECT item_name,item_price -> FROM item -> WHERE item_name LIKE '%肉%'; +-----------------+------------+ | item_name | item_price | +-----------------+------------+ | 生焼け肉 | 50 | | こんがり肉 | 500 | +-----------------+------------+ 2 rows in set (0.00 sec)
true
1e04331befbdf46c5cb38a07a61ea7cb3be05f53
SQL
saptarga/chat-socket
/Database/akademik.sql
UTF-8
1,509
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 15, 2016 at 09:02 -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
true
50a12da949a3323deac6a9897849ef6c39298daf
SQL
dayanarc7/SBDM_stackoverflow-_survey_results
/verificacion_cant.sql
WINDOWS-1250
612
3.875
4
[]
no_license
--VERIFICACIN DE CANTIDAD DE REGISTROS SELECT * FROM ( SELECT COUNT(*) cant FROM m2011 UNION ALL SELECT COUNT(*) FROM m2012 UNION ALL SELECT COUNT(*) FROM m2013 UNION ALL SELECT COUNT(*) FROM m2014 UNION ALL SELECT COUNT(*) FROM m2015 UNION ALL SELECT COUNT(*) FROM m2016 ) t -...
true
3194c65a33cef106c6ca8cef5bc5abd79c794753
SQL
sashiyama/syncnow_server
/src/db/migrations/000002_create_users_table.up.sql
UTF-8
262
2.734375
3
[]
no_license
CREATE TABLE IF NOT EXISTS users ( id uuid DEFAULT public.gen_random_uuid() PRIMARY KEY NOT NULL, created_at timestamp without time zone NOT NULL DEFAULT current_timestamp, updated_at timestamp without time zone NOT NULL DEFAULT current_timestamp );
true
e2ffd7fe0c1b1447448f08f3c5da6620a1890b72
SQL
ahmadtechcampus2/ahmad4
/برنامج الامين المحاسبي/Bin/System/prcCheckDBProc_add.sql
UTF-8
872
3.046875
3
[]
no_license
######################################################### create proc prcCheckDBProc_add @code [NVARCHAR](128), @name [NVARCHAR](128), @description [NVARCHAR](256), @latinName [NVARCHAR](128), @latinDescription [NVARCHAR](256), @procName [NVARCHAR](128) = '', @type [INT] = 0 as /* This procedure: - inserted a ...
true
9a6e39610f3b0cafd9e2291645752df72a7f677b
SQL
natterstefan/umahuesla-alexa-skill
/python/umahuesla/scripts/tweets.sql
UTF-8
286
2.609375
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS tweets ( uid STRING PRIMARY KEY, update_date TIMESTAMP, title_text STRING, main_text STRING, stream_id STRING, video_url STRING, hashtags ARRAY(STRING) ) CLUSTERED INTO {{ tweets and tweets.shards or 3 }} SHARDS WITH ( column_policy='strict' )
true
208bcb1d3c392db6012121290036b788da503688
SQL
cbsProcessMining/E-H
/IBC Backup/Transformations/SAP ECC Purchase to Pay/Transformation/Backup of Transformation - Add Activity Changes PO.sql
UTF-8
3,865
3.359375
3
[]
no_license
/*DESCRIPTION: 1. Transformation Description: This transformation creates the following activities: Release Purchase Order, Change Currency, Refuse Purchase Order, Change Vendor, Change Approval for Purchase Order 2. Required Tables: CDHDR CDPOS TMP_P2P_EKKO_EKPO USR02 3. Required Columns: CDHDR.BLOCK...
true
fddd41f8113914a7100a83dcaa007bf1bf7ee232
SQL
thelabtech/staffsite-java
/services-src/config/ddl/mssql/wsn_sp_ddl.sql
UTF-8
5,607
2.78125
3
[]
no_license
DROP TABLE wsn_sp_WsnProject; CREATE TABLE wsn_sp_WsnProject( WsnProjectID varchar(64) not null, name varchar(25) null, partnershipRegion varchar(2) null, history varchar(250) null, startDate varchar(22) null, stopDate varchar(22) null, city varchar(50) null, country varchar(50) null, details text null, stat...
true
88f6cd793791cacc832c205a1e5fb72d8fa381eb
SQL
wkdtjdqh/sql
/20200715.sql
UTF-8
14,272
4
4
[]
no_license
오라클 객체(object) table - 데이터 저장 공간 -ddl 생성, 수정, 삭제 view - sql(쿼리다) 논리적인 데이터 정의, 실체가 없다 view 구성하는 테이블의 데이터가 변경되면 view결과도 달라진다 sequence - 중복되지 않는 장수값을 반환해주는 객체 유일한 값이 필요할 때 사용할 수 있는 객체 nextval, currval index - 테이블의 일부 컬럼을 기준으로 미리 정렬해 놓은 데이터 ==> 테이블 없이 단독적으로 생성 불가, 특정 테이블에 종속 ...
true
211da142e83297a22ad77e793eb84c4982503450
SQL
Hemant1607/Assignment3
/Office/Office/SQLQueryOffice.sql
UTF-8
983
3.796875
4
[]
no_license
create database office use office create table project(projectNumber int identity(1001,1) primary key,name varchar(30),startDate date) create table department(departmentNumber int identity(2001,1) primary key,name varchar(30)) create table employee(employeeNumber int identity(3001,1) primary key,job_Title varc...
true
c2faff0f16370addc0bac29757f7e3636b61b768
SQL
nacamza/Postgresql-esencial
/Manipulación de datos/Seleccionar datos en PostgreSQL.sql
UTF-8
15,003
3.125
3
[]
no_license
ALTER TABLE libro DROP CONSTRAINT FK_LIBRO_AUTOR; ALTER TABLE libro ADD COLUMN isbn integer; ALTER TABLE libro DROP COLUMN autor_id; UPDATE libro SET isbn = '23467'::integer WHERE id = 1; CREATE TABLE libro_autor ( autor_id integer NOT NULL, libro_id integer NOT NULL, CONSTRAINT libro_autor_pkey PRIMARY...
true
87e58daaf6fb3b403c7c8f8d7312f72aee92bfaf
SQL
delphi1977/NewDicomPACS
/Database/oracle/constraints/asu.tambulance_by_id.sql
UTF-8
215
3
3
[]
no_license
ALTER TABLE ASU.TAMBULANCE DROP CONSTRAINT TAMBULANCE_BY_ID / -- -- Non Foreign Key Constraints for Table TAMBULANCE -- ALTER TABLE ASU.TAMBULANCE ADD ( CONSTRAINT TAMBULANCE_BY_ID PRIMARY KEY (FK_ID)) /
true
96480efca673fd51e68bd52a2b296b50cc93bc73
SQL
vijaydairyf/TimelyFish
/SolomonApp/dbo/Stored Procedures/dbo.DMG_CuryBaseToTrans.sql
UTF-8
561
2.859375
3
[]
no_license
 create procedure DMG_CuryBaseToTrans @BaseAmount decimal(25,9), @CuryRate decimal(25,9), @CuryMultDiv varchar(1), @DecimalPlaces smallint, @TransactionAmount decimal(25,9) OUTPUT as -- Need to invert the meaning of the flag because we are going from base to transaction if @CuryMultDiv = 'M' begin if @Cur...
true
1e6b3e2a3c34c40a3097d8b1acca0552316026b8
SQL
escapistal/oj-backend
/create_table.sql
UTF-8
8,844
3.796875
4
[ "MIT" ]
permissive
drop database if exists onlinejudge; create database onlinejudge; use onlinejudge; drop table if exists acm_contest_rank; CREATE TABLE acm_contest_rank ( id bigint AUTO_INCREMENT, contest_id bigint NOT NULL COMMENT '比赛id', user_id bigint NOT NULL COMMENT '用户id', locked bit NOT NULL COMMENT '用于区分封榜前后的榜', acce...
true
ccaa51e7e72867fa3fd2408472bce363b3060e93
SQL
bedashii/ReturnMedz
/MedzRandom/WebSites/Dota2TeamInvestigator/SQL Scripts/ViewSummary/PlayerSummaryViewSummary.sql
UTF-8
553
3.46875
3
[]
no_license
SELECT 100-((CONVERT(Decimal,(SELECT COUNT(*) FROM dbo.Players WHERE PersonaName IS NULL))/ CONVERT(Decimal,(SELECT COUNT(*) FROM dbo.Players WHERE PersonaName IS NOT NULL)))*100) PlayerSummariesComplete SELECT COUNT(*) UpdatedToday FROM dbo.Players WHERE LastUpdated >= CONVERT(DATE,GETDATE()) SELECT COUNT(*) NotUpda...
true
3a3278b96b095e753e48ea17aeabafee28511fdd
SQL
BryanAnariba/UNAH-CLASES
/IS501-II2015-master/Scripts/Unidad III/procedimientos_almacenados_estructuras_control.sql
ISO-8859-10
1,845
3.796875
4
[]
no_license
set serveroutput on; declare valor NUMBER := 100; begin IF (valor<=100) THEN dbms_output.put_line('El valor es menor o igual que 100'); ELSE dbms_output.put_line('El valor es mayor que 100'); END IF; end; DECLARE Num1 NUMBER :=3; Num2 NUMBER; -- Como no inicializamos la variable, su valor es NUL...
true
c0ed696d9c73175b7d84514af4bbaf29d23e0cfa
SQL
RockieLin/yii2-app-advanced-template
/db_schema/db.sql
UTF-8
10,289
3.359375
3
[ "BSD-3-Clause" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- 主机: localhost -- 生成日期: 2020-04-19 13:03:54 -- 服务器版本: 8.0.18 -- PHP 版本: 7.2.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; -- -- 数据库: `yii2-advanced-template` -- CREATE DATABASE I...
true
8fc85cef22b3e406488c175eaeb25510dc9fcdb4
SQL
haque-farhan/video
/first_project.sql
UTF-8
6,718
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 10, 2017 at 07:40 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
true
f3a46e1d9fdc86d32b865037f7e70a59bffae1b7
SQL
rkyrim/dionsite
/sql/profile_photo_table.sql
UTF-8
1,019
3.34375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- MySQL Workbench Synchronization -- Generated: 2016-05-06 20:36 -- Model: New Model -- Version: 1.0 -- Project: Name of the project -- Author: Patatas 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_MOD...
true
ae9162e94d463ed4cc963cfe69ebcf430363303d
SQL
adiquintero/interaxtelephony
/InteraxTelephonyInstallers/db/old/asterisk_schema_add_ivr_and_did_change.sql
UTF-8
4,797
3.125
3
[]
no_license
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 ; /*!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 utf8 */; /*!40103 SET @OLD_...
true
2aef9fb02d5772f5eaf91abd0a9f9eb757e00a30
SQL
arbab-cog/bar-api
/api/src/main/resources/scripts/clean_payment_instruction_data.sql
UTF-8
661
2.96875
3
[]
no_license
/* The following sql statements when executed clears all payment_instruction related data except reference data * * 1. TRUNCATE TABLE payment_instruction RESTART IDENTITY CASCADE; (clears data in payment_instruction,case_fee_detail, * payment_instruction_status,payment_instruction_payhub_reference and resets s...
true
cb772847572f0c0b16270efe1955948469beeacf
SQL
Guilleves/wholesaler-api
/server/migration/0-wholesaler-schema.sql
UTF-8
2,788
3.75
4
[]
no_license
DROP SCHEMA wholesaler; CREATE SCHEMA wholesaler; USE wholesaler; DROP TABLE IF EXISTS Organization; CREATE TABLE Organization ( id INT AUTO_INCREMENT, name VARCHAR(50), legalName VARCHAR(50), cuit VARCHAR(20), role VARCHAR(20), PRIMARY KEY (id) ); DROP TABLE IF EXISTS User; CREATE TABLE User...
true
a94c5dcb6de9bbc35106f4c585d44dce1bc57922
SQL
dbpm1/DECTMessagingDemonstrator
/app/DB/DECTMessagingSchema_mySQL.sql
UTF-8
2,697
2.953125
3
[]
no_license
DROP DATABASE IF EXISTS DECTMessaging; CREATE DATABASE IF NOT EXISTS DECTMessaging; USE DECTMessaging; create table Devices ( account VARCHAR(255), device_type VARCHAR(255) default "None", bt_mac VARCHAR(255) default "", name VARCHAR(255) default "no name", rssi VARCHAR(255) default "-100", ...
true
b6559536b08c37a848c09b85bd09c4d26030fe7c
SQL
vpcom/unhcr2hxl
/unhcr.sql
UTF-8
2,944
2.53125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 26, 2012 at 09:41 AM -- Server version: 5.5.24-log -- PHP Version: 5.4.3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
1e0383ca1c604f7ef9b9c2a53549133e5d2e2aac
SQL
KesselringWebmaster/chat
/db/chat_db.sql
UTF-8
555
3.0625
3
[]
no_license
CREATE TABLE IF NOT EXISTS `message` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `user_id` tinyint(4) NOT NULL, `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `message` varchar(255) NOT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; C...
true
05922a36de2a4893b1784793c0025667d87331d9
SQL
dlwnals2780/yepp
/sql/project_db_reservation.sql
UTF-8
2,751
3.046875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `project_db` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `project_db`; -- MySQL dump 10.13 Distrib 5.7.16, for Win64 (x86_64) -- -- Host: localhost Database: project_db -- ------------------------------------------------------ -- Server version 5.7.16-log /*!40101 SET @OLD_CH...
true
981d26054faad6d1f2c712651adbaea49eee87a9
SQL
Hamicch/Airline-Reservation-Database-System
/Airline Rservation System/airline_flight.sql
UTF-8
2,506
3.140625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64) -- -- Host: localhost Database: airline -- ------------------------------------------------------ -- Server version 8.0.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
true