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
84dea64a7a62d1f744caf7169544e2ffa9b6b283
SQL
kononenko-a-m/test-calendar-app
/src/main/resources/db/migration/V0004__Add_user_settings_table.sql
UTF-8
301
3.09375
3
[]
no_license
CREATE TABLE user_settings ( id BINARY(16) NOT NULL PRIMARY KEY, user_id BINARY(16) NOT NULL, timezone_id BINARY(16) NOT NULL, created_at DATETIME DEFAULT CURRENT_TIMESTAMP, updated_at DATETIME DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (timezone_id) REFERENCES timezones(id) ) ENGINE=InnoDB;
true
daf78c9e157b3c58f5eaa04ece12098c39b3337d
SQL
petarbasta/Database-Research
/McGill/db2 queries TEMP/q03.2.sql
UTF-8
168
3.4375
3
[]
no_license
SELECT DISTINCT c.credits, c.ccode FROM course c, courseoffer o WHERE c.ccode = o.ccode AND c.dept = 'computer science' AND o.term = 'winter 2018' ORDER BY ccode;
true
b2f5727e3c239d22d737f2a52852e2175d1d3f2f
SQL
ashish640/Staff_management_system
/Database Query/staff_management.sql
UTF-8
4,904
3.15625
3
[]
no_license
-- -- Database: `staff_management` -- -- -------------------------------------------------------- -- -- Table structure for table `admin` -- CREATE TABLE `admin` ( `ID` varchar(30) NOT NULL, `Password` varchar(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `admin` -- INSERT I...
true
14052dee13cda523551f0e16d7ee122d7345f773
SQL
informaticaeducativa/laravel-crud
/script2.sql
UTF-8
991
2.796875
3
[ "MIT" ]
permissive
DELIMITER $$ CREATE TRIGGER trg_log_insert AFTER INSERT ON customer FOR EACH ROW BEGIN INSERT INTO log_customer(customer,operation,operation_date,last_id,new_id,last_document,new_document,last_active,new_active) VALUES (new.id, 'INSERT', now(), null, new.id, null,new.document,null,new.active); END$$ DELIMITER ;...
true
3d4ffee6423c23e6e69dc291e110af0216cf9034
SQL
ngmautri/nhungttk
/config/config_data/Last-Sparepert_DO-KEY.sql
UTF-8
1,108
3.671875
4
[ "Apache-2.0" ]
permissive
/*Last Spartpart DO KEY*/ select mla_delivery_items_1.sparepart_id, max(mla_delivery_items_1.created_on) as sparepart_do_last_change, concat(mla_delivery_items_1.sparepart_id,'+++',max(mla_delivery_items_1.created_on)) as sparepart_last_do_key from ( /*Delivery Items Table*/ select mla_delivery_items.*, c...
true
6ed728eb8327f76483a33e5af71796e36538b14f
SQL
KiroKirilov/SoftUni
/ProfessionalModules/C#DBFundamentals/DatabasesBasics/DataDefinitionAndDataTypes/PeopleTable.sql
UTF-8
835
3.234375
3
[]
no_license
CREATE DATABASE PeopleDB USE PeopleDB --Problem 7 - Create Table People CREATE TABLE People ( Id INT PRIMARY KEY IDENTITY NOT NULL, Name NVARCHAR(200) NOT NULL, Picture VARBINARY(2000), Height DECIMAL(15,2), Weight DECIMAL(15,2), Gender CHAR(1) NOT NULL, Birthdate DATE NOT NULL, Biography NVARCHAR(MAX), CON...
true
59cd9b3cfff679c226d9ed527d9e57e7f9082fb3
SQL
wsosop/notes
/数据库/mysql/练习命令sql语句/进阶十七-函数.sql
UTF-8
2,286
4.34375
4
[]
no_license
#进阶十七-函数 /** 含义:一组预先编译好的SQL语句的集合,理解成批处理语句 1、提高代码的重用性 2、简化操作 3、减少了编译次数并且减少了和数据库服务器的连接次数,提高了效率 和存储过程的区别 存储过程:可以有0个返回,也可以有多个返回,适合做批量的插入、批量的更新 函数:有且仅有1个返回 ,适合做处理数据后返回一个结果 */ #一、创建语法 CREATE FUNCTION 函数名(参数列表) RETURNS 返回类型 BEGIN 函数体 END /** 注意: 1 参数列表 包含两部分: 参数名 参数类型 2 函数体:肯定会有return语句,如果没有会报错 如果return语句没有放在函...
true
6906c5f36b607b67fc272ef69f6fe67b99641b48
SQL
maximum-wong/leetcode-cn-exercise
/src/main/java/kstar/leetcode_cn/leetcode/_1179/Oraclesql.sql
UTF-8
2,486
3.734375
4
[]
no_license
/* Write your PL/SQL query statement below */ -- solution 1 SELECT id, SUM(CASE WHEN month='Jan' THEN revenue END) AS Jan_Revenue, SUM(CASE WHEN month='Feb' THEN revenue END) AS Feb_Revenue, SUM(CASE WHEN month='Mar' THEN revenue END) AS Mar_Revenue, SUM(CASE WHEN month='Apr' THEN revenue END) AS Ap...
true
b684f056706485d4484831918cc02760b53d8b20
SQL
estimpson/21st
/Trunk/MSSQL/dbo/Create Scripts/Script.CalculateLetdownBOM.sql
UTF-8
5,626
3.75
4
[]
no_license
insert dbo.bill_of_material_ec ( parent_part , part , start_datetime , type , quantity , unit_measure , std_qty , scrap_factor , substitute_part , date_changed ) select parent_part = left(BlackFormulas.MoldedPart, len(BlackFormulas.MoldedPart) - 1) + mcl2.ColorCode , part = mcl2.BaseMaterialCode , s...
true
3aa5475473bc19ef558342dc25d87091af382cf3
SQL
tayduivn/training
/rdbms/update/.svn/text-base/sacwis_209.sql.svn-base
UTF-8
2,505
2.734375
3
[]
no_license
-- change STGAP00004042 -- ADDED PUP SERVICE ERROR HYPERLINK FOR SUB STAGE -- FIRST, correct the sequence! DROP SEQUENCE CAPS.SEQ_ERROR_LIST; CREATE SEQUENCE CAPS.SEQ_ERROR_LIST START WITH 800 INCREMENT BY 1 NOMINVALUE NOMAXVALUE CACHE 20 NOORDER ; GRANT SELECT ON CAPS.SEQ_ERR...
true
bb6b60e1d1bd65bf269cc5bb585b5ce6b767fe37
SQL
Forzafonz/lightBnB
/1_queries/2_property_listing_by_city.sql
UTF-8
271
3.796875
4
[]
no_license
SELECT DISTINCT properties.*, avg(property_reviews.rating) as average_rating FROM properties JOIN property_reviews ON properties.id = property_reviews.property_id WHERE city LIKE '%Vancouver%' GROUP BY properties.id HAVING avg(rating) >= 4 ORDER by cost_per_night ASC;
true
9a86c0168fa73a1afdfc25a9947eeb9739465ea8
SQL
kisoo6203/Biz_403_2021_04_DBMS
/Oracle/관리자(2021-04-22-SCHOOLDB).sql
UTF-8
1,074
3.5625
4
[]
no_license
-- 관리자권한접속 CREATE TABLESPACE schoolDB DATAFILE 'C:/oraclexe/data/school.dbf' SIZE 1M AUTOEXTEND ON NEXT 1K; -- 테이블스페이스 생성 DROP TABLESPACE schoolDB INCLUDING CONTENTS AND DATAFILES CASCADE CONSTRAINTS; -- 테이블스페이스 삭제 -- schema : table, index, view 등등 데이터의 전체적인 모음집 -- 객체들의 정보를 담는 곳 -- 데이터들의 모음체 -- CREATE SCHEMA CREATE ...
true
11c3c90150235912b5efe3a8cd19a824785f6418
SQL
Ale-noga/Exercicios-Generation
/MODULO2/15-02/Ex2/db_pizzaria_legal.sql
UTF-8
2,214
3.359375
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Mon Feb 15 19:59:06 2021 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ON...
true
f1299aee92a871fbe40ae7931743f5fd0823002b
SQL
ploomber/ploomber
/src/ploomber/resources/ploomber_add/task.sql
UTF-8
510
2.609375
3
[ "Apache-2.0" ]
permissive
/* Add description here */ [% if extract_upstream -%] /* if this task has upstream dependencies, reference them in the SQL query*/ [% else %] /* if this task has upstream dependencies, declare them the YAML spec */ [% endif %] [% if extract_product -%] /* declare a "product" variable in this file */ [% endif %] /* N...
true
e4653058a071532c476dd996e88532c511c657cb
SQL
hugoangeles0810/trabajo-cs
/bd/vuelos-cliente mysql.sql
UTF-8
8,754
3.359375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : mysql Source Server Version : 60011 Source Host : localhost:3306 Source Database : vuelos-cliente Target Server Type : MYSQL Target Server Version : 60011 File Encoding : 65001 Date: 2017-02-19 21:52:33 */ SET FOREIGN_KEY_CHECKS=0; -...
true
806c8fae383c5b1f3fd10f575b7db662adbf654b
SQL
hongtuky/Data-Management
/1 SQLITE and SQL Basics/hw1.sql
UTF-8
1,507
3.984375
4
[]
no_license
-- sqlite3 .mode column .headers on -- Problem 1 CREATE TABLE IF NOT EXISTS Edges ( Source INT, Destination INT ); insert into Edges values (10,5); insert into Edges values (6,25); insert into Edges values (1,3); insert into Edges values (4,4); select * from Edges; select Source from Edges; select * from Edge...
true
6d499bc308015a2270b9cfec01e88ec2d632519a
SQL
RabinPhaiju/Food-For-Needy
/admin/db/kpa.sql
UTF-8
7,978
3.421875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 14, 2020 at 05:15 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
fecf1e6865c5215a1d4f805e9043995a4a00c6f6
SQL
LyudaBo/Java-Developer
/Homework1/6.sql
UTF-8
474
3.546875
4
[]
no_license
use homework_1; -- 6. Вычислить, среднюю ЗП программистов в проекте, который приносит наименьшую прибыль. SELECT projects.PROJECT_NAME, projects.cost, avg(dev_salary) FROM developers INNER JOIN developer_project ON developers.DEVELOPER_ID = developer_project.DEVELOPER_ID INNER JOIN projects ON developer_project.PROJE...
true
86d746bdb0bee4ab3f239b30936a6794de3d9fee
SQL
GuillaumeDSM/RTU-BD
/Object-RelationalDB/insertTables.sql
ISO-8859-1
1,347
2.984375
3
[]
no_license
delete from environements; delete from animaux; delete from visiteurs; delete from parents; delete from villes; delete from zoos; --villes insert into villes values(ville('Vincennes','France')); insert into villes values(ville('Blois','France')); --parents insert into parents values(animal('alonzoTheFirst','lion','25...
true
5792d4261e91ddb6af36b14185586db2becceb5c
SQL
UCSFMemoryAndAging/lava
/lava-crms/database/crms/versions/V3.5/V3.5.0/update/lava-crms-model-3.4.2-to-3.5.0.sql
UTF-8
3,106
3.078125
3
[ "BSD-2-Clause" ]
permissive
ALTER TABLE `crms_file` ADD COLUMN `consent_id` INT DEFAULT NULL AFTER `enroll_stat_id`; ALTER TABLE `crms_file` ADD CONSTRAINT `fk_crms_file__consent_id` FOREIGN KEY (`consent_id` ) REFERENCES `patientconsent` (`ConsentID`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD INDEX `fk_crms_file__consent_id` (`consent_id...
true
a516e33fafda1ccba71e618cd9b0d43bd5dfc1ea
SQL
DiegoBranco/Proy1_ABD
/Scripts/2.sql
UTF-8
5,321
3.28125
3
[]
no_license
CREATE TABLE SERVIDOR( id VARCHAR2(4), nombre VARCHAR2(30), inauguracion DATE, idiomas VARCHAR2(100), ubicacion VARCHAR2(50), ip VARCHAR2(50) )TABLESPACE repositorio_tablas; CREATE UNIQUE INDEX IND_id_servidor_PK ON SERVIDOR(id) TABLESPACE repositorio_indices; ALTER TABLE SERVIDOR ADD CONSTRAINT...
true
85546e64a6ac7d3237d299133dc6e70c67951bdf
SQL
xBenJamminx/YouDontKnowJS_Code
/SQL_Listings.sql
UTF-8
2,932
3.3125
3
[]
no_license
SELECT "listing_events"."id" AS "id", "listing_events"."created_at" AS "created_at", "listing_events"."listing_block_height" AS "listing_block_height", "listing_events"."block_time" AS "block_time", CAST("listing_events"."seller" AS TEXT) AS "seller", CAST("listing_events"."player" AS TEXT) AS "player", ...
true
335064bf0aae13a2c06744ac9721356e5728b53c
SQL
euisoo/StockInform
/sql/FinanceDDL.sql
UTF-8
762
2.578125
3
[]
no_license
DROP TABLE finance; CREATE TABLE finance ( cmpName VARCHAR2(30) NOT NULL, revenue VARCHAR2(20), operatingIncome VARCHAR2(20), netIncome VARCHAR2(20), totalasset VARCHAR2(20), totaldebt VARCHAR2(20), capitalGross VARCHAR2(20), netProfitRatio V...
true
3ec91e2d37f5ab709ff842781146eb7cfed07051
SQL
pratishthasingh1/Pewlett-Hackard-Analysis
/Employee_Database_challenge.sql
UTF-8
1,221
4.3125
4
[]
no_license
Deliverable 1 --Make retirement_titles table SELECT e.emp_no, e.first_name, e.last_name, t.title, t.from_date, t.to_date INTO retirement_titles FROM employees AS e INNER JOIN titles AS t ON e.emp_no = t.emp_no WHERE (birth_date BETWEEN '1952-01-01' AND '1955-12-31') ORDER BY emp_no; --make unique_titles SELECT DIST...
true
c9721065f54d81d452ce09aecb302eb66fe09096
SQL
Willmarc18/Prueba-desarrolador
/Taller/vehiculos.sql
UTF-8
1,784
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 06-05-2021 a las 04:54:50 -- Versión del servidor: 10.4.17-MariaDB -- Versión de PHP: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
e03fb4cbe4f09bb7040bb8718480d3cd4af6e11e
SQL
UCLCSSA/API-Server
/src/persistence/setup/create-user-session-table.sql
UTF-8
1,322
3.140625
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS UserSessions ( -- UCLCSSA session key is the hex digest of SHA-256 HMAC using WechatOpenId -- and WechatSessionKey used to validate a user session. UclcssaSessionKey CHAR(64) NOT NULL DEFAULT '', CreationDatetime DATETIME NOT NULL DEFAULT (NOW()), -- Used to calculate whet...
true
e6495567e88cbf456f27142a0799ed71c0e49805
SQL
kelliemogg/AirBnB_clone_v2.0
/setup_mysql_test.sql
UTF-8
487
3.140625
3
[]
no_license
-- Creates database hbnb_test_db -- Creates new user hbnb_test and sets the password -- Sets privileges for hbnb_test on hbnb_test_db -- Sets select privileges for hbnb_test on performance_schema -- Flush privileges CREATE DATABASE IF NOT EXISTS hbnb_test_db; CREATE USER IF NOT EXISTS hbnb_test@localhost IDENTIFIED BY ...
true
6c4be5a0b26ad91a858b9ed2dab2449ab73c85b8
SQL
MatheusPiske/ConceitosSQL
/exercicio_condicionais.sql
UTF-8
1,444
3.8125
4
[]
no_license
/* Traga os funcionários que trabalham no departamento de filmes ou no departamento de roupas */ select departamento, count(*) from funcionarios where departamento = 'Roupas' or departamento = 'Filmes' group by departamento; /* Podemos procurar os departamentospara otimmizar o banco de dados utilizando a funçã...
true
1edea4101f3cbef8840b7bb3778bae180712980c
SQL
dechapie/m1gil
/M1F/BDD/TP3/Base_Medecins.sql
UTF-8
6,373
3.21875
3
[]
no_license
DROP TABLE caron_consultation; DROP TABLE caron_med_plage_consult; DROP TABLE caron_malade; DROP TABLE caron_medecin; CREATE TABLE caron_medecin ( n_med integer constraint pk_medecin primary key, identite_med varchar2(30) not null, tel_med char(10), adr_elec_med varchar2(30), prof_se...
true
39588293b643973ed075a7c1101abd282367b98d
SQL
bellmit/flexdb
/2.HOST/3.Procedure/od0042.sql
UTF-8
3,644
3.28125
3
[]
no_license
CREATE OR REPLACE PROCEDURE od0042( PV_REFCURSOR IN OUT PKG_REPORT.REF_CURSOR, OPT IN VARCHAR2, BRID IN VARCHAR2, F_DATE IN VARCHAR2, T_DATE IN VARCHAR2, CUSTODYCD IN VARCHAR2, PV_AFACCTNO IN VARCHAR2, PV_TLID ...
true
b45c71dbae112b95840e394d317e84700aeca309
SQL
yuhsuanh/RelationalDatabase
/week6/Lesson5_grade_center.sql
UTF-8
4,165
4.03125
4
[]
no_license
/* Name : Anju Chawla Date: June 2020 Purpose: To create a database with a table therein to store grades of students in various courses. Alter the table to add a primary key to the table. Display a list of students who have scored 80% or higher in atleast two subjects. Further display the average mark of each studen...
true
2244d0305081cd9dad6b1323eaadb49a6636e7ec
SQL
Takler/Vaccination
/src/test/resources/vaccine/vaccine-schema.sql
UTF-8
510
2.6875
3
[]
no_license
DROP ALL OBJECTS; CREATE TABLE vaccine (id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(250) NOT NULL, type VARCHAR(250) NOT NULL, storage_temperature INTEGER NOT NULL, age_limit_min SMALLINT NOT NULL, age_limit_max SMALLINT NOT NULL, shots_needed TINYINT NOT NULL, next_shot_id TINYINT NOT NULL, days_until_nex...
true
5892ab92ea1f8356e5ab91b9f2208ed4d484948f
SQL
arodionov/yandex-socnet
/src/test/resources/schema.sql
UTF-8
280
3.359375
3
[]
no_license
CREATE TABLE Student( id IDENTITY, name varchar(30), year int ); CREATE TABLE Groups( id IDENTITY, name varchar(30) ); CREATE TABLE student_groups_junction( student_id int, group_id int, CONSTRAINT student_cat_pk PRIMARY KEY (student_id, group_id) );
true
255f718ad0666a49490789b8a2120936efa1dfec
SQL
Smitaty/SQL
/TP6.sql
UTF-8
7,884
3.875
4
[]
no_license
/* Cet exercice avait pour but de travailler sur la création de table en SQL puis de les traiter grâce à des requêtes SQL */ Drop table if exists etudiant cascade; drop sequence if exists numet; create sequence numet minvalue 1111; Drop table if exists groupe cascade; create table groupe (nomgroupe varchar(5) pr...
true
e095547fc3aa73cd58ceefaa2cf05d6bfcfa4ab4
SQL
uk-gov-mirror/UKHomeOffice.hocs-wr-casework
/src/main/resources/db/migration/postgresql/V1_9__CREATE_TABLE_SCREEN.sql
UTF-8
361
3.484375
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS screen_data; CREATE TABLE IF NOT EXISTS screen_data ( id BIGSERIAL PRIMARY KEY, type TEXT NOT NULL, data JSONB NOT NULL, stage_uuid UUID NOT NULL, CONSTRAINT fk_screen_id FOREIGN KEY (stage_uuid) REFERENCES stage_data (uuid) ); CREATE INDEX idx_screen_type_stage_u...
true
b19121a92a5b04625c2d3963d6830639a25628f0
SQL
Haizhiwei/practice
/ref-doc/file/interview/sql/去重sql.sql
UTF-8
6,211
4.4375
4
[]
no_license
-- 注释里的``表示缺省的表名,列名 /* 没有主键 如果在设计表时没有指定主键, 导入数据时可能出现重复导入, 导致一个表中出现多条完全相同的多条记录。 以下是解决这个问题的思路: 使用distinct语句筛选出不重复的记录存入临时表tmp; create table tmp as (select distinct sno,sname,age,sex from s); 删除原表中的数据记录 delete from s; 将临时表中的数据插入到原表。 insert into s select * from tmp; 删除临时表 drop table tmp; */ DROP TABLE IF EXISTS `temp`; ...
true
5fff9c5ff6ea47ff977e2f11aeedd9f95f105043
SQL
ceeeeedd/Clinical-Reports
/Top Discharge Diagnosis.sql
UTF-8
1,607
4.125
4
[]
no_license
select top 50 temp.description, temp.code, (select count(p.patient_id) from patient_discharge_nl_view as pdv inner join patient_visit_diagnosis_view as pv on pv.patient_visit_id = pdv.patient_visit_id inner join patient as p on p.patient_id = pv.patient_id inner ...
true
dbf42433d1e9a8d8efafab427bd93ffd2bfa195b
SQL
wangleid/jewels-shop
/首饰商城/shoushi.sql
UTF-8
5,713
2.859375
3
[]
no_license
CREATE DATABASE shoushi DEFAULT CHARACTER SET=UTF8; use shoushi; /**用户表**/ CREATE TABLE ss_user( uid int(10), username varchar(20), upwd varchar(50), email varchar(15), phone VARCHAR(16), avatar VARCHAR(128), user_name VARCHAR(32), gender INT (1) ); /*...
true
c9ecc06d1548c09db4af68e98c41c868d433b24e
SQL
hiro1173/glossary
/modules/glossary/sql/mysql.sql
UTF-8
1,835
3.296875
3
[]
no_license
# -------------------------------------------------------- # Table structure for table {prefix}_{dirname}_category` # -------------------------------------------------------- CREATE TABLE `{prefix}_{dirname}_category` ( `categoryid` int(4) unsigned NOT NULL auto_increment, `parentid` int(4) NOT NULL default '0', ...
true
979ad8ae3669aa87324a48bb9f92f3118366c259
SQL
elangan/ilmarinen
/data/queries.sql
UTF-8
302
3.71875
4
[]
no_license
-- Get available inventory SELECT inv.id, inv.item_name, inv.unit_price, (inv.quantity - SUM(COALESCE(alloc.quantity, 0))) AS avail_qty FROM inventory AS inv LEFT JOIN job_allocation AS alloc ON inv.id = alloc.inventory_id GROUP BY inv.id HAVING (inv.quantity - SUM(COALESCE(alloc.quantity, 0))) > 0;
true
25e9093b4c71a88da472a42ffe9e750ba16d6db3
SQL
daoleen/SpringLearning
/SpringTransaction/target/classes/schema.sql
UTF-8
308
3.09375
3
[]
no_license
CREATE TABLE BOOK ( ID INT NOT NULL AUTO_INCREMENT , NAME VARCHAR(60) NOT NULL , YEAR INT NOT NULL, PAGES_COUNT INT, CREATED_AT DATE, -- for demonstrating purposes only (@Temporary) VERSION INT NOT NULL DEFAULT 0, -- for optimistic concurrency (@Version) PRIMARY KEY (ID) );
true
d1ed322f171a74c5c2887ad60ee44320a9013cb2
SQL
deepak-palanichamy/dynamo-framework
/dynamo-modules/dynamo-organization/dynamo-organization-lib/src/main/db/postgres/v0.13.0/dynamo_organization.sql
UTF-8
9,934
3.421875
3
[]
no_license
CREATE SCHEMA IF NOT EXISTS dynamo; DROP SEQUENCE IF EXISTS dynamo.dynamo_org_organization_seq; CREATE SEQUENCE dynamo.dynamo_org_organization_seq INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 1 CACHE 1; DROP SEQUENCE IF EXISTS dynamo.dynamo_org_group_seq; CREATE SEQUENCE dynamo.dynamo_org_gr...
true
29f86d64d908f71bd86ff69d33d5ae9f8c7efceb
SQL
ahmadlo/projetWebDjango
/djangodb .sql
UTF-8
43,218
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Mar 10 Mai 2016 à 20:24 -- 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
890cd43acd5fdb05953a715b9cf50fbf5dcc3a74
SQL
EurekaSolutions/sistemanc
/compras/edgar.sql
UTF-8
7,756
3.9375
4
[]
no_license
CREATE TABLE ramas ( id serial NOT NULL, -- Clave primaria. nombre character varying(255) NOT NULL, -- Nombre de la rama descripcion text, -- Informacion complementaria CONSTRAINT rama_pkey PRIMARY KEY (id), CONSTRAINT rama_nombre_key UNIQUE (nombre) ) WITH ( OIDS=FALSE ); ALTER TABLE ramas OW...
true
7950c6ef48e1f191713885a3aa2a923dcae93eb0
SQL
jioGRAPHI/find-dining
/database/triggers/photocomment.sql
UTF-8
2,164
3.265625
3
[ "MIT" ]
permissive
delimiter // --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- PhotoComment Triggers -- drop trigger if exists add_photo_to_comment; create trigger add_photo_to_comment after insert on photocomme...
true
16de72c84b665acfc45888ea102296373d980a91
SQL
rizkysyarif/Loopback-3
/catalog_lb3.sql
UTF-8
4,141
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 03 Des 2019 pada 20.54 -- Versi server: 10.4.6-MariaDB -- Versi PHP: 7.1.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
57072ea68902d16f03008521e3ce8f4b3a9604cd
SQL
vkscorpio3/ATG_TASK
/DAS/sql/db_components/oracle/create_sql_jms_ddl.sql
UTF-8
3,443
2.921875
3
[ "Apache-1.1", "Apache-2.0", "BSD-2-Clause" ]
permissive
-- @version $Id: //product/DAS/version/10.0.3/templates/DAS/sql/create_sql_jms_ddl.xml#2 $$Change: 651448 $ create table dms_client ( client_name varchar2(250) not null, client_id number(19,0) null ,constraint dms_client_p primary key (client_name)); create table dms_queue ( queue_name varchar2(250) null, qu...
true
7c27b388253a75b947cd4b13829d379b6a95f747
SQL
lizxing/seckill-demo
/sql/test.sql
UTF-8
1,320
3.140625
3
[]
no_license
-- ---------------------------- -- Table structure for goods -- ---------------------------- DROP TABLE IF EXISTS `goods`; CREATE TABLE `goods` ( `id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, `goods_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, ...
true
5f4d9a7e8a2a7030a72f14c2ce5ce0cd534c54d9
SQL
vorasagar7/SpotLightProducts-An-E-commerce-Platform
/Database/dbo_SpotLightProducts/phpMyAdmin_StoredProcedures/Dashboard/sp_get_All_Products_For_A_Seller.sql
UTF-8
338
3.578125
4
[]
no_license
DELIMITER $$ CREATE PROCEDURE sp_get_All_Products_For_A_Seller( IN p_seller_Id integer ) BEGIN SELECT p.Product_Name, p.Model_Id, p.Description, ps.price, ps.quantity FROM tb_products p INNER JOIN tb_productseller ps ON p.Id = ps.Product_Id WHERE ps.Seller_Id = p_seller_Id AND p.Is_Deleted = 0 AND ps.Is_D...
true
ff322eb410be840dfc5c961ead264c37d628a2e3
SQL
simonborer/auto-ta
/assignments/Lab 5/Lab5-n01304390-Raymond Giang.sql
UTF-8
3,463
4.25
4
[]
no_license
/* Lab 5 Name: Raymond Giang Student Number: n01304390 */ /* 1. Create 3 tables. Each should have a primary key, and a foreign key that references one of your other tables' primary key. Each should have 4 columns. Use 4 different data types. Use at least 2 kinds of constraint besides primary and for...
true
a880b5a8de0af9affd7bdccf1b12f6a627b51f59
SQL
web2solutions/dbDemo
/sql/gridMaker.sql
UTF-8
1,782
3.265625
3
[]
no_license
use MAPTEST; IF OBJECT_ID('dbo.gridmaker_table', 'U') IS NOT NULL DROP TABLE dbo.gridmaker_table; CREATE TABLE dbo.gridmaker_table( gridmaker_table_id INT not null Identity(1,1), field_id integer default 0, table_name varchar(300) NOT NULL, grid_name varchar(max) NOT NULL, --grid_numb...
true
0e24c4a0ddd17bdda5e93d8dd1d24a23c75fda61
SQL
saisandeepvaddi/DB_Fall16_Project
/Stored_procedure-1.sql
UTF-8
755
3.28125
3
[]
no_license
DROP PROCEDURE Customers_Mem_Curr_Status; CREATE or replace PROCEDURE Customers_Mem_Curr_Status As this_c_Id CUSTOMER.CUSTOMER_ID%TYPE; this_c_FName CUSTOMER.FNAME%TYPE; this_c_LName CUSTOMER.LNAME%TYPE; CURSOR RES_SET IS SELECT C.Customer_Id,C.Fname,C.Lname FROM CUSTOMER C WHERE C.MEMBERSHIP_END_DT <= trunc(SYS...
true
ba6caefff3e38f81b0ecee1e732d5633b212ebc0
SQL
soorya-ns/Empl_Portal
/EmpPortal/src/main/resources/CREATE_SCRIPT.sql
UTF-8
561
3.09375
3
[]
no_license
/*Create 'emp_portal' Database*/ --DROP DATABASE IF EXISTS emp_portal; CREATE DATABASE emp_portal; USE emp_portal; CREATE TABLE USER ( id bigint not null auto_increment, username varchar(255), password varchar(255), first_name varchar(255), last_name varchar(255), gender varchar(255), dob varchar(255), primary k...
true
91a66757562a9fde3776e2a31956a9626e97f47f
SQL
adrianb13/ReactRedux-Stocks
/models/lib/seeds.sql
UTF-8
600
3
3
[]
no_license
use stocktracker_db; ALTER TABLE Users CHANGE COLUMN createdAt createdAt datetime NOT NULL DEFAULT CURRENT_TIMESTAMP; ALTER TABLE Users CHANGE COLUMN updatedAt updatedAt datetime NOT NULL DEFAULT CURRENT_TIMESTAMP; ALTER TABLE Stocks CHANGE COLUMN createdAt createdAt datetime NOT NULL DEFAULT CURRENT_TIMESTAMP; ALTER...
true
a018224faee754433d09777ceeacc3abb00e394d
SQL
juanka1995/ingenieria_informatica_etsiit
/AÑO 2/fundamentos_de_bases_de_datos/Relaciones de Problemas/Seminarios/S2S4/Ejercicios Create Table/crea5.sql
UTF-8
708
3.125
3
[]
no_license
create table año( año number(4) primary key ); create table tema( tema varchar(20) primary key ); create table titulo( titulo varchar(30) primary key, tema references tema(tema) ); create table copia( id number(5) primary key, sist_repr varchar(10), titulo references titulo(titulo), año references año(año) ); creat...
true
ea8dfdd9d418041ea476850d6ed34474c73e5746
SQL
JonathanRH07/Control-de-versiones
/DB ICAAVweb/Suite_mig_demo/Stored_Procedures/sp_rep_pagos_forma_pago_c.sql
UTF-8
2,181
3.609375
4
[]
no_license
DELIMITER $$ CREATE DEFINER=`suite_deve`@`%` PROCEDURE `sp_rep_pagos_forma_pago_c`( IN pr_id_grupo_empresa INT, IN pr_id_sucursal INT, -- IN pr_id_moneda INT, IN pr_id_cliente INT, IN pr_fecha_ini VARCHAR(10), IN pr_fecha_fin VARCHAR(10), OUT pr_message VARCHAR(500) ) BEGIN /*...
true
b6997ba44de8d444effeb2bea9ce22b72ff8720c
SQL
LeeSungRyul/KD_AI
/Fusion_Project/Source_Code/DataBase/Databases_code.sql
UTF-8
1,783
3.734375
4
[]
no_license
CREATE DATABASE if NOT EXISTS mydb DEFAULT CHARACTER SET utf8 COLLATE UTF8_GENERAL_CI; USE mydb; CREATE TABLE if NOT EXISTS users( user_id INT(10) AUTO_INCREMENT, email VARCHAR(50) UNIQUE, hashed_pwd BINARY(60) NOT NULL, company_name VARCHAR(35) NOT NULL, category VARCHAR(20) NOT NULL, roles VARCHAR(20) NOT NULL ...
true
1acfea38b21b7735c370b4d82f59a3de476f5f5d
SQL
wbrxcorp/playground
/jee/src/main/resources/db/playground/migration/V0003__Crawler.sql
UTF-8
447
3.265625
3
[]
no_license
create table urls( id varchar(64) primary key, url text, canonical_url_id varchar(64) default null, content mediumtext, created_at datetime ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; create table urls_tags( url_id varchar(64) not null, tag varchar(64) not null, primary key(url_id,tag) ) ENGINE=MyISAM DEF...
true
ea5c2a9e0dc7c43b634fabd737cdb7d9fd6321ac
SQL
thona-seguros/Repositorio-Sicas
/Objetos-BD/Paquetes/OC_ADMON_RIESGO_SINIESTROS.SQL
UTF-8
9,429
2.796875
3
[]
no_license
CREATE OR REPLACE PACKAGE SICAS_OC.OC_ADMON_RIESGO_SINIESTROS IS PROCEDURE VALIDA(P_CODCIA NUMBER, P_CODEMPRESA NUMBER, P_ID_PROCESO NUMBER, P_IDPOLIZA NUMBER, P_COD_ASEGURADO NUMBER,...
true
bb3c93d1d1f5d56cc2f3597941ba7aa55e91efcb
SQL
omersevim/SEP-assignment-1
/assignment1/q11.sql
UTF-8
83
2.59375
3
[]
no_license
Select Name, ListPrice from Production.Product where Name like 'S%' order by Name
true
6dc44cd660b9f837b11cb6cb398f24ecf503fd85
SQL
KenCoder/quarter
/resources/sql/shakedown.sql
UTF-8
920
3.796875
4
[]
no_license
--name: create-tables! CREATE TABLE IF NOT EXISTS shakedowns ( id serial, scout_name varchar(100), site varchar(100), shake_date varchar(20), gear jsonb ); --name: drop-tables! DROP TABLE IF EXISTS shakedowns; --name: get-shakedown SELECT shakedown from shakedowns where id=:id; --name: get-shake...
true
904b9a8a66d1a345a08792d605cf6aa067e94e70
SQL
sunnybhawsar/Blood-Donation-Management
/dbblooddonor.sql
UTF-8
5,570
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 30, 2018 at 09:26 PM -- Server version: 5.5.32 -- 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
a460488654eabc35bb2b2a74b7882531a0fc4a22
SQL
robertmoss/foodfinder_main
/database/FF Release 2.1.4.sql
UTF-8
4,398
4.03125
4
[]
no_license
USE `food`; DROP procedure IF EXISTS `getLocationsBySearchCriteria`; DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `getLocationsBySearchCriteria`(tenantid int, _name varchar(100), state varchar(10), numToReturn integer, startAt integer) BEGIN set @searchCriteria = ''; IF LENGTH(_name)>0 THEN set @sear...
true
32fa001172df11a358eb78e6c2fe0986ce55eb3c
SQL
furstenheim/is_jsonb_valid
/sql/ref.sql
UTF-8
4,284
3.234375
3
[ "MIT" ]
permissive
-- root pointer ref -- match SELECT is_jsonb_valid('{"properties":{"foo":{"$ref":"#"}},"additionalProperties":false}', '{"foo":false}'); -- recursive match SELECT is_jsonb_valid('{"properties":{"foo":{"$ref":"#"}},"additionalProperties":false}', '{"foo":{"foo":false}}'); -- mismatch SELECT is_jsonb_valid('{"properties"...
true
9cc23716aff3ab233d3b8bcc4ca94d14cb6d9214
SQL
TheKingOfSky/mayi
/doc/mayi.sql
UTF-8
8,358
3.421875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.10.3 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2014 年 12 月 02 日 03:39 -- 服务器版本: 5.0.51 -- PHP 版本: 5.2.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- 数据库: `mayi` -- -- -------------------------------------------------------- -- -- 表的结构 `action` -- CREATE TABLE...
true
cc3b5104b55e06283253b8cd41d27aadcfe77316
SQL
ghkd7214/SQL
/3_SQL 실습.sql
UTF-8
7,265
3.75
4
[]
no_license
#날짜 : 2021/03/24 #이름 : 이지황 #내용 : SQL 실습하기 #직원 테이블생성 CREATE TABLE `MEMBER`( `uid` VARCHAR(10) PRIMARY KEY, `name` VARCHAR(10), `hp` CHAR(13), `pos` VARCHAR(10), `dep` TINYINT, `rdate` DATETIME ); #부서 테이블생성 CREATE TABLE `DEPART`( `depNo` TINYINT PRIMARY KEY, `name` VARCHAR(10), `tel` CHAR(12) ); #매출 테이블...
true
b9d525d20018f17f79eb0c665cb617690980192d
SQL
psavela/Angular_front_end
/sql/Dump20160112/friends_schema_friend.sql
UTF-8
2,448
3.140625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: localhost Database: friends_schema -- ------------------------------------------------------ -- Server version 5.7.10-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESUL...
true
b265afe3f4f78d37cf48b655c6e6d1cba2c3ce94
SQL
gitzqs/store
/document/store.sql
UTF-8
14,180
3.515625
4
[]
no_license
/* Navicat MySQL Data Transfer Source Server : aliyun Source Server Version : 50715 Source Host : rm-uf607sm2zgs0csj58o.mysql.rds.aliyuncs.com:3306 Source Database : store Target Server Type : MYSQL Target Server Version : 50715 File Encoding : 65001 Date: 2017-12-18 09:45:37 */ S...
true
8dafd6fedc5213e4ccac8c03c4f179adc875db89
SQL
bmatthews68/orm-bakeoff
/orm-bakeoff-ibatis/src/test/resources/create_database.sql
UTF-8
267
2.859375
3
[]
no_license
create table posts ( post_id char(36) not null, post_title varchar(50) not null, post_body varchar(4096) not null, primary key (post_id) ); create table post_tags ( post_id char(36) not null, tag_value varchar(50) not null, primary key (post_id, tag_value) );
true
e9a8691a54e86db64cab0cef7898e2f82a246a67
SQL
xie1776/xwta
/Databases/SQL/pa_member.sql
UTF-8
1,431
3.21875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50553 Source Host : localhost:3306 Source Database : xwta Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2017-09-12 10:55:44 */ SET FOREIGN_KEY_CHE...
true
63f171324112318c5c7cba8a979d17968741d724
SQL
Ilya1510/mipt_programming
/dataBase/sql-ex/071.sql
UTF-8
263
3.15625
3
[]
no_license
WITH MyG AS (SELECT * FROM Ships) select distinct maker from product where maker not in ( select distinct maker from product where model not in (select model from pc) and (type='pc') ) and maker in (select distinct maker from product where (type='pc') )
true
c7a6890c5dac4d54ef160dc6bcb2d6d071e4d01e
SQL
megi98/Python-101
/week09/task1.sql
UTF-8
1,840
3.421875
3
[]
no_license
CREATE TABLE languages( id INTEGER PRIMARY KEY, language VARCHAR(25), answer TEXT, answered INTEGER, guide TEXT ); INSERT INTO languages VALUES(1, 'Python', 'google', 0, 'A folder named Python was created. Go there and fight with program.py!'); INSERT INTO languages VALUES(2, 'Go', '200 OK',...
true
ccefeabf5c5d8b9e0f422b261a9010f46b46fb0a
SQL
KalyanLazair/PracticaBBDD
/discografica.sql
UTF-8
3,053
3.25
3
[]
no_license
DROP DATABASE IF EXISTS discografica; CREATE DATABASE discografica; USE discografica; -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 18-01-2019 a las 03:35:46 -- Versión del servidor: 10.1.35-MariaDB -- Versión de PHP: 7.2.9 SET SQL_MODE = "NO...
true
0826506962719f54b4306d7c5212d8fbe762aed4
SQL
skinfrakki/crap
/mysql/StoredProcs/rudixStoredProcMySQLv3.sql
UTF-8
1,380
3.453125
3
[]
no_license
DELIMITER // USE `ADMIN`// DROP PROCEDURE IF EXISTS `proc_IN`// CREATE DEFINER=`root`@`localhost` PROCEDURE `proc_IN`(IN DNIS VARCHAR(20), IN MSISDN VARCHAR(20), IN AVPAIR1 VARCHAR(20), IN AVPAIR2 VARCHAR(20), IN GROUPID VARCHAR(20), OUT DNS1 VARCHAR(15), OUT DNS2 VARCHAR(15), OUT AUTHSTAT VARCHAR(100)) COMMENT ...
true
4460708a5c2d569426a40457677ebde53109281f
SQL
kid2682/SMZDM
/install/Sql_data/create_table.sql
UTF-8
19,435
3
3
[]
no_license
-- -------------------------------------------------------- -- Host: 221.12.127.62 -- Server version: 5.0.45 - Source distribution -- Server OS: redhat-linux-gnu -- HeidiSQL Version: 7.0.0.4331 -- ------------------------------------------------------...
true
05539c4197455c12da17cc683864939a91d16780
SQL
sfsu-joseortiz-csc675-775/python_mysql
/insert.sql
UTF-8
2,333
2.734375
3
[]
no_license
/* INSERT Genre */ INSERT INTO Genre (description) VALUES ('Rock'); INSERT INTO Genre (description) VALUES ('Jazz'); INSERT INTO Genre (description) VALUES ('Metal'); INSERT INTO Genre (description) VALUES ('Alternative & Punk'); INSERT INTO Genre (description) VALUES ('Pop'); /* INSERT Artist */ INSERT INTO Artist (n...
true
9a3a5388530e1162fbffa47013ed6eec11ba506b
SQL
rafaele85/solo-messenger
/postgresql/create-table-message.sql
UTF-8
626
3.90625
4
[]
no_license
CREATE TYPE TYPE_MESSAGETYPE AS ENUM ('message', 'friendrequest'); create table "message" ( id SERIAL PRIMARY KEY, fromid bigint NOT NULL, toid bigint NOT NULL, message text not null, createdat TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP, updatedat TIMESTAMP WITH TIME ZONE, issee...
true
a96391a456996274e468ab30bc7825158f5a65f1
SQL
j-hua/psql_and_JDBC
/part1-files/q5.sql
UTF-8
1,320
3.859375
4
[]
no_license
-- Uneven workloads SET SEARCH_PATH TO markus; DROP TABLE IF EXISTS q5; -- You must not change this table definition. CREATE TABLE q5 ( assignment_id integer, username varchar(25), num_assigned integer ); -- You may find it convenient to do this for each of the views -- that define your intermediate steps. (But...
true
3f9fd3e1bdd3fd67dfd153e549d245c69a646e1e
SQL
ccc2512/gas
/upgrades/03092010full.sql
WINDOWS-1251
3,433
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.1 -- http://www.phpmyadmin.net -- -- : localhost -- : 03 2010 ., 18:36 -- : 5.1.44 -- PHP: 5.3.2 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- : `gas_db` -- -- -------------------------------------------------------- -- -- `gas` -- CREATE TABLE IF NOT EXISTS `gas` ( `id...
true
b367b1890794cb199c663c9e63ee13efe7f0eeeb
SQL
normalstory/spring2018
/temp/오라클 사용자 생성.sql
UTF-8
571
2.65625
3
[]
no_license
--비밀번호 기간 제한 해제 ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED; --사용자 생성 create user 유저명 identified by 비밀번호 default tablespace 테이블 스페이스 temporary tablespace 템프테이블 스페이지 quota unlimited on 테이블스페이스 quota 0m on system; --사용자 생성(pc03test) create user pc03test identified by java default tablespace users temporary...
true
246abe6d202d2bdf0c405df543411938600acf54
SQL
YovchoGandjurov/Databases-MySQL
/02.Basic CRUD/exercises.sql
UTF-8
3,172
4.28125
4
[]
no_license
USE soft_uni; #1. Find All Information About Departments SELECT * FROM departments ORDER BY department_id; #2. Find all Department Names SELECT name FROM departments ORDER BY department_id; #3. Find salary of Each Employee SELECT first_name, last_name, salary FROM employees ORDER BY employee_id; #4. Find Full Na...
true
707919f60313ae30a9b49dbb6379e18436511149
SQL
MarkTwoon/mybatis_redis
/src/main/resources/SQL/mybatis_redis.sql
UTF-8
1,143
3.03125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : mysqlDemo Source Server Type : MySQL Source Server Version : 50732 Source Host : localhost:3306 Source Schema : mybatis_redis Target Server Type : MySQL Target Server Version : 50732 File Encoding : 65001 Date: 24/05/2...
true
3cb3c2a99811781cf6abf94a28dcf45dca8eb04d
SQL
trienagarcia/iics-attendance-monitoring-sysytem
/others/attendance_monitoring-3_22.sql
UTF-8
12,485
3.296875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 22, 2020 at 04:18 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.1.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
738a6aa29423291429165fb7892c9536662279eb
SQL
andy-young/SQL-First-Principles
/ex01_Creating_Tables/practice_01/ex01_v02.sql
UTF-8
209
2.546875
3
[ "MIT" ]
permissive
-- Let's try with lowercase create table person ( id integer primary key, first_name text, last_name text, age integer, height integer, body_weight integer, eye_color text, skin_color text );
true
875314fb166ef1efe366a5e6f329369dfc5e5cb5
SQL
ueccssrnd/angbudgetmo
/api/data/schema.sql
UTF-8
1,229
3.53125
4
[]
no_license
/*drop database angbudgetmo;*/ create database angbudgetmo; use angbudgetmo; CREATE TABLE users( id int(11) auto_increment primary key, full_name varchar(64) not null, user_type varchar(64) not null, email varchar(128) not null ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /* sectors?? */ CREATE TABLE categories...
true
c49f3739bba1de1adc49373218afb0ef82403242
SQL
telefonicaid/fiware-cosmos-platform
/cosmos-api/conf/evolutions/default/7.sql
UTF-8
1,171
3.265625
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- -- Copyright (c) 2013-2014 Telefónica Investigación y Desarrollo S.A.U. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unles...
true
ba136a726853621235a8daeb694823b53de8caee
SQL
GreenImp/greenform
/Files/validation_rules.sql
UTF-8
2,221
2.8125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 3.4.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 02, 2012 at 11:51 PM -- Server version: 5.1.57 -- PHP Version: 5.2.17 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `web130-ee-2` -- -- --------------------------------...
true
f63b387169eacc57c6a573316ef380a5a672a143
SQL
Fqikang/VideoWeb
/videoweb.sql
UTF-8
41,397
3.140625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : xiaoming Source Server Version : 50553 Source Host : localhost:3306 Source Database : videoweb Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2021-03-19 19:09:06 */ SET FOREIGN_KEY_...
true
536ceb917bf1f79b04de5525c31837fdb5060bfa
SQL
cdesmarais/WebDB-Test
/WebDB/StoredProcedures/Common/dbo.marketing_report_no_demo.PRC
UTF-8
2,996
3.6875
4
[]
no_license
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Marketing_Report_No_Demo]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[Marketing_Report_No_Demo] GO create procedure dbo.Marketing_Report_No_Demo as set transaction isolation level read uncommitted SET NOCOUNT on ( select ...
true
6ed8c58e167ab8a046bda2102f0afc8bbf3ef34c
SQL
KaterynaTrushko/sql
/mod-7_UNION/SQLQuery5.sql
UTF-8
620
3.234375
3
[]
no_license
/*ЗАДАНИЕ 5. Напишите три SQL-запроса: 1. Выбирает brand_name из таблицы brands для brand_id=1 2. Выбирает merchant_name из таблицы merchants для merchant_id=1 3. Выбирает color_name из таблицы colors для color_id=1 Объедините результаты всех трёх запросов в один с помощью оператора UNION */ select brand_name ...
true
398dd743a4b4e680d4a688160a8a5ffd942af84e
SQL
akouzmohamed999/FONDATION_NORSYS
/src/test/resources/fondationSQL.sql
UTF-8
8,205
3.5
4
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.33, for debian-linux-gnu (x86_64) -- -- Table structure for table ACTIVITE -- DROP TABLE IF EXISTS ACTIVITE; CREATE TABLE ACTIVITE ( ID_ACTIVITE int(11) NOT NULL AUTO_INCREMENT, DATE_ACTIVITE date DEFAULT NULL, DATE_FIN date DEFAULT NULL, ETAT varchar(255) DEFAULT NULL, ...
true
4884d87986534baa425589423f20970d2f99f885
SQL
kirancrazy99/StockExchangeAnalaysis_Hive
/Hive/script3.sql
UTF-8
209
2.90625
3
[]
no_license
create table stocks_accurate as select company_name,min(trading_year) min_year,max(trading_year) max_year, min(trading_month) min_month,max(trading_month) max_month from stocks_features group by company_name
true
7c6d8dd2f5dc02d8f2081c1553bed95d290342f7
SQL
jftucker/sql
/manipulating_data/create_table_copy.sql
UTF-8
433
3.546875
4
[]
no_license
-- CREATE TABLE orders_archived AS -- SELECT * FROM orders -- INSERT INTO orders_archived -- SELECT * -- FROM orders -- WHERE order_date < '2019-01-01' \c sql_invoicing CREATE TABLE invoices_archived AS SELECT i.invoice_id, i.number, c.name AS client, i.invoice_total, i.payment_total, i.invoice_date, ...
true
c038f372606563723393f44518d021c8cfbe8b39
SQL
fstanchese/corporativo
/corporativo/SIAF/2.25.4 - RESPONSAVELPLANODEPAGAMENTO.sql
UTF-8
7,209
3.5
4
[]
no_license
SELECT COD_ALUNO_EXT, COD_PERIODO_LETIVO_EXT || COD_CURSO_EXT || COD_CAMPUS_EXT || COD_TURNO_EXT || SUBSTR(COD_HABILITACAO_EXT,1,4)||NUM_PERIODO AS COD_PLANO_EXT, COD_PERIODO_LETIVO_EXT, COD_CURSO_EXT, COD_HABILITACAO_EXT, COD_CAMPUS_EXT, COD_TURNO_EXT, NUM_PERIODO, COD_RESPONSAVEL_EXT, IDT_TPO_RE...
true
988bc5b825ee4cfc9c8291bfda7a4017c3426bbf
SQL
Potjiekos/Assignments
/week4/day14/SQL Lab/aggregate_functions.sql
UTF-8
1,127
4.84375
5
[]
no_license
-- Using SQL Lab tool: https://sql-lab.herokuapp.com/ -- -- Write the following SQL Queries: -- -- From the students table: -- 1- Find the number of students named 'John'. -- 2- List the `first_name`s that occur more than once in students, with the number occurrences of that name. -- 3- Refine the above query to list t...
true
4246de51a195e2d1dc99b5a7155c5c41133693ec
SQL
gavnis/DB_Museo
/museo.sql
UTF-8
13,127
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 04-10-2019 a las 18:42:58 -- Versión del servidor: 10.1.39-MariaDB -- Versión de PHP: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
eb46cdb7c852b9caf19f1bb7c8985fcbe7c37cff
SQL
soverc/writehive_server
/sql/schema/subcategories.sql
UTF-8
436
2.71875
3
[]
no_license
-- -- Table structure for table `subcategories` -- SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; CREATE TABLE IF NOT EXISTS `subcategories` ( `id` int(255) unsigned NOT NULL auto_increment, `category_id` int(255) default NULL, `label` varchar(125) default NULL, PRIMARY KEY...
true
3d356ed1d01482f0dc4d1084112a07aac160f5dd
SQL
adderly/cmoon
/memorypark/pop/mtls/tables_dyn.sql
UTF-8
681
3.125
3
[]
no_license
CREATE TABLE track ( id SERIAL, type int NOT NULL DEFAULT 0, -- 0: join 1: visit aname varchar(256) NOT NULL DEFAULT '', uname varchar(256) NOT NULL DEFAULT '', oname varchar(256) NOT NULL DEFAULT '', aid int NOT NULL DEFAULT 0, uid int NOT NULL DEFAULT 0, oid int...
true
9bf61f418cb1628f7bba9457eb346c32fb1461e8
SQL
danmaq/nue
/project/trunk/sql/tag/tree/selectExists.sql
UTF-8
96
2.640625
3
[ "MIT" ]
permissive
SELECT COUNT(NAME) > 0 AS EXIST FROM NUE_INDEX_TAG_TREE WHERE LOWER(NAME) = LOWER(:name);
true
4aa909f831f1737f7d5148007c501dc8595c4ff0
SQL
18757416607/Vegetables
/SQL/vegetables_2019-01-16.sql
UTF-8
26,680
3.359375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : 127.0.0.1 Source Server Type : MySQL Source Server Version : 50137 Source Host : 127.0.0.1:3306 Source Schema : vegetables Target Server Type : MySQL Target Server Version : 50137 File Encoding : 65001 Date: 16/01/2019...
true