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
6760832b6d07c8b948af4dff853e8067c416c66e
SQL
soultoxik/management-helper
/DB/DDl.sql
UTF-8
4,020
4.0625
4
[]
no_license
CREATE TABLE public.users ( id bigserial NOT NULL, email varchar(80) NOT NULL, first_name varchar NOT NULL, last_name varchar NULL, phone varchar NULL, enabled bool NOT NULL, teacher bool NOT NULL, updated_at timestamp NOT NULL, ...
true
d2bc7c12a809148dbb81c582cee6aba50f2924dd
SQL
wiz-anzhen/weixin-test
/app/schema/mp/cs_chat_record.sql
UTF-8
1,083
3.28125
3
[]
no_license
-- TABLE cs_chat_record CREATE TABLE IF NOT EXISTS `cs_chat_record` ( `cs_chat_record_id` INT(10) NOT NULL AUTO_INCREMENT COMMENT 'ID', `wx_user_id` CHAR(64) NOT NULL COMMENT '业主ID', `mp_user_id` INT(10) NOT NULL COMMENT 'mp.cs_chat_record.mp_user_id', `wx_user_name` VARCHAR(128) COMMENT '业主名称', `c...
true
19a33dac54ef5e612f5e36cd82d7c50089bb44c1
SQL
hpaterson97/sql_practice
/football_league.sql
UTF-8
2,073
4.34375
4
[]
no_license
PRAGMA foreign_keys = ON; CREATE TABLE tournaments ( tournament_id INTEGER NOT NULL PRIMARY KEY, tournament_name TEXT ); CREATE TABLE teamType ( teamtype_id INTEGER NOT NULL PRIMARY KEY ); CREATE TABLE teams ( team_id INTEGER NOT NULL PRIMARY KEY, team_name TEXT, teamtype_id TEXT, tournament_id ...
true
bace31a4b7ce071020180fb1ebce8493efc28a10
SQL
ChFaizan009/OOP-PROJECTS
/DSA_PROJECT/SQL ServerQuery/Not and In operatior.sql
UTF-8
136
2.8125
3
[]
no_license
use School; select * from students where Numbers between 50 and 70 and Stu_Rollno Not In (7,8); where Stu_Adress In('Lahore','Gujrat');
true
243876dd569672ad51be0c5fb66a9ec41508347f
SQL
Sophie-Cui/leetcode-sql
/550.sql
UTF-8
1,828
4.25
4
[]
no_license
Create table If Not Exists Activity (player_id int, device_id int, event_date date, games_played int); Truncate table Activity; insert into Activity (player_id, device_id, event_date, games_played) values ('1', '2', '2016-03-01', '5'); insert into Activity (player_id, device_id, event_date, games_played) values ('1', '...
true
1c967e394038d832a2b1fad321972c40fa29646b
SQL
SemyonYa/cmsgh
/common/cmsgh.sql
UTF-8
5,735
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.3 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3307 -- Время создания: Май 14 2019 г., 17:17 -- Версия сервера: 5.6.37 -- Версия 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_CHARACTE...
true
4fb60b9afb774c02dafb7de30a5da0f3273a0664
SQL
SongYukun/homework
/movie.sql
UTF-8
7,263
2.96875
3
[]
no_license
SET NAMES UTF8; DROP DATABASE IF EXISTS movie; CREATE DATABASE movie CHARSET=UTF8; USE movie; /**网站基本信息表**/ CREATE TABLE movie_site_info( site_name VARCHAR(16), logo VARCHAR(64), admin_email VARCHAR(64), icp VARCHAR(32), copyright VARCHAR(64) ); INSERT INTO movie_site_info VALUES("我的电影网",'img/logo.png','admi...
true
47f193046689e861c8e20c39cfbdb6073cd07967
SQL
gcrabe/master-learning-courses
/data-warehouse-olap/Batyr_DWH/car repair shop DWH/car repair shop DWH/dwh/Tables/FactCall.sql
UTF-8
469
2.875
3
[]
no_license
CREATE TABLE [dwh].[FactCall] ( [FactCallKey] INT IDENTITY (1, 1) NOT NULL, [DimDateKey] INT NOT NULL, [DimGeographyKey] INT NOT NULL, [Count] BIGINT NOT NULL, [SysDateCreated] DATETIME CONSTRAINT [DF_DWH_FactPopulation_CreateDate] DEFAULT (getdate()) NULL, [SysDa...
true
1d4e84c310edaf62806a71012e1b0409dc701e0b
SQL
beakyejin/SimpleBoard
/20181025.sql
UHC
4,906
2.609375
3
[]
no_license
commit; select * from MEMBER_TBL_02; insert into MEMBER_TBL_02 (custno, custname, phone, address, joindate, grade, city) values (100001, 'ູ', '010-1111-2222',' 빮 ְ1', '20151202', 'A', '01'); insert into MEMBER_TBL_02 (custno, custname, phone, address, joindate, grade, city) values (100002, 'ູ', '010-11...
true
977f87b6fd26ae41ce367d7428fbddff900cadd0
SQL
Picrofo/hbsystem
/database.sql
UTF-8
1,992
3.078125
3
[]
no_license
/* MySQL Data Transfer Source Host: localhost Source Database: hotel Target Host: localhost Target Database: hotel Date: 6/29/2014 2:01:35 AM */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for requests -- ---------------------------- CREATE TABLE `requests` ( `ID` int(255) NOT NULL A...
true
0106f08d5e9859fc58cc8741cd85d686f602798c
SQL
fascoelvis45/RepostTest
/web/restaurantv1.sql
UTF-8
4,983
3
3
[]
no_license
/* SQLyog Community v8.53 MySQL - 5.5.27 : Database - restaurante ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOR...
true
15ad43a82f8d5cb9f1927c311febb8894f4547a4
SQL
tanushree27/Grofers_app
/db/vehicle_slot_table.sql
UTF-8
1,258
2.609375
3
[]
no_license
CREATE TABLE vehicle_slot_table( id int NOT NULL, vehicle_type_id int NOT NULL, slot_id int NOT NULL, status int NOT NULL, PRIMARY KEY (id) ); INSERT INTO vehicle_slot_table (id, vehicle_type_id, slot_id, status) VALUES (1, 1, 1, 1); INSERT INTO vehicle_slot_table (id, vehicle_type_id, slot_id, sta...
true
d06ad8a8b4bb42148f5a8cf73b9bf7174e7d0d09
SQL
Seth-Gardner/database-exercises
/subqueries_exercises.sql
UTF-8
829
3.65625
4
[]
no_license
select first_name, hire_date from employees where hire_date in ( select hire_date from employees where emp_no = 101010 ); select title from titles where emp_no in ( select emp_no from employees where first_name = 'Aamod' ) group by title; select first_name, last_name from employees where emp_...
true
6ed3482beb4402130c8496483b87b348872eb22e
SQL
qsxadf110/my_note
/mysql/mysql_note.sql
UTF-8
26,845
3.765625
4
[]
no_license
-- 数值类型 -- -- tinyint 1 字节 (-128,127) (0,255) 小整数值 -- smallint 2 字节 (-32 768,32 767) (0,65 535) 大整数值 -- mediumint 3 字节 (-8 388 608,8 388 607) (0,16 777 215) 大整数值 -- int/integer 4 字节 (-2 147 483 648,2 147 483 647) (0,4 294 967 295) 大整数值 -- bigint 8 字节 -- FLOAT 4 字节 单精度浮点数值 -- DOUBLE 8 字节 双精度浮...
true
677b228bb6daa3ff1cfd235b54cbd131480ba7a0
SQL
robecilla/redditql
/packages/redditql-server/prisma/migrations/20210123224439_updoot_primary_key_constraint/migration.sql
UTF-8
397
2.796875
3
[]
no_license
/* Warnings: - The migration will change the primary key for the `Updoot` table. If it partially fails, the table could be left without primary key constraint. - You are about to drop the column `id` on the `Updoot` table. All the data in the column will be lost. */ -- AlterTable ALTER TABLE "Updoot" DROP CONST...
true
69b0a0ad82016e4cbde3368d6ff36fbcb21aa244
SQL
DianeLagadec/Restaurant
/database.sql
UTF-8
13,244
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: May 31, 2021 at 06:29 PM -- Server version: 5.7.32 -- PHP Version: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `Restaurant` -- -- ------------------------...
true
fefca011b36d2416dacef088f13ecf946323fa2a
SQL
umaqgeek/systemsticker
/systemsticker_db.sql
UTF-8
15,170
2.609375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.10.3 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 26, 2015 at 01:54 PM -- Server version: 5.0.51 -- PHP Version: 5.2.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `systemsticker_db` -- -- --------------------------------------------------...
true
ef7edb91bc390e04af234f9696f61ff3878599d2
SQL
wuliaomumulin/ossimup
/databases/category.sql
UTF-8
2,505
2.5625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 19.19.19.11 Source Server Version : 50647 Source Host : 19.19.19.11:3306 Source Database : alienvault Target Server Type : MYSQL Target Server Version : 50647 File Encoding : 65001 Date: 2020-07-09 15:21:19 */ SET FOREIGN_KEY_CHECKS=0...
true
d9c4b45b0417195b3b2bd8a0e554dc057c9dd989
SQL
felipemfp/sales
/database/stored procedures/select_sale_by_client.sql
UTF-8
180
3.046875
3
[]
no_license
use Sales create procedure spSelectSaleByClient @ClientId int as begin select Id, ClientId, DateSale, Total, Discount, FinalTotal from Sale where ClientId = @ClientId end
true
ed3db3956541583b095f67f0afdddb98f794a461
SQL
otto-js/PROJET_PEPINIERE_LABRANCHE
/SCRIPT/pepiniere.sql
UTF-8
3,214
3.453125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : sam. 26 déc. 2020 à 02:21 -- Version du serveur : 5.7.31 -- Version de PHP : 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
2b2ef8e21898167c7e4460bf514a44daa834d30e
SQL
mcptr/bbone-js-py
/backend/db/schema/050-storage/010-post_categories.sql
UTF-8
483
3.46875
3
[]
no_license
CREATE TABLE storage.post_categories ( id serial primary key, ident varchar(64) not null, parent_id integer default null references storage.post_categories(id) on update cascade on delete cascade, active boolean not null default true ); CREATE UNIQUE INDEX post_category_uidx on storage.post_categories(...
true
02967f655d9376bed1a6b18fa685388078c7bcac
SQL
bchoubert/hooly
/migrations/002-page.sql
UTF-8
562
3.234375
3
[ "MIT" ]
permissive
-------------------------------------------------------------------------------- -- Up -------------------------------------------------------------------------------- CREATE TABLE page ( url TEXT PRIMARY KEY, websiteDomain TEXT NOT NULL, CONSTRAINT FK_Page_Website FOREIGN KEY (websiteDomain) REFERENCES web...
true
25282937ad57a296d7b98db2de931ce4cd6b11aa
SQL
mark-locatechs/mark_demo
/db/init.sql
UTF-8
11,762
3.3125
3
[]
no_license
SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP TABLE IF EXISTS `auth_group`; CREATE TABLE `auth_group` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(150) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT...
true
a306672587c237cc5cd7a394a20a6b2903637868
SQL
viczmandi/D_SQL_Northwind
/query5.sql
UTF-8
541
3.8125
4
[]
no_license
SELECT Orders.ShippedDate, Categories.CategoryName, Products.ProductName, SUM(OrderDetails.UnitPrice * OrderDetails.Quantity - OrderDetails.UnitPrice * OrderDetails.Quantity * OrderDetails.Discount) AS 'ProductSales' FROM Orders INNER JOIN OrderDetails ON Orders.OrderID = OrderDetails.O...
true
d05045347401010484bbd340da3101921ee8e127
SQL
TheCAIRN/eduerp
/setup/1_mysql/patch.20200302.mysql
UTF-8
1,530
3.25
3
[ "Apache-2.0" ]
permissive
CREATE VIEW v_sec_users AS SELECT u.user_id,u.human_id,gg.group_name,h.title,h.given_name,h.middle,h.middle_2,h.family_name,h.suffix,h.alias ,h.degrees,h.sex ,CONCAT(h.title,' ',h.given_name,' ',h.middle,' ',h.family_name,' ',h.suffix) AS human_name ,(SELECT CONCAT(email_user,'@',email_domain) AS email_address FROM cx...
true
752d78b195b554a2f2f4e564b358b968fcb8aa8e
SQL
themicp/NTUA-DB
/api/migrations/schema.sql
UTF-8
33,152
3.1875
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.15) # Database: ntua-rental # Generation Time: 2018-01-12 10:07:17 +0000 # *******************************************...
true
220ad1ea68ca14d3618879de8e7bc6ca86158204
SQL
svetlyoek/DB
/MS SQL Server/Data defition and data types/CreateTables.sql
UTF-8
270
3.40625
3
[]
no_license
USE Minions CREATE TABLE Minions ( Id INT NOT NULL, [Name] NVARCHAR (50), Age INT ) CREATE TABLE Towns( Id INT NOT NULL, [Name] NVARCHAR(50) ) ALTER TABLE Minions ADD CONSTRAINT PK_Minions PRIMARY KEY (Id) ALTER TABLE Towns ADD CONSTRAINT PK_Towns PRIMARY KEY (Id)
true
a564ef0cf63f0235abc85a1c1cff2d5ceaf25cc8
SQL
XuejieGuo/Sql-practice
/Leetcode/1082_SalesAnalysisI.sql
UTF-8
223
3.796875
4
[]
no_license
select seller_id from ( select seller_id, dense_rank() over(order by total desc) as rk from ( select seller_id, sum(price) as total from sales group by seller_id ) a ) b where rk = 1
true
101291ed7bbf2732f2a80dada622dc3c72a7eb41
SQL
MarijaZiv/GimnazijaMet
/src/main/resources/gimnazijam.sql
UTF-8
21,067
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 12, 2018 at 11:03 AM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
e95e8c057d2071f232fe68877e83ce376665f5f8
SQL
rcespedesm/GerkoSportProject
/gerkosport (1).sql
UTF-8
17,234
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 26-07-2016 a las 07:41:55 -- Versión del servidor: 5.5.27 -- Versión de PHP: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACT...
true
fd48ac868507f06e328eb88bda94d092d7378e39
SQL
tofigf/Window-Form-SQL-Server-Doctor-Patient-Result
/SQL server/WORK DOCTORS.sql
UTF-8
193
3.4375
3
[]
no_license
SELECT hk.Ad, sob.Ad,sh.Ad,kl.Ad FROM Hekimler hk INNER JOIN Sobeler sob ON hk.sobeId=sob.id INNER JOIN Seherler sh ON hk.sherlerId=sh.Id INNER JOIN klinika kl ON hk.klinikaId=kl.Id
true
9ac8624655fb3bc056d745084c45328ad712c404
SQL
yoman321/AdvancedJavaHW
/Chap32/Ex1/sql/staffFound.sql
UTF-8
801
3.328125
3
[]
no_license
drop procedure if exists staffFound; delimiter // create procedure staffFound(in inId char(9), out outLastName varchar(15), out outFirstName varchar(15), out OutMi char(1), out outAddress varchar(20), out outCity varchar(20), out outState char(2), out outTelephone char(10), out outEmail varchar(40)) begin declare re...
true
78c4e852ba953c3c8355bf925d068afc10dc5fc8
SQL
alexjfeldman/frb0522
/bronze_processing/ddl/metadata_generation.sql
UTF-8
447
2.625
3
[]
no_license
drop table metadata_generation; create external table metadata_generation ( Table_Name string, Column_Name string, Data_Type string, Number_Of_Rows bigint, Number_Of_Unique_Values bigint, Percent_Missing bigint, Minimum_Value string, Maximum_Value string, Minimum_Length integer, Average_Length double, Maximum_Length in...
true
dfbcf8467690348601cffd34f37610e724e2e641
SQL
pipeospina1320/minuta
/libs/MySQL covitec/covitecltda_cargo.sql
UTF-8
2,206
2.859375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: covitecltda -- ------------------------------------------------------ -- Server version 5.5.5-10.1.32-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_...
true
48401026e9b1dc2bd95d22a8b8fc91cc5a5a189f
SQL
Pietvergiet/datainfo
/session 2/result3e.sql
UTF-8
187
3.421875
3
[]
no_license
SELECT p.name, m.year FROM Person p, Directs d, Movie m, Genre g WHERE p.pid = d.pid AND d.mid = m.mid AND m.mid = g.mid AND g.genre = 'Action' GROUP BY p.pid HAVING count(p.pid) >= 2 ;
true
b0ef0c809015e5b949508d53d4bc3ea8f269707e
SQL
041502996/QuizApp
/ASP Interface/SQL/create core.sql
UTF-8
1,208
4.125
4
[]
no_license
CREATE TABLE students (student_id NVARCHAR(128) NOT NULL PRIMARY KEY, ); CREATE TABLE quizzes (quiz_id INT NOT NULL PRIMARY KEY, ); CREATE TABLE questions (question_id INT not null, quiz_id int not null, CONSTRAINT qpk PRIMARY KEY (question_id,quiz_id) ); create table student_quizzes (quiz_id int not nu...
true
01a9157d4e1e4f46597a712a0e52adae6b6d4e42
SQL
je-r/microsoft-machine-learning-server-testing
/Extended-events-for-SQL-Server-to-monitor-R-jobs.sql
UTF-8
310
3.296875
3
[]
no_license
-- from https://docs.microsoft.com/en-us/sql/advanced-analytics/r/extended-events-for-sql-server-r-services?view=sql-server-2017 SELECT o.name AS event_name, o.description FROM sys.dm_xe_objects o JOIN sys.dm_xe_packages p ON o.package_guid = p.guid WHERE o.object_type = 'event' AND p.name = 'SQLSatellite';
true
f077babfb5568fcd65851370a6ad131fbe27e302
SQL
melsborburgh/kederan
/src/main/database/latest/functions/player_auth.sql
UTF-8
412
2.9375
3
[]
no_license
CREATE OR REPLACE EDITIONABLE FUNCTION "PLAYER_AUTH" (i_user_name in varchar2) return boolean is v_count number; begin select count(*) into v_count from kdr_players where lower(player_user_name) = lower(i_user_name); if v_count = 1 or is_developer_email(i_user_name) then retur...
true
ef781872a18b4866c323fe8d74b56a9d3aea05f4
SQL
eynand/ShoppingMore
/src/main/resources/db/migration/V2__Item.sql
UTF-8
1,292
3.234375
3
[]
no_license
create table products ( product_id varchar (255) not null, name varchar (255) not null, description varchar (255), category varchar (255), user_id varchar (255), price double not null, amount double not null, PRIMARY KEY (product_id) ); create table users ( user_id varchar (255) not null, username ...
true
d6232ddfae924bed09e649752b3a0a7f308f630b
SQL
roberto8diaz/28minDB
/database/src/main/resources/data.sql
UTF-8
441
2.890625
3
[]
no_license
create table person ( id integer not null, name varchar(255) not null, location varchar(255), birth_date timestamp, primary key(id) ); INSERT INTO PERSON (ID,NAME,LOCATION,BIRTH_DATE) VALUES(1001,'MINOMBRE','PUEBLITA',sysdate()); INSERT INTO PERSON (ID,NAME,LOCATION,BIRTH_DATE) VALUES(1002,'tuNOMBRE',...
true
be6a0a2ee159f6be6646e2bd3a82f6765fd4250c
SQL
MaoLeYuu/asset-1
/src/main/resources/tables.sql
UTF-8
11,710
3.015625
3
[]
no_license
-- MySQL dump 10.17 Distrib 10.3.13-MariaDB, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: asset -- ------------------------------------------------------ -- Server version 10.3.13-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
true
1f273ad9384093ba4070cc64409ef3d1235eec2d
SQL
asanchezayra01/SOSDB
/sos_storage_routines.sql
UTF-8
22,685
3.359375
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.18, for Win64 (x86_64) -- -- Host: localhost Database: sos_storage -- ------------------------------------------------------ -- Server version 8.0.18 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;...
true
1c1c67e9f919dfd675181b8d92d4770d58630985
SQL
radtek/abs3
/sql/mmfo/bars/Table/acc_over_archive.sql
IBM866
4,910
2.796875
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/ACC_OVER_ARCHIVE.sql =========*** Run PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
ff92deb99594c75d1a37cddd9f2ac3efa1ccbb3a
SQL
SebastianJauregui/prami-1
/database/pramiv2.sql
UTF-8
5,887
3.515625
4
[]
no_license
CREATE TABLE convenio ( pkIdConvenio BIGINT NOT NULL, nombreConvenio VARCHAR(50) NOT NULL, descripcionConvenio VARCHAR(255) NOT NULL, PRIMARY KEY (pkIdConvenio) ); CREATE TABLE grupo ( pkIdGrupo BIGINT AUTO_INCREMENT NOT NULL, ...
true
ce70d1425227afa48b57850d4cf7dde81d54eb7e
SQL
arebaka/sode.su
/db/init.sql
UTF-8
37,682
3.296875
3
[ "MIT" ]
permissive
CREATE TYPE public.access AS ENUM ( 'private', 'protected', 'public' ); CREATE TYPE public.entity_type AS ENUM ( 'user', 'club' ); CREATE TYPE public.user_role AS ENUM ( 'user', 'moder', 'admin' ); CREATE TYPE public.artifact_type AS ENUM ( 'tag', 'number', 'mention', ...
true
3d807f76da380a7773294592736ded28c55054f4
SQL
yuryja/embarazadas
/embarazadas.sql
UTF-8
5,879
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 25-11-2020 a las 16:02:47 -- Versión del servidor: 10.4.13-MariaDB -- Versión de PHP: 7.2.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
0064ba4d3d57aaf8703383556c2605a8aaec4042
SQL
a864610877/MEINUO
/database/update.sql
GB18030
974
3.484375
3
[]
no_license
create table PayOrder--֧ ( id int identity(1,1) primary key, orderNo nvarchar(100),-- userId int, orderType int,-- 1Ա orderState int,--1 δ 2Ѹ 3ȡ item nvarchar(100) default(''),--Ŀ member--Ա shopowner곤 shopkeeper amount decimal(18,2) default(0),-- payAmount decimal(18,2) default(0),--֧ payTime datetim...
true
65a2c78d705ea7ef1666e603e1345cb6fcdf1ac2
SQL
stayds/22dbmodule
/DB/bettype.sql
UTF-8
7,950
2.875
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 10.15 (Ubuntu 10.15-0ubuntu0.18.04.1) -- Dumped by pg_dump version 10.15 (Ubuntu 10.15-0ubuntu0.18.04.1) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming...
true
90b367e9d294fe1a8e1a3a9fde87a57634d7cb23
SQL
BernardoFontes/Projeto-Vocabulary-Booster
/desafio4.sql
UTF-8
567
4
4
[]
no_license
SELECT j.JOB_TITLE AS Cargo, ROUND(AVG(e.SALARY), 2) AS 'Média salarial', (CASE WHEN AVG(e.SALARY) <= 5800 THEN 'Júnior' WHEN AVG(e.SALARY) > 5801 AND AVG(e.SALARY) <= 7500 THEN 'Pleno' WHEN AVG(e.SALARY) > 7501 ...
true
654ff95058147afa123f2694349909e4d15b3294
SQL
outlawCoder223/BootcampX
/4_queries/9_most_confusing_assignments.sql
UTF-8
246
3.5
4
[]
no_license
SELECT assignment_id, name, day, chapter, COUNT(assistance_requests.*) FROM assistance_requests JOIN assignments ON assignment_id = assignments.id GROUP BY assignment_id, assignments.name, day, chapter ORDER BY COUNT(assistance_requests.*) DESC;
true
e1d2eadb71ecf154e44105375a1010bbca95a57d
SQL
muja08/GST-Billing-App
/product.sql
UTF-8
2,691
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 25, 2018 at 04:43 PM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
b9122c6316cf4645d056023c437ffafad2b9cd68
SQL
sorleehen006/Mini_Project_2-2562
/rentedroom.sql
UTF-8
10,078
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 19, 2020 at 05:27 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.1.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
d50d2425f8fea3ba1c509291e291806197446adc
SQL
aakaashsrt200/skill-matrix
/Database/CreateTable/practices.sql
UTF-8
259
2.59375
3
[]
no_license
DROP TABLE IF EXISTS `practices`; CREATE TABLE `practices` ( `practice` varchar(4) NOT NULL, `coe_id` int(11) NOT NULL AUTO_INCREMENT, `coe` varchar(40) DEFAULT NULL, PRIMARY KEY (`coe_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=latin1;
true
7a71dc122d1dfa4c94f795139dc70a420289dd76
SQL
ravikishore1979/piper
/src/main/resources/schema-h2.sql
UTF-8
3,189
3.921875
4
[ "Apache-2.0" ]
permissive
create table if not exists job ( id varchar(256) not null primary key, status varchar(256) not null, current_task int not null, pipeline_id varchar(256) not null, label varchar(256), start_time datetime, create_time timestamp not null default now(), end_time datetime, tags text not null, priority in...
true
965eef49423de43432be2897148fa74cbad8b9e8
SQL
preyx/bchw12-tracker
/db/seed.sql
UTF-8
1,365
3.265625
3
[]
no_license
USE etrack_db; INSERT INTO departments (id, name) VALUES (1, 'Engineering'), (2, 'Training'), (3, 'Business Development'), (4, 'Services'), (5, 'Human Resources'); INSERT INTO roles (id, title, salary, department_id) VALUES (1, 'Environmental Tech', 38298, 2), (2, 'Systems Administrator I', 32098, 2), (3, 'Account Ex...
true
0f25f5e75d1f2b8c595699c7e14c1c900733bc1c
SQL
harishj1729/Database-system-implementation
/sqlite/ddl-schema.sql
UTF-8
1,954
3.234375
3
[]
no_license
CREATE TABLE part( p_partkey INTEGER PRIMARY KEY, p_name, p_mfgr, p_brand, p_type, p_size INTEGER, p_container, p_retailprice REAL, p_comment); CREATE TABLE supplier( s_suppKey INTEGER PRIMARY KEY, s_name, s_address, s_nationkey INTEGER, s_phone, s_acctbal REAL, s_comment); CREATE TABLE partsupp( ps_partKey INT...
true
140784591cf8d43b6a63043df6815d69abe2f539
SQL
bd1umg2020/proyecto-final
/BDI/GRUPO 5/Scripts de bases de datos/SCRIPT_G5.SQL
UTF-8
19,495
2.578125
3
[]
no_license
/*==============================================================*/ /* DBMS name: ORACLE Version 11g */ /* Created on: 30/10/2020 17:50:57 */ /*==============================================================*/ alter table ALDEA drop constraint FK_ALD...
true
d959a99db9fe5ee4d0abfa54c0852d509d088b28
SQL
Guzarov/otus-arch
/task2/initdb/sql/V1__create_tables.sql
UTF-8
245
2.515625
3
[]
no_license
create table if not exists tbl_user ( id bigint generated by default as identity constraint tbl_user_pkey primary key, email varchar(255), first_name varchar(255), last_name varchar(255), phone varchar(255), username varchar(255) );
true
8c5281e6de0b68e5e3862e152ea99f1abb1a0b23
SQL
wangweiomg/push
/doc/init.sql
UTF-8
2,777
3.8125
4
[]
no_license
-- CREATE DATABASE push default character set utf8mb4 collate utf8mb4_unicode_ci; -- 用户表 DROP TABLE IF EXISTS t_user; CREATE TABLE t_user ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT '主键', token BIGINT COMMENT 'token', login_name VARCHAR(30) COMMENT '登陆名', password VARCHAR(100) COMMENT '密码', name VARC...
true
005a43dbb0fd64940b85a257d9d6f2dca81b858e
SQL
Roman141099/Science
/sql/script.sql
UTF-8
5,315
3.875
4
[]
no_license
CREATE TABLE person_types ( id smallint NOT NULL DEFAULT nextval('person_types_id_seq'::regclass), name character varying(50) COLLATE pg_catalog."default" NOT NULL, CONSTRAINT pk_person_types_id PRIMARY KEY (id) ); INSERT INTO person_types (name) VALUES ('user'), ('moderator'); CREATE TABLE d...
true
f10588096d5555dcac2579a434a875a45558394a
SQL
DAHeath/GTMRS
/revised_src/prescription.sql
UTF-8
277
2.90625
3
[]
no_license
DROP TABLE IF EXISTS prescription; CREATE TABLE prescription ( visit_id INTEGER(10), medicine_name VARCHAR(20), notes TEXT, dosage TEXT, duration TIME, ordered BOOLEAN, PRIMARY KEY (visit_id, medicine_name), FOREIGN KEY (visit_id) REFERENCES visit(visit_id) );
true
b89a62eb12a60198832b6a817ed3bb883a98f289
SQL
ChandraAddala/taskatomic-svc
/database/src/main/resources/sql/schema/V1__init_schema.sql
UTF-8
1,459
4.03125
4
[]
no_license
-- DROP SCHEMA IF EXISTS "ta"; -- CREATE SCHEMA "ta"; DROP SEQUENCE IF EXISTS "user_id_seq"; CREATE SEQUENCE "user_id_seq"; DROP TABLE IF EXISTS "user"; CREATE TABLE "user" ( "id" integer DEFAULT nextval('user_id_seq') UNIQUE, "handle" VARCHAR PRIMARY KEY, -- unique user id "first_name" character varying(50), ...
true
a6f6a586265e55de7d23aca090a35eaca635faef
SQL
PhilViel/Database1
/Database1/dbo/Stored Procedures/Procs1/psGENE_RapportStatistiquesDemandePortail.sql
UTF-8
4,366
3.90625
4
[]
no_license
 /**************************************************************************************************** Code de service : psGENE_RapportStatistiquesPortail Nom du service : Rapport sur les statistiques des demande RIN et PAE sur le portail et des DDD en découlant But : Facette : GENE Reférence : Para...
true
bd3773132dfe21ade5bdf23d825385059404f8cc
SQL
calacademy-research/antweb
/db/upgrade/6.74/2016-06-03.sql
UTF-8
3,543
3.5
4
[]
no_license
alter table geolocale add column introduced_species_count int(11); alter table specimen add column is_endemic tinyint(4); # Jun 7, 2017 delete from taxon where (source like '%ants' or source like '%speciesList.txt') and source not in (select project_name from project) and taxon_name not in (select distinct tax...
true
4b6c490d5545c396575013cd7c354fbef69c5040
SQL
MelissaChen15/quant
/factors/sql/sql_template.sql
UTF-8
308
3.34375
3
[]
no_license
-- 注意:取2005-01-01及之后的数据,要设置date >= 2004-12-31, 否则季度数据无法插值就会有缺失的情况 --表1: xxx select t2.SecuCode,t1.EndDate from xxx t1 inner join SecuMain t2 on t1.CompanyCode=t2.CompanyCode where (t2.SecuMarket='83' or t2.SecuMarket='90') --表2: yyy
true
fd4dabfd8d5baa3ae85d5461758b8a3ab3baf34d
SQL
vijaydairyf/TimelyFish
/CFFDB/Utility/Stored Procedures/Utility.cfp_DisplayBlockedQueryData.sql
UTF-8
3,412
3.828125
4
[]
no_license
 CREATE PROCEDURE [Utility].[cfp_DisplayBlockedQueryData] AS /* ************************************************************************************************************************************ Procedure: Utility.cfp_DisplayBlockedQueryData Author: Chris Carson Purpose: Display current quer...
true
6b4693ffa26206ea9a359054cb9cbf9ace9905af
SQL
servicecatalog/development
/oscm-app/resources/sql/upd_postgresql_02_06_09.sql
UTF-8
328
2.640625
3
[ "Apache-2.0", "EPL-1.0", "BSD-3-Clause", "W3C", "LGPL-3.0-only", "CPL-1.0", "CDDL-1.1", "BSD-2-Clause", "LicenseRef-scancode-proprietary-license", "LGPL-2.1-or-later", "CDDL-1.0", "Apache-1.1", "MIT", "LicenseRef-scancode-unknown-license-reference", "W3C-19980720", "LGPL-2.1-only", "...
permissive
CREATE TABLE "templatefile" ( "tkey" BIGINT NOT NULL, "filename" character varying(255) NOT NULL, "content" OID NOT NULL, "lastchange" timestamp NOT NULL, "controllerid" character varying(255), CONSTRAINT "templatefile_pk" PRIMARY KEY ("tkey"), CONSTRAINT "templatefile_uc" UNIQUE ("filename", "controller...
true
10292ae89a816e33195a93288a3884b8ce603562
SQL
group-5th/endingWork
/users.sql
UTF-8
2,234
2.96875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50716 Source Host : 127.0.0.1:3306 Source Database : blogs Target Server Type : MYSQL Target Server Version : 50716 File Encoding : 65001 Date: 2019-05-04 13:06:15 */ SET FOREIGN_KEY_CHECKS=0; -- ---...
true
76b07f4f3bea0d3983299b773238351724891de5
SQL
crismotinha/trabalhoIndiceBD
/Query3.sql
UTF-8
492
3.390625
3
[]
no_license
select l_orderkey, sum(l_extendedprice * (1 - l_discount)) as revenue, o_orderdate, o_shippriority from CUSTOMER, ORDERS, LINEITEM where c_mktsegment = 'AUTOMOBILE' and c_custkey = o_custkey and l_orderkey = o_orderkey and o_orderdate < date '1995-03-13' and l_shipdate > date '1995-03-13' group by l_orderkey, o_orderda...
true
d63cc8782ec7d79c719717870c730f03fcd1d79d
SQL
franciscosegui/BD2
/exercicios2/1.sql
UTF-8
159
3.21875
3
[]
no_license
SELECT first_name,last_name,salary,from_date,to_date FROM employees INNER JOIN salaries ON employees.emp_no = salaries.emp_no WHERE employees.emp_no = 10006
true
ef2fefff3fb2244834f5a1bf335320518865035c
SQL
Kevin9Huang/IF3110-01-Simple-Blog
/simple_blog.sql
UTF-8
2,469
3.46875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 14, 2014 at 07:56 AM -- 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
9a3a1c9a39c296d7a162046b8687ce607ab189c6
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day21/select0959.sql
UTF-8
178
2.640625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-20T09:59:00Z' AND timestamp<'2017-11-21T09:59:00Z' AND temperature>=31 AND temperature<=93
true
c5bb22818d195ed75d5a2196f6f671d37ba9e966
SQL
phm-unsam/solomateamargo-back
/sqlQueries/vista.sql
UTF-8
459
3.625
4
[]
no_license
CREATE ALGORITHM = UNDEFINED DEFINER = `root`@`localhost` SQL SECURITY DEFINER VIEW `vuelos_mas_de_3_pasajes` AS SELECT `f`.`id` AS `id`, `f`.`destinationFrom` AS `destinationFrom`, `f`.`destinationTo` AS `destinationTo`, COUNT(`t`.`id`) AS `tickets_amount` FROM ...
true
27f22c04d2905e2550ca27b677b4d9907df2c062
SQL
b26/Airline-Bookings-CLI
/demo/a2-data-min.sql
UTF-8
1,460,571
2.9375
3
[ "MIT" ]
permissive
-- Data prepared by Bradley Lockhart, blockhar@ualberta.ca, and updated on 09/30/2015 -- Airport Data obtained from http://openflights.org/ --Change log -- Sept 30 -- 1. For passengers insert statements, email and name were in the wrong position. Updated Sept 30. -- 2. Added data such that Q10 becomes meaningf...
true
431c60f094893909f211e2b8f692f72a6e66d58d
SQL
biocommons/hgvs
/misc/mutalyzer-comparison/views.sql
UTF-8
1,392
3.6875
4
[ "Apache-2.0" ]
permissive
-- filter out bogus records -- \? filters variants that have question marks in them -- [ACGT][ACGT]> filters multinucleotide substitutions (which don't parse) -- \d> filters records that don't have a reference nucleotide (insertion?) create or replace view reece.snp_hgvs_filtered as select * from reece.snp_hgvs where ...
true
816855c07bc9b13dc91d413538301c4a7e8b48ae
SQL
tokuhirom/MobileAppSample
/sql/my.sql
UTF-8
844
3.46875
3
[]
no_license
create table user ( user_id int unsigned not null auto_increment primary key, mobile_uid varchar(255) BINARY NOT NULL, total_distance DECIMAL(5,2) not null default 0, UNIQUE (mobile_uid) ) engine=innodb; create table pos ( pos_id int unsigned not null auto_increment primary key, user_id int uns...
true
be795d13d5e8dcb7bef38a31e32fcc19d9c5cec9
SQL
Joseleon1903/AplicacionSpringMVC
/AplicacionSpringMVC/src/main/resources/SQL/FUNCTION/OPTENER_VALOR_INDEX_TABLA_FN.sql
UTF-8
510
3.390625
3
[]
no_license
/* * * Creando funcion para optener el proxiomo valor del indice de una tabla. * */ DELIMITER $$ CREATE FUNCTION optenerValorIndexTabla ( p_nombre_tabla VARCHAR(20) ) RETURNS INT(11) BEGIN DECLARE _schema VARCHAR(20); DECLARE _index INT(11); SET _schema = 'aplicacion_web_rest'; ...
true
9233f217b27f902d2a0270b633e26d0b5e415596
SQL
PrasananTrainer03/MphasisData
/sql1/MySql_Exam_Prep_2.sql
UTF-8
310
2.6875
3
[]
no_license
select * from Agent where agentiD <> ALL(select AgentID from AgentPolicy); select * from Policy where PolicyID <> ALL (select PolicyID from AgentPolicy); select * from Agent where AgentID = ANY(select AgentID From AgentPolicy); select * from Policy Where PolicyID = ANY(Select PolicyID from AgentPolicy);
true
837c52dfdcf3dcb3c086d9bf96a635a1a061263f
SQL
AJEvans/dyetracecalc
/parametersdb.sql
UTF-8
729
2.90625
3
[ "MIT" ]
permissive
/* ** This file builds the initial database needed. To do so, run: ** sqlite3 parametersdb.db -init parametersdb.sql ** from this directory at the terminal or a command prompt. ** You will need to have installed SQLite: ** https://www.sqlite.org/index.html ** and added it to your path. ** Author: AJEvans */ DROP TAB...
true
7bac2912759a548ac18a769b15e2519187795893
SQL
shadow000902/imoocLearning
/operateMysql/create_table.sql
UTF-8
173
2.625
3
[ "MIT" ]
permissive
# -*- coding: utf-8 -*- use imooc; CREATE TABLE user( userid INT(11) NOT NULL AUTO_INCREMENT, username VARCHAR(100) DEFAULT NULL, PRIMARY KEY (userid) ) charset=utf8;
true
79c5973dc906cc58a110814c5eb3527b634fc496
SQL
eurospent/eurospent
/1_scraping/latvia/3_query.sql
UTF-8
3,241
3.609375
4
[ "MIT" ]
permissive
INSERT INTO public."lv_final" ( transaction_id, project_name, beneficiary_name, total_amount, eu_cofinancing_amount, amount, amount_kind, beneficiary_id, fund_acronym, funding_period, project_state, project_region, project_county, project_nuts3, project_city, project_lau2, country, c...
true
7631ca73b08995cfca5db236d0b12944f1b241a3
SQL
rezkynurfauzi/IF1-10118016-latihanCRUDMVCDAO
/kingsbarbershop.sql
UTF-8
1,641
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 16 Jan 2020 pada 16.56 -- Versi server: 10.4.10-MariaDB -- Versi PHP: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
605f5502d7d61ee6ac7be012387197794c028f2f
SQL
sunlongv520/laravel-thrift-tasks
/laravel51/homestead.sql
UTF-8
18,687
3.140625
3
[ "MIT" ]
permissive
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50553 Source Host : localhost:3306 Source Database : homestead Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2017-12-04 18:48:45 */ SET FOREIGN_KEY_CHECKS=0...
true
01694f9af2c6dc8d33a5dd5b3c904ca942519166
SQL
kongyew/gpdb
/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/filerep_end_to_end/resync/sql/skip/resync_ao_alter_part_exchange_partlist.sql
UTF-8
4,296
3.15625
3
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "PostgreSQL", "LicenseRef-scancode-other-copyleft", "metamail", "BSD-3-Clause", "LicenseRef-scancode-openssl", "LicenseRef-scancode-other-permissive", "ISC", "Python-2.0", "bzip2-1.0.6", "LicenseRef-scancode-ssleay-windows", "LicenseRef-scanco...
permissive
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore -- -- RESYNC AO TABLE 1 -- CREATE TABLE resync_ao_alter_part_exchange_partlist1 ( unique1 int4, unique2 int4) with ( appendonly='true') partition by list (unique1) ( partition aa values (1,2,3,4,5), p...
true
872c50d092d46bfac7248003bf08c37785814e4e
SQL
catmcgee/yougif
/migrations/2_create_frames_table.up.sql
UTF-8
615
3.8125
4
[]
no_license
create table frames ( id uuid not null, video_id uuid not null constraint frames_videos_id_fk references videos on delete cascade, file_name varchar, time int default 0 not null, image bytea, previous_fra...
true
f8aeace11f7d890da42ce8335de5a7da43684a3e
SQL
bryanwrightscode/BugTracker
/SQLQuery1.sql
UTF-8
440
3.40625
3
[]
no_license
--SELECT * FROM Tickets; --SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE='BASE TABLE'; --SELECT * FROM Projects; --SELECT -- Tickets.title, -- Projects.title, -- AspNetUsers.FirstName --FROM -- Tickets --INNER JOIN -- Projects ON Projects.Id = Tickets.ProjectId --LEFT JOIN -- AspNetUsers ON AspNetUsers.I...
true
41eb53f1c5f22d3d862b22c319811bf48497cacf
SQL
Joanna218/JSP
/back/order/book.sql
UTF-8
1,356
2.890625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : jsp Source Server Version : 50719 Source Host : localhost:3306 Source Database : demo Target Server Type : MYSQL Target Server Version : 50719 File Encoding : 65001 Date: 2018-01-06 06:28:58 */ SET FOREIGN_KEY_CHECKS=0; -- -----------...
true
6e4d02aaf8e6eada8ba6f7efb465a0c5cb8d5f5e
SQL
VijayMVC/Synergy
/User/Frank_Garcia/PROJECTS/CLAUDINE_EOY_PBA_COMPARE.sql
UTF-8
568
3.625
4
[]
no_license
SELECT * ,CASE WHEN EOY = 'Y' AND PBA = 'Y' THEN '1' ELSE '2' END AS 'COMPARE' FROM ( SELECT [State Student Identifier] ,[Local Student Identifier] ,[Test Code] --,CASE -- WHEN VERSION = 'EOY' -- THEN [TEST ATTEMPTEDNESS FLAG] --END AS 'EOY ATTEMPT' --,CASE -- WHEN VERSION = 'PBA' -- THEN [TEST ATTE...
true
43ff5a502a7e7d5483365c7ba2d03444e9a8c6fe
SQL
cadusousa/Productos
/ModuloAdministrativo/Tag/3.8.13/Codigo/Escritorio/Scripts v3.8.13/20110203 Scripts ModeloOte/003 Comprobacion de Antiguedad de Saldos.sql
UTF-8
864
3.28125
3
[]
no_license
select SUM(SaldoEfectivo) SaldoRoute, ISNULL((select SUM(Saldo) from Route.dbo.TransProd TRPC where TRPC.Tipo = 24 and Saldo > 0),0) SaldoConsignas, SUM(SaldoEfectivo) - ISNULL((select SUM(Saldo) from Route.dbo.TransProd TRPC where TRPC.Tipo = 24 and Saldo > 0),0) SaldoRoute, ISNULL((select SUM(Saldo) ...
true
b39cd78cddc7b13252eff53261e8ce81d04d7ac6
SQL
radtek/MedicalSystemDemo_anhuixiongke
/安徽省胸科医院/大屏/脚本/脚本5.0_SqlServer/大屏脚本5.0/MED_SCREEN_FIELDS(大屏显示字段表).sql
UTF-8
399
3.4375
3
[]
no_license
-- Create table create table MED_SCREEN_FIELDS ( SCREEN_NO VARCHAR(20) not null, ORDER_NO INT, FIELD_NAME VARCHAR(40) not null, CAPTION VARCHAR(40), COL_PERCENT INT, SEQ_SHOW INT default 0 ); -- Create/Recreate primary, unique and foreign key constraints alter table MED_SCREEN_FIELD...
true
5d161a5d8c0f215bf260f8a1c24fec1b0718bf0e
SQL
kradalby/bork
/migrations/1_user.up.sql
UTF-8
514
2.8125
3
[ "MIT" ]
permissive
CREATE TABLE users ( id uuid NOT NULL , created_at timestamp without time zone NOT NULL , updated_at timestamp without time zone NOT NULL , username character varying(255) NOT NULL , first_name character varying(255) NOT NULL , last_name character varying(255) NOT NULL , email character varying(255) NOT NULL , is_act...
true
83c1c23046edd298bcb3d809419f27fb5bafd2ed
SQL
soon14/parking-cloud-dev
/parking-cloud-core/database/advertisment/create_yxy_advertisement.sql
UTF-8
388
2.546875
3
[]
no_license
drop table if exists yxy_advertisement; CREATE TABLE yxy_advertisement( id bigserial PRIMARY KEY , title VARCHAR (128) unique not null, cover text not NULL , link text default '', position INT not null, remarks VARCHAR (512), status bool not null, sort int not null, content text, created_at timestam...
true
00c5b9b19f75e2f8dd5ed6bad5a15ace1d858b65
SQL
AakankshaRajput/api
/cafe.sql
UTF-8
13,177
3.015625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 13, 2018 at 06:56 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
b3830976bc3ddae234b99fab7a5e693351cb3d79
SQL
carbon8/Sportscar-Standings
/App_Data/Install/SQL Folder/Objects/Chat_PopupWindowSettings.sql
UTF-8
773
2.84375
3
[]
no_license
CREATE TABLE [Chat_PopupWindowSettings] ( [ChatPopupWindowSettingsID] [int] IDENTITY(1, 1) NOT NULL, [MessageTransformationName] [nvarchar](255) NOT NULL, [ErrorTransformationName] [nvarchar](255) NOT NULL, [ErrorClearTransformationName] [nvarchar](255) NOT NULL, [U...
true
f9cca2eef47e048472b7a1e17f6b95c090ed30fb
SQL
Bnei-Baruch/archive-backend
/migrations/2017-05-24_124319_secure.sql
UTF-8
1,688
3.359375
3
[ "MIT" ]
permissive
-- MDB generated migration file -- rambler up -- Secure ALTER TABLE collections ADD COLUMN secure SMALLINT NOT NULL DEFAULT 0, ADD COLUMN published BOOLEAN NOT NULL DEFAULT FALSE; ALTER TABLE content_units ADD COLUMN secure SMALLINT NOT NULL DEFAULT 0, ADD COLUMN published BOOLEAN NOT NULL DEFAULT FALSE; AL...
true
48b43d8cb37fb91027b82e75449137083e2b1a9a
SQL
ricardorq85/genetic-forex
/ForexGenetic/sql/IndicadorIndividuoTendencias.sql
UTF-8
2,171
3.96875
4
[]
no_license
SELECT * FROM INDICADOR_INDIVIDUO_TENDENCIAS WHERE TIPO='OPEN' AND ID_INDIVIDUO IN ('1327818809271.13') ORDER BY ID_INDICADOR, ID_INDIVIDUO DESC ; --Cambiar query de consulta de individuos para el archivo de propiedades para traerlos ordenados por diferentes criterios, ej. PIPS X OPERACION --SELECT * FROM ( ...
true
55e106d5b26646932c602a44cdbcfa7e96480592
SQL
jimmyrocks/tm2-automate
/sql/data_render/nps_cartodb_point_view.sql
UTF-8
600
2.84375
3
[]
no_license
CREATE OR REPLACE VIEW public.nps_cartodb_point_view AS SELECT "nps_render_point"."osm_id" AS "cartodb_id", "nps_render_point"."tags" -> 'name'::text AS "name", "nps_render_point"."tags" -> 'nps:places_id'::text AS "places_id", "nps_render_point"."unit_code" AS "unit_code", "nps_render_point"."type" AS "type"...
true
e5ad2a0fe4d2981c31dc39b95d783dc4b587e622
SQL
hyerinnn/JSP-Project
/Market/database/schema.sql
UTF-8
420
3.03125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS market DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; USE market; CREATE TABLE IF NOT EXISTS user ( id VARCHAR(32) PRIMARY KEY COMMENT 'email', password VARCHAR(32), name VARCHAR(32), image MEDIUMBLOB, date DATE ); CREATE TABLE IF NOT EXISTS b...
true
99797586ca8efe7d9c4002d0dee744101a7818db
SQL
fernandoTorresan/plsql-language
/test/sql/xyz_myPackage.sql
UTF-8
1,345
2.765625
3
[]
no_license
CREATE OR REPLACE PACKAGE schema.MyPackage as type txyz_myType is record( myChar varchar2 , myNumber number , myField myTable.myField%type ); type ttxyz_myType is table of txyz_myType; myConst constant char(2) := '10'; myGlobalVar number := 10; /** * Comment */ function get_myValue(...
true
1238e84d39d86cacde484da91a7e9440cc79f6c9
SQL
lukecampbell/cbibs-api
/cbibs_api/queries/ListStationsWithParam.sql
UTF-8
185
2.578125
3
[ "MIT" ]
permissive
-- ListStationsWithParam SELECT description FROM cbibs.v_elevations WHERE cbibs.depth_naming(actual_name, elevation) = %(parameter)s AND organization = %(constellation)s;
true