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
4ecac4ec387b19607b6e24ec71db8d64debcf5f4
SQL
oveas/jzipcode
/component/admin/sql/install.mysql.utf8.sql
UTF-8
8,513
2.921875
3
[]
no_license
DROP TABLE IF EXISTS `#__jzc_config`; CREATE TABLE `#__jzc_config` ( `id` INT(11) NOT NULL AUTO_INCREMENT ,`config_item` VARCHAR(32) NOT NULL ,`config_value` VARCHAR(32) NOT NULL , PRIMARY KEY (`id`) , UNIQUE INDEX (`config_item`) ) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `#__...
true
c19053989bb92129b3f395107426f3e1f236a7cf
SQL
RajeshThallam/MIDS-W251-FINAL-PROJECT
/store/wiki_process_lookup_redirects.sql
UTF-8
3,875
4
4
[]
no_license
-- + The SQL preprocesses the historical raw wikipedia traffic dumps -- + The data is used to create MySQL a redirect page_lookups table used by -- hive and spark. -- + Download files from https://dumps.wikimedia.org/enwiki/latest/ -- https://dumps.wikimedia.org/enwiki/latest/enwiki-latest-page.sql.gz -- ...
true
9834bd80ce03273ccc5ae4217fd59092147a975f
SQL
thanhphanle/springboot-postgresql-sample
/db/tables/contraints.sql
UTF-8
205
2.6875
3
[]
no_license
ALTER TABLE m_bike ADD PRIMARY KEY (bike_id); ALTER TABLE m_producer ADD PRIMARY KEY (producer_id); ALTER TABLE m_user ADD PRIMARY KEY (user_id); ALTER TABLE m_user_bike ADD PRIMARY KEY (user_id,bike_id);
true
20ac78eb9b61f420be4cad1624b8c884f4928514
SQL
KriSWhitch/Databases-MicrosoftSQLServer-2021Q1-2
/lab5/1and2task.sql
WINDOWS-1251
531
2.859375
3
[]
no_license
use [MAV_UNIVERTMP]; SELECT [Auditorium]._, [Auditorium_Type]._ From Auditorium_Type Inner Join Auditorium On Auditorium._ = Auditorium_Type._; use [MAV_UNIVERTMP]; SELECT [Auditorium]._, [Auditorium_Type]._ From Auditorium_Type Inner Join Auditorium On Auditorium._ = Auditorium_Type._ And Auditorium_Type._ like ...
true
c862ad5e21d563ed3d6209ba14b65eb3a4c86471
SQL
ppedvAG/SQL-Programmierung-ppedv-Jul-2021
/SQL Programmierung Jul 2021/Basics/100_Except_INTERSECT.sql
ISO-8859-1
1,246
3.6875
4
[]
no_license
select customerid, companyname, country, city into KundenEU from customers where Country in ('Italy', 'France', 'Germany', 'Austria') select * from KundenEU update KundenEU set City = 'Dresden' where CustomerID = 'ALFKI' insert into KundenEU select 'AAAAA', 'Fa A', 'UK', 'London' --Ausgangsituation.. 2 hnliche Tab...
true
b37137e0be872a73c24921c56207d042935d0080
SQL
pmiodrag/dental-dashboard-dist
/scripts/smiletime_agenda.sql
UTF-8
371
2.75
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `smiletime` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `smiletime`; DROP TABLE IF EXISTS `agenda`; CREATE TABLE `agenda` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(200) NOT NULL, `start` varchar(45) NOT NULL, `end` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENG...
true
97579161f88df09dcb0fe584b95bd5f2000ecd37
SQL
bdalolmo/PL-SQL
/exercicio7.sql
ISO-8859-1
1,085
3.5
4
[]
no_license
/*Exerccios - Captulo 07 1. Crie um script para exibir o total de um contrato a partir do seu nmero (id), trate os erros possveis fornecendo as mensagens adequadas. Salve o exerccio em um arquivo chamado e7q1.sql. Informe o id do contrato: 1001 Total = 4500 Procedimento PL/SQL concludo com sucesso. I...
true
b49629e2168825e1a65a5cd001e53bae4884b051
SQL
pepikrastev/SoftUni--CSharp-DB
/MS SQL - September 2019/Exam - 20.10.2019/06.ReportsAndCategories.sql
UTF-8
130
3.46875
3
[]
no_license
SELECT r.[Description], c.Name FROM Reports AS r JOIN Categories AS c ON c.Id = r.CategoryId ORDER BY r.[Description], c.Name
true
7d804a001c789db188c16f4028ce9a2dcd07b154
SQL
YuanyuanQiu/LeetCode
/1445.sql
UTF-8
178
3.5625
4
[]
no_license
select sale_date, sum(case fruit when 'apples' then sold_num when 'oranges' then -1 * sold_num end) as diff from Sales group by sale_date order by sale_date
true
69ac1ab330c55a8fb24a3e6bcbaff08684ab98c7
SQL
saurabhshukla01/Best-wsbsite
/callupon-database/pt_category.sql
UTF-8
2,842
3.109375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.29, for Linux (x86_64) -- -- Host: localhost Database: petition_db -- ------------------------------------------------------ -- Server version 5.7.29 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;...
true
f45388a7d96a93a82ffc7197624b9d36f6edfa2b
SQL
hs9574/dbsql
/20201012_EXDRED.sql
UTF-8
489
2.765625
3
[]
no_license
학생 정보와 학생이 수강하는 교과목을 관리 하려고 한다 학생 정보로는 학번, 학생이름, 생년월일, 집주소, 폰번호, 집 전번을 관리하고 교과목으로는 과목명, 수강 대상학년, 교재정보 들을 관리 하려고 한다. 학생은 교과목을 수강하고, 수강이력을 관리해야 한다. 1. 재수강을 허용하지 않는 형태 2. 재수강을 허용하는 형태 1. 엔터티 추출, exerd로 엔터티 정의
true
6879cc90c7b267ea83abd596e142c46425de64f1
SQL
Rodolfod1/My_Employee_Tracker
/db/Mgmt_systDB.sql
UTF-8
1,036
4
4
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS Mgmt_systDB; CREATE DATABASE Mgmt_systDB; USE Mgmt_systDB; -- creating first table for department CREATE TABLE department( department_id INT AUTO_INCREMENT NOT NULL PRIMARY KEY, NAME VARCHAR (30) NULL ); -- creating first table for Role called RoleTable CREATE TABLE RoleTable( role_id INT...
true
df4ef0e85e533476da50efe64874d852123b0cc8
SQL
wu-weirdo/shopping-mall
/shopping-web/target/classes/db/migration/V3.4.2019.11.15__chain.sql
UTF-8
5,293
3.765625
4
[]
no_license
/** 供应链管理 **/ CREATE TABLE `chain_recipient_detail` ( `id` int(15) NOT NULL AUTO_INCREMENT , `chain_id` varchar(19) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '供应链id' , `goods_id` varchar(19) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '复用的商品id' , `ship...
true
84d222b7041c03cf3bc64f93f67a975fe6342fb2
SQL
bakink/DBA_Oracle
/system_event.sql
UTF-8
401
3.046875
3
[]
no_license
set lines 250 pages 1000 col Event format a35 col Waits format a15 col Timeouts format a10 col "Total Wait Time (s)" format 9,999,999,999,999,999 select event Event, to_char(round(total_waits)) Waits, to_char(round(total_timeouts)) Timeouts, round(time_waited_micro) "Total Wait Time (s)" fr...
true
92a70c411ce05fb9a66cb813517eeba39d5062fc
SQL
w2ak/bug-free-octo-waddle
/data/imports/11_company_type.sql
UTF-8
226
2.546875
3
[]
no_license
DROP TABLE IF EXISTS company_type; CREATE TABLE company_type( id integer, kind text, PRIMARY KEY (id) ); \copy company_type FROM 'company_type.csv' with (FORMAT 'csv', DELIMITER ',', HEADER true);
true
718a605d204125f973340608f2ec4de9119a5ea9
SQL
radtek/abs3
/sql/mmfo/bars/Sequence/s_survey_session.sql
UTF-8
948
2.703125
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Sequence/S_SURVEY_SESSION.sql =========*** R PROMPT ===================================================================================== PROMPT *** Create sequence ...
true
3c71d4f6ece371d52ae639be51a621ec6ed1b76e
SQL
ToborTheGreat/Repository01
/geo.sm_atp_workflow_exclude_bs_sectors.sql
UTF-8
1,685
2.890625
3
[]
no_license
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = off; SET check_function_bodies = false; SET client_min_messages = warning; SET escape_string_warning = off; SET search_path = geo, pg_catalog; ALTER TABLE ONLY geo.sm_atp_workflow_exclude_bs_s...
true
370dbb6cdf3d1e2c1744ea1a523ba167899ae08f
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/01073_blockSerializedSize.sql
UTF-8
1,556
3.046875
3
[ "Apache-2.0", "BSL-1.0" ]
permissive
select 'UInt8', blockSerializedSize(0); select 'Nullable(UInt8)', blockSerializedSize(toNullable(0)); select 'UInt32', blockSerializedSize(0xdeadbeaf); select 'UInt64', blockSerializedSize(0xdeadbeafdead); select 'Nullable(UInt64)', blockSerializedSize(toNullable(0xdeadbeafdead)); select ''; select 'String', blockSeri...
true
4d93b7d889cee60c683834da288298007361fe21
SQL
radtek/abs3
/sql/mmfo/barsaq/Table/aq$_tr_qt_g.sql
UTF-8
2,540
3.203125
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARSAQ/Table/AQ$_TR_QT_G.sql =========*** Run *** PROMPT ===================================================================================== PROMPT *** Create table AQ$...
true
b854c7a471c9d4edcf96a54e68c725ff25eecaa8
SQL
Isshon-Saha/Hospital-management-system
/hos_management.sql
UTF-8
2,756
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 02, 2017 at 08:13 AM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
true
243938467b5fcfd8b286724747eed5e20a25f453
SQL
zickrain/Final-project-Ead-2
/Online-game-shop-master/target/javaEE-1.0-SNAPSHOT/WEB-INF/classes/db/migration/V1_3__create_carts_table.sql
UTF-8
279
2.625
3
[]
no_license
CREATE TABLE IF NOT EXISTS carts ( cart_id serial PRIMARY KEY, amount integer NOT NULL, game_name varchar(255) NOT NULL, cost double precision NOT NULL, total_cost double precision NOT NULL, user_id integer NOT NULL );
true
9b721d732ac0a055ac24a7afd882a32222111d0e
SQL
MatheusAlcantaraDeLima/SiteComPHPeMysql
/comandoSQL/comandosSQL.sql
UTF-8
1,312
3.421875
3
[]
no_license
CREATE DATABASE pousada; USE pousada; CREATE TABLE funcionario( cpf_func BIGINT, nome_func VARCHAR(30), email_func VARCHAR(30), endereco_func VARCHAR(30), CONSTRAINT PK_cpf_func PRIMARY KEY(cpf_func) ); CREATE TABLE cliente( cpf_clie BIGINT PRIMARY KEY, nome_clie VARCHAR(30), email_clie VARCHAR(30), endereco_clie VARCH...
true
c979dec305055b843b54ae68909ab9af33fb79e9
SQL
Orderlee/tjoeun
/mysql/191209.sql
UTF-8
491
2.859375
3
[]
no_license
USE web; SHOW TABLES; DROP TABLE members; CREATE TABLE members( userid VARCHAR(50) PRIMARY key, passwd VARCHAR(50), username VARCHAR(50) ); INSERT INTO members VALUES ('kim','1234','김철수'); INSERT INTO members VALUES ('park','1234','박혜경'); INSERT INTO members VALUES ('lee','1234','이현수'); SELECT * FROM mem...
true
3d7f7f28a549f7ae81dc9f5282630c972929d0c1
SQL
Ota-090/challenge_repository
/SHON_SQL-challenge/sql_challenge/hw9_search.sql
UTF-8
2,365
4.5
4
[]
no_license
--List the following details of each employee: employee number, last name, first name, sex, and salary. SELECT e.emp_no as employee_number, e.last_name, e.first_name, e.sex,s.salary FROM hw9.employees e LEFT JOIN hw9.salaries s ON e.emp_no = s.emp_no; --List first name, last name, and hire date for employees who w...
true
b469bd46405012b630efcde54cd8d0bbdb1c87cf
SQL
kipopenshift/hunter
/src/main/webapp/resources/dms/create_counties_from_raw_data.sql
UTF-8
405
2.53125
3
[]
no_license
DECLARE BEGIN for rec in ( select r.CNTRY,r.CNTY from RCVR_RGN r group by r.CNTRY,r.CNTY order by r.CNTY asc) loop INSERT INTO CNTY(CNTY_ID,CNTY_NAM,CNTY_CPTL,HNTR_PPLTN,HS_STATE,MAP_DTS,CNTRY_ID,CNTY_CDE,CRET_DATE,LST_UPDT_DATE,CRTD_BY,LST_UPDTD_BY) VALUES( ( SELECT NVL(MAX(CNTY_ID)+1, 1) FROM CNTY),rec...
true
249fe753c1143e27f091b821a90961978d1fbb55
SQL
khanm1/bamazom
/bamazon.sql
UTF-8
1,464
3.375
3
[]
no_license
DROP DATABASE IF EXISTS bamazon; CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products ( item_id INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(100) NOT NULL, department_name VARCHAR(100) NOT NULL, price NUMERIC(10,2) NOT NULL, stock_quantity INT NULL, PRIMARY KEY(item_id) ); INSERT...
true
f1defb68fcd90f42a264b551009947d8e131854c
SQL
Wicho1313/Bases-de-datos
/PRÁCTICAS DE LABORATORIO/Ejercicio_01_LAB_2.sql
UTF-8
1,994
3.703125
4
[]
no_license
/*creacion tabla poblar tabla daclarar foreign key borrar empleo jefe deshabilitar restriccion fereign key borrar jefe habilitar restriccion fereign key */ CLEAR SCREEN REM ELIMINAR TODO EL EJERCICIO Drop table EMP; CLEAR SCREEN REM 27/feb/2017 REM INICIO create table EMP(empleado_id integer CONSTRAINT EMP_ID_PK PRIM...
true
cc11d78554fae34436c4a433ceaeb1b5cdbd9b3e
SQL
fusionPT/trainerplan
/tp_db.sql
UTF-8
6,683
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Mar 17, 2017 at 11:37 AM -- Server version: 5.6.28 -- PHP Version: 7.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `tp` -- -- --------------------------------...
true
c47fc37816cf7be9875a58896c86db2c328749e5
SQL
JoseDavid1/Clinica
/clinica.sql
UTF-8
15,465
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 08-11-2018 a las 07:10:34 -- Versión del servidor: 10.1.36-MariaDB -- Versión de PHP: 7.1.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
d8d5e7e83b112b20ef0b6656d1b6bf6bb7fed904
SQL
Drako0013/IcpcQuestMx2016
/IcpcQuest.sql
UTF-8
1,108
3.546875
4
[]
no_license
CREATE DATABASE IcpcQuest; USE IcpcQuest; CREATE TABLE Contestant( id INTEGER PRIMARY KEY AUTO_INCREMENT UNIQUE NOT NULL, twitter_id VARCHAR (15), twitter_name VARCHAR(15) UNIQUE, name VARCHAR(40), school VARCHAR(50), password VARCHAR(64) ); CREATE TABLE Challenge( id INTEGER PRIMARY KEY AUTO_INCREMENT UNIQUE ...
true
3db81245973ef16d8c9077a18eb17088802ae312
SQL
danieldiamond/gitlab-analytics
/transform/snowflake-dbt/models/snapshots/base/zuora_rate_plan_snapshots_source.sql
UTF-8
850
2.90625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
WITH source AS ( SELECT * FROM {{ source('snapshots', 'zuora_rateplan_snapshots') }} ), renamed AS( SELECT id AS rate_plan_id, name AS rate_plan_name, --keys subscriptionid AS subscription_id, productid AS product_id, prod...
true
3c6f90aaf1a5a6a77687a69e400a8eff35ac5454
SQL
Izhack/test_relatia
/db/test_relatia.sql
UTF-8
3,764
3.3125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jan 11, 2018 at 10:42 AM -- Server version: 5.7.19 -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
6f35c7af071741254c3e29ef01c9b5323b4c852a
SQL
aramaswami/Team_Tableau_Final_Project
/SQL_Datebase_code/Final_schema.sql
UTF-8
1,581
3.25
3
[]
no_license
-- Exported from QuickDBD: https://www.quickdatabasediagrams.com/ -- NOTE! If you have used non-SQL datatypes in your design, you will have to change these here. CREATE TABLE "tb_hours" ( "hours_amt" int NOT NULL, "hour_id" varchar NOT NULL, "date" date NOT NULL, "project_id" varchar NOT NULL...
true
855367ab01fd64b02f2b91ca5c739330a22d6990
SQL
peterxkl/DDL-DML-Base-2019-5-17-7-33-10-495
/dml.sql
UTF-8
253
2.8125
3
[]
no_license
-- 插入记录 insert into student values('001','张三',18,'男'),('002','李四',20,'女'); -- 修改记录 update student set age=22 where id='001'; -- 删除记录 delete from student where id='001'; -- 查询记录 selete * from student;
true
ec976d771ea96e8728515e66b03fa14dd3af66ce
SQL
yudarmd/Test-Bootcamp-Arkademy-B16K2
/no6a/db_no6a.sql
UTF-8
2,039
3.21875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50505 Source Host : localhost:3306 Source Database : db_no6a Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2020-03-21 21:45:11 */ SET FOREIGN_KEY_CHECKS=0; ...
true
37d29e57061888077d8e9fb55acd13d7fc628887
SQL
vivian-nakano/estudos-MySQL
/exercicios/exercicio2-innerjoin.sql
UTF-8
2,401
3.640625
4
[]
no_license
create database db_RH2; use db_RH2; create table tb_cargo ( id_cargo int not null auto_increment, cargo varchar (40), departamento varchar (40), andar int (1), primary key (id_cargo) ) engine = innodb; create table tb_funcionarios ( id_func int not null auto_increment, nome_func varchar (50), ...
true
09b2ade2872415708141e3ff54da55d114904ae3
SQL
nasirin1/Belajar
/Pulsaku-Untungku.sql
UTF-8
3,677
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 06 Jan 2020 pada 13.16 -- Versi server: 10.3.16-MariaDB -- Versi PHP: 7.1.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
5e422c9a1f9b458f9c56456f3743774f82a9c58d
SQL
Trupal-Singel/Training-Aug-21
/SQL/Trupal Singel/DAY 6 - Traning_plan_queries.sql
UTF-8
2,757
4.59375
5
[]
no_license
Use Tsql /* 1. Select employee details from employee table if data exists in incentive table ? */ SELECT * FROM Employees WHERE exists (SELECT * FROM Incentives) /* 2. Find Salary of the employee whose salary is more than Roy Salary. */ SELECT FirstName+' '+LastName AS FULL_NAME, Salary FROM Employees WHERE Salar...
true
67c69fbe1d79e958134409c3d964050a94b4bb15
SQL
andanhm/ordermanagement
/docs/order.sql
UTF-8
640
3.140625
3
[]
no_license
DROP DATABASE anglebrokerdb; CREATE DATABASE anglebrokerdb; CREATE TABLE tblCustomerOrder ( id INTEGER AUTO_INCREMENT, customer_id INTEGER, amount INTEGER, status VARCHAR(12), constraint pk_order primary key(id) ) ENGINE = InnoDB; CREATE TABLE tblInvoice ( id INTEGER AUTO_INCREMENT, order_...
true
4314246e9dd489d8f4d11775d920b32bf34b4c72
SQL
CollegeBoreal/INF1006-202-20A-01
/2.DQL/300116685/300116685.sql
UTF-8
1,765
4.21875
4
[]
no_license
--ma premiere requete-- SELECT * FROM sakila.actor; SELECT * FROM sakila.actor where first_name = 'JENNIFER ' ; --Imprimer le nom et le montant de la facture totale des personnes habitant la ville de Lubumbashi SELECT city, country FROM city JOIN country USING (country_id) WHERE ville like ' Lu% ' ; --Imprimer le nom...
true
8fdf6d922444fa8931e79a4ef562a91a141bb5a0
SQL
karobest3/NguyenThanhKienSQL
/B9_ThietKeVaTaoCoSoDuLieu/BT_B1_XacDinhKhoaNgoaiKhoaNoi.sql
UTF-8
798
3.796875
4
[]
no_license
drop database if exists my_data; create database my_data; use my_data; create table customer( customer_number int not null auto_increment primary key, customer_name varchar(30) not null, email varchar(35) not null unique, phone int not null unique ); create table transactions( transaction_number int not null auto_incre...
true
f1eb4b2cbba83bdb6669e607e273aed04d8addcc
SQL
julijakrsmanovic/itehprojekat
/baza.sql
UTF-8
6,102
3.328125
3
[]
no_license
/* SQLyog Community v13.1.6 (64 bit) MySQL - 10.4.11-MariaDB : Database - network ********************************************************************* */ /*!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
8da9f9e9e9a81b2de5818bde1d7a4880b6e98afc
SQL
reubenhub2017/bankapp
/script.sql
UTF-8
441
2.96875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS cse4701f19_project2; USE cse4701f19_project2; CREATE TABLE account ( account_no INT(11) NOT NULL AUTO_INCREMENT, name_on_account VARCHAR(100) NOT NULL, balance FLOAT NOT NULL DEFAULT '0', account_open_date DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (account_no) ) ENGINE=...
true
bcabc7adf7bbdc6f31c9394a416790b00c342e6d
SQL
HSXaaa/hsx06
/db_spring.sql
UTF-8
1,334
2.796875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50717 Source Host : localhost:3306 Source Database : db_spring Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2019-04-27 15:31:54 */ SET FOREI...
true
0c08dcd1f0598fff546ec87ddeab805c7b6d0dbe
SQL
felixniemeyer/lng-trades
/queries/in-and-out-flows.sql
UTF-8
517
3.578125
4
[]
no_license
with flows as ( select "Zone Origin" || " / " || "Installation Origin" as origin, "Zone Destination" || " / " || "Installation Destination" as destination, cast("Volume (origin m3)" as int) as outflow, cast("Volume (destination m3)" as int) as inflow from trades ) select node, sum(inflow) as inflow, s...
true
696e4b3fac44aacc2843050fd72229288d164ebd
SQL
PlainSightAnalytics/WCG
/WCG_DW/model/Views/_Speed Profiles.sql
UTF-8
836
2.578125
3
[]
no_license
 CREATE VIEW [model].[_Speed Profiles] AS ------------------------------------------------------------------------------------------ -- Author : Generated from Model -- Date Created : 06 Jul 2019 9:53:52 AM -- Reason : Semantic View for dbo.FactSpeedProfiles -- Modified By ...
true
242e8162dcf204dedb0cf7460b7ad57520e937c6
SQL
theyoshi1986/ecom-clickhouse-ddl
/docs_denormalized_data.sql
WINDOWS-1251
743
3.046875
3
[]
no_license
drop table default.docs_denormalized_data; create table default.docs_denormalized_data ( intDocID Int64, intFromDocID Int64, intTypeID Int64, intStatusID Int64, intOldDocID Int64, varGln Int64, intChainID Int64, varIndex DateTime, varCity String, varCompanyName String, varInnCode String, varKpp String, varGlnName Stri...
true
5376c60d6161cea38ea02f93da76b7169c6a1d3e
SQL
Transerve-PwC/municipal-services
/property-services/src/main/resources/db/migration/main/V20191121135040__eg_pt_property_ddl.sql
UTF-8
7,643
3.703125
4
[ "MIT" ]
permissive
DROP TABLE IF EXISTS eg_pt_document; DROP TABLE IF EXISTS eg_pt_address; DROP TABLE IF EXISTS eg_pt_owner; DROP TABLE IF EXISTS eg_pt_institution; DROP TABLE IF EXISTS eg_pt_property; DROP TABLE IF EXISTS eg_pt_property_audit; DROP TABLE IF EXISTS eg_pt_address_audit; --> Property table CREATE TABLE eg_pt_property ( ...
true
6029c1f98ff558b84ff6222c7fce217202b5094b
SQL
a-anatoliy/gotest
/init/db_schema.sql
UTF-8
507
3.125
3
[]
no_license
USE `test_lucky` ; -- ----------------------------------------------------- -- Table `test_lucky`.`articles` -- ----------------------------------------------------- DROP TABLE IF EXISTS `test_lucky`.`articles` ; CREATE TABLE IF NOT EXISTS `test_lucky`.`articles` ( `id` TINYINT(1) UNSIGNED NOT NULL AUTO_INCREMENT, ...
true
2c0b266b34b0736c2b224848802f2af7995f89b2
SQL
fandashtic/arc_chennai
/Sivabalan-SQL/SQL_STORED_PROCEDURE/sp_HandHeldLog.sql
UTF-8
634
3.5625
4
[]
no_license
Create Procedure dbo.sp_HandHeldLog (@FromDate DateTime, @Todate DateTime) As Begin Set DateFormat DMY Set @FromDate = dbo.StripTimeFromDate(@FromDate) Set @Todate = dbo.StripTimeFromDate(@Todate) Select I.LogID, I.LogID, I.SalesmanID, S.Salesman_Name [Salesman Name], Cast(I.CreationDate as nvarchar) [CreationDa...
true
287d385cb8b495176ddea207d1ae3fe256c2e38b
SQL
infoshareacademy/jdsz1-superkret
/praca_grupowa/SK-JDSZ1SK-24.sql
UTF-8
2,268
4.0625
4
[]
no_license
/*-JDSZ1SK-24--Funnel: jakie są % przejścia pomiędzy pozczególnymi etapami? przykład: 1) nowy: 100% 2) analiza - zaakceptowany: 80% - odrzucony 10% - drop off: 10% 3) odpowiedź linii: - akceptacja 40% (z wszystkich które przeszły z poprzedniego etapu), 32% (z wszystkich) - odrzucenie 50% (z wszystkich które przeszły z ...
true
64811f239b23440f5c9fc4ededec9814d580c611
SQL
pbrinks/cs342
/07sql/lab07_2.sql
UTF-8
1,406
4.125
4
[]
no_license
-- Paige Brinks -- cs 342 -- lab 7 part 2 -- 3/17/2017 create MATERIALIZED view birthday_czar2 AS select firstName || ' ' || lastName as name, TRUNC(MONTHS_BETWEEN(SYSDATE, birthdate)/12) as age, birthdate from Person; --a. select * from birthday_czar2 where birthdate >= '01-JAN-1961' and birthdate <= '31-D...
true
74695be40993552939d97d729378db38a34827a1
SQL
Vyachee/prbandroid032021
/api_contacts.sql
UTF-8
5,975
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Mar 21, 2021 at 11:09 PM -- Server version: 10.3.22-MariaDB -- PHP Version: 7.3.17 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET...
true
5a96f8fbcb17cec835ee5faaf555152bf5ca1e28
SQL
kevlabs/bootcampx
/4_queries/12_name_teachers.sql
UTF-8
230
3.5
4
[]
no_license
SELECT DISTINCT t.name, c.name FROM assistance_requests AS a_r JOIN teachers AS t ON a_r.teacher_id = t.id JOIN students AS s ON a_r.student_id = s.id JOIN cohorts AS c ON c.id = s.cohort_id WHERE c.name = 'JUL02' ORDER BY t.name;
true
85eaea4679b46bf1b7a5f3bfa11b956cda7c9645
SQL
thitrananhn/assignment-4
/invoiceQueries.sql
UTF-8
4,137
3.734375
4
[]
no_license
SET SQL_SAFE_UPDATES = 0; /* 1) A query to retrieve the major fields for every person; */ SELECT * FROM Person; /* 2) A query to retrieve the email(s) of a given person */ SELECT email FROM Email where personKey = '2'; /* 3) A query to add an email to a specific person */ INSERT INTO Email(personKey, email) VALUES (4, ...
true
9a4d2a7d9e9e514cb1f9621380108a8392ed1fc9
SQL
birdnmax/bike_shop
/db/Get_Cart_Product_By_User_Id.sql
UTF-8
146
3.28125
3
[]
no_license
select c.id, b.price, b.name, b.img_url, b.description, c.date_added from cart as c join bike_list as b on c.bike_id = b.id where user_id = ${id}
true
b82484a37488263bdae0ac0405d41a1946a5702b
SQL
AliNisarAhmed/postgres-exercises
/aggregates/12.sql
UTF-8
777
4.46875
4
[]
no_license
-- Produce a list of the total number of slots booked per facility per month in the year of 2012. -- In this version, include output rows containing totals for all months per facility, and a total for all months for all facilities. -- The output table should consist of facility id, month and slots, sorted by the id...
true
2462bacef9d4d773c1d02a2176a0ec84d06feee4
SQL
CUBRID/cubrid-testcases
/sql/_23_apricot_qa/_01_sql_extension3/_04_mutitable_update_delete/_01_multi_table_update/_01_join_data_type/cases/multi_update_monetary.sql
UTF-8
3,649
4.34375
4
[ "BSD-3-Clause" ]
permissive
--TEST: update 2 tables with monetary type column for join condition, with composed index create table md_monetary1(id1 monetary, col1 timestamp not null default CURRENT_TIMESTAMP); insert into md_monetary1 values(11111.11111, '2011-09-01 12:12:12'), (22222.22222, '2011-09-01 12:12:13'), (333333.33333, '2011-09-01 1...
true
5e51fb9a5bcb6cfa33f60185241e762446b96bd2
SQL
ConstantTeen/sql-labs
/lab2/lab2.sql
UTF-8
4,104
4.3125
4
[]
no_license
-- не принята -- Симонов Константин -- группа 6103 -- вариант 9 -- Л. р. No2. Выборка данных. -- Один из запросов надо ​ написать двумя способами​ и -- объяснить, какой из вариантов будет работать быстрее и почему. -- Создать упорядоченные списки: -- 1) сотрудников с указанием названия отдела, должности и оклада; se...
true
57c56161f66e347b6854874d828576fbcb562562
SQL
DestinGit/Cinescope2017-java
/src/pss.sql
UTF-8
8,472
3.578125
4
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS `cinescope2017`.`artisteInsert`$$ CREATE DEFINER=`root`@`localhost` PROCEDURE `cinescope2017`.`artisteInsert`(IN asNom VARCHAR(50)) BEGIN INSERT INTO artiste(NOM_artiste) VALUES(asNom); END $$ DELIMITER ; DELIMITER $$ DROP PROCEDURE IF EXISTS `cinescope2017`.`artisteSelectAll...
true
4e268d9b0167cdebe451129b5414365656978980
SQL
SanmiguelLabco/ProyectoUsb
/Wireframes-U/Bd/FUNCIONARIOS.sql
UTF-8
2,910
3.28125
3
[]
no_license
/* ---------------------------------------------------- */ /* Generated by Enterprise Architect Version 12.0 */ /* Created On : 12-jul-2017 05:35:29 p.m. */ /* DBMS : DB2 */ /* ---------------------------------------------------- */ /* Create Tables */ CREATE TABLE DB2ADMIN.NOMPERSONAL ( HVCODIG...
true
44ffaa3af51cd52ed992d04637c299618c4a420a
SQL
seongpyoHong/flo-api
/src/main/resources/db/migration/V1__Create-table.sql
UTF-8
876
2.828125
3
[]
no_license
-- -- V2: Create Items TABLE -- -- CREATE TABLE album ( album_id BIGINT NOT NULL AUTO_INCREMENT, album_title VARCHAR(50) NOT NULL, locale_id BIGINT NOT NULL, song_id BIGINT NOT NULL, PRIMARY KEY (album_id) ) DEFAULT CHARSET=utf8mb4; CREATE TABLE locale ( locale_id BIGINT NOT NULL AUTO...
true
c63f17dd6384ede6575ce8ded9a30e2fecac99bc
SQL
hlj1010/db_systems_project
/docs/Database/Queries/query_2_db1.sql
UTF-8
203
3.1875
3
[]
no_license
select d.Doctor_Name, i.symptom from Patient as p join Doctor as d on d.Doctor_ID = p.Doctor_ID join Illness as i on i.Illness_ID = p.Illness_ID where p.Patient_Name = 'Erika Heuberger' and p.Phone = '2449717107'
true
1c9e134eb1a216763da97042dc942a8f0a02d168
SQL
NitinMadaan/databootcamp-homework
/Unit7- SQL/Schema_General.sql
UTF-8
1,534
3.296875
3
[]
no_license
-- CREATE THE TABLE STRUCTURE AND THEN IMPORT THE CSV CREATE TABLE DEPARTMENTS ( DEPT_NO VARCHAR(30) ,DEPT_NAME VARCHAR(30) ); SELECT * FROM DEPARTMENTS; -- CREATE THE TABLE STRUCTURE AND THEN IMPORT THE CSV CREATE TABLE DEPT_EMP ( EMP_NO INT ,DEPT_NO VARCHAR(30) ...
true
fac2638a68c36d93c99e479761061b3f984c0e7c
SQL
gxlioper/ecology
/data/Oracle/sql201802050401.sql
GB18030
9,398
2.578125
3
[]
no_license
delete from HtmlLabelIndex where id=382393 / delete from HtmlLabelInfo where indexid=382393 / INSERT INTO HtmlLabelIndex values(382393,'Ŀе͡е塿ڡһϸֶʱҲϸֶΣֶζӦϵ') / delete from HtmlLabelIndex where id=382394 / delete from HtmlLabelInfo where indexid=382394 / INSERT INTO HtmlLabelIndex values(382394,'ϸֶʱԤϢҲϸֶΣֶζӦϵ') /...
true
e0a4115a05e07db4526b24b9166b5a51a79c3327
SQL
Gustavorozo/accesoriossimple
/database/ciclology.sql
UTF-8
9,804
3.421875
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Sat May 22 21:15:02 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
bee808f41cffa8cfba4d6a8ee88a107e6dab90f7
SQL
yinondouchan/TDS
/SQL Scripts/Create Tables - Copy.sql
UTF-8
1,311
3.46875
3
[]
no_license
CREATE TABLE IF NOT EXISTS User_Maps( user_guid varchar(50) NOT NULL, layer_order int NOT NULL, map_name varchar(500) NULL, min_zoom int NULL, max_zoom int NULL, centerX float NULL, centerY float NULL, PRIMARY KEY(user_guid,map_name, layer_order) ); CREATE TABLE IF NOT EXISTS Routes( route_guid varchar(50...
true
416aeaa9c1a56f5037fab3d369fdf6531c839d81
SQL
marijana97etf/eCensus_eclipse
/resources/1. zadaca/Perzistentni Sloj/PregledPopisniceDomacinstva.sql
UTF-8
214
3.015625
3
[]
no_license
SELECT pitanje.Sadrzaj, odgovor.Odgovor FROM popisnica_domacinstvo_odgovor odgovor INNER JOIN popisnica_domacinstva_pitanje pitanje on pitanje.IdPitanja = odgovor.IdPitanja; SELECT * FROM clan_domacinstva clanovi;
true
1d00157d2d96b7bc62fc942ce1ad5d4a1ba16a66
SQL
orenAzuz/ganshmuelgreen
/Provider_payment/sql/billingdb.sql
UTF-8
1,035
3.84375
4
[]
no_license
-- -- Database: `billdb` -- CREATE DATABASE IF NOT EXISTS `billdb`; USE `billdb`; -- -------------------------------------------------------- -- -- Table structure -- CREATE TABLE IF NOT EXISTS `Provider` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyI...
true
c1adef311f4ed71f7906091caf80914f0d967d8f
SQL
qinxuefei/my_sql
/coupon order detail for fee.sql
UTF-8
1,998
3.75
4
[]
no_license
SELECT coalesce(a.parent_id,a.id) parent_id, a.webuser_id webuser_id, a.order_status order_status, a.order_create_time order_create_time, a.order_complete_time order_complete_time, a.shop_id shop_id, a.shop_name shop_name, b.matnr matnr, b.sku_id sku_id, b....
true
91259579db4d7fe35a4819cc95e05e9cbe8ac889
SQL
mym786/NLP
/MySQL_data/nlp_simplechinese_stopwords.sql
UTF-8
30,843
2.6875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- 主機: 127.0.0.1 -- 產生時間: 2018-12-18 11:00:28 -- 伺服器版本: 10.1.34-MariaDB -- PHP 版本: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE...
true
151cbea70ead1886c127f0aff80a21c8894ea916
SQL
rayanc/Pecuniaus
/Database/Stored Procedures/avz_cc_spSaveEvaluationTask.sql
UTF-8
679
2.953125
3
[]
no_license
drop procedure if exists avz_cc_spSaveEvaluationTask; delimiter $$ create procedure avz_cc_spSaveEvaluationTask (iNtasktypeid bigint, iNmerchantId bigint, iNcontractId bigint, iNscore double, iNroundedscore double, iNfinalletter varchar(2), iNiscompleted int, iNworkflowid bigint, iNrawdata text,iNrequestxml text) b...
true
52d8b26371ce6a08dc819819fbbb6d187fc0c5fb
SQL
sonicboy7519/Integra
/Base de Datos/Script/dbsistema.sql
UTF-8
20,173
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3306 -- Tiempo de generación: 25-02-2021 a las 00:02:28 -- Versión del servidor: 10.4.10-MariaDB -- Versión de PHP: 7.4.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:...
true
2595e73dd4bee2b72b9a0a59b738c31839f71fc0
SQL
thalisonwilker/sample-job-crud
/querys.sql
UTF-8
418
2.828125
3
[ "MIT" ]
permissive
create table job( id integer primary key auto_increment, job_title varchar (255), job_description text, user_id integer, job_author varchar (255), job_date varchar(100) ) create table users( id integer primary key auto_increment, user_email varchar (255), user_password text, user_name varchar(255) ) insert ...
true
65775249f7c0bd2ba5ef5d9b323f7682574edc4d
SQL
VlodkoMr/crypto-club
/server/prisma/migrations/20210722103550_init/migration.sql
UTF-8
3,845
3.875
4
[]
no_license
-- CreateTable CREATE TABLE `rooms` ( `id` INTEGER NOT NULL AUTO_INCREMENT, `title` VARCHAR(255) NOT NULL, `symbol` VARCHAR(255) NOT NULL, `price_pct` FLOAT NOT NULL DEFAULT 0, UNIQUE INDEX `rooms.symbol_unique`(`symbol`), PRIMARY KEY (`id`) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unico...
true
599e9c124bae4a5631ca173c65e0e6160faa2c27
SQL
ViniciusAMedeiros/algamoney-api
/src/main/resources/db/migration/V02__criar_tabela_pessoa.sql
UTF-8
304
2.578125
3
[]
no_license
CREATE TABLE pessoa( codigo BIGINT(20) PRIMARY KEY AUTO_INCREMENT, nome VARCHAR(50) NOT NULL, ativo TINYINT(1) NOT NULL, logradouro VARCHAR(50), numero VARCHAR(50), complemento VARCHAR(50), bairro VARCHAR(50), cep VARCHAR(50), cidade VARCHAR(50), estado VARCHAR(50) )ENGINE=InnoDB DEFAULT CHARSET=utf8;
true
58416cea390d3b7a3f812c8db1fdfbf533b9dc38
SQL
runrey/OOP_Millionaire
/yernur.sql
UTF-8
6,213
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Июн 12 2020 г., 18:06 -- Версия сервера: 10.4.11-MariaDB -- Версия PHP: 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
8eb0f7fa579204add81ca7320a3e951052183d61
SQL
78526Nasir/URI-Online-Judge-Problem-Solution
/SQL Problem Solutions/2622.sql
UTF-8
166
2.96875
3
[]
no_license
-- Problem no: 2622 -- -- solution -- SELECT customers.name FROM customers INNER JOIN legal_person ON legal_person.id_customers = customers.id
true
dbbd2bafe982d4e6d382761eb90d6dbf1a594956
SQL
masteryang4/myflink
/src/main/java/com/ys/algo01/SQL/dwd_fact_order_info.sql
UTF-8
4,665
3.90625
4
[]
no_license
-- 订单事实表 drop table if exists dwd_fact_order_info; create external table dwd_fact_order_info ( `id` string COMMENT '订单编号', `order_status` string COMMENT '订单状态', `user_id` string COMMENT '用户id', `out_trade_no` string COMMENT '支付流水号', `create_time` ...
true
b7da193de0b682c84f4b9d706181da150a0b97ae
SQL
thetoemasher/sim-comps
/db/sub_query.sql
UTF-8
272
3.46875
3
[]
no_license
select bookinfo.id, bookinfo.book_id, bookinfo.author_id, authors.name, books.title from bookinfo join authors on bookinfo.author_id = authors.id join books on bookinfo.book_id = books.id where bookinfo.book_id = ( select id from books where title = 'Looking for Alaska')
true
498517b43ed0188efe713b423d3cd07474dc5366
SQL
kalitawojciech/ZSBD
/lab2/create_db.sql
UTF-8
1,610
3.625
4
[]
no_license
CREATE TABLE regions AS SELECT * FROM HR.regions; CREATE TABLE countries AS SELECT * FROM HR.countries; CREATE TABLE locations AS SELECT * FROM HR.locations; CREATE TABLE jobs AS SELECT * FROM HR.jobs; CREATE TABLE job_history AS SELECT * FROM HR.job_history; CREATE TABLE employees AS SELECT * FROM HR.employees; CREATE...
true
ac6b56d815e1e32d208249bc2d727008f497a777
SQL
leopallas/vieo
/java/ORION 11J/Workin3/workin-core/src/test/resources/schema/mysql/schema.sql
UTF-8
2,252
3.28125
3
[]
no_license
/* SQLyog 企业版 - MySQL GUI v8.14 MySQL - 6.0.11-alpha-community : Database - workin ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FORE...
true
b5d50b5b5da1f8ef6c0e7db57a8428fbdd8a0423
SQL
yddgit/python-webapp-sample
/schema.sql
UTF-8
1,728
3.484375
3
[ "Apache-2.0" ]
permissive
-- schema.sql -- help: -- Login MySQL: mysql -u root -p -- Execute Script: source /path/to/schema.sql drop database if exists test; create database test default charset utf8 collate utf8_general_ci; use test; create user if not exists 'www-data'@'localhost' identified by 'www-data'; -- grant select, insert, update,...
true
908963a39bd49d8773d64d3590738bb87678a1f8
SQL
black4309/coupong
/docs/DB_스키마.sql
UTF-8
2,304
4.3125
4
[]
no_license
-- 회원 CREATE TABLE `MEMBER` ( `MEMBER_UID` INT NOT NULL COMMENT '회원UID', -- 회원UID `ID` VARCHAR(30) NULL COMMENT '아이디', -- 아이디 `PASSWORD` VARCHAR(128) NULL COMMENT '암호', -- 암호 `NAME` VARCHAR(30) NULL COMMENT '이름' -- 이름 ) COMMENT '회원'; -- 회원 ALTER TABLE `MEMBER` ADD...
true
05e712c183a40083f1a6df5b5e4fa60926e97b6a
SQL
penanrajput/oracle-sql-tutorials
/Practical-05/procedure.sql
UTF-8
3,476
3.8125
4
[ "MIT" ]
permissive
set serveroutput on; --dbms_output is class and put_line is static method of that class -- A) Creation of Procedure Type I create or replace procedure demo as -- or "is" begin dbms_output.put_line('This is my first procedure'); end; / --First way execute demo; -- brackets are optional execute demo(); -- or you c...
true
518f4cf3e5337cc5abf9595ac60a77ac7d9078c8
SQL
felipecustodio/databases
/old/initialize.sql
UTF-8
14,207
3.765625
4
[ "MIT" ]
permissive
CREATE TABLE PESSOA( CPF CHAR(15) NOT NULL, RG CHAR(11) NOT NULL, NOME VARCHAR(30), DATA_NASC DATE, VINCULO VARCHAR(15), CONSTRAINT PK_PESSOA PRIMARY KEY(CPF), CONSTRAINT CK_VINCULO CHECK(UPPER(VINCULO) IN ('PROPRIETARIO', 'FUNCIONARIO', 'CLIENT...
true
00324236971d9e5754d3f9babd51cab0a785618b
SQL
Kingcores/Kingcores-Infra
/bluefin/app/schema/weibotui/weibo_login_record.sql
UTF-8
483
3.09375
3
[]
no_license
-- TABLE weibo_login_record CREATE TABLE IF NOT EXISTS `weibo_login_record` ( `weibo_login_record_id` BINARY(16) NOT NULL COMMENT 'UUID', `_created_at` TIMESTAMP NOT NULL DEFAULT 0 COMMENT 'CreatedAt', `ip_address` CHAR(15) NOT NULL COMMENT '登录地址', `weibo` BINARY(16) NOT NULL COMMENT '微博账号', PRIMAR...
true
edb6e994e376430203588a72f7d7050c877fa4ed
SQL
raven-books-source-codes/sql-basic-tutorial-2th
/Sample/Ch03/3_3/List3_24.sql
UTF-8
105
2.984375
3
[]
no_license
SELECT product_type, COUNT(*) FROM Product GROUP BY product_type HAVING product_name = '圆珠笔';
true
cc94e03663fef1eb49869284229b15a99ca1da72
SQL
mooskiiiie/SQL-Lab1
/SQL1-Vergara-196001.sql
UTF-8
3,563
3.609375
4
[]
no_license
-- Vergara, Sebastian -- 196001 -- May 3, 2021 -- I have not discussed the SQL code in my program -- with anyone other than my instructor or the teaching assistants -- assigned to this course. -- I have not used SQL code obtained from another student, -- or any other unauthorized source, either modified or unmodified....
true
922bdddf8601e0ef3107be2b60a2d3381c587b89
SQL
hqottsz/MXI
/assetmanagement-database/src/upgrade/plsql/lib/liquibase/8/0/2/0/sql/DEV-2170.sql
UTF-8
3,519
3.046875
3
[]
no_license
--liquibase formatted sql --changeSet DEV-2170:1 stripComments:false endDelimiter:\n\s*/\s*\n|\n\s*/\s*$ BEGIN utl_migr_schema_pkg.table_create(' Create table "ARC_MESSAGE" ( "MSG_ID" Raw(16) NOT NULL DEFERRABLE , "ASB_MSG_ID" Raw(16), "STATUS_CD" Varchar2 (50), "DESC_SDESC" Varchar2 (80), "NOTE" Varch...
true
b37abd9142a938fbf8a17ce739ecd1f462c5c325
SQL
Mohammed-Salamuddin/Socket-programming
/compnet.sql
UTF-8
1,616
3.265625
3
[]
no_license
\echo drop database cn; create database cn; \c cn; drop table train; create table train( train_id integer, train_name varchar(30), seats_total integer, seats_avail integer, from_place varchar(30), to_place varchar(30), dep_time time, arr_time time, no_of_stops integer, cost integer, waiting integer, tat...
true
e751f0bcca2dd32809e881bff9bbb53b03b23f7a
SQL
longsion/bigcwxspider
/bigc.sql
UTF-8
2,372
3.5625
4
[]
no_license
# create table wechat key DROP TABLE IF EXISTS wechat_key; CREATE TABLE `wechat_key` ( `key_id` int(32) NOT NULL AUTO_INCREMENT COMMENT 'id', `content` mediumblob COMMENT 'key content, json type', `last_update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY...
true
e55d5aaa508e6c3656472b1dad4fde574880a2d9
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/tables/REGULARIZACIONES.sql
ISO-8859-1
1,587
2.90625
3
[]
no_license
-------------------------------------------------------- -- DDL for Table REGULARIZACIONES -------------------------------------------------------- CREATE TABLE "AXIS"."REGULARIZACIONES" ( "SREGULA" NUMBER(6,0), "SSEGURO" NUMBER, "FREGULA" DATE, "PREGULA" NUMBER(6,2), "IREGULA" NUMBER, "IPRIANT" NUMBE...
true
49c4449cd037a27060654b3016b6c4518f072ed1
SQL
sezerp/iot-js
/bin/sql/person.sql
UTF-8
305
2.6875
3
[]
no_license
CREATE TABLE person( id SERIAL PRIMARY KEY, "usernameHash" CHARACTER(64), "passwordHash" CHARACTER(64), "sessionId" CHARACTER(36), "isAdmin" BOOLEAN DEFAULT FALSE, "address" TEXT, "accountId" INTEGER NOT NULL, FOREIGN KEY ("accountId") REFERENCES account(id) );
true
ba014ec54ad04e05199722eed88e40ebafc680bd
SQL
alivanov/dev_course
/Block_5/Lesson_3/Lesson_3_5/sqlite.sql
UTF-8
1,654
3.828125
4
[]
no_license
PRAGMA FOREIGN_KEYS = ON; DROP TABLE IF EXISTS profiles; DROP TABLE IF EXISTS users; CREATE TABLE users ( id INTEGER PRIMARY KEY AUTOINCREMENT, username VARCHAR(32) NOT NULL UNIQUE, password VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL UNI...
true
ba33cf7df5fc33b125f0657261811eae79ea8cf0
SQL
jebush/tiy-homework-movie-database
/work6.sql
UTF-8
222
3.609375
4
[]
no_license
//This will dispay the title and year of movies from the movie table and join it with the genre SELECT m.title, m.year, g.movieid, g.genre FROM movie AS m JOIN moviegenre AS g ON g.movieid = m.movieid ORDER BY m.movieid;
true
13b3d2366e82d251fef01124dc4fe54d34730517
SQL
ChoiGiSung/airbnb
/backend/src/main/resources/dataSample.sql
UTF-8
639,215
2.84375
3
[]
no_license
use airbnb; insert into city (name, image_url) values ('서울', 'https://a0.muscache.com/im/pictures/71e23854-a3c7-491c-b715-6e86233a293f.jpg?im_q=medq&im_w=240'); insert into city (name, image_url) values ('경기', 'https://a0.muscache.com/im/pictures/71e23854-a3c7-491c-b715-6e86233a293f.jpg?im_q=medq&im_w=240'); insert in...
true
78954427aaf4bf16155378463b3b138b20428b0a
SQL
welchlam/currency
/cmg/sql/constraint/ctlm_quantative_resource.sql
UTF-8
470
2.765625
3
[]
no_license
ALTER TABLE CTLM_QUANTATIVE_RESOURCE ADD CONSTRAINT PK_CTLM_QUANTATIVE_RES PRIMARY KEY (JOB_NAME,NAME) USING INDEX NOVALIDATE; ALTER TABLE CTLM_QUANTATIVE_RESOURCE MODIFY (NAME NOT NULL ENABLE); ALTER TABLE CTLM_QUANTATIVE_RESOURCE MODIFY (QUANT NOT NULL ENABLE); ALTER TABLE CTLM_...
true
c0b711c60736ce2f4f61de721087353ad777842a
SQL
cchenwx999/Window_functions
/Over()_Partition_by.sql
UTF-8
4,404
3.703125
4
[]
no_license
### Window Functions Introduction -- from [Drill.Apache](https://drill.apache.org/docs/sql-window-functions-introduction/) The OVER() clause has the following capabilities: Defines window partitions to form groups of rows. (PARTITION BY clause) Orders rows within a partition. (ORDER BY clause) -- compare the A...
true
2e7f7c2256efd6c8de5698a4cf062bed8cab7bbb
SQL
gordonje/deadly_work
/1_db_build/sql/index_cfoi_data.sql
UTF-8
957
2.59375
3
[]
no_license
CREATE INDEX alldata_series_ind ON fw.alldata (series_id); CREATE INDEX alldata_year_ind ON fw.alldata (year); CREATE INDEX alldata_value_ind ON fw.alldata (value); CREATE INDEX alldata_series_year_ind ON fw.alldata (series_id, year); CREATE INDEX current_series_ind ON fw.current (series_id); CREATE INDEX current...
true