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
775388201500c4b28437fcf7f193eee62529d28a
SQL
thiagopereira1904/Monitoramento-de-modelos
/SQLQuery1.sql
ISO-8859-1
3,695
3.625
4
[]
no_license
CREATE DATABASE db; USE db; DROP DATABASE db; USE app; /* TIPO MODELO */ CREATE TABLE tipo_modelo( id_tm INTEGER IDENTITY, nome_tm VARCHAR(30) NOT NULL, PRIMARY KEY(id_tm) ); DROP TABLE tipo_modelo; INSERT INTO tipo_modelo VALUES ('POC'); INSERT INTO tipo_modelo VALUES ('ESTUDO AVANADO'); SELECT * FROM tipo_...
true
146027927eb1b0566c27f7b4461510a1037d9672
SQL
thiefspin/scala-angular-template
/sql/schema.sql
UTF-8
462
2.90625
3
[]
no_license
DROP SCHEMA IF EXISTS platform; CREATE SCHEMA platform; CREATE TABLE platform.users ( id serial PRIMARY KEY, email VARCHAR NOT NULL, name VARCHAR NOT NULL, surname VARCHAR NOT NULL, password VARCHAR NOT NULL, created TIMESTAMP NOT NULL, last_login TIMESTAM...
true
cece3f7a9e3ec20e995de657ef3266d42c2e89e1
SQL
vctrmarques/interno-rh-sistema
/rhServer/src/main/resources/db/migration/V1_2020_03_30_14_47__CREATE_TABLE_TEXTO_DOCUMENTO.sql
UTF-8
528
3.203125
3
[]
no_license
--Criação da tabela texto_documento --Flávio Silva CREATE TABLE texto_documento ( id bigint NOT NULL IDENTITY(1,1), created_at datetime2(7) NOT NULL, updated_at datetime2(7) NOT NULL, created_by bigint, updated_by bigint, codigo int NOT NULL, descricao varchar(255) NOT NULL, vigencia datetime2(7) NOT NULL...
true
0173ad3cad169bedea16425ec3916fd107280038
SQL
josephramsay/nz.co.kakariki.WNMSExtract
/WNMSExtract/sql/table/raw/15min/raw_15min_rnc.sql
ISO-8859-1
1,581
2.671875
3
[]
no_license
create table raw_15min_rnc( rcid varchar(12), ts timestamp, vsfirstrrcconnectionrequestorigconvcall float, vsfirstrrcconnectionrequestemergency float, vsfirstrrcconnectionrequesttermconvcall float, rrcattconnestaborigconvcall float, rrcattconnestabemergency float, rrcattconnestabtermconvcall float, vsfirstrrcc...
true
96f4dc9b524110f7e295b4cc755b9d6a701877fa
SQL
jasonhmlee/Pewlett-Hackard-Analysis
/Employee_Database_challenge.sql
UTF-8
1,103
4.1875
4
[]
no_license
--Retrieve the emp_no, first_name, and last_name columns from the Employees table. SELECT emp_no, first_name, last_name SELECT * FROM employees --Retrieve the title, from_date, and to_date columns from the Titles table. SELECT title, from_date, to_date SELECT * FROM Titles --Create a new table using the INTO clause. SE...
true
5a716aec88f18255c10400f13e7c6a2095a249dc
SQL
brandedcow/BankC
/p2.sql
UTF-8
1,602
4.4375
4
[]
no_license
DROP TABLE P1.CUSTOMER; DROP TABLE P1.ACCOUNT; DROP VIEW V_TOTAL_BALANCE; CREATE TABLE P1.CUSTOMER ( ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY ( START WITH 100 INCREMENT BY 1 NO CACHE ) PRIMARY KEY, NAME VARCHAR(15) NOT NULL, GENDER CHAR(1) NOT NULL, AGE INTEGER NOT NULL, PIN INTEGER NOT NULL); ALTER TABLE ...
true
d766911eed04180bdc0aae7bac01a6253802c7d2
SQL
mapra99/cd-challenges
/recommendations.sql
UTF-8
354
3.46875
3
[]
no_license
-- write your code in PostgreSQL 9.4 SELECT place FROM ( SELECT place, COUNT(CASE WHEN opinion='recommended' THEN 1 END) AS recommended_count, COUNT(CASE WHEN opinion='not recommended' THEN 1 END) AS not_recommended_count FROM opinions GROUP BY place ) AS rec_counts WHERE rec_counts.recommended_count > ...
true
f975419b06c9f4f4ef2139c07fd00295e02f3fd4
SQL
Leocrux/TrainRoutesOnTheWeb
/Oracle/train_create_tables.sql
UTF-8
5,194
3.984375
4
[]
no_license
drop table users cascade constraints; drop table trains cascade constraints; drop table mainroute cascade constraints; drop table internalroute cascade constraints; drop table statii cascade constraints; drop table statie_tren cascade constraints; drop table trasee cascade constraints; drop table user_saved casc...
true
2d8b8dbdbda0ad136ca6097d553446e450801ba9
SQL
apyaks123/MySQL_Projects
/10.sql
UTF-8
496
4.125
4
[]
no_license
drop view if exists movies_legendary_technician; CREATE VIEW movies_legendary_technician AS SELECT title AS Movie, CONCAT(first_name, ' ', last_name) AS Technicians, FLOOR((DATEDIFF(CURDATE(), birth_date)) / 365.25) AS 'Age' FROM movies INNER JOIN movie_cast...
true
79fa396797a3d84880e8281042cfbd4dbf7ee78f
SQL
xwang322/Coding-Interview
/sql/577.sql
UTF-8
156
3.34375
3
[]
no_license
# Write your MySQL query statement below select name, bonus from Employee left join Bonus on (Employee.empId = Bonus.empId) where ifnull(bonus, 0) < 1000
true
51505ed424910f88ac1ce01d9370689070b91cb7
SQL
RehabEmam228/SQL_employees
/employee_avg_salary_in_out_procedure.sql
UTF-8
319
3.546875
4
[]
no_license
use employees; drop procedure if exists employee_avg_salary_out; delimiter $$ create procedure employee_avg_salary_out(in p_emp_no integer, out p_avg_salary decimal(10,2)) begin select avg(s.salary) into p_avg_salary from employees e join salaries s on e.emp_no = s.emp_no where e.emp_no = p_emp_no; end$$ delimiter ;
true
099e94f3378f8cbc73c87aa1091d383ae2f6b2c2
SQL
changchen09/leave-management-system
/login09/localhost.sql
UTF-8
4,217
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 18, 2015 at 05:52 AM -- Server version: 5.6.12-log -- PHP Version: 5.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
dac3f8680436fd97c183f148ab401bd1e18be438
SQL
jannat21/Question
/amlakga1_qestions (2)Functrions.sql
UTF-8
59,197
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Mar 17, 2018 at 07:35 AM -- Server version: 5.6.37 -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
aa5c4270af9258b31d184df689a22d3c19c310ef
SQL
ESSystems/osirisnissan.co.uk
/cm2/app/config/sql/patch_db.sql
UTF-8
16,432
3.421875
3
[]
no_license
ALTER TABLE `Absence` CHANGE `PersonID` `person_id` INT( 11 ) NULL DEFAULT NULL , CHANGE `StartDate` `start_date` DATETIME NULL DEFAULT NULL , CHANGE `EndDate` `end_date` DATETIME NULL DEFAULT NULL , CHANGE `ReturnedToWorkDate` `returned_to_work_date` DATETIME NULL DEFAULT NULL , CHANGE `NumberOfSickDays` `sick_days` F...
true
2882ee86a7b6f648b38810661d4b06076a68d620
SQL
duckdb/duckdb
/benchmark/tpch_plan_cost/queries/q05.sql
UTF-8
522
3.8125
4
[ "MIT" ]
permissive
SELECT n_name, sum(l_extendedprice * (1 - l_discount)) AS revenue FROM customer, orders, lineitem, supplier, nation, region WHERE c_custkey = o_custkey AND l_orderkey = o_orderkey AND l_suppkey = s_suppkey AND c_nationkey = s_nationkey AND s_nationkey = n_nationkey ...
true
44b1f0a63da79252b3079f7eb3614b1a7658d87f
SQL
bigdatacon/DZ
/ДЗ УР 7/ZAPIS_DEISTV_IS_DRUG_TABL.sql
UTF-8
8,184
4.25
4
[]
no_license
/*Создайте таблицу logs типа Archive. Пусть при каждом создании записи в таблицах users, catalogs и products в таблицу logs помещается время и дата создания записи, название таблицы, идентификатор первичного ключа и содержимое поля name. решение на строках 39 - 76 НО ПРИ Этом когда в 77 строке нажимаю select * from...
true
b951ed8f19ade3bad0446076eec9aecf948d0d83
SQL
sokolenkomikhail/homeworks_mysql
/lesson_05/2.sql
UTF-8
845
3.734375
4
[]
no_license
-- 1. -- Подсчитайте средний возраст пользователей в таблице users SELECT FLOOR(AVG(TIMESTAMPDIFF(YEAR, birthday, NOW()))) AS avg_age FROM users; -- 2. -- Подсчитайте количество дней рождения, которые приходятся на каждый из дней недели. Следует учесть, что необходимы дни недели текущего года, а не года рождения. S...
true
0c00e7b37f54487f4305f2fc55199cd79f8b5a7d
SQL
abdurrabb/sql-challenge
/sql-challenge_schema.sql
UTF-8
4,050
2.921875
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 13.3 -- Dumped by pg_dump version 13.3 -- Started on 2021-08-06 09:13:44 EDT SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_ca...
true
7d8c9c6248f292c717b73e23609cad7dbb4046a0
SQL
MCZbase/DDL
/TABLE/PERMIT.sql
UTF-8
1,358
3.1875
3
[ "Apache-2.0" ]
permissive
CREATE TABLE "PERMIT" ( "PERMIT_ID" NUMBER NOT NULL ENABLE, "ISSUED_BY_AGENT_ID" NUMBER NOT NULL ENABLE, "ISSUED_DATE" DATE, "ISSUED_TO_AGENT_ID" NUMBER NOT NULL ENABLE, "RENEWED_DATE" DATE, "EXP_DATE" DATE, "PERMIT_NUM" VARCHAR2(255 CHAR), "PERMIT_TYPE" VARCHAR2(100 CHAR) NOT NULL ENABLE, "PERMI...
true
d251a09354f3ad001fe4e4f956e2c42f4e2f0a12
SQL
kofelo123/smartitcording
/기타/zerock0928_584.sql
UTF-8
3,285
3.296875
3
[]
no_license
CREATE TABLE tbl_member( userid varchar(50) not null, userpw varchar(50) not null, username varchar(50) not null, email varchar(100), regdate timestamp default now(), updatedate timestamp default now(), primary key(userid) ); select * from tbl_member; delete from tbl_member where...
true
148bd9801342218f48964da5fa7d9865f9b3da1f
SQL
Iolana/common
/XArch/startup/schema.sql
UTF-8
2,074
3.15625
3
[]
no_license
create table if not exists Patients(id integer primary key autoincrement, name text, birthday text, sex int) create table if not exists Modalities(id integer primary key autoincrement, name text, template text) create table if not exists Devices(id integer primary key a...
true
c1db01a9c5f9776be06974a5aab763cc7ef61b6a
SQL
BOwsnicki/Distrib
/workspace/P3Sample/src/main/java/PlayList.sql
UTF-8
720
2.65625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS P3Sample; USE P3Sample; DROP TABLE IF EXISTS Playlist; CREATE TABLE Playlist ( imdbRef VARCHAR(15) UNIQUE NOT NULL, title VARCHAR(100) NOT NULL, metascore INT NOT NULL, rottenTomatoes INT NOT NULL, key1 VARCHAR(20), key2 VARCHAR(20), key3 VARCHAR(20), key4 VARCHAR(40), k...
true
971566eeeb37d1c4278af704e92b75d103e9972d
SQL
Shiftgithub/My_File
/Turan's_Project/HR DOCS/PureMSSQL.sql
UTF-8
217,346
3.28125
3
[]
no_license
create table `accounts_ledger` ( `company_id` varchar(20) default default null, `accounts_sub_group_id` varchar(20) default default null, `ledger_id` varchar(20) primary key not null, `ledger_name` varchar(100) default default null, `short_name` var...
true
e5f0ab1703e9c0384dd8357fe7278c5ee6b9a903
SQL
marvinamorim/apexei_test
/ddl/FUNCTION_F_GET_ZPL.sql
UTF-8
867
3.234375
3
[]
no_license
CREATE OR REPLACE EDITIONABLE FUNCTION "WMS"."F_GET_ZPL" (carga IN NUMBER, lote IN NUMBER) return varchar2 is resp varchar2(4000) := ''; q varchar2(1000); line varchar2(1000); logo varchar2(4000); c1 SYS_REFCURSOR; dthora varchar2(500); begin logo := ''; dthora := '^FS^FO580,329^AD^FC%,{,#^FD%...
true
6897eec36ea6861b4d6f4d0a8efb16f9900390e3
SQL
Zhangzitong161031/multithreading_crawlers
/ibaotu/initialize.sql
UTF-8
648
2.953125
3
[]
no_license
CREATE TABLE if not exists `ibaotu_failed_article_url`( `id` int(11) NOT NULL AUTO_INCREMENT, `url` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `url` (`url`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE if not exists `ibaotu_failed_image_url` ( `id` int(11) NOT NULL AUTO_INCREMENT, `url`...
true
8455e5083403191fb9a358072384c25d3110fe06
SQL
sahebul/online-forum
/MySql.sql
UTF-8
1,387
3.34375
3
[]
no_license
CREATE DATABASE online_forum CREATE TABLE IF NOT EXISTS `tbl_users` ( `user_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL, `email` varchar(50) NOT NULL, `password` varchar(255) NOT NULL, `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `modified_date` datetime DEFA...
true
e044895c225106a9618e17bc413eeb9956c509b4
SQL
maziesmith/attendance-management-system-13
/Attendance_management_system/database.sql
UTF-8
6,506
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.11.6 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 30, 2018 at 06:07 PM -- Server version: 5.0.51 -- PHP Version: 5.2.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `project2` -- CREATE DATABASE `project2` DEFAULT CHARACTER SET la...
true
fae30566e5778e4cf57469178b21d1c5f52779d7
SQL
barooood/rest
/Lab 10 - Spring Security/WebContent/WEB-INF/script.sql
UTF-8
787
3
3
[]
no_license
create table persistent_logins (username varchar(64) not null,series varchar(64), token varchar(64) not null,last_used timestamp not null, primary key(series)) create table users(username varchar_ignorecase(50) not null,password varchar_ignorecase(50) not null,enabled boolean not null, primary key(username)) create t...
true
6b38f85e2c2f525c6b0505b9840c51a8df205733
SQL
LeedDungLe/timeTableGeneration
/project.sql
UTF-8
4,411
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th1 30, 2021 lúc 12:18 PM -- Phiên bản máy phục vụ: 10.4.17-MariaDB -- Phiên bản PHP: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
d1a3afe479ee076c9f874ae5f7afd5515fee5f17
SQL
richardBennett/RaccoonJail
/RaccoonJail/Database/Tables/Info_HungerLevel.sql
UTF-8
172
2.84375
3
[]
no_license
CREATE TABLE [Info].[HungerLevel] ( [Id] INT NOT NULL, [Description] NVARCHAR(100) NOT NULL, CONSTRAINT [PK_Info_HungerLevel] PRIMARY KEY CLUSTERED ([Id] ASC), )
true
4293a341151959e578b8e80af6ce7eea3061865c
SQL
ssriha0/sl-b2b-platform
/MarketBackend/changelogs/Iteration26_WFM/SUPPLIER/wfm_updates.sql
UTF-8
1,926
3.0625
3
[]
no_license
-- -- add/update substates -- insert into lu_so_substatus values(56, 'No Provider', 56, '2009-01-28 13:00:00', '2009-01-28 13:00:00', 'jong'); insert into lu_so_substatus values(57, 'Time Window Expired � Arrival', 57, '2009-01-28 13:00:00', '2009-01-28 13:00:00', 'jong'); insert into lu_so_substatus values(58, 'T...
true
a70fd61ed4d008c9a351ed9bd1e8c23f231de9df
SQL
snaseri/dota2inhouse
/install.sql
UTF-8
13,748
4.09375
4
[]
no_license
CREATE DATABASE IF NOT EXISTS SkillsDB; USE SkillsDB; /* A <<User>> which e.g JohnDoe */ CREATE TABLE IF NOT EXISTS Players ( id INT PRIMARY KEY AUTO_INCREMENT , name VARCHAR(50) NOT NULL ); CREATE TABLE IF NOT EXISTS Matches ( id INT PRIMARY KEY AUTO_INCREMENT , match_mode VARCHAR(50) NOT NULL,...
true
0a8b7b56c0d1287705a35fbeeb0d6005b7ef2897
SQL
sprokushev/Delphi
/MASTER/_DATABASE/Tables/REPL_DSN_TYPES.sql
WINDOWS-1251
717
3.015625
3
[]
no_license
-- -- REPL_DSN_TYPES (Table) -- CREATE TABLE MASTER.REPL_DSN_TYPES ( ID VARCHAR2(15 BYTE) NOT NULL, NAME VARCHAR2(30 BYTE), DESCRIPT VARCHAR2(200 BYTE), CHECK_FILE NUMBER(1) DEFAULT 0 ) TABLESPACE USERS2 NOCOMPRESS ; COMMENT ON TABLE MASTER.REPL_DSN...
true
228ea67ca571f6f13227a359bf3dffc6230134a4
SQL
afonsojramos/feup-bdad
/Queries/int8.sql
UTF-8
224
3.546875
4
[]
no_license
.mode columns .headers on .nullvalue NULL -- Networks com maior rating SELECT Show.network AS Name, AVG(rating) AS AverageRating FROM Show WHERE Show.network = Show.network GROUP BY Show.network ORDER BY AverageRating DESC;
true
865488509f5a861249e70a2756f376d6707eae2a
SQL
maheshsabnis/blazejan2021
/Queries.sql
UTF-8
3,027
4.0625
4
[]
no_license
Use Company /* Create a new Table*/ Create Table Department ( DeptNo int Primary Key, DeptName varchar(200) not null, Location varchar(200) not null ) /*Add Column*/ Alter table Department Add Column Capacity int not null Insert into Department Values(10, 'IT', 'Pune',300) Insert into Department Values(20, 'H...
true
64ec114c7dcc37548bed3f81beb5d68e1e0d9045
SQL
zelihami/SQL-cevaplar--
/ödev 4.sql
UTF-8
298
3.28125
3
[]
no_license
/*ÖDEV 4*/ SELECT DISTINCT replacement_cost from film SELECT count(DISTINCT replacement_cost) from film SELECT count(*) from film where title ILIKE 'T%' and rating='G' SELECT country(country) from country where country LIKE '_____' SELECT count(*) from city where city ILIKE 'r%'
true
c8856466db2ddafaa2e09aa0878986cfed4725c8
SQL
akshitmeghawat/2015hackathon
/sqlFile/hackathon.sql
UTF-8
7,862
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 09, 2015 at 05:25 AM -- Server version: 5.6.21 -- PHP Version: 5.5.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
64ee7cd811ae5ffaca311cbb90a270ebe950e9de
SQL
jason-bourne-512/pl_sql
/oracle9i_pl_sql_programming/ch4/ch4_cursor_var.sql
UTF-8
1,179
3.625
4
[]
no_license
/* A cursor variable is a pointer to a work area where a query can be processed. An important benefit of cursor variables is being able to pass the result sets of queries more efficiently. This method passes the pointer, rather than all the data, to the cursor. The processing is handled like an explicit curso...
true
de1479e0ffe7b3c1002ff767a33419d649cde9ce
SQL
RonaldTheodoro/fatec-app
/script.sql
UTF-8
668
2.734375
3
[]
no_license
CREATE TABLE client ( id_client INT NOT NULL PRIMARY KEY, name_client VARCHAR(100) NOT NULL, address_client VARCHAR(100) NOT NULL, phone_client VARCHAR(100) NOT NULL ); CREATE TABLE part ( id_part INT NOT NULL PRIMARY KEY, name_part VARCHAR(100) NOT NULL, model_part VARCHAR(100) NOT NULL, ...
true
bdca7b79e5ef95ea38cebdf6af476cfe8eab1f51
SQL
jiangwayne/SuperCounter
/db/super_counter20160703.sql
UTF-8
31,033
3.234375
3
[]
no_license
/* SQLyog v10.2 MySQL - 5.7.12-log : Database - super_counter ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO...
true
e628f2f97289e97e1ee629cf83da19135ac33959
SQL
stefan-er/SQL
/6.SQL-Advanced/Homework/SQLQuery17.sql
UTF-8
144
2.9375
3
[]
no_license
CREATE TABLE Groups ( Id int IDENTITY, Name nvarchar(50) NOT NULL, CONSTRAINT PK_Groups PRIMARY KEY(Id), CONSTRAINT UC_Groups UNIQUE(Name) )
true
3b892deb91158a7123fef59a3de2d0711613423d
SQL
tomaskris/pdb_sem_policia
/výstupy/indexy.sql
UTF-8
430
2.609375
3
[]
no_license
create index os_pripadu_prip_typ on s_osoba_pripadu(id_pripadu, typ_osoby); create index os_hladan_prip_datdo on s_hladana_osoba(id_pripadu, dat_do); create index os_obzal_id_prip on s_obzalovana_osoba(id_pripadu); create index os_obzal_rod_prip on s_obzalovana_osoba(rod_cislo, id_pripadu); create index os_odsud_...
true
8e5b09998aff7b5a3fd9eb83a33355eb8179e57b
SQL
Kandarp143/molecularDB
/doc/moleculedb.sql
UTF-8
271,215
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 09, 2017 at 05:30 PM -- Server version: 5.7.18-0ubuntu0.16.04.1 -- PHP Version: 7.0.18-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
true
cd18eec6aeacd454eb121c2f7b6baed595c8a9b1
SQL
bytepulay/MTD-APk
/mtd server/sale_invoices.sql
UTF-8
5,475
2.75
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Aug 09, 2019 at 03:18 AM -- Server version: 10.2.25-MariaDB -- PHP Version: 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
true
4038c307165f1d835d6396bb9e746f702e95305a
SQL
Danilosimoes/learn_mysql
/studing/having.sql
UTF-8
454
3.953125
4
[]
no_license
SELECT b.desnome, SUM(a.vlpedido) AS total, CONVERT( AVG(a.vlpedido) , DEC (10 , 2 )) AS media, CONVERT( MIN(a.vlpedido) , DEC (10 , 2 )) AS menor, CONVERT( MAX(a.vlpedido) , DEC (10 , 2 )) AS maior, COUNT(*) AS 'Total de pedidos' FROM tb_pedidos a INNER JOIN tb_pessoas b USING ...
true
b286482e3c03d97b17a690a589aaa86a72c0f501
SQL
RohanKhedekar21/Restuarent-Management-Web-Site
/thelittlejoint/database/thelittlejoint_order_place.sql
UTF-8
3,174
2.8125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `thelittlejoint` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `thelittlejoint`; -- MySQL dump 10.13 Distrib 5.6.11, for Win32 (x86) -- -- Host: 127.0.0.1 Database: thelittlejoint -- ------------------------------------------------------ -- Server version 5.6.13 /*!40101 SET @OLD_CHARA...
true
ce9a61329dec6f632e39f46a9d02421848e5a939
SQL
python716/blog
/blog.sql
UTF-8
1,735
3.359375
3
[]
no_license
# 创建后台管理员表 create table bg_admin( admin_id tinyint unsigned primary key auto_increment, admin_name varchar(20) not null unique key, admin_pass char(32) not null, login_ip varchar(30) not null, login_nums int unsigned not null default 0, login_time int unsigned not null ); -- 插入体验数据 insert into bg_adm...
true
3897e1cdc53d3f0ab2030e2cc3435578b7c5134c
SQL
SolidDarrama/SQL
/SQL05Test.sql
UTF-8
1,349
3.53125
4
[]
no_license
--Jose Guadarrama --10.7.2014 --1 Create Table Guadarrama.CreditLoan (CustID Integer Not Null Primary Key, LoanID Integer Not Null, LoanDate Date Not Null, AppAge Integer Default 18, Constraint InvLoanIDUK Unique (LoanID), Constraint InvAppAge Check (AppAge > 17)); --2 Create Table Guadarrama...
true
290ca95c6807ddc2beab03445383ffa20681036b
SQL
Exclr8/CloudCore
/DataLayer/DB/CloudCoreDB/cloudcore/Views/vwCampaignUserStats.sql
UTF-8
256
2.859375
3
[]
no_license
create VIEW [cloudcore].[vwCampaignUserStats] AS select COUNT(InstanceId) Completed, CONVERT(date, Finished) Finished, UserId, CampaignID from [cloudcore].CampaignArchive where Status = 'Completed' group by CONVERT(date,Finished), CampaignID, UserId
true
723fde6cdf472fd3021a511b1f6d0fcb315ae61a
SQL
Deturium/MiniSQL
/test/test.sql
UTF-8
528
3.53125
4
[]
no_license
create table student( sid char(20), name char(20), age int, score int unique, primary key(sid) ); create index score on student(score); select * from student; insert into student values("3150102418", "Zhang Zhuohao", 20, 95); insert into student values("3150103086", "Liang yangfan", 20, 100); insert into studen...
true
7474688845a3de48dbb5225963372aa6d39587b9
SQL
vcappugi/ADESVENCA
/migration/351a-352a/postgresql/226_FinancialReportSourceCombination.sql
ISO-8859-1
145,406
3.3125
3
[]
no_license
-- Jul 9, 2008 3:33:39 PM COT -- Jul 9, 2008 3:33:39 PM COT -- Financial Report Source with Type Combination -- recreate index to include the two new columns drop index FACT_ACCT_BALANCE_AKEY; CREATE UNIQUE INDEX FACT_ACCT_BALANCE_AKEY ON FACT_ACCT_BALANCE (AD_CLIENT_ID, AD_ORG_ID, C_ACCTSCHEMA_ID, DATEACCT...
true
fe7f4ec11fb9afbe3d07057ef6dbdaf2639a93dd
SQL
SpartSpart/secret_keeper
/Secret-Keeper_create.sql
UTF-8
1,258
3.375
3
[]
no_license
drop database SecretsDB; create database SecretsDB; Begin create table Users ( id decimal IDENTITY(1,1) NOT NULL, user_login varchar (30) NOT NULL, user_password varchar(30) NOT NULL, user_email varchar(30) NOT NULL, CONSTRAINT PK_ID_Users PRIMARY KEY (id) ); create table Secrets ( id decimal IDENTIT...
true
f269c4bc878416a4b0466496763f3e4ca623c45b
SQL
hordure/WPF
/ProjectMaster2016/ConnectionTables.sql
WINDOWS-1250
1,368
2.609375
3
[]
no_license
insert into project_hours (project_pid, employee_eid, hourdescription, hourdate, hourtimestamp, workhour) values (1, 2 , 'var a skra', '2015-05-18', '2014-06-18 10:34:09', 3), (1, 2 , 'var a skra', '2015-05-19', '2014-06-18 10:34:09', 8), (1, 2 , 'var a skra', '2015-05-20', '2014-06-18 10:34:09', 3), (2, 3 , 'M...
true
2a3dcfd6615938e31986660874e2daebf12a20f4
SQL
gurpreet19/ec198392_wht
/Database/configuration/03_02_headless_tool/Delta_WST/TargetPackageDefinitions/UE_WELL_DECLINE_BODY.sql
UTF-8
1,231
2.625
3
[]
no_license
CREATE OR REPLACE PACKAGE BODY Ue_Well_Decline is /**************************************************************** ** Package : Ue_Well_Decline, body part ** ** Purpose : Business logic for well decline for the PT module. ** ** Documentation : www.energy-components.com ** ** Created : 05.04.2012 Lim...
true
97d857808d234284f99668b4ca1d05c8cde8035b
SQL
souravrrp/AKG-SCIL-SQL
/Order To Cash/Distribution Cost/Distribution_DO_MOVE.sql
UTF-8
1,804
2.953125
3
[]
no_license
select DOH.org_id,DOH.operating_unit,DODL.order_number,DOH.DO_NUMBER,MOH.MOV_ORDER_NO, DODL.ITEM_DESCRIPTION,sum(dodl.line_quantity)Line_Quantity, MOH.VEHICLE_NO,MOH.TRANSPORT_MODE,MOH.VEHICLE_TYPE, MOH.TRANSPORTER_NAME,MOH.WAREHOUSE_ORG_CODE, MOH.FINAL_DESTINATION, line_num...
true
129489c8281d99b0079e3346f9df87da44688391
SQL
slcnyagmurnew/flask-docker-tdd
/db/init.sql
UTF-8
242
2.84375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS tddflask; use tddflask; CREATE TABLE favorite_colors ( name VARCHAR(20) PRIMARY KEY, color VARCHAR(10) ); INSERT INTO favorite_colors (name, color) VALUES ('Lancelot', 'blue'), ('Galahad', 'yellow');
true
3ec3eda500a7cba050936e2785ec18093ebada07
SQL
Diegoni/web
/archivos/db/web.sql
UTF-8
5,089
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 24-05-2016 a las 17:39:55 -- Versión del servidor: 10.1.9-MariaDB -- Versión de PHP: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
true
8ff9255be6eced0c24cc134f2e0759c83dd99046
SQL
courtraja/Hotel-management-system
/VIEWS/menu.sql
UTF-8
491
3.328125
3
[]
no_license
DELIMITER $$ ALTER ALGORITHM=UNDEFINED DEFINER=`dev_user`@`%` SQL SECURITY DEFINER VIEW `menu` AS ( SELECT `seed_food`.`foo_id` AS `foo_id`, `seed_food`.`food_name` AS `food_name`, `seed_food`.`food_price` AS `food_price`, `seed_session`.`sessions` AS `sessions` FROM ((`seed_food` JOIN `fo...
true
36aa0c04b5641367d06742ebbd41a4440e606d3f
SQL
sergiocosus/guvcakes
/dumpfilename.sql
UTF-8
12,079
3.15625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.27, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: guvcakes -- ------------------------------------------------------ -- Server version 5.6.27-0ubuntu1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTE...
true
1ccf47829a48a3283777d11ac1a2d00fee3fba9f
SQL
shubhamkokane/Outcome-Based-Education
/college_project.sql
UTF-8
41,168
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 25, 2020 at 03:16 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
524e5a7365523a20abcce55e2e78740e4742b479
SQL
suvaw/Database
/PLSQL/03Cursors/12.sql
UTF-8
222
3.109375
3
[]
no_license
DECLARE CURSOR emp_cursor IS select employee_id, last_name, salary from employees where department_id = 50 for UPDATE OF salary NOWAIT; BEGIN UPDATE employees SET salary = salary + 10 WHERE department_id =50; END; /
true
f0f7ae4c56865fe2da5647d8a00108a35c1f669c
SQL
MCZbase/DDL
/TRIGGER/TR_AGENTNAME_AIU_FLAT.sql
UTF-8
556
3.328125
3
[ "Apache-2.0" ]
permissive
CREATE OR REPLACE TRIGGER "TR_AGENTNAME_AIU_FLAT" AFTER INSERT OR UPDATE ON agent_name FOR EACH ROW BEGIN IF :NEW.agent_name_type = 'preferred' THEN FOR r IN ( SELECT collection_object_id FROM collector WHERE agent_id = :NEW.agent_id ) LOOP UPDATE flat ...
true
1b9275e9cb94bf1ef7365cc8b2544a4be3406b37
SQL
conapps/Devops-101
/Cloud/aws/archivos/ghost_schema.sql
UTF-8
24,774
3.203125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.43, for linux-glibc2.12 (x86_64) -- -- Host: localhost Database: bitnami_ghost -- ------------------------------------------------------ -- Server version 5.6.43 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
true
971cadc77cb5293df18d8b4745bf459a479e6c03
SQL
milenamiletic18/parfemi
/sminka.sql
UTF-8
3,797
3.28125
3
[]
no_license
/* SQLyog Community v13.1.5 (64 bit) MySQL - 10.4.6-MariaDB : Database - sminka ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@...
true
fb3d7365490b24c18effe01559b1a4368f88aae6
SQL
jieliangang/PET_CARING
/server/ddl/petbreeds.sql
UTF-8
223
2.828125
3
[]
no_license
drop table if exists petbreeds cascade; create table petbreeds ( breedName varchar(100) not null, typeName varchar(100) not null, primary key (breedName), foreign key (typeName) references pettypes );
true
2d5c1c43a005e8eab8e18fc585ee67fa408be44d
SQL
sirrom2005/OldPHPProjectToUpDate
/dh/newletter.sql
UTF-8
877
2.703125
3
[]
no_license
/* SQLyog Enterprise - MySQL GUI v7.02 MySQL - 5.1.30-community-log : Database - dh ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!4010...
true
60637008cce214b61c5c92650fa5584e9d7ff391
SQL
Mikescher/AudioBooksWebPanel
/sql/series.sql
UTF-8
167
2.625
3
[]
no_license
SELECT series.id AS [id], series.title AS [title], series.author_id AS [author_id], series.relative_path AS [relative_path] FROM series ORDER BY series.title
true
3558b44c59c332e8ada044d530a48ed4352556a2
SQL
LDepew/sql-scripts
/show-customers.sql
UTF-8
150
2.984375
3
[]
no_license
-- show customers sales greater than 50,000 /* This is also a comment */ SELECT * from Customers where sales > (select avg(sales) from customer s);
true
7c98716bd5fa79674bcb2a6a6245f62a7f46126f
SQL
khu07c8/gcit-library
/GCIT/SQL_SCRIPTS/return_shell.sql
UTF-8
535
3.09375
3
[]
no_license
DELIMITER $$ CREATE PROCEDURE return_shell(IN book_id INT, IN branch_id INT, IN card_num INT) BEGIN SET @penalty := 0.0; SET @exit_code := 0; SET @msg := ''; CALL return_book(book_id, branch_id, card_num, CURDATE(), @penalty, @exit_code, @msg); IF @exit_code = 1 THEN SELECT @msg AS msg; ...
true
461bc88f68244758efcbec555a217a8508330262
SQL
jeslstep/php-Todo-List
/database.sql
UTF-8
212
2.53125
3
[]
no_license
CREATE DATABASE "php_todo"; CREATE TABLE "items" (     "id" SERIAL PRIMARY KEY,     "name" varchar(255) NOT NULL, "done" BOOLEAN NOT NULL DEFAULT FALSE, "created" DATE NOT NULL DEFAULT CURRENT_DATE );
true
00b19dc75612bfcfb444c8f29415c54de103d535
SQL
gxlioper/ecology
/data/Oracle/sql201507091001.sql
GB18030
7,640
2.921875
3
[]
no_license
delete from HtmlLabelIndex where id=81809 / delete from HtmlLabelInfo where indexid=81809 / INSERT INTO HtmlLabelIndex values(81809,'ֲ') / INSERT INTO HtmlLabelInfo VALUES(81809,'ֲ',7) / INSERT INTO HtmlLabelInfo VALUES(81809,'subcompany code',8) / INSERT INTO HtmlLabelInfo VALUES(81809,'ֲ̖',9) / delete from Html...
true
2cd6dd3f8548455b7a5c71baff76fdb4905c9e9a
SQL
thudsonbu/sql_reference
/Exam2Simulation2.sql
UTF-8
3,285
3.734375
4
[]
no_license
/* This exam uses the Retail database */ /* All tables are available in your account */ /* Question 1 */ /* Create a query that shows employee number and name of those whose salaries would be more than $4000 if he/she receives 5% pay raise. Display old and new salaries in query as well. */ /* Question 2 ...
true
162d0339696e12f3b61aece4ebb236e058b0900a
SQL
ngds/data-quality-tools
/Reports/DataDuplicationChecks.sql
UTF-8
1,199
3.4375
3
[]
no_license
-- Duplicate GUID check with pos as (select p.id,p.title as packageTitle, s.title as sourcetitle, o.guid, o.gathered, p.current, p.state from package_revision p,harvest_object o, harvest_source s where p.id = o.package_id and o.harvest_source_id = s.id and o.current=true and p.current = true and p.stat...
true
e43cf2f7e72d27d59b453a5e78bc338154ff1132
SQL
miquelMariano/prtg-scripts
/oracle/oracle_status.sql
UTF-8
742
3.140625
3
[]
no_license
---DESCRIPTION --- Check Oracle Status ---NOTES --- File Name : oracle_status.sql --- Author : Miquel Mariano - @miquelMariano | https://miquelmariano.github.io --- Version : 1 --- Code : https://github.com/miquelMariano/prtg-scripts/oracle ---USAGE --- Put this script on C:\Program Files (...
true
466cd0e7419e7ee198a4d41a79c0e70cb209e3d0
SQL
conqu1stador/kursa4i
/lev4enko/users_roles.sql
UTF-8
1,201
2.9375
3
[]
no_license
CREATE ROLE manager; GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE public.airports TO manager; GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE public.buyers TO manager; GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE public.companies TO manager; GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE public.planes TO manager; GRANT ...
true
5f773686c142532dff05bd560e1c9fc2e6b1875f
SQL
TemirlanSadykov/homework67
/src/main/resources/db/migration/V1001__add_models.sql
UTF-8
1,678
3.734375
4
[]
no_license
use `store`; CREATE TABLE `store` ( `id` INT auto_increment NOT NULL PRIMARY KEY, `name` varchar(128) NOT NULL, `address` varchar(128) NOT NULL, `image` varchar(128) NOT NULL, `description` varc...
true
c34e49d7ca505719a7df6aeb8e78c4e04dc87bf9
SQL
kuchta/olapwarehouse
/World Development Indicators/QueryFacts.sql
UTF-8
241
3.609375
4
[]
no_license
SELECT ElementId1 AS Country, ElementId2 AS Indicator, ElementId3 AS Year FROM Facts f LEFT JOIN Cubes c ON f.CubeId = c.Id LEFT JOIN Databases d ON c.DatabaseId = d.Id WHERE d.Name = 'WDI' AND c.Name = 'WDI'
true
cfaab9fd5655c625e84c18cd83cf33c1ddf585a3
SQL
yyz940922/flink-sql-etl
/etl-job/src/main/resources/job-sql-1.11/kafka2hbase/KafkaJoinHbaseJoinMysql2Hbase.sql
UTF-8
3,666
4.125
4
[]
no_license
CREATE TABLE orders ( order_id STRING, item STRING, currency STRING, amount INT, order_time TIMESTAMP(3), proc_time as PROCTIME(), amount_kg as amount * 1000, WATERMARK FOR order_time AS order_time ) WITH ( 'connector' = 'kafka', 'topic' = 'flink_orders3', 'properties.zookeeper.connect' = 'loca...
true
c38fd7a358b5be7afffaf17613e78af49337ce22
SQL
Maribmdj/ControldeEventosBD
/Scripts/Consultas/GetInteresActividad.sql
UTF-8
647
3.140625
3
[]
no_license
create or replace PROCEDURE getInteresActividad(pnIdActividad NUMBER) AS CURSOR interes_cursor IS Select p.nombre nombre_Persona, p.apellido1 Apellido, p.num_identificacion, a.nombre nombre_Actividad, ac.id_actxpersona From persona p, actividad a, actxpersona ac Where p.id_persona = ac.i...
true
c4bb2e1613eda1e485be14539c985183990efdc7
SQL
opencdrrate/OPENCDR
/Tables/OPENCDR_CREATE_TABLE_ConcurrentCallsDirectionCarrier.sql
UTF-8
365
3.03125
3
[]
no_license
DROP TABLE concurrentcallsdirectioncarrier; CREATE TABLE concurrentcallsdirectioncarrier( CallDateTime timestamp without time zone NOT NULL, Direction char(1) NOT NULL, CarrierID varchar(100) NOT NULL, ConcurrentCalls integer NOT NULL, RowID serial4 UNIQUE NOT NULL, PRIMA...
true
19e8d604407100663ae0d602d50f90538341ad53
SQL
bert0ld/new_r
/SQL/sql.sql
UTF-8
1,682
4.15625
4
[]
no_license
create database worker_s; use worker_s; create table workers ( id int(10) not null auto_increment, Name varchar(30) not null, Surname varchar(30) not null, id_job int(10) NOT NULL, Wage int(20) not null, PRIMARY KEY (id)); create table job ( id_job int(10) not null auto_increment, job varchar(30) not null, primary k...
true
1cb5b6eff8935827b9c089ccfbe16d9360169dd9
SQL
marwensaid/spring-core-training
/db/db_ticket/01_create_db_ticket.sql
UTF-8
7,534
3.75
4
[ "Apache-2.0" ]
permissive
CREATE SEQUENCE public.niveau_bug_id_seq; CREATE TABLE public.niveau_bug ( id INTEGER NOT NULL DEFAULT nextval('public.niveau_bug_id_seq'), ordre INTEGER NOT NULL, libelle VARCHAR(100) NOT NULL, CONSTRAINT niveau_bug_pk PRIMARY KEY (id) ); ALTER SEQUEN...
true
c47e3c09b5a63707944d775d393d613d49df77a5
SQL
larissaSousa1998/segunda-sprint
/Documentacao/Banco de dados/bdFlow.sql
UTF-8
1,379
3.296875
3
[]
no_license
create database bdFlow; use bdFlow; create table tbLinha ( codLinha int primary key auto_increment, descricaoLinha varchar(50), extensaoLinha varchar(10), zonaLinha varchar(20)); create table tbUsuario( codUsuario int primary key auto_increment, nomeUsuario varchar(40), emailUsuario varchar(30), senhaUsuario varchar(...
true
e76652a50fd29dcb5d4fbb71d659d9cb70cc3fa0
SQL
bakasajoshua/act
/dbv/data/revisions/01/01.sql
UTF-8
450
2.65625
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ALTER TABLE `sub_counties` ADD UNIQUE ( `sub_county_name` ); ALTER TABLE `facilities` ADD UNIQUE ( `MFL_Code` ); ALTER TABLE `dhis_calc_art` ADD `total_starting` INT NOT NULL AFTER `total_adults_starting` , ADD `cum_children` INT NOT NULL AFTER `total_starting` , ADD `cum_adults` INT NOT NULL AFTER `cum_ch...
true
28bf33ae279740bd6d84be1ef924b325c4aa78ed
SQL
ruchiagrawal663/ruchi-agrawal
/sql_query/menu_items.sql
UTF-8
634
2.890625
3
[]
no_license
USE ApexRestaurantDB; CREATE TABLE Menu_items( Menu_Item_Id INT PRIMARY KEY IDENTITY(1,1), MenuId INT , Menu_Item_Name NVARCHAR(50), Other_Details NVARCHAR(100), CreatedBy NVARCHAR(200), CreatedOn DATETIME, UpdatedBy NVARCHAR(200), UpdatedOn DATETIME ); INSERT INTO Menu_items (Menu...
true
347366e93cddc724904db32d74bed7d5ec6b08c4
SQL
dking1342/prisma-apollo-posts
/server/prisma/migrations/20210822215918_change_naming_convention_with_map/migration.sql
UTF-8
741
3.984375
4
[]
no_license
/* Warnings: - You are about to drop the `post` table. If the table is not empty, all the data it contains will be lost. */ -- DropForeignKey ALTER TABLE "post" DROP CONSTRAINT "post_user_id_fkey"; -- DropTable DROP TABLE "post"; -- CreateTable CREATE TABLE "posts" ( "id" SERIAL NOT NULL, "uuid" TEXT NO...
true
6fcd4b604a124069515d654ef24f221091c72874
SQL
jgarzonext/packages
/function/F_CONTROL_SIP.sql
ISO-8859-1
2,133
2.921875
3
[]
no_license
-------------------------------------------------------- -- DDL for Function F_CONTROL_SIP -------------------------------------------------------- CREATE OR REPLACE EDITIONABLE FUNCTION "AXIS"."F_CONTROL_SIP" (psip NUMBER) RETURN NUMBER IS /**************************************************************************...
true
967891639eb5bc11aa5c2719a7790f4c960c8a53
SQL
miguel71011/parcia_finalMiguelFajardo
/DATA_BASE.sql
UTF-8
6,436
3.71875
4
[]
no_license
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -- Volcando estructura de base d...
true
87dc8155ff99f155a8de262230ac4b3eadc09237
SQL
hbtj1216/seaman
/seaman-web/src/main/resources/sql/init.sql
UTF-8
13,907
3.125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : 127.0.0.1 pg Source Server Type : PostgreSQL Source Server Version : 90609 Source Host : 127.0.0.1:5432 Source Catalog : seaman Source Schema : public Target Server Type : PostgreSQL Target Server Version : 90609 File En...
true
4caceef2391858bb0aaddd13d5469b6a6e88ce6d
SQL
jogs78/eventos
/extras/ittg_eventos.sql
UTF-8
14,784
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 22-10-2018 a las 20:07:23 -- Versión del servidor: 5.7.22-0ubuntu18.04.1 -- Versión de PHP: 7.1.16-1+ubuntu18.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START T...
true
48a288544bf959ca015f5b5c5d456714350e7d15
SQL
PNNL-Comp-Mass-Spec/DBSchema_PgSQL_DMS
/dms/v_organism_report.sql
UTF-8
648
2.65625
3
[ "Apache-2.0" ]
permissive
-- -- Name: v_organism_report; Type: VIEW; Schema: public; Owner: d3l243 -- CREATE VIEW public.v_organism_report AS SELECT t_organisms.organism AS name, t_organisms.organism_db_path AS org_db_file_storage_path_client, ''::text AS org_db_file_storage_path_server, t_organisms.organism_db_name AS def...
true
cca8da045f33503dceffc507946d14a5b1764f2f
SQL
savinovvu/Freemarker_example
/src/main/resources/db/scriptsSQL/personal/initDB_hsql.sql
UTF-8
264
2.59375
3
[]
no_license
CREATE SEQUENCE IF NOT EXISTS GLOBAL_SEQ AS INTEGER START WITH 1000; CREATE TABLE IF NOT EXISTS persons ( id INTEGER GENERATED BY DEFAULT AS SEQUENCE GLOBAL_SEQ PRIMARY KEY, login VARCHAR(255), password VARCHAR (255), birthdate DATE );
true
4ced6b10c8db61bdeb655ed4289759728e7faf9c
SQL
skant1681/iitg-portal
/pp.sql
UTF-8
9,164
3.609375
4
[]
no_license
DROP DATABASE placement_portal; CREATE DATABASE placement_portal; USE placement_portal; CREATE TABLE students( roll_num INT NOT NULL PRIMARY KEY, first_name VARCHAR(50) NOT NULL, last_name VARCHAR(50), std_course VARCHAR(50) NOT NULL, std_branch VAR...
true
f570710424c4de01c9e86da731a7752e3dcf8cb4
SQL
melnikovyg/test-currency
/src/main/resources/db/populateDB.sql
UTF-8
536
3.109375
3
[]
no_license
DELETE FROM date_time; DELETE FROM currency; DELETE FROM roles; DELETE FROM users; ALTER SEQUENCE global_seq RESTART WITH 1000; INSERT INTO USERS (LOGIN, FULL_NAME, PASSWORD, ENABLED) VALUES ('admin', 'Administrator', 'adminp', TRUE), ('user','User', 'userp', TRUE); INSERT INTO ROLES (USER_ID, ROLE) VALUES (100...
true
e675866b7dc6c91721c67dbff8e7c976068ebb4e
SQL
hqottsz/MXI
/assetmanagement-database/src/solution/plsql/refterm/10ref_eng_unit.sql
UTF-8
544
2.65625
3
[]
no_license
/******************************************** ** INSERT SCRIPT FOR TABLE "REF_ENG_UNIT" ** 10-Level ** DATE: 21-JUL-2004 TIME: 16:56:27 *********************************************/ insert into ref_eng_unit(eng_unit_db_id, eng_unit_cd, ref_unit_db_id, ref_unit_cd, bitmap_db_id, bitmap_tag, desc_sdesc, desc_ldesc, ref_...
true
d6686bfd23c068285dd7f4810e3f63b15613de61
SQL
hackishmax321/student_management_system-jsp-
/Database and Jar files/Database Tables/private_message (1).sql
UTF-8
1,884
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 17, 2019 at 02:40 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 5.6.37 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
5614041fece51faf14fbbcf310d139f3bd2d7569
SQL
dsurraobhcc/CSC-236-02
/classes/class23/savepoints.sql
UTF-8
675
3.046875
3
[]
no_license
drop schema if exists savepoint_tests; create schema savepoint_tests; use savepoint_tests; create table pharmacy ( id int primary key auto_increment, pharmacy_name varchar(25) ); insert into pharmacy (pharmacy_name) values ('CVS'); insert into pharmacy (pharmacy_name) values ('Walgreens'); select * from pharmac...
true
4330abf52f064c2e84db1bc2b013108a768d6fa3
SQL
Wang-Yann/LeetCodeMe
/MySQL/0577_employee-bonus.sql
UTF-8
1,333
3.6875
4
[]
no_license
-- @Author : Rock Wayne -- @Created : 2020-07-28 22:03:24 -- @Last Modified : 2020-07-28 22:03:24 -- -- #选出所有 bonus < 1000 的员工的 name 及其 bonus。 -- # -- # Employee 表单 -- # -- # +-------+--------+-----------+--------+ -- #| empId | name | supervisor| salary | -- #+-------+--------+-----------+--------+ -- #...
true
6257ebcc5082123ec7761db45ab6054f3e60e333
SQL
ivan4otopa/SoftUni
/Databases/Exams/DatabasesSampleExamAds/10.NotPublisheAdsFromTheFirstMonth.sql
UTF-8
235
4
4
[]
no_license
SELECT a.Id, a.Title, a.Date, ast.Status FROM Ads a JOIN AdStatuses ast ON a.StatusId = ast.Id WHERE ast.Status <> 'Published' AND YEAR(a.Date) = (SELECT YEAR(MIN(Date)) FROM Ads) AND MONTH(a.Date) = (SELECT MONTH(MIN(Date)) FROM Ads)
true
a2d9bfe81a7991d0b900024a744ef9171a5e9337
SQL
Maozshechtman/DB_Zoo_Project
/quries/DB PROJECT/DB QUERIES/AnimalsWhoTakesMedices.sql
UTF-8
141
3.15625
3
[]
no_license
select animalid,animal.nickname,animalname from animal natural join medicalfile where medicalfileid in (select medicalfileid from usein)
true