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
fbf315f9b10c45d3dc995c0f92e88ae32e10344e
SQL
sjfcodes/MySQL-Employee-Tracker
/companySchema.sql
UTF-8
630
3.125
3
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS company_DB; CREATE DATABASE company_DB; USE company_DB; CREATE TABLE department( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(30) NOT NULL ); CREATE TABLE employeeRole( id INT AUTO_INCREMENT PRIMARY KEY, title VARCHAR(30), salary INT NOT NULL, department_id INT NOT...
true
acd12a5dfa1e12ae14119b025a88e237c7e637fc
SQL
ojdmytruk/db_labs_sem4
/Lab8/Lab8/10.sql
UTF-8
879
3.484375
3
[]
no_license
USE LazyStudent; CREATE TABLE Discounts (DiscountID INT PRIMARY KEY IDENTITY (1,1) NOT NULL, CompanyID INT NOT NULL, CONSTRAINT DiscountCompanyID FOREIGN KEY (CompanyID) REFERENCES Partners (PartnerID), Discount INT NOT NULL, FirstDay DATE NOT NULL, LastDate DATE NOT NULL); CREATE TAB...
true
f7f2aaa929cd68ed2d38c3608ae4ffc4a28f1903
SQL
tocaFuji/Fuadas
/8 + 9.sql
UTF-8
2,332
3.984375
4
[]
no_license
8. create table [daugiabutis] ( [daugiabutis_id] int identity(1, 1) primary key ,[adresas] nvarchar(64) not null ); create table [butas] ( [butas_id] int identity(1, 1) primary key ,[butoNr] int not null ,[daugiabutis_id] int not null REFERENCES daugiabutis(daugiabutis_id) ); ...
true
9d114b35acead788afde3d56b56b65a499d1dbb8
SQL
yqy141/admin-vue-template
/back/src/main/resources/static/sql/sys/sys_user.sql
UTF-8
2,151
3.3125
3
[ "Apache-2.0" ]
permissive
-- DROP DATABASE IF EXISTS admin_template; -- -- CREATE DATABASE admin_template; -- --------------------------sys_user 用户表--------------------------------------- USE admin_template; DROP TABLE IF EXISTS sys_user; -- 用户表 CREATE TABLE sys_user ( id bigint NOT NULL COMMENT '用户 ID', name varchar(20) NOT NULL COMME...
true
8ecf939ba9f57db401b781aa2a2ec8b9e626d5ff
SQL
claudito/php2018
/semana08/datatables/sql.sql
UTF-8
365
2.609375
3
[]
no_license
CREATE TABLE IF NOT EXISTS `paciente` ( `id` int(11) NOT NULL AUTO_INCREMENT, `codigo` varchar(20) NOT NULL, `nombres` varchar(200) NOT NULL, `apellidos` varchar(200) NOT NULL, `direccion` text NOT NULL, `estado` enum('ACTIVO','INACTIVO') NOT NULL, `fecha_creacion` timestamp NOT NULL DEFAULT CURRENT_TIMES...
true
e0e2f57520a9c07b94c2ee1246c249bf8944ee61
SQL
adludlow/recipefinder
/db/recipefinder_0.1.sql
UTF-8
3,461
3.859375
4
[]
no_license
create sequence INGREDIENT_ID_SEQ start with 1 increment by 1 minvalue 1 no maxvalue cache 1; alter table INGREDIENT_ID_SEQ owner to recipe_admin; create table INGREDIENT ( ID bigint not null, CREATED_TIMESTAMP timestamp without time zone not null, UPDATED_TIMESTAMP timestamp without t...
true
4f18dca0ef8f9844e9a13dc035d8a01c940bd8b1
SQL
Fun33/99_note
/DB/SQLServer/cache clear for 測試效能.sql
BIG5
948
3.71875
4
[]
no_license
--@ӨA|ݭnMSQL Server CacheDCOAbYǮɨ襦oO@ӥݪOAҦpGbperformanceɡAݭne᪬pCάOAbYǪpUcacheLk̷sƪpɡAڭ̳|ݭnMcacheʧ@AOpUG DBCC FREEPROCCACHE --|MProceduręΤƪpAs歫sͷsp DBCC DROPCLEANBUFFERS --|Mxsb֨ơAӤݭnsҰSQL Server SELECT count(*) * 8 / 1024 AS 'Ojp(Mb)', sum (CONVERT (bigint, free_space_in_bytes)) / (1024) AS 'ŶO(Kb)' , CAS...
true
cb4ce8f2820763e4591a2e2a7e989cfd7751affb
SQL
rlawjddbs/query
/pl1107/function_check_ssn.sql
UHC
391
3.15625
3
[]
no_license
-- ԷµǴ ֹ ȣ ȿ -- ڼ 14ڸ, 7° ڸ '-' ϴ -- : success, : fail create or replace function check_ssn(ssn char) return varchar2 is result_msg varchar2(7) := 'fail'; begin if length(trim(ssn)) = 14 and instr(ssn, '-') = 7 then result_msg := 'success'; end if; return result_msg; end; /
true
0aafd7a90a8cebc9548c75f5ad266fe6d02f4f11
SQL
Edmilla68/BitacoraSQL
/SESIONES Y BLOQUEOS/EJEMPLO SYSPROCESS.sql
UTF-8
1,043
3.03125
3
[]
no_license
-- Sys.sysprocesses -- select spid, blocked, -- solo valor si está bloqueada waittime, -- 0 = process its not waiting - lastwaittype, -- Description of last waiting dbid, -- Data base id used by the process cpu, -- Cumulative cpu time for the process physical_io, -- Cumulative disk reads and writes memusage, -- Numbe...
true
b66d39f6a6f8c732acc64745f92568b577c64eb1
SQL
plamenborachev/Softuni_DatabaseBasics_MySQL-January2018
/SQL_Script/07. Joins-Subqueries-and-Indices-Exercise/07. Joins-Subqueries-and-Indices-Exercise-P12-P17.sql
UTF-8
2,392
4.40625
4
[]
no_license
-- ********************************12. Highest Peaks in Bulgaria SELECT mc.country_code, m.mountain_range, p.peak_name, p.elevation FROM mountains_countries AS mc JOIN mountains AS m ON mc.mountain_id = m.id JOIN peaks AS p ON m.id = p.mountain_id WHERE mc.country_code = 'BG' AND p.elevation > 2835 ORDER BY p.elevation...
true
3f47481e5ba6197bff78cd8d14f956fda33eed20
SQL
JusticeArbiter/First_Work
/build_out/sql/124_select/3_select.sql
UTF-8
99
2.5625
3
[]
no_license
SELECT onek.unique1, onek.stringu1 FROM onek WHERE onek.unique1 > 980 ORDER BY stringu1 using <;
true
d6006865e32cf371d21dbb1ef9ecd316b388e95b
SQL
decaff46/sql-practice-codes
/LEET CODE/pracitce.sql
UTF-8
5,557
4.40625
4
[]
no_license
#create database interview; use interview; # get the first 3 select substring('hello world!', 1,3); # get the last 3 select substring('hello world!', -3); create table managers( ID INT auto_increment primary key, NAME varchar(30) not null, SALARY int not null ); #select * from managers; insert into m...
true
c8593b35331442850cda5777ee63739535bd588f
SQL
kgary/ser422asu_public
/BooktownREST/tomcat10/booktownrest.sql
UTF-8
4,757
3.390625
3
[ "CC0-1.0" ]
permissive
SET client_encoding = 'SQL_ASCII'; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: DATABASE booktown; Type: COMMENT; Schema: -; Owner: -- COMMENT ON DATABASE booktownrest IS 'The Book Town Database for SER422 REST example.'; -- -- Name: SCHEMA public; Type: COMMENT; Schem...
true
11672824fa9c9f29e6a9ac3164f466e9069f1010
SQL
bishopw/bandmap
/scripts/migrate-db/bandmap1.0.mysql.sql
UTF-8
403,568
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: db.seattlebandmap.com -- Generation Time: Mar 10, 2018 at 03:51 PM -- Server version: 5.6.34-log -- PHP Version: 7.1.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 ...
true
5e01b857d3aa71a7476dac038a526e3617513ad6
SQL
moutainhigh/tn-pay
/pay-web/src/main/resources/liquibase/change_log/pay_wait_payment_record.sql
UTF-8
2,364
3.3125
3
[]
no_license
CREATE TABLE pay_wait_payment_record ( payment_id int(11) NOT NULL AUTO_INCREMENT, -- 数据流标志 call_flow varchar(150) NOT NULL COMMENT '唯一支付指令流水号', out_order_no varchar(50) NOT NULL COMMENT '外部进单号', apply_id int(11) NOT NULL COMMENT '内部申请单号', trans_no varchar(150) NOT NULL COMMENT '商户订单号_宝付', -- 确定支付管道 s...
true
87600a8ff676f2b5d4472a74fd1c86dfa6c8b5cb
SQL
pdool/ExportDB2CSV
/sql/MONSTER_STATICTICS.sql
UTF-8
3,857
3.71875
4
[]
no_license
SELECT temp4.LEVEL 野怪等级, totalNum 挑战总次数, totalRole 挑战总人数, victoryNum 成功总次数, defeatNum 失败总次数 FROM ( SELECT LEVEL, count(*) totalNum FROM ( SELECT n_roleid, SUBSTRING_INDEX( SUBSTRING_INDEX(s_event, "|", -2), "|", ...
true
0c089d4e2fb85927067d7ee1a32f81c4d4d78490
SQL
jafarijason/mysqltutorial
/011-InnerJoin.sql
UTF-8
568
2.9375
3
[]
no_license
-- SELECT -- orderNumber, -- orderDate, -- orderLineNumber, -- productName, -- quantityOrdered, -- priceEach -- FROM -- orders -- INNER JOIN -- orderdetails USING (orderNumber) -- INNER JOIN -- products USING (productCode) -- ORDER BY -- orderNumber, -- orderLineNumber; ...
true
15c13261e7ce98f37c476a36ba4e0717dfdb95ec
SQL
birzhanm/mysql-tutorial
/Lesson_1/main.sql
UTF-8
2,136
4.8125
5
[]
no_license
-- Create a database CREATE DATABASE Lesson_1; -- Create a table CREATE TABLE profile( id INT NOT NULL AUTO_INCREMENT, firstName VARCHAR(255), lastNAME VARCHAR(255), country VARCHAR(255), age INT(11), PRIMARY KEY(id) ); -- Populate the table with some data INSERT INTO profile (firstName, lastName, country, age)...
true
af0919863128fd74480e9e082aed9c7140c01cf2
SQL
Hed94/insis
/out/production/insis/zdroje/insis.sql
UTF-8
3,414
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Počítač: 127.0.0.1 -- Vytvořeno: Pát 05. čen 2020, 23:11 -- Verze serveru: 10.4.8-MariaDB -- Verze PHP: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
true
2572d892270ed69158b5b351631a8e625e10ecdf
SQL
thealpha07/Farmers-Market
/registration.sql
UTF-8
3,452
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 07, 2021 at 10:59 PM -- Server version: 10.4.20-MariaDB -- PHP Version: 7.3.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
d4c39b70c3aaa777f4bcb1e944ba11bc2df0a1f4
SQL
stefanhummel/Advanced-Analytics
/NYPD/create_km_view.sql
UTF-8
274
2.71875
3
[]
no_license
CREATE VIEW NYPD_COLL_KM AS SELECT LATITUDE, LONGITUDE, DATE, TIME, BOROUGH, ON_STREET_NAME, CROSS_STREET_NAME, PERSONS_INJURED, PERSONS_KILLED, CONTRIBUTING_FACTOR_1, VEHICLE_TYPE_CODE_1, CLUSTER_ID FROM NYPD_COLL N, NYPD_KM_OUT K WHERE N.UNIQUE_KEY = K.ID;
true
6a6d0a59df75470fa861cf417833c90b36aa4f16
SQL
DarthThanatos/BD
/netezza/all_labdb.sql
UTF-8
4,828
3.046875
3
[]
no_license
CREATE TABLE ADMIN.LINEITEM_ORDERKEY ( L_ORDERKEY INTEGER NOT NULL, L_PARTKEY INTEGER NOT NULL, L_SUPPKEY INTEGER NOT NULL, L_LINENUMBER INTEGER NOT NULL, L_QUANTITY NUMERIC(15,2) NOT NULL, L_EXTENDEDPRICE NUMERIC(15,2) NOT NULL, L_DISCOUNT NUMERIC(15,2) NOT NULL, L_TAX NUMERIC(15,2) NOT NULL, L_RETURNFLAG CHA...
true
2b01e06be2ff8ded5e3209db3f452e9853baf1a0
SQL
jikramer/noaaBulletin
/scripts/dbInit.sql
UTF-8
1,281
3.125
3
[]
no_license
drop database noaabulletin; ###### #db ###### create database noaabulletin; use noaabulletin; ###### #tables ###### CREATE TABLE `noaabulletin`.`weatherZone` ( `station` varchar(50) NOT NULL, `header` varchar(1000) NOT NULL, `zone_codes` varchar(100) DE...
true
18818d99271101b6caa6eef8b9afbd705588bfdd
SQL
Loong-T/play-social-networking
/conf/sql/t_users.sql
UTF-8
3,278
3.515625
4
[]
no_license
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table t_comments ( cmts_id bigint auto_increment not null, cmts_post bigint not null, cmts_author bigint not null, cmts_content ...
true
27d3fa65a431a1f891a04d02a81ecd776f491041
SQL
quantbruce/leetcode_test
/SQL/Leetcode_SQL/595. 大的国家.sql
UTF-8
145
2.75
3
[]
no_license
# Write your MySQL query statement below ##很easy的题 select name, population, area from World where area > 3000000 or population > 25000000
true
f1b0cde17a8fa4223253939f24dd00a7440de547
SQL
lewis-demo/demo-spring-data
/schema-sql/src/main/resources/db/schema.sql
UTF-8
525
3.5
4
[]
no_license
-- drop table drop table T_CUSTOMER if exists; -- create table create table T_CUSTOMER ( ID identity generated by default as identity (start with 1, increment by 1) not null, FIRST_NAME varchar(100) not null, LAST_NAME varchar(100) not null ); -- add comments to the table comment on table...
true
b2e87cf5197be48c2be695b2e4c9ec091b5ae873
SQL
marvindaviddiaz/spring-mvc
/src/main/resources/db2.sql
UTF-8
404
3.171875
3
[]
no_license
CREATE TABLE SANDBOX.PRODUCTS ( ID INTEGER, DESCRIPTION varchar(255), PRICE decimal(15,2) ); CREATE OR REPLACE SEQUENCE SANDBOX.PRODUCTS_SEQ AS INTEGER; INSERT INTO SANDBOX.PRODUCTS (id, description, price) values(1, 'Lamp', 5.78); INSERT INTO SANDBOX.PRODUCTS (id, description, price) values(2, 'Table', 75.29...
true
2213ec639aa38ae94225877b17e4ecbe16ad8fc2
SQL
Ln-Yangzl/SMTP-server
/smpt.sql
UTF-8
5,226
3.25
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.26, for Win64 (x86_64) -- -- Host: localhost Database: smtp -- ------------------------------------------------------ -- Server version 8.0.26 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!401...
true
1fe228c46666b3e28c428860e16bd39cf39720eb
SQL
RapidApp/Rapi-Demo-CreatureZoo
/sql/creaturezoo.sql
UTF-8
2,690
3.546875
4
[]
no_license
DROP TABLE IF EXISTS [diet_type]; CREATE TABLE [diet_type] ( [id] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, [name] varchar(32) NOT NULL, [cls] varchar(16) DEFAULT NULL, [about] text DEFAULT NULL ); INSERT INTO [diet_type] ([name],[cls]) VALUES ('Herbivore','herbivore'); INSERT INTO [diet_type] ...
true
ca2589967525ca5c6e38fee5b9abc41dacb4f4df
SQL
Soumya-Patil/Project-1-ETL
/Resources/ETL_Query.sql
UTF-8
599
3.609375
4
[]
no_license
-- check if the tables been Populated SELECT * FROM happiness; SELECT * FROM population; SELECT * FROM life_expectancy; -- join tables on the country column SELECT a.country AS Country, b.population_2020 AS Population_2020, b.migrants_net AS Net_Migrants, b.world_share_percent AS World_Share_p...
true
5a5bddf92322003f57c6337d293d667d39be25b3
SQL
Sarmanova/Employee-Management-System
/db/query.sql
UTF-8
1,164
4.5625
5
[ "MIT" ]
permissive
-- it is first way to join 3 tables SELECT first_name,last_name,title,name,salary,manager_id, role_id FROM department -- first table's name INNER JOIN role -- second table's name ON role.department_id = department.department_id INNER JOIN employee -- third table's name ON employee.role_id =role.role_id -- it is secoi...
true
73cc41631c77cea3978b0d54eed10b77c78e1389
SQL
mirfan2017/CIS
/CardIssuanceSystem/CardIssuanceSystem.DAL/DBChanges/15March2018 - CardCharges-IsFED-IsREPLACEMENT.sql
UTF-8
467
2.625
3
[]
no_license
IF NOT EXISTS(Select top 1 * from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = '[vt_SoneriCIS].dbo.tbl_Card_Charges' AND COLUMN_NAME = 'IsFED') BEGIN ALTER TABLE [vt_SoneriCIS].dbo.tbl_Card_Charges ADD IsFED bit null END IF NOT EXISTS(Select top 1 * from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = '[vt_SoneriCI...
true
6779c996e13aa788871ac90ed4823a7410b95bcf
SQL
Darivo84/FatBastardWines
/database_bu/fat_bastard.sql
UTF-8
2,350
3.015625
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4135 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: 192.168.1.127 (MySQL 5.5.29) # Database: fat_bastard # Generation Time: 2015-02-25 14:40:33 +0000 # *****************************************...
true
f3a37c1152469177e73ef8993f37eb8fd8a100b6
SQL
Muskankalonia/Hotel-Management-DBMS
/hotel_dbms/mis.sql
UTF-8
11,398
3.15625
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; CREATE TABLE `booking` ( `booking_id` int(10) NOT NULL, `customer_id` int(10) NOT NULL, `room_id` int(10) NOT NULL, `booking_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `check_in` varchar(100...
true
f66fc017804234462e1d1a6cda0c65d0ea19e6ae
SQL
sxinger/COVID-SOFA-SLLM-MLLM
/src/Oracle/covid06_vital.sql
UTF-8
868
3.375
3
[]
no_license
/* Table 6 - Vital Table Note that: observation time window is within [admit_date - 365d, discharge_date + 30d] */ /*connect to most up-to-date CDM instance containing COVID patients*/ -- make sure that the eligible encounter table is accessible select * from covid_eligible_enc; whenever sqlerror co...
true
090754cda8e94c2fe51894564fc92048633a799e
SQL
quochuybkc/csdlass2_final
/duc/Cau1.sql
UTF-8
658
3.140625
3
[]
no_license
CREATE PROCEDURE newCustomer ( @MaThe varchar(10), @HoTen nvarchar(20), @CMT char(9), @DiaChi nvarchar(20), @SDT char(10) ) AS IF len(@CMT) < 9 BEGIN PRINT 'Thong tin khong hop le!!!'; -- CMT của ta (cũ) thường có 9 số và với loại thẻ mới có > 10 số, vậy với mã thẻ nhỏ hơn 9 số là không hợp lệ END ELSE BEGIN INSERT ...
true
4c7fa43900d60ac23aef8cbd9f063ee31d34c08a
SQL
AdvancedDatabases/ZSBD-studies-course
/benchmark/test-sets/c-experiment-compression/9-capacitylow.sql
UTF-8
1,254
3.734375
4
[]
no_license
ALTER TABLE ORDER_ITEMS INMEMORY MEMCOMPRESS FOR CAPACITY LOW; / SELECT table_name, inmemory, inmemory_priority, inmemory_distribute, inmemory_compression, inmemory_duplicate FROM user_tables WHERE table_name = 'ORDER_ITEMS'; / UPDATE ORDER_ITEMS SET UNIT_PRICE = ( ...
true
8725af8d4bfa36dac78db869fec1871ca1a7ecb4
SQL
tm1/kinode
/Data/000.001.004.054.d-e.data.update.sql
UTF-8
461
2.859375
3
[]
no_license
/* Server Version: WI-V6.3.2.4721 Firebird 1.5. ODS Version: 10.1. */ CONNECT 'LOCALHOST/3050:C:\FB_DATA\KAPPA.FDB' USER 'DEVEL001' PASSWORD 'primarykey' ROLE 'CLEANER'; UPDATE TB_SEAT SET SEAT_Y = 53 WHERE (SEAT_ODEUM$LOCAL_KOD = 7) AND (SEAT_ROW = 9) AND (SEAT_COL IN (1,2,3,4,5,6,7,8,9,10,11)); UPDATE TB_...
true
d7eac249effefb6288271010938cf3437b5ffc14
SQL
glinnar/Grad-job
/Examensarbetet3.sql
UTF-8
279
2.8125
3
[]
no_license
drop database cities; Create database cities; Use cities; drop user 'Gurra'@'localhost'; CREATE USER 'Gurra'@'localhost'; grant all privileges on test.* to 'Gurra'@'localhost'; create table City ( postnr int NOT NULL, cityname varchar(30) )Engine = INNODB; SELECT*FROM City;
true
81d05d0a2828ebd9080d55dc20fc90f54f67c43a
SQL
MadurangaNamal/Burger-ordering-website
/burger_shop .sql
UTF-8
2,496
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 27, 2019 at 08:38 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
292f303dc72d5eedc9adf55e1d30b8dbb4b55e65
SQL
geodatup/script-librairy
/SQL/ELYX/MANAGER_STARAPIC/samples/CleanTextOrient.sql
ISO-8859-1
2,027
3.421875
3
[]
no_license
------------------------------------------------------------------------------------------------------------------ -- Traitement ralis : -- Correction des donnes dcimales stocke en type VARCHAR : -- Pour un catalogue, une table et une colonne donns ...
true
6f18d203932d47a78905247b6e99fdc774577e4c
SQL
AxelR13/AbarrotesNeza
/AbarrotesNeza/abarrotes.sql
UTF-8
6,408
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 15-07-2021 a las 12:20:20 -- Versión del servidor: 10.3.29-MariaDB-0+deb10u1 -- Versión de PHP: 7.3.29-1~deb10u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00";...
true
409531b1909b86250e64186d6e029a0bbebf1f78
SQL
bowendeng15/SQL-Tutorial
/Scripts/GROUP-BY&JOIN_先Join后Group.sql
UTF-8
400
4.125
4
[]
no_license
# 先GroupBy后Join # BAD -- 2 SELECT SELECT g.site_id, w.name, g.avg FROM (SELECT a.site_id, AVG(a.count) avg FROM access_log a GROUP BY a.site_id) g INNER JOIN websites w ON g.site_id=w.id ORDER BY g.avg DESC; # 先Join后GroupBy # GOOD -- 1 SELECT SELECT a.site_id, w.name, AVG(a.count) avg FROM access_log a INNER JOIN web...
true
88221a33e178494de2e48483ac9753f9b1a3d611
SQL
mrProper-666/jwttest
/src/main/resources/db/migration/V1.0__init.sql
UTF-8
1,526
4.15625
4
[]
no_license
CREATE TABLE role ( id bigint NOT NULL, name character varying(100) NOT NULL, created timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP, updated timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP, status character varying(25) NOT NULL DEFAULT 'ACTIVE'::character varying, CONST...
true
140bb53df7872c54a2f7b942e442aeb95a279818
SQL
LeHongQuocVuong/king
/database.sql
UTF-8
33,920
3.015625
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.4.17-MariaDB - mariadb.org binary distribution -- Server OS: Win64 -- HeidiSQL Version: 11.2.0.6213 -- -----------------------------------------------...
true
5b1ec597210a66586c61777558e7b82d466ac36a
SQL
pKarwingC/face-recognition-api
/postgres/tables/login.sql
UTF-8
142
2.5625
3
[]
no_license
BEGIN TRANSACTION; CREATE TABLE login ( "id" serial PRIMARY KEY, "hash" VARCHAR( 100 ) NOT NULL, "email" TEXT UNIQUE NOT NULL ); COMMIT;
true
de1de243b4ac0f585f6b6254748968dc79b95566
SQL
Ramgree/enterprise_integration_systems
/homework_two/scripts/init.sql
UTF-8
1,068
3.796875
4
[]
no_license
CREATE TABLE plant ( plant_id INT GENERATED ALWAYS AS IDENTITY, PRIMARY KEY(plant_id), plant_daily_rental_price numeric, plant_name VARCHAR(100) NOT NULL, plant_type_name VARCHAR(100) NOT NULL ); CREATE TABLE booking ( plant_id int, CONSTRAINT fk_plant_id FOREIGN KEY (plant_id) ...
true
ce2758ccaf897f45972da9a2603dddfd559aa34b
SQL
minjae1030/board
/sql/kopoctc_hubo.sql
UTF-8
2,300
2.984375
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64) -- -- Host: 192.168.23.99 Database: kopoctc -- ------------------------------------------------------ -- Server version 8.0.25-0ubuntu0.20.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTE...
true
4f1353f68f611c84e44e7b8bc612c27e3762cd55
SQL
kid3028/spring-cloud
/spring-cloud-oauth2/spring-cloud-oauth2-lab02(jdbc)/src/main/resources/schema.sql
UTF-8
4,981
3.609375
4
[]
no_license
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for ClientDetails -- ---------------------------- DROP TABLE IF EXISTS `ClientDetails`; CREATE TABLE `ClientDetails` ( `appId` varchar(256) NOT NULL, `resourceIds` varchar(256) DEFAULT NULL, `appSecret` varchar(256) DEFAULT NULL, `sc...
true
a152d81822860a5a0b4f8ebf7042dc852ccef2e8
SQL
AlexandrShinkevich87/movies-booking-service
/src/main/resources/db/changelog/migrations/01-create-booking-model.sql
UTF-8
2,246
3.90625
4
[ "Apache-2.0" ]
permissive
create table auditorium( id bigserial not null, name text not null, number_of_seats int, constraint pk_auditorium_id primary key (id) ); create table seat( id bigserial not null, seat_number int not null, seat_type te...
true
8f0d7cabcf97957ab7cba0883a4344202fd305c2
SQL
RafiqAdil/sucrerie
/Scripte/alter_sucrerie.sql
UTF-8
408
2.71875
3
[]
no_license
ALTER TABLE Commande ADD CONSTRAINT FK_COM_CLI FOREIGN KEY (code_c) REFERENCES Client (code_c); ALTER TABLE Commande ADD CONSTRAINT FK_COM_VEN FOREIGN KEY (code_v) REFERENCES Vendeur (code_v); ALTER TABLE Ligne_commande ADD CONSTRAINT FK_LIG_COM FOREIGN KEY (numero) REFERENCES Commande (numero); ALTER TABLE Ligne_co...
true
66d794b48a8d0c0142d0af5ba56c8d91ce0147f6
SQL
martinusmarlim/02-tiket-java-intermediate-transfer-csv-to-db-using-spring-batch
/src/main/resources/spring/batch/sql/create-table.sql
UTF-8
4,532
3.78125
4
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; -- -- Database: `tiket` -- -- -------------------------------------------------------- DROP TABLE IF EXISTS `order_details`; DROP TABLE IF EXISTS `orders`; DROP TABLE IF EXISTS `products`; DROP ...
true
338b5591ee526be92bbbd595778c3650e314bc34
SQL
fcabanilla/educacionIT
/02-introduccionBBDDSQL/clase01/sql/02-autoIncrement.sql
UTF-8
434
2.6875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS clase_01; DROP TABLE IF EXISTS clase_01.02_auto_increment; CREATE TABLE clase_01.02_auto_increment( id INT UNSIGNED NOT NULL AUTO_INCREMENT, nombre VARCHAR(60) NOT NULL, PRIMARY KEY(id) ); INSERT INTO clase_01.02_auto_increment (nombre) VALUES('Federico'); INSERT INTO clase_01....
true
5f162d38daefb95d085cd81dc0eb4e2c699dd27f
SQL
miguelhp373/Curso_SQL_Server
/11 - Between, In, Like + Desafios.sql
WINDOWS-1252
707
4
4
[ "MIT" ]
permissive
-- BETWEEN - RETORNA UM VALOR ENTRE O MINIMO E O MAXIMO SELECT * FROM Production.Product WHERE ListPrice BETWEEN 1000 AND 1500 SELECT * FROM HumanResources.Employee WHERE HireDate BETWEEN '2009/01/01' AND '2010/01/01' ORDER BY HireDate -- IN - UTILIZADO JUNTO COM O WHERE PARA VERIFICAR SE UM VALOR CORRESPONDEM COM...
true
3e5273018464f6f0910970a24aeecf8d814b26cf
SQL
bubdm/Dynamo-2
/NerdBudget/NerdBudget.Database/Tables/MAP.sql
UTF-8
482
3.4375
3
[ "Apache-2.0" ]
permissive
use NERD_BUDGET; if OBJECT_ID('dbo.MAP') IS NOT NULL DROP TABLE dbo.MAP create table dbo.MAP ( account_id char(2) not null, map_id char(8) not null, budget_id char(2) not null, regex_pattern varchar(750) not null, created_at datetime not null, updated_at datetime null, primary key (a...
true
15f283d784e6faf4abd19d4b0d62f4b7412f0ab6
SQL
loge1998/fitness-app
/app/db/table_creation_scripts/create_user_tasks_table.sql
UTF-8
310
4.03125
4
[ "MIT" ]
permissive
create table IF NOT EXISTS USER_TASKS( id serial primary key, user_id INT not null, task_id INT not null, CONSTRAINT userid_in_user_tasks_constraint FOREIGN KEY(user_id) REFERENCES users(user_id), CONSTRAINT task_id_in_user_tasks_constraint FOREIGN KEY(task_id) REFERENCES tasks(id) );
true
2c24dadb19d3671f609b6ee0dc64e26c14e23de4
SQL
chaudharytheboy/usasurveysam
/hostingadmin_usasam.sql
UTF-8
4,368
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 04, 2019 at 02:59 AM -- Server version: 10.3.15-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...
true
7bc584c44b1987267f830892368ac7741054baef
SQL
anakettl/assembly
/src/main/resources/db/migration/V1/V1_3__ Create_Table_Schedule.sql
UTF-8
928
3.53125
4
[ "MIT" ]
permissive
CREATE TABLE SCHEDULE ( UID_SCHEDULE BIGINT NOT NULL, TITLE VARCHAR(100) NOT NULL, STATUS VARCHAR(50) NOT NULL, DESCRIPTION VARCHAR(255), DURATION_ESTIMATE BIGINT, END_TIME TIMESTAMP, START_TIME TIMESTAMP, RESULT VARCHAR(50) NOT NULL ); COMMENT ON TABLE SCHEDULE IS 'Tabela com as informações das pautas.'; COMMENT ON C...
true
4df532ab16c3b932875e17417e6b39a5b09c5181
SQL
Squiercg/algprog
/topicosbd/prova/questao1.sql
UTF-8
22,573
2.96875
3
[]
no_license
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: - -- CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_cat...
true
1eed34a90c918b31dedf50407ba560018789f018
SQL
iperezgamboa/top_100
/peliculas.sql
UTF-8
2,550
4.3125
4
[]
no_license
--1. Crear base de datos llamada películas --2. Revisar los archivos peliculas.csv y reparto.csv para crear las tablas correspondientes, determinando la relación entre ambas tablas. CREATE DATABASE peliculas CREATE TABLE peliculas(id SERIAL PRIMARY KEY, pelicula VARCHAR(100), año_estreno INT, director VARCHAR(50)); ...
true
53ddd1c72074a16744efc646730ace5fe87a3b93
SQL
DaeHanWyee/Location_Based_Second_Hand_Market
/distributed/.svn/pristine/95/95b3ae33c7e7a8374f26180ffa6c04ad5390f66f.svn-base
UTF-8
366
2.59375
3
[]
no_license
--- 20151008 Byungwook update --- create insert test complete CREATE TABLE TBL_BOARD_OPTION ( BOARD_TYPE VARCHAR(15) NOT NULL comment 'board type: 공지=0, 일반=1', BOARD_COUNT INT(10) UNSIGNED NOT NULL DEFAULT '0', PRIMARY KEY (`BOARD_TYPE`) ); insert into TBL_BOARD_OPTION (BOARD_TYPE) values('0'); insert into TBL_B...
true
300aea1bbe838c8af5d73ef344e5ef669e58a5c1
SQL
ktaaam/Shift-Scheduler
/Shift-Scheduler/Shift-Scheduler/App_Data/shifts.sql
UTF-8
3,022
2.796875
3
[]
no_license
delete from Employees; delete from shifts; delete from ShiftsEmployees; insert into Shifts values('SunMor','Sunday','Morning'); insert into Shifts values('SunEve','Sunday','Evening'); insert into Shifts values('SunNit','Sunday','Night'); insert into Shifts values('MonMor','Monday','Morning'); insert into Shifts value...
true
ce0e922dcee90aa0fd499ada85fe6a33025b1a43
SQL
ssong6735/isec_teamproject03
/src/main/resources/static/ddl/table.sql
UTF-8
499
3.015625
3
[]
no_license
CREATE SEQUENCE seq_rmboard; CREATE TABLE rmboard( res_num NUMBER(10), res_name VARCHAR2(20) NOT NULL, tel_number VARCHAR2(20) NOT NULL, menus VARCHAR2(2000), category VARCHAR2(20) NOT NULL, CONSTRAINT pk_rmboard PRIMARY KEY (res_num) ); --ALTER TABLE rmboard MODIFY(res_name VARCHAR2(50)); --A...
true
01967362001927b0661d78754f030253a296c649
SQL
worgelabolg/notepad
/oracle/研究实验/Expert_Oracle test_data/book/ch08/demo1.sql
UTF-8
551
3.328125
3
[]
no_license
drop table t2; drop table t; set echo on create table t2 ( cnt int ); insert into t2 values ( 0 ); commit; create table t ( x int check ( x>0 ) ); create trigger t_trigger before insert or delete on t for each row begin if ( inserting ) then update t2 set cnt = cnt +1; else update t2 set cnt = c...
true
e02caf7ca2aecd3d6bb88888dfae31dd9322610c
SQL
kevindaizj/MagiBitcoin
/USDTWallet.DataContext/Datas/usdt.sql
UTF-8
1,550
3.21875
3
[]
no_license
DROP TABLE BASE_ADDRESS; CREATE TABLE BASE_ADDRESS( ID VARCHAR(50) PRIMARY KEY, ADDRESS VARCHAR(100) NOT NULL, EXTPUBKEY_WIF NVARCHAR(200) NULL, WALLET_ID VARCHAR(50) NULL, NETWORK INTEGER NOT NULL DEFAULT(1), -- 1: Mainnet 2: Testnet(regtest) KEY_PATH NVARCHAR(500) NULL, PARENT_KEY_PATH NVARCHAR(500) NULL, PATH_INDE...
true
8ab3464b2574f6ce815c98ce409afcd2bd34adc8
SQL
jinxTelesis/BCS360
/tCus.sql
UTF-8
2,735
2.515625
3
[]
no_license
SET IDENTITY_INSERT tCus ON; INSERT INTO tCus (CustomerID, EmailAddress,Password, FirstName, LastName, ShippingAddressID, BillingAddressID) VALUES (1, 'allan.sherwood@yahoo.com','ABAqeBAABA', 'Allan', 'Sherwood', 1, 2), (2, 'barryz@gmail.com','ABABqweAABA', 'Barry', 'Zimmer', 3, 3), (3, 'christineb@solarone.com','ABAB...
true
87e5bc8b0ccbb05bb4cef53819f56559991bf10d
SQL
lppavli/user_account_keeper_go_service
/postgresql/dbinit.sql
UTF-8
434
3.203125
3
[]
no_license
-- Creation of user table --CREATE DATABASE IF NOT EXISTS account_keeper; SET TRANSACTION ISOLATION LEVEL SERIALIZABLE; CREATE TABLE IF NOT EXISTS users ( user_id INT NOT NULL, amount INT NOT NULL, PRIMARY KEY (user_id) ); CREATE TABLE IF NOT EXISTS history ( id INT NOT NULL GENERATED ALWAYS AS IDENTITY, u...
true
e53e78c8f509b48edf7c5e66049fbe579812695b
SQL
jmgtheworld/LightBnB
/seeds/01_seeds.sql
UTF-8
2,161
2.609375
3
[]
no_license
INSERT INTO users (name, email, password) VALUES ('Michael Scott', 'littekidlover@gmail.com', '$2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBIDRh70tGevYzYzQgFId2u.'), ('Pamela', 'pampampam@hotmail.com', '$2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBIDRh70tGevYzYzQgFId2u.'), ('Jim Halpert', 'jimhalpert@gmail.com', '$2a$10$FB/BOAVhpuLv...
true
50163c55ddbec62f82045a757ace2a6be9797d21
SQL
JuanMaVelezPa/Project_PostgreSQL
/BD/Structure/DDL/SST_TEMRO.sql
ISO-8859-3
1,913
3.296875
3
[]
no_license
-- -- Universidad de Sabaneta -- PostgreSQL -- Team: 23 -- -- Version: 0000001000 -- -- VERSION DATE DEVELOPER OBSERVATION -- ============ =========== ================== =================================================================== -- 1000 27/10/2021 Juan Manuel Velez Creacion d...
true
5a20836378f823e203907db5309043559892e0a2
SQL
landofcoder/php-training-crm
/db/DataBase.sql
UTF-8
991
3.46875
3
[]
no_license
-- tao database voi ten la managecustomer CREATE DATABASE managecustomer; USE managecustomer; -- tao cac table cho database CREATE TABLE admin ( username char(50) PRIMARY KEY, password char(50) ); CREATE TABLE customer ( id INT NOT NULL AUTO_INCREMENT, name varchar(50) NOT NULL, birthday date NOT NULL, ...
true
0caae3bf78aff1b771a772b6b449fee3ba7f7441
SQL
LiXianyao/message_platform
/sql/users.sql
UTF-8
326
2.6875
3
[]
no_license
create table MessageAnalysis.users ( userid int not null auto_increment primary key, username varchar(64) not null, passwd varchar(64) not null, identity int not null, email varchar(64) null, lastTaskId varchar(16) null, foreign key (identity) references MessageAnalysis.identity(identity) )CHARSET ="ut...
true
493f5464233c66dbc654efb01575668d18c37aa9
SQL
Lightwing-Ng/LeetCodeSQL-master
/626换座位.sql
UTF-8
1,771
4.28125
4
[]
no_license
/* 小美是一所中学的信息科技老师,她有一张 seat 座位表,平时用来储存学生名字和与他们相对应的座位 id。 其中纵列的 id 是连续递增的 小美想改变相邻俩学生的座位。 你能不能帮她写一个 SQL query 来输出小美想要的结果呢? 示例: +---------+---------+ | id | student | +---------+---------+ | 1 | Abbot | | 2 | Doris | | 3 | Emerson | | 4 | Green | | 5 | Jeames | +---------+---...
true
dd5a356f3f9005deaa5498f967ec3fed4ec71bb6
SQL
peacetraintrack/java-web-dev-techjobs-persistent
/queries.sql
UTF-8
494
3.96875
4
[]
no_license
## Part 1: Test it with SQL SELECT column_name, data_type FROM information_schema.columns WHERE table_schema = "tech_jobs" AND table_name = "job" ; ## Part 2: Test it with SQL SELECT * FROM tech_jobs.employer WHERE location LIKE 'sai%' ; ## Part 3: Test it with SQL DROP TABLE job; ## Part 4: Test it with SQL ...
true
10862bdb59afc9cb92c17896258705c6f3850434
SQL
harshadak/MySQL-friendships
/friendships.sql
UTF-8
275
3.609375
4
[]
no_license
SELECT users.first_name, users.last_name, users2.first_name as friend_first_name, users2.last_name as friend_last_name FROM users LEFT JOIN friendships ON users.id=friendships.user_id LEFT JOIN users as users2 ON users2.id = friendships.friend_id ORDER BY friend_last_name;
true
a47a4e2375d4255c83cb81e18b0a09abea8800ce
SQL
jakewisse/csci332-final-project
/sql/checkPassword.sql
UTF-8
679
3.453125
3
[]
no_license
-- -------------------------------------------------------------------------------- -- Routine DDL -- Note: comments before and after the routine body will not be stored by the server -- -------------------------------------------------------------------------------- DELIMITER $$ DROP PROCEDURE IF EXISTS checkPassword...
true
39e2d14b5d47410acd672e5f304d4fbca0f54fb0
SQL
GSIL-Monitor/er
/db/sp/I_STOCKOUT_ORDER_REVERT_CHECK.sql
UTF-8
616
3.109375
3
[]
no_license
DROP PROCEDURE IF EXISTS `I_STOCKOUT_ORDER_REVERT_CHECK`; DELIMITER // CREATE PROCEDURE `I_STOCKOUT_ORDER_REVERT_CHECK`(IN `P_StockoutId` INT(11), IN `P_ReasonId` INT , IN `P_LogisticsStatus` INT, IN `P_SendibllStatus` INT, IN `P_Force` INT) SQL SECURITY INVOKER COMMENT '驳回审核' BEGIN DECLARE EXI...
true
5e9af23d8336f579d07375d1d14550f43b4f03d4
SQL
juniorosilva/GamaTurma8b_projetofinal
/itmn232.sql
UTF-8
3,350
3.21875
3
[]
no_license
CREATE DATABASE itmn232; USE itmn232; CREATE TABLE `itmn232_usuario` ( `id_usuario` int NOT NULL AUTO_INCREMENT, `nome_usuario` varchar(100) NOT NULL, `email_usuario` varchar(100) NOT NULL, `racf` varchar(7) NOT NULL, `senha` varchar(50) DEFAULT NULL, `link_foto` varchar(255) DEFAULT NULL, `gestor` int ...
true
cfee2a7561d33dc91e0bb1f74e7b4bd698cf150b
SQL
joseferreir/dac-jsf-atividade
/postgres/tabelas.sql
UTF-8
659
3.28125
3
[]
no_license
CREATE TABLE Autor( CPF VARCHAR(14) PRIMARY KEY, nome VARCHAR(50) NOT NULL UNIQUE, email VARCHAR(40) NOT NULL ); CREATE TABLE Livro( ISBN VARCHAR(18) PRIMARY KEY, descricao VARCHAR(100) NOT NULL, edicao VARCHAR(50) NOT NULL ); CREATE TABLE AutorLivro( ISBNLivro VARCHAR(50) NOT NULL, CPFAutor VARCHAR(14) NOT NUL...
true
8336a5aa31b6015a7164601482f271882427acc3
SQL
harmonycloud-cims/patient
/database/PATIENT.sql
UTF-8
5,830
3.46875
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : 10.10.103.61 Source Server Type : Oracle Source Server Version : 110200 Source Host : 10.10.103.61:33008 Source Schema : PATIENT Target Server Type : Oracle Target Server Version : 110200 File Encoding : 65001 Date: 01...
true
0f4a3c6ab63f34063abc191545c161904fa50a70
SQL
thiagosantos346/UFG
/SE-2019-1/Cursos/Bando-dados-2/Tarefa 2/Script's/Script - Questão 1 - Criar Usuario.sql
UTF-8
808
2.984375
3
[]
no_license
-- grant <lista-privilegios> on <nome-relaçção ou nome-view> to <lista_usuarios/Papeis> -- https://www.postgresql.org/docs/9.3/sql-createuser.html -- https://www.postgresql.org/docs/9.3/sql-createrole.html -- https://www.postgresql.org/docs/9.3/sql-grant.html CREATE ROLE DBA with SUPERUSER; CREATE USER thiagosilva004...
true
6303ab5cd78feaf52f84a3c78590f4ae8ef69674
SQL
yauritux/hcms-api
/hcms-core/src/main/resources/db/migration/V100201512100005__Create_table_BNKA_bank_key.sql
UTF-8
583
3.109375
3
[]
no_license
CREATE TABLE BNKA ( BANKL character varying(15) NOT NULL PRIMARY KEY, BANKA character varying(60) NOT NULL, STRAS character varying(35), ORT01 character varying(35), ADRNR character varying(10), BRNCH character varying(40) ); COMMENT ON TABLE BNKA IS 'Table master for Bank (Infotype BNKA in SAP)'; COMMENT ON CO...
true
6678269a7a9de5629092b7139673d9c1243953f1
SQL
Vorobyova1998/repo1
/q2Queries.sql
UTF-8
696
2.875
3
[]
no_license
SELECT Courses.CourseName, CourseRegistrations.Grade FROM StudentRegistrationToDegrees, CourseRegistrations, CourseOffers, Courses WHERE StudentRegistrationToDegrees.StudentId = %1% AND StudentRegistrationToDegrees.DegreeId = %2% AND StudentRegistrationToDegrees.StudentRegistrationId = CourseRegistrations.StudentRegis...
true
3bcf22a7e96a1ad26198614bd71e436c21921948
SQL
soliverr/sqlinstaller
/sql/drop_type_body.sql
UTF-8
948
3.671875
4
[]
no_license
-- -- Drop type body -- -- Usage: drop_type_body TYPE_BODY_NAME [SCHEMA] -- set verify off col 1 new_value 1 col 2 new_value 2 set feedback off select NULL "1", NULL "2" from dual where rownum = 0; set feedback on declare l$cnt integer := 0; l$schema varchar2(64); begin -- Current schema if length('&2') > 0...
true
6a9a3539e66fc8895d447a9902fcb81583beebd8
SQL
evidencebp/comsum
/src/queries/related_commits.sql
UTF-8
1,815
4.21875
4
[]
no_license
# Extracts the data set for commit summarization drop table if exists general.related_commits_batch2; create table general.related_commits_batch2 as select ec1.repo_name , ec1.commit as commit1 , ec2.commit as commit2 , ec1.author_name , ec1.subject as subject1 , ec1.message as message1 , ec2.subject as subject2 ,...
true
c06bc395652b78df585c1a54a1f1a3721aa9de19
SQL
pedromaironi/SistemaDeVentas
/ProcedimientosAlmacenados/LOGIN/VALIDAR_USUARIO.sql
UTF-8
194
2.578125
3
[]
no_license
create procedure validar_usuario @password varchar(50), @login varchar(50) as select * from USUARIO2 where Password = @password and Login = @login and Estado = 'ACTIVO' SELECT * FROM USUARIO2
true
ae74252d2ffaae77aaf3c7c732fc6d652a23b858
SQL
gsghilardi/LPBD
/Exercicio - Modulo 1/exercicioInnerJoin.sql
UTF-8
2,522
3.84375
4
[]
no_license
create database exercicioInnerJoin; use exercicioInnerJoin; create table Cliente( cpf int not null primary key, nome varchar(60) not null, dtNasc date not null); create table Modelo( codMod int not null primary key, Desc_2 varchar(40) not null); create table Veiculo( placa varchar(8) not null primary key, codMod in...
true
d2a1f748f3ecb41f6b75664da672fa9cd0ed8bee
SQL
nblib/hewe-data-privilege
/hewe_privilege.sql
UTF-8
2,172
3.140625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : ed Source Server Version : 50552 Source Host : 119.29.2.209:3306 Source Database : hewe_privilege Target Server Type : MYSQL Target Server Version : 50552 File Encoding : 65001 Date: 2017-07-20 17:42:45 */ SET FOREIGN_KEY_CHECKS=0; -...
true
bf2dc46cf455ee2a33f0b1d13049530998e28533
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day14/select2326.sql
UTF-8
178
2.703125
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-13T23:26:00Z' AND timestamp<'2017-11-14T23:26:00Z' AND temperature>=43 AND temperature<=67
true
2b0f05879017e78f2cd2b229f2097668c450cc9a
SQL
carlos1390/AmericanGym
/DataBase/AmericanGym.sql
UTF-8
11,356
3.203125
3
[]
no_license
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 20/01/2014 9:21:29 p. m. */ /*==============================================================*/ drop table if exists BIOTIPO; drop table if exist...
true
b21dc27370b696d012ebec438496a4e0bd61efbb
SQL
egovernments/DIGIT-OSS
/edcr/service/egov/egov-edcr/src/main/resources/db/migration/main/V20181015130920__edcr_app_config_values.sql
UTF-8
3,022
2.65625
3
[ "MIT", "LicenseRef-scancode-generic-cla", "GPL-1.0-or-later", "LicenseRef-scancode-proprietary-license" ]
permissive
--FLOOR PLAN INSERT INTO eg_appconfig ( ID, KEY_NAME, DESCRIPTION, VERSION, MODULE ) VALUES (nextval('SEQ_EG_APPCONFIG'), 'EDCR_FLOOR_PLAN', 'Edcr floor plan layers',0, (select id from eg_module where name='Digit DCR')); INSERT INTO eg_appconfig_values ( ID, KEY_ID, EFFECTIVE_FROM, VALUE, VERSION ) VALUES (nextval('SE...
true
27572142c6adb019abb979ca0f8fe2fc10801cd8
SQL
MatheusFerreira71/TecweekOficial
/Banco/SQLQuery1.sql
UTF-8
1,552
3.140625
3
[]
no_license
use bdTecweek; create table TB_RA( Cod int not null primary key identity (1,1), RA int not null ) create table TBCurso( Cod int not null primary key identity (1,1), RA varchar(30) not null ) create table TBPeriodo( Cod int not null primary key identity (1,1), RA varchar(30) not null ) create table TBSemestre( Cod int n...
true
77f719ae756c497a32a513c88d260a114169cd1e
SQL
vcvycy/XLibrary
/script/library.sql
UTF-8
3,658
3.984375
4
[]
no_license
-- SQL数据库初始化 -- -- (1)要将数据库设为非严格模式,进入mysql,执行set global sql_mode='';重启后就失效了。 -- (2)mysql默认编码是latin,要改成utf-8 -- (3) 约定: 所有都是小写字母;不用外键; -- 1、建库 DROP DATABASE IF EXISTS xlibrary; CREATE DATABASE xlibrary; USE xlibrary; set sql_mode=(select replace(@@sql_mode,'NO_ZERO_IN_DATE,NO_ZERO_DATE','')); -- 清除日期不能为空限制。 -- 2、建表 -- ...
true
f862c5c68ae8c539f0009a82db77b0f10e6a74c1
SQL
folio-org/mod-invoice-storage
/src/test/resources/order_schema.sql
UTF-8
504
2.515625
3
[ "Apache-2.0" ]
permissive
CREATE ROLE new_tenant_mod_orders_storage PASSWORD 'new_tenant' NOSUPERUSER NOCREATEDB INHERIT LOGIN; GRANT new_tenant_mod_orders_storage TO CURRENT_USER; CREATE SCHEMA new_tenant_mod_orders_storage AUTHORIZATION new_tenant_mod_orders_storage; CREATE TABLE IF NOT EXISTS new_tenant_mod_orders_storage.purchase_order ( ...
true
e385009fa5c957c523002d1fbc8bdb243c45a9d2
SQL
qfmopn/library-management
/Library-Management-System-main/Library-Management-System-main/Library management system/library.sql
UTF-8
7,594
2.875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Nov 28, 2020 at 04:54 AM -- Server version: 8.0.21 -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@...
true
b47f903e872d65b158214d70bbd77408c10ccf67
SQL
EDataScriptware/DatabaseConnectivityAndAccess
/PE08/users.sql
UTF-8
601
2.6875
3
[]
no_license
DROP DATABASE IF EXISTS travel2; CREATE DATABASE travel2; USE travel2; DROP TABLE IF EXISTS users; CREATE TABLE users( UserName varchar(50) NOT NULL, Password varchar(50) NOT NULL, Name varchar(50) NOT NULL, Access varchar(50) NOT NULL ); INSERT INTO users (UserName, Password, Name, Access) VALUES ("AdminU...
true
2a3468c362d852e3519917eac04e37bd117df9bd
SQL
RizkiNovianto/faskel2
/data/sql/lib.model.schema.sql
UTF-8
3,350
3.296875
3
[]
no_license
# This is a fix for InnoDB in MySQL >= 4.1.x # It "suspends judgement" for fkey relationships until are tables are set. SET FOREIGN_KEY_CHECKS = 0; #----------------------------------------------------------------------------- #-- bank_sampah #--------------------------------------------------------------------------...
true
bc3ffa3f5882ebef01ee9e8f64dbd8d5262b81f2
SQL
dacong2414/rcsss
/rcsss-rest/src/main/resources/db/migration/mysql/V1_1__create.sql
UTF-8
20,817
3.6875
4
[]
no_license
SET FOREIGN_KEY_CHECKS=0; DROP TABLE IF EXISTS `logon_info`; CREATE TABLE `logon_info` ( `rec_id` bigint(10) NOT NULL AUTO_INCREMENT COMMENT '用户ID', `u_id` bigint(10) NOT NULL COMMENT '用户id对应userinfo的u_id', `login_name` varchar(255) NOT NULL COMMENT '用户登录名', `login_pwd` varchar(255) NOT NULL COMMENT '用户密码', ...
true
e7a1a62b8cd67e40abba661feb7b835229b39e8b
SQL
MindlessCode/SQL-Budget-Summary
/SQLQuery_Budget.sql
UTF-8
8,568
4
4
[]
no_license
/* --Creates the Main Budget Table for January Create table Budget_01 ( TransactionID int primary key identity (1,1), CategoryID int, PlannedSpending smallmoney, ); --Foreign Keys ALTER TABLE Budget_01 ADD FOREIGN KEY (CategoryID) REFERENCES Category(CategoryID); --Drop table budget_01 --Insert D...
true
38a9ad0ebbaadbc0af128d0a63ef4ffd541e3fb9
SQL
AndresOnate/MBDA
/Proyecto/Construccion.sql
ISO-8859-10
4,615
3.25
3
[]
no_license
-----Estructura ---usuarios CREATE TABLE usuarios( userId NUMBER(5), name VARCHAR(100) NOT NULL, fCreacion DATE NOT NULL ); ---recomendaciones CREATE TABLE recomendaciones( rId NUMBER(5), title VARCHAR(100) NOT NULL ); ---logins CREATE TABLE logins( loginId NUMBER(5), correo VARCHA...
true
45a0e63fdf5fbeaceebff356af014602d5441cde
SQL
yalemssa/ATKreporting
/DAOReport.sql
UTF-8
1,840
3.765625
4
[]
no_license
/* Everything one might want to know about digital objects in AT /* This report relies on two functions -- getResourcesFromComponents and getTopComponent SELECT CONCAT( r.resourceIdentifier1 , ' ' , LPAD(r.resourceIdentifier2, 4, '00') ) AS Collection , r.title AS CollectionTitle , series.subdivisionIdentifie...
true