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
c90fdc08b64ae954ff771c2f39a50b0b8327aab3
SQL
Jiadong18/usermanagement
/db.sql
UTF-8
2,710
3.421875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Nov 06, 2019 at 03:00 PM -- Server version: 5.7.25 -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `user_management_db` -- -- -----------------...
true
005110ef0af4343d8ae164e7cb3e49f14b295b21
SQL
ststeiger/DbTransform
/DbTransform/SQL/Create_MS_TestTable.sql
UTF-8
853
2.609375
3
[]
no_license
 CREATE TABLE __types( myuid uniqueidentifier NOT NULL, mybit bit NULL, mytinyint tinyint NULL, mysmallint smallint NULL, myinteger int NULL, mybiginteger bigint NULL, myreal real NULL, myfloat float NULL, mydecimal decimal(18, 0) NULL, mynumeric numeric(18, 0) NULL, mymoney money NULL, mychar char(10) NUL...
true
32440120804dc0f38920edc4c3b5c81c64f949ce
SQL
PNNL-Comp-Mass-Spec/DBSchema_PgSQL_DMS
/dms/ont/ont.t_ontology_version_history.sql
UTF-8
1,327
3.34375
3
[ "Apache-2.0" ]
permissive
-- -- Name: t_ontology_version_history; Type: TABLE; Schema: ont; Owner: d3l243 -- CREATE TABLE ont.t_ontology_version_history ( entry_id integer NOT NULL, ontology public.citext NOT NULL, version public.citext, release_date timestamp without time zone, entered_in_dms timestamp without tim...
true
f970511ea4065066b0bc1e13c89586b30ddc7274
SQL
kPlusPlus/DatabaseCompare
/DatabaseCompare/bin/Debug/Triggers dokshema_utrigA.sql
UTF-8
4,345
3.71875
4
[]
no_license
create trigger dokshema_utrig on dbo.dokshema for update as if exists (select * from inserted inner join dbo.konto on inserted.kontoid = dbo.konto.id where (konto.analitikavrsta <> inserted.analitikavrsta and inserted.analitikavrsta <> 90 and inserted.analitikavrsta <> 0 and inserted.analitikavrsta <> 1 ...
true
2172c31d1cf7a739541f19a39125f326f3ceea62
SQL
jeehobdata/CEOs_Culture_project
/Database/ceo_culture_staging.sql
UTF-8
18,199
3.21875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `ceo_culture_stg`/*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `ceo_culture_stg`; -- Create 2019 tables ------------------------------------------------------------------------------- -- Create ceo_bio_2019 table Drop table ...
true
9abbe8c97d372a4c848b228382eeac94ed1fabc2
SQL
paulop/loja-virtual-cakephp
/app/Config/Schema/loja-virtual.sql
UTF-8
2,578
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tempo de Geração: -- Versão do Servidor: 5.5.27 -- Versão do PHP: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @...
true
3f11bd74c1a3bb814069e6030e4ba05d35aa003a
SQL
phassans/banana
/sql/setup.sql
UTF-8
6,905
3.890625
4
[]
no_license
ALTER DATABASE banana SET timezone TO 'US/Pacific'; CREATE TYPE days_of_month AS ENUM ( 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday' ); CREATE TYPE dietary_restrictions AS ENUM ( 'gluten free', 'vegan', 'vegetarian', 'spicy' ); CREATE TABLE IF NOT EXISTS business ...
true
3f73d03ba8f2645eb2286453eb74f48db8ba0ec2
SQL
pleak-tools/pleak-sql-constraint-propagation
/src/psql/cat_group_query.sql
UTF-8
153
2.859375
3
[]
no_license
SELECT cat.color AS catcolor, cat.gender AS catgender, COUNT(*) AS cnt FROM cat WHERE cat.available GROUP BY cat.color, cat.gender ;
true
09d6a03df9738e7c89b6451e4ff9e3a550ab4e38
SQL
Bonseong/KOPO_TIL
/DB/PLSQL/Day03 210705/5_CURSOR_for_update.SQL
UHC
910
3.40625
3
[ "MIT" ]
permissive
REM 5_CURSOR_forupdate.SQL SET TIMING ON SELECT TO_CHAR(SYSDATE,'HH24:MI:SS') AS START_TIME FROM DUAL; DECLARE CURSOR CUR_EMP(P_DEPTNO IN NUMBER) IS SELECT EMPNO,ENAME,JOB,SAL,COMM FROM EMP WHERE DEPTNO = P_DEPTNO FOR UPDATE; -- FOR UPDATE WAIT 10; -- FOR UPDATE NOWAIT; -- FOR UPDATE OF...
true
8719b7fde7c26b040c2334c3d8a8f4583fe3b5c5
SQL
ministryofjustice/opg-refunds
/caseworker-api/docker/seeding/finance/init.sql
UTF-8
253
3.03125
3
[ "MIT" ]
permissive
\c cases CREATE TABLE IF NOT EXISTS finance ( case_number bigint NOT NULL, sequence_number smallint NOT NULL, amount smallint NOT NULL, received date NOT NULL, CONSTRAINT finance_pkey PRIMARY KEY (case_number, sequence_number) );
true
01e94c75c311dbdd910ce9ff895f0ba03b328637
SQL
TIBHannover/orkg-backend
/rest-api-server/src/main/resources/db/changelog/changes/0003-create-organization-table.sql
UTF-8
351
3.28125
3
[ "MIT" ]
permissive
--liquibase formatted sql --changeset mharis:3 dbms:postgresql create table organizations ( id uuid not null constraint organization_pk primary key, name varchar not null, created_by uuid not null constraint organizations_users_id_fk references users ); create unique index organizations_id_...
true
0de71bb875388dc5ee44ab4b9f49afa06b76a888
SQL
ldgoooo/ip-proxy
/docs/db.sql
UTF-8
860
3.21875
3
[]
no_license
# -*- coding: utf-8 -*- #免费ip CREATE TABLE IF NOT EXISTS `free_ip` ( `id` int(8) NOT NULL AUTO_INCREMENT, `ip` varchar(25) NOT NULL COMMENT 'ip', `port` int(4) NOT NULL COMMENT '端口', `area` varchar(20) default '' COMMENT '区域', `anonymity` int(5) ...
true
0a53926a765313c3916d083dd4fe410d7d3e6fd5
SQL
yashpathack/Learn_SQL
/Aniruddha/28_01_18/I.sql
UTF-8
1,365
4.59375
5
[]
no_license
/* The "JOIN" clause is used to combine rows from two or more tables, based on a related column between them. */ SELECT * FROM Orders INNER JOIN Customers ON Orders.CustomerID=Customers.CustomerID; /* The syntax is as follows:- SELECT left_table.column FROM left_table INNER JOIN right_t...
true
757eb191bf3500aa33f87ea7c7a704ba0475e822
SQL
dkirol/SQL-PL-SQL
/PLSQL/Cursors/cursor_with_loop_for.sql
UTF-8
427
3.0625
3
[]
no_license
--Kursor z użyciem petli FOR, dzieki czemu nie musismy otwierac kursora --Przykład: SET SERVEROUTPUT ON DECLARE CURSOR name_cursor IS SELECT id_product, name, price FROM products; BEGIN FOR zmienna_petli IN name_cursor LOOP DBMS_OUTPUT.PUT_LINE ( 'product_id = ' || zmienna_petli.product_id || ', ...
true
7ff6ab67e9fe52d74350dd75a831d45012d20255
SQL
junajan/sandy
/db/updates/equity_history_real.sql
UTF-8
1,041
3
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.0 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 10, 2017 at 08:59 PM -- Server version: 5.7.11 -- PHP Version: 7.1.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `sandy` -- -- -------------------------------------...
true
77e83f1c054d465c768de7cd5918d9f9797d6544
SQL
jscoupreman/LabPHP
/SecuredTodoListWithREST_OAuth2/SQL/rest_app.sql
UTF-8
1,754
3.375
3
[]
no_license
/* SQLyog Community v12.2.2 (64 bit) MySQL - 5.7.11 : Database - rest_app ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHE...
true
8858125ec5c00dbceb0674cf370e4281d7e0e60e
SQL
cameronmccord2/SalesmanBuddy
/DB/003-Populate_initial_questions.sql
UTF-8
2,502
3.15625
3
[]
no_license
-- Types -- 1:Image -- 2:BOOL -- 3:Text -- 4:Dropdown -- 5:Save Cancel button -- Tags -- 1:License Image -- 2:Stock Number -- 3:First Name -- 4:Last Name -- 5:Phone Number -- 6:Sold the car INSERT INTO questions (questionOrder, questionTextEnglish, questionTextSpanish, questionType, required, tag) VALU...
true
84273f102dd61d27538978003ec54f50dfafaa05
SQL
mzhao15/mylearning
/sql/leetcode/leetcode550_GamePlayAnalysis4.sql
UTF-8
659
4.4375
4
[]
no_license
WITH total_player_cnt AS ( SELECT COUNT(DISTINCT player_id) AS total_player FROM Activity ) , player_login AS ( SELECT player_id , ROW_NUMBER() OVER (PARTITION BY player_id ORDER BY event_date) AS rnk , LEAD(event_date) OVER (PARTITION BY player_id ORDER...
true
e1d6baf1bbc683e985df7520210d6c53ed1ba3dd
SQL
JLim9269/ProjectJLim
/Project/target/classes/sql/admins.sql
UTF-8
1,200
3.359375
3
[]
no_license
select * from all_users; select * from all_tables order by owner; select * from all_tables where owner='PROJECT_J' order by table_name; --------------------------------------------------------------------------- create table admins( firstName varchar2(20), lastName varchar2(20), email varchar2(30) primary key, pa...
true
8f00313431db4f5edda20472ad5bf5efff7ef9f6
SQL
irakozeyves1/E_COMMERCE-
/e-commerce/db/e_cummerce.sql
UTF-8
2,596
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 10, 2018 at 05:47 PM -- Server version: 5.5.8 -- PHP Version: 5.3.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SE...
true
99c45c1eedb6693aadb8139f7780f4b0c68c6f7e
SQL
techwanker/OracleLogger
/ddl/cursor_tables.sr.sql
UTF-8
4,262
3.734375
4
[]
no_license
/* Explain Plan */ create table cursor_explain_plan ( explain_plan_hash varchar(44) not null, explain_plan clob not null ); alter table cursor_explain_plan add constraint cursor_explain_plan_pk primary key (explain_plan_hash); /* SQL */ create table cursor_sql_text ( sql_text_hash varchar (44) not n...
true
234e4f9a0539dcae99b5e544eb58cffe3c00561b
SQL
steinam/17_11FI3_AWP
/woche_1/create_firma.sql
ISO-8859-1
813
3.390625
3
[]
no_license
-- Anlegen der Datenbank drop database if exists firma; create database firma; -- Verbindung zur Datenbank herstellen use firma; -- Abteilung CREATE TABLE Abteilung ( ID integer auto_increment primary key, -- identifizierend Bezeichnung varchar(30) unique key, --eindeutig Nummer integer unique key ) engine=i...
true
ffc72a680cd7b77c39bc4d2c2b1259747a2f8c1c
SQL
Stalin25/Other
/simulacion 12 octubre/bddsemaforo.sql
UTF-8
23,554
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 24-03-2015 a las 16:12:55 -- Versión del servidor: 5.6.14 -- Versión de PHP: 5.5.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACT...
true
72219126e6bc1b4fe76ee5271b9473e15cf3d786
SQL
Evan-C-Mead/database-exercises
/join_exercises.sql
UTF-8
1,971
4.09375
4
[]
no_license
USE employees; select departments.dept_name as 'Department Name', concat(employees.first_name, ' ', employees.last_name)as 'Department Manager' from employees join dept_manager on dept_manager.emp_no = employees.emp_no join departments on departments.dept_no = dept_manager.dept_no where to_date like '9999-01-01' o...
true
fd80e2c68d6b2682d9e317aa535eefc14f28065a
SQL
paulalcabasa/Oracle-SQL-Files
/Journal Entry Reserve.sql
UTF-8
4,465
3.8125
4
[]
no_license
-- PARAMETERS SELECT BC.DISTRIBUTION_SOURCE_BOOK dbk, nvl (DP.PERIOD_CLOSE_DATE, sysdate) ucd, DP.PERIOD_COUNTER upc, min (DP_FY.PERIOD_OPEN_DATE) tod, min (DP_FY.PERIOD_COUNTER) tpc FROM ...
true
136ae36d3c691964bf2f9a9957b425f93fd839f5
SQL
Poulycroc/WildCodeSchool
/nodejs/todoList_mysql-restapi/finished/database/todo_db.sql
UTF-8
676
2.984375
3
[]
no_license
CREATE DATABASE todolist_nodejs_restapi; USE todolist_nodejs_restapi CREATE TABLE IF NOT EXISTS `tasks` ( `id` int(11) NOT NULL, `task` varchar(200) NOT NULL, `status` tinyint(1) NOT NULL DEFAULT '1', `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ); ALTER TABLE `tasks` ADD PRIMARY KEY (`id`); ALT...
true
e1785acd8fb486df7885dac9aef5a77b961b73c9
SQL
lucasdeabreu/backend-challenge
/store-service/src/main/resources/db/migration/V1__init.sql
UTF-8
201
2.703125
3
[]
no_license
create table stores ( id bigint not null AUTO_INCREMENT, name varchar(255) not null, address varchar(255) not null, primary key (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
true
5268031994b55664193b9f8a73cc88b13c566b40
SQL
hupesebi/data-modelling
/doctors_patients.sql
UTF-8
741
3.453125
3
[]
no_license
-- Data Modeling Exercise: Schema Design -- Part One: Medical Center DROP DATABASE IF EXISTS medical_center; CREATE DATABASE medical_center; \c medical_center CREATE TABLE doctors ( id SERIAL PRIMARY KEY, name text NOT NULL, ); CREATE TABLE patients ( id SERIAL PRIMARY KEY, name text NOT NULL, ...
true
28c5a782fcb41af7c1ce22789242ae9f034188df
SQL
peteremiller/Pewlett-Hackard-Analysis
/Analysis Projects Folder/Pewlett-Hackard-Analysis Folder/Employee_Challenge_starter_code.sql
UTF-8
2,572
4.625
5
[]
no_license
-- Creating tables for PH-EmployeeDB CREATE TABLE departments ( dept_no VARCHAR(4) NOT NULL, dept_name VARCHAR(40) NOT NULL, PRIMARY KEY (dept_no), UNIQUE (dept_name) ); CREATE TABLE employees ( emp_no INT NOT NULL, birth_date DATE NOT NULL, first_name VARCHAR NOT NULL, last_name V...
true
9b33bcc45ba398b7b79a8f43f24ccb09778ea5e1
SQL
ztbcms/ztbcms-Aliyun
/Install/Aliyun.sql
UTF-8
3,611
3.390625
3
[]
no_license
-- ---------------------------- -- 阿里云配置表 -- ---------------------------- DROP TABLE IF EXISTS `cms_aliyun_config`; CREATE TABLE `cms_aliyun_config` ( `id` int(15) UNSIGNED NOT NULL AUTO_INCREMENT, `access_key_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `access_secret` va...
true
8890e0b5c383f650d95a956b0dc67a3418f3445b
SQL
FASTTRACKSE/FFSE1704_LP3
/Assignments/SyNV/ass8/ass8-bt8.sql
UTF-8
1,924
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th4 02, 2018 lúc 11:44 AM -- Phiên bản máy phục vụ: 10.1.30-MariaDB -- Phiên bản PHP: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
true
a0322bad9851013054d222bffba93284a903852c
SQL
adzildb/tubeskeprofesian
/keuangan.sql
UTF-8
2,959
3.09375
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: Nov 28, 2019 at 11:22 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 5.6.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
74a42715764fab3fb8231e6929b7858b526a18aa
SQL
noob/HousingMarket-Server
/DB/housing_market_order.sql
UTF-8
3,444
3.9375
4
[ "Apache-2.0" ]
permissive
-- 订单表 DROP TABLE IF EXISTS `HM_ORDER`; CREATE TABLE `HM_ORDER` ( `ORDER_ID` bigint(25) NOT NULL AUTO_INCREMENT, `USER_ID` bigint(25) NOT NULL COMMENT '用户ID', `STORE_ID` bigint(25) DEFAULT NULL COMMENT '商家id', `ORDER_TRADE_NO` varchar(20) NOT NULL COMMENT '订单编号', `PAYWAY` varchar(100) NOT NULL COMMENT '支付...
true
43df26c7690e22382088aec6871472d3ef5898ca
SQL
wwjimenez/epayco
/bd/epayco.sql
UTF-8
3,733
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb1+deb.cihar.com~trusty.2 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 26-07-2018 a las 00:13:07 -- Versión del servidor: 5.6.33-0ubuntu0.14.04.1 -- Versión de PHP: 7.0.15-1+deb.sury.org~trusty+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET t...
true
d6a11eaa6024a9e2be5658552d5227551be69d89
SQL
ifyouseeksoomi/PLSQL
/PDF, DB script, 실습문제/수업 DB Script/01_DML(SELECT).sql
UHC
14,899
4.3125
4
[]
no_license
SELECT EMP_NAME FROM EMPLOYEE; -- ּ /* ּ */ -- ̸, ȸϴ SELECT EMP_ID, EMP_NAME, SALARY FROM EMPLOYEE; -- ȸ SELECT * FROM EMPLOYEE; -- '*' θ ǹϴ ȣ --------------------------------------------- ǽ --------------------------------------------------- -- 1. JOB ̺ ȸ SELECT * FROM JOB; -- 2. JOB ̺ ޸ ȸ SE...
true
d2a10d4b7b8a8e0121b97ec8d118a335b0145192
SQL
mrdbarros/csgo_parser
/queries/SELECT_ALL_STATS.sql
UTF-8
3,415
4
4
[ "MIT" ]
permissive
SELECT PLAYER.idPLAYER AS ID_PLAYER,PLAYER.NAME AS PLAYER_NAME,BASE_STATISTIC.NAME AS STATISTIC_NAME,SUM(STATISTICS_PLAYER_MATCH_FACT.VALUE) AS VALUE FROM ((STATISTICS_PLAYER_MATCH_FACT INNER JOIN PLAYER ON PLAYER.idPLAYER = STATISTICS_PLAYER_MATCH_FACT.idPLAYER ) INNER JOIN BASE_STATISTIC ON BASE_STATISTIC.idBASE_ST...
true
bb56cc87e0af6948b7c2866f3b2ed38f85bae2c9
SQL
frajamosa/feap
/Aplicacion/Base de Datos/BD-FEAP.sql
UTF-8
34,232
3.046875
3
[]
no_license
-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.0.27-community-nt /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CO...
true
8bc358dd3393025b621533c51617477a58ee9b2b
SQL
KBaichoo/cs356_project
/infra/results/query_data/namedcast_count.sql
UTF-8
631
3.09375
3
[]
no_license
SELECT "Yes", count(*) AS named_cast_detected_count FROM detection_results WHERE ("detection_tool_output.dynamic_cast.detected" = 'yes' OR "detection_tool_output.static_cast.detected" = 'yes' OR "detection_tool_output.reinterpret_cast.detected" = 'yes' OR "detection_tool_output.const_cast.detected" = 'yes' ) ; SEL...
true
e72489c25f28fd0403f02515f589dcab083d0423
SQL
YouriROC/ROCsprint8
/sprint8git/Cedric SQL opdrachten/4. Post Brexit events.sql
UTF-8
368
4.25
4
[]
no_license
USE WorldEvents SELECT tblContinent.ContinentName AS [Continent], tblCountry.CountryName AS [Country], COUNT(EventName) AS [Number of events] FROM tblContinent INNER JOIN tblCountry ON tblContinent.ContinentID = tblCountry.ContinentID INNER JOIN tblEvent ON tblCountry.CountryID = tblEvent.CountryID GROUP BY ...
true
ffab3dbbf4d5451a111ddcd13e0b0859638b82ec
SQL
bjmin17/Oracle_dbms
/MySQL SQL/MySQL-2020-02-03-EMS-tbl_bbs.sql
UTF-8
2,364
3.890625
4
[]
no_license
-- root 계정을 비밀번호 분실했을 때 -- 기존에 등록된 다른 id로 로그인하여 수행 -- 단 다른 id의 grant all로 지정되어 있어야 한다. -- mysql 설치 후에 새로운 사용자를 등록하고 -- grant를 all로 선언하여 생성해두자!! ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'aa1234'; -- UTF-8 use emsdb; drop table tbl_bbs; CREATE TABLE tbl_bbs( BBS_ID BIGINT AUTO_INCREMENT ...
true
9fa129466b0a885a2b7f4d58251138fc144a33a3
SQL
Iannery/BD
/Procedures/CRUD_INGRESSO.sql
UTF-8
1,103
3.625
4
[]
no_license
DROP PROCEDURE IF EXISTS CRUD_INGRESSO; DELIMITER $$ CREATE PROCEDURE CRUD_INGRESSO( comando CHAR(6), chave_primaria INT(5), Icodapres INT(4), Icpf CHAR(14) ) BEGIN IF (comando = 'INSERT') THEN IF (verifica_cod_apres(Icodapres) = 1 AND valida_cpf(Icpf) = 1) THEN INSERT INTO ...
true
f879e681035ea26253ecd30a8135385c72ce3828
SQL
RenataDayana/MySql
/BancoDeDadosEscola.sql
UTF-8
1,062
3.1875
3
[]
no_license
create database db_escola; use db_escola; create table tb_registroAlunos( id bigint auto_increment, nome varchar(255), idade int, serie varchar(255), aulaExtra boolean, nota decimal, primary key (id) ); insert into tb_registroAlunos(nome, idade, serie, aulaExtra, nota) values("Mario", 10, "5ª série", true, 3); insert...
true
ac0920aa13c5891566ed584ef616f581fc3d1144
SQL
lubing521/NewProject
/Server/Bin/dbsql/logdb/log_moneyoffsetotheraction.sql
UTF-8
614
2.5625
3
[]
no_license
CREATE TABLE `log_moneyoffsetotheraction` ( `userUID` int(10) unsigned NOT NULL, `playerName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `coin` bigint(20) unsigned DEFAULT NULL, `diamoned` int(10) unsigned DEFAULT NULL, `actionType` smallint(5) unsigned DEFAULT NULL COMMENT '0 好友免费赠送,1 师傅关系获得 , 2 徒弟关...
true
8a991cae5743f5847931aad9f0e50f292e5b0a6c
SQL
nasturmort/testKuropiatnyk
/db/Book.sql
UTF-8
5,950
3.421875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Фев 03 2019 г., 19:54 -- Версия сервера: 5.6.38 -- Версия PHP: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
c1e3d02861d025c2110c6995d8677fbd12bc7d16
SQL
groppedev/dockerstats-to-grafana
/src/main/resources/postgres.sql
UTF-8
1,006
3.546875
4
[]
no_license
-- Database: grafana-dockerstat -- DROP DATABASE "grafana-dockerstat"; CREATE DATABASE "grafana-dockerstat" WITH OWNER = postgres ENCODING = 'UTF8' LC_COLLATE = 'en_US.utf8' LC_CTYPE = 'en_US.utf8' TABLESPACE = pg_default CONNECTION LIMIT = -1; -- Table: public.docker_data ...
true
d057e802ed9d1cdf2ac8dd7468e0f10d2168dcf0
SQL
stevencohn/Orqa
/Snipets/Queries/Dynamic Diagnostics/Dynamic Memory.sql
UTF-8
527
3.328125
3
[ "MIT" ]
permissive
-- Dynamic Memory.sql select distinct to_char(a.end_interval_time,'MM-DD-YY') change_date, c.name, (c.value)/1024/1024 MB from dba_hist_snapshot a, (select * from (select snap_id,instance_number,name,value, lag(value,1) over (partition by instance_number,name order by sn...
true
99c3521e7f711526535d4b373872b8fc92f11ac0
SQL
koswol/bigquery-course
/03_DML/01_DML.sql
UTF-8
1,364
3.84375
4
[ "MIT" ]
permissive
-- @author: krakowiakpawel9@gmail.com -- @site: e-smartdata.org -- DML - Data Manipulation Language -- Umożliwia takie operacje jak UPDATE, INSERT, DELETE CREATE OR REPLACE TABLE DML.products ( product_id INT64 NOT NULL, product_name STRING, quantity INT64, price FLOAT64 ); CREATE OR REPLACE TABLE DML.orders...
true
95185e9d5745d0704b601c3c131323411c87d800
SQL
MertYumer/CSharp-DB-Exams
/MS SQL Exams/Exam - 16.04.2019/17.PSP.sql
UTF-8
275
4.03125
4
[ "MIT" ]
permissive
SELECT pl.Name, pl.Seats, COUNT(t.Id) AS [Passengers Count] FROM Planes pl LEFT JOIN Flights f ON f.PlaneId = pl.Id LEFT JOIN Tickets t ON t.FlightId = f.Id GROUP BY pl.Name, pl.Seats ORDER BY [Passengers Count] DESC, pl.Name, pl.Seats
true
4d4d300dcd7ab80d091764acb84c88dc3d1c18c3
SQL
jonasfabian/labeling-tool
/backend/src/main/resources/db/migration/V1__init_db.sql
UTF-8
5,245
3.453125
3
[]
no_license
CREATE TABLE user_group ( id BIGINT NOT NULL AUTO_INCREMENT, name VARCHAR(100), PRIMARY KEY (id) ) ENGINE = INNODB DEFAULT CHARSET = UTF8MB4; CREATE TABLE user ( id BIGINT NOT NULL AUTO_INCREMENT, first_name VARCHAR(100) NOT NULL, last_name VARCHAR(100) NOT NULL, email ...
true
2ace4173f9758d2433f88d6c6a039228baa2119d
SQL
edgardgt/crazy
/bdd/DMLcredito.sql
UTF-8
1,069
2.96875
3
[]
no_license
BEGIN TRANSACTION; CREATE TABLE producto ( pr_producto INTEGER PRIMARY KEY, pr_nombre varchar(32) NOT NULL, pr_fecha_ini varchar(16) NOT NULL, pr_fecha_fin varchar(16) NULL, pr_estado varchar(10) NOT NULL ); INSERT INTO `producto` (pr_producto, pr_nombre, pr_fecha_ini, pr_fecha_fin, pr_estado) VALUES (1, 'I...
true
bd9f65c1c6ab8dd3b41fce45ca2f2410c5e57a48
SQL
JPiere/JPCS
/JPIERE-DDLs/JPIERE-0104_JP_PaymentSelection.sql
UTF-8
2,382
3.15625
3
[]
no_license
 CREATE OR REPLACE VIEW adempiere.JP_PaymentSelection AS SELECT ps.AD_Client_ID AS AD_Client_ID ,ps.AD_Org_ID AS AD_Org_ID ,ps.C_PaySelection_ID AS C_PaySelection_ID ,ps.Name AS Name ,ps.Description AS Description ,ps.C_BankAccount_ID AS C_BankAccount_ID ,ps.PayDate AS PayDate ,ps.TotalAmt AS...
true
3e151153c262fcb8f929a84559b6d742be7d117e
SQL
JoveShuang/News
/Html/imooc_singcms180326.sql
UTF-8
12,673
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2018 年 03 月 26 日 09:28 -- 服务器版本: 5.6.12-log -- PHP 版本: 5.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACT...
true
9e9f29d92b48c330cc4afd12039a1fcbb6ee905d
SQL
Harrison-Z1000/CMPT221-Project
/T18/HTML/Team18-Tables.sql
UTF-8
4,924
3.9375
4
[]
no_license
/* Prolog CMPT221 - Create & Initialize Tables Created by Team 18(Devin White, Oliver Wilson, and Harrison Zheng). 14 - October - 2020 This Script File goes hand in hand with the HTML Home Page V2. */ /* Script File V1(14-Oct-2020) - Initial Creation of Tables with initial Users, Products, and Suppl...
true
fff6d2c72bfeb56b5bd5692857fa39d5e96db9d4
SQL
Konradsh/database_msc2020
/sql/zapytania/15.sql
UTF-8
321
3.734375
4
[]
no_license
SELECT offer.product_id, offer.regular_price, sale.transaction_date FROM offer INNER JOIN offer_customer ON offer.id = offer_customer.offer_id INNER JOIN sale ON offer_customer.id = sale.offer_customer_id WHERE offer.regular_price=offer_Price AND sale.transaction_date=offer.start_date ORDER BY offer.offer_price DESC...
true
2ec96c4d09a3b85272e82f619ea7b6b98811b137
SQL
arulk/kwery
/src/main/java/db/migration/V12__.sql
UTF-8
466
3.125
3
[ "MIT" ]
permissive
drop table kwery_user; create table kwery_user ( id integer generated by default as identity (START WITH 100, INCREMENT BY 1), first_name varchar(255) not null, middle_name varchar(255), last_name varchar(255) not null, email varchar(1024) not null, password varchar(255) not null, created bigint not null...
true
859116fc7131ffbfdfefa4bbff3d8c0c8928954e
SQL
pH-7/candyCMS
/install/sql/migrate/20111106_create_calendar.sql
UTF-8
349
2.84375
3
[ "MIT" ]
permissive
CREATE TABLE `%SQL_PREFIX%calendar` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `author_id` int(11) NOT NULL, `title` varchar(128) NOT NULL DEFAULT '', `content` text, `date` int(11) DEFAULT NULL, `start_date` date NOT NULL, `end_date` date DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCR...
true
2b67f5ce9510da24b58bdeaf8544a636d302cedf
SQL
IP-CAM/My-Blog-and-some-small-Project-with-Opencart-v.2.1.0.2
/mok/CHANGELOG/db/blog/oc_blog_category.sql
UTF-8
2,893
2.875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 192.168.100.27 Source Server Version : 50515 Source Host : 192.168.100.27:3306 Source Database : mok Target Server Type : MYSQL Target Server Version : 50515 File Encoding : 65001 Date: 2016-12-16 17:46:45 */ SET FOREIGN_KEY_CHECKS=0;...
true
65ae7951223bc393e1805f02f886988e2195ac8a
SQL
Project-ShangriLa/ALICE_Batch
/sql/data_recover/20160609_all.sql
UTF-8
1,262
3.140625
3
[]
no_license
--- 2016 2 リカバリ delete pixiv_tag_daily from where get_date = '2016-06-09 00:00:00'; select bases_id,"2016-06-09 00:00:00",search_word,total,"データ欠損 復旧対応",created_at, now() from pixiv_tag_hourly where get_date > '2016-06-09 00:00:00' and get_date < '2016-06-09 04:00:00' order by bases_id; start transaction; insert ...
true
45c7bd136e8871d32a1cef163dedcf809755b8c3
SQL
gusmairs/sql-projects
/dsi-pair/p8.sql
UTF-8
883
4.25
4
[]
no_license
-- Combine 6 and 7 to compare ranking methods select sum(same), count(user_id), sum(same)::real/count(user_id) from ( select user_id, othr_id, case when by_cnt = by_len then 1 else 0 end same from ( select userid user_id, othr_id, rank() over( partit...
true
f4e496dff333db7a356e740ef75cfeb9a535c6be
SQL
mgunes17/ytu-kemik-be
/database/db_ddl2.sql
UTF-8
3,376
3.5
4
[]
no_license
create database kemik_havadis_data; create sequence crawler.common_sequnce; create sequence crawler.hibernate_sequence; create sequence label.hibernate_sequence; create table manager.user_info ( id bigint not null constraint user_info_pkey primary key, username varchar(50...
true
f1c6ebb1ac1732669fe2cb664c5e3f8f86ac050d
SQL
Venus1001/Employee-Tracker
/DB/seeds.sql
UTF-8
1,924
3.3125
3
[]
no_license
USE employee_tracker_DB; ----- Department Seeds INSERT INTO department (id, name) VALUES (1, "Business Team"); INSERT INTO department (id, name) VALUES (2, "IT Tech Team"); INSERT INTO department (id, name) VALUES (3, "Management Team"); ----- Role Seeds INSERT INTO role (id, title, salary, department_id) VALU...
true
7b5fcfe7cd3fa2c5af00b5661da844973c2b4948
SQL
leigme/yiimanage
/protected/data/manage.sql
UTF-8
1,221
2.5625
3
[]
no_license
DROP TABLE "user"; DROP TABLE "userinfo"; DROP TABLE "followup"; DROP TABLE "childinfo"; CREATE TABLE "user" ( "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" TEXT, "password" TEXT, "email" TEXT, "telephonenum" TEXT, "weixinnum" TEXT, "qqnum" TEXT, "sinanum" TEXT, "createtime" TEXT, "updatetime" TEXT, "del...
true
cd8e2a51db6e489005d84e4f06b0b5a6f3251d0c
SQL
BenDehlin/helo-2
/db/post_post.sql
UTF-8
246
3.34375
3
[]
no_license
INSERT INTO posts (author_id, title, img, content) VALUES ($1, $2, $3, $4); SELECT p.id, p.author_id, u.username AS author_name, u.img AS author_img, p.title, p.img, p.content FROM posts p JOIN users u ON (p.author_id = u.id) ORDER BY id DESC;
true
557ff16561b7beb17ae83e67083ebd22afe91d1c
SQL
ESSE-xiaogui/kom_manager_new
/doc/db/report/sales_week.sql
UTF-8
1,592
4
4
[]
no_license
-- 统计个人每周各个机型销售库存数量 SELECT sale.COMPANY_ID, sale.SHOP_ID, sale.USER_CODE, sale.BRAND_CODE, sale.MODEL_CODE, sale.year YEAR, sale.week WEEK, ts.shop_name SHOP_NAME, r1.REGION_NAME COUNTRY_NAME, r2.REGION_NAME CITY_NAME, sale.SALE_QTY, stock.stock_qty STOCK_QTY FROM (S...
true
2212407d215ae48be769ff55d50a2e7c5a3fec78
SQL
ledgerfoundation/bitcoin-prediction
/database/sql-scripts/setup.sql
UTF-8
891
3.546875
4
[]
no_license
-- -- Table structure for `headlines` table -- DROP TABLE IF EXISTS headlines; CREATE TABLE headlines ( id INT NOT NULL AUTO_INCREMENT, headline VARCHAR(100) NOT NULL, source VARCHAR(100) NOT NULL, published_date DATE NOT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Table str...
true
818773d922c620bb7079a85083cb936e304235c9
SQL
salokod/node-react-login
/database.sql
UTF-8
372
2.734375
3
[]
no_license
CREATE DATABASE jwttutorial; --DOWNLOAD EXTENSION CREATE TABLE users( user_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(), user_name varchar(255) NOT NULL, user_email varchar(255) NOT NULL, user_password varchar(255) NOT NULL ); -- insert fake users INSERT INTO users(user_name,user_email,user_pa...
true
74057237d0d8a4e06529f0e8ed44468cf4d30e2d
SQL
Alekuoshu/com_kwproducts
/administrator/sql/update.mysql.utf8.sql
UTF-8
1,121
3.03125
3
[]
no_license
-- -- -- -- Estructura de tabla para la tabla `#__kwproducts_products` -- -- -- DROP TABLE IF EXISTS `#__kwproducts_products`; -- CREATE TABLE IF NOT EXISTS `#__kwproducts_products` ( -- `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, -- `asset_id` INT(10) NOT NULL DEFAULT '0', -- `ordering` INT(11) NOT NULL , -- `sta...
true
332fb1ce9999df1d5b4413874d80dd2662579fb3
SQL
saffi0333/Saffi.sql
/Students.sql
UTF-8
1,038
3.59375
4
[]
no_license
/*Table Creation*/ CREATE TABLE Students(ID int, Name char, Course char, Fees int, Email varchar, Phone int); INSERT INTO Students values(1,'Saffi','BSCS',40000,'smsaffi12345@gmail.com',+923330494443); INSERT INTO Students values(2,'Sami','BSMLT',34000,'syedsami78888@gmail.com',+923085910470); SELECT * FROM Students; /...
true
21cc21a9cf6b18b8434869de7d15237f2aac080c
SQL
cloudstateu/AWSARCH0519
/DAY4/D4-L3-CloudTrailLogs/most_active_users.sql
UTF-8
215
3.0625
3
[]
no_license
select count (*) as TotalEvents, useridentity.username from cloudtrail_student14 where eventtime >= '2018-12-05T00:00:00Z' and useridentity.type = 'IAMUser' group by useridentity.username order by TotalEvents desc;
true
d3cf4feb09d888c8242e18110a02f7bb08601bb4
SQL
the-hunta/personal-project
/db/getPost.sql
UTF-8
92
2.890625
3
[]
no_license
SELECT p.*, u.name as author FROM posts p JOIN users u ON p.user_id = u.id WHERE p.id = $1;
true
41e2f9710ebc0e2b3988cc4808099b66de5ed4cd
SQL
DocKob/PHP-Games-Archives
/Phpsgex/install/sql/map2.sql
UTF-8
240
2.5625
3
[]
no_license
-- sql for map system 2 -- ALTER TABLE `%PREFIX%city` ADD `x` INT( 15 ) NOT NULL DEFAULT '0', ADD `y` INT( 15 ) NOT NULL DEFAULT '0', ADD `type` VARCHAR( 15 ) NOT NULL DEFAULT 'null.gif'; ALTER TABLE `%PREFIX%city` ADD UNIQUE( `x`, `y` );
true
35f3f1068b35e09c4dadb53de758350141913ec3
SQL
CUBRID/cubrid-testcases
/sql/_23_apricot_qa/_01_sql_extension3/_05_analytic_functions/_03_rank/cases/rank_inherit_sub.sql
UTF-8
6,148
3.125
3
[ "BSD-3-Clause" ]
permissive
--TEST: test with a table with a superclass --create super class create table rank_super( col1 date, col2 time, col3 timestamp ); create table rank_date_time under rank_super( col4 datetime ); insert into rank_date_time values('2000-12-12', '11:11:11', '1990-1-1 11:11:11', datetime'2011-11-11 11:11:11.111'); ...
true
840905169255f1887e5869f969989c0a60730c82
SQL
neallyboy/fs1030-tha2
/Q1/book_db.sql
UTF-8
8,182
3.140625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.17, for macos10.14 (x86_64) -- -- Host: localhost Database: book_db -- ------------------------------------------------------ -- Server version 8.0.16 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */...
true
f822a187ac9783c6d2c591c5b84da0373b1418c5
SQL
itsnmt/goairline
/flight_db.sql
UTF-8
3,453
2.96875
3
[]
no_license
-- Database: `flight_db` -- -- -------------------------------------------------------- -- -- Table structure for table `customer` -- CREATE TABLE `customer` ( `PID` int(11) NOT NULL, `Fname` varchar(20) NOT NULL, `Lname` varchar(20) NOT NULL, `Age` int(11) NOT NULL, `sex` varchar(10) NOT NULL, `email` v...
true
83853a8a00cd5c67cf0c8c5a152b23fd91a9c42e
SQL
PhanThiQuyen144/CSE485_1851160589_TrieuKimCuc-1
/3.PROJECT/giangvien.sql
UTF-8
8,800
2.953125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th10 03, 2020 lúc 09:39 AM -- Phiên bản máy phục vụ: 10.4.14-MariaDB -- Phiên bản PHP: 7.2.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
f2c16423e600eaf024ed48a66ba00b4c894b5a17
SQL
imamun93/NjoySQLAnswers
/Query3Answer.sql
UTF-8
748
4.34375
4
[]
no_license
#Both queries take about 20 minutes each to run #This query fetch all the orders for all the hours in which order is placed or not */ SELECT h.hour as 'HOUR', sum(o.total_price - o.total_tax) as 'REVENUE', COUNT(o.order_id) as 'NO ORDER' FROM hours h LEFT JOIN order_details o ON DATE_FORMAT(o.created_at, "%Y-%m-%d-%H...
true
096da106f8d24c962ce8c4181bfc3258e87ccb1e
SQL
GarrettJWilliford/database-exercises
/3.9_temporary_tables.sql
UTF-8
1,341
4.0625
4
[]
no_license
use bayes_822; CREATE TEMPORARY TABLE employees_with_departments AS SELECT emp_no, first_name, last_name, dept_no, dept_name FROM employees.employees JOIN employees.dept_emp USING(emp_no) JOIN employees.departments USING(dept_no) LIMIT 100; ALTER TABLE employees_with_departments ADD full_name VARCHAR(30); SELECT *...
true
307a6a24007ff5facdb3fad40bfac9a2c7f1df28
SQL
aiemelyanov/RedGate
/TEST3/APEX_030200/Views/APEX_APPLICATION_SUPP_OBJ_BOPT.sql
UTF-8
2,692
3.53125
4
[]
no_license
CREATE OR REPLACE FORCE VIEW apex_030200.apex_application_supp_obj_bopt (workspace,application_id,application_name,build_option,default_status,developer_comment,install_build_option_id) AS select w.short_name workspace, f.ID application_id, f.NAME ...
true
edb987d11dbf6405a4518af8f4ca2f51483d0c2d
SQL
joel-wenzel/demo
/APEXV2/QC2/application/pages/page_00382.sql
UTF-8
14,441
2.5625
3
[]
no_license
prompt --application/pages/page_00382 begin wwv_flow_api.create_page( p_id=>382 ,p_user_interface_id=>wwv_flow_api.id(79451265483908718) ,p_name=>'IM and PM Templates' ,p_page_mode=>'MODAL' ,p_step_title=>'IM and PM Templates' ,p_autocomplete_on_off=>'OFF' ,p_group_id=>wwv_flow_api.id(4612636109968797) ,p_step_templat...
true
040e5c103e917abfa60d8647f81c09c33e73da39
SQL
SmartDuck9000/go-tradex
/src/db/init.sql
UTF-8
434
3.40625
3
[ "MIT" ]
permissive
CREATE DATABASE stat_db; CREATE USER stat_dba WITH SUPERUSER NOINHERIT ENCRYPTED PASSWORD 'avito_tradex'; GRANT ALL PRIVILEGES ON DATABASE stat_db TO stat_dba; CREATE TABLE statistics( id SERIAL PRIMARY KEY, date date NOT NULL, views int CONSTRAINT views_validation CHECK (views >= 0), clicks int CONST...
true
67cf89fd9139f647e7afd15dd77262142277102c
SQL
laye-og/php
/projet_ifall/tennis.sql
UTF-8
7,740
3.375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Mer 14 Mars 2018 à 14:17 -- Version du serveur : 5.6.17 -- Version de PHP : 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
true
274768ad0def3826391feae8c00527d96a6ea347
SQL
altamira/visualstudio
/Sistema de Informação Altamira/EGISADMIN.Database/dbo/Stored Procedures/pr_pesquisa_atributo_tabela.sql
UTF-8
2,980
3.765625
4
[]
no_license
 ------------------------------------------------------------------------------- --pr_pesquisa_atributo_tabela ------------------------------------------------------------------------------- --GBS Global Business Solution Ltda 2005 ------------------------------------------------...
true
2315afdb4331a8643e9ac2ff944d83a707872881
SQL
petrlevin/rostu
/Sbor/Scripts/7163.sql
UTF-8
571
3.5
4
[]
no_license
update d set d.idSBP_BlankActual = sbh.id from doc.PlanActivity as d join ref.SBP as sbp on sbp.id=d.IdSBP join tp.SBP_BlankHistory as sbh on sbh.idOwner = sbp.idParent and sbh.idBudget=d.idBudget join (select idBudget, idOwner, idBlankType, max(DateCreate) as d from tp.SBP_BlankHistory as sbh group by id , idBudget...
true
339f8f27970a2ab12a3da77982c753a71df23db4
SQL
medaminenouira/Projet_CPP_2A26
/exportALL.sql
ISO-8859-1
17,571
2.953125
3
[]
no_license
-------------------------------------------------------- -- Fichier cr - jeudi-novembre-04-2021 -------------------------------------------------------- DROP TABLE "AMINE"."LOGMENT" cascade constraints; DROP TABLE "AMINE"."MAINTENIR" cascade constraints; DROP TABLE "AMINE"."PARTICIPANT" cascade constraints; D...
true
eb55e84c1144fda5084123fb04d390b76b6d0c2a
SQL
hillerlab/CESAR2.0
/kent/src/hg/lib/gtexDonor.sql
UTF-8
703
3.28125
3
[ "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
# gtexDonor.sql was originally generated by the autoSql program, which also # generated gtexDonor.c and gtexDonor.h. This creates the database representation of # an object which can be loaded and saved from RAM in a fairly # automatic way. #GTEx donor (subject) description CREATE TABLE gtexDonor ( name varchar...
true
e14b942610c7ae914c088ed4ae9325a3ecff59d0
SQL
merecmoney/DistributedDatabasesProject
/06-triggers/s-06-ilap-mmg-s1-sucursal-venta-trigger.sql
UTF-8
3,873
3.625
4
[]
no_license
--@Autor: Carlos A. Hernández A. & Marco A. Moreno Guerra --@Fecha creación: 16/05/2020 --@Descripción: Definición del trigger para operaciones DML para SUCURSAL_VENTA -- en MAMGBD_S1 create or replace trigger t_dml_sucursal_venta_mmg_s1 instead of insert or update or delete on SUCURSAL_VENTA declare v_count number;...
true
e0ee2b6fe86add09b70ec98f4751d94141b80bce
SQL
radtek/abs3
/sql/mmfo/bars/View/v_upl_file_groups.sql
UTF-8
1,332
2.78125
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/View/V_UPL_FILE_GROUPS.sql =========*** Run PROMPT ===================================================================================== PROMPT *** Create view V_UP...
true
c653344741fc215858ea3dd37fb894b75a46f606
SQL
mathewgrg1/QB
/DB dump/qb.sql
UTF-8
11,098
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 02, 2018 at 04:36 PM -- Server version: 10.1.25-MariaDB -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
3d9a47c0298bdff8ceec77ff4a39373254c64947
SQL
cleitonferreira/VeiculoJsf
/VeiculoJsf/src/main/resources/ScriptsSQL/MarcaModelo2.sql
UTF-8
4,890
2.515625
3
[]
no_license
use veiculojsf_db; #todas marcas e modelos de motos INSERT INTO `modelo` (`mod_id`, `mod_nome`, `mod_flag`, `mar_id`) VALUES #Honda (329, 'Pop 100', 1, 18), (330, 'Lead 110', 1, 18), (331, 'Nova BIZ 125', 1, 18), (332, 'CG 125 Fan', 1, 18), (333, 'CG 125 Cargo', 1, 18), (334, 'CG 150 Fan', 1, 18), (335, 'CG 150 ...
true
e92d206dbfb63cf131b98b77f9160ef88b3c6ceb
SQL
daniiel/cursos
/Oracle 11g - Introduction to SQL/courselabs/sql2/soln/sol_07_04.sql
UTF-8
205
2.890625
3
[]
no_license
DROP TABLE contacts; CREATE TABLE contacts ( l_name VARCHAR2(30), p_number VARCHAR2(30) CONSTRAINT p_number_format CHECK ( REGEXP_LIKE ( p_number, '^\(\d{3}\) \d{3}-\d{4}$' ) ) );
true
fe79307b3ea95b47c232c8608608047291b27434
SQL
flexilef/RentalHub
/DatabaseScripts/UpdatedSchema.sql
UTF-8
6,642
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 10, 2016 at 03:10 PM -- Server version: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
e1f605e4131ba06c774e0c3bbc54f8f5d09f1af3
SQL
mehrdad-shokri/drone
/store/shared/migrate/postgres/files/008_create_table_cron.sql
UTF-8
733
3.71875
4
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license" ]
permissive
-- name: create-table-cron CREATE TABLE IF NOT EXISTS cron ( cron_id SERIAL PRIMARY KEY ,cron_repo_id INTEGER ,cron_name VARCHAR(50) ,cron_expr VARCHAR(50) ,cron_next INTEGER ,cron_prev INTEGER ,cron_event VARCHAR(50) ,cron_branch VARCHAR(250) ,cron_target VARC...
true
4b3113e98eaf3cdc5d2d29ffd19e02880001d73f
SQL
spicytuner/test-rep
/SQL/est_bill.sql
UTF-8
389
2.75
3
[]
no_license
select distinct authorization_code_full from qwest_december; select authorization_code_full, sum(estimated_charge) from qwest_november where authorization_code_full in ('418','2214','2137') group by authorization_code_full; select authorization_code_full, sum(estimated_charge) from qwest_december where authorization_...
true
122ceac275cb2009d1da77ddb555100030e15284
SQL
final-autumn/Test3
/sql commands.sql
UTF-8
391
2.671875
3
[]
no_license
CREATE DATABASE HostAndServe; USE HostAndServe; CREATE TABLE Servers (id int PRIMARY KEY AUTO_INCREMENT, Alias varchar(30), ip varchar(60), creationDate date, hostingId int); CREATE TABLE Hosting (id int PRIMARY KEY AUTO_INCREMENT, name varchar(31)); INSERT INTO Hosting (name) VALUES ('Amazon'); INSERT INTO Hosting (na...
true
f761c4449751dd4add1d400acf8a5dde7cc12b19
SQL
allofdev/2_Oracle
/실습/6_종합실습문제2_축구관련.sql
UHC
7,728
4.4375
4
[]
no_license
SELECT * FROM USER_TABLES; SELECT * FROM PLAYER; SELECT * FROM TEAM; SELECT * FROM STADIUM; SELECT * FROM SCHEDULE; --1. PLAYER ̺ K02, K05 شϴ ̸ , ȣ, Ű ȸϽÿ. SELECT PLAYER_NAME ̸, POSITION , BACK_NO ȣ, HEIGHT Ű FROM PLAYER WHERE TEAM_ID IN ('K02', 'K05'); --2. PLAYER ̺ õ ̸ ȸϽÿ. SELECT PLAYER_NAME ̸, NATION ...
true
8c4856be11ffac540680339ad168d836620c2e82
SQL
Saketh00/web_crawler
/jquery_ex/jobs/sql/000_create.sql
UTF-8
786
3.21875
3
[]
no_license
drop table if exists openings; drop table if exists job_status; drop table if exists crawl_status; create table crawl_status( crawled_on timestamp ); create table job_status( id serial primary key, name text, terminal boolean ); insert into job_status(name, terminal) values('crawled', FALSE); inser...
true
1dfa65965484739012d8f8308efffa3f92400a3d
SQL
haltuf/model-testing
/tests/tools/testing_data.sql
UTF-8
973
3.296875
3
[]
no_license
# Enforce database name # To prevent accidentally deleting live data USE `mt_test`; SET FOREIGN_KEY_CHECKS=0; TRUNCATE TABLE `mt_test`.`category`; TRUNCATE TABLE `mt_test`.`product`; SET FOREIGN_KEY_CHECKS=1; INSERT INTO `category` (`id`, `name`, `url`, `visible`) VALUES (1, 'Fotoaparáty TEST', 'foto', 1), (2, 'Objek...
true
7fb8caca6f6ebca8d8160483421eb5fa010dae58
SQL
divido/wine-cellar
/data/schema.sql
UTF-8
1,576
3.59375
4
[]
no_license
BEGIN TRANSACTION; DROP TABLE IF EXISTS `regions`; CREATE TABLE IF NOT EXISTS `regions` ( `id` INTEGER PRIMARY KEY AUTOINCREMENT, `name` TEXT NOT NULL, `country` TEXT NOT NULL ); DROP TABLE IF EXISTS `wineries`; CREATE TABLE IF NOT EXISTS `wineries` ( `id` INTEGER PRIMARY KEY AUTOINCREMENT, `name` TEXT NOT NULL,...
true
a4a72456323d79b742a83839c3602874ff123b09
SQL
AgentBluenote/javaEE
/BugTrackerWeb/DBScripts/Script.sql
UTF-8
1,450
3.890625
4
[]
no_license
GRANT ALL PRIVILEGES ON *.* TO bugtracker@localhost IDENTIFIED BY 'bugtracker' WITH GRANT OPTION; DROP DATABASE IF EXISTS bugtracker; CREATE DATABASE IF NOT EXISTS bugtracker; USE bugtracker; DROP TABLE IF EXISTS BUG; CREATE TABLE BUG( ID int NOT NULL, SUMMARY VARCHAR(250), DESCRIPTION VARCHAR(4000), ASSIGNEE i...
true
2caf0a7d064f54adfeaaf37cc98b9c066dce2979
SQL
BhathiyaTK/ieeesywc2019
/sywc19.sql
UTF-8
1,592
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Oct 31, 2019 at 05:59 PM -- Server version: 5.7.26 -- PHP Version: 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true