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
623517040ede6cd15b202de058e9058dc048f1d6
SQL
sprokushev/Delphi
/MASTER/_DATABASE/Constraints/R3_VAGOWNER_FK.sql
UTF-8
225
2.984375
3
[]
no_license
-- -- Foreign Key Constraints for Table R3_VAGOWNER -- ALTER TABLE MASTER.R3_VAGOWNER ADD ( CONSTRAINT R3_VAGOWNER_R3_VENDORS_FK FOREIGN KEY (R3_VENDORS_ID) REFERENCES MASTER.R3_VENDORS (ID) ENABLE NOVALIDATE);
true
906965bab28dcf332b550eac9c77b178e68e2a70
SQL
DebabrataMondol/Dhaka-Area-School-Comparison
/DASC/dasc.sql
UTF-8
9,382
3.21875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 11, 2018 at 09:31 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
12a8d2aee1032c2c8b336e9d947d6d1dddf4df19
SQL
anandp504/cbo
/sql/cbo_db_update_1-2.sql
UTF-8
4,585
3.703125
4
[]
no_license
/* This file holds the SQL statements to update the CBO database from version 1 to version 2. It is to be copied into cbo_db_update.sql and the cbo_db.version file is to be changed so that the scripts will run at install time. The following can only be run once. */ alter table bidhistory add column daily_impress...
true
8e92e82f42132e6983050aba009caf0a85c4b71f
SQL
Zahid08/Project-two
/project_one.sql
UTF-8
5,096
2.8125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 11, 2017 at 05:27 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
f5138e701f61f03ca217765c6035c1506d68ebba
SQL
aodardennismaur/tuesta
/base.sql
UTF-8
5,842
3.296875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `tuesta` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `tuesta`; -- MySQL dump 10.13 Distrib 8.0.20, for macos10.15 (x86_64) -- -- Host: localhost Database: tuesta -- ------------------------------------------------------ -- Server version 5.7.30 /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
eaf085f767b2fef3f0cb0f1f048ce4a30daedbbf
SQL
andrewcreates/SQL
/scripts/minutes_streamed table and generated data.sql
UTF-8
9,353
3.453125
3
[]
no_license
--Create practice tables and fill with data for Twitch interview review CREATE TABLE minutes_streamed ( time_minute TIMESTAMP, streamer_username VARCHAR, category VARCHAR, concurrent_viewers int); CREATE TABLE minutes_viewed ( time_minute TIMESTAMP, viewer VARCHAR, viewer_country VARCHAR, streamer_username VA...
true
8e66067a6010444f3e84e3a52a3aa1f160edeb17
SQL
fengwk/support
/support-filesystem/support-filesystem-infrastructure-mysql/src/main/resources/init.sql
UTF-8
927
3.21875
3
[]
no_license
drop table if exists file; create table file ( id bigint unsigned not null auto_increment comment '主键', created_time datetime not null comment '创建时间', modified_time datetime not null comment '修改时间', access_id varchar(32) not null comment '文件访问标识', file_system_i...
true
62c9aca99821aa8eb3d828e4bb08536194244977
SQL
cespedescarlos/Opencv10
/FotoScan/Imprenta/bd/imprenta.sql
UTF-8
1,423
3.640625
4
[]
no_license
CREATE DATABASE imprenta; USE imprenta; CREATE TABLE permiso( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, nombre VARCHAR(150) NOT NULL ); CREATE TABLE rol( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, nombre VARCHAR(150) NOT NULL, activo TINYINT NOT NULL ); CREATE TABLE rol_permiso( id_permiso INT NOT NULL, id...
true
adab786c142e86348eebff676b8e5e4b28052d67
SQL
DavidWildJnr-CAP/SQL-Snippets
/65 -Restore Access To Consensus.sql
UTF-8
768
2.796875
3
[]
no_license
/* Consensus File Path \\10.82.54.144\apps\Consensus */ --Check for username in secure table select * from consensus.dbo.secure where userid = 'test_Baileym2'; -- this should now be the windows login. --Add If Necceary insert into consensus.dbo.secure (userid,expires,expevery,expdays,AuthReq,AuthNet,AuthSuper,Su...
true
ffae4ed5af5fe945ed4f5dab598f13b138ce10af
SQL
pavel-golub/miwifiradio
/patch.sql
UTF-8
5,353
2.921875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.15, for FreeBSD11.0 (amd64) -- -- Host: localhost Database: miradio -- ------------------------------------------------------ -- Server version 5.7.15-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
true
db1e9352f11cb19b869c50207dba80885ae96b68
SQL
iAhtasham/contactlessordering
/sql/restaurant.sql
UTF-8
3,911
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jul 25, 2021 at 04:26 PM -- Server version: 8.0.21 -- PHP Version: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
true
b115f23a90e0b30491d1f698b54f63cbf8582921
SQL
snehagulati2811/e_commerce
/Coffee_DB.sql
UTF-8
14,889
3.171875
3
[]
no_license
CREATE TABLE `product_category` ( `ProductCategory_Id` int(100) NOT NULL, `ProductCategory_Name` varchar(100) NOT NULL, `Active` bit(1) NOT NULL, Primary Key (`ProductCategory_Id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- Inserting data for table `product_category` INSERT INTO `product_category` (`...
true
3e090d483be19c87031942b46c32dbc750854d95
SQL
hwangfantasy/fantasy-manager
/src/test/resources/sql/fantasy-manager.sql
UTF-8
7,336
3.609375
4
[ "Apache-2.0" ]
permissive
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50714 Source Host : localhost:3306 Source Database : fantasy-manager Target Server Type : MYSQL Target Server Version : 50714 File Encoding : 65001 Date: 2017-07-10 15:29:35 */ SET FOREIGN_KEY_CHECKS=...
true
bcb1d6f85b5bcfbbbbd3993191783a5d8f79fcd7
SQL
white-s-dev/pack-metier-by-white
/esx_vehicleshop/esx_vehicleshop.sql
UTF-8
1,510
3.28125
3
[ "Apache-2.0" ]
permissive
USE `essentialmode`; INSERT INTO `addon_account` (name, label, shared) VALUES ('society_cardealer','Concessionnaire',1) ; INSERT INTO `addon_inventory` (name, label, shared) VALUES ('society_cardealer','Concesionnaire',1) ; INSERT INTO `jobs` (name, label) VALUES ('cardealer','Concessionnaire') ; INSERT INTO `jo...
true
1ad8628509a5297243e16cc975a2b3f904d6bdfd
SQL
PratikRaut15/speed-elixia-project
/.svn/pristine/4f/4fa50fadb9c766a070699124e85fa1c49cdfb342.svn-base
UTF-8
492
2.828125
3
[]
no_license
SET @patchId = 728; SET @patchDate = '2019-10-11 04:15:00'; SET @patchOwner = 'Pratik Raut'; SET @patchDescription = 'Group Sequence Changes'; INSERT INTO dbpatches(patchid, patchdate, appliedby, patchdesc, isapplied) VALUES (@patchId, @patchDate, @patchOwner, @patchDescription, '0'); ALTER TABLE `group` CHANGE `seq...
true
0fa7eeb6d49bcd41db6bbe02bde6fa942e8d4857
SQL
VijayMVC/JCC-Data-Warehouse
/SQLDB/dbo/Views/AA_NET_POP_DETAIL_TRAN_VIEW.sql
UTF-8
3,230
2.875
3
[]
no_license
CREATE VIEW AA_NET_POP_DETAIL_TRAN_VIEW /* ** Create the necessary information for a Dimensions.NET Purchase Order Detail Line ** Written: ** Last Amended: 03/07/03 SRB; ** */ AS SELECT POD_ENTRY_TYPE, POD_STATUS, POD_STOCK_CODE, POD_PRICE_CODE, (case when POD_ENTRY_TYPE in ('S','P') then case when POD_ENTRY_T...
true
e8ff6af85094b7604319ad96174e53770a93e656
SQL
uttejadiraju/SQL-Basics
/SailorsDBMS/Sailors with read or green boat.sql
UTF-8
854
3.953125
4
[]
no_license
# Find the ids of sailors who have reserved a red boat or a green boat. USE SailorsDBMS; SELECT S.* FROM Sailors S, Reserves R , Boats b WHERE S.sid = R.sid AND R.bid = B.bid AND B.color = 'red' UNION SELECT S.* FROM Sailors S, Reserves R , Boats b WHERE S.sid = R.sid AND R.bid = B.bid AND B.color = 'green'; # ...
true
d57efd4af1b20bbc28e432b49a84279a62f71046
SQL
wooiron/DataBaseSystem
/SQL/38.sql
UTF-8
233
4
4
[]
no_license
SELECT P.NAME FROM (SELECT E1.AFTER_ID FROM EVOLUTION AS E1 LEFT JOIN EVOLUTION AS E2 ON (E1.AFTER_ID = E2.BEFORE_ID) WHERE E2.BEFORE_ID IS NULL) AS E JOIN POKEMON AS P ON (E.AFTER_ID = P.ID) ORDER BY P.NAME;
true
a9e19e5caa5ff1d22380b5972ee1c95da41cfac6
SQL
samlanh/lnms
/public/db_loan_2015-04-29 03-55.sql
UTF-8
205,371
3.015625
3
[]
no_license
DROP TABLE cs_keycode; CREATE TABLE `cs_keycode` ( `code` int(10) unsigned NOT NULL AUTO_INCREMENT, `keyName` varchar(450) DEFAULT NULL, `keyValue` varchar(4500) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`code`) ) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=latin1; INSERT INTO ...
true
541c075c7142e014eeba644fd840471c8081674c
SQL
happyguys8/Nutrition
/Nutrition Project/script/mysql/ITMMAS.sql
UTF-8
1,110
3.21875
3
[]
no_license
/* ********************** ITEM MASTER TABLE **************************/ DROP TABLE IF EXISTS ITMMAS; CREATE TABLE ITMMAS ( ITMITMNO VARCHAR(30), -- ITEM CODE ITMSTATUS VARCHAR(01) NULL, -- ITEM STATUS ITMTYPE VARCHAR(01) NULL, -- ITEM TYPE ITMCAGCD VARCHAR(10) NULL, -- ITEM CATEGORY CODE ITMPRMCD VA...
true
ce6cb66b84652a43cc596a4a56a78ab4b6596e4a
SQL
eduderewicz/Tournament-Results-P2
/tournament.sql
UTF-8
1,852
4.15625
4
[]
no_license
-- Table definitions for the tournament project. -- -- Put your SQL 'create table' statements in this file; also 'create view' -- statements if you choose to use it. -- -- You can write comments in this file by starting them with two dashes, like -- these lines here. CREATE DATABASE tournament; \c tournament; --conn...
true
061295be8ccb5b64996a72d61dd10e30878fb585
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day10/select0248.sql
UTF-8
178
2.640625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-09T02:48:00Z' AND timestamp<'2017-11-10T02:48:00Z' AND temperature>=42 AND temperature<=55
true
2778ae15ed2044e2cae4620fb7e6c6e426096d9e
SQL
abhishekacharya-official/OMHS
/SQL File needed/Hospital.sql
UTF-8
6,164
3.390625
3
[]
no_license
drop database omhs; create database omhs; use omhs; create table patient_login( p_id varchar(15) not null, p_email varchar(90) not null, p_salt varchar(100) not null, p_pass varchar(100) not null, p_dor timestamp, p_cnfrm_status tinyint); alter table patient_login add constraint pk_patient_login primary key (p_id); ...
true
749faab581740b5bff9f211dad8a4f54463ff751
SQL
themanuca/banco-dados-teste
/banco sql/bancodados.sql
UTF-8
6,942
3.25
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 12-Ago-2021 às 16:11 -- Versão do servidor: 10.4.19-MariaDB -- versão do PHP: 8.0.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
true
159920b9377a03bd4ef8a630683c732c5ea38199
SQL
clem1108/projet_web
/base_projet.sql
UTF-8
7,502
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : mar. 16 juin 2020 à 23:57 -- Version du serveur : 10.4.11-MariaDB -- Version de PHP : 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SE...
true
bf85924182d747d31c68c75a176a23544bef616f
SQL
CUBRID/cubrid-testcases
/sql/_23_apricot_qa/_03_i18n/ja_JP/_03_string_func/cases/_003_length.sql
UTF-8
3,182
3
3
[ "BSD-3-Clause" ]
permissive
--+ holdcas on; set names utf8; CREATE TABLE test_jp( id INT NOT NULL AUTO_INCREMENT, ch CHAR utf8_ja_exp DEFAULT NULL, vc VARCHAR(32) utf8_ja_exp DEFAULT NULL, str STRING utf8_ja_exp DEFAULT NULL ); -- Latin chars INSERT INTO test_jp(ch, vc, str) VALUES(UPPER('a'), UPPER('a'), CONCAT(' ', UPPER('a'))); INSERT INTO ...
true
c09ad7e5d3a0fd0f80ba8583b4bb82fa8367d231
SQL
larkersos/demo-git-express
/express-mysql/db.sql
UTF-8
1,414
3.109375
3
[]
no_license
/* SQLyog Ultimate v12.08 (64 bit) MySQL - 5.6.25-log : Database - express_demo ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_K...
true
e2aa10426e12a9a3360a0aa716f96e41fb823e81
SQL
wangzhifang98/MiaoShaDemo
/src/main/doc/user_password.sql
UTF-8
847
2.59375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 王智芳 Source Server Version : 50648 Source Host : localhost:3306 Source Database : miaosha Target Server Type : MYSQL Target Server Version : 50648 File Encoding : 65001 Date: 2020-12-30 15:46:20 */ SET FOREIGN_KEY_CHECKS=0; -- -------...
true
0603d58c7fccf5df265df0edb19f49c151b6946c
SQL
mikenk2010/php-demo
/queries_q1-q2.sql
UTF-8
3,552
4.34375
4
[]
no_license
-- Q1 -- Create Trips table CREATE TABLE `Trips` ( `Id` int(11) DEFAULT NULL, `Client_Id` int(11) DEFAULT NULL, `Driver_Id` int(11) DEFAULT NULL, `City_Id` int(11) DEFAULT NULL, `Status` enum('completed','cancelled_by_driver','cancelled_by_client') DEFAULT NULL, `Request_at` varchar(50) DEFAULT NULL ) ENGIN...
true
9e984dca8407fa91e61929f5f1ae31f2363023f4
SQL
cyh1989/Quella
/src/main/java/SQL/quella_v1.0.sql
UTF-8
19,674
3.328125
3
[ "Apache-2.0" ]
permissive
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50717 Source Host : localhost:3306 Source Database : quella Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2018-08-20 09:21:24 */ SET FOREIGN_KEY_CHECKS=0; ...
true
3230e30959cec20aab2644f7908fb3dd4279e460
SQL
baongoc093254/C1120G1-NguyenHoangBaoNgoc
/Module_3/Session_02/Baitap/DatabaseFuramaResort.sql
UTF-8
7,081
3.28125
3
[]
no_license
create database FuramaResort; use FuramaResort; create table Vitri( IDVitri int not null primary key auto_increment, TenViTri varchar(45) not null ); insert into ViTri(TenViTri) values ('Lễ Tân'), ('Phục Vụ'), ('Chuyên Viên'), ('Giám sát'), ('Quản Lý'), ('Giám Đốc'); create table TrinhDo( IDTrinhDo int not null prim...
true
94ffcfee0c4c76f35e54e5352d60a2f3a867c010
SQL
militoromero10/milo-beer-inventory-service
/src/main/scripts/mysql-init.sql
UTF-8
496
2.734375
3
[ "Apache-2.0" ]
permissive
DROP USER IF EXISTS `beer_inventory_service`@`%`; CREATE DATABASE IF NOT EXISTS beerinventoryservice CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE USER IF NOT EXISTS `beer_inventory_service`@`%` IDENTIFIED WITH mysql_native_password BY 'password'; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCE...
true
4955169c00174c2ceddfef962f7b843e73ca6643
SQL
cray992/alltheThings
/SQL/old_VersionControl_Stuff/Historical Migration Scripts/20070813 Migrate 1.44.xxx to 1.45.xxx/Customer/case 20927 Add hyperlinking to new KI Summary Report.sql
UTF-8
58,547
3.1875
3
[]
no_license
delete reportHyperlink where reportHyperlinkID = 44 -- Adjustment Summary insert into reportHyperlink( ReportHyperlinkID, Description, ReportParameters ) values( 44, 'KI Summary to Adjustment Summary Report', '<?xml version="1.0" encoding="utf-8" ?> <task name="Report V2 Viewer"> <object type="Kareo.Supe...
true
2b8c455cf72e44eb3887b1d3b39ea3594911cbdb
SQL
TasosMittas/codefights-arcade-databases
/05_automaticNotifications.sql
UTF-8
1,901
4.34375
4
[]
no_license
/* The application you've been working on for the past year is a huge success! It already has a large and active user community. You know the ID number, username, and email of each user. Each user also has a specific role that shows their position in the community. Information about the users is stored in the database ...
true
845a3c6b1cb2af66447fe983a43ff9d4a0a89170
SQL
LeviShepherd/Homes
/homes.sql
UTF-8
2,313
2.890625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64) -- -- Host: localhost Database: springhomes -- ------------------------------------------------------ -- Server version 8.0.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;...
true
dfcae23931e3ee43a75a5c1ee88f770c2a939416
SQL
jumdemonali/Address_Book_System
/AddressBookSystemSQL.sql
UTF-8
2,450
4.125
4
[]
no_license
#UC1 - Creating Database CREATE DATABASE AddressBookService; show databases; use AddressBookService; #UC2 - Creating Address Book Table create table AddressBookService ( firstname varchar(30) not null primary key, lastname varchar(30) not null, address varchar(50) not null, city varchar(20) not null, state varc...
true
889939162db18cd16bcbe2428d84c851eb8c5965
SQL
thoslin/ELF
/db/elf.db.sql/sql/归档/20131119153222_DDL.sql
UTF-8
94
2.75
3
[ "BSD-3-Clause" ]
permissive
alter table PM_MARGIN_TRADING add constraint PK_PM_MARGIN_TRADING primary key (CONTRACT_ID) /
true
f6c10e9fa03016a71dcc73ee518603431e4048d7
SQL
UpGradGrading/sql_042017
/SQL_Assignment/graded/AnitaChillal_grade.sql
UTF-8
2,506
4.15625
4
[]
no_license
/* Anita Chillal */ ## Task 1 ## This is a database for superstore. ## Fact table- Market ## Dimentions- 1) Cust Primary key- Cust_id ## 2) Product Primary key-Prod_id ## 3) Shipping Primary key- Ship_id using order_id from orders dimension ## 4) Orders Primary key-Ord_id Order_id column is foreign k...
true
cf06477af47289b7deec92b321110c5bc35e0e3b
SQL
Private-domain/xiaoweixin
/sql/xiaoweixin.sql
UTF-8
8,088
3.078125
3
[]
no_license
/* SQLyog Ultimate v12.09 (64 bit) MySQL - 5.7.14 : Database - xiaoweixin ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_...
true
f47a5f002d9056f995cad93367f46408de422c8f
SQL
mbtodd/WhatCanIDo
/db/schema.sql
UTF-8
774
3.25
3
[]
no_license
DROP DATABASE IF EXISTS users; CREATE DATABASE users; USE users; CREATE TABLE doTable ( item_id INTEGER AUTO_INCREMENT NOT NULL, Category VARCHAR(40) NOT NULL, Activity VARCHAR(40) NOT NULL, Price INTEGER(10) NOT NULL, Description VARCHAR(500) NOT NULL, Rating INTEGER(10) NOT NULL, primary key (item_id) )...
true
87d40e367785d5d8fcc5dfe8e49f1abad79df8bc
SQL
sqlfluff/sqlfluff
/test/fixtures/dialects/exasol/create_udfscript_statement2.sql
UTF-8
271
2.5625
3
[ "MIT" ]
permissive
CREATE LUA SCALAR SCRIPT map_words(w varchar(10000)) EMITS (words varchar(100)) AS function run(ctx) local word = ctx.w if (word ~= null) then for i in unicode.utf8.gmatch(word,'([%w%p]+)') do ctx.emit(i) end end end /
true
98e445748ee3a927e23517d9e52b9428f60536bc
SQL
Francoviera/TPE_Base-De-Datos
/declarativas.sql
UTF-8
1,055
3.46875
3
[]
no_license
--La fecha del primer comentario tiene que ser anterior a la fecha del último comentario si este no es nulo. ALTER TABLE GR05_COMENTARIO ADD CONSTRAINT CK_GR05_FECHA_COMENTARIO CHECK( NOT EXIST ( SELECT x FROM GR05_COMENTA WHERE fecha_comentario > fecha_primer_com;)) --Cada usuario...
true
73219ef37750c9275d297cef9ecd96f59c67b4b7
SQL
vkscorpio3/happy
/cast/sql/install/oracle/cast_core_order.sql
UTF-8
7,611
2.84375
3
[]
no_license
CREATE TABLE CASTO_ORDER ( ORDER_ID VARCHAR2 (40) NOT NULL REFERENCES DCSPP_ORDER(ORDER_ID), ISGIFT NUMBER (1,0) CONSTRAINT ISGIFT_CH CHECK (ISGIFT in (0,1)), COMMENTAIRE VARCHAR2 (200), EXPORTDATE DATE, DATESUPPRESSION DATE, AUTEUR VARCHAR2 (150), NUMCHEQUE VARCHAR2 (50), LIBELLE_BANQUE VARCHAR2 (30), ...
true
5d327969af33ce23910c3265fd0fef9ffe474401
SQL
arthurAddamsSiebert/cartridges
/bts/release/lib/resources/bts/dbinit/scripts/oracle/sp_deleteBasketForUser.sql
UTF-8
2,709
4.03125
4
[]
no_license
------------------------------------------------------------------------------------------ -- Name : sp_deleteBasketForUser -- Created : Dirk Kassner -- Description : This procedure deletes basket in status OPEN and when no order exists. -- Input : userID The user id. -- Output : none -- Example...
true
5fd88969dc6245d7c3f74e207612815520a4f6e1
SQL
miths1108/PiGen
/codd-data-gen/TPC-DS_Tools_v2.3.0/tools/tpcds_remove_nulls.sql
UTF-8
1,770
3.1875
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
-- For two tables R (fact table) and S (dimension table), when there is a query having no filter on any column of S then the number of tuples in S before and after joining with R must be same. -- But when foreign keys are null and then rows get reduce without filter. So we remove nulls from foreign keys DELETE FROM cu...
true
c6401a33f6bb06587cefbd9840d5e5694c4b6462
SQL
mannhuynh/SQL-by-Khaled-Part2
/Section 22 - Manipulating Data by Using Subqueries/chapter-22.sql
UTF-8
3,042
3.984375
4
[]
no_license
--inserting by using a subquery as a target desc departments select department_id , department_name from departments where department_id=10; --insert into departments (department_id , department_name) values (106,'Test D') insert into ( select department_id , department_name from departments where d...
true
2ac017966952e4b3541d2525261f4ca1ff8db04e
SQL
jadson-ti/prod_kls
/Procedures/PRC_PROD/PRC_RETORNO_NT2_DI2.sql
UTF-8
14,002
3.421875
3
[]
no_license
-- -------------------------------------------------------- -- Servidor: cm-kls.cluster-cu0eljf5y2ht.us-east-1.rds.amazonaws.com -- Versão do servidor: 5.6.10-log - MySQL Community Server (GPL) -- OS do Servidor: Linux -- HeidiSQL Versão: 10.1.0.5484 -- ---------...
true
6269a95ede3f22f0b655082abaa8af0b5a342d6d
SQL
MLClark/Bookmarks
/Payroll Related/401K/MassMutual/ANK/Contributions and Loans/match_details.sql
UTF-8
2,844
3.546875
4
[]
no_license
--- ANK Contribution Details select distinct pi.personid ,ppd.individual_key ,'CONT' ::char(4) as recordType4 ,'0001' ::char(4) as recordVersionNbr4 ,'061654' ::char(6) as masterContactNbr6 ,'PLAN1' ::char(8) as planCode8 ,'941051349' ::char(12) as sein12 ,pi.identity ::char(9) as ssn9 ,to_char(ppd_ERmatch.check_date,...
true
e522413d83266b26affe27ac0fb77510236982c0
SQL
vnc10/bd1
/script.sql
UTF-8
2,504
3.609375
4
[]
no_license
CREATE SCHEMA IF NOT EXISTS `bd1`; USE `bd1` ; CREATE TABLE IF NOT EXISTS `Endereco` ( `idEndereco` INT NOT NULL, `CEP` VARCHAR(45) NOT NULL, `Rua` VARCHAR(45) NOT NULL, `Cidade` VARCHAR(45) NOT NULL, `Estado` VARCHAR(45) NOT NULL, `Pais` VARCHAR(45) NOT NULL, `Numero` VARCHAR(45) NOT NULL, PRIMARY KE...
true
459e22dd66fd1992b08caf9e3e745308d8bc8af4
SQL
cz9x/LearnSpark
/Game/src/main/sql/table/game_detail.sql
UTF-8
1,531
2.703125
3
[]
no_license
CREATE TABLE `game_detail` ( `id` int(11) NOT NULL AUTO_INCREMENT, `game_id` int(11) DEFAULT NULL, `home_team` varchar(50) DEFAULT NULL, `guest_team` varchar(50) DEFAULT NULL, `game_time` datetime DEFAULT NULL, `avg_home_upoint` decimal(5,2) DEFAULT NULL, `avg_guest_upoint` decimal(5,2) DEFAULT NULL, `g...
true
f8cf3519a3d5fb8e89782a340b23bda27f99ae20
SQL
BCZM/almoxarifado
/install/includes/novoalmoxarifado.sql
WINDOWS-1250
9,382
3.265625
3
[]
no_license
------------------------------- -- Cria banco de dados ------------------------------- DROP DATABASE IF EXISTS `novoalmoxarifado`; CREATE DATABASE SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `aquisicao` -- ---------------------------- DROP TABLE IF EXISTS `aquisicao`; CREATE TABL...
true
c36d3b69838e1d44e964e7325cd24a6c9162cfc8
SQL
pranjal-goswami/Inscribe
/data/sql/in_upvotes.sql
UTF-8
1,149
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 04, 2014 at 05:40 PM -- Server version: 5.1.44 -- 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
60ee398a7736e1d38813d037a85e42ddecd1b4d1
SQL
adolfovega/gochallenge
/dbutils/db.sql
UTF-8
534
3.09375
3
[]
no_license
\connect tododb /*CREATE TABLE IF NOT EXISTS assignee ( ID INTEGER PRIMARY KEY NOT NULL, NAME VARCHAR(25) NOT NULL, LASTNAME VARCHAR(25) NOT NULL );*/ CREATE TABLE IF NOT EXISTS tasks ( ID SERIAL PRIMARY KEY, NAME VARCHAR(25) NOT NULL, PRIORITY INTEGER NO...
true
cdb221dfd119aa5f7c870706a4ff4acc685d3960
SQL
haibotop/URP
/历史代码/整理客户资料.sql
GB18030
1,587
3.171875
3
[]
no_license
--ҵͻϵ绰ܳ20 INSERT INTO t_seriesnumberblacklist(seriesnumber) SELECT usertxt2 FROM sPickorderHD sph WHERE sph.FormID IN(2419,2420) AND isnull(usertxt2,'')<>'' AND usertxt2 NOT IN(SELECT seriesnumber FROM t_seriesnumberblacklist) and isnull(refformid,0)=0 GROUP BY usertxt2 HAVING(COUNT(*)>=20) --ͻϱеϵ绰ֳܳ10 INSERT INTO t...
true
a10a8c86525f02795988c2ded784b6ad9137f73a
SQL
Chirojeugd-Vlaanderen/gap
/database/initiele-conversie/UcFirst.sql
UTF-8
339
2.96875
3
[ "Apache-2.0" ]
permissive
CREATE FUNCTION core.ufnUcFirst(@Tekst VARCHAR(MAX)) RETURNS VARCHAR(MAX) AS -- Doel: maakt van eerste letter een hoofdletter, en van de rest kleine letters BEGIN RETURN ( SELECT CASE WHEN LEN(@Tekst) <= 1 THEN UPPER(@Tekst) ELSE UPPER(LEFT(@Tekst,1)) + LOWER(RIGHT(@Tekst, LEN(@Tekst) - 1)) END ...
true
8f70f060aeac1181e3b584b894b0a767b10f52c3
SQL
aswathkumar07/Euro_2016_SQL_Mini_Project
/sql_q18_sol.sql
UTF-8
118
2.921875
3
[]
no_license
SELECT match_no, COUNT(*) AS no_of_bookings FROM player_booked GROUP BY match_no ORDER BY no_of_bookings DESC LIMIT 1;
true
512982e3e4646d3e55657cba4c49947ee4d5dc90
SQL
vanhiennguyen123/assigment
/dtdm.sql
UTF-8
3,804
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 24, 2015 at 03:06 PM -- Server version: 5.6.24 -- PHP Version: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
88672293ea6a7401422fdcc781e0ff6ce8eb9936
SQL
chenkelileo/LC
/leetcodeMySQL/lc178.sql
UTF-8
933
4.125
4
[]
no_license
use leetcode; Create table If Not Exists Scores (Id int, Score DECIMAL(3,2)); Truncate table Scores; insert into Scores (Id, Score) values ('1', '3.5'); insert into Scores (Id, Score) values ('2', '3.65'); insert into Scores (Id, Score) values ('3', '4.0'); insert into Scores (Id, Score) values ('4', '3.85'); insert in...
true
a3f591f388cf5125821aeaa7e9020b95bd5e4902
SQL
wiltonlazary/snappydata
/dtests/src/resources/scripts/dataExtractorTool/validationQueries.sql
UTF-8
508
2.625
3
[ "OFL-1.1", "MPL-1.1", "BSD-3-Clause", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-mx4j", "LGPL-2.0-or-later", "OpenSSL", "LGPL-2.1-only", "FSFAP", "LicenseRef-scancode-other-permissive", "LGPL...
permissive
SELECT * FROM AGREEMENT WHERE AGREE_ID BETWEEN 19995000 AND 20000000; SELECT * FROM AGREEMENT_ROW; SELECT * FROM AGREEMENT_RR; SELECT * FROM BANK WHERE BNK_ID BETWEEN 3995000 AND 4000000; SELECT * FROM ORDERS_DETAILS WHERE SINGLE_ORDER_DID BETWEEN 10 AND 100 order by SINGLE_ORDER_DID desc; SELECT * FROM EXEC_DETAILS WH...
true
1a51ddb67e2f385d673396a975b2c7379956524c
SQL
jiangzhengjie11/jzj
/case/subentry.sql
UTF-8
12,976
2.578125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 222 Source Server Version : 50716 Source Host : 192.168.113.140:3306 Source Database : subentry Target Server Type : MYSQL Target Server Version : 50716 File Encoding : 65001 Date: 2016-12-20 14:50:20 */ SET FOREIGN_KEY_CHECKS=0; -- ...
true
a36aaac184289520fb3de624d37914e6fc633168
SQL
scchess/LabKey
/sampledata/query/drt/functiontest.sql
UTF-8
800
2.640625
3
[]
no_license
SELECT abs(-1) AS col1, degrees(acos(.5)) AS col2, round(degrees(atan(1)), 5) AS col3, round(degrees(atan2(-3,-3)), 5) AS col4, ceiling(.5) AS col5, cos(3 * pi() / 4) AS col6, cot(pi() / 4) AS col7, exp(log(25)) AS col8, log10(100) AS col9, mod(12,5) AS col10, round(pi(), 5) AS col11, power(2,5) AS col12, ...
true
6b6801f41368b825471521e2ad7200608d1832c0
SQL
nycda-wdi-jared/node
/itunes_postgres_node_app/schema.sql
UTF-8
617
3.734375
4
[]
no_license
CREATE TABLE users ( id SERIAL PRIMARY KEY, name VARCHAR(255) NOT NULL, username VARCHAR(255) NOT NULL UNIQUE, password VARCHAR(255) NOT NULL ); CREATE TABLE songs ( id SERIAL PRIMARY KEY, song_artist VARCHAR(255) NOT NULL, song_name VARCHAR(255) NOT NULL ) CREATE TABLE bought_songs ( id SERIAL PRIMARY KEY,...
true
155612595080d6bd7078a1ac6e2da033e205f70b
SQL
abbasiReza/insurance_data_warehouse
/ETL/fillDimVehicle.sql
UTF-8
952
3.390625
3
[]
no_license
CREATE procedure [fillDimVehicle] as begin if exists(select * from tempDimVehicle) and not exists(select * from dimVehicle) return -1; truncate table tempDimVehicle insert into tempDimVehicle select vehicleId, policyNumber, year, make, model, trim, mileage, vinNumber, vehicleNumberPlate, vehicleRegi...
true
47abaa3c13662906b75b266414a095898a5171a3
SQL
Ipelly/coffee_API_sprint_boot
/src/main/resources/db/migration/V2__User_Tables.sql
UTF-8
793
3.328125
3
[]
no_license
CREATE TABLE xipli.user ( user_id int(11) UNSIGNED NOT NULL AUTO_INCREMENT, first_name varchar(255) NOT NULL, last_name varchar(255) DEFAULT NULL, email_address varchar(255) DEFAULT NULL, phone varchar(20) DEFAULT NULL, password varchar(255) DEFAULT NULL, provider_type_id tinyint(3) NOT NULL DEFAULT 0, ...
true
83c552e0ae201fed8398561c10ab7787cf013474
SQL
lucho1352/PF_IngeSoft
/FiestaFutbolera/Constrains DB.sql
ISO-8859-1
2,615
3.203125
3
[]
no_license
-- Creacin de tablas CREATE TABLE Usuarios ( Telefono BIGINT NOT NULL CHECK (Telefono > 1000000), Nombre VARCHAR(50) NOT NULL CHECK (Nombre <> ' '), NroIdUsuario BIGINT, TipoIdUsuario VARCHAR(3), PRIMARY KEY (NroIdUsuario,TipoIdusuario) ); CREATE TABLE Registrado ( NroIdUsuario BIGINT NOT NULL, TipoIdUsuario VAR...
true
8184b62b8607646e3020a6e6349b0d7120602a08
SQL
joostvdg/keep-watching
/backend/src/main/resources/db/migration/V10__fix_movies_watchlist_FK.sql
UTF-8
216
2.890625
3
[ "MIT" ]
permissive
ALTER TABLE Movies DROP COLUMN watchlist_id; DROP TABLE Movies_Of_Watchlists CASCADE; TRUNCATE TABLE Movies CASCADE; ALTER TABLE Movies ADD COLUMN watchlist_id integer REFERENCES Watchlist (id) NOT NULL;
true
68787a6cd3237f7208b2ca633c425724aedf303b
SQL
letony77/eclipseworkspace
/WebStoreJBDC/src/SQL/Liste_Produit.sql
UTF-8
334
2.609375
3
[]
no_license
CREATE DATABASE WebStore; USE WebStore; CREATE TABLE List;( ID_Produit int(4) PRIMARY KEY AUTO_INCREMENT, Nom_Produit VARCHAR(45) NOT NULL, Description VARCHAR(45) NOT NULL, Prix FLOAT NOT NULL, ); INSERT INTO List (ID_Produit, Nom_Produit, Description, Prix) VALUES(1, 'Television','TELE 4K', 2999.00); SELECT ...
true
ba67565861ac502d5091d5cc693501d12f14926d
SQL
joelandman/dragonfly
/DragonFlyGUI/blib/lib/DragonFlyGUI/db/users.sql
UTF-8
2,429
3.625
4
[]
no_license
CREATE TABLE users ( id INTEGER PRIMARY KEY AUTOINCREMENT, first_name TEXT, last_name TEXT, login_name TEXT, email_addr TEXT, phone_office TEXT, phone_cell TEXT, ...
true
eadaed733a18992a38678e09d9f6135ae5391864
SQL
gradygriffin0/database-exercises
/update_exercises.sql
UTF-8
391
3.109375
3
[]
no_license
use codeup_test_db; SELECT * from albums; SELECT * FROM albums WHERE release_date < 1980; SELECT * FROM albums WHERE artist = 'michael jackson'; # updating START TRANSACTION; UPDATE albums SET release_date = release_date - 100 WHERE release_date < 1980; UPDATE albums SET sales = sales * 10; UPDATE albums SET ...
true
8c26650afb45fe378f01bc776a4e26845a013b47
SQL
2SANAL/Swabhav-Repo
/SQL/Department.sql
UTF-8
245
2.8125
3
[]
no_license
create table Department( dept_number int primary key, dept_name varchar(20) not Null, dept_location varchar(30) ); insert into Department values(10,'Sale','Mumbai') insert into Department values(20,'Marketing','Pune') select * from Department
true
cda6d465536023c61142250fd43d9467bddb74a0
SQL
who-espen/metabase-script-sql
/src/lf/pretas_tas/dashboard/7_innacurrate_gps.sql
UTF-8
614
2.5625
3
[ "Unlicense" ]
permissive
/* * File: 7_innacurrate_gps.sql * File Created: Tuesday, 5th May 2020 6:36:35 pm * Author: Dyesse YUMBA * Last Modified: Tuesday, 5th May 2020 6:37:59 pm * Modified By: Dyesse YUMBA * ----- * (c) 2020, WHO/AFRO/UCN/ESPEN */ ! /* * This card will list all records with innacurate GPS * Variable to rename <%ab...
true
ce3d0d5628b067e2b19f83030b422218af4a10ca
SQL
Yanyinghenmei/PHPLearn
/MySQL/10.sql
UTF-8
1,224
3.6875
4
[ "MIT" ]
permissive
-- 用户表 imooc_user CREATE TABLE IF NOT EXISTS `imooc_user`( `id` INT UNSIGNED AUTO_INCREMENT KEY COMMENT '用户编号', `username` VARCHAR(20) NOT NULL UNIQUE COMMENT '用户名', `password` CHAR(32) NOT NULL COMMENT '密码', `email` VARCHAR(50) UNIQUE NOT NULL COMMENT '邮箱', `age` TINYINT UNSIGNED NOT NULL DEFAULT 18 COMMENT...
true
387a2ac57c3030c1b1ac2e11feb9d6db0b9442be
SQL
okuznetsov1/projects-angular
/listtasks/install/listtasks.sql
UTF-8
5,274
3.078125
3
[]
no_license
-- ---------------------------- -- Table structure for `listtasks` -- ---------------------------- DROP TABLE IF EXISTS `listtasks`; CREATE TABLE `listtasks` ( `id` char(128) NOT NULL, `task_name` text, `priority_id` char(128) DEFAULT NULL, `status_id` char(128) DEFAULT NULL, `completed` enum('true',...
true
946c6bfcb58e1afc89245446be3de2325e896141
SQL
OHDSI/StudyProtocols
/KeppraAngioedema/inst/sql/sql_server/NegativeControls.sql
UTF-8
2,461
3.03125
3
[ "Apache-2.0" ]
permissive
/************************************************************************ Copyright 2016 Observational Health Data Sciences and Informatics This file is part of KeppraAngioedema Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obt...
true
4577db0b5dd73d903d13bb09dbc10c06751c2f03
SQL
dimitriskontos/mysql-container
/gdek.sql
UTF-8
68,958
3.140625
3
[]
no_license
-- ============================================================================= -- Diagram Name: ogeka -- Created on: 22/7/2016 11:16:58 πμ -- Diagram Version: -- ============================================================================= DROP DATABASE IF EXISTS `elgo`; CREATE DATABASE IF NOT EXISTS `elgo` CHARA...
true
4bec3ae5580e262c9dce544c952cad829ccaf7a2
SQL
Renansantanna/ProjetoES
/quatro_menus.sql
UTF-8
3,003
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.4 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 15-Set-2018 às 22:44 -- Versão do servidor: 5.6.15-log -- PHP Version: 5.4.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
e7b3c8efc4e1f1f97e521bc89dc23b95cca6cf63
SQL
evrimulgen/FCR
/T_PAY_SOURCE_CONSTRAINT.sql
UTF-8
736
3.078125
3
[]
no_license
-------------------------------------------------------- -- Constraints for Table T#PAY_SOURCE -------------------------------------------------------- ALTER TABLE "FCR"."T#PAY_SOURCE" MODIFY ("C#ID" NOT NULL ENABLE); ALTER TABLE "FCR"."T#PAY_SOURCE" ADD CONSTRAINT "CP#PAY_SOURCE" PRIMARY KEY ("C#ID") USING ...
true
88fee11d0d8e0e49c750361619f076af44c0921f
SQL
trantung/online_market
/app/main_store_2016-08-07.sql
UTF-8
1,820
3.28125
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `email` varchar(256) DEFAULT NULL, `password` varchar(256) DEFAULT NULL, `url` varchar(256) DEFAULT NULL, `session_id` varchar(256) DEFAULT NULL, `username` varchar(256) DEFAULT NULL, `remember_token` var...
true
d5077092f1d72d42ec63937012753168e3290d82
SQL
Gchevallier45/projetJEE
/dbjee_v1.4.sql
UTF-8
6,855
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : jeu. 09 mai 2019 à 13:21 -- Version du serveur : 5.7.24 -- Version de PHP : 7.2.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
true
6c5f2f2e46257f81bda353682f2205cfbd43f13b
SQL
smwright/FTC-PAM
/database/views/roster_asset_info.sql
UTF-8
602
3.578125
4
[]
no_license
CREATE ALGORITHM = UNDEFINED DEFINER = `root`@`localhost` SQL SECURITY DEFINER VIEW `roster_asset_info` AS SELECT `r`.`id` AS `id`, `r`.`asset_id` AS `asset_id`, `r`.`markings` AS `markings`, `r`.`image` AS `image`, `r`.`hist_unit_id` AS `hist_unit_id`, ...
true
4d7fd64f0c6d72ecbd4217e6ae996da95d562ffc
SQL
wiz-anzhen/weixin-test
/app/schema/mp/customer_specialist_group.sql
UTF-8
593
3.234375
3
[]
no_license
-- TABLE customer_specialist_group CREATE TABLE IF NOT EXISTS `customer_specialist_group` ( `customer_specialist_group_id` INT(10) NOT NULL AUTO_INCREMENT COMMENT 'ID', `mp_user_id` INT(10) NOT NULL COMMENT 'mp_user.mp_user_id', `community_id` INT(10) NOT NULL COMMENT 'community.community_id', `group_n...
true
746fe4705ecac72e5d8a84793e968ff896692409
SQL
TunLinnAung2020/junior_jobs_php
/job_portal.sql
UTF-8
4,869
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Feb 25, 2020 at 02:56 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.2.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
true
0f788dc9986c1699fb9ce35226b815026ad7a3d2
SQL
bliotti/mysql-camp-student
/student-exercises/liotti-groupby.sql
UTF-8
405
3.171875
3
[]
no_license
USE baseball; SELECT v.playerName, AVG(v.Weight), v.divisionName FROM vteamRoster v JOIN batting b ON b.playerID = v.playerID GROUP BY v.divisionName; SELECT * FROM vteamRoster v JOIN batting b ON b.playerID = v.playerID; SELECT * FROM vteamRoster; SEL...
true
5970429fbc8996391b91dc3dd472910fe54c373c
SQL
brpeel/bolt
/scripts/alters/db_init.sql
UTF-8
464
3.28125
3
[]
no_license
CREATE TABLE bolt_user ( id SERIAL NOT NULL, email varchar(100) NOT NULL, first_name varchar(100) NOT NULL, last_name varchar(100) NOT NULL, points bigint NOT NULL DEFAULT 0, deleted boolean NOT NULL DEFAULT False, CONSTRAINT "bolt_user_primary_key" PRIMARY KEY (id) ); CREATE TABLE transfer ( id SERIAL...
true
e46e729fcfdd3c14f843b9f2f01b354c0755c573
SQL
EllieMcQueen/personal-project
/db/seed.sql
UTF-8
1,712
3.3125
3
[]
no_license
-- drop table if exists progress; -- drop table if exists macros; -- drop table if exists measurements; -- drop table if exists initial; -- drop table if exists cust; -- create table if not exists cust ( -- id serial primary key, -- email varchar(80), -- password text -- ); -- create table if not exists in...
true
65e2a7b8ee2ff01534aefa25a622e8f8ac4cdd75
SQL
MrZhan960921/miaosha
/miaosha/src/main/resources/miaosha.sql
UTF-8
6,576
3.53125
4
[]
no_license
/* Navicat Premium Data Transfer Source Server : localhost_3306 Source Server Type : MySQL Source Server Version : 100310 Source Host : localhost:3306 Source Schema : miaosha Target Server Type : MySQL Target Server Version : 100310 File Encoding : 65001 Date: 21/04/...
true
07e011419b710f019cdd598e8d9e65949ad60332
SQL
2819166407/spring-boot-learning
/springboot-mybatisplus/src/main/resources/user.sql
UTF-8
1,087
3.4375
3
[]
no_license
DROP DATABASE IF EXISTS `demo3`; CREATE DATABASE `demo3` DEFAULT CHARACTER SET utf8; USE demo3; CREATE TABLE IF NOT EXISTS `tb_user` ( `id` BIGINT ( 20 ) NOT NULL AUTO_INCREMENT COMMENT '主键', `name` VARCHAR ( 30 ) DEFAULT NULL COMMENT '姓名', `age` INT ( 11 ) DEFAULT NULL COMMENT '年龄', `email` VARCHAR ( 50 ) DE...
true
6fa1874a6070f3f7b1645e74deb49b06c9136a74
SQL
ianache/soa4sb
/soa4sb-db/src/main/resources/db/migration/V2__create_soa_service_table.sql
UTF-8
557
3.234375
3
[]
no_license
create table SERVICE ( CODE VARCHAR(10) NOT NULL ); ALTER TABLE SERVICE ADD CONSTRAINT PK1_SERVICE PRIMARY KEY(CODE); create table SERVICEVERSION ( CODE VARCHAR(10) NOT NULL, VERSION VARCHAR(6) NOT NULL, NAME VARCHAR(120) NOT NULL, DESCRIPTION VARCHAR(400) NOT NULL, PARENTVERSION VARCHAR(6) NULL, PORTFOLIO_CODE ...
true
53fac33d805ac37d43e04859a3a0b14e2b272538
SQL
flomic23/different-projects
/Query .sql
WINDOWS-1251
2,307
4.0625
4
[]
no_license
USE MySession; SELECT DiscName FROM Disciplines; SELECT IdDisc FROM Balls; SELECT NumSt FROM Balls WHERE IdDisc=1; SELECT NumDir, COUNT(NumGr) FROM Groups GROUP BY NumDir; --1-- SELECT Title FROM Directions; SELECT NumGr FROM Groups; SELECT FIO FROM Students; SELECT NumSt FROM Balls; SELECT NumDir FROM Upla...
true
32733236a990d565ee0c8053573d604ff7f0e61d
SQL
pawansoniara/aus1
/scripts/20170531.sql
UTF-8
11,684
3.46875
3
[]
no_license
-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.5.22 /*!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 */; ...
true
63ceafa80252b651978c35447245572ad4cf948e
SQL
pemwebutp/pemwebutp
/biodata.sql
UTF-8
1,348
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.7 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 06, 2013 at 04:28 AM -- Server version: 5.5.34-0ubuntu0.12.04.1 -- PHP Version: 5.3.14 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_...
true
cf0f72973aeb4378c33f77358feac57418bd18ca
SQL
GND95/SQL-Challenge
/EmployeeSQL/Queries/Query_8.sql
UTF-8
212
3.578125
4
[]
no_license
-- This query will return information about the frequency of employees who share a last name. SELECT last_name, COUNT(last_name) AS frequency_count FROM employees GROUP BY last_name ORDER BY frequency_count DESC
true
813c097ef5e1464cadc28226a5518e8d4d3b0116
SQL
p2r2b2m2/BO
/database/v_hbl_template.sql
UTF-8
1,132
3.078125
3
[]
no_license
CREATE VIEW `v_hbl_template` AS select `j`.`id` AS `id`, `c`.`name` AS `C_NAME`, `j`.`hbl_number` AS `HBL_NUMBER`, `j`.`c_booking_number` AS `CBN`, `ja`.`pa_1` AS `PICK_UP_ADDR_1`, `ja`.`pa_2` AS `PICK_UP_ADDR_2`, `ja`.`pa_city` AS `PICK_UP_CITY`, `ja`.`pa_state` AS `PICK_UP_STATE`, `ja`.`pa_zip` AS `PICK_UP_ZIP`, `j...
true
681c559e58eff81edabd084e8b88f7c0040becd4
SQL
StefanoMazzuka/Database_Management
/DatabaseManagement/Create_bbdd_gestmotor.sql
UTF-8
1,261,845
2.984375
3
[]
no_license
CREATE TABLE IF NOT EXISTS 'eficiencias' ( 'C_ENERGETICA' varchar(2) NOT NULL, 'DESCRIPCION' varchar(100) NOT NULL, 'ICONO' varchar(100) NOT NULL, PRIMARY KEY ('C_ENERGETICA') ); INSERT INTO 'eficiencias' ('C_ENERGETICA', 'DESCRIPCION', 'ICONO') VALUES ('A', 'CLASIFICACION ENERGETICA A', 'coches_A.gif'), ('B'...
true
5f9caf04028b0adab0fb06472f972612697b1ff4
SQL
MarcosDeLaCuadra/TPProgramcion-laboratorioIII2017
/dbestacionamieto.sql
UTF-8
16,125
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 10-07-2017 a las 05:21:28 -- Versión del servidor: 10.1.21-MariaDB -- Versión de PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
true
386ddb153e057a9789e5d85a912794a169343911
SQL
archanadeshpande/SQLPracticeSolutions
/codewars_postgresql_simple_heirarchical_structure.sql
UTF-8
1,010
4.40625
4
[]
no_license
/*For this challenge you need to create a RECURSIVE Hierarchical query. You have a table employees of employees, you must order each employee by level. You must use a WITH statement and name it employee_levels after that has been defined you must select from it. A Level is in correlation what manager managers the empl...
true
73985d7ebff4174f6463ff710debe977b782a25b
SQL
HNGInternship/HNGFun2
/hng_fun.sql
UTF-8
3,713
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Apr 23, 2018 at 04:29 AM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.3 /* SQLyog Ultimate v9.02 MySQL - 5.5.5-10.1.31-MariaDB : Database - hng_fun **********************************************...
true
cd2e1d93f711efb26c54fc4c84437d9c437ff7ab
SQL
cti-gr/PROTOSproject
/Database/MySQL/scheduler.sql
UTF-8
825
3.265625
3
[]
no_license
DELIMITER $$ DROP EVENT IF EXISTS Avgs_Scheduler$$ CREATE EVENT `Avgs_Scheduler` ON SCHEDULE EVERY '30' SECOND DO insert into averages(avg_ratio1,avg_ratio2,sum_total_count,avg_time,clients) select avg(rt_rate_one), avg(rt_rate_two), sum(rt_total_count),now(),count(distinct(rt_client_id)) from ratio where rt_entry_tim...
true
641bcc6c13081a8fe6c04c3bcf1f0820965744da
SQL
ErosMLima/Training-Jan-2021
/Modules/SQL/Day5/Ankur_Chovatiya/Extra_Practices/SQLQuery2.sql
UTF-8
138
2.703125
3
[]
no_license
SELECT * FROM HumanResources.Employee AS He LEFT OUTER JOIN HumanResources.EmployeePayHistory AS HEp ON He.BusinessEntityID = HEp.Rate
true
1c7dc3ba9cc02c57795294fcd91976784238db98
SQL
pacmad/NashvilleTheatre
/UpdateNTDB.sql
UTF-8
4,616
3.3125
3
[]
no_license
--Check the Table SELECT * FROM [Subscription] --Create the Column In the Table --ALTER TABLE [Subscription] --ADD UserTypeId INT FOREIGN KEY REFERENCES UserType(UserTypeId) --Populate the Columns with data based on row --UPDATE Subscription --SET UserTypeId= 1 --WHERE SubscriptionId= 1; --UPDATE Subscription --SET Use...
true